@charset "utf-8";
/* CSS Document */

/* 通常のナビゲーションメニュー */
.header__nav {
    display: flex;
}

/* ハンバーガーボタンのスタイル */
.hamburger-button {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    outline: none;
}

.hamburger-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 3px 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ハンバーガーメニューが開いた時のアニメーション */
.hamburger-button.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.hamburger-button.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ナビゲーションメニューのスタイル */
.hamburger-nav {
    position: fixed;
    top: 0;
    left: 50%;
    width: 50%;
    height: auto;
    background-color: rgba(253, 231, 214, 0.5);
    z-index: 1001;
    padding: 20px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    text-align: center;
}

.hamburger-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hamburger-nav.open {
    display: flex;
}

.hamburger-nav a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    margin: 10px 0;
    transition: color 0.3s ease;
}

/* アンダーラインのスタイル */
.hamburger-nav a:not(.header__sns-logo)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.4s ease, left 0.4s ease;
}

.hamburger-nav a:not(.header__sns-logo):hover::after {
    width: 100%;
    left: 0;
}

.hamburger-nav a:hover {
    color: #333;
}

/* サブメニューのスタイル */
.hamburger-nav .menu-item-has-children {
    position: relative;
}

.hamburger-nav .sub-menu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
}

.hamburger-nav .sub-menu a {
    font-size: 16px;
    margin: 5px 0;
}

.hamburger-nav .menu-item-has-children > a::after {
    content: '\25BC';
    margin-left: 5px;
    font-size: 12px;
}

/* SNS アイコン */
.hamb__menu-sns {
    margin-top: 15px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.hamb__menu-sns a {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-decoration: none;
}

.hamb__menu-sns a img {
    width: 100%;
    height: auto;
}

/* Contact ボタン */
.hamb__menu-contact a {
    background-color: #766251;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    text-align: center;
}

.hamb__menu-contact a:hover {
    background-color: #eeece9;
    color: #333;
}

/* メディアクエリ: 768px以下でハンバーガーメニューを表示 */
@media screen and (max-width: 768px) {
    .hamburger-button {
        display: flex;
    }

    .header__nav {
        display: none;
    }

    .header__sns,
    .contact-btn {
        display: none;
    }
}