@charset "UTF-8";

body {
    color: #333333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    body {
        font-size: 1.6rem;
        padding-top: 6rem;
    }
}

.container,
section,
main {
    position: relative;
}

a {
    color: #222;
    transition: .2s;
}

a:before,
a:after {
    transition: .2s;
}

.wrapper {
    margin: 0 auto;
    max-width: calc(100vw - 8rem);
    position: relative;
    width: 1620px;
}

.wrap_inner {
    margin: 0 auto;
    max-width: calc(100vw - 8rem);
    position: relative;
    width: 1200px;
}

p>a {
    display: inline-block;
    text-decoration: underline;
}

td>a:not([class]),
dd>a:not([class]) {
    display: inline-block;
    color: #084ea1;
    text-decoration: underline;
}

.en {
    font-family: "Roboto", sans-serif;
}

/* スライドの動き等速 */
.swiper-wrapper {
    transition-timing-function: linear;
}

/* 画像のサイズ調整 */
.swiper-slide img {
    height: auto;
    width: 100%;
}

@media (max-width: 767px) {
    .wrapper {
        max-width: calc(100vw - 4rem);
    }

    .wrap_inner {
        margin: 0 auto;
        max-width: calc(100vw - 4rem);
    }
}


/*header*/
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8.6rem;
    padding: 0 5rem 0 2rem;
    background-color: #fff;
    transition: background-color .2s;
    z-index: 9999;
}

#header .h_wrap {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 100%;
}

#header .h_logo {
    width: 27.5rem;
    margin-right: auto;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: .2s;
}

#header .h_logo img {
    transition: .2s;
}

#header .h_nav {
    display: flex;
    align-items: center;
    column-gap: 6.3rem;
}

#header .h_nav a {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 3;
    color: #222;
}

@media (min-width: 768px) {
    #header .h_nav a:hover {
        color: #084ea1 !important;
    }

    .page-id-12 #header.fixed {
        background-color: rgba(255, 255, 255, 0);
    }

    .page-id-12 #header.fixed .h_logo {
        background-image: url(../img/common/logo_w.png);
    }

    .page-id-12 #header.fixed .h_logo img {
        opacity: 0;
    }

    .page-id-12 #header.fixed .h_nav a {
        color: #fff;
    }

    #header+.h_bg {
        display: none;
    }
}

@media (max-width: 767px) {
    #header {
        height: 6rem;
        padding: 0 2rem;
    }

    #header .h_logo {
        width: 17.2rem;
    }

    #header .h_nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #fff;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    #header .h_nav.active {
        opacity: 1;
        visibility: visible;
    }

    #header .h_nav a {
        line-height: 1.5;
        width: 100%;
        padding: 1.8rem 0;
        text-align: center;
    }

    #header .h_nav a:not(:last-child) {
        border-bottom: 1px solid #aaa;
    }

    #header+.h_bg {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 9998;
        transition: .3s;
        opacity: 0;
        visibility: hidden;
        background-color: #000;
    }

    #header+.h_bg.active {
        opacity: .5;
        visibility: visible;
    }

    #header .h_btn {
        width: 4rem;
        height: 6rem;
        position: relative;
        cursor: pointer;
    }

    #header .h_btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #084ea1;
        transition: .3s;
    }

    #header .h_btn span:nth-of-type(1) {
        top: 1.3rem;
    }

    #header .h_btn span:nth-of-type(2) {
        top: 2.8rem;
    }

    #header .h_btn span:nth-of-type(3) {
        top: 4.3rem;
    }

    #header .h_btn.active span:nth-of-type(1) {
        transform: rotate(225deg);
        top: 2.8rem;
        left: .5rem;
        width: calc(100% - 1rem);
    }

    #header .h_btn.active span:nth-of-type(2) {
        opacity: 0;
    }

    #header .h_btn.active span:nth-of-type(3) {
        transform: rotate(-225deg);
        top: 2.8rem;
        left: .5rem;
        width: calc(100% - 1rem);
    }
}


/*footer*/
#page-top {
    width: 8rem;
    height: 8rem;
    cursor: pointer;
    background: linear-gradient(135deg,rgba(50, 123, 211, 1) 0%, rgba(8, 78, 161, 1) 100%);
    position: fixed;
    bottom: 7rem;
    right: 4rem;
    border: 1px solid #084ea1;
    z-index: 9000;
    transition: background-color .3s, opacity .3s, border .3s;
}

#page-top:hover {
    opacity: .7 !important;
}

#page-top:before {
    content: "";
    width: 1rem;
    height: 1rem;
    position: absolute;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    left: calc(50% - .5rem);
    bottom: 62%;
    transform: rotate(-45deg);
}

#page-top:after {
    content: "TOP\3078";
    font-weight: 500;
    font-size: 1.6rem;
    text-align: center;
    position: absolute;
    right: 0;
    left: 0;
    top: 43%;
    transition: color .3s;
    color: #fff;
}

#footer {
    background-color: #fff;
}

#footer .f_logo {
    width: 28rem;
}

#footer .wrap_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
}

#footer .f_nav {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5rem;
    row-gap: 2rem;
    max-width: 45rem;
    margin-right: 4rem;
}

#footer .f_nav a {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2;
    padding-left: 1em;
    white-space: nowrap;
    width: calc(50% - 2.5rem);
    position: relative;
}

#footer .f_nav a:hover {
    color: #084ea1;
}

#footer .f_nav a:before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(1em - .3rem);
    border-top: 2px solid #084ea1;
    border-right: 2px solid #084ea1;
    transform: rotate(45deg);
    width: .6rem;
    height: .6rem;
}

#footer .copyright {
    font-family: "Open Sans", sans-serif;
    font-size: 1.6rem;
    padding: .8rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    background-color: #084ea1;
}

@media (max-width: 767px) {
    #footer .wrap_inner {
        flex-wrap: wrap;
        row-gap: 2rem;
    }

    #footer .f_logo {
        max-width: 100%;
    }

    #footer .f_nav {
        column-gap: 1rem;
        margin: 0;
    }

    #footer .f_nav a {
        font-size: 1.5rem;
        width: calc(50% - .5rem);
    }

    #page-top {
        width: 6rem;
        height: 6rem;
        right: 1rem;
        bottom: 5rem;
    }

    #page-top:after {
        font-size: 1.4rem;
    }

    #footer .copyright {
        font-size: 1.4rem;
    }
}


/*loading*/
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #084ea1;
    z-index: 12000;
    display: none; /* ← ここを flex から none に変える */
    align-items: center;
    justify-content: center;
    transition: opacity .6s, background-color .3s;
    visibility: visible;
    opacity: 1;
    padding: 0 2rem;
    pointer-events: none;
}

.show-loading #loading {
    display: flex;
}

#loading.false {
    opacity: 0;
    visibility: hidden;
}

#loading_text {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    color: #fff;
    letter-spacing: .1em;
    transition: 1s;
    opacity: 0;
}

#loading_text.active {
    opacity: 1;
}

#loading_1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: #fff;
    transition: .9s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

#loading_1.active {
    height: 100%;
}

#loading_1 img {
    width: 48rem;
    height: auto;
    transition: .6s;
    transition-delay: 1s;
    opacity: 0;
}

#loading_1.active img {
    opacity: 1;
}

@media (max-width: 767px) {
    #loading_text {
        font-size: 3rem;
    }
}