/* ═══════════════════════════════════════════════
   旅行プラン ルーレット - スタイルシート
   カラー: メイン #2c5f2e（深緑）/ アクセント #f5a623（オレンジ）
   ═══════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   リセット & ベース
   ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-main: #2c5f2e;
    --color-main-dark: #1e4220;
    --color-main-light: #4a8a4c;
    --color-accent: #f5a623;
    --color-accent-dark: #e8941a;
    --color-bg: #f8f7f4;
    --color-card: #ffffff;
    --color-text: #333333;
    --color-text-muted: #888888;
    --color-border: #e0ddd6;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.14);
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────
   ナビバー
   ───────────────────────────────────────────── */
.navbar {
    background: var(--color-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    text-decoration: none;
}

.navbar-brand:hover {
    text-decoration: none;
    opacity: 0.9;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
}

.navbar-links a {
    color: rgba(255, 255, 255, 0.88);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s;
    text-decoration: none;
}

.navbar-links a:hover,
.navbar-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
}

/* ハンバーガーボタン（PCでは非表示） */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   コンテナ
   ───────────────────────────────────────────── */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* ─────────────────────────────────────────────
   ページヘッダー
   ───────────────────────────────────────────── */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-main);
    margin-bottom: 0.4rem;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ─────────────────────────────────────────────
   フィルターセクション
   ───────────────────────────────────────────── */
.filter-section {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.filter-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-main);
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-select {
    width: 100%;
    max-width: 280px;
    padding: 0.5rem 0.8rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--color-text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(44, 95, 46, 0.15);
}

/* カテゴリチェックボックス */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.checkbox-label:hover {
    border-color: var(--color-main-light);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--color-main);
}

/* 季節ボタン */
.season-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.season-btn {
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text);
}

.season-btn:hover {
    border-color: var(--color-main-light);
}

.season-btn.active {
    background: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
    font-weight: 600;
}

/* ─────────────────────────────────────────────
   タブ
   ───────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
}

.tab-btn {
    padding: 0.65rem 1.4rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-family: var(--font-serif);
    cursor: pointer;
    color: var(--color-text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
    color: var(--color-main);
}

.tab-btn.active {
    color: var(--color-main);
    border-bottom-color: var(--color-main);
    font-weight: 700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ─────────────────────────────────────────────
   メインアクションボタン
   ───────────────────────────────────────────── */
.spin-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--color-main);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(44, 95, 46, 0.3);
    margin-bottom: 1.5rem;
}

.spin-btn:hover {
    background: var(--color-main-dark);
    box-shadow: 0 6px 18px rgba(44, 95, 46, 0.4);
    transform: translateY(-1px);
}

.spin-btn:active {
    transform: translateY(0);
}

.spin-btn.secondary {
    background: var(--color-accent);
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
}

.spin-btn.secondary:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.4);
}

/* ─────────────────────────────────────────────
   スポットカード
   ───────────────────────────────────────────── */
.spot-card {
    background: var(--color-card);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    margin-top: 0.5rem;
}

/* フェードインアニメーション */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.spot-card.fade-in {
    animation: fadeInUp 0.4s ease-out both;
}

.spot-name {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-main-dark);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.spot-pref {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.spot-tags {
    margin-bottom: 0.5rem;
}

.spot-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0.8rem 0;
}

.season-row {
    margin-bottom: 0.8rem;
}

.spot-desc {
    line-height: 1.9;
    font-size: 0.97rem;
    margin-bottom: 0.8rem;
}

.highlight-tags {
    margin-bottom: 1rem;
}

.spot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

/* カテゴリタグ */
.tag {
    display: inline-block;
    background: #ede9e1;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    color: #555;
}

/* 見どころタグ */
.highlight-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.83rem;
    margin-right: 6px;
    margin-bottom: 6px;
    color: #444;
}

/* 季節バッジ */
.season-badge {
    display: inline-block;
    font-size: 0.88rem;
    margin-right: 8px;
}

.season-good {
    color: #2c5f2e;
    font-weight: 600;
}

.season-off {
    color: #bbb;
}

/* リンクボタン */
.link-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.87rem;
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.link-btn:hover {
    border-color: var(--color-main);
    background: #f0f4f0;
    text-decoration: none;
}

.map-btn {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: var(--color-main-dark);
}

.map-btn:hover {
    background: #c8e6c9;
    border-color: var(--color-main);
}

/* じゃらんボタン（目立つ黄色系） */
.jalan-btn {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: #fff8e6;
    border: 2px solid #e8a000;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #8a5a00;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.jalan-btn:hover {
    background: #fff0c0;
    box-shadow: 0 2px 8px rgba(232, 160, 0, 0.3);
    text-decoration: none;
}

