/*
 * Urban Compass Tokyo - Main Stylesheet
 * ファイルの配置: assets/css/style.css
 * * 構造:
 * 1. ベース・リセット
 * 2. ナビゲーション (ロゴアイコン対応)
 * 3. HERO SECTION (トップページ)
 * 4. 内部ページヘッダー (CONTACT, GUIDES, PLANS)
 * 5. CTAボタン
 * 6. USP SECTION
 * 7. EXPERIENCES (体験ページ専用)
 * 8. OUR GUIDES (ガイドページ専用)
 * 9. PLAN DETAIL (詳細ページ専用)
 * 10. CONTACT FORM (問い合わせページ専用)
 * 11. FOOTER & CTA BAR
 * 12. レスポンシブ対応
 */

/* =================================
 * 1. ベース・リセット
 * ================================= */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* わずかにオフホワイト */
    line-height: 1.6;
}
*, *::before, *::after {
    box-sizing: border-box;
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
}
/* 全体のコンテンツセクションの基本スタイル */
.content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =================================
 * 2. ナビゲーション (NAV)
 * ================================= */
.navbar {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 2000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 10px;
}
.logo-img { height: 35px; width: auto; }
.logo-text { font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }

/* PC用メニュー設定 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu li a:hover { color: #A08A58; }

.nav-toggle { display: none !important; }
.nav-toggle-label { display: none; cursor: pointer; }

.nav-menu li a:hover,
.nav-menu li a.active { 
    color: #A08A58 !important; /* 強制的に色を適用 */
}

/* =================================
 * 3. HERO SECTION (トップページファーストビュー)
 * ================================= */
.hero {
    height: 90vh;
    background-image: url('../images/hero_alphard.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.hero-content {
    z-index: 10;
    padding: 0 5%;
}
.headline {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;      /* サイズはお好みに合わせて調整してください */
    font-weight: 700;
    color: #ffffff;       /* 文字色を白に変更 */
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    
    /* 重要：可読性を上げるためのドロップシャドウ */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);     
}

.sub-headline {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* =================================
 * 4. 内部ページヘッダー (EXPERIENCES, GUIDES, PLANS)
 * ================================= */
.page-header {
    background-color: #333;
    color: #fff;
    padding: 100px 5% 50px;
    text-align: center;
}
.page-header .headline {
    color: #fff;
    font-size: 3em;
    margin-bottom: 0.1em;
}
.page-header .sub-headline {
    color: #A08A58;
    font-size: 1.2em;
}

/* =================================
 * 5. CTAボタン (Call To Action)
 * ================================= */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #A08A58; /* メインカラー: ゴールド */
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
}
.cta-button:hover {
    background-color: #8D794D;
}
.secondary-cta {
    background-color: #1a1a1a; /* 詳細ボタンは控えめな黒 */
    padding: 10px 25px;
}
.secondary-cta:hover {
    background-color: #333;
}

/* =================================
 * 6. USP SECTION (強み訴求 - index.html)
 * ================================= */
.usp-section {
    text-align: center;
}
.usp-section h2 {
    margin-bottom: 40px;
    font-size: 2.2em;
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}
.usp-item {
    padding: 20px;
}
.usp-item h3 {
    color: #A08A58;
    margin-top: 10px;
}
.usp-item i {
    font-size: 2.5em;
    color: #A08A58;
}

/* =================================
 * 7. EXPERIENCES (体験ページ専用 - pages/experiences.html)
 * ================================= */
/* --- OUR SIGNATURE PLANS セクション --- */

/* --- レイアウトを維持するための修正 --- */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 確実に3列にする */
    gap: 30px;
    text-align: center;
}

.plans-grid h2 {
    grid-column: 1 / -1; /* 3列全体の中央に配置 */
    margin-bottom: 60px; /* ここで「OUR SIGNATURE PLANS」の下に広い改行を作る */
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}

/* 画像リンクの設定 */
.plan-image-link {
    display: block; /* 画像全体をリンク範囲にする */
    width: 100%;
    overflow: hidden;
}

.plan-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block; /* 画像の下に隙間ができないようにする */
    transition: transform 0.3s ease;
}

/* ホバー時に画像を少しズームさせる（クリックできることを視覚的に伝える） */
.plan-image-link:hover .plan-image {
    transform: scale(1.05);
}

.plan-card {
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    border-radius: 8px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.activity-highlight img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}
.activity-highlight h3 {
    color: #A08A58;
    font-size: 1.5em;
    margin-top: 0;
}


/* --- ACTIVITIES セクションの余白調整 --- */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列横並びを維持 */
    gap: 30px;
    text-align: center;
    padding-bottom: 60px;
}

/* 「WHAT WE OFFER」などの見出しの下に改行を作る */
.activities-grid h2 {
    grid-column: 1 / -1;    /* 3列をまたいで中央に配置 */
    margin-bottom: 60px;    /* ここでカードとの間に大きな余白を作ります */
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}

/* 各アクティビティカード内の調整（プラン一覧と合わせる） */
.activity-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* アクティビティの画像とテキストの隙間 */
.activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-content {
    padding: 30px; /* テキスト周りにゆとりを持たせる */
}

