/* レイアウト.css */

/* ヘッダーセクション */
.l-header {
    background-color: var(--color-background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.l-header__inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-inline: auto;
    max-width: 100%;
    min-height: 4.875rem;
    padding-inline: 2rem;
}

.l-header__logo-image {
    width: clamp(8rem, 25vw, 13rem);
}

.l-header__navigation {
    display: none;
}

.l-header__nav {
    align-items: center;
    display: flex;
    gap: 2rem;
    list-style: none;
}

.l-header__nav a {
    color: #5f5f5f;
    font-size: 0.875rem;
    line-height: 1.4;
    padding-block: 0.25rem;
}

.l-header__nav .current-menu-item a,
.l-header__nav a:hover,
.l-header__nav a:focus-visible {
    border-bottom: 0.125rem solid var(--color-primary);
    color: var(--color-primary);
}

/* ハンバーガーメニュー  PCでは非表示*/
.l-header__hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0;
}


/* ハンバーガーメニュー 768px以下で表示*/
@media screen and (max-width: 768px) {

    .l-header__hamburger {
        position: absolute;
        display: block;
        width: 30px;
        height: 24px;
        right: 10px;
        z-index: 1001;
    }

    .l-header__hamburger span {
        display: block;
        height: 2px;
        background-color: var(--color-text);
        margin-bottom: 9px;
        transition: transform 0.4s ease, opacity 0.3s ease;
    }

    /* ハンバーガーメニューボタン */
    .l-header__hamburger.is-open span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .l-header__hamburger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .l-header__hamburger.is-open span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }


    /* メニュー */
    .l-header__navigation {
        display: none;
    }

    /* ボタンクリックでメニュー表示 */
    .l-header__navigation.is-open {
        background-color: rgba(248, 241, 229, 0.671);
        position: absolute;
        display: block;
        top: 2em;
        right: 1rem;
        padding-inline: 2rem;
        padding-block: 2rem;
        border-radius: 1rem;
    }

    .l-header__nav {
        background-color: rgb(252, 251, 250);
        ;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 2rem 3rem 2rem 3rem;
        border-radius: 1rem;
        box-shadow: 0 0 1rem rgba(120, 206, 255, 0.705);
    }
}


/* メインコンテンツ */
.l-main {
    overflow: hidden;
}

/* 各ブロックに当てるコンテナ */
.l-container {
    box-sizing: border-box;
    margin-inline: auto;
    max-width: clamp(20rem, 90vw, 75rem);
    /* root:16px：1200px */
    padding-inline: clamp(1rem, 4vw, 1.5rem);
}


/* フッターセクション */
.l-footer {
    background-color: var(--color-background);
    margin-top: 5rem;
}

.l-footer__inner {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-inline: auto;
    max-width: 100%;
    padding: 2rem;
}

.l-footer__logo-image {
    width: clamp(1.5rem, 5vw, 2rem);
}

.l-footer__copyright {
    color: #5f5f5f;
    font-size: clamp(0.625rem, 2vw, 0.875rem);
}


/* メディアクエリ 768px以上 */
@media (min-width: 768px) {

    /* コンテナ共通 */
    .l-container {
        padding-inline: 2rem;
    }

    /* ヘッダー */
    .l-header__navigation {
        display: block;
    }

    /* フッター */
    .l-footer {
        margin-top: 10rem;
    }

}