/* ─────────────────────────────────────────────
   ローディング・エラー
   ───────────────────────────────────────────── */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.error-msg {
    text-align: center;
    padding: 1.5rem;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: var(--radius);
    color: #c62828;
    font-size: 0.95rem;
}

/* ─────────────────────────────────────────────
   周辺おすすめ観光地
   ───────────────────────────────────────────── */
.nearby-section {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
}

.nearby-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-main);
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.nearby-grid {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.nearby-card {
    flex: 1 1 180px;
    max-width: 240px;
    background: #f5f8f5;
    border: 1px solid #c8ddc8;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nearby-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.45;
}

.nearby-pref {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.nearby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.1rem;
}

.nearby-tag {
    display: inline-block;
    background: #e6f0e6;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.73rem;
    color: var(--color-main-dark);
}

.nearby-btn {
    display: block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.6rem;
    background: var(--color-main);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    font-family: inherit;
}

.nearby-btn:hover {
    background: var(--color-main-dark);
}

/* アコーディオン内の周辺スポット */
.accordion-nearby {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-border);
}

.accordion-nearby .nearby-title {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.accordion-nearby .nearby-grid {
    gap: 0.5rem;
}

.accordion-nearby .nearby-card {
    flex: 1 1 150px;
    max-width: 200px;
    padding: 0.6rem 0.75rem;
}

/* ─────────────────────────────────────────────
   広告スペース
   ───────────────────────────────────────────── */
.ad-space {
    margin-top: 1.5rem;
    min-height: 90px;
    /* 広告挿入後は padding などを調整 */
}

/* ─────────────────────────────────────────────
   一覧タブ
   ───────────────────────────────────────────── */
.list-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
}

.region-heading {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-main);
    margin: 1.8rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-main-light);
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* アコーディオン */
.accordion-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.accordion-header:hover {
    background: #f5f3ee;
}

.accordion-name {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
}

.accordion-pref {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.accordion-arrow {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0.8rem 1.2rem 1.2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.92rem;
}

.accordion-item.open .accordion-body {
    display: block;
}

.accordion-body p {
    margin-bottom: 0.5rem;
}

.accordion-desc {
    line-height: 1.8;
    color: #555;
}

.accordion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0 0.5rem;
}

/* ─────────────────────────────────────────────
   静的ページ（about / privacy）
   ───────────────────────────────────────────── */
.content-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.content-section {
    margin-bottom: 2rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-main);
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1.5px solid #d4e8d5;
}

.content-section p {
    margin-bottom: 0.7rem;
    line-height: 1.85;
}

.content-section ul {
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
}

.content-section li {
    margin-bottom: 0.4rem;
    line-height: 1.8;
}

.mail-link {
    color: var(--color-main);
    font-weight: 600;
    font-size: 1.05rem;
}

/* ─────────────────────────────────────────────
   フッター
   ───────────────────────────────────────────── */
.footer {
    background: var(--color-main-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ─────────────────────────────────────────────
   レスポンシブ（スマホ対応）
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
    /* ナビバー: ハンバーガーメニュー化 */
    .hamburger {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        background: var(--color-main-dark);
        padding: 1rem;
        gap: 0.3rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links a {
        padding: 0.6rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }

    /* コンテナ */
    .container {
        padding: 1.2rem 1rem;
    }

    /* ページヘッダー */
    .page-header h1 {
        font-size: 1.5rem;
    }

    /* フィルター */
    .filter-select {
        max-width: 100%;
    }

    .checkbox-group {
        gap: 0.4rem;
    }

    /* スポットカード */
    .spot-card {
        padding: 1.2rem 1.2rem;
    }

    .spot-name {
        font-size: 1.35rem;
    }

    .spot-actions {
        flex-direction: column;
    }

    .link-btn {
        text-align: center;
    }

    /* タブ */
    .tab-btn {
        font-size: 0.9rem;
        padding: 0.55rem 0.9rem;
    }

    /* アコーディオン */
    .accordion-pref {
        display: none;
    }

    /* フッター */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    /* コンテンツカード */
    .content-card {
        padding: 1.2rem;
    }

    /* 周辺スポット */
    .nearby-grid {
        flex-direction: column;
    }

    .nearby-card {
        max-width: 100%;
    }

    .accordion-nearby .nearby-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.25rem;
    }

    .spin-btn {
        font-size: 1rem;
    }

    .season-buttons {
        gap: 0.4rem;
    }

    .season-btn {
        font-size: 0.82rem;
        padding: 0.35rem 0.7rem;
    }
}
