@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');



/*-----------------------
header
-----------------------*/
header .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, #06156E 0%, #06156ef5 25%, #06156e99 50%, #06156e5c 65%, #06156e3d 75%, #06156e1c 86%, transparent 100%);
    pointer-events: none;
}

header .navbar .inner {
    width: 86%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    height: 160px;
}

/* ロゴ */
header .logo {
    /*flex-grow: 1;*/
    /* width: 176px; */
    width: 146px;
    margin-top: -40px;
    margin-top: -60px;
    pointer-events: all;
}

header .hamburger {
    display: none;
    pointer-events: all;
}

/* メニュー */
header .menu {
    display: flex;
    gap: 1.5em;
    align-items: center;
    font-size: 16px;
    font-weight: 500;

    margin-top: -90px;
    pointer-events: all;
}

header .menu a {
    text-decoration: none;
    color: #fff;
    position: relative;
    padding-bottom: 5px;
}


.sns_navlist {
    display: none;
}

/* ホバー時のライン（下から右に） */
header .menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: white;
    transition: width 0.3s ease;
}

header .menu a:hover::after {
    width: 100%;
}

/* ドロップダウン */
header .dropdown {
    position: relative;
}

header .dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 250px;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    padding: 1px;
    box-sizing: border-box;

}

header li:nth-child(6) .dropdown-menu {
    left: auto;
    right: 0;
}

header .dropdown:hover .dropdown-menu {
    opacity: 1;
    /* transform: translateY(0); */
    visibility: visible;
}

header .dropdown-menu a {
    display: block;
    padding: 6px 10px;
    color: #0E2788;
    border-bottom: 1px solid #0E2788;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

header .dropdown-menu a::after {
    height: 0;
}

header .dropdown-menu a:last-child {
    border-bottom: none;
}

header .dropdown-menu a:hover {
    opacity: 1;
    border-color: #0e2788 !important;
}

/* 疑似要素でグラデーション背景を作る */
header .dropdown-menu a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(220deg, #020A5F 0%, #1F51C4 75%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: -1;
    mix-blend-mode: multiply;
    /* ここがポイント */
}

/* ホバー時にグラデーション背景を表示 */
header .dropdown-menu a:hover {
    color: white;
    border-color: white;
}

header .dropdown-menu a:hover::after {
    opacity: 1;
}



/* 言語選択（右上に配置） */
header #language {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    font-family: var(--sub-font);
    width: 76px;
    pointer-events: all;
}

header #language li {
    list-style: none;
    display: flex;
    width: 50%;
}

header #language a {
    text-decoration: none;
    font-size: 18px;
    padding: 5px 8px;
}

header #language #ja a {
    color: var(--white);
    background: var(--blue-gradient-btn);
}

header #language #en a {
    color: var(--black);
    background: #fff;
}

header #language.en_on #ja a {
    color: var(--black);
    background: #fff;
}

header #language.en_on #en a {
    color: var(--white);
    background: var(--blue-gradient-btn);
}

@media (max-width: 1280px) {
    header .menu {
        gap: 15px;
        font-size: 16px;
    }

    header .navbar .inner {
        width: 82%;
    }
}

@media (max-width: 1024px) {
    header .navbar .inner {
        width: 80%;
    }

    header .menu {
        font-size: 16px;
    }

    header .logo {
        width: 13vw;
        margin-left: -9%;
        margin-top: -63px;
    }
}

@media (max-width: 768px) {

    /* ハンバーガーメニュー */
    header .hamburger {
        display: none;
        width: 44px;
        height: 14px;
        position: relative;
        cursor: pointer;
        justify-content: space-between;
    }

    header .hamburger .line {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        background: #fff;
        transition: 0.3s ease-in-out;
    }

    header .hamburger .line:nth-child(1) {
        top: 0;
    }

    header .hamburger .line:nth-child(2) {
        bottom: 0;
    }

    /* バツ（アクティブ時） */
    header .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg);
        top: 6px;
    }

    header .hamburger.active .line:nth-child(2) {
        transform: rotate(-45deg);
        bottom: 7px;
    }


    header .navbar .inner {
        height: 100px;
        width: 90%;
    }

    header .menu {
        display: none;
        gap: 0;
    }

    header .hamburger {
        display: block;
        position: absolute;
        right: 17px;

    }

    header .navbar.active {
        background: linear-gradient(180deg, rgb(22 41 155) 0%, rgb(111 124 202) 38%, rgb(255 255 255) 100%) !important;
    }

    header .logo {
        margin: 0;
        width: 120px;
    }

    /* ハンバーガーメニュー開いたときのフルスクリーンナビ */
    header .menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 170px;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 3% 10%;
        box-sizing: border-box;
        align-items: flex-start;
        overflow-y: auto;
        /* メニュー内のスクロールを有効にする */
    }

    /* スクロール禁止をハンバーガーメニューに適用 */
    header .menu.active.no-scroll {
        overflow-y: scroll;
        padding-bottom: 130px;
    }

    /* メニュー項目の高さを調整してスクロールを有効にする */
    header .menu {
        max-height: 100vh;
        /* 最大高さを設定 */
    }

    header ul.menu li {
        width: 100%;
    }

    header .navbar a.mainmenu {
        width: 100%;
        border-bottom: 1px solid #0e278852;
        margin-bottom: 0;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    header .menu a {
        display: block;
        padding: 0 0 0 0;
        font-size: 18px;
        color: var(--blue);
    }


    .sns_navlist {
        display: block;
        margin-top: 30px;
    }



    /* ドロップダウンメニューを最初から表示 */
    header .dropdown-menu {
        position: static;

        transform: translateY(0);
        visibility: visible;
        background: transparent;
        box-shadow: none;
        width: auto;
        padding: 0;
        padding-bottom: 20px;
    }

    header .dropdown-menu a {
        padding: 2px 0px 2px 10px;
        border-bottom: none;

    }

    header .dropdown-menu a:after {
        content: normal;
    }

    header #language {
        display: none;
    }

    header .dropdown-menu a:hover {
        color: var(--blue);
        opacity: 0.6;
    }

    .dropdown-menu {
        display: none;
    }

    .dropdown-menu.open {
        /* display: block; */
    }
}



