@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

/* =============================================
   Stampia - 参加者向けCSS
   「集める楽しさを、もっと手軽に。」
   ============================================= */

/* --- ブランドトークン --- */
:root {
    --brand-primary: #FF7A59;
    --brand-primary-dark: #ED5C39;
    --brand-primary-soft: #FFE4DC;
    --brand-secondary: #14B8A6;
    --brand-secondary-soft: #CCFBF1;
    --brand-accent: #FCD34D;

    --brand-cream: #FFFBF5;
    --brand-surface: #FFFFFF;
    --brand-ink: #1F2937;
    --brand-ink-soft: #6B7280;
    --brand-ink-muted: #94A3B8;
    --brand-line: #F1E8DE;

    --success: #10B981;
    --warning: #F59E0B;
    --danger:  #EF4444;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 4px rgba(31, 41, 55, 0.06);
    --shadow-md: 0 4px 16px rgba(255, 122, 89, 0.10);
    --shadow-lg: 0 10px 30px rgba(31, 41, 55, 0.12);

    --grad-warm: linear-gradient(135deg, #FF8A6B 0%, #FF7A59 50%, #ED5C39 100%);
    --grad-soft: linear-gradient(135deg, #FFE4DC 0%, #FFFBF5 100%);
    --grad-stamp: linear-gradient(90deg, #FF7A59 0%, #FCD34D 100%);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
                 'Noto Sans JP', 'Yu Gothic', sans-serif;
    line-height: 1.7;
    color: var(--brand-ink);
    background-color: var(--brand-cream);
    min-height: 100vh;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- ヘッダー --- */
.header {
    background: var(--grad-warm);
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(237, 92, 57, 0.18);
}

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.header-title a {
    color: #fff;
    text-decoration: none;
}

/* --- メイン --- */
.main {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* --- ページタイトル --- */
.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    color: var(--brand-ink);
    letter-spacing: 0.01em;
}

/* --- セクションタイトル --- */
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 28px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--brand-primary);
    color: var(--brand-ink);
    line-height: 1.4;
}

/* --- ヒーローセクション --- */
.hero {
    background: var(--grad-warm);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 22px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -40px; left: -20px;
    width: 100px; height: 100px;
    background: rgba(252, 211, 77, 0.18);
    border-radius: 50%;
}

.hero-inner { position: relative; z-index: 1; }

.hero-lead {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.7;
}

/* --- スタンプステータス --- */
.stamp-status,
.stamp-progress {
    background: var(--brand-surface);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-line);
}

.stamp-status-label {
    font-size: 0.9rem;
    color: var(--brand-ink-soft);
    margin-bottom: 8px;
}

.stamp-status-count {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.count-num {
    color: var(--brand-primary);
    font-size: 2.4rem;
    font-weight: 900;
}

.count-sep {
    color: var(--brand-ink-muted);
}

.count-total {
    color: var(--brand-ink-soft);
}

.stamp-complete-msg {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 16px;
}

.stamp-remaining {
    font-size: 0.95rem;
    color: var(--brand-ink-soft);
}

.stamp-remaining strong {
    color: var(--brand-primary);
    font-size: 1.15rem;
}

/* --- プログレスバー --- */
.progress-bar {
    width: 100%;
    height: 14px;
    background: var(--brand-line);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 14px 0;
}

.progress-fill {
    height: 100%;
    background: var(--grad-stamp);
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

/* --- 参加方法ステップ --- */
.how-to {
    margin-bottom: 24px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--brand-surface);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-line);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--grad-warm);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--brand-ink);
}

/* --- ボタン --- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--grad-warm);
    color: #fff;
    box-shadow: 0 3px 10px rgba(237, 92, 57, 0.25);
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    box-shadow: 0 6px 18px rgba(237, 92, 57, 0.35);
}

.btn-secondary {
    background: #fff;
    color: var(--brand-ink);
    border: 1.5px solid var(--brand-line);
}

.btn-secondary:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1.05rem;
    min-height: 56px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
}

/* --- ナビゲーションボタン --- */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.nav-buttons .btn {
    text-align: center;
}

/* --- 店舗一覧 --- */
.spot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spot-card {
    background: var(--brand-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spot-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.spot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.spot-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-ink);
    min-width: 0;             /* flex内で長い店名が折り返せるように */
    overflow-wrap: anywhere;  /* 店名のはみ出し・切れ対策 */
}

.stamp-badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.stamp-badge.stamped {
    background: var(--brand-secondary-soft);
    color: var(--brand-secondary);
}

.stamp-badge.not-stamped {
    background: #F3F4F6;
    color: #9CA3AF;
}

.spot-area {
    font-size: 0.85rem;
    color: var(--brand-ink-soft);
    margin-bottom: 6px;
}

.spot-desc {
    font-size: 0.9rem;
    color: var(--brand-ink-soft);
    margin-bottom: 12px;
    line-height: 1.65;
}

.spot-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed var(--brand-line);
}

.spot-seats {
    font-size: 0.85rem;
    color: var(--brand-ink-soft);
}

/* --- 混雑状況 --- */
.crowd-status {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
}

.crowd-low {
    background: var(--brand-secondary-soft);
    color: var(--brand-secondary);
}

.crowd-medium {
    background: #FEF3C7;
    color: #D97706;
}

.crowd-high {
    background: #FEE2E2;
    color: var(--danger);
}

.crowd-unknown {
    background: #F3F4F6;
    color: var(--brand-ink-muted);
}

/* --- スタンプ結果 --- */
.stamp-result {
    background: var(--brand-surface);
    border-radius: var(--radius-lg);
    padding: 36px 22px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--brand-line);
}

.stamp-result.success {
    border-top: 6px solid var(--success);
}