.activity-content h3 {
    margin-top: 0;
    margin-bottom: 15px; /* タイトル下の改行 */
}

/* =================================
 * 8. OUR GUIDES (ガイドページ専用 - pages/about_us.html)
 * ================================= */
.standard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    background-color: #fff;
    padding: 50px 5%;
    border-bottom: 1px solid #eee;
}
.standard-item h3 {
    color: #A08A58;
}

/* --- OUR TEAM (Guide Profiles) セクションの修正 --- */

.guide-profiles {
    display: grid;
    /* ガイドを横に2つ並べる設定 (3つにしたい場合は repeat(3, 1fr) に変更してください) */
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: center;
    padding-bottom: 80px;
}

/* 見出し「OUR TEAM」を横いっぱいに広げ、下に改行（余白）を作る */
.guide-profiles h2 {
    grid-column: 1 / -1;
    margin-bottom: 60px; /* ここでしっかりとした余白を確保 */
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}

/* 各プロフィールカードのスタイル */
.profile-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* カード内のテキストを中央揃えに */
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ガイド写真の調整 */
.profile-card img {
    width: 180px;      /* 写真のサイズ */
    height: 180px;
    border-radius: 50%; /* 丸い写真にする（高級感が出ます） */
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid #f8f8f8;
}

.profile-card h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.profile-card .specialty {
    color: #A08A58;    /* ゴールド系のアクセントカラー */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.profile-card p:not(.specialty) {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* =================================
 * 9. PLAN DETAIL (詳細ページ専用 - pages/plans/*.html)
 * ================================= */
.plan-details h2 {
    margin-top: 40px;
    border-bottom: 2px solid #A08A58;
    padding-bottom: 10px;
    font-size: 1.8em;
}
.itinerary-list, .inclusions-list {
    list-style: none;
    padding: 0;
}
.itinerary-list li, .inclusions-list li {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid #A08A58;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.itinerary-list li strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 5px;
}

/* =================================
 * 10. CONTACT FORM (問い合わせページ専用 - pages/contact.html)
 * ================================= */

/* フォームセクションがページ全体の中央に来るように調整 (独立ページ用) */
.quote-section-independent {
    background-color: #fff;
    padding: 60px 5%;
    max-width: 700px; /* フォームの幅を制限 */
    margin-top: 50px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quote-section-independent p,
.quote-section-independent label {
    color: #333;
    text-align: left;
    display: block;
    font-weight: 500;
}

.quote-section-independent input[type="text"],
.quote-section-independent input[type="email"],
.quote-section-independent input[type="number"],
.quote-section-independent textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.quote-section-independent hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* 独立したフォームページのボタンのスタイルを調整 */
.quote-section-independent .form-cta {
    width: 100%;
    margin-top: 30px;
    font-size: 1.2em;
}


/* =================================
 * 11. FOOTER & CTA BAR
 * ================================= */
/* ページ下部の目立つCTAバー */
.cta-bar {
    background-color: #fff;
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 40px 5%;
}
.cta-bar p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

footer {
    padding: 20px;
    text-align: center;
    background-color: #222;
    color: #bbb;
    font-size: 0.9em;
}

/* =================================
 * 12. レスポンシブ対応 (モバイル向け)
 * ================================= */
@media (max-width: 768px) {
    .headline {
        font-size: 3em;
    }
    .sub-headline {
        font-size: 1.2em;
    }

    /* グリッドレイアウトをすべて1列にする */
    .usp-grid, .plans-grid, .activities-grid, .standard-grid {
        grid-template-columns: 1fr;
    }

    /* ナビゲーション */
    .nav-links {
        display: none; /* 通常はハンバーガーメニューに切り替える */
    }
    nav {
        justify-content: center; /* ロゴを中央に */
    }
    .logo {
        font-size: 1.3em;
    }
    .logo-icon {
        height: 25px;
    }
    .page-header {
        padding: 80px 5% 40px;
    }
    .page-header .headline {
        font-size: 2em;
    }

    .content-section {
        padding: 40px 5%;
    }
}

/* 必須マークのスタイル */
.required {
    color: red;
    font-size: 1.1em;
    margin-left: 2px;
}
.note {
    font-size: 0.9em;
    color: #666;
    margin-left: 10px;
    font-weight: 300;
}

/* フィールドセットとレジェンド */
.quote-section-independent fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.quote-section-independent legend {
    font-size: 1.5em;
    font-family: 'Playfair Display', serif;
    color: #A08A58;
    padding: 0 10px;
    font-weight: 700;
}

/* ラジオボタン/チェックボックスのグループ化 */
.form-group-options,
.form-group-checkboxes {
    display: flex;
    flex-wrap: wrap; /* 折り返しを有効化 */
    gap: 15px; /* 各オプション間のスペース */
    margin-bottom: 25px;
}
.form-group-options label,
.form-group-checkboxes label {
    display: inline-flex; /* ラベルと入力欄をインラインで配置 */
    align-items: center;
    cursor: pointer;
    font-weight: normal; /* ラベルを太字にしない */
    padding: 5px 10px;
    border: 1px solid #eee;
    background-color: #fcfcfc;
    border-radius: 3px;
    transition: background-color 0.2s;
}
.form-group-options label:hover,
.form-group-checkboxes label:hover {
    background-color: #f0f0f0;
}

.form-group-options input[type="radio"],
.form-group-checkboxes input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1); /* チェックボックスを少し大きくする */
}


/* 日付入力欄 (input[type="date"]) のスタイル調整 */
.quote-section-independent input[type="date"] {
    appearance: none; /* デフォルトのスタイルをリセット */
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
}

/* --- プラン詳細ページ専用のヘッダースタイル --- */

.plan-detail-header {
    height: 60vh;             /* 高さを確保 */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 背景画像の設定 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent; /* 既存の #333 を無効化 */
    
    padding: 0 5%;            /* 上下の大きな余白をリセット */
}

/* プラン詳細ページの時だけ文字色や影を調整 */
.plan-detail-header .headline {
    font-size: 3.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
}

.plan-detail-header .sub-headline {
    color: #ffffff;           /* 画像の上ではゴールドより白が見やすいので変更 */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* --- 詳細ページ下のナビゲーション --- */
.plan-navigation {
    padding: 80px 5%; /* 上下の余白を広めに */
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
}

/* 他のプランセクション */
.next-plans p {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.nav-cards {
    display: flex;
    justify-content: center;
    gap: 30px; /* カード同士の隙間 */
    flex-wrap: wrap;
}

/* 画像カードのデザイン */
.nav-card-mini {
    position: relative;
    width: 320px; /* 少し大きくしました */
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-card-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* 文字を見やすく */
    transition: all 0.4s ease;
}

.nav-card-mini span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    width: 90%;
    text-align: center;
    font-size: 1.1rem;
    z-index: 1;
}

.nav-card-mini:hover img {
    transform: scale(1.05);
    filter: brightness(0.4);
}

/* 一覧に戻るボタンのコンテナ（ここで余白を制御） */
.back-to-list-container {
    margin-top: 60px; /* 画像カードとの間の余白をしっかり確保 */
    text-align: center;
    border-top: 1px solid #eee; /* 境界線をうっすら追加 */
    padding-top: 40px;
}

.back-to-list {
    display: inline-block;
    color: #A08A58;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #A08A58;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.back-to-list:hover {
    background-color: #A08A58;
    color: #fff;
}


/* スマホで見るときは1列に戻す設定 */
@media (max-width: 768px) {
    .guide-profiles {
        grid-template-columns: 1fr;
    }
        /* 1. ロゴのサイズ調整（一行に収める） */
    .logo-img {
        height: 26px; /* 少しだけ小さくして余白を確保 */
        width: auto;
    }

    .logo-text {
        font-size: 0.85rem; /* 文字サイズを最適化 */
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    /* 2. メニュー本体（初期状態は非表示） */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 10px 0;
        list-style: none;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-menu li {
        text-align: center;
        padding: 15px 0;
    }

    .nav-menu li a {
        font-size: 1.1rem;
        color: #333;
        text-decoration: none;
        display: block;
    }

    /* 3. ハンバーガーボタン（位置とサイズを固定） */
    .nav-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 40px;
        height: 40px;
        position: relative;
    }

    /* 三本線の共通スタイル */
    .hamburger-icon,
    .hamburger-icon::before,
    .hamburger-icon::after {
        display: block;
        background: #333;
        height: 2px;
        width: 24px;
        border-radius: 2px;
        position: absolute; /* 絶対配置に固定 */
        transition: all 0.3s ease;
    }

    /* 真ん中の線の位置 */
    .hamburger-icon {
        top: 50%;
        transform: translateY(-50%);
    }

    /* 上の棒 (before) */
    .hamburger-icon::before {
        content: "";
        top: -8px; /* 真ん中から上に8px */
        left: 0;
    }

    /* 下の棒 (after) */
    .hamburger-icon::after {
        content: "";
        top: 8px; /* bottomではなくtopから8px下に指定して固定 */
        left: 0;
    }

    /* 4. チェックが入った時の動作（メニュー表示 ＆ ✕への変形） */
    
    .nav-toggle:checked ~ .nav-menu {
        display: flex;
    }

    .nav-toggle:checked + .nav-toggle-label .hamburger-icon {
        background: transparent; /* 真ん中の線を消す */
    }

    .nav-toggle:checked + .nav-toggle-label .hamburger-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked + .nav-toggle-label .hamburger-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    /* 閉じる用レイヤーの初期状態（非表示） */
    .nav-close-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 998; /* メニュー(1000)より下、コンテンツより上 */
        background: rgba(0, 0, 0, 0.2); /* ほんのり暗くすると高級感が出ます */
        cursor: default;
    }

    /* チェックが入った時（メニューが開いた時）だけレイヤーを表示 */
    .nav-toggle:checked ~ .nav-close-overlay {
        display: block;
    }
    
    /* メニュー表示のz-indexをレイヤーより上にする */
    .nav-menu {
        z-index: 1000;
    }
}