/*20250425追加----------------------*/
@media (max-width: 768px) {
    header .mainmenu {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header .mainmenu .toggle {
        font-size: 20px;
        margin-left: auto;
        padding-left: 10px;
    }




}

@media (min-width: 769px) {
    .mainmenu .toggle {
        display: none;
    }



}






@media (max-width: 768px) {

    /* hover効果を消す（SP時は効かないようにする） */
    header .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: hidden;
    }

    header .dropdown-menu {
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        display: block;
        max-height: 0;
        opacity: 1;
        overflow: hidden;

        transition: max-height .8s ease, opacity .8s ease, transform .8s ease;
    }

    /* クリックで開いたとき */
    header .dropdown-menu.open {
        max-height: 500px;
        /* ← 仮値。中身に合わせてJSでscrollHeightを入れるならOK */
        /* opacity: 1 !important; */
        visibility: visible !important;
        transform: translateY(0);
        /*opacity: 1;*/
        visibility: visible;
        /* margin-bottom: 15px; */
    }



}




/*--------------------------------*/



@media (max-width: 599px) {
    header .logo h1 a img {
        width: 130px;
    }

    header .navbar .inner {
        height: 130px;
    }

    header .menu.active {
        top: 200px;
    }

    header .logo {
        margin-top: -30px;
    }

    header .hamburger {
        margin-top: -40px;
    }
}







/*-----------------------
footer
-----------------------*/
footer {
    background: #F5F6FA;
}

footer .inner {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;

}

footer .footer_top {
    display: flex;
    justify-content: space-between;
    padding: 70px 0;
}

footer .footer_top .menu_block {
    display: flex;
    max-width: 780px;
    width: 100%;
    justify-content: space-between;

}

footer .footer_top .block .title {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: .5em;
    font-weight: 300;
}

footer .footer_top .block ul {
    border-left: 1px solid var(--black);
    padding: 4px 0 4px 8px;
    margin-right: 1em;
}

footer .block ul li {
    line-height: 1.8em;
    font-size: 13px;
    line-height: 1.3;
    margin-top: 1em;
}

footer .block ul li:first-of-type {
    margin-top: 0;
}

footer .block ul li a {}

footer .footer_top .block_outer .block:nth-child(2) {
    margin-top: 20px;
}

footer .footer_top .info_block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 440px;
    width: 38%;
}

footer .footer_top .info_block .logo {
    margin: 0 auto;
    max-width: 180px;
}

footer .footer_top .info_block .info {}

footer .footer_top .info_block .contact {
    background: linear-gradient(270deg, #020A5F 10%, #1F51C4 52%);
}

footer .footer_top .info_block .contact a {
    color: #fff;
    display: block;
    padding: 18px 0;
    text-align: center;
    font-size: 18px;
    box-sizing: border-box;
}

footer .footer_bottom {
    display: flex;
    justify-content: space-between;
    padding: 5px 0 50px;
    border-top: 1px solid var(--black);
}

footer .footer_bottom .policy {
    font-size: 14px;
    font-weight: 400;

}

.footer_menu_left {
    width: 100%;
}

footer .footer_bottom .copy {
    font-family: var(--sub-font);
}

.sns_block {
    margin-top: 30px;
}

.x_logo {
    width: 25px;
    margin: 0 5px;
    padding: 15px 0;
}

@media (max-width: 1024px) {
    footer .footer_top {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    footer .footer_top .menu_block {
        width: 100%;
    }

    footer .footer_top .info_block {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    footer .inner {}

    footer .footer_top {}

    footer .footer_top .info_block {}

    footer .footer_bottom {}
}

@media (max-width: 599px) {
    footer .inner {
        width: 90%;
        font-size: 11px;
    }

    footer .footer_top {
        padding: 40px 0;
    }

    footer .footer_top .menu_block {
        display: none;
    }

    .sns_block {
        display: none;
    }

    footer .footer_bottom {
        flex-direction: column;
        align-items: center;
        padding: 25px 0 50px;
    }

    footer .footer_top .info_block .logo {
        width: 160px;
    }

    footer .footer_top .info_block .contact {
        width: 290px;
        margin: 0 auto;
    }

    footer .footer_top .info_block .contact a {
        padding: 15px 0;
    }
}