/* =========================================
    3. Header & Navigation (ヘッダー)
========================================= */
/* =========================================
   Header (KoyoさんのHTML専用 スタイリッシュ版)
========================================= */

/* --- ヘッダーのベース（すりガラス・固定） --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* 今風のすりガラスエフェクト */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

/* --- 左側：ロゴ画像 --- */
.header-logo {
    margin: 0;
    margin-right: auto; /* 右側の要素を右端に押しやる */
    line-height: 1;
}

.header-logo img {
    height: 28px; /* ロゴ画像のサイズ（適宜調整してください） */
    width: auto;
    display: block;
}

/* --- 中央：PC用ナビメニュー --- */
.header-nav {
    margin-right: 30px; /* 右のボタンとの余白 */
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #333);
    letter-spacing: 0.05em;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}

/* ホバー時のオレンジ下線アニメーション */
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange, #ff7a00);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.header-nav a:hover {
    color: var(--primary-orange, #ff7a00);
}

.header-nav a:hover::after {
    width: 100%;
}

/* --- 右側：サロンへ入会するボタン --- */
.header-btn {
    background: var(--primary-orange, #ff7a00);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

.header-btn:hover {
    background: #e64a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 122, 0, 0.4);
}

/* --- ハンバーガーボタン（PCでは非表示） --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001; /* モバイルナビより上に表示 */
    padding: 0;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-of-type(1) { top: 0; }
.hamburger span:nth-of-type(2) { top: 9px; }
.hamburger span:nth-of-type(3) { bottom: 0; }

/* --- モバイルナビ（PCでは非表示） --- */
.mobile-nav {
    display: none;
}

/* =========================================
   スマホ用レスポンシブ（767px以下）
========================================= */
@media (max-width: 767px) {
    /* PC用メニューとボタンを隠す */
    .header-nav { display: none; }
    
    /* スマホでもボタンを見せたい場合はコメントアウトを外す */
    /* .header-btn { 
        padding: 8px 16px; 
        font-size: 12px; 
        margin-right: 15px; 
    } */
    .header-btn { display: none; } /* 今回はハンバーガーがあるので隠す */

    /* ハンバーガーを表示 */
    .hamburger { display: block; }

    /* モバイルナビの全画面デザイン */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98); /* ほぼ不透明の白 */
        padding-top: 100px;
        transform: translateX(100%); /* 初期状態は右画面外に隠す */
        transition: transform 0.3s ease;
        z-index: 999;
    }

    /* is-activeクラスが付いた時にスライドイン */
    .mobile-nav.is-active {
        transform: translateX(0);
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .mobile-nav li {
        margin-bottom: 30px;
    }

    .mobile-nav a {
        color: #333;
        font-size: 18px;
        font-weight: 700;
        text-decoration: none;
        display: inline-block;
    }

    /* ハンバーガーがクリックされた時（×になるアニメーション） */
    .hamburger.is-active span:nth-of-type(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.is-active span:nth-of-type(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-of-type(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

body.no-scroll {
    overflow: hidden;
    height: 100%;
}