@charset "UTF-8";
/*
 * グローバルナビゲーション（ヘッダー）の固定やハンバーガーメニュースタイル
 *
 * スクロール時の状態変化や、モバイル時のオーバーレイメニューの表示制御UIを含みます。
 *
 * @package crmt-block-base
 * Last modified: 2026-04-03_15-07-41
 *
 * ブレイクポイント規約
 * Tablet : @media (width <= 768px) { ... }
 * Mobile : @media (width <= 540px) { ... }
*/
#khd-b2b {
    .header-1 {
        border-bottom: 1px solid var(--wp--preset--color--border-normal);
        position: sticky;
        top: 0;
        left: 0;
        z-index:8;
        background-color: var(--wp--preset--color--white);
    }
    .header-1-innr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: clamp(0.571rem, 2.8vw - 0.429rem, 1.571rem);
        overflow: hidden;
        position: relative;
        top: 0;
        z-index: 200;
        /* width: min(calc(100% - (clamp(0.571rem, 3.2vw - 0.571rem, 1.714rem) * 2)), 1360px); */
        /* width: min(100%, 1360px); */
        width:100%;
        height: 80px;
        padding-inline: clamp(0.571rem, 3.2vw - 0.571rem, 1.714rem);
        margin-inline: auto;
        transition: 0.2s;

        .logo {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: clamp(0.714rem, 0.8vw + 0.429rem, 1rem);
            a {
                display: flex;
                align-items: center;
                justify-content: flex-start;
            }

            img {
                max-width: clamp(8.571rem, 12vw + 4.286rem, 12.857rem);
            }
        }
        .tagline {
            font-size: clamp(0.714rem, 1.018vw + 0.442rem, 1rem);
            font-weight: 600;
            line-height:1.4;
            text-align: left;
        }

        .humbergerBlock {
            position: absolute;
            right: 1rem;
        }

        @media (width <=1200px) {
            overflow: visible;
        }
    }

    /* メニュー */
    .h-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        font-size: 1rem;
        margin-inline-start: auto;
        margin-inline-end: 0;
        position: relative;

        @media (width <= 1200px) {
            display: none;
            align-items: center;
            justify-content: flex-start;
            flex-direction: column;
            background-color: rgb(255 255 255 / 0.8);
            gap: 40px;
            padding: 0;
            border-radius: 0 0 0 60px;
            -webkit-backdrop-filter: blur(60px);
            backdrop-filter: blur(60px);
            transition: opacity 0.2s allow-discrete;
            opacity: 0;
        }
        &.on {
            @media (width <= 1200px) {
                display: flex;
                position: fixed;
                top: 81px;
                right: 0;
                width: 400px;
                height: auto;
                padding-bottom: 40px;
                opacity: 1;
                transition: opacity 0.2s;
                z-index: 30;

                @starting-style {
                    opacity: 0;
                }
            }
            @media (width <= 768px) {
                width: 100lvw;
                height: calc(100lvh - 82px);
                padding-bottom: 0px;
            }
        }
        .sectionlink {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(1.143rem, 1.2vw + 0.714rem, 1.571rem);
            position: relative;

            a {
                font-weight: 600;
                color: var(--wp--preset--color--text-maintext);
                text-decoration: none;
            }
        }
    }
    .h-cta {
        @media (width <=1200px) {
            margin-inline-start: auto;
            margin-inline-end: 0;
        }
    }

    /* ボタン */
    .smtmenu {
        position: relative;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        position: relative;
        cursor: pointer;
        width: 40px;
        height: 40px;
        border-radius: 1000px;
        /* background-color: var(--color-key-2); */
        background-color: var(--wp--preset--color--white);
        border: 1px solid var(--wp--preset--color--main);

        &.on {
            background-color: var(--color-wh);
        }
    }
}

.ham-btn-1 {
    &,
    span {
        transition: all 0.5s;
        box-sizing: border-box;
    }

    span {
        &:nth-of-type(1) {
            top: 12px;
        }

        &:nth-of-type(2) {
        }

        &:nth-of-type(3) {
            bottom: 12px;
        }

        position: absolute;
        width: 14px;
        height: 1px;
        background-color: var(--wp--preset--color--main);
    }
}

.ham-btn-1 span:nth-of-type(1) {
    -webkit-animation: ham-btn-1-bar01 0.75s forwards;
    animation: ham-btn-1-bar01 0.75s forwards;
}

@-webkit-keyframes ham-btn-1-bar01 {
    0% {
        -webkit-transform: translateY(6.5px) rotate(45deg);
    }

    50% {
        -webkit-transform: translateY(6.5px) rotate(0);
    }

    100% {
        -webkit-transform: translateY(0) rotate(0);
    }
}

@keyframes ham-btn-1-bar01 {
    0% {
        transform: translateY(6.5px) rotate(45deg);
    }

    50% {
        transform: translateY(6.5px) rotate(0);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

.ham-btn-1 span:nth-of-type(2) {
    transition: all 0.25s 0.25s;
    opacity: 1;
}

.ham-btn-1 span:nth-of-type(3) {
    -webkit-animation: ham-btn-1-bar03 0.75s forwards;
    animation: ham-btn-1-bar03 0.75s forwards;
}

@-webkit-keyframes ham-btn-1-bar03 {
    0% {
        -webkit-transform: translateY(-6.5px) rotate(-45deg);
    }

    50% {
        -webkit-transform: translateY(-6.5px) rotate(0);
    }

    100% {
        -webkit-transform: translateY(0) rotate(0);
    }
}

@keyframes ham-btn-1-bar03 {
    0% {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    50% {
        transform: translateY(-6.5px) rotate(0);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

.ham-btn-1.on span:nth-of-type(1) {
    -webkit-animation: active-ham-btn-1-bar01 0.75s forwards;
    animation: active-ham-btn-1-bar01 0.75s forwards;
}

@-webkit-keyframes active-ham-btn-1-bar01 {
    0% {
        -webkit-transform: translateY(0) rotate(0);
    }

    50% {
        -webkit-transform: translateY(6.5px) rotate(0);
    }

    100% {
        -webkit-transform: translateY(6.5px) rotate(45deg);
    }
}

@keyframes active-ham-btn-1-bar01 {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(6.5px) rotate(0);
    }

    100% {
        transform: translateY(6.5px) rotate(45deg);
    }
}

.ham-btn-1.on span:nth-of-type(2) {
    opacity: 0;
}

.ham-btn-1.on span:nth-of-type(3) {
    -webkit-animation: active-ham-btn-1-bar03 0.75s forwards;
    animation: active-ham-btn-1-bar03 0.75s forwards;
}

@-webkit-keyframes active-ham-btn-1-bar03 {
    0% {
        -webkit-transform: translateY(0) rotate(0);
    }

    50% {
        -webkit-transform: translateY(-6.5px) rotate(0);
    }

    100% {
        -webkit-transform: translateY(-6.5px) rotate(-45deg);
    }
}

@keyframes active-ham-btn-1-bar03 {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-6.5px) rotate(0);
    }

    100% {
        transform: translateY(-6.5px) rotate(-45deg);
    }
}

/* アニメーション */
.smtmenu {
    right: -10px;
}

.h-nav,
.h-cta,
.smtmenu {
    transition: 0.2s;

    @media (width > 1200px) {
        transform: translatex(58px);
    }

    @media (width <=1200px) {
        transform: translatex(0px);
        right: 0;
    }
}