.stamp-result.already {
    border-top: 6px solid var(--brand-primary);
}

.stamp-result.error {
    border-top: 6px solid var(--danger);
}

.result-icon {
    font-size: 3.2rem;
    margin-bottom: 14px;
}

.result-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--brand-ink);
}

.result-spot-name {
    font-size: 1.1rem;
    color: var(--brand-ink-soft);
    margin-bottom: 12px;
}

.result-message {
    font-size: 0.95rem;
    color: var(--brand-ink-soft);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* --- スタンプグリッド（マイページ） --- */
.stamp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stamp-card {
    background: var(--brand-surface);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stamp-card.stamped {
    border: 2px solid var(--brand-primary);
    background: var(--brand-primary-soft);
}

.stamp-card.not-stamped {
    border: 2px dashed var(--brand-line);
    opacity: 0.7;
}

.stamp-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.stamp-card-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-ink);
    line-height: 1.3;
}

.stamp-card-area {
    font-size: 0.7rem;
    color: var(--brand-ink-muted);
    margin-top: 2px;
}

/* --- フォーム --- */
.apply-section,
.thanks-section {
    background: var(--brand-surface);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-line);
    text-align: center;
}

.apply-campaign {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-ink);
    margin-bottom: 8px;
}

.apply-info {
    font-size: 0.95rem;
    color: var(--brand-ink-soft);
    margin-bottom: 20px;
    line-height: 1.7;
}

.apply-form {
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-ink);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid var(--brand-line);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.12);
}

