@charset "UTF-8";


.l-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    background-color: #fff;
}
.l-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: bottom;
}
.l-header a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.l-header a:hover {
    opacity: 0.8;
}
.l-header.is-scrolled {
    position: fixed;
    animation: headerFloatIn 1.35s ease;
}
.l-header__wrapper {
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
}
.l-header__inner {
    max-width: 1400px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}
.l-header__logo {
    display: block;
    width: calc(250 * var(--width-ratio-1280));
    height: auto;
}
.l-header__nav {
    height: 100%;
    display: flex;
    align-items: center;
}
.l-header__nav-list {
    height: 100%;
    display: flex;
    align-items: center;
    gap: calc(32 * var(--width-ratio-1448));
    list-style: none;
    padding: 0;
    margin: 0;
}
.l-header__nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.l-header__nav-link {
    display: flex;
    height: 100%;
    align-items: center;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    font-weight: 700;
    color: var(--color-text);
}
.l-header__nav-child {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    z-index: 100;
}
.l-header__nav-item:hover .l-header__nav-child {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.l-header__nav-child li {
    margin: 0;
}
.l-header__nav-child a {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--color-gray);
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.l-header__nav-child a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.l-header__nav-item--contact .l-header__nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 8px;
    color: var(--color-main);
    border:solid 1px #BEDBFF;
    border-radius: 100px;
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0 24px;
}
.l-header__nav-item--contact .l-header__nav-link::after {
    content: '';
    display: block;
    width: 1rem;
    height: 1rem;
    background-image: url('../img/Icon_arrow_tr.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
}

@keyframes headerFloatIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.l-header__hamburger {
    display: none;
}
.l-header__nav-close {
    display: none;
}
.bg_layer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 101;
    transition: opacity 0.3s ease;
}
.l-header__nav_sp {
    display: none;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

@media screen and (max-width: 1360px) {
    .l-header__nav {
        display: none;
    }
    .l-header__nav_sp {
        display: block;
        position: fixed;
        top: 0;
        right: -110vw;
        max-width: 500px;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--color-blue-gradient);
        border-radius: 36px;
        z-index: 102;
        padding: 80px 24px 80px 80px;
        transition: right 0.3s ease;
    }
    .l-header__nav_sp.is-active {
        right: 0;
    }
    body:has(.l-header__nav_sp.is-active) .bg_layer {
        display: block;
    }
    .l-header__nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        overflow-y: auto;
    }
    .l-header__nav-item {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 25px;
    }
    .l-header__nav_sp a.l-header__nav-link {
        font-size: 1.125rem;
        font-weight: 700;
        color: #fff;
        text-align: center;
    }
    .l-header__nav_sp .l-header__nav-item--contact .l-header__nav-link  {
        color: var(--color-main);
    }
    .l-header__nav-child-sp {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 13px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .l-header__nav-child-sp li {
        width: 100%;
    }
    .l-header__nav-child-sp a,
    .l-header__nav-child-sp a:visited {
        font-size: 0.875rem;
        color: #85B1F0;
    }
    .l-header__hamburger {
        display: block;
        width: 28px;
        height: 28px;
        position: relative;
        cursor: pointer;
    }
    .l-header__hamburger span {
        display: block;
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, #000064 0%, #000064 40%, #2891FF 93%, #2891FF 100%);
        position: absolute;
    }
    .l-header__hamburger span:first-child {
        top: 10px;
    }
    .l-header__hamburger span:last-child {
        bottom: 10px;
    }
    .l-header__nav-item--contact .l-header__nav-link,
    .l-header__nav-item--contact .l-header__nav-link:visited {
        width: fit-content;
        height: 60px;
        background: #fff;
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--color-main);
        padding: 0 40px;
        margin-top: 16px;
    }
    .l-header__nav-item--contact .l-header__nav-link::after {
        background-image: url('../img/arrow_tr_blue.png');
    }
    .l-header__nav-close {
        display: block;
        width: 28px;
        height: 28px;
        position: absolute;
        top: 24px;
        right: 24px;
        cursor: pointer;
    }
    .l-header__nav-close span {
        display: block;
        width: 100%;
        height: 1px;
        background: #fff;
        position: absolute;
        left: 0;
        transform-origin: center;
        transition: all 0.4s ease-in-out;
    }
    .l-header__nav-close span:first-child {
        top: 10px;
        /* transform: translateY(-50%) rotate(0deg); */
    }
    .l-header__nav-close span:last-child {
        bottom: 10px;
        /* transform: translateY(50%) rotate(0deg); */
    }
    .l-header__nav_sp.is-active .l-header__nav-close span:first-child {
        top: 50%;
        transform: translateY(-50%) rotate(30deg);
    }
    .l-header__nav_sp.is-active .l-header__nav-close span:last-child {
        bottom: 50%;
        transform: translateY(50%) rotate(-30deg);
    }
}

@media screen and (max-width: 768px) {
    .l-header__wrapper {
        height: 60px;
    }
    .l-header__logo {
        width: 200px;
    }
    .l-header__nav-close {
        top: 16px;
    }
    .l-header__nav_sp {
        border-radius: 24px;
    }
    .l-header__nav-link {
        font-size: 0.875rem;
    }
    .l-header__nav-item--contact .l-header__nav-link {
        height: 52px;
        font-size: 0.875rem;
    }

    .l-header__nav_sp a.l-header__nav-link {
        font-size: 1rem;
    }
    .l-header__nav-item{
      row-gap:16px;
    }
}
