/*
 * style.css for 姫路・兵庫 女性用風俗 癒し処
 *
 * 【デザインコンセプト】
 * - 高級感、秘密の時間、大人の贅沢をテーマに、ダークパープルとピンクゴールドを基調。
 * - モバイルファーストで設計し、ハンバーガーメニューの挙動を正常化。
 */

/* ======================================================================
    1. 基本設定と変数
   ====================================================================== */
:root {
    --c-dark-purple: #330033;       /* メインカラー (背景・ヘッダー) */
    --c-accent: #DAA06D;            /* アクセントカラー (ピンクゴールド) */
    --c-text-main: #333333;         /* 本文色 */
    --c-bg-light: #fef0fe;          /* 薄い背景色 */
    --f-sans-serif: 'Noto Sans JP', sans-serif; /* 日本語標準フォント */
    --f-serif: 'Shippori Mincho', serif;       /* タイトル用フォント */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-sans-serif);
    color: var(--c-text-main);
    line-height: 1.6;
    margin: 0;
    padding-left: 0;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

/* ======================================================================
    2. レイアウト（サイドバー/コンテンツ）
   ====================================================================== */

#wrapper {
    display: flex;
}

#sidebar {
    /* モバイル（初期状態）: 画面外に隠す */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--c-dark-purple);
    color: #fff;
    z-index: 990;
    transform: translateX(-280px); /* 完全に隠す */
    transition: transform 0.3s ease-in-out;
}

/* ハンバーガーメニュー展開時のクラス (JSでトグルされる) */
#sidebar.open {
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

#sidebarWrap {
    padding-top: 20px;
}

#sidebar h1 {
    text-align: center;
    padding: 20px 0;
}

#sidebar img {
    max-width: 80%;
    height: auto;
}

#content {
    width: 100%;
    transition: margin-left 0.3s ease-in-out;
    /* 💡 ハンバーガーメニュー分の強制的な上部余白 */
    padding-top: 60px; 
}

/* ======================================================================
    3. ナビゲーション（メニュー）
   ====================================================================== */

/* ハンバーガーアイコンを格納するラッパー (モバイルでのみ表示) */
#menuWrap {
    /* 💡 ハンバーガーメニューを右上に固定表示するための必須設定 */
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background-color: var(--c-dark-purple);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0;
}

/* ハンバーガーアイコンの線 */
#menuBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s, background-color 0.3s;
}
#menuBtn::before,
#menuBtn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s, top 0.3s;
}
#menuBtn::before { top: -8px; }
#menuBtn::after { top: 8px; }

/* 🌟 修正ポイント: メニューオープン時（activeクラスが付与された時）のスタイル追加 */

/* 1. 真ん中の線を透明にして消す */
#menuWrap.active #menuBtn {
    background-color: transparent;
}

/* 2. 上の線を45度回転させ、中央に寄せる */
#menuWrap.active #menuBtn::before {
    top: 0; 
    transform: rotate(45deg);
}

/* 3. 下の線を-45度回転させ、中央に寄せる */
#menuWrap.active #menuBtn::after {
    top: 0; 
    transform: rotate(-45deg);
}

/* メニュー項目 */
#mainnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mainnav ul li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-family: var(--f-serif);
    font-size: 1.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background-color 0.3s;
}

#mainnav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--c-accent); /* ピンクゴールド */
}

/* 電話CTAの強調 */
#mainnav ul li:last-child a {
    color: var(--c-accent) !important; /* ピンクゴールド */
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--c-accent); /* ピンクゴールドの線 */
}

/* ======================================================================
    4. コンテンツ共通スタイル
   ====================================================================== */

.inner, .innerS {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 60px 20px;
    text-align: center;
}

section:nth-child(even) { /* 交互に背景色を変える */
    background-color: var(--c-bg-light);
}

/* タイトルスタイル */
section header h2 {
    font-family: var(--f-serif);
    font-size: 2.2rem;
    color: var(--c-dark-purple);
    margin-bottom: 10px;
    display: inline-block;
    border-bottom: 3px solid var(--c-accent); /* ピンクゴールドの線 */
    padding-bottom: 5px;
}

section header h2 span {
    font-size: 0.8em;
    display: block;
    color: var(--c-accent); /* ピンクゴールド */
    margin-bottom: -10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* メイン画像 */
#mainImg img {
    width: 100%;
    height: auto;
    display: block;
}

/* ======================================================================
    5. 個別セクション調整
   ====================================================================== */

/* セラピストからのご挨拶 (#sec01) */
#sec01 .article img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
#sec01 .article h3 {
    border-left: 5px solid var(--c-accent); /* ピンクゴールドの線 */
    padding-left: 10px;
    text-align: left;
}
#sec01 .article p {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

/* ご利用メニュー (#sec02) */
#sec02 .article img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
#sec02 table {
    width: 90%;
    max-width: 450px;
    margin: 30px auto;
    border-collapse: collapse;
    font-size: 1.1em;
}
#sec02 th, #sec02 td {
    padding: 12px;
    border: 1px solid #ddd;
}
#sec02 th {
    background-color: var(--c-dark-purple);
    color: #fff;
    font-family: var(--f-serif);
}

/* ご予約CTAボックス */
#sec02 .article p:last-of-type {
    margin-top: 40px;
}

/* 出張エリア・お問い合わせ (#sec03) */
#sec03 .col2 {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    justify-content: space-between;
}
#sec03 .col2 > li {
    width: 100%; /* モバイルでは1列 */
    margin-bottom: 30px;
}
#sec03 dl {
    line-height: 2.0;
}
#sec03 dt {
    font-weight: bold;
    color: var(--c-dark-purple);
    width: 120px;
    float: left;
    clear: left;
}
#sec03 dd {
    margin-left: 130px;
    margin-bottom: 10px;
}

#map iframe {
    width: 100%;
    min-height: 300px;
}

/* ======================================================================
    6. フッター
   ====================================================================== */

#footer {
    background-color: var(--c-dark-purple);
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
}

/* ======================================================================
    7. メディアクエリ (PC表示の調整)
   ====================================================================== */

@media (min-width: 900px) {
    /* PC表示時: サイドバーを左に固定表示 */
    #sidebar {
        transform: translateX(0); /* サイドバーを表示 */
    }
    body {
        padding-left: 280px; /* サイドバーの幅分の余白を確保 */
    }
    #content {
        width: calc(100% - 280px);
        margin-left: 0;
        padding-top: 0; /* PCでは上部余白不要 */
    }
    
    /* ハンバーガーアイコンを非表示 */
    #menuWrap {
        display: none;
    }
    
    /* 出張エリアセクションを2カラムに */
    #sec03 .col2 > li {
        width: 48%; 
    }
    
}