.required {
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.optional {
    color: var(--brand-ink-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

/* --- エラー表示 --- */
.error-box {
    background: #FFF5F5;
    border: 1px solid #FECACA;
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* --- データなし --- */
.no-data {
    text-align: center;
    color: var(--brand-ink-muted);
    padding: 40px 20px;
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 24px 16px;
    color: var(--brand-ink-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--brand-line);
    margin-top: 40px;
    background: var(--brand-cream);
}

.footer-brand {
    color: var(--brand-primary);
    font-weight: 700;
}

/* --- レスポンシブ --- */
@media (min-width: 480px) {
    .stamp-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .main {
        padding: 32px 24px 60px;
    }

    .hero-lead {
        font-size: 1.9rem;
    }

    .stamp-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* =========================================
   参加者ページ写真表示 (2026-05-15 追加)
   ========================================= */

.spot-photo-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f1f5f9;
    aspect-ratio: 16 / 9;
    margin: -16px -16px 12px -16px;
    width: calc(100% + 32px);
}
.spot-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* クイズ表示 */
.spot-quiz {
    background: #fff7ed;
    border-left: 3px solid #ea580c;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    margin: 10px 0;
    font-size: 0.95rem;
    color: #7c2d12;
}
.spot-quiz strong {
    color: #ea580c;
    font-weight: 700;
    margin-right: 6px;
}

/* =========================================
   イベント概要セクション (2026-05-15 追加)
   ========================================= */

.event-overview {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 20px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.event-overview .section-title {
    font-size: 1.05rem;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.overview-list {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px 14px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}
@media (max-width: 480px) {
    .overview-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .overview-list dt {
        margin-top: 10px;
    }
}
.overview-list dt {
    font-weight: 600;
    color: #475569;
    padding-top: 2px;
}
.overview-list dd {
    margin: 0 0 4px 0;
    color: #1e293b;
}
.overview-sub {
    color: #64748b;
    font-size: 0.85rem;
}
.overview-note {
    margin: 6px 0 0 0;
    color: #475569;
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 6px;
}
.overview-notes-block {
    background: #fff7ed;
    border-left: 3px solid #f97316;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    color: #7c2d12;
}
.badge-reserve {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 700;
}
.event-overview a {
    color: #ea580c;
    text-decoration: underline;
}

/* =========================================
   スポット詳細ページ + お知らせ + メニュー (2026-05-15 追加)
   ========================================= */

.spot-detail-hero {
    margin: 0 -16px 16px -16px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}
.spot-detail-hero img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.spot-detail-head {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.spot-detail-name {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.spot-photo-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.spot-photo-thumbs img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px;
}

.spot-detail-link {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.spot-detail-link:hover { text-decoration: underline; }

.content-block {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.content-block-title {
    font-size: 1.05rem;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

/* お知らせカード */
.announcement-card {
    border-left: 3px solid #ea580c;
    padding: 10px 14px;
    background: #fffbeb;
    border-radius: 0 8px 8px 0;
    margin-bottom: 10px;
}
.announcement-card:last-child { margin-bottom: 0; }
.announcement-title {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #7c2d12;
}
.announcement-date {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0 0 6px 0;
}
.announcement-body {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* メニューカード */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.menu-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.menu-card-photo {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    overflow: hidden;
}
.menu-card-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.menu-card-body { padding: 10px 12px; }
.menu-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.menu-card-name { font-size: 1rem; color: #1e293b; }
.menu-card-price { color: #ea580c; font-weight: 700; font-size: 0.95rem; }
.menu-card-desc { font-size: 0.85rem; color: #64748b; margin: 4px 0 0 0; line-height: 1.5; }

/* =============================================
   トップ集約: お店からのお知らせ
   ============================================= */
.rally-news {
    background: #fff;
    border-radius: 12px;
    padding: 18px 18px 16px;
    margin: 0 auto 18px;
    max-width: 720px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.rally-news .section-title {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.rally-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rally-news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fffbeb;
    border-left: 3px solid var(--theme-primary, #ea580c);
    border-radius: 0 10px 10px 0;
    padding: 10px 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rally-news-card:hover,
.rally-news-card:focus {
    transform: translateY(-1px);
    background: #fff5d6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.rally-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}
.rally-news-spot {
    font-weight: 600;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}
.rally-news-date {
    color: #94a3b8;
    flex: 0 0 auto;
}
.rally-news-title {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
    color: #7c2d12;
    line-height: 1.4;
}
.rally-news-excerpt {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rally-news-more {
    text-align: right;
    margin: 10px 0 0 0;
    font-size: 0.85rem;
}
.rally-news-more a {
    color: var(--theme-primary, #ea580c);
    text-decoration: none;
}
.rally-news-more a:hover { text-decoration: underline; }


/* =============================================
   チケット販売 (参加者ページ)
   ============================================= */

/* トップの「チケット販売中」プロモ */
.rally-tickets-promo {
    background: #fff;
    border-radius: 12px;
    padding: 18px 18px 14px;
    margin: 0 auto 18px;
    max-width: 720px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.rally-tickets-promo .section-title {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.05rem;
}
.ticket-promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.ticket-promo-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #fffbeb 0%, #fff5d6 100%);
    border: 1px solid #fef3c7;
    border-left: 4px solid var(--theme-primary, #ea580c);
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ticket-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ticket-promo-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.98rem;
    margin-bottom: 4px;
}
.ticket-promo-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 8px 0;
}
.ticket-promo-price {
    font-weight: 700;
    color: var(--theme-primary, #ea580c);
    font-size: 1.05rem;
    text-align: right;
}

/* チケット一覧ページ */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 10px;
}
.ticket-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.15s;
}
.ticket-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.ticket-card.is-disabled { opacity: 0.6; }
.ticket-card-name {
    margin: 0;
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 700;
}
.ticket-card-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}
.ticket-card-meta {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
}
.ticket-card-meta p { margin: 2px 0; }
.ticket-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: auto;
}
.ticket-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-primary, #ea580c);
}
.ticket-status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 600;
}

/* 購入フォーム */
.ticket-buy-summary {
    background: #fffbeb;
    border-left: 4px solid var(--theme-primary, #ea580c);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 18px;
}
.ticket-card-price-large {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-primary, #ea580c);
    margin: 10px 0 0 0;
}
.ticket-buy-form .form-group {
    margin-bottom: 14px;
}
.ticket-buy-form label {
    display: block;
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 4px;
}
.ticket-buy-form input[type="text"],
.ticket-buy-form input[type="email"],
.ticket-buy-form input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* チケットQR表示 */
.ticket-display {
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px;
    margin: 0 auto 18px;
    max-width: 480px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.ticket-display-head {
    text-align: center;
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 18px;
    position: relative;
}
.ticket-display-rally {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 6px;
}
.ticket-display-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-primary, #ea580c);
    margin: 0 0 6px;
}
.ticket-display-qty {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
}
.ticket-display-used-badge {
    position: absolute;
    right: 0;
    top: 0;
    background: #e2e8f0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.ticket-display-qr {
    text-align: center;
    padding: 16px;
    background: #fff;
}
.ticket-display-qr #qrcode {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.ticket-display-meta {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}
.ticket-display-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
}

/* マイページの購入チケット */
.my-tickets {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 auto 14px;
    max-width: 720px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.my-tickets .section-title {
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.my-tickets-list { display: flex; flex-direction: column; gap: 8px; }
.my-ticket-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffbeb;
    border-left: 3px solid var(--theme-primary, #ea580c);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, transform 0.15s;
}
.my-ticket-row:hover { background: #fef3c7; transform: translateX(2px); }
.my-ticket-row-info { flex: 1; min-width: 0; }
.my-ticket-row-qty {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 4px;
}
.my-ticket-row-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin: 4px 0 0 0;
}
.my-ticket-row-arrow {
    color: var(--theme-primary, #ea580c);
    font-size: 1.1rem;
    flex: 0 0 auto;
}
.pill {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 600; vertical-align: middle;
}
.pill-onsale { background: #dcfce7; color: #166534; }
.pill-hidden { background: #e2e8f0; color: #475569; }
.pill-soldout { background: #fee2e2; color: #b91c1c; }


/* チケットカード内の「購入する」ボタン - 文字を確実に白に */
.ticket-card .ticket-card-bottom .btn,
.ticket-card .ticket-card-bottom .btn-primary,
.ticket-card .ticket-card-bottom a.btn,
.ticket-card .ticket-card-bottom a.btn:link,
.ticket-card .ticket-card-bottom a.btn:visited,
.ticket-card .ticket-card-bottom a.btn:hover {
    color: #fff !important;
    background: var(--theme-primary, #ea580c) !important;
    padding: 9px 22px;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    line-height: 1.4;
}
.ticket-card .ticket-card-bottom .btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.ticket-card .ticket-card-bottom .ticket-status-pill {
    /* 販売不可時のpillはオレンジボタンと区別 */
    color: #92400e !important;
    background: #fef3c7 !important;
}


/* ヘッダーバーの右側ナビゲーション */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 16px;
}
.header-nav {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.header-nav-link {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.18);
    transition: background 0.15s;
    white-space: nowrap;
    line-height: 1.3;
}
.header-nav-link:hover {
    background: rgba(255,255,255,0.32);
}
@media (max-width: 480px) {
    .header-title { font-size: 1rem; }
    .header-nav-link { font-size: 0.75rem; padding: 5px 8px; }
}


/* ヒーロー: 開催前 / 開催終了の状態バッジ */
.hero-status-badge {
    display: inline-block;
    background: rgba(0,0,0,0.55);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    text-shadow: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-coming-soon .hero-status-badge { background: rgba(202, 138, 4, 0.85); }
.hero-ended .hero-status-badge       { background: rgba(71, 85, 105, 0.85); }
.hero-ended { filter: saturate(0.5); }


/* ヒーロー画像とテキストを縦に分離する構造 (2026-05-16) */
.hero { background: none !important; padding: 0 !important; }
.hero-img {
    width: 100%;
    line-height: 0;
    background: #1e293b;
    text-align: center;
}
.hero-img img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.hero-text {
    padding: 36px 24px;
    text-align: center;
}
.hero-text .hero-lead {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.hero-text .hero-sub {
    font-size: 0.95rem;
    margin: 6px 0;
    line-height: 1.6;
    opacity: 0.96;
}
.hero-text .hero-status-badge {
    display: inline-block;
    background: rgba(0,0,0,0.4);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}
.hero-ended .hero-img img { filter: saturate(0.4); }
@media (max-width: 480px) {
    .hero-text .hero-lead { font-size: 1.3rem; }
    .hero-img img { max-height: 420px; }
}


/* === [2026-05-16] 参加者ページ デザインリフレッシュ === */

/* ========== カラーパレット & タイポグラフィの再定義 ========== */
:root {
    /* 既存の --theme-primary / --theme-accent はラリーごとに変わる */
    --c-ink:        #0f172a;
    --c-text:       #1e293b;
    --c-muted:      #64748b;
    --c-soft:       #94a3b8;
    --c-line:       #e2e8f0;
    --c-line-soft:  #f1f5f9;
    --c-bg:         #fafbfc;
    --c-card:       #ffffff;
    --c-cream:      #fff7ed;
    --c-success:    #16a34a;
    --c-warn:       #ca8a04;
    --c-danger:     #b91c1c;
    --shadow-1:     0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
    --shadow-2:     0 2px 4px rgba(15, 23, 42, 0.05), 0 14px 36px rgba(15, 23, 42, 0.08);
    --radius-sm:    8px;
    --radius:       14px;
    --radius-lg:    18px;
    --radius-pill:  999px;
}

html, body {
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

main.main {
    padding: 0 16px 48px;
    max-width: 720px;
    margin: 0 auto;
}

/* ========== ヘッダー ========== */
.header {
    padding: 14px 18px;
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.header-title { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; }
.header-title a { text-decoration: none; }
.header-nav-link {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 500;
    border-radius: var(--radius-pill);
}

/* ========== ヒーロー ========== */
.hero {
    margin: 16px 0 22px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    background: var(--c-card) !important;
}
.hero-img {
    background: #0f172a;
}
.hero-img img {
    max-height: 480px;
}
.hero-text {
    padding: 32px 24px 36px !important;
    position: relative;
}
.hero-text .hero-lead {
    font-size: 1.7rem !important;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.hero-text .hero-sub {
    font-size: 0.95rem;
    opacity: 0.95;
    max-width: 540px;
    margin: 6px auto;
}
.hero-text .hero-status-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========== 共通カード ========== */
.event-overview,
.stamp-status,
.my-tickets,
.rally-news,
.rally-tickets-promo,
.stamp-grid-section,
.how-to,
.content-block {
    background: var(--c-card);
    border-radius: var(--radius);
    padding: 24px 22px;
    margin: 0 auto 16px;
    max-width: 720px;
    box-shadow: var(--shadow-1);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

/* セクションタイトルの統一感 */
.section-title {
    position: relative;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding: 0 0 12px 14px;
    border-bottom: 1px solid var(--c-line-soft);
    letter-spacing: 0.01em;
    color: var(--c-ink) !important;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 18px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--theme-primary, #ea580c), var(--theme-accent, #f97316));
}

/* ========== イベント概要 ========== */
.overview-list {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px 16px;
    margin: 0;
}
.overview-list dt {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-text);
    padding: 2px 0 2px 10px;
    border-left: 3px solid var(--theme-primary, #1f1f1f);
    letter-spacing: 0.02em;
    line-height: 1.5;
}
.overview-list dd {
    font-size: 0.94rem;
    color: var(--c-text);
    margin: 0;
    line-height: 1.7;
}
.overview-sub {
    color: var(--c-muted);
    font-size: 0.85rem;
}
.badge-reserve {
    display: inline-block;
    padding: 2px 10px;
    background: #fff7ed;
    color: #c2410c;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

/* ========== スタンプ進捗 ========== */
.stamp-status { text-align: center; }
.stamp-status-label {
    color: var(--c-muted);
    font-size: 0.85rem;
    margin: 0 0 6px;
}
.stamp-status-count {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--c-ink);
}
.count-num { color: var(--theme-primary, #ea580c); }
.count-sep, .count-total { color: var(--c-soft); font-weight: 500; }
.stamp-remaining {
    font-size: 0.92rem;
    color: var(--c-muted);
    margin: 6px 0 14px;
}
.stamp-remaining strong { color: var(--theme-primary, #ea580c); font-weight: 700; }
.stamp-complete-msg {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0 14px;
}

/* ========== ボタン ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px !important;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    border: 1.5px solid transparent;
}
.btn-primary {
    background: linear-gradient(180deg, var(--theme-accent, #f97316) 0%, var(--theme-primary, #ea580c) 100%) !important;
    color: #fff !important;
    border-color: var(--theme-primary, #ea580c) !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}
.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.36);
}
.btn-secondary {
    background: var(--c-card);
    color: var(--c-text);
    border-color: var(--c-line);
    box-shadow: var(--shadow-1);
}
.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--c-soft);
    box-shadow: var(--shadow-2);
}
.btn-lg { padding: 14px 28px !important; font-size: 1rem; }

/* ナビボタン */
.nav-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0 32px;
}
.nav-buttons .btn { min-width: 180px; }

/* ========== 「参加方法」3ステップ ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}
.step {
    text-align: center;
    padding: 18px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--theme-accent, #f97316), var(--theme-primary, #ea580c));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}
.step-text { font-size: 0.85rem; color: var(--c-text); line-height: 1.5; }

/* ========== お知らせ集約 ========== */
.rally-news-list { display: flex; flex-direction: column; gap: 10px; }
.rally-news-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 3px solid var(--theme-primary, #ea580c);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rally-news-card:hover { transform: translateX(2px); box-shadow: var(--shadow-1); }
.rally-news-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--c-muted); margin-bottom: 4px; }
.rally-news-title { font-size: 1rem; font-weight: 700; color: #7c2d12; margin: 0 0 4px; }
.rally-news-excerpt { font-size: 0.86rem; color: var(--c-muted); margin: 0; line-height: 1.6; }

/* ========== チケット販売中プロモ ========== */
.ticket-promo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ticket-promo-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fff5d6 100%);
    border: 1px solid #fde68a;
    border-left: 4px solid var(--theme-primary, #ea580c);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ticket-promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ticket-promo-name { font-weight: 700; color: var(--c-ink); font-size: 1rem; margin-bottom: 4px; }
.ticket-promo-desc { font-size: 0.82rem; color: var(--c-muted); margin: 0 0 8px; }
.ticket-promo-price { font-weight: 800; font-size: 1.15rem; color: var(--theme-primary, #ea580c); text-align: right; }

/* ========== チケット一覧 ========== */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ticket-card {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-1);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ticket-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ticket-card-name { font-size: 1.05rem; font-weight: 700; color: var(--c-ink); margin: 0; }
.ticket-card-desc { font-size: 0.88rem; color: var(--c-muted); margin: 0; line-height: 1.7; }
.ticket-card-meta { font-size: 0.82rem; color: var(--c-muted); }
.ticket-card-bottom { border-top: 1px solid var(--c-line-soft); padding-top: 12px; margin-top: auto; }
.ticket-card-price { font-size: 1.3rem; font-weight: 800; color: var(--theme-primary, #ea580c); }

/* ========== マイページ: 購入したチケット ========== */
.my-tickets-list { display: flex; flex-direction: column; gap: 8px; }
.my-ticket-row {
    background: linear-gradient(135deg, #fffbeb 0%, #fff 50%);
    border: 1px solid #fde68a;
    border-left: 3px solid var(--theme-primary, #ea580c);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
}
.my-ticket-row:hover { transform: translateX(3px); box-shadow: var(--shadow-1); }
.my-ticket-row-arrow { color: var(--theme-primary, #ea580c); font-size: 1.2rem; font-weight: 700; }
.my-ticket-row-meta { font-size: 0.78rem; color: var(--c-muted); margin: 4px 0 0; }

/* ========== チケットQR表示 ========== */
.ticket-display {
    background: var(--c-card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-2);
    border: 1px solid var(--c-line);
}
.ticket-display-head {
    border-bottom: 2px dashed var(--c-line);
    padding-bottom: 20px;
    margin-bottom: 22px;
}
.ticket-display-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--theme-primary, #ea580c);
}

/* ========== スタンプグリッド ========== */
.stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.stamp-card {
    text-align: center;
    padding: 16px 8px;
    border-radius: var(--radius);
    border: 1.5px solid var(--c-line);
    background: var(--c-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stamp-card.stamped {
    border-color: var(--theme-primary, #ea580c);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}
.stamp-card.not-stamped { opacity: 0.6; }
.stamp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.stamp-icon { font-size: 1.6rem; margin-bottom: 4px; }
.stamp-card-name { font-size: 0.82rem; color: var(--c-text); line-height: 1.4; }

/* ========== 進捗バー ========== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--c-line-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 14px 0 12px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-accent, #f97316), var(--theme-primary, #ea580c));
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

/* ========== フッター ========== */
.footer {
    text-align: center;
    padding: 32px 16px;
    color: var(--c-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--c-line);
    margin-top: 24px;
    background: var(--c-card);
}
.footer-brand {
    color: var(--theme-primary, #ea580c);
    font-weight: 600;
    text-decoration: none;
}

/* ========== スポット詳細ページ ========== */
.spot-detail-hero {
    margin: 16px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    aspect-ratio: 16 / 9;            /* 高さを固定し画像の拡大表示を防ぐ */
    background: #f1f5f9;
}
/* 16:9枠にトリミング表示(height:auto だと縦長画像が拡大表示されてしまう) */
.spot-detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-detail-head {
    background: var(--c-card);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    box-shadow: var(--shadow-1);
    border: 1px solid rgba(15, 23, 42, 0.04);
}
.spot-detail-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c-ink);
    margin: 0 0 8px;
    overflow-wrap: anywhere;  /* 長い店名のはみ出し・切れ対策 */
}
.spot-desc {
    color: var(--c-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ========== レスポンシブ ========== */
@media (max-width: 480px) {
    main.main { padding: 0 12px 32px; }
    .event-overview,
    .stamp-status,
    .my-tickets,
    .rally-news,
    .rally-tickets-promo,
    .stamp-grid-section,
    .how-to,
    .content-block { padding: 18px 16px; }
    .hero-text .hero-lead { font-size: 1.4rem !important; }
    .stamp-status-count { font-size: 2.2rem; }
    .steps { grid-template-columns: 1fr; }
    .step { padding: 14px; }
    .overview-list { grid-template-columns: 90px 1fr; gap: 8px 10px; }
    .nav-buttons .btn { min-width: 0; flex: 1; }
}


/* === [2026-05-16-b] テーマカラー徹底追従 (黄系固定色の撤去) === */
/* 黄系の固定背景・固定ボーダーを撤去し、ニュートラル白 + テーマカラー左バーに統一 */

/* お知らせカード (集約版) */
.rally-news-card {
    background: var(--c-card) !important;
    border: 1px solid var(--c-line) !important;
    border-left: 3px solid var(--theme-primary, #ea580c) !important;
}
.rally-news-card:hover {
    background: var(--c-bg) !important;
    border-color: var(--c-line) !important;
    border-left-color: var(--theme-primary, #ea580c) !important;
}
.rally-news-title {
    color: var(--c-ink) !important;
}
.rally-news-meta {
    color: var(--c-muted) !important;
}
.rally-news-spot {
    color: var(--c-text) !important;
}
.rally-news-date {
    color: var(--c-soft) !important;
}

/* チケット販売中プロモ (トップとマイページ) */
.ticket-promo-card {
    background: var(--c-card) !important;
    border: 1px solid var(--c-line) !important;
    border-left: 4px solid var(--theme-primary, #ea580c) !important;
}
.ticket-promo-card:hover {
    background: var(--c-bg) !important;
}
.ticket-promo-name {
    color: var(--c-ink) !important;
}
.ticket-promo-desc {
    color: var(--c-muted) !important;
}

/* マイページの購入したチケット */
.my-ticket-row {
    background: var(--c-card) !important;
    border: 1px solid var(--c-line) !important;
    border-left: 3px solid var(--theme-primary, #ea580c) !important;
}
.my-ticket-row:hover {
    background: var(--c-bg) !important;
    border-color: var(--c-line) !important;
    border-left-color: var(--theme-primary, #ea580c) !important;
}

/* 「お店からのお知らせ」スポット詳細ページ側のお知らせカード */
.announcement-card {
    background: var(--c-card) !important;
    border: 1px solid var(--c-line) !important;
    border-left: 3px solid var(--theme-primary, #ea580c) !important;
}
.announcement-title {
    color: var(--c-ink) !important;
}
.announcement-body {
    color: var(--c-text) !important;
}
.announcement-date {
    color: var(--c-soft) !important;
}

/* チケット購入時のサマリー */
.ticket-buy-summary {
    background: var(--c-card) !important;
    border: 1px solid var(--c-line) !important;
    border-left: 4px solid var(--theme-primary, #ea580c) !important;
}

/* スタンプカード (取得済) */
.stamp-card.stamped {
    background: var(--c-card) !important;
    border-color: var(--theme-primary, #ea580c) !important;
}

/* ステップ番号: 既に gradient で var(--theme-accent/primary) を使ってるはず */
.step-num {
    background: linear-gradient(135deg, var(--theme-accent, #f97316), var(--theme-primary, #ea580c)) !important;
}

/* 一応すべての固定 #fde68a / #fef3c7 / #fffbeb / #fff7ed をニュートラル背景に上書き */
[class*="card"][style*="background"][style*="#fff"],
[class*="card"][style*="background-color"][style*="#fff"] {
    /* インライン style は上書きできないので別途確認 */
}


/* 参加者ページ フラッシュメッセージ統一 */
.flash-info, .flash-ok, .flash-err {
    padding: 12px 16px;
    border-radius: var(--radius-sm, 8px);
    margin: 0 auto 14px;
    max-width: 720px;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid;
}
.flash-info { background: var(--c-card); color: var(--c-text); border-color: var(--c-line); }
.flash-info::before { content: "ℹ️ "; }
.flash-ok   { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.flash-err  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }


/* === [2026-05-16-c] 残存オレンジ色の最終撲滅 (!important) === */
/* Specificity competition / variable fallback 問題で残るオレンジを完全に上書き */

/* セクションタイトル左の縦バー (linear-gradient が theme variable を見ないケース対策) */
.event-overview .section-title::before,
.stamp-status .section-title::before,
.my-tickets .section-title::before,
.rally-news .section-title::before,
.rally-tickets-promo .section-title::before,
.stamp-grid-section .section-title::before,
.how-to .section-title::before,
.content-block .section-title::before,
.section-title::before {
    background: var(--theme-primary, #ea580c) !important;
}

/* event-overview 内のリンク (古い固定色を撲滅) */
.event-overview a,
.event-overview a:link,
.event-overview a:visited {
    color: var(--theme-primary, #ea580c) !important;
}

/* rally-news-more / ticket promo footer リンクも保険で */
.rally-news-more a,
.rally-tickets-promo a,
.my-tickets a {
    color: var(--theme-primary, #ea580c) !important;
}

/* 価格表示 */
.ticket-card-price,
.ticket-promo-price,
.ticket-card-price-large,
.menu-card-price,
.ticket-display-name {
    color: var(--theme-primary, #ea580c) !important;
}

/* progress bar / count-num */
.count-num {
    color: var(--theme-primary, #ea580c) !important;
}
.progress-fill {
    background: linear-gradient(90deg, var(--theme-accent, #f97316), var(--theme-primary, #ea580c)) !important;
}

/* 古い .section-title 定義群 (border-left: 4px solid var(--brand-primary) etc) を無効化 */
.section-title {
    border-left: none !important;
    padding-left: 14px !important;
}


/* === [2026-05-16-d] セクションタイトル左バーを撤去 === */
/* セクションタイトル左の縦バーを完全に消す (アイコンと重複して見えづらいため) */
.section-title::before {
    display: none !important;
    content: none !important;
}
.section-title {
    padding-left: 0 !important;
    border-left: none !important;
}

/* === チケットpromoのリード文・disabled状態 === */
.ticket-promo-lead {
    font-size: 0.9rem;
    color: #475569;
    background: #fef3c7;
    border-left: 4px solid #facc15;
    padding: 10px 14px;
    margin: 0 0 14px 0;
    border-radius: 6px;
    line-height: 1.6;
}
.ticket-promo-lead strong { color: #854d0e; }
.ticket-promo-card.is-disabled {
    opacity: 0.78;
    pointer-events: auto;  /* リンクは生きてる(チケット一覧へ) */
}
.ticket-promo-status {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.45);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

/* === /tickets ページのヘッダ === */
.tickets-page-header {
    text-align: center;
    padding: 28px 16px 18px;
    margin-bottom: 18px;
}
.tickets-page-header .page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--c-ink, #1f1f1f);
}
.tickets-page-header .page-subtitle {
    margin: 8px 0 0 0;
    font-size: 0.92rem;
    color: var(--c-muted, #64748b);
}

/* === チケットっぽい見た目 (本物のチケット風) === */
.ticket-card,
.ticket-promo-card {
    position: relative;
    overflow: visible !important;
    border-radius: 10px !important;
    /* 強めのシャドウでカード感 */
    box-shadow: 0 4px 14px rgba(0,0,0,0.10) !important;
    /* スマホでタップ時のテキスト選択ハイライトを無効化 (黒背景で文字色と被って消えるのを防ぐ) */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
.ticket-card *,
.ticket-promo-card * {
    -webkit-user-select: none;
    user-select: none;
}

/* 左右の半円ノッチ(ページ背景色で穴を開けたように見せる) */
.ticket-card::before,
.ticket-card::after,
.ticket-promo-card::before,
.ticket-promo-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--page-bg, #f5f5f7);
    transform: translateY(-50%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    z-index: 2;
    pointer-events: none;
}
.ticket-card::before,
.ticket-promo-card::before { left: -9px; }
.ticket-card::after,
.ticket-promo-card::after  { right: -9px; }

/* バッジ (前売り/当日券) */
.ticket-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 前売り = 黄色 */
.ticket-card--presale {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1px solid #facc15 !important;
    border-left: 4px solid #ca8a04 !important;
}
.ticket-card--presale .ticket-card-name,
.ticket-card--presale .ticket-promo-name { color: #422006 !important; }
.ticket-card--presale .ticket-card-price,
.ticket-card--presale .ticket-promo-price { color: #854d0e !important; }
.ticket-card--presale .ticket-card-desc,
.ticket-card--presale .ticket-promo-desc { color: #713f12 !important; }
.ticket-card--presale .ticket-badge {
    background: #ca8a04;
    color: #fef9c3;
}

/* 当日券 = 黒 */
.ticket-card--dayof {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%) !important;
    border: 1px solid #404040 !important;
    border-left: 4px solid #facc15 !important;
}
.ticket-card--dayof .ticket-card-name,
.ticket-card--dayof .ticket-promo-name,
.ticket-card--dayof .ticket-card-price,
.ticket-card--dayof .ticket-promo-price,
.ticket-card--dayof .ticket-card-desc,
.ticket-card--dayof .ticket-promo-desc,
.ticket-card--dayof .ticket-card-meta p { color: #f5f5f7 !important; }
.ticket-card--dayof .ticket-badge {
    background: #fbbf24;
    color: #1f1f1f;
}

/* ノッチ色は枠とコントラスト持たせる (--dayof は暗い背景なので穴も暗く) */
.ticket-card--dayof::before,
.ticket-card--dayof::after,
.ticket-card--dayof.ticket-promo-card::before,
.ticket-card--dayof.ticket-promo-card::after {
    background: #f5f5f7;  /* 周囲のページ背景と同色 */
}

.ticket-card-price-unit {
    font-size: 0.7em;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

/* === トップページの参加店舗グリッド === */
.rally-spots-grid {
    margin: 24px 0;
}
.rally-spots-grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
@media (min-width: 600px) {
    .rally-spots-grid-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}
@media (min-width: 900px) {
    .rally-spots-grid-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}
.rally-spot-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rally-spot-card:hover,
.rally-spot-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.rally-spot-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}
.rally-spot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rally-spot-noimg,
.spot-photo-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.25;
}
.spot-photo-noimg {
    font-size: 1.1rem;
    aspect-ratio: 16 / 9;
}
.rally-spot-info {
    padding: 6px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rally-spot-name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #1f1f1f;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.rally-spot-cat {
    display: inline-block;
    font-size: 0.62rem;
    padding: 1px 6px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    align-self: flex-start;
}
@media (min-width: 600px) {
    .rally-spot-name { font-size: 0.85rem; }
    .rally-spot-cat { font-size: 0.68rem; padding: 2px 7px; }
    .rally-spot-info { padding: 8px 10px 10px; }
}

/* === [2026-05-28] スマホ崩れ対策の防御CSS ===================== */
/* 画面横スクロール防止 */
html, body { overflow-x: hidden; }

@media (max-width: 480px) {
    /* ヘッダのタイトル+ナビは [2026-08-08] のブロックで1行に収める形に変えた。
       ここで flex: 1 1 100% を掛けると2行に折り返してしまうため、規則は置かない。 */

    /* 概要リスト: ラベル列が長文で崩れないように */
    .overview-list {
        grid-template-columns: 1fr !important;
        gap: 4px 0 !important;
    }
    .overview-list dt {
        padding-top: 6px;
        font-weight: 700;
        color: var(--theme-primary, #ea580c);
    }
    .overview-list dd {
        margin: 0 0 8px 0;
        padding-left: 0;
    }

    /* チケットカード: 横幅が足りない場合に1列 */
    .ticket-promo-list {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* 各セクションのpadding を控えめにして横はみ出し回避 */
    .event-overview,
    .stamp-progress,
    .rally-tickets-promo,
    .rally-spots-grid,
    .rally-news,
    .stamp-grid-section,
    .my-tickets {
        padding: 16px 14px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* メインのpaddingが片寄らないように */
    main.main { padding: 12px 12px 32px; max-width: 100%; box-sizing: border-box; }

    /* 画像が親をはみ出さない */
    img { max-width: 100%; height: auto; }
}

/* ============================================================
   [2026-06-08] イベント概要セクション デザイン（アイコンなし・シンプル）
   ラベル＝控えめな色付き小見出し ＋ 本文 ＋ 区切り線。既存gridを上書き。
   ============================================================ */
.event-overview .overview-list {
    display: block;
    margin: 4px 0 0;
}
/* ラベル（dt）：アイコンなしの上品なキャプション */
.event-overview .overview-list dt {
    margin: 18px 0 6px;
    padding: 0;
    border-left: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--theme-primary, #ea580c);
}
.event-overview .overview-list dt:first-of-type { margin-top: 0; }
/* 本文（dd）：ゆとりある余白＋区切り線 */
.event-overview .overview-list dd {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--c-line-soft, #eef1f5);
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--c-ink, #1f2937);
}
.event-overview .overview-list dd:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.event-overview .overview-list dd strong { font-weight: 700; }
.event-overview .overview-sub { display: inline-block; color: var(--c-muted, #64748b); font-size: 0.85rem; }
.event-overview .overview-note { margin: 6px 0 0; color: var(--c-muted, #64748b); font-size: 0.85rem; line-height: 1.7; }

/* お問い合わせの TEL / Email / 公式サイト を押しやすく */
.event-overview .overview-list dd a[href^="tel:"],
.event-overview .overview-list dd a[href^="mailto:"] {
    font-weight: 600;
    word-break: break-all;
}

/* 注意事項：ゆったりしたコールアウト（窮屈さ解消・専用余白） */
.event-overview .overview-list dd.overview-notes-block {
    margin: 6px 0 0;
    padding: 18px 20px;
    background: #fff7ed;
    border: 1px solid #fde7d3;
    border-left: 4px solid var(--theme-primary, #ea580c);
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 2;
    color: #7c3a12;
}

/* 要予約バッジ */
.event-overview .badge-reserve {
    display: inline-block;
    padding: 2px 10px;
    background: #fff7ed;
    color: var(--theme-primary, #c2410c);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}
/* ============================================================ */

/* ============================================================ */
/* 主催者お知らせ POPUP モーダル                                */
/* ============================================================ */
.ann-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ann-modal[hidden] { display: none; }
.ann-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.ann-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px 20px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    animation: annPop 0.18s ease-out;
}
@keyframes annPop {
    from { transform: translateY(10px) scale(0.97); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.ann-modal-x {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}
.ann-modal-badge {
    display: inline-block;
    background: var(--theme-primary, #ea580c);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.ann-modal-title {
    font-size: 1.1rem;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.4;
}
.ann-modal-body {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 18px;
}
.ann-modal-ok { margin-top: 4px; }

/* ============================================================ */
/* お知らせメール登録（オプトイン）                             */
/* ============================================================ */
.mail-optin {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    max-width: 720px;
    margin: 0 auto 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.mail-optin-lead {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin: 4px 0 14px;
}
.mail-optin-form { display: flex; flex-direction: column; gap: 10px; }
.mail-optin-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
}
.mail-optin-consent input { margin-top: 3px; flex: 0 0 auto; }
.mail-optin-consent a { color: var(--theme-primary, #c2410c); }
.mail-optin-flash {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.86rem;
    margin-bottom: 12px;
}
.mail-optin-flash.ok  { background: #dcfce7; color: #166534; }
.mail-optin-flash.err { background: #fef2f2; color: #b91c1c; }

/* ============================================================ */
/* [2026-08-08] ヘッダー帯とページタイトルの体裁                */
/* ============================================================ */
/* 幅の狭い端末で帯が2行に折り返し、ナビのpillが宙に浮いて見えていた。
   1行に収めたうえで、べた塗りの帯に薄い光沢を重ねて厚みを出す。
   ラリーごとに色が変わる(.header の background は rally_theme.php が
   !important で差し替える)ため、色を指定せず重ねられる形にしてある。 */
.header {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px 14px;
    text-align: left;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 10px 24px -18px rgba(15, 23, 42, 0.55);
}
/* 帯の光沢。position:sticky が既に位置指定要素なので inset:0 が効く */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(125% 190% at 6% -70%, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.10));
}
.header-title,
.header-nav { position: relative; z-index: 1; }

/* 長いラリー名でも折り返さず、入りきらない分だけ省略する */
.header-title {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}
.header-title a { display: block; overflow: hidden; text-overflow: ellipsis; }

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}
.header-nav-link svg { vertical-align: 0; }
@media (max-width: 480px) {
    .header { padding: 11px 12px; }
    .header-title {
        font-size: 0.98rem;
        flex: 1 1 auto;
        word-break: normal;
    }
    .header-nav { width: auto; }
    .header-nav-link { font-size: 0.74rem; padding: 5px 10px; }
}

/* ページタイトル: 黒文字が置いてあるだけだったので、
   テーマ色の下線を添えて見出しとして立たせる */
.page-title {
    position: relative;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--c-ink, #0f172a);
    text-align: center;
    margin: 22px 0 20px;
    padding-bottom: 12px;
}
.page-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        var(--theme-primary, #ea580c) 0%,
        var(--theme-accent, #f97316) 100%);
}

/* /tickets は独自のヘッダ枠(サブタイトル付き)を持つので下線は出さない */
.tickets-page-header .page-title { padding-bottom: 0; }
.tickets-page-header .page-title::after { display: none; }
