@charset "utf-8";

.header-container {
    padding-top: 64px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1020;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header>.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1440px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner .header-logo img {
    height: 42px;
}

.header-inner .header-nav-pc {
    display: none;
    height: 100%;
    padding: 8px 0;
}

.header-inner .header-nav-pc ul {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    margin: 0;
}

.header-inner .header-nav-pc ul>li {
    position: relative;
    height: 100%;
}

.header-inner .header-nav-pc ul>li a {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 100%;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.header-inner .header-nav-pc ul>li a:hover {
    opacity: 0.7;
}


/* ヘッダー：ドロップダウン */
.header-nav-pc .has-sub .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    padding: 4px 0;
    width: max-content;
    min-width: 185px;
    height: max-content;
    padding: 8px 0;
    background: #0b4a94;
    opacity: 0;
    visibility: hidden;
    border: none;
    box-shadow: none;
    flex-direction: column;
    gap: 0 !important;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.header-nav-pc .has-sub:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav-pc .has-sub .sub-menu li {
    width: 100%;
    height: 40px;
    padding: 0;
}

.header-nav-pc .has-sub .sub-menu li a {
    font-size: 13px;
    color: #fff !important;
    line-height: 1.2;
}

.header-nav-pc .sub-menu li:hover {
    background: #001352;
}

.header-nav-pc .sub-menu li:hover a {
    color: #fff !important;
}

.header-inner .sns-icon {
    display: none;
    margin: 0 0 0 auto;
}

.header-inner .sns-icon.fb {
    width: 40px;
    height: 40px;
}

.header-inner .header-cta {
    display: none;
    align-items: center;
    gap: 16px;
}

.header-cta .cta-image img {
    display: block;
    width: auto;
    height: 40px;
    object-fit: contain;
}

.header-inner .hamburger-dummy {
    width: 32px;
    height: 24px;
}

.header-inner .hamburger {
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 32px;
    height: 24px;
    margin: auto;
    z-index: 1080;
    cursor: pointer;
}

.header-inner .hamburger span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

/* Xになるアニメーション */
.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    padding: 64px 32px 40px;
    background: #E2EBF3;
    transition: right 0.35s ease;
    z-index: 1040;
    overflow-y: auto;
}

.header-nav.active {
    right: 0;
    transform: translateX(0);
}

.hamburger-nav a {
    text-decoration: none !important;
}

.header-nav>ul {
    margin: 0;
}

.header-nav>ul>li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 20px;
}

.header-nav>ul>li:not(.others)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 52px;
    width: 100%;
    border-bottom: 1px solid #555;
}

.header-nav>ul>li.others>a {
    color: #004086;
}

.header-nav .has-sub {
    position: relative !important;
    flex-wrap: wrap;
}

.header-nav .plus-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 16px;
    font-weight: bold;
    color: #0a315a;
    background: #fff;
    border-radius: 50%;
    transition: background .25s ease, color .25s ease;
    z-index: 10;
}

.header-nav>ul>li>a {
    display: flex;
    align-items: center;
    height: 52px;
    font-size: 16px;
    font-weight: bold;
    color: #222;
    letter-spacing: 2px;
}

.header-nav ul.sub-menu {
    display: flex;
    flex-flow: column;
    gap: 6px;
    width: 100% !important;
    max-height: 0;
    margin: 0;
    padding-left: 16px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all .3s ease;
}

.header-nav ul.sub-menu.open {
    max-height: unset;
    margin: 10px 0;
    opacity: 1;
    visibility: visible;
}

.header-nav .buttons {
    margin-top: 20px;
    display: flex;
    flex-flow: column;
    gap: 1px;
}

.header-nav .buttons .btn-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: #004a8f;
    font-size: 16px;
    color: #fff;
}

.header-nav .buttons .btn-icon img {
    width: 30px;
}

.header-nav .buttons .bot_txt_toiawase {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}


@media (min-width: 769px) {
    .header-inner .sns-icon {
        display: block !important;
    }

    .header-inner .header-cta {
        display: flex !important;
    }

    .header-nav {
        max-width: 600px;
        height: max-content;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 1280px) {
    .header-inner .header-nav-pc {
        display: block !important;
    }

    .header-inner .header-nav-pc ul>li a {
        zoom: 0.9;
    }

    .hamburger,
    .hamburger-dummy {
        display: none !important;
    }
}

@media (min-width: 1320px) {
    .header-inner .header-nav-pc ul>li a {
        zoom: unset;
    }
}
