
/* ========================================
   カラーパレット定義（鎌倉ネイビー）
   ======================================== */
:root {
    /* メインカラー（鎌倉ネイビー） */
    --primary: #1B3A5C;
    --primary-dark: #0F2640;
    --primary-light: #2C5F8A;
    --primary-pale: #EEF2F7;

    /* セカンダリカラー（スレートブルー） */
    --secondary: #3A7CA5;
    --secondary-dark: #2B6285;
    --secondary-light: #5BA3C9;
    --secondary-pale: #E8F4F8;

    /* アクセントカラー（和金） */
    --accent: #B8860B;
    --accent-dark: #8B6914;
    --accent-light: #D4A843;
    --accent-pale: #FBF5EC;

    /* ホバーカラー（ネイビーベース） */
    --hover: #1B3A5C;
    --hover-light: #2C5F8A;
    --hover-pale: #EEF2F7;

    /* ニュートラル */
    --white: #FFFFFF;
    --cream: #FAF8F5;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #1B3A5C, #2C5F8A);
    --gradient-secondary: linear-gradient(135deg, #3A7CA5 0%, #5BA3C9 100%);
    --gradient-accent: linear-gradient(135deg, #1B3A5C 0%, #3A7CA5 100%);
    --gradient-subtle: linear-gradient(180deg, #F5F3F0 0%, #FFFFFF 100%);
    --gradient-ocean: linear-gradient(135deg, #1B3A5C, #2C5F8A);
    --primary-gradient: linear-gradient(135deg, #1B3A5C, #2C5F8A);

    /* Google Maps */
    --maps-blue: #4285F4;
    --maps-green: #22c55e;

    /* ランキングカラー */
    --rank-gold: #B8860B;
    --rank-silver: #9ca3af;
    --rank-bronze: #CD7F32;

    /* 混雑状況カラー */
    --congestion-empty: #22C55E;
    --congestion-normal: #84CC16;
    --congestion-busy: #F59E0B;
    --congestion-crowded: #EF4444;

    /* シャドウ（ネイビー系） */
    --shadow-sm: 0 1px 2px rgba(27, 58, 92, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(27, 58, 92, 0.1), 0 2px 4px -1px rgba(27, 58, 92, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(27, 58, 92, 0.1), 0 4px 6px -2px rgba(27, 58, 92, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(27, 58, 92, 0.1), 0 10px 10px -5px rgba(27, 58, 92, 0.04);

    /* ボーダー半径 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* リッチビジュアル トークン */
    --gradient-hero: linear-gradient(160deg, #0A1E33 0%, #1B3A5C 35%, #2C5F8A 70%, #3A7CA5 100%);
    --gradient-hero-shimmer: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.05) 50%, transparent 75%);
    --gradient-card-hover: linear-gradient(135deg, rgba(27,58,92,0.03) 0%, rgba(44,95,138,0.06) 100%);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-card: 0 1px 3px rgba(27, 58, 92, 0.08), 0 4px 12px rgba(27, 58, 92, 0.05);
    --shadow-card-hover: 0 8px 24px rgba(27, 58, 92, 0.14), 0 2px 8px rgba(27, 58, 92, 0.06);
    --shadow-cta: 0 4px 16px rgba(27, 58, 92, 0.3), 0 2px 4px rgba(27, 58, 92, 0.15);
    --shadow-cta-hover: 0 8px 28px rgba(27, 58, 92, 0.4), 0 4px 8px rgba(27, 58, 92, 0.2);
    --section-gap: 20px;
}

/* ユーティリティ: 非表示 */
.vtqf-hidden {
    display: none;
}

.vtqf-quiz-header.vtqf-hidden {
    display: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    background: var(--gradient-subtle);
    color: var(--gray-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   波のアニメーション背景
   ======================================== */
.vtqf-wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F3F0 0%, #EEF2F7 25%, #FAF8F5 50%, #EEF2F7 75%, #F5F3F0 100%);
}

.vtqf-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z" fill="rgba(27,58,92,0.05)"/></svg>');
    background-size: 50% 100%;
    animation: vtqf-wave-move 15s ease-in-out infinite;
}

.vtqf-wave:nth-child(2) {
    bottom: 20px;
    opacity: 0.7;
    height: 180px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z" fill="rgba(44,95,138,0.04)"/></svg>');
    background-size: 50% 100%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.vtqf-wave:nth-child(3) {
    bottom: 40px;
    opacity: 0.5;
    height: 160px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z" fill="rgba(27,58,92,0.03)"/></svg>');
    background-size: 50% 100%;
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes vtqf-wave-move {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   メインレイアウト
   ======================================== */
.vtqf-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
    position: relative;
    z-index: 1;
    min-height: auto;
    overflow-x: hidden;
}

.vtqf-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    padding: 20px;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 40px rgba(27, 58, 92, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 481px) {
    .vtqf-container {
        padding: 32px;
    }
}

/* ========================================
   ヘッダーデザイン
   ======================================== */
.vtqf-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    padding: 20px 20px 16px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 0;
    max-height: none;
}

/* ヒーロー背景画像スライドショー */
.vtqf-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.vtqf-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: none;
}

.vtqf-hero-slide-active {
    opacity: 1;
}

.vtqf-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vtqf-hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(27,58,92,0.10), rgba(27,58,92,0.28));
    z-index: 1;
}

/* ヘッダー背景（画像の上にオーバーレイ） */
.vtqf-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 30, 51, 0.32) 0%,
        rgba(27, 58, 92, 0.18) 50%,
        rgba(44, 95, 138, 0.10) 100%
    );
    z-index: 1;
}

/* グラデーションオーバーレイ（放射状ハイライト） */
.vtqf-header::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(91, 163, 201, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .vtqf-hero-slide {
        transition: none;
    }
}

/* ヘッダー内のコンテンツをオーバーレイの上に */
.vtqf-header > *:not(.vtqf-hero-slider):not(.vtqf-wave-container) {
    position: relative;
    z-index: 2;
}

/* Powered by バッジ */
.vtqf-powered-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 12px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(27, 58, 92, 0.25);
    position: relative;
    overflow: hidden;
}

.vtqf-powered-by:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.35);
}

.vtqf-powered-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.vtqf-powered-name {
    font-size: 12px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Powered by 波アニメーション */
.vtqf-powered-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.vtqf-powered-wave svg {
    position: absolute;
    width: 200%;
    height: 100%;
    animation: poweredWave 3s ease-in-out infinite;
}

.vtqf-powered-wave svg path {
    fill: rgba(255, 255, 255, 0.3);
}

@keyframes poweredWave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
}

/* ホバー時に波を強調 */
.vtqf-powered-by:hover .vtqf-powered-wave svg path {
    fill: rgba(255, 255, 255, 0.5);
}

/* アクセシビリティ: 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .vtqf-powered-wave svg {
        animation: none;
    }
}

.vtqf-header-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    animation: waveFloat 2.5s ease-in-out infinite;
    transform-origin: center bottom;
    filter: drop-shadow(0 2px 6px rgba(0, 60, 80, 0.3));
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-4px) rotate(5deg);
    }
}

/* アクセシビリティ: 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .vtqf-header-icon {
        animation: none;
    }
}

.vtqf-title {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 900;
    margin: 0;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(10, 30, 51, 0.6), 0 0 40px rgba(44, 95, 138, 0.3);
}

.vtqf-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 60, 80, 0.3);
}

.vtqf-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.vtqf-tagline-ja {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 60, 80, 0.4);
    letter-spacing: 0.5px;
}

.vtqf-tagline-en {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 60, 80, 0.3);
    letter-spacing: 1px;
    font-style: italic;
}

/* タイピングアニメーション */
.vtqf-typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    animation: typing 2s steps(20, end) forwards, blink-caret 0.75s step-end infinite;
}

.vtqf-typing-text.typing-done {
    border-right: none;
    animation: typing 2s steps(20, end) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* タイトルフェードイン */
.vtqf-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.vtqf-fade-in-delay-1 {
    animation-delay: 0.3s;
}

.vtqf-fade-in-delay-2 {
    animation-delay: 0.6s;
}

.vtqf-fade-in-delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 波アニメーション */
.vtqf-wave-container {
    position: relative;
    width: 100%;
    height: 60px;
    margin-top: 20px;
    overflow: hidden;
}


.vtqf-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.vtqf-wave path {
    fill: var(--primary-pale);
}

.vtqf-wave-1 {
    opacity: 0.8;
    animation: wave-flow 8s ease-in-out infinite;
}

.vtqf-wave-1 path {
    fill: rgba(27, 58, 92, 0.3);
}

.vtqf-wave-2 {
    opacity: 0.5;
    animation: wave-flow 10s ease-in-out infinite reverse;
    animation-delay: -2s;
}

.vtqf-wave-2 path {
    fill: rgba(56, 189, 248, 0.25);
}

.vtqf-wave-3 {
    opacity: 0.4;
    animation: wave-flow 12s ease-in-out infinite;
    animation-delay: -4s;
}

.vtqf-wave-3 path {
    fill: rgba(125, 211, 252, 0.2);
}

@keyframes wave-flow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
}

/* アクセシビリティ: アニメーション軽減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
    .vtqf-wave {
        animation: none;
    }
}

/* ========================================
   質問画面
   ======================================== */
.vtqf-question-screen {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--gray-200);
}

.vtqf-question-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 8px 0;
    text-align: center;
}

.vtqf-question-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
    margin-top: 8px;
}

.vtqf-question-description {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    margin: 0 0 32px 0;
}

/* ========================================
   プログレスバー（2ステップ版）
   ======================================== */
.vtqf-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.vtqf-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-400);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vtqf-progress-dot.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 92, 143, 0.15);
}

.vtqf-progress-dot.completed {
    background: var(--maps-green);
    color: var(--white);
}

.vtqf-progress-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

.vtqf-progress-step.active .vtqf-progress-label {
    color: var(--primary);
    font-weight: 600;
}

.vtqf-progress-line {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
}

.vtqf-progress-line.completed {
    background: var(--maps-green);
}

/* ========================================
   エリア選択オプション
   ======================================== */
.vtqf-options {
    display: grid;
    gap: 16px;
}

.vtqf-options-area {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.vtqf-option-checkbox {
    position: relative;
}

/* エリア選択のツールチップ位置調整（2列グリッド） */
.vtqf-options-area .vtqf-option-checkbox.vtqf-has-tooltip:nth-child(odd)::after {
    left: 0;
    transform: translateX(0);
}

.vtqf-options-area .vtqf-option-checkbox.vtqf-has-tooltip:nth-child(odd)::before {
    left: 20px;
    transform: translateX(0);
}

.vtqf-options-area .vtqf-option-checkbox.vtqf-has-tooltip:nth-child(even)::after {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.vtqf-options-area .vtqf-option-checkbox.vtqf-has-tooltip:nth-child(even)::before {
    left: auto;
    right: 20px;
    transform: translateX(0);
}

.vtqf-option-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.vtqf-option-checkbox label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 100px;
    position: relative;
}

.vtqf-option-checkbox label:hover {
    border-color: var(--hover);
    background: var(--hover-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vtqf-option-checkbox input[type="checkbox"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-pale);
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.12);
}

.vtqf-option-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.vtqf-option-emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

/* エリア選択の絵文字（タップ可能表示） */
.vtqf-options-area .vtqf-option-emoji {
    cursor: help;
    padding: 6px;
    border-radius: 10px;
    transition: background 0.2s;
}

@media (hover: none) {
    .vtqf-options-area .vtqf-option-emoji {
        background: rgba(59, 130, 246, 0.1);
    }
    .vtqf-options-area .vtqf-option-emoji:active {
        background: rgba(59, 130, 246, 0.25);
    }
}

.vtqf-option-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    word-break: break-word;
}

.vtqf-option-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.vtqf-option-romaji {
    font-size: 10px;
    font-weight: 400;
    color: var(--gray-500);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ========================================
   スタート画面（新UI）
   ======================================== */
.vtqf-start-screen {
    padding: 20px 16px 40px;
    position: relative;
}

/* タイトル背景の波アニメーション */
.vtqf-start-header-wave {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.vtqf-start-wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(27, 58, 92, 0.05) 25%,
        rgba(44, 95, 138, 0.08) 50%,
        rgba(27, 58, 92, 0.05) 75%,
        transparent 100%
    );
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

.vtqf-start-wave-1 {
    top: 30%;
    left: -50%;
    animation: start-wave-flow-1 8s ease-in-out infinite;
    opacity: 0.9;
}

.vtqf-start-wave-2 {
    top: 45%;
    left: -30%;
    animation: start-wave-flow-2 10s ease-in-out infinite;
    opacity: 0.6;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(44, 95, 138, 0.04) 25%,
        rgba(58, 124, 165, 0.07) 50%,
        rgba(44, 95, 138, 0.04) 75%,
        transparent 100%
    );
}

.vtqf-start-wave-3 {
    top: 60%;
    left: -70%;
    animation: start-wave-flow-3 12s ease-in-out infinite;
    opacity: 0.5;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(58, 124, 165, 0.03) 25%,
        rgba(91, 163, 201, 0.05) 50%,
        rgba(58, 124, 165, 0.03) 75%,
        transparent 100%
    );
}

@keyframes start-wave-flow-1 {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(15%) scaleY(1.1);
    }
}

@keyframes start-wave-flow-2 {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(-10%) scaleY(0.9);
    }
}

@keyframes start-wave-flow-3 {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(20%) scaleY(1.05);
    }
}

/* アクセシビリティ: アニメーション軽減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
    .vtqf-start-wave {
        animation: none;
    }
}

.vtqf-start-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}


/* ワンタップスタート */
.vtqf-start-or {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    margin: 4px 0 8px;
    position: relative;
    z-index: 1;
}

.vtqf-start-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.vtqf-start-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    text-align: left;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.vtqf-start-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(27, 58, 92, 0.05) 20%,
        rgba(44, 95, 138, 0.08) 40%,
        rgba(27, 58, 92, 0.05) 60%,
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vtqf-start-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.vtqf-start-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(27, 58, 92, 0.15);
    background: #fff;
}

.vtqf-start-card:hover::before {
    opacity: 1;
    animation: vtqf-wave-flow 2s ease-in-out infinite;
}

.vtqf-start-card:hover::after {
    transform: scaleX(1);
    animation: vtqf-wave-gradient 2s linear infinite;
}

@keyframes vtqf-wave-flow {
    0% {
        left: -100%;
    }
    100% {
        left: 0%;
    }
}

@keyframes vtqf-wave-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.vtqf-start-card:active {
    transform: translateY(-2px);
}

.vtqf-start-card-icon {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtqf-start-icon-bg {
    position: absolute;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-pale) 0%, #DBEAFE 100%);
    border-radius: 16px;
    transform: rotate(-6deg);
    transition: transform 0.3s ease;
}

.vtqf-start-card:hover .vtqf-start-icon-bg {
    transform: rotate(0deg) scale(1.05);
}

.vtqf-start-icon-bg-theme {
    background: linear-gradient(135deg, var(--secondary-pale) 0%, #DBEAFE 100%);
}

.vtqf-start-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.vtqf-start-icon svg {
    width: 40px;
    height: 40px;
}

.vtqf-start-card-content {
    flex: 1;
    min-width: 0;
}

.vtqf-start-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.vtqf-start-card-badge {
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

.vtqf-start-card-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.vtqf-start-card-arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.vtqf-start-card:hover .vtqf-start-card-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* スタート画面 モバイル対応 */
@media (max-width: 480px) {
    .vtqf-start-card {
        padding: 16px;
        gap: 12px;
    }

    .vtqf-start-card-icon {
        width: 48px;
        height: 48px;
    }

    .vtqf-start-icon-bg {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .vtqf-start-icon {
        font-size: 24px;
    }

    .vtqf-start-card-title {
        font-size: 15px;
    }

    .vtqf-start-card-desc {
        font-size: 11px;
    }
}


/* ========================================
   スタートオプション 2x2グリッド
   ======================================== */
.vtqf-start-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.vtqf-start-grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
    text-align: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.vtqf-start-grid-card:hover {
    border-color: rgba(27, 58, 92, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    background: var(--gradient-card-hover);
}

.vtqf-start-grid-card:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.vtqf-start-grid-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vtqf-start-grid-card:hover .vtqf-start-grid-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.12);
}

.vtqf-start-grid-icon-time {
    background: linear-gradient(145deg, #DBEAFE, #93C5FD);
    color: var(--primary);
}

.vtqf-start-grid-icon-theme {
    background: linear-gradient(145deg, #CFFAFE, #67E8F9);
    color: var(--secondary);
}

.vtqf-start-grid-icon-saved {
    background: linear-gradient(145deg, #F3F4F6, #D1D5DB);
    color: var(--gray-600);
}

.vtqf-start-grid-icon-now {
    background: linear-gradient(145deg, #FFEDD5, #FB923C);
    color: #C2410C;
}

.vtqf-bento-card-now {
    position: relative;
}

.vtqf-bento-card-now::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #FB923C;
    border-radius: 50%;
    animation: vtqf-now-pulse 2s infinite;
    z-index: 3;
}

@keyframes vtqf-now-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

/* 写真背景カード共通 */
.vtqf-card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.4s ease;
}

.vtqf-card-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.vtqf-card-content {
    position: relative;
    z-index: 2;
}

.vtqf-bento-card-photo,
.vtqf-bento-card-hero {
    position: relative;
    overflow: hidden;
    border: none;
    background: #222;
}

.vtqf-bento-card-photo .vtqf-start-grid-title,
.vtqf-bento-card-hero .vtqf-start-grid-title {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.vtqf-bento-card-photo .vtqf-start-grid-desc,
.vtqf-bento-card-hero .vtqf-start-grid-desc {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.vtqf-bento-card-photo:hover .vtqf-card-bg-img,
.vtqf-bento-card-hero:hover .vtqf-card-bg-img {
    transform: scale(1.08);
}

.vtqf-bento-card-photo:hover .vtqf-card-bg-overlay,
.vtqf-bento-card-hero:hover .vtqf-card-bg-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 100%);
}

.vtqf-bento-card-photo:hover,
.vtqf-bento-card-hero:hover {
    background: #222;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.vtqf-bento-card-photo .vtqf-start-grid-icon,
.vtqf-bento-card-hero .vtqf-start-grid-icon {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ヒーローカード（日帰り観光：横長） */
.vtqf-bento-card-hero {
    grid-column: 1 / -1;
    min-height: 120px;
    padding: 24px 20px;
}

.vtqf-bento-card-hero .vtqf-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.vtqf-bento-card-hero .vtqf-card-text {
    text-align: left;
}

.vtqf-bento-card-hero .vtqf-start-grid-title {
    font-size: 18px;
    font-weight: 800;
}

.vtqf-bento-card-hero .vtqf-start-grid-desc {
    font-size: 13px;
    margin-top: 4px;
}

.vtqf-bento-card-hero .vtqf-start-grid-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
    flex-shrink: 0;
}

/* 3列カード */
.vtqf-bento-card-photo {
    min-height: 110px;
    padding: 16px 10px;
}

.vtqf-bento-card-photo .vtqf-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.vtqf-start-grid-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.3;
    word-break: break-word;
}

.vtqf-start-grid-desc {
    font-size: 11px;
    color: var(--gray-400);
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ========================================
   Bentoグリッドレイアウト
   ======================================== */
.vtqf-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}


/* Bentoカード（メニュー） */
.vtqf-bento-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
    text-align: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.vtqf-bento-card:hover {
    border-color: rgba(27, 58, 92, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    background: var(--gradient-card-hover);
}

.vtqf-bento-card:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.vtqf-bento-card .vtqf-start-grid-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vtqf-bento-card:hover .vtqf-start-grid-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.12);
}

@media (max-width: 480px) {
    .vtqf-bento-grid {
        gap: 8px;
        padding: 0 8px;
    }

    .vtqf-bento-card {
        padding: 16px 10px;
    }

    .vtqf-bento-card .vtqf-start-grid-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .vtqf-bento-card-hero {
        min-height: 100px;
        padding: 20px 16px;
    }

    .vtqf-bento-card-hero .vtqf-start-grid-title {
        font-size: 16px;
    }

    .vtqf-bento-card-hero .vtqf-start-grid-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .vtqf-bento-card-photo {
        min-height: 90px;
        padding: 12px 8px;
    }

    .vtqf-bento-card-photo .vtqf-start-grid-title {
        font-size: 12px;
    }

    .vtqf-bento-card-photo .vtqf-start-grid-desc {
        font-size: 10px;
    }
}

/* ========================================
   2ステップメニュー（STEP1 泊数 + STEP2 ルート）
   ======================================== */

/* ステップラベル */
.vtqf-step-label {
    grid-column: 1 / -1;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-400);
    text-transform: uppercase;
    text-align: center;
    margin: 4px 0 2px;
}

/* STEP 1: 泊数セレクター */
.vtqf-stay-selector {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vtqf-stay-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(27, 58, 92, 0.12);
    border-radius: var(--radius-xl);
    padding: 22px 16px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    color: var(--gray-700);
    box-shadow: var(--shadow-card);
}

.vtqf-stay-btn:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(58, 124, 165, 0.2);
}

.vtqf-stay-btn.active {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(58, 124, 165, 0.08), rgba(91, 163, 201, 0.12));
    box-shadow: 0 4px 16px rgba(58, 124, 165, 0.2);
}

.vtqf-stay-icon {
    font-size: 34px;
    display: block;
    margin-bottom: 8px;
}

.vtqf-stay-title {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.vtqf-stay-desc {
    font-size: 11px;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ステップ区切り線 */
.vtqf-step-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.vtqf-step-divider-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.vtqf-step-divider-text {
    font-size: 11px;
    color: var(--gray-400);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* STEP 2: ルートセレクター */
.vtqf-route-selector {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vtqf-route-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(27, 58, 92, 0.1);
    border-radius: var(--radius-lg);
    padding: 18px 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.vtqf-route-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(27, 58, 92, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.vtqf-route-btn.active {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(58, 124, 165, 0.06), rgba(91, 163, 201, 0.1));
    box-shadow: 0 2px 12px rgba(58, 124, 165, 0.15);
}

.vtqf-route-icon {
    font-size: 26px;
    display: block;
    margin-bottom: 6px;
}

.vtqf-route-title {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
    color: var(--gray-800);
}

.vtqf-route-desc {
    font-size: 10px;
    color: var(--gray-400);
    line-height: 1.3;
}

/* CTA ボタン */
.vtqf-cta-section {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.vtqf-cta-btn {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    padding: 16px 28px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-cta);
    letter-spacing: 0.5px;
}

.vtqf-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-hover);
}

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


@media (max-width: 480px) {
    .vtqf-stay-selector {
        gap: 8px;
    }

    .vtqf-stay-btn {
        padding: 18px 12px 14px;
    }

    .vtqf-stay-icon {
        font-size: 28px;
    }

    .vtqf-stay-title {
        font-size: 14px;
    }

    .vtqf-route-selector {
        gap: 6px;
    }

    .vtqf-route-btn {
        padding: 14px 6px 12px;
    }

    .vtqf-route-icon {
        font-size: 22px;
    }

    .vtqf-route-title {
        font-size: 11px;
    }

    .vtqf-route-desc {
        font-size: 9px;
    }

    .vtqf-cta-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ========================================
   穴場スポットセクション
   ======================================== */
.vtqf-featured-area {
    max-width: 400px;
    margin: var(--section-gap) auto 0;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    z-index: 1;
}

.vtqf-featured-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(27, 58, 92, 0.04) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-left: 4px solid var(--congestion-empty);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.08);
    position: relative;
    overflow: hidden;
}

.vtqf-featured-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.vtqf-featured-card:hover {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.12), var(--shadow-md);
    transform: translateY(-2px);
}

.vtqf-featured-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--congestion-empty);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.vtqf-featured-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.vtqf-featured-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ========================================
   探し方選択（モード選択）- 旧UI互換用
   ======================================== */
.vtqf-mode-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.vtqf-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 160px;
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.vtqf-mode-btn:hover {
    border-color: rgba(27, 58, 92, 0.4);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 58, 92, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.vtqf-mode-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.vtqf-mode-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.vtqf-mode-desc {
    font-size: 11px;
    color: var(--gray-600);
    text-align: center;
    line-height: 1.4;
}

/* ========================================
   クイズ選択肢
   ======================================== */
.vtqf-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    margin: 20px auto;
}

.vtqf-quiz-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 12px rgba(27, 58, 92, 0.06);
}

.vtqf-quiz-btn:hover {
    border-color: rgba(27, 58, 92, 0.4);
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 58, 92, 0.12);
}

.vtqf-quiz-btn.selected {
    border-color: rgba(27, 58, 92, 0.6);
    background: rgba(27, 58, 92, 0.1);
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.15), 0 4px 16px rgba(27, 58, 92, 0.15);
}

.vtqf-quiz-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.vtqf-quiz-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    display: block;
}

.vtqf-quiz-hint {
    font-size: 11px;
    color: var(--gray-500);
    display: block;
    margin-top: 2px;
}

/* ========================================
   テーマコース選択
   ======================================== */

/* テーマモード日付セクション */
.vtqf-theme-date-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
}

/* テーマヘッダー内の日付セクション */
.vtqf-theme-header {
    flex-wrap: wrap;
}


/* コースタブ */
.vtqf-course-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.vtqf-course-tab {
    padding: 12px 28px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.vtqf-course-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.vtqf-course-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.vtqf-course-tab[data-tab="overnight"].active {
    background: var(--gradient-accent);
    border-color: var(--accent);
}

/* 1泊2日コースカード特別スタイル */
.vtqf-overnight-courses .vtqf-course-card {
    border-left: 4px solid var(--accent);
}

.vtqf-overnight-courses .vtqf-course-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.15);
}

.vtqf-course-days {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-200);
    width: 100%;
}

.vtqf-course-day {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.vtqf-course-day-label {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 45px;
    text-align: center;
}

.vtqf-course-day-name {
    color: var(--gray-700);
}

.vtqf-course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 20px auto;
}

.vtqf-course-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
    overflow: hidden;
}

.vtqf-course-card:hover {
    border-color: var(--hover);
    background: var(--hover-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vtqf-course-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.vtqf-course-card-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.vtqf-course-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-course-card-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 10px;
}

.vtqf-course-card-info {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.vtqf-course-card-spots,
.vtqf-course-card-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vtqf-course-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vtqf-course-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-pale);
    padding: 3px 8px;
    border-radius: 12px;
}

/* コースバッジ（季節おすすめ・午後OK） */
.vtqf-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    margin-left: auto;
}

.vtqf-course-badge-season {
    color: #d97706;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.vtqf-course-badge-time {
    color: #2B6285;
    background: #e0f2fe;
    border: 1px solid #ddd6fe;
}

.vtqf-course-badge-weather {
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

/* コース時間不足（グレー表示） */
.vtqf-course-card.vtqf-course-disabled {
    opacity: 0.45;
    pointer-events: auto;
}

.vtqf-course-disabled-badge {
    color: #dc2626;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.vtqf-course-route-preview {
    font-size: 0.75rem;
    color: #64748b;
    padding: 6px 0 2px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    width: 100%;
    min-width: 0;
}

.vtqf-course-recommended {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* 写真付きコースカード */
.vtqf-course-card-with-image {
    padding: 0;
    overflow: hidden;
}

.vtqf-course-card-image {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.vtqf-course-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, transparent 100%);
}

.vtqf-course-card-body {
    padding: 12px 16px 16px;
}

.vtqf-course-card-with-image .vtqf-course-card-header {
    margin-bottom: 6px;
}

.vtqf-course-card-with-image .vtqf-course-card-desc {
    font-size: 12px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vtqf-course-card-with-image:hover .vtqf-course-card-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.vtqf-course-card-with-image .vtqf-course-card-image {
    transition: transform 0.3s ease;
}

/* 画像遅延読み込み（Lazy Loading） */
.vtqf-lazy-bg {
    background-color: var(--gray-100);
    background-image: none !important;
}

.vtqf-lazy-bg::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0.3;
    animation: vtqf-pulse 1.5s ease-in-out infinite;
}

.vtqf-lazy-bg.vtqf-lazy-loaded::before {
    display: none;
}

.vtqf-lazy-loaded {
    animation: vtqf-fadeIn 0.3s ease;
}

.vtqf-lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vtqf-lazy-img.vtqf-lazy-loaded {
    opacity: 1;
}

@keyframes vtqf-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes vtqf-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* テーマコース説明（結果画面） */
.vtqf-course-description {
    font-size: 14px;
    color: var(--gray-600);
    text-align: center;
    margin: 8px 0 16px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--secondary-pale) 100%);
    border-radius: var(--radius-md);
    line-height: 1.6;
    white-space: pre-line;
}

/* テーマノート（タイムライン内） */
.vtqf-theme-note {
    font-size: 12px;
    color: var(--gray-700);
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    margin: 6px 0;
    border-left: 3px solid var(--accent);
    line-height: 1.5;
}

/* Q3候補数表示 */
.vtqf-candidate-count {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border: 1px solid #C8E6C9;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.vtqf-candidate-count-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 12px 0;
}

.vtqf-candidate-count-mood {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.vtqf-candidate-count-note {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-500);
    margin-left: 4px;
}

.vtqf-candidate-count-areas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vtqf-candidate-count-area {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* コンパクト版候補数表示 */
.vtqf-candidate-count-compact {
    padding: 12px 16px;
    margin-bottom: 16px;
}

.vtqf-candidate-count-compact .vtqf-candidate-count-label {
    font-size: 13px;
    margin-bottom: 8px;
}

.vtqf-candidate-count-compact .vtqf-candidate-count-areas {
    gap: 8px;
}

.vtqf-candidate-count-compact .vtqf-candidate-count-area {
    padding: 6px 12px;
    font-size: 13px;
}

.vtqf-candidate-count-compact .vtqf-candidate-count-area-name {
    font-size: 12px;
    min-width: auto;
}

.vtqf-candidate-count-compact .vtqf-candidate-count-area-num {
    font-size: 13px;
    min-width: auto;
}

/* メインアクション（観光時間選択） */
.vtqf-main-action {
    margin-bottom: 20px;
}

.vtqf-duration-dropdown-prominent .vtqf-duration-toggle {
    padding: 20px 28px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}

.vtqf-duration-dropdown-prominent .vtqf-duration-toggle:hover {
    background: linear-gradient(135deg, var(--hover) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.45);
    transform: translateY(-2px);
}

.vtqf-duration-dropdown-prominent .vtqf-duration-toggle-icon {
    font-size: 28px;
}

.vtqf-duration-dropdown-prominent .vtqf-duration-toggle-text {
    color: white;
    font-size: 18px;
}

.vtqf-duration-dropdown-prominent .vtqf-duration-toggle-arrow {
    color: rgba(255, 255, 255, 0.8);
}

.vtqf-duration-dropdown-prominent.open .vtqf-duration-toggle {
    border: none;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.45);
}

/* ===== Quiz2 リデザイン ===== */

/* 全体コンテナ */
.vtqf-quiz2-redesign {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 0;
}

/* ヘッダー（戻るボタン） */
.vtqf-quiz2-header {
    background: var(--white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
}

.vtqf-quiz2-header .vtqf-btn-back {
    font-size: 13px;
    padding: 6px 12px;
}

/* quiz2画面の戻るボタン（ヒーロー画像の上） */
.vtqf-quiz2-back-btn {
    margin: 0 16px 8px;
}

/* ヒーローエリア（コンパクト版） */
.vtqf-quiz2-hero {
    position: relative;
    background-color: #1a1a2e;
    height: 120px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 0 16px;
}

.vtqf-quiz2-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.vtqf-quiz2-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

.vtqf-quiz2-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px 16px;
}

.vtqf-quiz2-hero-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.vtqf-quiz2-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* メインコンテンツエリア */
.vtqf-quiz2-main {
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 季節メッセージ */
.vtqf-seasonal-message {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vtqf-seasonal-emoji {
    font-size: 18px;
}

/* 天気メッセージ */
.vtqf-weather-message {
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.vtqf-weather-emoji {
    font-size: 16px;
}

.vtqf-weather-text {
    line-height: 1.4;
}

/* イベントメッセージ */
.vtqf-event-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.vtqf-event-message-item {
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    color: #7c4a03;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
    text-align: center;
    line-height: 1.4;
}

/* イベント中バッジ */
.vtqf-event-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 気象警報バナー */
.vtqf-warning-banner {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vtqf-warning-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.vtqf-warning-emoji {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.vtqf-warning-text {
    flex: 1;
}

.vtqf-warning-main {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.vtqf-warning-sub {
    font-size: 12px;
    opacity: 0.9;
}

/* 警報レベル別スタイル */
.vtqf-warning-special {
    background: #d32f2f;
    color: #ffffff;
    animation: warningPulse 2s ease-in-out infinite;
}

.vtqf-warning-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #ffffff;
}

.vtqf-warning-advisory {
    background: #fff9c4;
    color: #5d4037;
    border: 1px solid #fbc02d;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* セクション共通 */
.vtqf-quiz2-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vtqf-quiz2-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.vtqf-quiz2-section-icon {
    font-size: 16px;
}

/* セクション番号バッジ（緑の丸） */
.vtqf-quiz2-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--maps-green);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.vtqf-quiz2-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
}

/* おすすめスポットセクション（レガシー） */
.vtqf-quiz2-spots-section {
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
    border-color: var(--primary);
}

.vtqf-quiz2-spots-section .vtqf-candidate-count {
    background: transparent;
    padding: 0;
    margin: 0;
}

.vtqf-quiz2-spots-section .vtqf-candidate-count-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 統合セクション */
.vtqf-quiz2-unified-section {
    background: var(--white);
    padding: 20px 16px;
}

.vtqf-quiz2-unified-section .vtqf-candidate-count {
    background: transparent;
    padding: 0;
    margin: 0;
}

.vtqf-quiz2-unified-section .vtqf-candidate-count-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* サブセクションヘッダー */
.vtqf-quiz2-subsection-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.vtqf-quiz2-subsection-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.vtqf-quiz2-subsection-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.vtqf-quiz2-subsection-hint {
    font-size: 11px;
    color: var(--gray-400);
    margin-left: auto;
}

.vtqf-area-reset-btn {
    font-size: 11px;
    color: var(--primary);
    background: none;
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2px 10px;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.vtqf-area-reset-btn:active {
    background: var(--primary);
    color: #fff;
}

/* セクション間の区切り線 */
.vtqf-quiz2-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 16px 0;
}

/* 天気に基づくおすすめスポット（コンパクト版） */
.vtqf-weather-recommend {
    margin-bottom: 12px;
}

.vtqf-wr-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    font-size: 13px;
}

.vtqf-wr-weather.vtqf-wr-rain {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.vtqf-wr-weather.vtqf-wr-hot {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.vtqf-wr-weather.vtqf-wr-cold {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.vtqf-wr-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-wr-icon {
    font-size: 16px;
}

.vtqf-wr-temp {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.vtqf-wr-precip {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 600;
}

.vtqf-wr-message {
    font-size: 12px;
    color: var(--gray-600);
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.vtqf-wr-message-rain {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.1);
}

.vtqf-wr-message-hot {
    color: #b45309;
    background: rgba(245, 158, 11, 0.1);
}

.vtqf-wr-message-cold {
    color: #4338ca;
    background: rgba(27, 58, 92, 0.1);
}

.vtqf-wr-spots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vtqf-wr-spot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--white);
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    font-size: 13px;
}

.vtqf-wr-spot-emoji {
    font-size: 14px;
    flex-shrink: 0;
}

.vtqf-wr-spot-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}

.vtqf-wr-spot-reason {
    font-size: 10px;
    color: var(--white);
    background: var(--primary);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* 観光時間選択セクション（レガシー） */
.vtqf-quiz2-duration-section {
    background: var(--white);
}

/* 観光時間チップ（横一列） */
.vtqf-duration-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vtqf-duration-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    flex: 1;
    box-shadow: 0 2px 12px rgba(27, 58, 92, 0.05);
}

.vtqf-duration-chip:hover {
    border-color: rgba(27, 58, 92, 0.3);
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 58, 92, 0.1);
}

.vtqf-duration-chip.selected {
    border-color: rgba(27, 58, 92, 0.5);
    background: rgba(27, 58, 92, 0.12);
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.15), 0 4px 16px rgba(27, 58, 92, 0.12);
    position: relative;
}
.vtqf-duration-chip.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--maps-green);
    line-height: 1;
}

.vtqf-duration-chip:active {
    transform: scale(0.97);
}

.vtqf-duration-chip-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-duration-chip.selected .vtqf-duration-chip-label {
    color: var(--maps-green);
}

.vtqf-duration-chip-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.vtqf-duration-chip.selected .vtqf-duration-chip-time {
    color: var(--maps-green);
}

.vtqf-duration-chip-desc {
    font-size: 10px;
    color: var(--gray-500);
}

.vtqf-duration-chip-spots {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
}

.vtqf-duration-chip-overnight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.vtqf-duration-chip-overnight:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.vtqf-duration-chip-overnight .vtqf-duration-chip-label,
.vtqf-duration-chip-overnight .vtqf-duration-chip-time {
    color: #2563eb;
}

.vtqf-duration-chip-extended {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #3A7CA5;
}

.vtqf-duration-chip-extended:hover {
    border-color: #2B6285;
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.vtqf-duration-chip-extended .vtqf-duration-chip-label,
.vtqf-duration-chip-extended .vtqf-duration-chip-time {
    color: #2B6285;
}

/* 時間帯に基づくおすすめ・グレーアウト */
.vtqf-duration-chip.vtqf-duration-recommended {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15), 0 2px 12px rgba(16, 185, 129, 0.1);
    position: relative;
}

.vtqf-duration-chip.vtqf-duration-recommended .vtqf-duration-chip-label {
    color: #059669;
}

.vtqf-duration-chip.vtqf-duration-recommended .vtqf-duration-chip-time {
    color: #10b981;
}

.vtqf-duration-rec-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 1px 6px;
    border-radius: 8px;
    margin-top: 2px;
}

.vtqf-duration-chip.vtqf-duration-dimmed {
    opacity: 0.35;
    filter: grayscale(0.5);
}

.vtqf-duration-chip.vtqf-duration-dimmed .vtqf-duration-chip-label {
    color: var(--gray-400);
}

.vtqf-duration-chip.vtqf-duration-dimmed .vtqf-duration-chip-time {
    color: var(--gray-400);
}

/* 観光時間選択：モバイル対応 */
@media (max-width: 480px) {
    .vtqf-duration-chips {
        gap: 6px;
    }
    .vtqf-duration-chip {
        padding: 10px 12px;
        min-width: 80px;
    }
    .vtqf-duration-chip-label {
        font-size: 12px;
    }
    .vtqf-duration-chip-time {
        font-size: 11px;
    }
    .vtqf-duration-chip-desc {
        font-size: 9px;
    }
}

/* quiz2画面：出発日選択（日付カード形式） */
.vtqf-quiz2-date-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.vtqf-quiz2-date-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.vtqf-quiz2-date-icon {
    font-size: 18px;
}

.vtqf-quiz2-date-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-quiz2-date-cards {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -6px;
    padding: 0 6px;
}

.vtqf-quiz2-date-cards::-webkit-scrollbar {
    display: none;
}

.vtqf-quiz2-date-cards .vtqf-date-cards {
    padding: 4px 0;
}

.vtqf-quiz2-weather-message {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-700);
}


/* プラン作成ボタン */
.vtqf-create-plan-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: #ccc;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.vtqf-create-plan-btn:not(:disabled) {
    background: linear-gradient(135deg, #2dd4bf 0%, #22c55e 100%);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.vtqf-create-plan-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.vtqf-create-plan-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

/* フッター */
.vtqf-quiz2-footer {
    padding-top: 8px;
    text-align: center;
}

.vtqf-quiz2-footer .vtqf-btn-back {
    font-size: 13px;
    padding: 8px 16px;
}

/* エリア選択の説明文 */
.vtqf-area-toggle-hint {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vtqf-area-toggle-hint::before {
    content: "👆";
    font-size: 11px;
}

/* タップ可能なエリア切り替え */
.vtqf-area-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.vtqf-area-toggle:active {
    transform: scale(0.95);
}

.vtqf-area-toggle.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(59, 130, 246, 0.12));
    box-shadow: 0 2px 8px rgba(45, 212, 191, 0.25);
}

.vtqf-area-toggle.unselected {
    opacity: 0.6;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
}

.vtqf-area-toggle.unselected .vtqf-candidate-count-area-num {
    color: var(--gray-400);
}

/* チェックマーク */
.vtqf-area-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.vtqf-area-checkmark.empty {
    background: transparent;
    border: 2px solid var(--gray-300);
}

/* 選択時のパルスアニメーション */
@keyframes pulse-select {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.vtqf-area-toggle.pulse {
    animation: pulse-select 0.4s ease;
}

/* 解除不可時のシェイクアニメーション */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.vtqf-area-toggle.shake {
    animation: shake 0.3s ease;
}

.vtqf-candidate-count-area-name {
    font-size: 14px;
    color: var(--gray-600);
    min-width: 80px;
}

.vtqf-candidate-count-area-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
}

.vtqf-candidate-count-total {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
}

.vtqf-candidate-count-total-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.vtqf-candidate-count-total-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* Q3 日程選択オプション */
.vtqf-quiz-options-duration {
    display: flex;
    justify-content: center;
}

/* 統一プルダウン */
.vtqf-duration-dropdown {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.vtqf-duration-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--white) 0%, #F8FFFE 100%);
    border: 2px solid var(--hover);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.vtqf-duration-toggle:hover {
    background: var(--hover-pale);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.vtqf-duration-toggle-icon {
    font-size: 24px;
}

.vtqf-duration-toggle-text {
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-duration-toggle-arrow {
    font-size: 12px;
    color: var(--gray-500);
    transition: transform 0.2s ease;
}

.vtqf-duration-dropdown.open .vtqf-duration-toggle-arrow {
    transform: rotate(180deg);
}

.vtqf-duration-dropdown.open .vtqf-duration-toggle {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.vtqf-duration-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.vtqf-duration-dropdown.open .vtqf-duration-menu {
    display: block;
}

/* モバイルでのプルダウン改善 */
@media (max-width: 480px) {
    .vtqf-duration-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-height: 60vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .vtqf-duration-dropdown.open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }
}

/* プルダウン展開時のスペース確保 */
.vtqf-question[data-question="quiz3"] .vtqf-quiz-options-duration {
    padding-bottom: 20px;
}

.vtqf-duration-group {
    padding: 8px 0;
}

.vtqf-duration-group:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
}

.vtqf-duration-group-label {
    padding: 8px 16px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vtqf-duration-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: var(--white);
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 15px;
    color: var(--gray-700);
}

.vtqf-duration-option:hover {
    background: var(--hover-pale);
}

.vtqf-duration-option-label {
    font-weight: 600;
}

.vtqf-quiz-spots {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hover);
    background: rgba(32, 201, 151, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
}

/* 延長1泊2日オプション */
.vtqf-duration-option-extended {
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.08));
    border-left: 3px solid var(--warning) !important;
}

.vtqf-duration-option-extended:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
}

.vtqf-duration-option-note {
    width: 100%;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* クイズ進捗表示 */
.vtqf-quiz-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.vtqf-quiz-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all 0.3s ease;
}

.vtqf-quiz-progress-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.vtqf-quiz-progress-dot.completed {
    background: var(--success);
}

/* 滞在日数選択 */
.vtqf-duration-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.vtqf-duration-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-700);
    margin: 0 0 8px 0;
    text-align: center;
}

/* 滞在日数選択ダイアログ */
.vtqf-duration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.vtqf-duration-overlay.active {
    display: flex;
}

.vtqf-duration-dialog {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.vtqf-duration-dialog-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 8px 0;
}

.vtqf-duration-dialog-desc {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 24px 0;
}

.vtqf-duration-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.vtqf-duration-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
}

.vtqf-duration-btn:hover {
    border-color: var(--hover);
    background: var(--hover-pale);
}

.vtqf-duration-emoji {
    font-size: 18px;
}

.vtqf-duration-label {
    font-weight: 600;
    color: var(--gray-800);
}

.vtqf-duration-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-duration-cancel:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* 日数選択の警告メッセージ */
.vtqf-duration-warning {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
    border: 1px solid #ffc107;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
    text-align: left;
}

/* おすすめバッジ */
.vtqf-duration-recommend {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* タイムラインボタン */
.vtqf-maps-btn-timeline {
    background: var(--gradient-ocean);
    color: white;
    border: none;
}

.vtqf-maps-btn-timeline:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-1px);
}

.vtqf-maps-btn-timeline:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
}

/* タイムラインモーダル - ガラスモーフィズム */
.vtqf-timeline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0b1f35;
    display: none;
    z-index: 1100;
    padding: 0;
}

.vtqf-timeline-overlay.active {
    display: flex;
}

.vtqf-timeline-modal {
    background: var(--sand, #f5efe6);
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

/* ── タイムラインヘッダー（モックアップ版） ── */
.vtqf-timeline-header {
    background: #1a4a6e;
    padding: 8px 16px 10px;
    border-bottom: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* 1行目：戻る / タイトル / ✕ */
.vtqf-tl-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vtqf-timeline-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
}

.vtqf-timeline-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.12) !important;
    border: none !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
}
.vtqf-timeline-close:hover {
    background: rgba(255,255,255,0.22) !important;
}

/* Day Summary ピル */
.vtqf-tl-day-summary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 7px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vtqf-tl-day-date {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vtqf-tl-day-weather {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}
.vtqf-tl-day-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.vtqf-tl-day-stat {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 4px;
}
.vtqf-tl-day-stat strong {
    color: #fff;
    font-weight: 700;
}

/* タイムライン内言語切り替え（🌐ドロップダウン） */
.vtqf-tl-lang-wrap {
    position: relative;
    flex-shrink: 0;
}

.vtqf-tl-lang-toggle {
    width: 34px;
    height: 34px;
    font-size: 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500, #6b7280);
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.vtqf-tl-lang-toggle:hover {
    color: var(--primary, #1B3A5C);
    background: rgba(27, 58, 92, 0.08);
}

.vtqf-tl-lang-menu {
    display: none !important;
    position: fixed;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    z-index: 9999;
    padding: 4px;
    animation: vtqf-lang-dropdown-in 0.12s ease-out;
}

.vtqf-tl-lang-menu.active {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
}

@keyframes vtqf-lang-dropdown-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vtqf-tl-lang-menu .vtqf-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 7px 12px;
    font-size: 13px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray-700, #333);
    transition: background 0.12s;
}

.vtqf-tl-lang-menu .vtqf-lang-btn:hover {
    background: rgba(27, 58, 92, 0.08);
}

.vtqf-timeline-close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.vtqf-timeline-close:hover {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: scale(1.05);
}

/* タイムラインナビゲーション */
.vtqf-timeline-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #0f2640;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vtqf-timeline-nav-primary {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vtqf-timeline-nav-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vtqf-timeline-nav-btn {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vtqf-timeline-nav-btn:hover {
    background: rgba(3, 105, 161, 0.9);
    border-color: rgba(27, 58, 92, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 58, 92, 0.25);
}

.vtqf-timeline-nav-btn:active {
    transform: translateY(0);
}

.vtqf-timeline-nav-action {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #1B3A5C;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(27, 58, 92, 0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.vtqf-timeline-nav-action:active {
    transform: scale(0.96);
    background: rgba(27, 58, 92, 0.15);
}

/* 時間設定 */
.vtqf-time-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 2px solid var(--secondary-light);
    border-radius: 24px;
    padding: 4px 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.vtqf-time-edit:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--secondary-pale), var(--secondary-light));
    border-color: var(--secondary);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.vtqf-time-edit:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(20, 184, 166, 0.25);
}

.vtqf-time-display-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--white);
    border: 2px solid var(--secondary-light);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-time-display-link:hover {
    background: linear-gradient(135deg, var(--secondary-pale), var(--secondary-light));
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.vtqf-time-edit-icon {
    font-size: 12px;
    opacity: 0.7;
}

.vtqf-time-display-link:hover .vtqf-time-edit-icon {
    opacity: 1;
}

.vtqf-departure-name {
    font-size: 12px;
    color: var(--gray-600);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vtqf-departure-name:not(:empty)::after {
    content: " ";
}

.vtqf-time-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.vtqf-time-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.1);
}

.vtqf-time-btn:active {
    transform: scale(0.95);
}

.vtqf-time-value {
    min-width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
}

.vtqf-time-value.vtqf-time-readonly {
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    color: var(--gray-600);
}

.vtqf-timeline-summary {
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: none;
}

.vtqf-timeline-summary-row {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.vtqf-timeline-summary-item {
    text-align: center;
    padding: 8px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vtqf-timeline-summary-value {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vtqf-timeline-summary-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 日帰り：コンパクト表示 */
.vtqf-timeline-summary-compact {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.vtqf-timeline-summary-compact .vtqf-summary-distance {
    color: #0f172a;
    font-weight: 600;
    margin-left: 8px;
}

/* 宿泊：日別表示 */
.vtqf-timeline-summary-daily {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vtqf-summary-day {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.vtqf-summary-day-label {
    font-weight: 600;
    color: #0f172a;
    min-width: 42px;
}

.vtqf-summary-day-time {
    color: #64748b;
    flex: 1;
}

.vtqf-summary-day-dist {
    color: #0f172a;
    font-weight: 600;
}

/* AI最適化バナー */
.vtqf-ai-optimize-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom: 1px solid #bfdbfe;
    padding: 8px 16px;
    animation: slideDown 0.3s ease;
}

.vtqf-ai-optimize-banner.vtqf-hidden {
    display: none;
}

.vtqf-ai-optimize-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vtqf-ai-optimize-text {
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
}

.vtqf-ai-optimize-btn {
    flex-shrink: 0;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #2B6285 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.vtqf-ai-optimize-btn:active {
    transform: scale(0.96);
}

/* スケジュールアラートバナー */
.vtqf-schedule-alert {
    display: none !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vtqf-schedule-alert-icon {
    font-size: 20px;
}

.vtqf-schedule-alert-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vtqf-schedule-alert-text {
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

.vtqf-schedule-alert-action {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #3A7CA5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.vtqf-schedule-alert-action:hover {
    background: #2B6285;
}

.vtqf-schedule-alert-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #92400e;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.vtqf-schedule-alert-close:hover {
    opacity: 1;
}

/* 遅延が深刻な場合の赤色アラート */
.vtqf-schedule-alert.severe {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
}

.vtqf-schedule-alert.severe .vtqf-schedule-alert-text {
    color: #991b1b;
}

.vtqf-schedule-alert.severe .vtqf-schedule-alert-action {
    background: #ef4444;
}

.vtqf-schedule-alert.severe .vtqf-schedule-alert-action:hover {
    background: #dc2626;
}

.vtqf-schedule-alert.severe .vtqf-schedule-alert-close {
    color: #991b1b;
}

.vtqf-timeline-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px 12px;
    background: #f5efe6;
}
.vtqf-timeline-content::-webkit-scrollbar { width: 3px; }
.vtqf-timeline-content::-webkit-scrollbar-thumb { background: #e8ddd0; border-radius: 99px; }

/* タイムラインアイテム */
.vtqf-timeline-item {
    position: relative;
    padding-left: 38px;
    margin-bottom: 5px;
}

.vtqf-timeline-item:last-child {
    margin-bottom: 0;
}

/* タイムライン縦軸 */
.vtqf-timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 16px;
    bottom: -5px;
    width: 2px;
    background: linear-gradient(to bottom, #2d7aad, #a8d4ee 80%, transparent);
    border-radius: 2px;
}

.vtqf-timeline-item:last-child::before {
    display: none;
}

/* ── ナンバーバッジ（モックアップ版） ── */
.vtqf-timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1a4a6e;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    transition: all 0.2s ease;
    z-index: 2;
}

/* スポットカード（モックアップ版） */
.vtqf-timeline-spot {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    border: 1.5px solid rgba(26,74,110,0.06);
    box-shadow: 0 1px 8px rgba(26,74,110,0.07);
    transition: box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.vtqf-timeline-item:hover .vtqf-timeline-spot {
    box-shadow: 0 4px 18px rgba(26,74,110,0.14);
}

.vtqf-timeline-item:hover .vtqf-timeline-dot {
    transform: scale(1.1);
}

/* ── カード内部メイン領域 ── */
.vtqf-spot-card-inner {
    padding: 7px 10px 6px;
}

/* スポット行レイアウト */
.vtqf-spot-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

/* スポット左列（絵文字＋名前） */
.vtqf-spot-main {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* 絵文字 */
.vtqf-spot-emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 名前群 */
.vtqf-spot-info {
    flex: 1;
    min-width: 0;
}

/* 日本語名 */
.vtqf-timeline-spot-name,
.vtqf-spot-name-ja {
    font-family: 'Noto Serif JP', serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1a1410 !important;
    text-decoration: none !important;
    line-height: 1.25 !important;
    display: block !important;
}

/* ローマ字 */
.vtqf-spot-name-romaji {
    font-size: 0.65rem !important;
    color: #bbb !important;
    letter-spacing: 0.05em !important;
    display: block !important;
    margin-top: 1px !important;
}

/* 時刻行 */
.vtqf-spot-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding-top: 0;
}

/* 時刻バッジ（開始時刻・濃紺） */
.vtqf-spot-time {
    background: #1a4a6e !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 3px 7px !important;
    border-radius: 6px !important;
    letter-spacing: 0.03em !important;
    font-variant-numeric: tabular-nums !important;
    flex-shrink: 0 !important;
}

/* 終了時刻セパレーター */
.vtqf-spot-time-sep {
    color: #ccc;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* 終了時刻 */
.vtqf-spot-time-end {
    font-size: 0.8rem;
    color: #999;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* 所要時間セレクト */
.vtqf-duration-wrapper {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #f5efe6;
    border: 1px solid #e8ddd0;
    border-radius: 99px;
    padding: 3px 9px;
    cursor: pointer;
    flex-shrink: 0;
}
.vtqf-duration-icon { font-size: 0.78rem; }
.vtqf-duration-select {
    border: none !important;
    background: transparent !important;
    font-size: 0.7rem !important;
    color: #777 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* ── にぎわいランプ ── */
.vtqf-tl-crowd-lamp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    margin: 4px 13px 2px;
    border-radius: 12px;
    background: #faf8f4;
    border: 1px solid #f0ebe3;
}
.vtqf-tl-lamp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.vtqf-tl-lamp-dot.vtqf-crowd-relaxed  { background: #4ade80; box-shadow: 0 0 4px rgba(74,222,128,0.4); }
.vtqf-tl-lamp-dot.vtqf-crowd-popular { background: #15803d; box-shadow: 0 0 4px rgba(21,128,61,0.4); }
.vtqf-tl-lamp-text {
    font-size: 0.65rem;
    color: #999;
    white-space: nowrap;
}

/* ── アクションボタン（↑↓✕） ── */
.vtqf-spot-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.vtqf-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1.5px solid #e8ddd0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #aaa;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.vtqf-action-btn:hover { background: #f5efe6; color: #1a1410; }
.vtqf-action-btn.vtqf-action-delete,
.vtqf-action-btn.vtqf-delete-btn { color: #c9472b; }
.vtqf-action-btn.vtqf-action-delete:hover,
.vtqf-action-btn.vtqf-delete-btn:hover { background: #fdf0ee; }

/* ── スポット詳細リンク ── */
/* 音声ガイド・口コミ・詳細を1行にまとめる */
.vtqf-tl-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 13px 2px;
}

.vtqf-tl-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid #e0d8cc;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f4ee 0%, #fff9f0 100%);
    font-size: 0.68rem;
    color: #5a4a3a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.02em;
}
.vtqf-tl-audio-btn:hover { background: linear-gradient(135deg, #f0ebe2 0%, #f8f0e4 100%); }
.vtqf-tl-audio-btn.vtqf-tl-audio-playing {
    background: linear-gradient(135deg, #e8f4e8 0%, #f0f8f0 100%);
    color: #2a7a3a;
    border-color: #a0d0a0;
}
.vtqf-tl-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid #bdd4e8;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef4fb 0%, #f5f9ff 100%);
    font-size: 0.68rem;
    color: #2c5a8a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.02em;
}
.vtqf-tl-review-btn:hover { background: linear-gradient(135deg, #dde9f5 0%, #e8f0fa 100%); }
.vtqf-spot-info-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    border: none;
    border-top: none;
    font-size: 0.65rem;
    color: #2d7aad;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    margin: 0;
}
.vtqf-spot-info-link:hover { color: #1a5a8a; }
.vtqf-spot-info-link::after { content: '→'; color: #ccc; font-size: 0.68rem; }

/* スポットサムネイル */
.vtqf-spot-thumbnail {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtqf-spot-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vtqf-spot-thumbnail-placeholder {
    font-size: 20px;
    background: #f8fafc;
}

.vtqf-spot-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* スポット名リンク */
.vtqf-timeline-spot-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.vtqf-timeline-spot-name::after {
    display: none;
}

.vtqf-timeline-spot-name:hover {
    color: var(--primary-dark);
}

/* メモボタン */
.vtqf-spot-memo-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vtqf-spot-memo-btn:hover {
    opacity: 1;
    background: #fef3c7;
}

.vtqf-spot-memo-btn.has-memo {
    opacity: 1;
    background: #fef3c7;
    box-shadow: 0 0 0 2px #fbbf24;
}

/* メモ追加プレースホルダー */
.vtqf-memo-placeholder {
    width: auto !important;
    padding: 4px 10px !important;
    font-size: 11px;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    opacity: 1 !important;
}

.vtqf-memo-placeholder:hover {
    color: #64748b;
    border-color: #94a3b8;
    background: #f1f5f9;
}

/* イベントメモボタン */
.vtqf-event-memo-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vtqf-event-memo-btn:hover {
    opacity: 1;
    background: #fef3c7;
}

.vtqf-event-memo-btn.has-memo {
    opacity: 1;
    background: #fef3c7;
    box-shadow: 0 0 0 2px #fbbf24;
}

/* メモプレビュー（旧） */
.vtqf-memo-preview {
    font-size: 12px;
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 3px 8px;
    border-radius: 10px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #fbbf24;
    margin-left: 4px;
}

/* メモコンテナ（展開式） */
.vtqf-memo-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 8px;
    flex: 1;
    min-width: 0;
}

.vtqf-memo-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vtqf-memo-preview-text {
    font-size: 12px;
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid #fbbf24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.vtqf-memo-expand-btn {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 4px;
    color: #92400e;
    font-size: 10px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.vtqf-memo-expand-btn:hover {
    background: #fde68a;
}

.vtqf-memo-expand-btn.expanded {
    background: #fde68a;
}

.vtqf-memo-full {
    font-size: 12px;
    color: #78350f;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #fbbf24;
    line-height: 1.5;
    word-break: break-word;
    animation: memoExpand 0.2s ease;
}

@keyframes memoExpand {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* メモ編集ツールチップ */
.vtqf-memo-tooltip {
    position: relative;
}

.vtqf-memo-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2C5F8A 0%, #1B3A5C 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(6, 182, 212, 0.3);
}

.vtqf-memo-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1B3A5C;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

/* PC: ホバーで表示 */
@media (hover: hover) {
    .vtqf-memo-tooltip:hover::after,
    .vtqf-memo-tooltip:hover::before {
        opacity: 1;
        visibility: visible;
    }
}

/* モバイル: タップで表示 */
.vtqf-memo-tooltip.tooltip-active::after,
.vtqf-memo-tooltip.tooltip-active::before {
    opacity: 1;
    visibility: visible;
}

/* アクションボタン用ツールチップ */
.vtqf-action-tooltip {
    position: relative;
}

.vtqf-action-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2C5F8A 0%, #1B3A5C 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(6, 182, 212, 0.3);
}

.vtqf-action-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1B3A5C;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

/* 削除ボタンは赤色 */
.vtqf-action-tooltip.vtqf-action-delete::after {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}

.vtqf-action-tooltip.vtqf-action-delete::before {
    border-top-color: #dc2626;
}

/* PC: ホバーで表示 */
@media (hover: hover) {
    .vtqf-action-tooltip:hover::after,
    .vtqf-action-tooltip:hover::before {
        opacity: 1;
        visibility: visible;
    }
}

/* モバイル: タップで表示 */
.vtqf-action-tooltip.tooltip-active::after,
.vtqf-action-tooltip.tooltip-active::before {
    opacity: 1;
    visibility: visible;
}

/* アクションボタン */
.vtqf-spot-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.vtqf-spot-actions .vtqf-spot-duration-select {
    padding: 4px 6px;
    font-size: 11px;
    border-radius: 4px;
}

.vtqf-action-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: #f1f5f9;
    color: #64748b;
    gap: 2px;
}

.vtqf-action-label {
    display: none;
}

.vtqf-action-icon {
    font-size: 12px;
}

/* 上へ移動ボタン（▲）- 青系 */
.vtqf-action-btn.vtqf-reorder-up,
.vtqf-action-btn.vtqf-custom-event-reorder-up {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* 下へ移動ボタン（▼）- 緑系 */
.vtqf-action-btn.vtqf-reorder-down,
.vtqf-action-btn.vtqf-custom-event-reorder-down {
    color: #16a34a;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* 削除ボタン（×）- 赤系 */
.vtqf-action-btn.vtqf-action-delete,
.vtqf-action-btn.vtqf-delete-btn {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.vtqf-action-btn:hover {
    transform: scale(1.05);
}

/* 上へ移動ボタンのホバー */
.vtqf-action-btn.vtqf-reorder-up:hover,
.vtqf-action-btn.vtqf-custom-event-reorder-up:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* 下へ移動ボタンのホバー */
.vtqf-action-btn.vtqf-reorder-down:hover,
.vtqf-action-btn.vtqf-custom-event-reorder-down:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

/* 削除ボタンのホバー */
.vtqf-action-btn.vtqf-action-delete:hover,
.vtqf-action-btn.vtqf-delete-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* タイムライン編集ヒント */
.vtqf-timeline-edit-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 12px;
    padding: 4px 4px 4px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
    gap: 8px;
}

.vtqf-timeline-edit-hint-text {
    flex: 1;
    min-width: 0;
}

/* メタ情報（時間表示） */
.vtqf-spot-meta {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.vtqf-duration-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.vtqf-duration-icon {
    font-size: 12px;
}

.vtqf-spot-meta .vtqf-duration-select {
    padding: 3px 6px;
    font-size: 11px;
    border-radius: 4px;
}

.vtqf-spot-time {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* スポット情報アイコン（旧） */
.vtqf-spot-info-icon {
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.vtqf-spot-info-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* スポット詳細リンク */
.vtqf-spot-info-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #3A7CA5;
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.2s ease;
}

.vtqf-spot-info-link:hover {
    color: #1B3A5C;
    text-decoration: underline;
}

/* スポット詳細ポップアップ */
.vtqf-spot-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}

.vtqf-spot-popup-overlay.active {
    display: flex;
}

.vtqf-spot-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: vtqf-popup-in 0.2s ease-out;
}

@keyframes vtqf-popup-in {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vtqf-spot-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0F2640, #3A7CA5);
    color: #fff;
}

.vtqf-spot-popup-emoji {
    font-size: 22px;
    flex-shrink: 0;
}

.vtqf-spot-popup-name {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.vtqf-spot-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.vtqf-spot-popup-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.vtqf-spot-popup-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    overflow-y: auto;
    flex: 1;
}

.vtqf-spot-popup-meta {
    padding: 10px 16px;
    border-top: 1px solid #e0f2fe;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    background: #f0f9ff;
}

.vtqf-spot-popup-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vtqf-spot-popup-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3A7CA5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.vtqf-spot-popup-meta-link:hover {
    color: #1B3A5C;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .vtqf-spot-popup {
        max-width: 100%;
        max-height: 65vh;
        border-radius: 12px;
    }

    .vtqf-spot-popup-body {
        font-size: 13px;
        padding: 12px;
    }

    .vtqf-spot-popup-meta {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* ティーザー（説明文プレビュー） */
.vtqf-spot-teaser {
    font-size: 12px;
    color: #64748b;
    padding: 4px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.vtqf-spot-teaser:hover {
    color: var(--primary);
}

.vtqf-spot-teaser::after {
    content: ' 詳細を見る ▶';
    font-size: 10px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vtqf-spot-teaser:hover::after {
    opacity: 1;
}

/* 滞在時間プルダウン */
.vtqf-duration-select {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-duration-select:hover {
    border-color: var(--primary-light);
}

.vtqf-duration-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(76, 184, 196, 0.2);
}

/* 旧スタイル互換 */
.vtqf-spot-summary { display: none; }
.vtqf-spot-details { display: none; }
.vtqf-spot-summary-main { display: none; }
.vtqf-spot-quick-actions { display: none; }
.vtqf-quick-btn { display: none; }
.vtqf-spot-summary-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 4px 0;
}

.vtqf-spot-time-compact {
    color: #374151;
    font-weight: 600;
}

.vtqf-spot-duration-compact {
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.vtqf-memo-indicator {
    font-size: 14px;
    opacity: 0.8;
}

/* 詳細展開ボタン */
.vtqf-expand-btn {
    margin-left: auto;
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.vtqf-expand-btn:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.vtqf-timeline-spot.expanded .vtqf-expand-btn {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

/* 詳細エリア内のラベル */
.vtqf-details-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

/* 展開時の詳細エリア */
.vtqf-spot-details {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--gray-100);
    margin-top: 0;
    animation: slideDown 0.2s ease;
}

.vtqf-timeline-spot.expanded .vtqf-spot-details {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vtqf-spot-details-row {
    display: flex;
    align-items: center;
    padding-top: 12px;
    gap: 12px;
}

/* アクションボタン */
.vtqf-spot-actions {
    display: flex;
    gap: 6px;
}

/* 注: .vtqf-action-btn の基本スタイルと色は上部（1744行付近）で定義済み */

.vtqf-timeline-item.vtqf-just-moved .vtqf-timeline-spot {
    animation: justMoved 1.5s ease-out;
}

.vtqf-timeline-item.vtqf-just-moved .vtqf-timeline-dot {
    animation: justMovedDot 1.5s ease-out;
}

@keyframes justMoved {
    0% {
        transform: translateY(-4px);
        background: linear-gradient(135deg, #86efac, #4ade80);
        border-color: #22c55e;
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
    }
    70% {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #bbf7d0, #86efac);
        border-color: #4ade80;
        box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    }
    100% {
        transform: translateY(0);
        background: var(--gray-50);
        border-color: transparent;
        box-shadow: none;
    }
}

@keyframes justMovedDot {
    0% {
        background: #22c55e;
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
        transform: scale(1.2);
    }
    70% {
        background: #4ade80;
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
        transform: scale(1.1);
    }
    100% {
        background: var(--primary);
        box-shadow: none;
        transform: scale(1);
    }
}

/* 通過点スタイル */
.vtqf-timeline-item.vtqf-passthrough-item .vtqf-timeline-spot {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 3px solid #5BA3C9;
    opacity: 0.85;
}

.vtqf-timeline-item.vtqf-passthrough-item .vtqf-timeline-dot {
    background: #5BA3C9;
    font-size: 0.7rem;
}

.vtqf-passthrough-label {
    color: #2B6285;
    font-size: 0.85rem;
    font-weight: 500;
}

.vtqf-duration-wrapper.vtqf-passthrough {
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 散策型スポット */
.vtqf-duration-wrapper.vtqf-stroll-type {
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 4px;
}

.vtqf-stroll-label {
    color: #b45309;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 2px;
}

.vtqf-timeline-spot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

.vtqf-timeline-spot-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vtqf-timeline-reorder {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vtqf-reorder-btn {
    width: 30px;
    height: 24px;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    background: var(--white);
    color: var(--gray-600);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.vtqf-reorder-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.vtqf-reorder-btn:active {
    transform: scale(0.95);
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* スポット名リンク - ミニマルデザイン */
.vtqf-timeline-spot-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vtqf-spot-name-ja {
    display: block;
}

.vtqf-spot-name-romaji {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.3px;
}

.vtqf-spot-name-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.3px;
}

/* 結果カード内のサブ名 */
.vtqf-spot-name .vtqf-spot-name-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
}

.vtqf-spot-name-sub-inline {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-500);
    margin-left: 4px;
}

/* 入場料バッジ */
.vtqf-spot-admission {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

.vtqf-admission-free {
    background: var(--secondary-pale);
    color: var(--secondary-dark);
}

.vtqf-admission-paid {
    background: var(--accent-pale);
    color: var(--accent-dark);
}

a.vtqf-timeline-spot-name {
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
    padding-bottom: 2px;
}

a.vtqf-timeline-spot-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    border-bottom: 1px dashed rgba(59, 130, 246, 0.5);
    transition: all 0.2s ease;
}

a.vtqf-timeline-spot-name:hover,
a.vtqf-timeline-spot-name:active {
    color: var(--primary);
}

a.vtqf-timeline-spot-name:hover::after,
a.vtqf-timeline-spot-name:active::after {
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6), 0 0 16px rgba(59, 130, 246, 0.4);
}

.vtqf-timeline-spot-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vtqf-timeline-spot-romaji {
    font-size: 11px;
    color: var(--gray-400);
    font-style: italic;
    letter-spacing: 0.3px;
}

.vtqf-timeline-spot-time {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.vtqf-timeline-spot-duration {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 同一敷地スポット統合の内訳表示 */
.vtqf-compound-breakdown {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    padding: 4px 8px;
    margin-top: 2px;
    background: #f1f5f9;
    border-radius: 6px;
    flex-wrap: wrap;
}

.vtqf-compound-breakdown span {
    white-space: nowrap;
}

/* タイムライン宿泊カード内の宿を探すボタン */
.vtqf-timeline-hotel-search-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #ea580c;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.vtqf-timeline-hotel-search-btn:hover {
    background: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    color: #fff;
    text-decoration: none;
}

.vtqf-timeline-hotel-search-btn:active {
    transform: translateY(0);
}

.vtqf-duration-label {
    color: var(--gray-500);
}

/* 滞在時間編集 - ミニマルデザイン */
.vtqf-duration-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 4px 8px;
}

.vtqf-duration-btn-minus,
.vtqf-duration-btn-plus {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
    background: white;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
    border: 1px solid var(--gray-200);
}

.vtqf-duration-btn-minus:hover,
.vtqf-duration-btn-plus:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.vtqf-duration-btn-minus:active,
.vtqf-duration-btn-plus:active {
    transform: scale(0.95);
}

.vtqf-duration-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

/* 昼食時間編集ボタン */
.vtqf-lunch-duration-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #3A7CA5;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.vtqf-lunch-duration-btn:hover {
    background: #2B6285;
    transform: scale(1.1);
}

.vtqf-lunch-duration-btn:active {
    transform: scale(0.95);
}

.vtqf-duration-start {
    color: var(--primary);
    font-weight: 600;
    margin-right: 8px;
}

.vtqf-duration-end {
    color: var(--gray-400);
    margin-left: 4px;
}

/* スポットメモ機能 - ミニマルデザイン */
.vtqf-spot-memo {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.vtqf-spot-memo-header,
.vtqf-event-memo-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vtqf-memo-delete-btn,
.vtqf-event-memo-delete-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
}

.vtqf-memo-delete-btn:hover,
.vtqf-event-memo-delete-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.vtqf-spot-memo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 12px;
    color: var(--gray-500);
}

.vtqf-spot-memo-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.vtqf-spot-memo-toggle.has-memo {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.vtqf-spot-memo-toggle.has-memo:hover {
    background: #fde68a;
}

.vtqf-spot-memo-toggle.editing {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.vtqf-memo-icon {
    font-size: 14px;
}

.vtqf-memo-placeholder {
    font-size: 11px;
}

.vtqf-memo-preview {
    font-size: 11px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtqf-spot-memo-edit {
    margin-top: 8px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vtqf-spot-memo-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.vtqf-spot-memo-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vtqf-spot-memo-input::placeholder {
    color: var(--gray-400);
}

.vtqf-spot-memo-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.vtqf-memo-counter {
    font-size: 11px;
    color: var(--gray-500);
}

.vtqf-memo-save-btn {
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-memo-save-btn:hover {
    background: var(--primary-dark);
}

.vtqf-memo-save-btn:active {
    transform: scale(0.98);
}

.vtqf-memo-cancel-btn,
.vtqf-event-memo-cancel-btn {
    padding: 6px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.vtqf-memo-cancel-btn:hover,
.vtqf-event-memo-cancel-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* カスタムイベントメモ（スポットメモと同じスタイルを共有） */
.vtqf-event-memo {
    margin-top: 8px;
}

.vtqf-event-memo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: var(--gray-500);
}

.vtqf-event-memo-toggle:hover {
    background: #fff7ed;
    border-color: #1B3A5C;
    color: #ea580c;
}

.vtqf-event-memo-toggle.has-memo {
    background: #fffbeb;
    border-color: #3A7CA5;
    border-style: solid;
    color: #92400e;
}

.vtqf-event-memo-toggle.has-memo:hover {
    background: #fef3c7;
}

.vtqf-event-memo-toggle.editing {
    background: #fff7ed;
    border-color: #1B3A5C;
    border-style: solid;
}

.vtqf-event-memo-edit {
    margin-top: 8px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vtqf-event-memo-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.vtqf-event-memo-input:focus {
    outline: none;
    border-color: #1B3A5C;
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.vtqf-event-memo-input::placeholder {
    color: var(--gray-400);
}

.vtqf-event-memo-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.vtqf-event-memo-save-btn {
    padding: 6px 16px;
    background: #1B3A5C;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-event-memo-save-btn:hover {
    background: #ea580c;
}

.vtqf-event-memo-save-btn:active {
    transform: scale(0.98);
}

/* 削除ボタン */
.vtqf-timeline-delete-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    margin-right: 8px;
}

.vtqf-timeline-delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.vtqf-timeline-delete-btn:active {
    transform: scale(0.95);
}

/* 昼食スタイル */
.vtqf-timeline-dot-lunch {
    background: #3A7CA5;
    box-shadow: 0 0 0 2px #3A7CA5;
}

.vtqf-timeline-spot-lunch {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
}

.vtqf-timeline-spot-lunch:hover {
    background: linear-gradient(135deg, #fde047, #facc15);
    border-color: #2B6285;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
}

.vtqf-timeline-lunch.vtqf-just-moved .vtqf-timeline-spot {
    animation: justMovedLunch 1.5s ease-out;
}

.vtqf-timeline-lunch.vtqf-just-moved .vtqf-timeline-dot {
    animation: justMovedDotLunch 1.5s ease-out;
}

@keyframes justMovedLunch {
    0% {
        transform: translateY(-4px);
        background: linear-gradient(135deg, #86efac, #4ade80);
        border-color: #22c55e;
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
    }
    70% {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #bbf7d0, #86efac);
        border-color: #4ade80;
        box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    }
    100% {
        transform: translateY(0);
        background: linear-gradient(135deg, #fef3c7, #fde68a);
        border-color: #fbbf24;
        box-shadow: none;
    }
}

@keyframes justMovedDotLunch {
    0% {
        background: #22c55e;
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
        transform: scale(1.2);
    }
    70% {
        background: #4ade80;
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
        transform: scale(1.1);
    }
    100% {
        background: #3A7CA5;
        box-shadow: none;
        transform: scale(1);
    }
}

.vtqf-timeline-spot-lunch .vtqf-timeline-spot-name {
    color: #92400e;
}

.vtqf-timeline-spot-lunch .vtqf-timeline-spot-time {
    color: #2B6285;
}

/* アイテム追加ボタン */
.vtqf-timeline-add-item {
    display: flex;
    justify-content: center;
    padding: 12px 0;
    margin: 8px 0;
}

.vtqf-add-item-btn {
    padding: 10px 20px;
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-add-item-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f9ff;
}

.vtqf-add-lunch-btn:hover {
    border-color: #3A7CA5;
    color: #2B6285;
    background: #fffbeb;
}

/* カスタムイベントモーダル */
.vtqf-custom-event-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.vtqf-custom-event-overlay.active {
    display: flex;
}

.vtqf-custom-event-modal {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vtqf-custom-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--gradient-ocean);
    color: white;
}

.vtqf-custom-event-title {
    margin: 0;
    font-size: 18px;
}

.vtqf-custom-event-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.vtqf-custom-event-content {
    padding: 20px;
}

/* プリセットボタン */
.vtqf-preset-section {
    margin-bottom: 16px;
}

.vtqf-preset-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.vtqf-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vtqf-preset-btn {
    padding: 8px 12px;
    border: 1px solid var(--secondary-pale);
    border-radius: 20px;
    background: linear-gradient(135deg, #f0fdfa, var(--secondary-pale));
    color: var(--secondary-dark);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.vtqf-preset-btn:hover {
    background: linear-gradient(135deg, var(--secondary-pale), var(--secondary-light));
    border-color: var(--secondary);
    transform: translateY(-1px);
}

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

/* 昼食プリセットボタン */
.vtqf-preset-btn.vtqf-preset-lunch {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
    color: #92400e;
}

.vtqf-preset-btn.vtqf-preset-lunch:hover {
    background: linear-gradient(135deg, #fde047, #facc15);
    border-color: #3A7CA5;
}

.vtqf-custom-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--gray-400);
    font-size: 12px;
}

.vtqf-custom-divider::before,
.vtqf-custom-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.vtqf-custom-divider span {
    padding: 0 12px;
}

.vtqf-custom-event-field {
    margin-bottom: 16px;
}

.vtqf-custom-event-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.vtqf-custom-event-field input,
.vtqf-custom-event-field select,
.vtqf-custom-event-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.vtqf-custom-event-field input:focus,
.vtqf-custom-event-field select:focus,
.vtqf-custom-event-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vtqf-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vtqf-emoji-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-emoji-btn:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.vtqf-emoji-btn.selected {
    border-color: var(--secondary);
    background: var(--secondary-pale);
}

.vtqf-custom-event-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.vtqf-custom-event-cancel {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-600);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.vtqf-custom-event-submit {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--gradient-ocean);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.vtqf-custom-event-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* カスタムイベントカード */
.vtqf-timeline-dot-custom {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.vtqf-timeline-spot-custom {
    background: linear-gradient(135deg, var(--accent-pale), #fde7d9);
    border: 2px solid var(--accent-light);
}

.vtqf-timeline-spot-custom:hover {
    background: linear-gradient(135deg, #fde7d9, #fdd5c4);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(27, 58, 92, 0.35);
}

.vtqf-timeline-custom-event.vtqf-just-moved .vtqf-timeline-spot {
    animation: justMovedCustom 1.5s ease-out;
}

.vtqf-timeline-custom-event.vtqf-just-moved .vtqf-timeline-dot {
    animation: justMovedDotCustom 1.5s ease-out;
}

@keyframes justMovedCustom {
    0% {
        transform: translateY(-4px);
        background: linear-gradient(135deg, #86efac, #4ade80);
        border-color: #22c55e;
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
    }
    70% {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #bbf7d0, #86efac);
        border-color: #4ade80;
        box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    }
    100% {
        transform: translateY(0);
        background: linear-gradient(135deg, var(--accent-pale), #fde7d9);
        border-color: var(--accent-light);
        box-shadow: none;
    }
}

@keyframes justMovedDotCustom {
    0% {
        background: #22c55e;
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
        transform: scale(1.2);
    }
    70% {
        background: #4ade80;
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
        transform: scale(1.1);
    }
    100% {
        background: var(--accent);
        box-shadow: none;
        transform: scale(1);
    }
}

.vtqf-timeline-spot-custom .vtqf-timeline-spot-name {
    color: var(--accent-dark);
}

/* 宿泊スタイル */
.vtqf-timeline-dot-hotel {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.vtqf-timeline-spot-hotel {
    background: linear-gradient(135deg, var(--primary-pale), #cce8f6);
    border: 1px solid var(--primary);
}

.vtqf-timeline-spot-hotel .vtqf-timeline-spot-name {
    color: var(--primary-dark);
}

.vtqf-timeline-spot-hotel .vtqf-timeline-spot-time {
    color: var(--primary);
}

.vtqf-timeline-hotel-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.vtqf-hotel-select {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    background: white;
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    appearance: auto;
}

.vtqf-hotel-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(27, 58, 92, 0.2);
}

/* ホテルレコメンド */
.vtqf-hotel-recommend {
    margin-top: 10px;
}

.vtqf-hotel-recommend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-hotel-recommend-header:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
}

.vtqf-hotel-recommend-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #92400e;
}

.vtqf-hotel-recommend-arrow {
    font-size: 11px;
    color: #92400e;
    transition: transform 0.2s ease;
}

.vtqf-hotel-recommend-list {
    display: none;
    margin-top: 8px;
}

.vtqf-hotel-recommend-list.vtqf-hotel-list-open {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vtqf-hotel-recommend-card {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.vtqf-hotel-recommend-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.vtqf-hotel-recommend-card.vtqf-hotel-best {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fff);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.vtqf-hotel-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 6px;
}

.vtqf-hotel-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.vtqf-hotel-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.vtqf-hotel-card-dist {
    font-size: 11.5px;
    color: #6b7280;
}

.vtqf-hotel-card-bus {
    display: block;
    font-size: 11px;
    color: #3b82f6;
    margin-top: 2px;
}

.vtqf-hotel-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vtqf-hotel-card-link {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.vtqf-hotel-card-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
}

.vtqf-hotel-card-book {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: #ea580c;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.vtqf-hotel-card-book:hover {
    background: #c2410c;
    text-decoration: none;
    color: #fff;
}

.vtqf-book-jalan {
    background: #ea580c;
}

.vtqf-book-jtb {
    background: #c41e3a;
}

.vtqf-book-jtb:hover {
    background: #a01830;
}

.vtqf-hotel-coupon-link {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #c41e3a;
    text-decoration: none;
    font-weight: 600;
}

.vtqf-hotel-coupon-link:hover {
    text-decoration: underline;
    color: #a01830;
}

/* 日付ヘッダー */
.vtqf-timeline-day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #9ca3af;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 24px 0 16px 0;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.02em;
}

.vtqf-timeline-day-header:first-child {
    margin-top: 0;
}

.vtqf-timeline-day-header:nth-child(odd) {
    background: #6b7280;
}

.vtqf-day-weather-compact {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.vtqf-timeline-day-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: 0.8rem;
}

.vtqf-day-sunset {
    font-size: 11px;
    font-weight: 600;
    color: #d97706;
    background: #fffbeb;
    padding: 3px 10px;
    border-radius: 20px;
}

.vtqf-day-end-time {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 20px;
}

.vtqf-day-end-time:empty {
    display: none;
}

.vtqf-day-end-time.vtqf-over-sunset {
    color: #dc2626;
    background: #fef2f2;
}

/* 日没マーカー・警告 */
.vtqf-sunset-marker {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.vtqf-sunset-marker.vtqf-golden-hour {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    animation: goldenHourPulse 2s ease-in-out infinite;
}

@keyframes goldenHourPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.vtqf-sunset-warning {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.vtqf-sunset-warning.vtqf-sunset-soon {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
}

.vtqf-sunset-warning.vtqf-after-sunset {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
    color: var(--primary-pale);
}

/* 日没時間帯のタイムラインアイテム背景 */
.vtqf-timeline-item.vtqf-golden-hour .vtqf-timeline-spot {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #3A7CA5;
}

.vtqf-timeline-item.vtqf-sunset-soon .vtqf-timeline-spot {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
}

.vtqf-timeline-item.vtqf-after-sunset .vtqf-timeline-spot {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-color: var(--gray-500);
}

/* 営業時間警告 */
.vtqf-hours-warning {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.vtqf-hours-warning.vtqf-hours-closing_soon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.vtqf-hours-warning.vtqf-hours-closed {
    background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
    color: #991b1b;
}

.vtqf-hours-warning.vtqf-hours-open_late {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1e40af;
}

/* 営業時間警告のカード背景 */
.vtqf-timeline-item.vtqf-hours-closing_soon .vtqf-timeline-spot {
    border-left: 3px solid #3A7CA5;
}

.vtqf-timeline-item.vtqf-hours-closed .vtqf-timeline-spot {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    border-left: 3px solid #ef4444;
    opacity: 0.8;
}

.vtqf-timeline-item.vtqf-hours-open_late .vtqf-timeline-spot {
    border-left: 3px solid #3b82f6;
}

/* 移動セクション */
.vtqf-timeline-travel {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1px 0 1px 38px;
    margin-bottom: 2px;
    position: relative;
}

.vtqf-timeline-travel .vtqf-timeline-travel-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: rgba(45,122,173,0.07);
    border: 1px solid rgba(45,122,173,0.13);
    border-radius: 8px;
    padding: 5px 10px;
}

.vtqf-timeline-travel-icon {
    font-size: 0.85rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45,122,173,0.12);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: none;
}

.vtqf-timeline-travel-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    font-size: 0.68rem;
    font-weight: 500;
    color: #1a4a6e;
}

/* 移動所要時間（右端） */
.vtqf-travel-duration {
    font-size: 0.62rem;
    color: #999;
    white-space: nowrap;
    margin-left: auto;
}

/* サブテキスト（Google Maps等） */
.vtqf-transit-link-row,
.vtqf-transit-btn {
    font-size: 0.65rem;
    color: #aaa;
}

/* バス停・路線表示 */
.vtqf-travel-bus-stops,
.vtqf-travel-bus-route {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    width: 100%;
}

.vtqf-travel-bus-route {
    color: #3b82f6;
}

.vtqf-timeline-travel-info:has(.vtqf-travel-bus-stops) {
    flex-wrap: wrap;
}

/* 長距離徒歩（30分超）のバス推薦 */
.vtqf-timeline-travel-long-walk {
    border-left-color: #f59e0b;
}

.vtqf-travel-bus-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 3px 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    font-size: 11px;
    color: #92400e;
    width: fit-content;
}

.vtqf-bus-hint-icon {
    font-size: 13px;
}

.vtqf-timeline-travel-info:has(.vtqf-travel-bus-hint) {
    flex-wrap: wrap;
}

/* 近距離移動（徒歩すぐ）*/
.vtqf-timeline-travel-short {
    /* 短距離は同じスタイルでコンパクトに */
}

.vtqf-timeline-travel-short .vtqf-timeline-travel-inner {
    background: rgba(45,122,173,0.04);
    border-color: rgba(45,122,173,0.08);
}

.vtqf-timeline-travel-short .vtqf-timeline-travel-icon {
    background: rgba(45,122,173,0.07);
    box-shadow: none;
}

.vtqf-timeline-travel-short .vtqf-timeline-travel-info {
    color: #aaa;
    font-size: 0.72rem;
}

/* 公共交通機関詳細表示（電車） */
.vtqf-timeline-travel-transit,
.vtqf-timeline-travel-bus,
.vtqf-timeline-travel-transfer {
    padding: 4px 0 4px 44px;
    margin-bottom: 8px;
    display: block;
    position: relative;
}

.vtqf-timeline-travel-transit .vtqf-timeline-travel-icon,
.vtqf-timeline-travel-bus .vtqf-timeline-travel-icon {
    background: rgba(45,122,173,0.15);
    color: #1a4a6e;
    box-shadow: none;
}

.vtqf-timeline-travel-transfer .vtqf-timeline-travel-icon {
    background: rgba(45,122,173,0.1);
    color: #1a4a6e;
    box-shadow: none;
    position: static;
}

.vtqf-timeline-travel-transfer .vtqf-timeline-travel-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding-left: 0;
}

.vtqf-travel-transfer-badge {
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.vtqf-travel-step-transfer {
    background: var(--secondary-pale);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 4px 0;
}

.vtqf-travel-step-transfer .vtqf-step-text {
    color: var(--secondary-dark);
    font-weight: 600;
}

.vtqf-timeline-travel-transit > .vtqf-timeline-travel-icon,
.vtqf-timeline-travel-bus > .vtqf-timeline-travel-icon {
    position: absolute;
    left: 16px;
}

.vtqf-timeline-travel-transit .vtqf-timeline-travel-info,
.vtqf-timeline-travel-bus .vtqf-timeline-travel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-left: 24px;
}

.vtqf-travel-total {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

/* 移動情報アコーディオン */
.vtqf-travel-collapsible .vtqf-travel-header {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.vtqf-travel-toggle {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.vtqf-travel-toggle:hover {
    color: var(--primary);
}

.vtqf-travel-collapsible.expanded .vtqf-travel-toggle {
    transform: rotate(180deg);
}

.vtqf-timeline-travel-breakdown {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 24px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-300);
    width: 100%;
}

.vtqf-travel-collapsible.expanded .vtqf-timeline-travel-breakdown {
    display: flex;
}

.vtqf-travel-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.vtqf-step-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.vtqf-step-text {
    flex: 1;
}

.vtqf-timeline-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    padding: 6px 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
    background: #fff;
    border-top: 1px solid #e8ddd0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-shrink: 0;
}

/* フッター共通ピルボタン */
.vtqf-footer-pill {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 7px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
    letter-spacing: 0.01em;
    min-width: 0;
}
.vtqf-footer-pill:hover { opacity: 0.85; }
.vtqf-footer-pill:active { transform: scale(0.96); }

/* ＋追加 - 赤系（コンパクト） */
.vtqf-pill-add {
    background: #c9472b;
    color: #fff;
    flex: 0 0 auto;
    padding: 7px 10px;
}
/* 📋 概要 - ネイビー系 */
.vtqf-pill-overview {
    background: #1a4a6e;
    color: #fff;
}
/* 🗺️ 地図 - グリーン系 */
.vtqf-pill-map {
    background: #1a7a4a;
    color: #fff;
}
/* 📤 共有 - アンバー系 */
.vtqf-pill-share {
    background: #b8860b;
    color: #fff;
}
/* 🆘 避難 - 赤系 */
.vtqf-pill-evac {
    background: #d32f2f;
    color: #fff;
}

/* 地図日別ボタン */
.vtqf-maps-btn-container {
    display: flex;
    gap: 3px;
    flex: 1;
    min-width: 0;
}



/* 共有モーダル - ガラスモーフィズム */
.vtqf-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 58, 92, 0.15) 0%, rgba(27, 58, 92, 0.15) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.vtqf-share-overlay.active {
    display: flex;
}

.vtqf-share-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 90%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(27, 58, 92, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.vtqf-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: rgba(16, 185, 129, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.vtqf-share-title {
    margin: 0;
    font-size: 18px;
}

.vtqf-share-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.vtqf-share-content {
    padding: 24px;
    text-align: center;
}

.vtqf-share-qr {
    margin-bottom: 16px;
}

.vtqf-share-qr img {
    width: 180px;
    height: 180px;
    border: 4px solid var(--gray-100);
    border-radius: 8px;
}

.vtqf-share-hint {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0 0 16px 0;
}

.vtqf-share-url-box {
    display: flex;
    gap: 8px;
}

.vtqf-share-url-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 12px;
    color: var(--gray-600);
    background: var(--gray-50);
}

.vtqf-share-copy-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #10b981;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.vtqf-share-copy-btn:hover {
    background: #059669;
}

.vtqf-share-copy-btn.copied {
    background: #6b7280;
}

.vtqf-timeline-save-btn:hover {
    border-color: #10b981;
    color: #10b981;
}

.vtqf-timeline-map-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.vtqf-timeline-map-btn:hover {
    background: rgba(27, 58, 92, 0.05);
}

/* 地図日別ボタンの色分け */
.vtqf-maps-day-btn {
    padding: 7px 4px;
    font-size: 0.6rem;
    flex: 1;
}

.vtqf-footer-pill.vtqf-maps-day-btn[data-day="1"] {
    background: #2563eb;
}

.vtqf-footer-pill.vtqf-maps-day-btn[data-day="2"] {
    background: #7c3aed;
}

/* 概要ボタン */
.vtqf-timeline-overview-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

.vtqf-timeline-overview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.4);
}

/* ルート概要モーダル */
.vtqf-overview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1100;
}

.vtqf-overview-overlay.active {
    display: flex;
}

.vtqf-overview-modal {
    background: var(--white);
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vtqf-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.vtqf-overview-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-overview-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 20px;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vtqf-overview-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.vtqf-overview-content {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    background: #f8fafc;
}

/* モーダル内のルート概要スタイル調整 */
.vtqf-overview-content .vtqf-route-overview {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.vtqf-overview-content .vtqf-route-body {
    display: flex !important;
    flex-direction: column;
    max-height: none !important;
    flex: 1;
    border-top: none;
}

.vtqf-overview-content .vtqf-route-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid var(--gray-200);
    cursor: default;
    flex-wrap: wrap;
    gap: 8px;
}

.vtqf-overview-content .vtqf-route-toggle-icon,
.vtqf-overview-content .vtqf-route-title {
    display: none;
}

.vtqf-overview-content .vtqf-route-summary {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    background: none;
    padding: 0;
}

.vtqf-overview-content .vtqf-ro-date-weather {
    order: -1;
}


.vtqf-overview-content .vtqf-route-close-btn {
    display: none;
}

/* ========================================
   地図モーダル (Leaflet)
   ======================================== */
.vtqf-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1200;
}

.vtqf-map-overlay.active {
    display: flex;
}

.vtqf-map-modal {
    background: var(--white);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vtqf-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    flex-shrink: 0;
}

.vtqf-map-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.vtqf-map-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vtqf-map-lang-wrap {
    position: relative;
    flex-shrink: 0;
}

.vtqf-map-lang-toggle {
    width: 32px;
    height: 32px;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.vtqf-map-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vtqf-map-lang-menu {
    display: none !important;
    position: fixed;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    z-index: 9999;
    padding: 4px;
    animation: vtqf-lang-dropdown-in 0.12s ease-out;
}

.vtqf-map-lang-menu.active {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
}

.vtqf-map-lang-menu .vtqf-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 7px 12px;
    font-size: 13px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray-700, #333);
    transition: background 0.12s;
}

.vtqf-map-lang-menu .vtqf-lang-btn:hover {
    background: rgba(27, 58, 92, 0.08);
}

.vtqf-map-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vtqf-map-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vtqf-map-container {
    flex: 1;
    min-height: 0;
    position: relative;
}

#vtqf-map-container {
    width: 100%;
    height: 100%;
}

/* Leaflet カスタムマーカー */
.vtqf-map-marker {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vtqf-map-marker-multi {
    border-radius: 14px;
    width: auto;
    min-width: 28px;
    padding: 0 6px;
    white-space: nowrap;
}

.vtqf-map-marker-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.vtqf-map-marker-end {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.vtqf-map-marker-hotel {
    background: #f59e0b;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.vtqf-map-marker-station {
    background: linear-gradient(135deg, #3A7CA5 0%, #2B6285 100%);
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.vtqf-map-marker-station-mid {
    width: 26px;
    height: 26px;
    font-size: 13px;
    opacity: 0.85;
}

/* Leaflet ポップアップカスタマイズ */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
    margin: 10px 14px !important;
    font-size: 13px;
    line-height: 1.5;
}

.vtqf-popup-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.vtqf-popup-time {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.vtqf-popup-walk {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 8px;
}

.vtqf-popup-next-station {
    font-size: 12px;
    font-weight: 600;
    color: #2B6285;
    margin-bottom: 8px;
    padding: 3px 6px;
    background: #f0f9ff;
    border-radius: 4px;
    border-left: 3px solid #3A7CA5;
}

.vtqf-popup-bridge-dir {
    font-size: 12px;
    color: var(--gray-700);
    margin-bottom: 8px;
    padding: 4px 8px;
    background: #fef9ef;
    border-radius: 4px;
    border-left: 3px solid #f59e0b;
    line-height: 1.6;
}

.vtqf-popup-nav-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white !important;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.vtqf-popup-nav-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
}

.vtqf-popup-site-btn {
    display: block;
    width: 100%;
    padding: 7px 12px;
    margin-top: 5px;
    background: linear-gradient(135deg, #5f6368, #3c4043);
    color: white !important;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.vtqf-popup-site-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(60, 64, 67, 0.4);
}

/* ポップアップ詳細情報 */
.vtqf-popup-details {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 8px;
    padding: 5px 8px;
    background: #f8fafc;
    border-radius: 6px;
    line-height: 1.7;
    border: 1px solid #e2e8f0;
}

/* 路線バッジ */
.vtqf-popup-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.vtqf-popup-line-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.5;
}

/* 乗車情報 */
.vtqf-popup-ride-info {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 6px;
}

/* 次のスポットまで徒歩 */
.vtqf-popup-next-walk {
    font-size: 12px;
    color: #059669;
    margin-bottom: 8px;
    padding: 3px 6px;
    background: #f0fdf4;
    border-radius: 4px;
    border-left: 3px solid #10b981;
}

/* ====== 地図凡例（レジェンド） ====== */
.vtqf-map-legend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 11px;
    line-height: 1.5;
    max-width: 170px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.vtqf-map-legend.vtqf-legend-open {
    padding: 10px 14px;
}

.vtqf-legend-toggle {
    font-weight: 700;
    font-size: 12px;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    user-select: none;
    -webkit-user-select: none;
}

.vtqf-legend-arrow {
    font-size: 10px;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.vtqf-legend-open .vtqf-legend-arrow {
    transform: rotate(90deg);
}

.vtqf-legend-body {
    display: none;
    padding-top: 6px;
}

.vtqf-legend-open .vtqf-legend-body {
    display: block;
}

.vtqf-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    color: var(--gray-700);
}

.vtqf-legend-subitem {
    padding-left: 8px;
    font-size: 10px;
}

.vtqf-legend-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 5px 0;
}

/* 凡例マーカー */
.vtqf-legend-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.vtqf-legend-start {
    background: linear-gradient(135deg, #10b981, #059669);
}

.vtqf-legend-start::after { content: '1'; }

.vtqf-legend-spot {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.vtqf-legend-spot::after { content: 'N'; }

.vtqf-legend-end {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.vtqf-legend-end::after { content: '5'; }

.vtqf-legend-station {
    background: linear-gradient(135deg, #3A7CA5, #2B6285);
    font-size: 11px;
}

.vtqf-legend-hotel {
    background: #f59e0b;
    font-size: 11px;
}

/* 凡例ライン */
.vtqf-legend-line {
    display: inline-block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}

.vtqf-legend-line-walk {
    background: repeating-linear-gradient(
        90deg,
        #10b981 0px, #10b981 5px,
        transparent 5px, transparent 9px
    );
    height: 3px;
}

.vtqf-legend-line-train {
    background: #2563eb;
    height: 4px;
}

.vtqf-legend-line-color {
    display: inline-block;
    width: 14px;
    height: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* プランタイプ選択ダイアログ */
.vtqf-plantype-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.vtqf-plantype-overlay.active {
    display: flex;
}

.vtqf-plantype-dialog {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.vtqf-plantype-dialog-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 8px 0;
}

.vtqf-plantype-dialog-desc {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 24px 0;
}

.vtqf-plantype-options {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.vtqf-plantype-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
}

.vtqf-plantype-btn:hover {
    border-color: var(--primary);
    background: var(--primary-pale);
    transform: translateY(-2px);
}

.vtqf-plantype-btn[data-plantype="relaxed"]:hover {
    border-color: #4caf50;
    background: #e8f5e9;
}

.vtqf-plantype-btn[data-plantype="packed"]:hover {
    border-color: #ff9800;
    background: #fff3e0;
}

.vtqf-plantype-emoji {
    font-size: 36px;
}

.vtqf-plantype-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-plantype-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
}

.vtqf-plantype-cancel {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
}

.vtqf-plantype-cancel:hover {
    color: var(--gray-700);
}

.vtqf-options-duration {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vtqf-option-radio {
    position: relative;
}

.vtqf-option-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.vtqf-option-radio label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 100px;
    position: relative;
}

.vtqf-option-radio label:hover {
    border-color: var(--primary-light);
    background: var(--primary-pale);
}

.vtqf-option-radio input[type="radio"]:checked + label,
.vtqf-option-radio.selected label {
    border-color: var(--primary);
    background: var(--primary-pale);
    box-shadow: 0 0 0 3px rgba(10, 92, 143, 0.12);
}

.vtqf-option-radio input[type="radio"]:checked + label::after,
.vtqf-option-radio.selected label::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.vtqf-option-radio .vtqf-option-emoji {
    font-size: 28px;
    margin-bottom: 8px;
    cursor: help;
    padding: 6px;
    border-radius: 10px;
    transition: background 0.2s;
}

@media (hover: none) {
    .vtqf-option-radio .vtqf-option-emoji {
        background: rgba(59, 130, 246, 0.1);
    }
    .vtqf-option-radio .vtqf-option-emoji:active {
        background: rgba(59, 130, 246, 0.25);
    }
}

.vtqf-option-radio .vtqf-option-label {
    font-size: 14px;
}

/* プライオリティ選択のグリッド */
.vtqf-options-priority {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* プライオリティ選択のツールチップ位置 */
.vtqf-options-priority .vtqf-option-radio.vtqf-has-tooltip:first-child::after {
    left: 0;
    transform: translateX(0);
}

.vtqf-options-priority .vtqf-option-radio.vtqf-has-tooltip:first-child::before {
    left: 20px;
    transform: translateX(0);
}

.vtqf-options-priority .vtqf-option-radio.vtqf-has-tooltip:last-child::after {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.vtqf-options-priority .vtqf-option-radio.vtqf-has-tooltip:last-child::before {
    left: auto;
    right: 20px;
    transform: translateX(0);
}

@media (max-width: 480px) {
    .vtqf-options-priority {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .vtqf-option-radio label {
        padding: 12px 8px;
        min-width: auto;
    }

    .vtqf-option-radio .vtqf-option-emoji {
        font-size: 24px;
    }

    .vtqf-option-radio .vtqf-option-label {
        font-size: 11px;
    }
}

/* ========================================
   コース選択（鎌倉エリア）
   ======================================== */
.vtqf-course-description {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 16px 0;
    text-align: center;
}

.vtqf-options-courses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vtqf-course-option label {
    min-height: 100px;
    padding: 16px 12px;
}

.vtqf-course-time {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
}

@media (max-width: 480px) {
    .vtqf-options-courses {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   観光地選択（ランク表示付き）
   ======================================== */
.vtqf-spot-group {
    margin-bottom: 16px;
}

/* エリアヘッダー（折りたたみ対応） */
.vtqf-spot-group-header {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 2px solid var(--gray-200);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.vtqf-spot-group-header:active {
    opacity: 0.7;
}

.vtqf-spot-group-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-spot-group-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
}

.vtqf-spot-group-selected {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-left: 6px;
}

.vtqf-spot-group-chevron {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--gray-400);
}

.vtqf-spot-group.collapsed .vtqf-spot-group-chevron {
    transform: rotate(-90deg);
}

/* エリアボディ（折りたたみアニメーション） */
.vtqf-spot-group-body {
    overflow: hidden;
    max-height: 3000px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
    padding-top: 8px;
}

.vtqf-spot-group.collapsed .vtqf-spot-group-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
}

/* 2列グリッドレイアウト */
.vtqf-options-spots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.vtqf-options-spots .vtqf-option-checkbox,
.vtqf-options-spots .vtqf-option-card {
    width: 100%;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.vtqf-options-spots .vtqf-option-checkbox label,
.vtqf-options-spots .vtqf-option-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0f2fe;
    box-shadow: 0 1px 3px rgba(27, 58, 92, 0.08);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 90px;
    position: relative;
    transition: all 0.2s ease, transform 0.3s ease;
}

/* サムネイル画像 */
.vtqf-spot-thumb {
    width: 100%;
    height: 52px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.vtqf-spot-thumb-empty {
    display: none;
}

/* サムネ下のコンテンツエリア */
.vtqf-spot-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px 8px;
    width: 100%;
    box-sizing: border-box;
}

/* 選択時スタイル */
.vtqf-options-spots .vtqf-option-checkbox input[type="checkbox"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-pale);
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.12);
    animation: vtqf-spot-select 0.3s ease;
}

/* チェックマーク表示 */
.vtqf-options-spots .vtqf-option-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: vtqf-check-pop 0.25s ease;
    z-index: 2;
}

@keyframes vtqf-spot-select {
    0% { transform: scale(1); }
    30% { transform: scale(0.96); }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes vtqf-check-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .vtqf-options-spots .vtqf-option-checkbox input[type="checkbox"]:checked + label {
        animation: none;
    }
    .vtqf-options-spots .vtqf-option-checkbox input[type="checkbox"]:checked + label::after {
        animation: none;
    }
}

.vtqf-options-spots .vtqf-option-emoji {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: auto;
    text-align: center;
    display: block;
    line-height: 1;
}

.vtqf-options-spots .vtqf-option-text,
.vtqf-options-spots .vtqf-option-label-wrap {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.vtqf-options-spots .vtqf-option-label {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #0f172a;
    line-height: 1.3;
}

.vtqf-options-spots .vtqf-option-romaji,
.vtqf-options-spots .vtqf-option-sublabel {
    font-size: 0.65rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

/* 非日本語の長いテキスト対応 */
[lang="en"] .vtqf-options-spots .vtqf-option-label,
[lang="zh"] .vtqf-options-spots .vtqf-option-label,
[lang="ko"] .vtqf-options-spots .vtqf-option-label,
[lang="fr"] .vtqf-options-spots .vtqf-option-label,
[lang="de"] .vtqf-options-spots .vtqf-option-label,
[lang="es"] .vtqf-options-spots .vtqf-option-label {
    font-size: 0.7rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

/* スポット選択カードの詳細ボタン */
.vtqf-spot-detail-link {
    margin-left: 0;
    margin-top: auto;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(27, 58, 92, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.vtqf-spot-detail-link:active {
    background: rgba(27, 58, 92, 0.18);
}

/* スポット説明文（デフォルト非表示） */
.vtqf-spot-desc {
    display: none;
}

/* トグルボタン行 */
.vtqf-spot-view-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 4px;
}

.vtqf-spot-view-toggle-row .vtqf-tooltip-hint {
    margin: 0;
    flex: 1;
}

.vtqf-spot-view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.vtqf-spot-view-toggle:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}

.vtqf-spot-view-toggle:active {
    transform: scale(0.96);
}

/* スポットカテゴリフィルター */
.vtqf-spot-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 12px;
}

.vtqf-spot-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    padding: 0;
}

.vtqf-spot-reset-btn {
    display: none;
}

.vtqf-spot-filter-btn {
    padding: 5px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vtqf-spot-filter-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}

.vtqf-spot-filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    font-weight: 600;
}

/* 結果画面の表示切替ボタン行 */
.vtqf-result-view-toggle-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 4px;
    margin-bottom: 8px;
}

/* 結果画面の簡易モード */
.vtqf-result-simple .vtqf-spot-content {
    display: none;
}

.vtqf-result-simple .vtqf-spot-card {
    border-radius: 14px;
}

.vtqf-result-simple .vtqf-spot-image-container {
    max-height: 100px;
}

.vtqf-result-simple .vtqf-spot-image-container img,
.vtqf-result-simple .vtqf-slideshow {
    max-height: 100px;
}

.vtqf-result-simple .vtqf-spot-header-simple {
    padding: 12px 16px;
}

/* ツールチップ操作ヒント（モバイルのみ） */
.vtqf-tooltip-hint {
    display: none;
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    margin: 8px 0 4px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 6px;
}

@media (hover: none) {
    .vtqf-tooltip-hint {
        display: block;
    }
}

/* スポット選択ツールチップ */
.vtqf-has-tooltip {
    position: relative;
}

.vtqf-has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.4);
}

.vtqf-has-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d5a87;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

/* PC: ホバーで表示 */
@media (hover: hover) {
    .vtqf-has-tooltip:hover::after,
    .vtqf-has-tooltip:hover::before {
        opacity: 1;
        visibility: visible;
    }
}

/* モバイル: 長押しで表示（JSで制御） */
.vtqf-has-tooltip.tooltip-active::after,
.vtqf-has-tooltip.tooltip-active::before {
    opacity: 1;
    visibility: visible;
}

/* 左端・右端のツールチップ位置調整（2列グリッド用） */
.vtqf-options-spots .vtqf-option-checkbox.vtqf-has-tooltip:nth-child(odd)::after {
    left: 0;
    transform: translateX(0);
}

.vtqf-options-spots .vtqf-option-checkbox.vtqf-has-tooltip:nth-child(odd)::before {
    left: 20px;
    transform: translateX(0);
}

.vtqf-options-spots .vtqf-option-checkbox.vtqf-has-tooltip:nth-child(even)::after {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.vtqf-options-spots .vtqf-option-checkbox.vtqf-has-tooltip:nth-child(even)::before {
    left: auto;
    right: 20px;
    transform: translateX(0);
}

/* ランクバッジ */
.vtqf-spot-rank-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 700;
    color: var(--white);
}

.vtqf-spot-rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--gray-800);
}

.vtqf-spot-rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: var(--gray-800);
}

.vtqf-spot-rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
}

.vtqf-spot-rank-badge.rank-other {
    background: var(--gray-400);
}

/* 季節おすすめバッジ */
.vtqf-seasonal-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    color: var(--gray-800);
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ボタン - ガラスモーフィズム
   ======================================== */
.vtqf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vtqf-btn-primary {
    background: rgba(27, 58, 92, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.vtqf-btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(27, 58, 92, 1);
    box-shadow: 0 8px 28px rgba(27, 58, 92, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.vtqf-btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #4b5563;
    border: 1px solid rgba(27, 58, 92, 0.2);
}

.vtqf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(27, 58, 92, 0.4);
}

.vtqf-btn-back {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #6b7280;
    padding: 10px 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.vtqf-btn-back:hover {
    color: #1B3A5C;
    background: rgba(27, 58, 92, 0.1);
    border-color: rgba(27, 58, 92, 0.3);
}

/* 画面上部の戻るボタン */
.vtqf-back-top {
    display: block;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 16px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
}

.vtqf-back-top:hover {
    border-color: rgba(27, 58, 92, 0.5);
    background: rgba(255, 255, 255, 0.8);
}

.vtqf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vtqf-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.vtqf-question {
    display: none;
    opacity: 0;
    transition: opacity 150ms ease-out;
}

.vtqf-question.vtqf-fade-in {
    opacity: 1;
}

.vtqf-question.vtqf-fade-out {
    opacity: 0;
}

.vtqf-question[data-question="start"] {
    display: block;
    opacity: 1;
}

/* ========================================
   ローディング画面
   ======================================== */
.vtqf-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.vtqf-loading.active {
    display: flex;
}

.vtqf-loading-card {
    background: white;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: vtqf-loading-pop 0.3s ease-out;
}

@keyframes vtqf-loading-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .vtqf-loading-card {
        margin: 20px;
        padding: 30px 25px;
    }
}

/* 波アニメーション */
.vtqf-loading-wave {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 28px;
    height: 70px;
}

.vtqf-wave-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: vtqf-wave 1.2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* 海の波をイメージした青グラデーション */
.vtqf-wave-dot:nth-child(1) {
    background: linear-gradient(180deg, #3A7CA5, #2B6285);
    animation-delay: 0s;
}
.vtqf-wave-dot:nth-child(2) {
    background: linear-gradient(180deg, #5BA3C9, #3A7CA5);
    animation-delay: 0.1s;
}
.vtqf-wave-dot:nth-child(3) {
    background: linear-gradient(180deg, #7dd3fc, #5BA3C9);
    animation-delay: 0.2s;
}
.vtqf-wave-dot:nth-child(4) {
    background: linear-gradient(180deg, #5BA3C9, #3A7CA5);
    animation-delay: 0.3s;
}
.vtqf-wave-dot:nth-child(5) {
    background: linear-gradient(180deg, #3A7CA5, #2B6285);
    animation-delay: 0.4s;
}

@keyframes vtqf-wave {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) scale(1.15);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    }
}

/* 旧スピナー（互換性のため残す） */
.vtqf-loading-spinner {
    display: none;
}

.vtqf-loading-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 8px 0;
}

.vtqf-loading-subtext {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.vtqf-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    text-align: left;
}

.vtqf-loading-step {
    font-size: 13px;
    color: var(--gray-400);
    padding: 4px 0;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.vtqf-loading-step.active {
    color: var(--primary, #1a4a6e);
    font-weight: 600;
    opacity: 1;
}

.vtqf-loading-step.done {
    color: var(--gray-500);
    opacity: 0.6;
}

.vtqf-loading-step.done::first-letter {
    /* emoji keeps original */
}

.vtqf-loading-step.active::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary, #1a4a6e);
    border-radius: 50%;
    margin-left: 6px;
    animation: vtqfLoadingDot 1s infinite;
}

@keyframes vtqfLoadingDot {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   結果画面
   ======================================== */
.vtqf-result {
    display: none;
}

.vtqf-result.active {
    display: block;
}

.vtqf-result-header {
    text-align: center;
    margin-bottom: 32px;
}

.vtqf-result-title {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 8px 0;
    color: var(--gray-800);
}

.vtqf-result-subtitle {
    font-size: 14px;
    color: var(--gray-500);
}

/* 最適化要素アピールバッジ */
.vtqf-optimization-badge {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 184, 196, 0.3);
}

.vtqf-opt-header {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vtqf-opt-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.vtqf-opt-factor {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.vtqf-opt-note {
    font-size: 11px;
    opacity: 0.85;
    text-align: center;
}

.vtqf-result-stats {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-full);
    margin-top: 16px;
    border: 1px solid var(--gray-200);
}

.vtqf-result-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-600);
}

.vtqf-result-stat-value {
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   タイムラインセクション
   ======================================== */
.vtqf-timeline-section {
    text-align: center;
    padding: 24px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1) 0%, rgba(18, 184, 134, 0.1) 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--hover);
}

.vtqf-timeline-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.vtqf-timeline-main-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
}

.vtqf-timeline-main-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    box-shadow: none;
    cursor: not-allowed;
}

.vtqf-timeline-hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

/* ========================================
   AI最適化ルート統合カード（コンパクト版）
   ======================================== */
.vtqf-ai-route-card {
    background: linear-gradient(135deg, #20c997 0%, #0d9488 100%);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 16px;
    color: white;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.25);
}

.vtqf-ai-route-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.vtqf-ai-route-compact:empty {
    display: none;
    margin-bottom: 0;
}

.vtqf-ai-route-label {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    margin-right: 2px;
}

.vtqf-ai-route-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.vtqf-timeline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    animation: timeline-btn-glow 2s ease-in-out infinite;
}

@keyframes timeline-btn-glow {
    0%, 100% { box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(249, 115, 22, 0.6); }
}

.vtqf-timeline-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 58, 92, 0.4);
}

.vtqf-timeline-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 58, 92, 0.3);
}

.vtqf-timeline-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    box-shadow: none;
}

.vtqf-timeline-btn-icon {
    font-size: 18px;
}

.vtqf-timeline-btn-text {
    flex: 1;
    text-align: center;
}

.vtqf-timeline-btn-arrow {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   Google Maps セクション（レガシー）
   ======================================== */
.vtqf-maps-section {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(52, 168, 83, 0.08) 100%);
    border: 2px solid var(--maps-blue);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
}

.vtqf-maps-header {
    text-align: center;
    margin-bottom: 24px;
}

.vtqf-maps-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--maps-blue);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vtqf-maps-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.vtqf-maps-optional {
    font-size: 12px;
    color: var(--gray-400);
    margin-left: 4px;
}

/* 使い方ヒントボタン */
.vtqf-maps-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.vtqf-maps-help-btn:hover {
    background: var(--gray-50);
    border-color: var(--maps-blue);
    color: var(--maps-blue);
}

.vtqf-maps-help-btn.active {
    background: var(--maps-blue);
    border-color: var(--maps-blue);
    color: var(--white);
}

.vtqf-maps-help-icon {
    font-size: 14px;
}

.vtqf-maps-help-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.vtqf-maps-help-btn.active .vtqf-maps-help-arrow {
    transform: rotate(180deg);
}

/* 折りたたみ式ヒントセクション */
.vtqf-maps-tips {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.vtqf-maps-tips.active {
    max-height: 300px;
    margin-top: 16px;
}

.vtqf-maps-tips-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vtqf-maps-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}

.vtqf-maps-tip-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.vtqf-maps-tip-text {
    flex: 1;
}

.vtqf-maps-tip-text strong {
    color: var(--maps-blue);
    font-weight: 700;
}

.vtqf-maps-count {
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.vtqf-maps-count-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--maps-green);
}

.vtqf-maps-hint {
    display: none;
    font-size: 12px;
    color: var(--gray-500);
    margin-left: 8px;
}

.vtqf-maps-hint.visible {
    display: inline;
    margin: 0 4px;
}

.vtqf-maps-selected {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 24px;
    min-height: 44px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
}

.vtqf-maps-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    border: 2px solid var(--maps-green);
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    color: var(--maps-green);
    transition: all 0.2s ease;
}

.vtqf-maps-tag .tag-remove {
    width: 18px;
    height: 18px;
    background: #DC2626;
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.vtqf-maps-tag .tag-remove:hover {
    background: #B91C1C;
    transform: scale(1.1);
}

/* ドラッグハンドル */
.vtqf-drag-handle {
    cursor: grab;
    color: var(--gray-400);
    font-size: 16px;
    user-select: none;
    padding: 0 4px;
    transition: color 0.2s;
}

.vtqf-drag-handle:hover {
    color: var(--gray-600);
}

.vtqf-drag-handle:active {
    cursor: grabbing;
}

.vtqf-tag-content {
    flex: 1;
}

/* ドラッグ中のスタイル */
.vtqf-maps-tag.dragging {
    opacity: 0.5;
    background: var(--gray-100);
    border-style: dashed;
}

/* ドロップ先インジケータ */
.vtqf-maps-tag.drag-over {
    border-color: var(--primary);
    background: var(--primary-pale);
    transform: scale(1.02);
}

.vtqf-maps-empty {
    color: var(--gray-500);
    font-size: 14px;
    padding: 8px;
    width: 100%;
    text-align: center;
}

.vtqf-maps-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.vtqf-maps-btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.vtqf-maps-btn-primary {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
}

.vtqf-maps-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.45);
}

.vtqf-maps-btn-primary:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    box-shadow: none;
}

.vtqf-maps-btn-secondary {
    background: var(--white);
    color: var(--maps-blue);
    border: 2px solid var(--maps-blue);
}

.vtqf-maps-btn-secondary:hover {
    background: var(--maps-blue);
    color: var(--white);
}

/* ========================================
   スポットカード
   ======================================== */
.vtqf-spots {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 日別セクション */
.vtqf-day-section {
    margin-bottom: 32px;
}

.vtqf-day-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--white) 100%);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
}

/* 2日目以降の開始時間調整付きヘッダー */
.vtqf-day-header-with-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.vtqf-day-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-day-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtqf-day-label {
    font-size: 13px;
    font-weight: 700;
}

.vtqf-day-date {
    font-size: 12px;
    opacity: 0.9;
}

.vtqf-day-start-time {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 6px;
    border-radius: var(--radius-md);
}

.vtqf-day-weather {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: var(--radius-md);
    font-size: 13px;
}

.vtqf-day-time-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtqf-day-time-btn:hover {
    background: #3A7CA5;
    color: white;
    border-color: #3A7CA5;
}

.vtqf-day-time-btn:active {
    transform: scale(0.95);
}

.vtqf-day-time-value {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
    min-width: 40px;
    text-align: center;
}

/* 統合された最寄駅到着フィールド（出発地設定済み時） */
.vtqf-station-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin: 8px 0;
    border: 1px solid #bae6fd;
}

.vtqf-sc-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-sc-icon {
    font-size: 16px;
}

.vtqf-sc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.vtqf-sc-walk {
    font-size: 12px;
    color: var(--gray-500);
}

.vtqf-sc-time-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vtqf-sc-time-control .vtqf-day-time-btn {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.vtqf-sc-time-control .vtqf-day-time-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.vtqf-sc-time-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    min-width: 45px;
    text-align: center;
}

/* 出発地未設定時の設定カード */
.vtqf-station-setup-card {
    background: var(--white);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vtqf-setup-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vtqf-setup-station-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-setup-icon {
    font-size: 16px;
}

.vtqf-setup-station {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.vtqf-setup-time-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vtqf-setup-time-control .vtqf-day-time-btn {
    background: var(--white);
    color: #1B3A5C;
    border: 1px solid #7dd3fc;
}

.vtqf-setup-time-control .vtqf-day-time-btn:hover {
    background: #3A7CA5;
    color: white;
}

.vtqf-setup-time-value {
    font-size: 14px;
    font-weight: 700;
    color: #0F2640;
    min-width: 45px;
    text-align: center;
}

.vtqf-setup-prompt-btn {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #3A7CA5 0%, #2B6285 100%);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(27, 58, 92, 0.3);
}

.vtqf-setup-prompt-btn:hover {
    background: linear-gradient(135deg, #2B6285 0%, #1B3A5C 100%);
    box-shadow: 0 3px 6px rgba(27, 58, 92, 0.4);
    transform: translateY(-1px);
}

/* シンプルな出発地設定ボタン（Day Header直下） */
.vtqf-departure-prompt {
    margin: 8px 0 12px 0;
}

.vtqf-departure-prompt .vtqf-setup-prompt-btn {
    padding: 8px 16px;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 最寄り駅タイムラインアイテム（番号1） */
.vtqf-timeline-station-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-left: 36px;
    margin-bottom: 8px;
}

.vtqf-timeline-dot-station {
    position: absolute;
    left: 0;
    top: 8px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* 終点駅のドット */
.vtqf-timeline-station-end .vtqf-timeline-dot-station {
    font-size: 14px;
    background: linear-gradient(135deg, #1B3A5C 0%, #3A7CA5 100%);
    box-shadow: 0 2px 4px rgba(27, 58, 92, 0.3);
}

/* ===== タイムライン タッチジェスチャー ===== */

/* スワイプ削除: カード背後の赤い削除エリア */
.vtqf-timeline-item {
    position: relative;
    overflow: hidden;
}

.vtqf-swipe-delete-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.vtqf-swipe-delete-bg.visible {
    opacity: 1;
}

/* スワイプ中はtransitionを無効化 */
.vtqf-swiping .vtqf-timeline-spot {
    transition: none !important;
    position: relative;
    z-index: 1;
}

/* 閾値超え時の色変化 */
.vtqf-swipe-threshold .vtqf-swipe-delete-bg {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* スワイプアウトアニメーション */
.vtqf-swipe-out {
    transition: transform 0.25s ease-out, max-height 0.3s ease-out 0.1s, opacity 0.25s ease-out, margin 0.3s ease-out 0.1s, padding 0.3s ease-out 0.1s;
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

/* ドラッグ中のクローン */
.vtqf-dragging {
    position: fixed !important;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    transform: scale(1.03);
    opacity: 0.92;
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s ease;
}

/* ドラッグ元の半透明表示 */
.vtqf-drag-placeholder {
    opacity: 0.3 !important;
    transition: opacity 0.15s ease;
}

/* ドロップ位置の青線インジケーター */
.vtqf-drag-indicator {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 20%, #3b82f6 80%, transparent 100%);
    border-radius: 2px;
    margin: -2px 0;
    pointer-events: none;
    animation: vtqf-indicator-pulse 1s ease-in-out infinite;
}

@keyframes vtqf-indicator-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== タッチジェスチャー ここまで ===== */

.vtqf-timeline-spot-station {
    flex: 1;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.vtqf-timeline-spot-station .vtqf-spot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.vtqf-timeline-spot-station .vtqf-spot-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-timeline-spot-station .vtqf-timeline-spot-name {
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
}

/* 駅名ローマ字サブタイトル */
.vtqf-station-romaji {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.vtqf-station-time-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vtqf-station-time-value {
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
    min-width: 45px;
    text-align: center;
}

.vtqf-timeline-spot-station .vtqf-spot-meta {
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.vtqf-station-walk-info {
    font-size: 12px;
    color: #047857;
}

.vtqf-station-bus-detail {
    display: block;
    font-size: 11px;
    color: #3b82f6;
    margin-top: 2px;
}

/* 駅カード内の終了予定を非表示（日ヘッダーに統合済み） */
.vtqf-timeline-end-times {
    display: none;
}

.vtqf-timeline-end-time {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    background: #f0f9ff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
    white-space: nowrap;
}

.vtqf-timeline-end-time.vtqf-end-time-warning {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.vtqf-timeline-end-time.vtqf-end-time-danger {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}

.vtqf-day-spots {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ホテルマーカー */
.vtqf-hotel-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    margin: 16px 0;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
}

.vtqf-hotel-start {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px dashed #4caf50;
    color: #2e7d32;
}

.vtqf-hotel-end {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px dashed #ff9800;
    color: #e65100;
    flex-wrap: wrap;
}

.vtqf-hotel-icon {
    font-size: 24px;
}

.vtqf-hotel-text {
    letter-spacing: 0.05em;
}

/* ホテルチェックイン内の宿を探すボタン */
.vtqf-hotel-search-btn-inline {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin-left: 12px;
    background: linear-gradient(135deg, #1B3A5C 0%, #3A7CA5 100%);
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(27, 58, 92, 0.35);
}

.vtqf-hotel-search-btn-inline:hover {
    background: linear-gradient(135deg, #ff8555 0%, #ffa33e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(27, 58, 92, 0.45);
    color: #fff;
    text-decoration: none;
}

.vtqf-hotel-search-btn-inline:active {
    transform: translateY(0);
}

/* 時間帯スロット（午前・午後） */
.vtqf-timeslot {
    margin: 16px 0;
}

.vtqf-timeslot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--gray-100) 0%, transparent 100%);
    border-left: 4px solid var(--primary);
    margin-bottom: 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ランチタイムマーカー */
.vtqf-lunch-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #fef7e0 0%, #fdefc4 100%);
    border: 2px dashed #f9a825;
    border-radius: var(--radius-lg);
    color: #f57f17;
    font-weight: 600;
    font-size: 15px;
}

.vtqf-lunch-icon {
    font-size: 22px;
}

.vtqf-lunch-text {
    letter-spacing: 0.05em;
}

.vtqf-spot-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.08);
}

.vtqf-spot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(27, 58, 92, 0.15);
    border-color: rgba(27, 58, 92, 0.3);
}

/* 写真なしカード用シンプルヘッダー */
.vtqf-spot-header-simple {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.vtqf-spot-header-simple .vtqf-spot-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.vtqf-spot-header-simple .vtqf-spot-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    padding-left: 40px;
}

.vtqf-spot-header-simple .vtqf-spot-name-romaji {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding-left: 40px;
}

.vtqf-spot-header-simple .vtqf-popularity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.vtqf-spot-card.vtqf-card-highlight {
    animation: cardHighlight 1.5s ease;
}

@keyframes cardHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 58, 92, 0.4);
    }
    30% {
        box-shadow: 0 0 0 8px rgba(27, 58, 92, 0.2);
    }
    100% {
        box-shadow: 0 4px 20px rgba(27, 58, 92, 0.08);
    }
}

.vtqf-spot-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

/* 画像下部のグラデーションオーバーレイ */
.vtqf-spot-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.vtqf-spot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ローカル画像は全体表示 */
.vtqf-spot-image.vtqf-local-image {
    object-fit: contain;
    background: linear-gradient(135deg, #1a2828 0%, #2d3e3e 100%);
}

.vtqf-spot-card:hover .vtqf-spot-image {
    transform: scale(1.05);
}

/* 画像上のタイトルオーバーレイ */
.vtqf-spot-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 2;
    color: var(--white);
}

.vtqf-spot-title-overlay .vtqf-spot-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.vtqf-spot-title-overlay .vtqf-spot-name-romaji {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.vtqf-spot-rank {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.vtqf-popularity-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}

.vtqf-popularity-high {
    background: rgba(27, 58, 92, 0.9);
    color: var(--white);
}

.vtqf-popularity-medium {
    background: rgba(10, 92, 143, 0.9);
    color: var(--white);
}

.vtqf-popularity-low {
    background: rgba(34, 197, 94, 0.9);
    color: var(--white);
}

.vtqf-spot-content {
    padding: 16px 24px 24px;
}

/* コンテンツ内のタイトル（フォールバック用） */
.vtqf-spot-content > .vtqf-spot-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--gray-800);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-spot-content > .vtqf-spot-name-romaji {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.vtqf-spot-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--rank-gold);
}

.vtqf-rating-stars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vtqf-rating-value {
    font-size: 20px;
    font-weight: 900;
    color: #F59E0B;
}

.vtqf-rating-count {
    font-size: 13px;
    color: var(--gray-500);
}

.vtqf-area-rank {
    margin-left: auto;
    padding: 6px 14px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
}

.vtqf-spot-description {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.vtqf-spot-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.vtqf-spot-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-600);
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.vtqf-spot-tips {
    background: var(--primary-pale);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    border-left: 4px solid var(--primary);
}

.vtqf-spot-tips strong {
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.vtqf-spot-tips ul {
    margin: 0;
    padding-left: 20px;
}

.vtqf-spot-tips li {
    margin: 6px 0;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

/* 旅行タイプ別Tips */
.vtqf-party-tips {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    border-left: 4px solid #3A7CA5;
}

.vtqf-party-tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.vtqf-party-tips-icon {
    font-size: 18px;
}

.vtqf-party-tips-label {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
}

.vtqf-party-tips-text {
    margin: 0;
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
}

/* ========================================
   Googleレビューセクション
   ======================================== */
.vtqf-reviews-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.06) 0%, rgba(52, 168, 83, 0.06) 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--maps-blue);
}

.vtqf-reviews-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--maps-blue);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-review-summary {
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.vtqf-review-highlight {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--maps-blue) 0%, var(--maps-green) 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.vtqf-review-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
}

.vtqf-reviews-disclaimer {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 10px;
    text-align: center;
}

/* ========================================
   宿泊施設セクション
   ======================================== */
.vtqf-accommodation-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--primary-pale);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.vtqf-accommodation-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px 0;
}

.vtqf-accommodation-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vtqf-accommodation-btn {
    padding: 14px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-md);
}

.vtqf-accommodation-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.vtqf-accommodation-banner {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.vtqf-accommodation-banner img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: var(--white);
}

/* ========================================
   季節限定情報セクション
   ======================================== */
.vtqf-seasonal-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(147, 197, 253, 0.06) 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid #3B82F6;
}

.vtqf-seasonal-title {
    font-size: 15px;
    font-weight: 700;
    color: #2563EB;
    margin: 0 0 12px 0;
}

.vtqf-seasonal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vtqf-seasonal-item {
    padding: 10px 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.vtqf-seasonal-icon {
    font-size: 18px;
}

.vtqf-seasonal-current {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
    border: 1px solid #3B82F6;
    font-weight: 600;
}

/* ========================================
   スポットアクション
   ======================================== */
.vtqf-spot-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.vtqf-spot-actions .vtqf-btn {
    flex: 1;
}

/* 地図に追加ボタン（カード下部用） */
.vtqf-add-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: 2px solid var(--maps-green);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--white);
    color: var(--maps-green);
    flex: 1;
}

.vtqf-add-map-btn:hover {
    background: var(--maps-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(52, 168, 83, 0.35);
}

.vtqf-add-map-btn.active {
    background: var(--maps-green);
    color: var(--white);
}

.vtqf-data-updated {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 16px;
    padding: 8px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

/* タイムラインに戻るボタン */
.vtqf-return-timeline-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(27, 58, 92, 0.1) 100%);
    color: var(--secondary);
}

.vtqf-return-timeline-btn:hover {
    background: var(--gradient-ocean);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

/* ========================================
   結果画面ナビゲーションボタン
   ======================================== */
.vtqf-result-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.vtqf-back-to-spots-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.vtqf-back-to-spots-btn:hover {
    background: var(--hover);
    color: var(--white);
    border-color: var(--hover);
}

.vtqf-back-to-quiz-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.vtqf-back-to-quiz-btn:hover {
    background: var(--hover);
    color: var(--white);
    border-color: var(--hover);
}

.vtqf-go-to-theme-btn {
    background: var(--white);
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.vtqf-go-to-theme-btn:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.vtqf-restart-btn {
    background: var(--white);
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.vtqf-restart-btn:hover {
    border-color: var(--hover);
    color: var(--hover);
    background: var(--hover-pale);
}

/* ========================================
   モバイル対応
   ======================================== */
@media (max-width: 768px) {
    .vtqf-wrapper {
        padding: 16px 12px;
    }

    .vtqf-container {
        padding: 32px 20px;
        border-radius: var(--radius-lg);
    }

    .vtqf-title {
        font-size: 21px;
    }

    .vtqf-question-screen {
        padding: 28px 20px;
    }

    .vtqf-progress {
        flex-wrap: wrap;
        gap: 8px;
    }

    .vtqf-progress-line {
        width: 40px;
    }

    .vtqf-options-area {
        grid-template-columns: repeat(2, 1fr);
    }

    .vtqf-options-spots {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .vtqf-option-emoji {
        font-size: 28px;
    }

    .vtqf-option-label {
        font-size: 13px;
    }

    .vtqf-button-group {
        flex-direction: column;
    }

    .vtqf-button-group .vtqf-btn {
        width: 100%;
    }

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

    .vtqf-maps-buttons {
        flex-direction: column;
    }

    .vtqf-maps-btn {
        width: 100%;
        justify-content: center;
    }

    .vtqf-result-stats {
        flex-direction: column;
        gap: 8px;
    }

    .vtqf-spot-rating {
        flex-wrap: wrap;
    }

    .vtqf-area-rank {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .vtqf-wrapper {
        padding: 8px 4px;
    }

    .vtqf-container {
        padding: 20px 12px;
    }

    .vtqf-question-screen {
        padding: 16px 8px;
    }

    .vtqf-options-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .vtqf-option-checkbox label {
        padding: 12px 8px;
        min-height: 85px;
    }

    .vtqf-option-emoji {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .vtqf-option-label {
        font-size: 12px;
    }

    .vtqf-options-spots {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .vtqf-options-spots .vtqf-option-label {
        font-size: 0.75rem;
    }

    .vtqf-spot-group-title {
        font-size: 14px;
    }

    .vtqf-title {
        font-size: 18px;
    }

    .vtqf-spot-image-container {
        height: 220px;
    }

    .vtqf-spot-title-overlay {
        padding: 12px 16px;
    }

    .vtqf-spot-title-overlay .vtqf-spot-name {
        font-size: 18px;
    }

    .vtqf-spot-rank {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ========================================
   フローティング地図バー
   ======================================== */
.vtqf-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.vtqf-floating-bar.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.vtqf-floating-bar-content {
    max-width: 500px;
    margin: 0 auto 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.vtqf-floating-bar-icon {
    font-size: 20px;
}

.vtqf-floating-bar-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
}

#vtqf-floating-count {
    font-size: 18px;
    font-weight: 900;
}

.vtqf-floating-bar-btn {
    padding: 8px 16px;
    background: var(--white);
    color: var(--maps-blue);
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.vtqf-floating-bar-btn:hover {
    background: var(--hover-pale);
    border-color: var(--hover);
    color: var(--hover);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .vtqf-floating-bar-content {
        margin: 0 12px 12px;
        padding: 10px 16px;
        gap: 10px;
    }

    .vtqf-floating-bar-text {
        font-size: 14px;
    }

    .vtqf-floating-bar-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ========================================
   フローティング タイムラインに戻るボタン
   ======================================== */
.vtqf-back-timeline-float {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.vtqf-back-timeline-float.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vtqf-back-timeline-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.4), 0 0 0 0 rgba(27, 58, 92, 0.4);
    transition: all 0.3s ease;
    animation: vtqf-timeline-btn-pulse 2s infinite;
}

@keyframes vtqf-timeline-btn-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(27, 58, 92, 0.4), 0 0 0 0 rgba(27, 58, 92, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(27, 58, 92, 0.4), 0 0 0 8px rgba(27, 58, 92, 0);
    }
}

.vtqf-back-timeline-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(27, 58, 92, 0.5);
}

.vtqf-back-timeline-btn:active {
    transform: scale(0.98);
}

.vtqf-back-timeline-icon {
    font-size: 18px;
}

.vtqf-back-timeline-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .vtqf-back-timeline-float {
        bottom: 16px;
    }

    .vtqf-back-timeline-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .vtqf-back-timeline-icon {
        font-size: 16px;
    }
}

/* ========================================
   フッター
   ======================================== */
.vtqf-footer {
    text-align: center;
    padding: 32px 16px 48px;
    margin-top: 40px;
    border-top: 1px solid var(--gray-200);
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
    position: relative;
    z-index: 10;
}

/* フッターブランドセクション */
.vtqf-footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.vtqf-footer-brand-logo {
    font-size: 28px;
    line-height: 1;
}

.vtqf-copyright {
    color: var(--gray-500);
    font-size: 13px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vtqf-developed-by {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
}

.vtqf-developed-by a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.vtqf-developed-by a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.vtqf-copyright-text {
    font-size: 12px;
    color: var(--gray-400);
}

.vtqf-copyright a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.vtqf-copyright a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* フッターブランドセクション */
.vtqf-footer-brand {
    margin-bottom: 16px;
}

.vtqf-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.vtqf-footer-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.3);
}

.vtqf-footer-logo-icon {
    font-size: 20px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.vtqf-footer-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.vtqf-footer-tagline {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: var(--gray-500);
}

/* 開発お問い合わせセクション */
.vtqf-dev-inquiry {
    margin: 24px auto 16px auto;
    padding: 20px 24px;
    max-width: 400px;
    background: linear-gradient(135deg, #f0fafa 0%, #e8f7f8 100%);
    border-radius: 16px;
    border: 1px solid var(--primary-pale);
    box-shadow: 0 4px 12px rgba(76, 184, 196, 0.1);
}

.vtqf-dev-inquiry-text {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--gray-500);
}

.vtqf-footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding-bottom: 16px;
}

.vtqf-footer-about-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light, #2C5F8A));
    border-radius: 999px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(27, 58, 92, 0.2);
}

.vtqf-footer-about-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27, 58, 92, 0.3);
}

.vtqf-footer-biz-btn {
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    font-size: 13px;
    padding: 8px 22px;
    opacity: 0.85;
}

.vtqf-footer-biz-btn:hover {
    opacity: 1;
    box-shadow: 0 4px 16px rgba(45, 106, 79, 0.3);
}

.vtqf-dev-inquiry-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.vtqf-dev-inquiry-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.3);
}

/* ========================================
   ホテル情報セクション
   ======================================== */
.vtqf-hotels-section {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, var(--accent-pale) 0%, #fff5eb 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #fde7d9;
}

/* インライン表示（ホテルチェックイン後） */
.vtqf-hotels-section.vtqf-hotels-inline {
    margin: 16px 0 0 0;
    padding: 20px;
    border-left: 4px solid var(--accent);
}

/* ホテルセクション ハイライト効果 */
.vtqf-hotels-section.vtqf-hotels-highlight {
    animation: hotelsHighlight 1.5s ease;
}

@keyframes hotelsHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 168, 124, 0.5);
    }
    30% {
        box-shadow: 0 0 0 8px rgba(232, 168, 124, 0.4);
    }
    100% {
        box-shadow: none;
    }
}

.vtqf-hotels-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 20px 0;
    text-align: center;
}

.vtqf-hotels-area {
    margin-bottom: 20px;
}

.vtqf-hotels-area:last-child {
    margin-bottom: 0;
}

.vtqf-hotels-area-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-pale);
}

.vtqf-hotels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vtqf-hotel-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    gap: 12px;
}

.vtqf-hotel-info {
    flex: 1;
    min-width: 0;
}

.vtqf-hotel-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.vtqf-hotel-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.vtqf-hotel-location,
.vtqf-hotel-feature {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.vtqf-hotel-book-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.vtqf-hotel-book-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .vtqf-hotel-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .vtqf-hotel-book-btn {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .vtqf-hotel-detail {
        flex-direction: column;
        gap: 4px;
    }
}

/* ========================================
   スポット クイックナビ
   ======================================== */
.vtqf-spot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.vtqf-spot-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vtqf-spot-nav-item:hover {
    background: var(--primary-pale);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

.vtqf-spot-nav-item .nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: var(--gray-200);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
}

.vtqf-spot-nav-item:hover .nav-num {
    background: var(--primary);
    color: var(--white);
}

.vtqf-spot-nav-separator {
    color: var(--gray-400);
    font-size: 12px;
}

@media (max-width: 600px) {
    .vtqf-spot-nav {
        gap: 6px;
        padding: 10px 12px;
    }

    .vtqf-spot-nav-item {
        padding: 5px 10px;
        font-size: 12px;
    }

    .vtqf-spot-nav-item .nav-num {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

/* ========================================
   ホテル クイックリンク
   ======================================== */
.vtqf-hotel-quick-link {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.vtqf-hotel-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-pale) 0%, #fff5eb 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vtqf-hotel-quick-btn:hover {
    background: linear-gradient(135deg, #fff5eb 0%, #fde7d9 100%);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.25);
}

.vtqf-hotel-quick-btn:active {
    transform: translateY(0);
}

/* ========================================
   宿を探すボタン（1泊2日プラン用）
   ======================================== */
.vtqf-hotel-search-link {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.vtqf-hotel-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1B3A5C 0%, #3A7CA5 100%);
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 58, 92, 0.35);
}

.vtqf-hotel-search-btn:hover {
    background: linear-gradient(135deg, #ff8555 0%, #ffa33e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 58, 92, 0.45);
    color: #fff;
    text-decoration: none;
}

.vtqf-hotel-search-btn:active {
    transform: translateY(0);
}

/* ========================================
   上部ナビゲーションボタン - ガラスモーフィズム
   ======================================== */
.vtqf-top-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.vtqf-top-nav-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(27, 58, 92, 0.06);
}

.vtqf-top-nav-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(27, 58, 92, 0.4);
    color: #1B3A5C;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 58, 92, 0.12);
}

.vtqf-top-nav-back:hover {
    border-color: rgba(27, 58, 92, 0.4);
    color: #1B3A5C;
}

.vtqf-top-nav-theme {
    border-color: rgba(22, 163, 74, 0.3);
    color: #16a34a;
}

.vtqf-top-nav-theme:hover {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.5);
    color: #15803d;
}

.vtqf-top-nav-restart:hover {
    border-color: rgba(27, 58, 92, 0.4);
    color: #1B3A5C;
}

/* シンプル化されたナビ（2ボタン版） */
.vtqf-top-nav-simple {
    justify-content: space-between;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   エリア別移動アドバイス
   ======================================== */
.vtqf-travel-advice {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-left: 4px solid #FFA000;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.vtqf-travel-advice strong {
    color: var(--gray-800);
}

/* ========================================
   プランタイプ切り替えトグル（結果画面）
   ======================================== */
.vtqf-plantype-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    padding: 6px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.vtqf-plantype-toggle .vtqf-plantype-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vtqf-plantype-toggle .vtqf-plantype-btn:hover {
    color: var(--primary);
    background: var(--white);
}

.vtqf-plantype-toggle .vtqf-plantype-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
    .vtqf-plantype-toggle {
        width: 100%;
        max-width: 280px;
    }

    .vtqf-plantype-toggle .vtqf-plantype-btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
    }

    /* タイムラインヘッダーのコンパクト化 */
    .vtqf-timeline-header {
        padding: 10px 12px;
    }

    .vtqf-timeline-title {
        font-size: 15px;
    }

    .vtqf-timeline-close {
        font-size: 24px;
    }

    /* ナビゲーションのコンパクト化 */
    .vtqf-timeline-nav {
        padding: 6px 8px;
        gap: 4px;
    }

    .vtqf-timeline-nav-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    .vtqf-timeline-nav-action {
        padding: 4px 7px;
        font-size: 9px;
        gap: 2px;
        border-radius: 12px;
    }

    .vtqf-tl-lang-toggle {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    /* サマリーのコンパクト化 */
    .vtqf-timeline-summary {
        padding: 8px 12px;
    }

    .vtqf-timeline-summary-row {
        gap: 8px;
    }

    .vtqf-timeline-summary-value {
        font-size: 16px;
    }

    .vtqf-timeline-summary-label {
        font-size: 10px;
    }

    /* タイムラインコンテンツのコンパクト化 */
    .vtqf-timeline-content {
        padding: 6px 8px;
    }

    .vtqf-timeline-item {
        padding-left: 22px;
        padding-bottom: 8px;
    }

    .vtqf-timeline-dot {
        width: 14px;
        height: 14px;
        font-size: 8px;
        left: 0;
    }

    .vtqf-timeline-item::before {
        left: 6px;
    }

    .vtqf-timeline-spot {
        padding: 6px 8px;
    }

    .vtqf-spot-row {
        flex-wrap: nowrap;
        gap: 6px;
        margin-bottom: 2px;
    }

    .vtqf-spot-thumbnail {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 6px;
    }

    .vtqf-spot-thumbnail-placeholder {
        font-size: 18px;
    }

    .vtqf-spot-main {
        flex: 1;
        min-width: 0;
        gap: 4px;
    }

    .vtqf-timeline-spot-name {
        font-size: 12px;
        white-space: normal;
        word-break: break-all;
    }

    .vtqf-spot-name-romaji {
        font-size: 9px;
    }

    .vtqf-timeline-spot-time {
        font-size: 11px;
    }

    .vtqf-timeline-spot-duration {
        font-size: 10px;
        margin-top: 2px;
    }

    .vtqf-compound-breakdown {
        font-size: 10px;
        padding: 3px 6px;
    }

    .vtqf-spot-memo-btn,
    .vtqf-event-memo-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .vtqf-memo-preview {
        font-size: 10px;
        padding: 2px 6px;
        max-width: 100px;
    }

    .vtqf-memo-placeholder {
        padding: 2px 6px !important;
        font-size: 9px;
    }

    /* メモコンテナ（展開式）- モバイル */
    .vtqf-memo-container {
        margin-left: 4px;
        margin-top: 6px;
        width: 100%;
    }

    .vtqf-memo-preview-text {
        font-size: 11px;
        padding: 2px 6px;
        max-width: none;
        flex: 1;
    }

    .vtqf-memo-expand-btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    .vtqf-memo-full {
        font-size: 11px;
        padding: 8px 10px;
        margin-top: 4px;
    }

    /* タイムラインのアクションボタン（コンパクト版） */
    .vtqf-timeline-spot .vtqf-spot-actions {
        width: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 4px;
        padding-top: 0;
        border-top: none;
        margin-top: 0;
    }

    .vtqf-timeline-spot .vtqf-action-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
        border-radius: 6px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        flex-shrink: 0;
        color: #64748b;
        padding: 0;
        gap: 0;
    }

    .vtqf-timeline-spot .vtqf-action-label {
        display: none;
    }

    .vtqf-timeline-spot .vtqf-action-icon {
        font-size: 12px;
    }

    /* 上へ移動ボタン（▲）- 青系 */
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-reorder-up,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-custom-event-reorder-up {
        color: #2563eb;
        background: #eff6ff;
        border-color: #bfdbfe;
    }

    /* 下へ移動ボタン（▼）- 緑系 */
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-reorder-down,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-custom-event-reorder-down {
        color: #16a34a;
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .vtqf-timeline-spot .vtqf-action-btn:hover,
    .vtqf-timeline-spot .vtqf-action-btn:active {
        background: #e2e8f0;
        border-color: #cbd5e1;
        color: #1e293b;
        transform: scale(0.95);
    }

    /* 上へ移動ボタンのホバー */
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-reorder-up:hover,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-reorder-up:active,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-custom-event-reorder-up:hover,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-custom-event-reorder-up:active {
        background: #dbeafe;
        border-color: #93c5fd;
        color: #1d4ed8;
    }

    /* 下へ移動ボタンのホバー */
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-reorder-down:hover,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-reorder-down:active,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-custom-event-reorder-down:hover,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-custom-event-reorder-down:active {
        background: #dcfce7;
        border-color: #86efac;
        color: #15803d;
    }

    .vtqf-timeline-spot .vtqf-action-btn.vtqf-delete-btn,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-action-delete {
        background: #fef2f2;
        border-color: #fecaca;
        color: #dc2626;
    }

    .vtqf-timeline-spot .vtqf-action-btn.vtqf-delete-btn:hover,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-delete-btn:active,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-action-delete:hover,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-action-delete:active {
        background: #fee2e2;
        border-color: #fca5a5;
        color: #b91c1c;
    }

    /* アクションボタンのグローエフェクト（タッチ時） */
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-btn-glow {
        transform: scale(1.05);
        transition: all 0.15s ease;
    }

    /* 上へ移動ボタン（▲）のグローエフェクト（青系） */
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-reorder-up.vtqf-btn-glow,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-custom-event-reorder-up.vtqf-btn-glow {
        box-shadow: 0 0 12px rgba(37, 99, 235, 0.5), 0 0 4px rgba(37, 99, 235, 0.3);
        background: #dbeafe !important;
        border-color: #60a5fa !important;
    }

    /* 下へ移動ボタン（▼）のグローエフェクト（緑系） */
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-reorder-down.vtqf-btn-glow,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-custom-event-reorder-down.vtqf-btn-glow {
        box-shadow: 0 0 12px rgba(22, 163, 74, 0.5), 0 0 4px rgba(22, 163, 74, 0.3);
        background: #dcfce7 !important;
        border-color: #4ade80 !important;
    }

    /* 削除ボタンのグローエフェクト（赤系） */
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-delete-btn.vtqf-btn-glow,
    .vtqf-timeline-spot .vtqf-action-btn.vtqf-action-delete.vtqf-btn-glow {
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.5), 0 0 4px rgba(239, 68, 68, 0.3);
        background: #fee2e2 !important;
        border-color: #f87171 !important;
    }

    .vtqf-spot-actions .vtqf-spot-duration-select {
        padding: 2px 4px;
        font-size: 9px;
        min-width: 42px;
    }

    .vtqf-spot-meta {
        padding-top: 2px;
        gap: 6px;
    }

    .vtqf-spot-time {
        font-size: 11px;
    }

    .vtqf-spot-meta .vtqf-duration-select {
        padding: 2px 4px;
        font-size: 10px;
    }

    .vtqf-duration-icon {
        font-size: 11px;
    }

    /* ティーザーとinfoリンク（モバイル） */
    .vtqf-spot-info-icon {
        font-size: 12px;
    }

    .vtqf-spot-info-link {
        font-size: 10px;
    }

    .vtqf-spot-teaser {
        font-size: 11px;
        padding: 3px 0;
    }

    .vtqf-spot-teaser::after {
        content: ' ▶';
        opacity: 0.6;
    }

    .vtqf-timeline-travel {
        padding: 4px 6px;
        font-size: 10px;
        margin: 4px 0;
    }

    /* 公共交通機関詳細表示（モバイル） */
    .vtqf-timeline-travel-transit,
    .vtqf-timeline-travel-bus,
    .vtqf-timeline-travel-transfer {
        padding: 6px 10px 6px 24px;
    }

    .vtqf-travel-transfer-badge {
        font-size: 9px;
        padding: 1px 5px;
    }

    .vtqf-timeline-travel-breakdown {
        padding-left: 16px;
        gap: 2px;
    }

    .vtqf-travel-step {
        font-size: 10px;
        gap: 4px;
    }

    .vtqf-travel-total {
        font-size: 11px;
    }

    /* 日別ヘッダーのコンパクト化 */
    .vtqf-day-divider {
        padding: 10px 0;
        margin-bottom: 16px;
    }

    .vtqf-day-header {
        gap: 6px;
        font-size: 14px;
    }

    .vtqf-day-weather {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* 駅フィールドのコンパクト化 */
    .vtqf-station-compact {
        padding: 6px 10px;
    }

    .vtqf-station-label {
        font-size: 10px;
    }

    .vtqf-station-name {
        font-size: 12px;
    }

    .vtqf-station-time-controls {
        gap: 4px;
    }

    .vtqf-time-adjust-btn {
        padding: 3px 6px;
        font-size: 10px;
    }

    .vtqf-station-time-display {
        font-size: 12px;
        min-width: 36px;
    }

    /* フッターのコンパクト化 */
    .vtqf-timeline-footer {
        padding: 4px 6px;
        padding-bottom: max(4px, env(safe-area-inset-bottom, 4px));
        gap: 3px;
    }

    .vtqf-footer-pill {
        padding: 6px 2px;
        font-size: 0.58rem;
    }

    .vtqf-maps-day-btn {
        font-size: 0.55rem;
    }
}

/* ========================================
   スポット追加モーダル
   ======================================== */
/* 追加メニュー（ポップアップ） */
.vtqf-add-menu-container {
    position: relative;
    display: inline-block;
}

.vtqf-add-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    padding: 6px 0;
    margin-bottom: 8px;
    display: none;
    z-index: 10001;
}

.vtqf-add-menu.active {
    display: block;
}

.vtqf-add-menu-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    border: none;
    background: none;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

.vtqf-add-menu-item:hover {
    background: #f3f4f6;
}

.vtqf-add-menu-item:first-child {
    border-radius: 6px 6px 0 0;
}

.vtqf-add-menu-item:last-child {
    border-radius: 0 0 6px 6px;
}

.vtqf-add-menu-item span {
    margin-right: 8px;
}

/* 最適化メニュー（ポップアップ） */
.vtqf-optimize-menu-container {
    position: relative;
    display: inline-block;
}

.vtqf-optimize-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 160px;
    margin-bottom: 8px;
    z-index: 10001;
}

.vtqf-optimize-menu.active {
    display: block;
}

.vtqf-optimize-menu-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

.vtqf-optimize-menu-item:hover {
    background: #f3f4f6;
}

.vtqf-optimize-menu-item:first-child {
    border-radius: 6px 6px 0 0;
}

.vtqf-optimize-menu-item:last-child {
    border-radius: 0 0 6px 6px;
}

.vtqf-optimize-menu-item span {
    margin-right: 8px;
}

.vtqf-addspot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10002;
    display: none;
}

.vtqf-addspot-overlay.active {
    display: flex;
}

.vtqf-addspot-modal {
    background: var(--white);
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vtqf-addspot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.vtqf-addspot-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.vtqf-addspot-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtqf-addspot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vtqf-addspot-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    padding: 12px;
}

.vtqf-addspot-area {
    margin-bottom: 16px;
}

.vtqf-addspot-area-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 8px;
}

.vtqf-addspot-area-toggle {
    cursor: pointer;
    user-select: none;
}

.vtqf-addspot-area-toggle:hover {
    color: var(--primary);
}

.vtqf-addspot-toggle-icon {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.vtqf-addspot-other-label {
    font-size: 12px;
    color: var(--gray-400);
    padding: 12px 0 4px;
    border-top: 1px dashed var(--gray-200);
    margin-top: 8px;
}

/* タブバー */
.vtqf-addspot-tabs {
    display: flex;
    padding: 8px 12px 0;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.vtqf-addspot-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.vtqf-addspot-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.vtqf-addspot-tab:hover:not(.active) {
    color: var(--gray-700);
}

/* 距離バッジ */
.vtqf-addspot-item-distance {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 6px;
}

/* 距離グループヘッダー */
.vtqf-addspot-nearby-group {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 10px 0 4px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vtqf-addspot-nearby-group-icon {
    font-size: 14px;
}

/* GPSローディング */
.vtqf-nearby-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.vtqf-nearby-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: vtqf-nearby-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes vtqf-nearby-spin {
    to { transform: rotate(360deg); }
}

/* GPSエラー */
.vtqf-nearby-error {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray-600);
}

.vtqf-nearby-error-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.vtqf-nearby-error-msg {
    font-size: 14px;
    margin-bottom: 12px;
}

.vtqf-nearby-retry-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

.vtqf-nearby-retry-btn:hover {
    background: rgba(16, 185, 129, 0.05);
}

.vtqf-nearby-fallback-link {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    cursor: pointer;
    margin-top: 8px;
}

/* カメラスポット識別モーダル */
.vtqf-camera-result-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.vtqf-camera-result-overlay.active {
    display: flex;
}

.vtqf-camera-result-modal {
    background: var(--white);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vtqf-camera-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 8px;
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.vtqf-camera-result-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.vtqf-camera-result-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
}

.vtqf-camera-result-photo {
    padding: 0 16px 12px;
}

.vtqf-camera-result-photo img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.vtqf-camera-result-spots {
    padding: 0 16px 16px;
}

.vtqf-camera-result-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.vtqf-camera-spot-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vtqf-camera-spot-card:hover,
.vtqf-camera-spot-card:active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.03);
}

.vtqf-camera-spot-info {
    flex: 1;
    min-width: 0;
}

.vtqf-camera-spot-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtqf-camera-spot-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-camera-spot-distance {
    color: var(--primary);
    font-weight: 600;
}

.vtqf-camera-spot-add {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.vtqf-camera-spot-add:hover {
    opacity: 0.9;
}

.vtqf-camera-spot-added {
    background: var(--gray-300);
    cursor: default;
}

.vtqf-camera-empty {
    text-align: center;
    padding: 24px;
    color: var(--gray-500);
    font-size: 14px;
}

.vtqf-addspot-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-addspot-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.vtqf-addspot-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-addspot-item-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.vtqf-addspot-item-time {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-200);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
}

.vtqf-addspot-item-add {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #10b981;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtqf-addspot-item-add:hover {
    background: #059669;
    transform: scale(1.1);
}

/* スポット追加モーダルのツールチップ */
.vtqf-addspot-item.vtqf-has-tooltip {
    position: relative;
    overflow: visible;
}

.vtqf-addspot-item.vtqf-has-tooltip::after {
    top: auto;
    bottom: calc(100% + 6px);
    left: 10px;
    transform: none;
    max-width: 250px;
    white-space: normal;
    text-align: left;
    font-size: 12px;
    line-height: 1.5;
    z-index: 9999;
}

.vtqf-addspot-item.vtqf-has-tooltip::before {
    top: auto;
    bottom: 100%;
    left: 30px;
    transform: none;
    border-bottom-color: transparent;
    border-top-color: #2d5a87;
    z-index: 9999;
}

/* ツールチップ表示時は親のオーバーフローを解除 */
.vtqf-addspot-item.vtqf-has-tooltip.tooltip-active {
    z-index: 100;
}

.vtqf-addspot-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
    font-size: 14px;
}

/* スポット選択状態 */
.vtqf-addspot-item.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border: 2px solid #10b981;
}

.vtqf-addspot-item.selected .vtqf-addspot-item-check {
    background: #10b981;
    color: white;
}

.vtqf-addspot-item-check {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    background: var(--white);
    color: transparent;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* フッター（確定ボタン） */
.vtqf-addspot-footer {
    padding: 12px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.vtqf-addspot-confirm {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gray-300);
    color: var(--gray-500);
    font-size: 15px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.vtqf-addspot-confirm:not(:disabled) {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    cursor: pointer;
}

.vtqf-addspot-confirm:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 480px) {
    .vtqf-addspot-header {
        padding: 12px 16px;
    }

    .vtqf-addspot-title {
        font-size: 14px;
    }

    .vtqf-addspot-item {
        padding: 8px 10px;
    }

    .vtqf-addspot-item-name {
        font-size: 13px;
    }

    /* モバイルでスポット名がタップ可能だと分かるように */
    .vtqf-addspot-item .vtqf-addspot-item-name {
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 2px;
        text-decoration-color: var(--gray-400);
    }
}

/* ========================================
   路線運行情報・乗換案内リンク
   ======================================== */
.vtqf-transit-info {
    margin-top: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 13px;
}

.vtqf-transit-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
    margin-bottom: 8px;
}

.vtqf-line-name {
    font-weight: 600;
    color: var(--gray-800);
}

.vtqf-line-freq {
    color: var(--gray-500);
    font-size: 12px;
}

.vtqf-transit-times {
    display: flex;
    gap: 16px;
    color: var(--gray-600);
    font-size: 12px;
    margin-bottom: 6px;
}

.vtqf-transit-times span {
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
}

.vtqf-transit-congestion {
    color: var(--accent-dark);
    font-size: 12px;
    margin-top: 6px;
    padding: 6px 8px;
    background: var(--accent-pale);
    border-radius: 4px;
}

@media (max-width: 480px) {
    .vtqf-transit-info {
        padding: 10px;
    }

    .vtqf-transit-times {
        flex-direction: column;
        gap: 6px;
    }
}

/* 出発地・帰着地設定モーダル（モダン版） */
.vtqf-loc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2100;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vtqf-loc-overlay.active {
    display: flex;
}

.vtqf-loc-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: none;
    overflow-y: visible;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideDown 0.3s ease;
    margin-bottom: 20px;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.vtqf-loc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vtqf-loc-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* 入力エリア */
.vtqf-loc-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.vtqf-loc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vtqf-loc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.vtqf-loc-label-icon {
    font-size: 16px;
}

.vtqf-loc-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 12px;
    margin: 4px 0;
}

.vtqf-loc-divider::before,
.vtqf-loc-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.vtqf-loc-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 15px;
    background: var(--primary-pale);
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234CB8C4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    font-weight: 500;
}

.vtqf-loc-select:focus {
    outline: none;
    border-color: var(--primary-dark);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(76, 184, 196, 0.2);
}

.vtqf-loc-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.vtqf-loc-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.2s;
}

.vtqf-loc-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(76, 184, 196, 0.2);
}

.vtqf-loc-input::placeholder {
    color: #94a3b8;
}

.vtqf-loc-confirm-btn {
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--primary, #1B3A5C);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.vtqf-loc-confirm-btn:hover {
    background: var(--primary-dark, #132A42);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.3);
}

.vtqf-loc-confirm-btn:active {
    transform: translateY(0);
}

/* 日時設定 */
.vtqf-loc-datetime {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.vtqf-loc-date {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
    color: #334155;
    transition: border-color 0.2s;
}

.vtqf-loc-date:focus {
    outline: none;
    border-color: var(--primary);
}

.vtqf-loc-time {
    width: 110px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.2s;
}

.vtqf-loc-time:focus {
    outline: none;
    border-color: var(--primary);
}

/* カードコンテナ */
.vtqf-loc-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 行き・帰りカード */
.vtqf-loc-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    transition: all 0.2s;
}

.vtqf-loc-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.vtqf-loc-card-go {
    border-left: 4px solid var(--primary);
}

.vtqf-loc-card-return {
    border-left: 4px solid var(--secondary);
}

.vtqf-loc-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.vtqf-loc-card-icon {
    font-size: 18px;
}

.vtqf-loc-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vtqf-loc-same-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}

.vtqf-loc-same-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.vtqf-loc-same-toggle span {
    white-space: nowrap;
}

/* ルート表示 */
.vtqf-loc-card-route {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.vtqf-loc-from {
    color: #64748b;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vtqf-loc-arrow {
    color: #94a3b8;
    font-weight: 600;
    flex-shrink: 0;
}

.vtqf-loc-to {
    color: #1e293b;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

/* Yahoo検索ボタン */
.vtqf-loc-yahoo-btn {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vtqf-loc-yahoo-btn::before {
    content: '🚃';
    font-size: 14px;
}

.vtqf-loc-yahoo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.vtqf-loc-yahoo-btn:active {
    transform: translateY(0);
}

/* 現在の設定 */
.vtqf-loc-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    margin-top: 12px;
}

.vtqf-loc-current span {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #059669;
}

.vtqf-loc-current button {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.vtqf-loc-current button:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* モバイル対応 */
@media (min-width: 480px) {
    .vtqf-loc-overlay {
        align-items: center;
    }

    .vtqf-loc-modal {
        border-radius: 20px;
        max-height: 80vh;
    }

    @keyframes slideUp {
        from { transform: scale(0.95); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
}

/* 旧スタイル互換（非表示要素用） */
.vtqf-location-datetime-wrap { display: none; }
.vtqf-location-dest-info { display: none; }
.vtqf-location-same-wrap { display: none; }

/* タイムライン内の出発地・帰着地表示（コンパクト版） */
.vtqf-endpoint-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
}

.vtqf-endpoint-compact.vtqf-endpoint-departure {
    border-left: 3px solid #3b82f6;
}

.vtqf-endpoint-compact.vtqf-endpoint-return {
    border-left: 3px solid #ef4444;
}

.vtqf-ep-icon {
    font-size: 16px;
}

.vtqf-ep-label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
}

.vtqf-ep-name {
    flex: 1;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtqf-timeline-endpoint-edit {
    padding: 2px 8px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-600);
}

.vtqf-timeline-endpoint-edit:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 未設定の出発地・帰着地 */
.vtqf-endpoint-compact.vtqf-endpoint-empty {
    cursor: pointer;
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    transition: all 0.2s ease;
}

.vtqf-endpoint-compact.vtqf-endpoint-empty:hover {
    border-color: var(--primary);
    background: var(--primary-pale);
}

.vtqf-ep-placeholder {
    color: var(--gray-400);
    font-style: italic;
    font-weight: 400;
}

/* 駅選択プルダウン */
.vtqf-location-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vtqf-location-select-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.vtqf-location-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.vtqf-location-select:focus {
    outline: none;
    border-color: var(--primary);
}

.vtqf-location-select optgroup {
    font-weight: 600;
    color: #333;
}

.vtqf-location-select option {
    padding: 8px;
}

/* Yahoo!乗換案内リンク */
.vtqf-timeline-transit-link {
    margin: 8px 0;
    padding-left: 30px;
}

.vtqf-transit-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-departure-reset-btn {
    flex-shrink: 0;
}

.vtqf-transit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(76, 184, 196, 0.3);
}

.vtqf-transit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 184, 196, 0.4);
}

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

.vtqf-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 11px;
    margin-left: 4px;
}

.vtqf-transit-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.vtqf-transit-memo {
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fef3c7;
    border-left: 3px solid #3A7CA5;
    border-radius: 4px;
    font-size: 12px;
    color: #92400e;
}

/* Yahoo乗換結果入力フォーム */
.vtqf-transit-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #f0f9ff;
    border: 1px dashed #3A7CA5;
    border-radius: 8px;
    flex-wrap: wrap;
}

.vtqf-transit-input-label {
    font-size: 12px;
    color: #1B3A5C;
    font-weight: 500;
    margin-right: 4px;
}

.vtqf-transit-time-input {
    padding: 6px 8px;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    width: 90px;
    background: #fff;
    color: #0F2640;
}

.vtqf-transit-time-input:focus {
    outline: none;
    border-color: #3A7CA5;
    box-shadow: 0 0 0 2px rgba(27, 58, 92, 0.2);
}

.vtqf-transit-input-arrow,
.vtqf-transit-input-arr {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.vtqf-apply-transit-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #3A7CA5 0%, #2B6285 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(27, 58, 92, 0.3);
}

.vtqf-apply-transit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(27, 58, 92, 0.4);
}

.vtqf-apply-transit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vtqf-paste-transit-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.vtqf-paste-transit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.vtqf-paste-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
    text-align: center;
}

.vtqf-transit-calculating {
    font-size: 12px;
    color: #1B3A5C;
    animation: vtqf-pulse 1s ease-in-out infinite;
}

@keyframes vtqf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Yahoo乗換結果表示エリア */
.vtqf-transit-result {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 8px;
    flex-wrap: wrap;
}

.vtqf-transit-result-item {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vtqf-transit-duration {
    color: #1B3A5C;
}

.vtqf-transit-fare {
    color: #b45309;
}

.vtqf-transit-transfers {
    color: var(--secondary-dark);
}

/* 入力行レイアウト */
.vtqf-transit-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vtqf-transit-input-row:not(:last-child) {
    margin-bottom: 8px;
}

/* 料金入力 */
.vtqf-transit-fare-input {
    padding: 6px 8px;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    width: 100px;
    background: #fffbeb;
    color: #92400e;
}

.vtqf-transit-fare-input:focus {
    outline: none;
    border-color: #3A7CA5;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.vtqf-transit-fare-input::placeholder {
    color: #2B6285;
    font-weight: 400;
}

/* 乗換回数セレクト */
.vtqf-transit-transfers-select {
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: var(--secondary-pale);
    color: var(--secondary-dark);
    cursor: pointer;
}

.vtqf-transit-transfers-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(60, 211, 173, 0.2);
}

/* モバイル対応 */
@media (max-width: 480px) {
    .vtqf-transit-input-wrap {
        padding: 8px 10px;
        gap: 4px;
    }

    .vtqf-transit-input-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .vtqf-transit-time-input {
        width: 80px;
        padding: 5px 6px;
        font-size: 13px;
    }

    .vtqf-apply-transit-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .vtqf-transit-result {
        gap: 8px;
        padding: 8px 10px;
    }

    .vtqf-transit-result-item {
        font-size: 13px;
    }

    .vtqf-transit-fare-input {
        width: 85px;
        font-size: 12px;
    }

    .vtqf-transit-transfers-select {
        font-size: 12px;
    }
}

/* 観光終点（コンパクト1行表示） - 観光起点は上部で定義済み */
.vtqf-station-compact.vtqf-station-start {
    border-left: 3px solid #10b981;
}

.vtqf-station-compact.vtqf-station-end {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-left: 3px solid #3A7CA5;
}

.vtqf-station-memo-icon {
    font-size: 14px;
    margin-left: auto;
    cursor: help;
}

.vtqf-station-memo-icon.has-memo {
    opacity: 0.8;
}

/* イベント（昼食等）コンパクト表示 */
.vtqf-event-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    border-left: 3px solid #9ca3af;
}

.vtqf-event-compact.vtqf-lunch-compact {
    border-left: 3px solid #ea580c;
}

.vtqf-ec-icon {
    font-size: 16px;
}

.vtqf-ec-name {
    font-weight: 600;
    color: var(--gray-800);
}

.vtqf-ec-time {
    color: var(--gray-600);
    font-weight: 500;
}

.vtqf-ec-duration {
    color: var(--gray-500);
    font-size: 12px;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
}

.vtqf-ec-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.vtqf-ec-delete:hover {
    color: #ef4444;
}

.vtqf-event-compact .vtqf-memo-indicator {
    font-size: 14px;
    cursor: help;
}

/* 昼食・イベントカード（観光カードと同じ構造） */
.vtqf-timeline-event-card {
    background: #f9fafb;
    border-left: 3px solid #9ca3af;
}

.vtqf-timeline-event-card.vtqf-lunch-card {
    background: #fff7ed;
    border-left: 3px solid #ea580c;
}

.vtqf-timeline-dot-event {
    background: #ea580c !important;
}

.vtqf-event-name {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.vtqf-lunch-card .vtqf-event-name {
    color: #c2410c;
}

/* イベントカードのホバー効果 */
.vtqf-timeline-item:hover .vtqf-timeline-event-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.vtqf-timeline-item:hover .vtqf-timeline-dot-event {
    transform: scale(1.15);
}

/* 駅メモ機能 */
.vtqf-station-memo {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.vtqf-station-memo-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vtqf-station-memo-delete-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.vtqf-station-memo-delete-btn:hover {
    background: #ef4444;
    color: white;
}

.vtqf-station-memo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.vtqf-station-memo-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.vtqf-station-memo-toggle.has-memo {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    border-style: solid;
    color: white;
}

.vtqf-station-memo-toggle.has-memo:hover {
    background: rgba(255, 255, 255, 0.4);
}

.vtqf-station-memo-toggle.editing {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    border-style: solid;
}

.vtqf-station-memo .vtqf-memo-icon {
    font-size: 14px;
}

.vtqf-station-memo .vtqf-memo-placeholder {
    font-size: 11px;
}

.vtqf-station-memo .vtqf-memo-preview {
    font-size: 11px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtqf-station-memo-edit {
    margin-top: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vtqf-station-memo-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    color: #374151;
}

.vtqf-station-memo-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vtqf-station-memo-input::placeholder {
    color: #9ca3af;
}

.vtqf-station-memo-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.vtqf-station-memo-actions .vtqf-memo-counter {
    font-size: 11px;
    color: #6b7280;
}

.vtqf-station-memo-save-btn {
    padding: 6px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-station-memo-save-btn:hover {
    background: #2563eb;
}

.vtqf-station-memo-cancel-btn {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.vtqf-station-memo-cancel-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ========================================
   天気予報表示
   ======================================== */

/* ========================================
   旅行日＋天気 統合カード（1行コンパクト）
   ======================================== */
.vtqf-date-weather-card {
    position: relative;
    margin-bottom: 16px;
}

.vtqf-date-weather-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vtqf-date-weather-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* 日付部分 */
.vtqf-dw-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vtqf-dw-icon {
    font-size: 16px;
}

.vtqf-dw-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

/* 天気部分 */
.vtqf-dw-weather {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-right: 8px;
}

.vtqf-dw-weather-icon {
    font-size: 20px;
    line-height: 1;
}

.vtqf-dw-temp {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.vtqf-dw-precip {
    font-size: 12px;
    color: #1976d2;
    font-weight: 500;
}

/* 宿泊時の日別天気アイコン */
.vtqf-dw-day-weather {
    font-size: 18px;
    line-height: 1;
    cursor: help;
    transition: transform 0.15s ease;
}

.vtqf-dw-day-weather:hover {
    transform: scale(1.2);
}

.vtqf-dw-arrow {
    font-size: 10px;
    color: var(--gray-400);
    transition: transform 0.2s ease;
}

.vtqf-date-weather-btn:hover .vtqf-dw-arrow {
    transform: translateY(2px);
    color: var(--primary);
}

/* 天気警告アイコン */
.vtqf-dw-warning {
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.vtqf-dw-optimized {
    font-size: 14px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 天気警告詳細 */
.vtqf-dw-warning-detail {
    font-size: 11px;
    color: var(--gray-600);
    padding: 6px 14px 0;
    margin-top: -4px;
}

/* 警告時のカードスタイル */
.vtqf-date-weather-card.vtqf-dw-warn-rain .vtqf-date-weather-btn {
    border-color: rgba(25, 118, 210, 0.4);
    background: rgba(25, 118, 210, 0.05);
}

.vtqf-date-weather-card.vtqf-dw-warn-cold .vtqf-date-weather-btn {
    border-color: rgba(27, 58, 92, 0.4);
    background: rgba(27, 58, 92, 0.05);
}

.vtqf-date-weather-card.vtqf-dw-warn-hot .vtqf-date-weather-btn {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

/* カスタムカレンダー位置調整 */
.vtqf-date-weather-card .vtqf-custom-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    border-radius: 12px;
}

/* 旧スタイル互換（削除予定） */
.vtqf-weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vtqf-weather-day-num {
    font-size: 11px;
    font-weight: 600;
    color: #1976d2;
}

.vtqf-weather-date {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.vtqf-weather-icon-large {
    font-size: 28px;
    line-height: 1;
    margin: 4px 0;
}

.vtqf-weather-text {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.vtqf-weather-detail {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.vtqf-weather-precip-badge {
    font-size: 10px;
    color: #1976d2;
    background: rgba(25, 118, 210, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* 日別ヘッダー内の天気 */
.vtqf-day-label {
    font-weight: 600;
    color: #fff;
}

.vtqf-day-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.vtqf-day-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-left: auto;
}

.vtqf-weather-icon {
    font-size: 18px;
    line-height: 1;
}

.vtqf-weather-temp {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.vtqf-weather-precip {
    font-size: 11px;
    color: #1976d2;
    font-weight: 500;
}

/* 日帰りの場合の天気表示 */
.vtqf-timeline-weather-summary .vtqf-weather-day:only-child {
    flex-direction: row;
    min-width: auto;
    width: 100%;
    justify-content: center;
    gap: 12px;
    padding: 16px;
}

.vtqf-timeline-weather-summary .vtqf-weather-day:only-child .vtqf-weather-icon-large {
    font-size: 36px;
}

.vtqf-timeline-weather-summary .vtqf-weather-day:only-child .vtqf-weather-text {
    font-size: 16px;
}

.vtqf-timeline-weather-summary .vtqf-weather-day:only-child .vtqf-weather-detail {
    font-size: 13px;
}

/* 雨予報時の警告スタイル */
.vtqf-weather-day.vtqf-weather-rainy {
    background: rgba(255, 235, 238, 0.9);
}

.vtqf-weather-precip-badge.vtqf-high-precip {
    background: rgba(244, 67, 54, 0.15);
    color: #d32f2f;
}

/* 天気最適化ボタン */
.vtqf-timeline-weather-btn {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%) !important;
}

.vtqf-timeline-weather-btn:hover {
    background: linear-gradient(135deg, #64b5f6 0%, #1e88e5 100%) !important;
}

/* 旅行日選択UI */
.vtqf-travel-date-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gradient-primary);
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(76, 184, 196, 0.3);
}

.vtqf-date-label {
    font-size: 15px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vtqf-date-input {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vtqf-date-input:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.vtqf-date-input:focus {
    outline: none;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.7);
}

/* カレンダーアイコンのカスタマイズ */
.vtqf-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    filter: invert(35%) sepia(50%) saturate(500%) hue-rotate(200deg);
}

.vtqf-date-input::-webkit-calendar-picker-indicator:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.1);
}

.vtqf-date-display {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: none;
}

/* 日付ピッカーボタン */
.vtqf-date-picker-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vtqf-date-picker-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.vtqf-date-picker-icon {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.vtqf-date-picker-btn:hover .vtqf-date-picker-icon {
    transform: translateY(2px);
}

/* カスタムカレンダー（グラスモーフィズム版） */
.vtqf-custom-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    animation: calendarSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes calendarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vtqf-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vtqf-calendar-month {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.5px;
}

.vtqf-calendar-nav {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    color: #374151;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.vtqf-calendar-nav:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.vtqf-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.vtqf-calendar-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    padding: 4px 0;
}

.vtqf-calendar-weekday.vtqf-calendar-sunday {
    color: #ef4444;
}

.vtqf-calendar-weekday.vtqf-calendar-saturday {
    color: #3b82f6;
}

.vtqf-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.vtqf-calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.vtqf-calendar-day:not(.vtqf-calendar-day-disabled):not(.vtqf-calendar-day-empty):hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vtqf-calendar-day-empty {
    background: transparent;
    cursor: default;
    backdrop-filter: none;
}

.vtqf-calendar-day-disabled {
    color: rgba(156, 163, 175, 0.5);
    background: transparent;
    cursor: not-allowed;
    backdrop-filter: none;
}

.vtqf-calendar-day-today {
    border: 2px solid #0d9488;
}

.vtqf-calendar-day-selected {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
    transform: scale(1.02);
}

.vtqf-calendar-day-selected:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.vtqf-calendar-day-sunday:not(.vtqf-calendar-day-disabled):not(.vtqf-calendar-day-selected) {
    color: #ef4444;
}

.vtqf-calendar-day-saturday:not(.vtqf-calendar-day-disabled):not(.vtqf-calendar-day-selected) {
    color: #3b82f6;
}

/* 天気による背景色（グラス効果付き） */
.vtqf-calendar-day-sunny:not(.vtqf-calendar-day-selected) {
    background: rgba(251, 146, 60, 0.6);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vtqf-calendar-day-cloudy:not(.vtqf-calendar-day-selected) {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
}

.vtqf-calendar-day-rainy:not(.vtqf-calendar-day-selected) {
    background: rgba(59, 130, 246, 0.5);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vtqf-calendar-day-snowy:not(.vtqf-calendar-day-selected) {
    background: rgba(232, 247, 248, 0.7);
    color: var(--gray-700);
}

.vtqf-calendar-day-num {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

/* カレンダー天気凡例（グラス版） */
.vtqf-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.vtqf-legend-item {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease;
}

.vtqf-legend-item:hover {
    transform: scale(1.05);
}

.vtqf-legend-sunny {
    background: rgba(251, 146, 60, 0.6);
    color: white;
}

.vtqf-legend-cloudy {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
}

.vtqf-legend-rainy {
    background: rgba(59, 130, 246, 0.5);
    color: white;
}

.vtqf-legend-snowy {
    background: rgba(232, 247, 248, 0.7);
    color: var(--gray-700);
}

/* 天気警告バナー（コンパクト版） */
.vtqf-weather-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
}

.vtqf-weather-compact.vtqf-wc-rain {
    border-left: 3px solid #1976d2;
}

.vtqf-weather-compact.vtqf-wc-hot {
    border-left: 3px solid #f57c00;
}

.vtqf-weather-compact.vtqf-wc-cold {
    border-left: 3px solid #43a047;
}

.vtqf-weather-compact.vtqf-wc-optimized {
    border-left: 3px solid #4caf50;
}

.vtqf-wc-icon {
    font-size: 16px;
}

.vtqf-wc-text {
    flex: 1;
    color: var(--gray-700);
    font-size: 12px;
}

.vtqf-wc-action {
    padding: 2px 8px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-600);
}

.vtqf-wc-action:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* スポットカードの天気タグ */
.vtqf-spot-weather-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 12px;
    font-size: 10px;
    color: #1976d2;
    font-weight: 500;
}

.vtqf-spot-weather-tag.vtqf-indoor {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.vtqf-spot-weather-tag.vtqf-covered {
    background: rgba(255, 152, 0, 0.1);
    color: #ef6c00;
}

.vtqf-spot-weather-tag.vtqf-outdoor {
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}

/* ========================================
   選定基準バナー（おまかせモード）
   ======================================== */
.vtqf-selection-criteria-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    margin-bottom: 10px;
}

.vtqf-scb-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.vtqf-scb-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vtqf-scb-text {
    font-size: 15px;
    font-weight: 600;
    color: #166534;
}

.vtqf-scb-desc {
    font-size: 11px;
    color: #16a34a;
}

@media (max-width: 480px) {
    .vtqf-selection-criteria-banner {
        padding: 12px 14px;
        gap: 10px;
    }

    .vtqf-scb-icon {
        font-size: 24px;
    }

    .vtqf-scb-text {
        font-size: 14px;
    }

    .vtqf-scb-desc {
        font-size: 10px;
    }
}

/* ========================================
   ルート概要アコーディオン
   ======================================== */
.vtqf-route-overview {
    margin-bottom: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vtqf-route-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.vtqf-route-header:hover {
    background: #f8fafc;
}

.vtqf-route-toggle-icon {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.vtqf-route-overview.expanded .vtqf-route-toggle-icon {
    transform: rotate(90deg);
}

.vtqf-route-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
}

.vtqf-route-priority-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-pale);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    white-space: nowrap;
}

.vtqf-route-theme-badge {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

.vtqf-route-summary {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 12px;
}

.vtqf-route-criteria {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #d8b4fe;
    border-radius: 8px;
}

.vtqf-rc-icon {
    font-size: 14px;
}

.vtqf-rc-text {
    font-size: 12px;
    color: #6b21a8;
    font-weight: 500;
}

/* AI判断根拠メッセージ（アコーディオン外・常時表示） */
.vtqf-ai-reasoning {
    padding: 10px 12px;
    margin: 8px 0 4px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 8px;
}
.vtqf-ai-reasoning-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}
.vtqf-ai-reasoning-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.vtqf-ai-reasoning-arrow {
    font-size: 10px;
    color: #3b82f6;
    margin-left: auto;
    transition: transform 0.2s ease;
}
.vtqf-ai-reasoning-list[style*="block"] {
    margin-top: 8px;
}
.vtqf-ai-reasoning-icon {
    font-size: 14px;
}
.vtqf-ai-reasoning-title {
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
}
.vtqf-ai-reasoning-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}
.vtqf-ai-reasoning-list li {
    font-size: 10.5px;
    color: #1e3a5f;
    line-height: 1.6;
    position: relative;
    padding-left: 4px;
}
.vtqf-ai-reasoning-list li::before {
    content: '•';
    position: absolute;
    left: -14px;
    color: #3b82f6;
    font-weight: bold;
}

/* タイムライン内のAI判断根拠 */
.vtqf-tl-ai-reasoning {
    margin: 0 0 10px;
}

/* 混雑予測の根拠注釈 */
.vtqf-crowding-basis-note {
    font-size: 10.5px;
    color: var(--gray-400, #9ca3af);
    text-align: center;
    padding: 2px 12px 8px;
    line-height: 1.4;
}

/* 日没最適化メッセージ */
.vtqf-route-sunset-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: 8px;
}

.vtqf-rsi-icon {
    font-size: 16px;
}

.vtqf-rsi-text {
    font-size: 12px;
    color: #c2410c;
    font-weight: 500;
}

/* 分散効果バッジ */
.vtqf-route-dispersion {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    margin-bottom: 8px;
}
.vtqf-disp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.vtqf-disp-area {
    background: #ede9fe;
    color: #6d28d9;
}
.vtqf-disp-crowd {
    background: #dcfce7;
    color: #15803d;
}
.vtqf-disp-gem {
    background: #fef3c7;
    color: #b45309;
}

.vtqf-route-body {
    border-top: 1px solid #99f6e4;
    background: rgba(20, 184, 166, 0.08);
    padding: 12px 16px;
    max-height: 60vh;
    overflow-y: auto;
}

/* ルート概要下部の閉じるボタン */
.vtqf-route-close-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    color: #1B3A5C;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vtqf-route-close-btn:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
}

.vtqf-route-close-btn:active {
    transform: scale(0.98);
}

/* 展開時にフル幅で表示 */
.vtqf-route-overview.expanded {
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 8px;
}

.vtqf-route-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vtqf-route-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.vtqf-ri-time {
    min-width: 45px;
    font-size: 13px;
    font-weight: 600;
    color: #0F2640;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.vtqf-ri-icon {
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

.vtqf-ri-name {
    flex: 1;
    font-size: 13px;
    color: #1e3a5f;
}

.vtqf-ri-duration {
    font-size: 11px;
    color: #64748b;
}

/* ルート概要の入場料バッジ */
.vtqf-ri-admission {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    white-space: nowrap;
}

.vtqf-ri-admission-free {
    background: var(--secondary-pale);
    color: var(--secondary-dark);
}

.vtqf-ri-admission-paid {
    background: var(--accent-pale);
    color: var(--accent-dark);
}

/* ルート概要のレポートセクション */
.vtqf-route-comments-section {
    padding: 0 0 4px 77px;
}
.vtqf-route-comments-toggle {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--primary, #2563eb);
    cursor: pointer;
    padding: 2px 0;
    font-weight: 500;
}
.vtqf-route-comments-toggle:hover {
    text-decoration: underline;
}
.vtqf-route-comments-body {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 2px;
}

.vtqf-route-travel {
    padding: 2px 0 2px 45px;
}

.vtqf-ri-line {
    color: #94a3b8;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}

.vtqf-ri-travel-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.vtqf-route-start .vtqf-ri-name,
.vtqf-route-end .vtqf-ri-name {
    font-weight: 500;
    color: #1B3A5C;
}

.vtqf-route-station .vtqf-ri-name {
    font-weight: 500;
    color: #059669;
}

.vtqf-route-hotel .vtqf-ri-name {
    font-weight: 600;
    color: var(--accent);
}

.vtqf-route-end-station .vtqf-ri-name {
    font-weight: 500;
    color: #dc2626;
}

.vtqf-route-end-station .vtqf-ri-icon {
    color: #dc2626;
}

/* ルート概要：日別区切り */
.vtqf-route-day-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 6px;
    color: #0f766e;
    font-size: 12px;
}

.vtqf-rds-label {
    font-weight: 700;
    font-size: 13px;
}

.vtqf-rds-time {
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.vtqf-rds-weather {
    font-size: 12px;
    color: #1B3A5C;
}

.vtqf-rds-sunset {
    font-size: 12px;
    color: #c2410c;
}

.vtqf-rds-dist {
    margin-left: auto;
    font-weight: 500;
    color: #0f766e;
}

/* ルート概要：日付・天気統合スタイル */
.vtqf-ro-date-weather {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-ro-date {
    font-size: 13px;
    font-weight: 600;
    color: #0F2640;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #7dd3fc;
    cursor: pointer;
    transition: all 0.2s;
}

.vtqf-ro-date:hover {
    background: #fff;
    border-color: #3A7CA5;
    box-shadow: 0 2px 6px rgba(27, 58, 92, 0.2);
}

.vtqf-ro-date:active {
    transform: scale(0.98);
}

.vtqf-ro-date-edit {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.6;
}

.vtqf-ro-weather {
    font-size: 13px;
    color: #1B3A5C;
}

.vtqf-ro-sunset {
    font-size: 12px;
    color: #ea580c;
    font-weight: 500;
}

.vtqf-ro-warning-icon {
    font-size: 14px;
    animation: pulse 1.5s infinite;
}

.vtqf-ro-optimized {
    font-size: 13px;
    color: #059669;
}

.vtqf-ro-date-btn {
    margin-left: 8px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #bae6fd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.vtqf-ro-date-btn:hover {
    background: #fff;
    border-color: #3A7CA5;
}

.vtqf-ro-calendar {
    padding: 12px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid #bae6fd;
}

/* 横スクロール日付カード */
.vtqf-date-cards-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 12px;
}

.vtqf-date-cards-container::-webkit-scrollbar {
    display: none;
}

.vtqf-date-cards {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.vtqf-date-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(27, 58, 92, 0.06);
}

.vtqf-date-card:hover {
    border-color: rgba(27, 58, 92, 0.4);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(27, 58, 92, 0.15);
}

.vtqf-date-card-selected {
    background: rgba(27, 58, 92, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}
.vtqf-date-card-selected::after {
    content: '✓';
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.vtqf-date-card-selected:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(27, 58, 92, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.vtqf-date-card-today:not(.vtqf-date-card-selected) {
    border-color: rgba(27, 58, 92, 0.5);
    border-width: 2px;
}

.vtqf-date-card-sunday:not(.vtqf-date-card-selected) .vtqf-dc-day {
    color: #ef4444;
}

.vtqf-date-card-saturday:not(.vtqf-date-card-selected) .vtqf-dc-day {
    color: #3b82f6;
}

.vtqf-dc-month {
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.vtqf-date-card-selected .vtqf-dc-month {
    color: rgba(255, 255, 255, 0.8);
}

.vtqf-dc-date {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.vtqf-dc-day {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

.vtqf-dc-weather {
    font-size: 16px;
    line-height: 1;
}

.vtqf-dc-temp {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.vtqf-date-card-selected .vtqf-dc-temp {
    color: rgba(255, 255, 255, 0.9);
}

/* ルート概要：天気詳細 */
.vtqf-ro-weather-detail {
    padding: 10px 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
    border-radius: 8px;
}

.vtqf-ro-wd-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vtqf-ro-wd-icon {
    font-size: 20px;
}

.vtqf-ro-wd-text {
    font-size: 13px;
    font-weight: 500;
    color: #0f766e;
}

.vtqf-ro-wd-temp {
    font-size: 13px;
    color: #115e59;
    font-weight: 600;
}

.vtqf-ro-wd-precip {
    font-size: 12px;
    color: #1B3A5C;
}

.vtqf-ro-wd-warning {
    margin-top: 8px;
    font-size: 12px;
    color: #b45309;
    padding: 6px 10px;
    background: #fffbeb;
    border-radius: 6px;
    border: 1px solid #fde68a;
}

/* ルート概要：警告テーマ */
.vtqf-route-overview.vtqf-ro-warn-rain {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #7dd3fc;
}

.vtqf-route-overview.vtqf-ro-warn-hot {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
}

.vtqf-route-overview.vtqf-ro-warn-cold {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

@media (max-width: 480px) {
    .vtqf-route-header {
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    .vtqf-route-title {
        font-size: 13px;
    }

    .vtqf-route-summary {
        font-size: 11px;
        padding: 3px 8px;
    }

    .vtqf-route-body {
        padding: 10px 14px;
        max-height: 50vh;
    }

    .vtqf-route-overview.expanded {
        margin-left: -4px;
        margin-right: -4px;
    }

    .vtqf-ri-time {
        min-width: 40px;
        font-size: 12px;
    }

    .vtqf-ri-icon {
        font-size: 14px;
        min-width: 20px;
    }

    .vtqf-ri-name {
        font-size: 12px;
    }

    .vtqf-ri-duration {
        font-size: 10px;
    }

    .vtqf-route-travel {
        padding-left: 40px;
    }

    .vtqf-ri-travel-info {
        font-size: 10px;
    }

    .vtqf-route-priority-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .vtqf-route-theme-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .vtqf-route-criteria {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .vtqf-rc-icon {
        font-size: 12px;
    }

    .vtqf-rc-text {
        font-size: 11px;
    }

    .vtqf-ai-reasoning {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .vtqf-ai-reasoning-list li {
        font-size: 11px;
    }

    .vtqf-route-sunset-info {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .vtqf-rsi-icon {
        font-size: 14px;
    }

    .vtqf-rsi-text {
        font-size: 11px;
    }

    /* 日付・天気統合：モバイル */
    .vtqf-ro-date-weather {
        gap: 6px;
    }

    .vtqf-ro-date {
        font-size: 12px;
        padding: 3px 8px;
    }

    .vtqf-ro-weather {
        font-size: 12px;
    }

    .vtqf-ro-date-btn {
        padding: 3px 6px;
        font-size: 12px;
    }

    .vtqf-ro-calendar {
        padding: 0 12px 10px;
    }

    .vtqf-ro-weather-detail {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .vtqf-ro-wd-icon {
        font-size: 18px;
    }

    .vtqf-ro-wd-text {
        font-size: 12px;
    }

    .vtqf-ro-wd-temp {
        font-size: 12px;
    }

    .vtqf-ro-wd-precip {
        font-size: 11px;
    }

    .vtqf-ro-wd-warning {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* ========================================
   メモ入力モーダル（モバイル対応）
   ======================================== */
.vtqf-memo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vtqf-memo-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: vtqf-modal-appear 0.2s ease-out;
}

@keyframes vtqf-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vtqf-memo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #2C5F8A 0%, #1B3A5C 100%);
}

.vtqf-memo-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-memo-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vtqf-memo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vtqf-memo-modal-body {
    padding: 20px;
}

.vtqf-memo-modal-textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.vtqf-memo-modal-textarea:focus {
    outline: none;
    border-color: #2C5F8A;
}

.vtqf-memo-modal-counter {
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.vtqf-memo-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.vtqf-memo-modal-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.vtqf-memo-modal-btn.cancel {
    background: #e5e7eb;
    color: #374151;
}

.vtqf-memo-modal-btn.cancel:hover {
    background: #d1d5db;
}

.vtqf-memo-modal-btn.save {
    background: linear-gradient(135deg, #2C5F8A 0%, #1B3A5C 100%);
    color: white;
}

.vtqf-memo-modal-btn.save:hover {
    background: linear-gradient(135deg, #1B3A5C 0%, #132A42 100%);
}

.vtqf-memo-modal-btn.delete {
    flex: 0 0 auto;
    padding: 14px;
    background: #fef2f2;
    color: #dc2626;
}

.vtqf-memo-modal-btn.delete:hover:not(:disabled) {
    background: #fee2e2;
}

.vtqf-memo-modal-btn.delete:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .vtqf-memo-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .vtqf-memo-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
    }

    .vtqf-memo-modal-textarea {
        min-height: 120px;
        font-size: 16px;
    }

    .vtqf-memo-modal-btn {
        padding: 16px;
    }
}

/* トースト通知 */
.vtqf-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vtqf-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   混雑予測バッジ
   ======================================== */
.vtqf-crowd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 10px;
    cursor: help;
    transition: transform 0.2s ease;
}

.vtqf-crowd-badge:hover {
    transform: scale(1.2);
}

/* 混雑レベル別の背景色 */
.vtqf-crowd-1 { background: rgba(76, 175, 80, 0.15); }
.vtqf-crowd-2 { background: rgba(139, 195, 74, 0.15); }
.vtqf-crowd-3 { background: rgba(255, 152, 0, 0.15); }
.vtqf-crowd-4 { background: rgba(255, 87, 34, 0.15); }
.vtqf-crowd-5 { background: rgba(156, 39, 176, 0.15); }

/* ========================================
   PWAインストールボタン
   ======================================== */
.vtqf-pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #e8f7f8 100%);
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 184, 196, 0.25);
    animation: vtqf-pwa-pulse 2s ease-in-out infinite;
}

.vtqf-pwa-install-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 184, 196, 0.4);
}

.vtqf-pwa-install-btn:active {
    transform: translateY(0);
}

.vtqf-pwa-install-icon {
    font-size: 18px;
}

/* ポップアップ式ズームコントロール */
.vtqf-zoom-popup-wrap {
    position: relative;
}

.vtqf-zoom-trigger {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
}

.vtqf-zoom-trigger:active {
    background: #f1f5f9;
}

.vtqf-zoom-trigger-nav {
    color: #1B3A5C;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(27, 58, 92, 0.2);
}

.vtqf-zoom-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    padding: 4px;
    z-index: 10000;
    min-width: 70px;
}

.vtqf-zoom-popup.open {
    display: flex;
    flex-direction: column;
}

.vtqf-zoom-popup button {
    padding: 8px 14px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    font-family: inherit;
    transition: background 0.15s;
}

.vtqf-zoom-popup button:active,
.vtqf-zoom-popup button:hover {
    background: #f1f5f9;
}

.vtqf-zoom-popup button.active {
    color: #1B3A5C;
    font-weight: 700;
    background: #e0f2fe;
}

/* メインページ上部コントロール */
.vtqf-top-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
}

/* ヘッダー右側（概要・地図共通） */
.vtqf-overview-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes vtqf-pwa-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(27, 58, 92, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(27, 58, 92, 0.4);
    }
}

/* フッター配置時のスタイル調整 */
.vtqf-pwa-section {
    text-align: center;
    margin-bottom: 16px;
}

.vtqf-pwa-start {
    margin-top: 40px;
}

.vtqf-pwa-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: none;
    position: relative;
}

.vtqf-pwa-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.vtqf-pwa-link-wrap {
    text-align: center;
    margin: 0;
    padding: 0 16px;
    white-space: nowrap;
    font-size: 0.75rem;
}

.vtqf-pwa-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--gray-400);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.vtqf-pwa-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.vtqf-pwa-link svg {
    flex-shrink: 0;
}

.vtqf-pwa-hint {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 4px;
}

.vtqf-pwa-footer {
    margin: 0 0 8px 0;
}

.vtqf-pwa-description {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0 0 4px 0;
    padding: 0 16px;
}

.vtqf-pwa-uninstall {
    font-size: 11px;
    color: var(--gray-400);
    margin: 0;
    padding: 0 16px;
}

@media (max-width: 600px) {
    .vtqf-pwa-link-wrap {
        font-size: 0.7rem;
    }

    .vtqf-pwa-hint {
        font-size: 0.65rem;
    }
}

/* ========================================
   スクロールトップボタン
   ======================================== */
.vtqf-scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.vtqf-scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vtqf-overview-overlay.active ~ .vtqf-scroll-top-btn,
.vtqf-map-overlay.active ~ .vtqf-scroll-top-btn,
.vtqf-addspot-overlay.active ~ .vtqf-scroll-top-btn {
    display: none !important;
}

.vtqf-scroll-top-btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vtqf-scroll-top-btn:active {
    transform: translateY(0);
}

.vtqf-scroll-top-icon {
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

@media (max-width: 768px) {
    .vtqf-scroll-top-btn {
        bottom: 80px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .vtqf-scroll-top-icon {
        font-size: 14px;
    }
}

/* ========================================
   サーファー画面遷移アニメーション
   ======================================== */
.vtqf-surfer-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.vtqf-surfer-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* 波のレイヤー */
.vtqf-surfer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    transform: translateX(-100%);
}

.vtqf-surfer-wave-1 {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(76, 184, 196, 0.95) 30%,
        rgba(60, 211, 173, 0.95) 50%,
        rgba(76, 184, 196, 0.95) 70%,
        rgba(60, 211, 173, 0.9) 100%
    );
    z-index: 3;
}

.vtqf-surfer-wave-2 {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(60, 211, 173, 0.8) 25%,
        rgba(76, 184, 196, 0.85) 50%,
        rgba(60, 211, 173, 0.8) 75%,
        rgba(76, 184, 196, 0.75) 100%
    );
    z-index: 2;
}

.vtqf-surfer-wave-3 {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(76, 184, 196, 0.6) 20%,
        rgba(60, 211, 173, 0.7) 45%,
        rgba(76, 184, 196, 0.65) 70%,
        rgba(60, 211, 173, 0.6) 100%
    );
    z-index: 1;
}

/* アニメーション中の波 */
.vtqf-surfer-transition.active .vtqf-surfer-wave-1 {
    animation: vtqf-surfer-wave-sweep 2.2s ease-in-out forwards;
}

.vtqf-surfer-transition.active .vtqf-surfer-wave-2 {
    animation: vtqf-surfer-wave-sweep 2.2s ease-in-out 0.1s forwards;
}

.vtqf-surfer-transition.active .vtqf-surfer-wave-3 {
    animation: vtqf-surfer-wave-sweep 2.2s ease-in-out 0.2s forwards;
}

@keyframes vtqf-surfer-wave-sweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* サーファーアイコン（共通） */
.vtqf-surfer-icon {
    position: absolute;
    left: -100px;
    opacity: 0;
    transform: scaleX(-1);
}

/* サーファーの下の波ライン */
.vtqf-surfer-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 20%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.6) 80%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(2px);
    animation: vtqf-wave-splash 0.4s ease-in-out infinite;
}

/* 波しぶきパーティクル */
.vtqf-surfer-icon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    bottom: 5px;
    left: 50%;
    opacity: 0;
    /* box-shadowで複数のパーティクルを生成 */
    box-shadow:
        -15px -10px 0 rgba(255, 255, 255, 0.8),
        -25px -5px 0 rgba(173, 216, 230, 0.9),
        -35px -15px 0 rgba(255, 255, 255, 0.7),
        -10px -20px 0 rgba(173, 216, 230, 0.8),
        -20px -25px 0 rgba(255, 255, 255, 0.6),
        -30px -8px 0 rgba(173, 216, 230, 0.7),
        -40px -18px 0 rgba(255, 255, 255, 0.5),
        -5px -15px 0 rgba(173, 216, 230, 0.9),
        -45px -12px 0 rgba(255, 255, 255, 0.6),
        -28px -22px 0 rgba(173, 216, 230, 0.7);
}

.vtqf-surfer-transition.active .vtqf-surfer-icon::before {
    animation: vtqf-splash-particles 0.6s ease-out infinite;
}

@keyframes vtqf-splash-particles {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateX(-5px) translateY(-5px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-15px) translateY(-10px) scale(1.2);
    }
    80% {
        opacity: 0.4;
        transform: translateX(-25px) translateY(-5px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateX(-35px) translateY(5px) scale(0.3);
    }
}

@keyframes vtqf-wave-splash {
    0%, 100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) scaleX(1.2);
        opacity: 1;
    }
}

/* サーファー1: 手前（大きい） */
.vtqf-surfer-1 {
    top: -10%;
    left: -100px;
    font-size: 80px;
    z-index: 14;
    filter: drop-shadow(4px 8px 10px rgba(0, 0, 0, 0.5));
}
.vtqf-surfer-1::after {
    width: 90px;
    height: 14px;
}
.vtqf-surfer-transition.active .vtqf-surfer-1 {
    animation: vtqf-surfer-ride-1 3.5s ease-in-out forwards;
}

/* サーファー2: 中手前 */
.vtqf-surfer-2 {
    top: -15%;
    left: -80px;
    font-size: 64px;
    z-index: 13;
    filter: drop-shadow(3px 6px 8px rgba(0, 0, 0, 0.45));
}
.vtqf-surfer-2::after {
    width: 70px;
    height: 11px;
}
.vtqf-surfer-transition.active .vtqf-surfer-2 {
    animation: vtqf-surfer-ride-2 3.5s ease-in-out 0.15s forwards;
}

/* サーファー3: 中奥 */
.vtqf-surfer-3 {
    top: -20%;
    left: -60px;
    font-size: 48px;
    z-index: 12;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
}
.vtqf-surfer-3::after {
    width: 55px;
    height: 9px;
}
.vtqf-surfer-transition.active .vtqf-surfer-3 {
    animation: vtqf-surfer-ride-3 3.5s ease-in-out 0.3s forwards;
}

/* サーファー4: 奥（小さい） */
.vtqf-surfer-4 {
    top: -25%;
    left: -50px;
    font-size: 36px;
    z-index: 11;
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.35));
}
.vtqf-surfer-4::after {
    width: 40px;
    height: 7px;
}
.vtqf-surfer-transition.active .vtqf-surfer-4 {
    animation: vtqf-surfer-ride-4 3.5s ease-in-out 0.45s forwards;
}

/* サーファー1: 左上→右→左→右下 ターン波乗り */
@keyframes vtqf-surfer-ride-1 {
    0% {
        top: -10%;
        left: -100px;
        opacity: 0;
        transform: scaleX(-1) rotate(-10deg);
    }
    3% {
        opacity: 1;
        transform: scaleX(-1) rotate(-5deg);
    }
    /* 右へ向かう（1回目） */
    8% {
        top: 8%;
        left: 20vw;
        transform: scaleX(-1) rotate(8deg);
    }
    16% {
        top: 18%;
        left: 50vw;
        transform: scaleX(-1) rotate(-5deg);
    }
    24% {
        top: 28%;
        left: 80vw;
        transform: scaleX(-1) rotate(6deg);
    }
    /* 右端でターン（左向きに反転） */
    28% {
        top: 32%;
        left: 92vw;
        transform: scaleX(1) rotate(0deg);
    }
    /* 左へ向かう */
    36% {
        top: 42%;
        left: 70vw;
        transform: scaleX(1) rotate(-8deg);
    }
    44% {
        top: 52%;
        left: 40vw;
        transform: scaleX(1) rotate(6deg);
    }
    52% {
        top: 60%;
        left: 15vw;
        transform: scaleX(1) rotate(-5deg);
    }
    /* 左端でターン（右向きに反転） */
    58% {
        top: 66%;
        left: 5vw;
        transform: scaleX(-1) rotate(0deg);
    }
    /* 右下へ向かう */
    68% {
        top: 75%;
        left: 30vw;
        transform: scaleX(-1) rotate(8deg);
    }
    78% {
        top: 85%;
        left: 60vw;
        transform: scaleX(-1) rotate(-5deg);
    }
    88% {
        top: 95%;
        left: 85vw;
        opacity: 1;
        transform: scaleX(-1) rotate(6deg);
    }
    100% {
        top: 110%;
        left: calc(100% + 100px);
        opacity: 0;
        transform: scaleX(-1) rotate(0deg);
    }
}

/* サーファー2: 左上→右→左→右下 ターン波乗り */
@keyframes vtqf-surfer-ride-2 {
    0% {
        top: -15%;
        left: -80px;
        opacity: 0;
        transform: scaleX(-1) rotate(-8deg);
    }
    3% {
        opacity: 1;
        transform: scaleX(-1) rotate(-4deg);
    }
    /* 右へ向かう */
    10% {
        top: 5%;
        left: 25vw;
        transform: scaleX(-1) rotate(6deg);
    }
    18% {
        top: 16%;
        left: 55vw;
        transform: scaleX(-1) rotate(-4deg);
    }
    26% {
        top: 26%;
        left: 85vw;
        transform: scaleX(-1) rotate(5deg);
    }
    /* 右端でターン */
    30% {
        top: 30%;
        left: 95vw;
        transform: scaleX(1) rotate(0deg);
    }
    /* 左へ向かう */
    40% {
        top: 42%;
        left: 65vw;
        transform: scaleX(1) rotate(-6deg);
    }
    48% {
        top: 52%;
        left: 35vw;
        transform: scaleX(1) rotate(5deg);
    }
    56% {
        top: 60%;
        left: 10vw;
        transform: scaleX(1) rotate(-4deg);
    }
    /* 左端でターン */
    60% {
        top: 64%;
        left: 3vw;
        transform: scaleX(-1) rotate(0deg);
    }
    /* 右下へ向かう */
    72% {
        top: 76%;
        left: 35vw;
        transform: scaleX(-1) rotate(6deg);
    }
    84% {
        top: 88%;
        left: 65vw;
        opacity: 1;
        transform: scaleX(-1) rotate(-4deg);
    }
    100% {
        top: 112%;
        left: calc(100% + 80px);
        opacity: 0;
        transform: scaleX(-1) rotate(0deg);
    }
}

/* サーファー3: 左上→右→左→右下 ターン波乗り */
@keyframes vtqf-surfer-ride-3 {
    0% {
        top: -20%;
        left: -60px;
        opacity: 0;
        transform: scaleX(-1) rotate(-6deg);
    }
    3% {
        opacity: 1;
        transform: scaleX(-1) rotate(-3deg);
    }
    /* 右へ向かう */
    12% {
        top: 3%;
        left: 30vw;
        transform: scaleX(-1) rotate(5deg);
    }
    22% {
        top: 15%;
        left: 60vw;
        transform: scaleX(-1) rotate(-3deg);
    }
    30% {
        top: 24%;
        left: 88vw;
        transform: scaleX(-1) rotate(4deg);
    }
    /* 右端でターン */
    34% {
        top: 28%;
        left: 96vw;
        transform: scaleX(1) rotate(0deg);
    }
    /* 左へ向かう */
    44% {
        top: 40%;
        left: 60vw;
        transform: scaleX(1) rotate(-5deg);
    }
    54% {
        top: 52%;
        left: 25vw;
        transform: scaleX(1) rotate(4deg);
    }
    /* 左端でターン */
    62% {
        top: 62%;
        left: 6vw;
        transform: scaleX(-1) rotate(0deg);
    }
    /* 右下へ向かう */
    75% {
        top: 78%;
        left: 40vw;
        transform: scaleX(-1) rotate(5deg);
    }
    88% {
        top: 92%;
        left: 75vw;
        opacity: 1;
        transform: scaleX(-1) rotate(-3deg);
    }
    100% {
        top: 115%;
        left: calc(100% + 60px);
        opacity: 0;
        transform: scaleX(-1) rotate(0deg);
    }
}

/* サーファー4: 左上→右→左→右下 ターン波乗り */
@keyframes vtqf-surfer-ride-4 {
    0% {
        top: -25%;
        left: -50px;
        opacity: 0;
        transform: scaleX(-1) rotate(-5deg);
    }
    3% {
        opacity: 1;
        transform: scaleX(-1) rotate(-2deg);
    }
    /* 右へ向かう */
    14% {
        top: 0%;
        left: 35vw;
        transform: scaleX(-1) rotate(4deg);
    }
    26% {
        top: 13%;
        left: 70vw;
        transform: scaleX(-1) rotate(-3deg);
    }
    /* 右端でターン */
    36% {
        top: 25%;
        left: 94vw;
        transform: scaleX(1) rotate(0deg);
    }
    /* 左へ向かう */
    48% {
        top: 40%;
        left: 55vw;
        transform: scaleX(1) rotate(-4deg);
    }
    58% {
        top: 52%;
        left: 20vw;
        transform: scaleX(1) rotate(3deg);
    }
    /* 左端でターン */
    66% {
        top: 62%;
        left: 8vw;
        transform: scaleX(-1) rotate(0deg);
    }
    /* 右下へ向かう */
    80% {
        top: 80%;
        left: 45vw;
        transform: scaleX(-1) rotate(4deg);
    }
    92% {
        top: 96%;
        left: 80vw;
        opacity: 1;
        transform: scaleX(-1) rotate(-2deg);
    }
    100% {
        top: 118%;
        left: calc(100% + 50px);
        opacity: 0;
        transform: scaleX(-1) rotate(0deg);
    }
}

/* タイピングテキスト */
.vtqf-surfer-typing-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 150, 200, 0.4);
    opacity: 0;
    z-index: 25;
    letter-spacing: 0.08em;
    max-width: 80%;
    text-align: center;
    line-height: 1.4;
}

.vtqf-surfer-transition.active .vtqf-surfer-typing-text {
    animation: vtqf-typing-blink 2s ease-in-out 0.3s forwards;
}

@keyframes vtqf-typing-blink {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    30% {
        opacity: 0.4;
    }
    45% {
        opacity: 1;
    }
    60% {
        opacity: 0.4;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* モバイル対応 */
@media (max-width: 768px) {
    .vtqf-surfer-typing-text {
        font-size: 1.1rem;
        max-width: 90%;
        padding: 0 10px;
    }
}

/* 小さいスマホ対応 */
@media (max-width: 480px) {
    .vtqf-surfer-typing-text {
        font-size: 1rem;
        max-width: 85%;
        letter-spacing: 0.02em;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .vtqf-surfer-1 {
        font-size: 60px;
        top: 62%;
    }
    .vtqf-surfer-1::after {
        width: 65px;
        height: 10px;
    }

    .vtqf-surfer-2 {
        font-size: 48px;
        top: 50%;
    }
    .vtqf-surfer-2::after {
        width: 52px;
        height: 8px;
    }

    .vtqf-surfer-3 {
        font-size: 36px;
        top: 40%;
    }
    .vtqf-surfer-3::after {
        width: 40px;
        height: 7px;
    }

    .vtqf-surfer-4 {
        font-size: 28px;
        top: 32%;
    }
    .vtqf-surfer-4::after {
        width: 32px;
        height: 5px;
    }
}

/* ========================================
   サーファーアニメーション モード別スタイル
   ======================================== */

/* おすすめ診断モード: 1人・大きめ・優雅な動き */
.vtqf-surfer-transition.mode-quiz .vtqf-surfer-2,
.vtqf-surfer-transition.mode-quiz .vtqf-surfer-3,
.vtqf-surfer-transition.mode-quiz .vtqf-surfer-4 {
    display: none;
}

.vtqf-surfer-transition.mode-quiz .vtqf-surfer-1 {
    font-size: 72px;
    top: 45%;
}

.vtqf-surfer-transition.mode-quiz .vtqf-surfer-1::after {
    width: 100px;
    height: 14px;
    bottom: -8px;
}

.vtqf-surfer-transition.mode-quiz.active .vtqf-surfer-1 {
    animation: vtqf-surfer-ride-elegant 4s ease-in-out forwards;
}

@keyframes vtqf-surfer-ride-elegant {
    0% {
        left: -15%;
        top: 35%;
        opacity: 0;
        transform: scaleX(-1) rotate(-5deg);
    }
    8% {
        opacity: 1;
    }
    /* 優雅に上昇 */
    20% {
        left: 25%;
        top: 25%;
        transform: scaleX(-1) rotate(-15deg);
    }
    /* ゆっくり下降 */
    35% {
        left: 45%;
        top: 55%;
        transform: scaleX(-1) rotate(10deg);
    }
    /* 再び上昇 */
    50% {
        left: 55%;
        top: 30%;
        transform: scaleX(-1) rotate(-12deg);
    }
    /* ターン */
    55% {
        left: 58%;
        top: 35%;
        transform: scaleX(1) rotate(5deg);
    }
    /* 下降しながら戻る */
    70% {
        left: 45%;
        top: 60%;
        transform: scaleX(1) rotate(12deg);
    }
    /* 最後の上昇 */
    85% {
        left: 25%;
        top: 35%;
        transform: scaleX(1) rotate(-8deg);
    }
    92% {
        opacity: 1;
    }
    100% {
        left: -15%;
        top: 50%;
        opacity: 0;
        transform: scaleX(1) rotate(5deg);
    }
}

/* テーマで選ぶモード: 3人・同期・チーム感 */
.vtqf-surfer-transition.mode-theme .vtqf-surfer-4 {
    display: none;
}

.vtqf-surfer-transition.mode-theme .vtqf-surfer-1,
.vtqf-surfer-transition.mode-theme .vtqf-surfer-2,
.vtqf-surfer-transition.mode-theme .vtqf-surfer-3 {
    font-size: 48px;
}

.vtqf-surfer-transition.mode-theme .vtqf-surfer-1 {
    top: 55%;
}

.vtqf-surfer-transition.mode-theme .vtqf-surfer-2 {
    top: 45%;
}

.vtqf-surfer-transition.mode-theme .vtqf-surfer-3 {
    top: 35%;
}

.vtqf-surfer-transition.mode-theme .vtqf-surfer-1::after,
.vtqf-surfer-transition.mode-theme .vtqf-surfer-2::after,
.vtqf-surfer-transition.mode-theme .vtqf-surfer-3::after {
    width: 65px;
    height: 10px;
}

/* 3人同時スタート・同じタイミング */
.vtqf-surfer-transition.mode-theme.active .vtqf-surfer-1 {
    animation: vtqf-surfer-ride-team 3.5s ease-in-out forwards;
}

.vtqf-surfer-transition.mode-theme.active .vtqf-surfer-2 {
    animation: vtqf-surfer-ride-team 3.5s ease-in-out forwards;
}

.vtqf-surfer-transition.mode-theme.active .vtqf-surfer-3 {
    animation: vtqf-surfer-ride-team 3.5s ease-in-out forwards;
}

@keyframes vtqf-surfer-ride-team {
    0% {
        left: -15%;
        opacity: 0;
        transform: scaleX(-1) translateY(0);
    }
    10% {
        opacity: 1;
    }
    /* 一緒に進む */
    30% {
        left: 30%;
        transform: scaleX(-1) translateY(-15px);
    }
    50% {
        left: 55%;
        transform: scaleX(-1) translateY(10px);
    }
    /* 一緒にターン */
    55% {
        left: 58%;
        transform: scaleX(1) translateY(5px);
    }
    75% {
        left: 35%;
        transform: scaleX(1) translateY(-10px);
    }
    90% {
        opacity: 1;
    }
    100% {
        left: -15%;
        opacity: 0;
        transform: scaleX(1) translateY(0);
    }
}

@keyframes vtqf-surfer-ride-free-1 {
    0% {
        left: -15%;
        top: 60%;
        opacity: 0;
        transform: scaleX(-1) rotate(-3deg);
    }
    8% {
        opacity: 1;
    }
    25% {
        left: 25%;
        top: 50%;
        transform: scaleX(-1) rotate(-8deg);
    }
    50% {
        left: 55%;
        top: 65%;
        transform: scaleX(-1) rotate(5deg);
    }
    55% {
        transform: scaleX(1) rotate(-5deg);
    }
    80% {
        left: 25%;
        top: 55%;
        transform: scaleX(1) rotate(8deg);
    }
    92% {
        opacity: 1;
    }
    100% {
        left: -15%;
        top: 60%;
        opacity: 0;
        transform: scaleX(1) rotate(3deg);
    }
}

@keyframes vtqf-surfer-ride-free-2 {
    0% {
        left: -15%;
        top: 35%;
        opacity: 0;
        transform: scaleX(-1) rotate(5deg);
    }
    10% {
        opacity: 1;
    }
    30% {
        left: 35%;
        top: 28%;
        transform: scaleX(-1) rotate(-10deg);
    }
    55% {
        left: 60%;
        top: 40%;
        transform: scaleX(-1) rotate(8deg);
    }
    60% {
        transform: scaleX(1) rotate(-8deg);
    }
    85% {
        left: 20%;
        top: 32%;
        transform: scaleX(1) rotate(5deg);
    }
    92% {
        opacity: 1;
    }
    100% {
        left: -15%;
        top: 35%;
        opacity: 0;
        transform: scaleX(1) rotate(-3deg);
    }
}

@keyframes vtqf-surfer-ride-free-3 {
    0% {
        left: -15%;
        top: 48%;
        opacity: 0;
        transform: scaleX(-1) rotate(-5deg);
    }
    12% {
        opacity: 1;
    }
    35% {
        left: 40%;
        top: 42%;
        transform: scaleX(-1) rotate(10deg);
    }
    60% {
        left: 65%;
        top: 52%;
        transform: scaleX(-1) rotate(-5deg);
    }
    65% {
        transform: scaleX(1) rotate(5deg);
    }
    90% {
        left: 15%;
        top: 45%;
        opacity: 1;
        transform: scaleX(1) rotate(-8deg);
    }
    100% {
        left: -15%;
        top: 48%;
        opacity: 0;
        transform: scaleX(1) rotate(3deg);
    }
}

@keyframes vtqf-surfer-ride-free-4 {
    0% {
        left: -15%;
        top: 28%;
        opacity: 0;
        transform: scaleX(-1) rotate(8deg);
    }
    15% {
        opacity: 1;
    }
    40% {
        left: 45%;
        top: 22%;
        transform: scaleX(-1) rotate(-12deg);
    }
    65% {
        left: 70%;
        top: 30%;
        transform: scaleX(-1) rotate(5deg);
    }
    70% {
        transform: scaleX(1) rotate(-5deg);
    }
    92% {
        left: 10%;
        top: 25%;
        opacity: 1;
        transform: scaleX(1) rotate(10deg);
    }
    100% {
        left: -15%;
        top: 28%;
        opacity: 0;
        transform: scaleX(1) rotate(-5deg);
    }
}

/* モバイル対応 */
@media (max-width: 480px) {
    .vtqf-surfer-transition.mode-quiz .vtqf-surfer-1 {
        font-size: 56px;
    }
    .vtqf-surfer-transition.mode-quiz .vtqf-surfer-1::after {
        width: 75px;
        height: 11px;
    }

    .vtqf-surfer-transition.mode-theme .vtqf-surfer-1,
    .vtqf-surfer-transition.mode-theme .vtqf-surfer-2,
    .vtqf-surfer-transition.mode-theme .vtqf-surfer-3 {
        font-size: 38px;
    }
    .vtqf-surfer-transition.mode-theme .vtqf-surfer-1::after,
    .vtqf-surfer-transition.mode-theme .vtqf-surfer-2::after,
    .vtqf-surfer-transition.mode-theme .vtqf-surfer-3::after {
        width: 50px;
        height: 8px;
    }
}

/* ========================================
   初回訪問者向けUI改善スタイル
   ======================================== */

/* ヒーローヘッダー強化（画面Aリニューアル） */
.vtqf-header-hero {
    position: relative;
    overflow: hidden;
    min-height: auto;
    max-height: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

@media (min-width: 768px) {
    .vtqf-header-hero {
        min-height: auto;
        max-height: none;
        padding: 0;
    }
}

/* アプリアイコン */
.vtqf-hero-app-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 20px rgba(91, 163, 201, 0.3));
}

/* キャッチコピー */
.vtqf-hero-catchcopy {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 0 30px rgba(44, 95, 138, 0.2);
    letter-spacing: 0.08em;
}

/* ヘッダー内 多言語バー */
.vtqf-lang-bar {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 0;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vtqf-lang-bar-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.vtqf-lang-bar-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.vtqf-lang-bar-btn.active {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
}

.vtqf-lang-bar-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    user-select: none;
}

/* 特徴リスト */
.vtqf-hero-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vtqf-hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.vtqf-hero-feature-check {
    color: #4ade80;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   スタートカードホバーアニメーション強化
   ======================================== */
.vtqf-start-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vtqf-start-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(76, 184, 196, 0.25);
}

.vtqf-start-card:hover .vtqf-start-icon {
    animation: vtqf-icon-bounce 0.6s ease;
}

@keyframes vtqf-icon-bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
}

.vtqf-start-card:hover .vtqf-start-card-arrow {
    transform: translateX(8px);
    color: var(--primary);
}

.vtqf-start-card-featured:hover {
    box-shadow: 0 20px 40px rgba(27, 58, 92, 0.3);
}

/* カード内アイコン背景のパルスアニメーション */
.vtqf-start-card:hover .vtqf-start-icon-bg {
    animation: vtqf-pulse-bg 1.5s ease infinite;
}

@keyframes vtqf-pulse-bg {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* アクセシビリティ: 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .vtqf-start-card:hover .vtqf-start-icon,
    .vtqf-start-card:hover .vtqf-start-icon-bg,
    .vtqf-hero-slide {
        animation: none;
    }
    .vtqf-start-card:hover {
        transform: translateY(-4px);
    }
}

/* ========================================
   スポット画像スライドショー
   ======================================== */
.vtqf-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vtqf-slideshow-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.vtqf-slideshow-slide {
    flex: 0 0 100%;
    height: 100%;
}

.vtqf-slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スライドショー内のローカル画像は全体表示 */
.vtqf-slideshow-slide img.vtqf-local-image {
    object-fit: contain;
    background: linear-gradient(135deg, #1a2828 0%, #2d3e3e 100%);
}

.vtqf-slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.vtqf-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-slideshow-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.vtqf-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.vtqf-spot-image-container:hover .vtqf-slideshow-nav {
    opacity: 1;
}

.vtqf-slideshow-nav.prev {
    left: 8px;
}

.vtqf-slideshow-nav.next {
    right: 8px;
}

.vtqf-slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.vtqf-slideshow-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 10;
}

/* ========================================
   スクロールフェードインアニメーション
   ======================================== */
.vtqf-scroll-fade {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.vtqf-scroll-fade.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vtqf-scroll-fade-item {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.vtqf-scroll-fade-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 遅延アニメーション */
.vtqf-scroll-fade-item:nth-child(1) { transition-delay: 0.05s; }
.vtqf-scroll-fade-item:nth-child(2) { transition-delay: 0.15s; }
.vtqf-scroll-fade-item:nth-child(3) { transition-delay: 0.25s; }
.vtqf-scroll-fade-item:nth-child(4) { transition-delay: 0.35s; }

/* ========================================
   選択カード（スタートオプション）強化
   ======================================== */
.vtqf-start-card {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.vtqf-start-card .vtqf-start-icon {
    font-size: 32px;
    transition: transform 0.2s ease;
}

.vtqf-start-card:hover .vtqf-start-icon {
    transform: scale(1.15);
}

.vtqf-start-card:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.12);
}

.vtqf-start-card:hover .vtqf-start-icon-bg {
    transform: scale(1.3);
    opacity: 0.3;
}

.vtqf-start-card:hover .vtqf-start-card-title {
    color: var(--primary);
}

/* アクティブ状態のパルスエフェクト */
.vtqf-start-card:active {
    transform: scale(0.98);
}

/* ========================================
   コースカード強化アニメーション
   ======================================== */
button.vtqf-plan-preview-card {
    position: relative;
    overflow: hidden;
}

button.vtqf-plan-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 5;
}

button.vtqf-plan-preview-card:hover::before {
    left: 100%;
}

/* ========================================
   CTAボタンのアニメーション
   ======================================== */
.vtqf-btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vtqf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.35);
}

.vtqf-btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.vtqf-btn-primary:active::after {
    width: 200px;
    height: 200px;
}

/* ========================================
   ヒーロー背景アニメーション
   ======================================== */

/* モバイルでのreduced-motion対応 */
@media (prefers-reduced-motion: reduce) {
    .vtqf-scroll-fade,
    .vtqf-scroll-fade-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .vtqf-hero-slide-active {
        animation: none;
    }
    
    button.vtqf-plan-preview-card::before {
        display: none;
    }
}

/* ========================================
   おすすめ診断ヘッダー
   ======================================== */
.vtqf-quiz-header {
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfeff 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.vtqf-quiz-header .vtqf-btn-back {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 12px;
}

.vtqf-quiz-header-content {
    flex: 1;
    text-align: center;
}

.vtqf-quiz-header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 4px 0;
}

.vtqf-quiz-header-desc {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
}

@media (max-width: 480px) {
    .vtqf-quiz-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .vtqf-quiz-header-content {
        padding-right: 0;
    }

    .vtqf-quiz-header .vtqf-btn-back {
        align-self: flex-start;
    }
}

/* ヘッダー背景画像：共通 */
.vtqf-quiz-header.vtqf-theme-header {
    position: relative;
    border: none;
    padding: 24px 20px;
    overflow: hidden;
    min-height: 80px;
}

.vtqf-quiz-header.vtqf-theme-header {
    background: url('../images/enoshima/enoshima_iwaya/IMG_5810.jpg') center 30% / cover no-repeat;
}

.vtqf-theme-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.vtqf-theme-header > * {
    position: relative;
    z-index: 1;
}

.vtqf-theme-header .vtqf-quiz-header-title {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.vtqf-theme-header .vtqf-quiz-header-desc {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.vtqf-theme-header .vtqf-btn-back {
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-700);
    border-color: transparent;
}

/* ========================================
   iPhone向けコンパクトレイアウト
   ======================================== */
@media (max-width: 480px) {
    /* ヒーローヘッダー（画面Aリニューアル） */
    .vtqf-header-hero {
        min-height: auto;
        max-height: none;
        padding: 0;
    }

    .vtqf-header {
        margin-bottom: 12px;
        padding: 14px 16px 12px;
        max-height: none;
    }

    .vtqf-hero-app-icon {
        margin-bottom: 4px;
    }

    .vtqf-hero-app-icon svg {
        width: 36px;
        height: 36px;
    }

    .vtqf-hero-catchcopy {
        font-size: 12px;
        margin-top: 4px;
    }

    .vtqf-hero-features {
        margin-top: 12px;
        padding: 10px 14px;
        gap: 5px;
    }

    .vtqf-hero-feature {
        font-size: 12px;
        gap: 6px;
    }

    .vtqf-hero-feature-check {
        font-size: 13px;
    }

    /* スタート画面の余白を縮小 */
    .vtqf-start-screen {
        padding: 12px 12px 20px;
    }

    .vtqf-start-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .vtqf-start-grid-card {
        padding: 16px 10px;
    }

    .vtqf-start-grid-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    /* カード間ギャップを縮小 */
    .vtqf-start-options {
        gap: 8px;
        padding: 0 8px;
    }

    .vtqf-start-or {
        margin: 2px 0 4px;
        font-size: 12px;
    }

    /* タイムライン全体のコンパクト化 */
    .vtqf-timeline-edit-hint {
        font-size: 10px;
        padding: 3px 3px 3px 8px;
        margin: 0 0 8px;
    }

    .vtqf-timeline-day-header {
        font-size: 12px;
        padding: 8px 12px;
        gap: 8px;
        margin: 16px 0 10px 0;
    }

    .vtqf-timeline-day-header:first-child {
        margin-top: 0;
    }

    .vtqf-day-label {
        font-size: 13px;
    }

    .vtqf-day-date {
        font-size: 12px;
    }

    .vtqf-day-weather-compact {
        font-size: 11px;
    }

    .vtqf-day-sunset {
        font-size: 10px;
        padding: 2px 8px;
    }

    /* 駅カードのコンパクト化 */
    .vtqf-timeline-station-item {
        padding-left: 28px;
    }

    .vtqf-timeline-dot-station {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .vtqf-timeline-spot-station {
        padding: 8px 10px;
    }

    .vtqf-timeline-spot-station .vtqf-timeline-spot-name {
        font-size: 12px;
    }

    .vtqf-station-time-value {
        font-size: 12px;
        min-width: 40px;
    }

    .vtqf-day-time-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .vtqf-station-walk-info {
        font-size: 11px;
    }

    .vtqf-timeline-end-time {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* スポットカードのコンパクト化 */
    .vtqf-spot-admission {
        font-size: 10px;
        padding: 1px 6px;
    }
}

/* ========================================
   スポット追加/削除提案ダイアログ
   ======================================== */
.vtqf-suggest-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.vtqf-suggest-overlay.active {
    display: flex;
}

.vtqf-suggest-dialog {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 340px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: vtqf-suggest-appear 0.3s ease;
}

@keyframes vtqf-suggest-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vtqf-suggest-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.vtqf-suggest-icon {
    font-size: 28px;
}

.vtqf-suggest-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-suggest-message {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.vtqf-suggest-spot {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vtqf-suggest-spot-emoji {
    font-size: 32px;
}

.vtqf-suggest-spot-info {
    flex: 1;
}

.vtqf-suggest-spot-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.vtqf-suggest-spot-area {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.vtqf-suggest-buttons {
    display: flex;
    gap: 10px;
}

.vtqf-suggest-btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.vtqf-suggest-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.vtqf-suggest-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 184, 196, 0.3);
}

.vtqf-suggest-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.vtqf-suggest-btn-secondary:hover {
    background: var(--gray-200);
}

/* 削除提案時のスタイル */
.vtqf-suggest-dialog.suggest-remove .vtqf-suggest-btn-primary {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.vtqf-suggest-dialog.suggest-remove .vtqf-suggest-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ========================================
   混雑度表示
   ======================================== */

.crowding-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.crowding-badge.crowding-low {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.crowding-badge.crowding-medium {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.crowding-badge.crowding-high {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.crowding-badge.crowding-very_high {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.crowding-advice {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 4px;
    padding: 6px 10px;
    background: rgba(27, 58, 92, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.crowding-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.crowding-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* スポットカード内の混雑表示 */
.vtqf-spot-card .crowding-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
}

/* タイムライン内の混雑表示 */
.vtqf-timeline-item .crowding-badge {
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 8px;
}

.vtqf-spot-meta .crowding-badge {
    vertical-align: middle;
}

.vtqf-timeline-item .crowding-advice {
    font-size: 10px;
    margin-top: 6px;
}

/* 追加スポットの混雑バッジ */
.vtqf-timeline-additional .crowding-badge {
    margin-left: 6px;
}

/* ========================================
   混雑レポートUI
   ======================================== */

.vtqf-crowding-report {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-50, #f8fafc);
    border-radius: 12px;
    border: 1px solid var(--gray-200, #e2e8f0);
}

.vtqf-crowding-report-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.vtqf-crowding-report-current {
    margin-bottom: 12px;
    min-height: 24px;
}

.vtqf-crowding-report-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vtqf-crowding-btn {
    padding: 10px 8px;
    border: 2px solid var(--gray-200, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.vtqf-crowding-btn:active {
    transform: scale(0.96);
}

.vtqf-crowding-btn[data-level="low"] {
    color: #22c55e;
}
.vtqf-crowding-btn[data-level="low"].selected,
.vtqf-crowding-btn[data-level="low"]:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.vtqf-crowding-btn[data-level="medium"] {
    color: #eab308;
}
.vtqf-crowding-btn[data-level="medium"].selected,
.vtqf-crowding-btn[data-level="medium"]:hover {
    background: rgba(234, 179, 8, 0.1);
    border-color: #eab308;
}

.vtqf-crowding-btn[data-level="high"] {
    color: #f97316;
}
.vtqf-crowding-btn[data-level="high"].selected,
.vtqf-crowding-btn[data-level="high"]:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
}

.vtqf-crowding-btn[data-level="very_high"] {
    color: #ef4444;
}
.vtqf-crowding-btn[data-level="very_high"].selected,
.vtqf-crowding-btn[data-level="very_high"]:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.vtqf-party-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 8px 0 0;
}
.vtqf-party-type-label {
    font-size: 11px;
    color: var(--gray-500, #64748b);
    width: 100%;
    margin-bottom: 2px;
}
.vtqf-party-type-chip {
    padding: 4px 10px;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 16px;
    background: var(--gray-50, #f8fafc);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.vtqf-party-type-chip:hover {
    border-color: var(--primary, #2563eb);
}
.vtqf-party-type-chip.active {
    background: var(--primary, #2563eb);
    color: #fff;
    border-color: var(--primary, #2563eb);
}

.vtqf-crowding-comment-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.vtqf-crowding-comment {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.vtqf-crowding-comment:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(27, 58, 92, 0.15);
}

.vtqf-crowding-submit {
    padding: 8px 16px;
    background: var(--primary, #1B3A5C);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.vtqf-crowding-submit:active {
    opacity: 0.8;
}

.vtqf-crowding-report-status {
    font-size: 12px;
    margin-top: 8px;
    min-height: 18px;
}

.vtqf-crowding-success {
    color: #22c55e;
}

.vtqf-crowding-warning {
    color: #f97316;
}

.vtqf-crowding-error {
    color: #ef4444;
}

/* マップマーカーの混雑ドット */
.vtqf-map-marker-crowd-low::after,
.vtqf-map-marker-crowd-medium::after,
.vtqf-map-marker-crowd-high::after,
.vtqf-map-marker-crowd-very_high::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    z-index: 1;
}

.vtqf-map-marker-crowd-low::after {
    background: #22c55e;
}

.vtqf-map-marker-crowd-medium::after {
    background: #eab308;
}

.vtqf-map-marker-crowd-high::after {
    background: #f97316;
}

.vtqf-map-marker-crowd-very_high::after {
    background: #ef4444;
}

/* マップポップアップ内の混雑表示 */
.vtqf-popup-crowding {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e2e8f0;
}

.vtqf-popup-crowding .crowding-badge {
    font-size: 11px;
}

.vtqf-popup-crowding-count {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 4px;
}

/* スポットカード内の混雑表示 */
.vtqf-spot-crowding .crowding-badge {
    font-size: 11px;
}
.vtqf-spot-crowding-bar {
    padding: 6px 16px;
    background: var(--gray-50, #f8fafc);
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
}
.vtqf-spot-crowding-bar .crowding-badge {
    font-size: 12px;
}

/* マップポップアップ内コメント折りたたみ */
.vtqf-popup-comments-section {
    margin-top: 6px;
    border-top: 1px solid var(--gray-200, #e2e8f0);
    padding-top: 4px;
}
.vtqf-popup-comments-toggle {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--primary, #2563eb);
    cursor: pointer;
    padding: 4px 0;
    width: 100%;
    text-align: left;
    font-weight: 500;
}
.vtqf-popup-comments-toggle:hover {
    text-decoration: underline;
}
.vtqf-popup-comments-body {
    max-height: 150px;
    overflow-y: auto;
}
.vtqf-popup-comment-item {
    font-size: 11px;
    padding: 3px 0;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}
.vtqf-popup-comment-text {
    flex: 1;
    color: var(--gray-700, #334155);
    min-width: 0;
    word-break: break-word;
    font-size: 11px;
}
.vtqf-popup-comment-ago {
    color: var(--gray-400, #94a3b8);
    font-size: 10px;
    white-space: nowrap;
}
.vtqf-popup-comments-empty {
    font-size: 11px;
    color: var(--gray-400, #94a3b8);
    padding: 6px 0;
    text-align: center;
}
.vtqf-popup-comments-loading {
    text-align: center;
    color: var(--gray-400, #94a3b8);
    padding: 4px 0;
}

/* 写真アップロードボタン */
.vtqf-crowding-photo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    background: #fff;
    transition: background 0.15s;
}
.vtqf-crowding-photo-btn:hover {
    background: var(--gray-50, #f8fafc);
}

/* 写真プレビュー */
.vtqf-crowding-photo-preview {
    margin-top: 8px;
    position: relative;
    display: inline-block;
}
.vtqf-crowding-photo-thumb {
    max-width: 120px;
    max-height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
.vtqf-crowding-photo-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
}

/* コメント一覧 */
.vtqf-crowding-comments-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500, #64748b);
    margin-top: 12px;
    margin-bottom: 6px;
}
.vtqf-crowding-comment-item {
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.vtqf-crowding-comment-text {
    flex: 1;
    color: var(--gray-700, #334155);
    min-width: 0;
    word-break: break-word;
}
.vtqf-crowding-comment-ago {
    color: var(--gray-400, #94a3b8);
    font-size: 11px;
    white-space: nowrap;
}
.vtqf-crowding-photo-icon {
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.15s;
}
.vtqf-crowding-photo-icon:hover {
    transform: scale(1.2);
}

/* 写真ライトボックス */
.vtqf-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vtqf-photo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}
.vtqf-photo-modal-img {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    z-index: 1;
    object-fit: contain;
}
.vtqf-photo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

/* CTA（協力呼びかけ） */
.vtqf-crowding-cta {
    font-size: 11.5px;
    color: var(--gray-500, #64748b);
    margin-bottom: 10px;
    line-height: 1.5;
}
.vtqf-tl-crowd-cta {
    font-size: 10.5px;
    color: var(--gray-400, #94a3b8);
    text-align: center;
    margin-bottom: 4px;
}

/* 音声ガイドボタン */
.vtqf-audio-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    margin-top: 8px;
    margin-bottom: 4px;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    color: var(--primary, #2563eb);
    transition: background 0.15s;
}
.vtqf-audio-guide-btn:hover {
    background: var(--gray-100, #f1f5f9);
}

/* 音声ガイド字幕UI */
.vtqf-audio-guide-section {
    margin-top: 8px;
    margin-bottom: 4px;
}
.vtqf-audio-subtitle-container {
    margin-top: 8px;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 10px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    animation: vtqfFadeIn 0.3s ease-out;
}
.vtqf-audio-subtitle-sentences {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vtqf-audio-subtitle-sentence {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-400, #94a3b8);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.vtqf-audio-subtitle-active {
    color: var(--gray-900, #0f172a);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    border-left: 3px solid var(--primary, #2563eb);
    padding-left: 10px;
}
.vtqf-audio-subtitle-done {
    color: var(--gray-400, #94a3b8);
}
.vtqf-audio-subtitle-stop {
    display: block;
    margin: 10px auto 0;
    padding: 6px 20px;
    background: var(--gray-100, #f1f5f9);
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    color: var(--gray-600, #475569);
}
.vtqf-audio-subtitle-stop:hover {
    background: var(--gray-200, #e2e8f0);
}

/* ========================================
   クチコミセクション
   ======================================== */

.vtqf-review-section {
    margin-top: 12px;
    border-top: 1px solid var(--gray-200, #e2e8f0);
    padding-top: 10px;
}
.vtqf-review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.vtqf-review-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700, #334155);
}
.vtqf-review-write-btn {
    padding: 5px 14px;
    background: var(--primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}
.vtqf-review-write-btn:hover {
    opacity: 0.9;
}
.vtqf-review-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}
.vtqf-review-empty {
    font-size: 13px;
    color: var(--gray-400, #94a3b8);
    text-align: center;
    padding: 12px 0;
}
.vtqf-review-card {
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 8px;
    padding: 8px 10px;
}
.vtqf-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.vtqf-review-card-nickname {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600, #475569);
}
.vtqf-review-card-date {
    font-size: 11px;
    color: var(--gray-400, #94a3b8);
}
.vtqf-review-card-body {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-700, #334155);
    word-break: break-word;
}

/* クチコミ投稿モーダル */
.vtqf-review-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 16px;
}
.vtqf-review-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
.vtqf-review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200, #e2e8f0);
}
.vtqf-review-modal-title {
    font-size: 15px;
    font-weight: 600;
}
.vtqf-review-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--gray-400, #94a3b8);
    padding: 0 4px;
}
.vtqf-review-modal-list-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    min-height: 80px;
    max-height: 40vh;
    border-bottom: 1px solid var(--gray-200, #e2e8f0);
}
.vtqf-review-modal-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vtqf-review-loading {
    color: var(--gray-400, #94a3b8);
}
.vtqf-review-modal-form {
    padding: 12px 16px;
    background: var(--gray-50, #f8fafc);
}
.vtqf-review-modal-form-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600, #475569);
    margin-bottom: 8px;
}
.vtqf-review-modal-form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}
.vtqf-review-modal-body {
    padding: 14px 16px;
}
.vtqf-review-modal-nickname {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.vtqf-review-modal-textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.vtqf-review-modal-counter {
    font-size: 11px;
    color: var(--gray-400, #94a3b8);
}
.vtqf-review-modal-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}
.vtqf-review-modal-btn.submit {
    background: var(--primary, #2563eb);
    color: #fff;
}
.vtqf-review-modal-btn.submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.vtqf-review-modal-status {
    padding: 0 16px 10px;
    font-size: 12px;
    min-height: 18px;
}
.vtqf-review-error {
    color: #ef4444;
}

/* ========================================
   オートリルート
   ======================================== */

@keyframes vtqf-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ========================================
   Phase3: 江ノ電歩き提案
   ======================================== */

.vtqf-enoden-walk-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 6px 0;
    animation: vtqf-slideDown 0.3s ease-out;
}

.vtqf-enoden-walk-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.vtqf-enoden-walk-content {
    flex: 1;
    min-width: 0;
}

.vtqf-enoden-walk-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 2px;
}

.vtqf-enoden-walk-desc {
    display: block;
    font-size: 11px;
    color: #15803d;
    line-height: 1.4;
}

.vtqf-enoden-walk-scenic {
    display: block;
    font-size: 11px;
    color: #0369a1;
    font-style: italic;
    margin-top: 2px;
}

.vtqf-enoden-walk-accept {
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 20px;
    border: none;
    background: #22c55e;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.vtqf-enoden-walk-accept:active {
    opacity: 0.7;
}


/* ========================================
   Phase4: AIコンシェルジュ
   ======================================== */

/* AIボタン */
.vtqf-ai-concierge-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.vtqf-ai-concierge-btn:active {
    opacity: 0.7;
}

.vtqf-ai-btn-icon {
    font-size: 14px;
}

.vtqf-ai-credit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
}

.vtqf-ai-credit-badge.vtqf-ai-credit-available {
    background: #fbbf24;
    color: #78350f;
    animation: vtqf-pulse-credit 2s ease-in-out infinite;
}

@keyframes vtqf-pulse-credit {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* AIモーダル */
.vtqf-ai-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vtqf-ai-modal.vtqf-hidden {
    display: none;
}

.vtqf-ai-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.vtqf-ai-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: vtqf-slideDown 0.3s ease-out;
}

.vtqf-ai-modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.vtqf-ai-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e1b4b;
    flex: 1;
}

.vtqf-ai-credit-info {
    font-size: 11px;
    color: #7c3aed;
    font-weight: 500;
    white-space: nowrap;
}

.vtqf-ai-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

/* プリセットボタン */
.vtqf-ai-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.vtqf-ai-preset {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    background: #faf5ff;
    color: #581c87;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.vtqf-ai-preset:active {
    background: #e9d5ff;
    border-color: #a855f7;
}

/* 入力欄 */
.vtqf-ai-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.vtqf-ai-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.vtqf-ai-input:focus {
    border-color: #a855f7;
}

.vtqf-ai-send {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.vtqf-ai-send:active {
    opacity: 0.7;
}

/* レスポンスエリア */
.vtqf-ai-response {
    min-height: 0;
}

.vtqf-ai-answer {
    font-size: 14px;
    line-height: 1.7;
    color: #1f2937;
    padding: 14px;
    background: #f3f0ff;
    border-radius: 12px;
    border: 1px solid #e9d5ff;
}

.vtqf-ai-answer strong {
    color: #581c87;
}

.vtqf-ai-loading {
    text-align: center;
    padding: 20px;
    color: #7c3aed;
    font-size: 14px;
}

.vtqf-ai-error {
    text-align: center;
    padding: 14px;
    color: #dc2626;
    font-size: 13px;
    background: #fef2f2;
    border-radius: 10px;
}

/* クレジット獲得ヒント */
.vtqf-ai-earn-hint {
    font-size: 12px;
    color: #7c3aed;
    text-align: center;
    padding: 8px 0 0;
    min-height: 20px;
}

/* ========================================
   プラン保存機能
   ======================================== */

/* 保存ボタン（タイムラインヘッダー） */
.vtqf-save-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.vtqf-save-route-btn:hover {
    background: rgba(245, 158, 11, 0.2);
}

/* 保存ダイアログ */
.vtqf-save-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.vtqf-save-dialog-overlay.active {
    display: flex;
}

.vtqf-save-dialog {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.vtqf-save-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.vtqf-save-dialog-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.vtqf-save-dialog-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.vtqf-save-dialog-close:hover {
    opacity: 1;
}

.vtqf-save-dialog-body {
    padding: 20px;
}

.vtqf-save-dialog-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.vtqf-save-dialog-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.vtqf-save-dialog-input:focus {
    outline: none;
    border-color: #f59e0b;
}

.vtqf-save-dialog-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
}

.vtqf-save-dialog-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.vtqf-save-dialog-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.vtqf-save-dialog-btn-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
}

.vtqf-save-dialog-btn-cancel:hover {
    background: var(--gray-300);
}

.vtqf-save-dialog-btn-save {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.vtqf-save-dialog-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* プラン作成確認ダイアログ */
.vtqf-confirm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.vtqf-confirm-overlay.active {
    display: flex;
}

.vtqf-confirm-dialog {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: vtqf-confirm-in 0.25s ease-out;
}

@keyframes vtqf-confirm-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.vtqf-confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.vtqf-confirm-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.vtqf-confirm-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.vtqf-confirm-close:hover {
    opacity: 1;
}

.vtqf-confirm-body {
    padding: 20px;
}

.vtqf-confirm-row {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.vtqf-confirm-row:last-child {
    border-bottom: none;
}

.vtqf-confirm-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    min-width: 80px;
    flex-shrink: 0;
}

.vtqf-confirm-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.vtqf-confirm-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.vtqf-confirm-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.vtqf-confirm-btn-back {
    background: var(--gray-200);
    color: var(--gray-700);
}

.vtqf-confirm-btn-back:hover {
    background: var(--gray-300);
}

.vtqf-confirm-btn-create {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.vtqf-confirm-btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ========================================
   今すぐ観光モード
   ======================================== */
.vtqf-now-mode {
    position: relative;
    padding: 0 0 32px;
    background: #f5f7fa;
}

.vtqf-now-mode > .vtqf-now-back-btn {
    position: absolute;
    top: 10px;
    left: 22px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--gray-700);
}

/* ヒーロー（quiz2スタイル） */
.vtqf-now-hero {
    position: relative;
    background-color: #1a1a2e;
    height: 140px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 0 16px 16px;
}

.vtqf-now-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    z-index: 0;
}

.vtqf-now-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 1;
    pointer-events: none;
}

.vtqf-now-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px 16px;
}

.vtqf-now-hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.vtqf-now-time-display {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    margin: 0;
    background: none;
    border: none;
    padding: 0;
}

/* メインコンテンツ */
.vtqf-now-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

/* セクションカード（quiz2スタイル） */
.vtqf-now-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.vtqf-now-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.vtqf-now-section-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 16px 0;
}

.vtqf-now-section-header-sub {
    margin-bottom: 12px;
}

.vtqf-now-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--maps-green, #28a745);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.vtqf-now-section-number.pending {
    opacity: 0;
    transform: scale(0);
}

.vtqf-now-section-number.completed {
    background: #22c55e;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
    opacity: 1;
    transform: scale(1);
    animation: vtqf-now-check-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes vtqf-now-check-appear {
    0%   { opacity: 0; transform: scale(0); }
    60%  { opacity: 1; transform: scale(1.2); }
    80%  { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .vtqf-now-section-number.completed {
        animation: none;
    }
}

.vtqf-now-section-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.vtqf-now-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-now-section-hint {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-400);
}

/* 出発日チップ */
.vtqf-now-date-chips {
    display: flex;
    gap: 8px;
}

.vtqf-now-date-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-now-date-chip:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.04);
}

.vtqf-now-date-chip.selected {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.vtqf-now-date-chip-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.vtqf-now-date-chip.selected .vtqf-now-date-chip-label {
    color: var(--white);
}

.vtqf-now-date-chip-day {
    font-size: 11px;
    color: var(--gray-400);
}

.vtqf-now-date-chip.selected .vtqf-now-date-chip-day {
    color: rgba(255,255,255,0.75);
}

.vtqf-now-date-chip-sunday .vtqf-now-date-chip-day {
    color: #EF4444;
}

.vtqf-now-date-chip-saturday .vtqf-now-date-chip-day {
    color: #3B82F6;
}

.vtqf-now-date-chip.selected.vtqf-now-date-chip-sunday .vtqf-now-date-chip-day,
.vtqf-now-date-chip.selected.vtqf-now-date-chip-saturday .vtqf-now-date-chip-day {
    color: rgba(255,255,255,0.8);
}

.vtqf-now-date-chip-weather {
    font-size: 16px;
    line-height: 1;
}

/* 出発時間プルダウン */
.vtqf-now-starttime-chips {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtqf-now-starttime-select {
    width: 100%;
    max-width: 280px;
    padding: 10px 36px 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700, #334155);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid var(--gray-200, #e2e8f0);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vtqf-now-starttime-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.vtqf-now-starttime-select option:disabled {
    color: var(--gray-300, #cbd5e1);
}

.vtqf-now-line-group {
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--gray-200);
}

.vtqf-now-line-group:last-child {
    margin-bottom: 0;
}

.vtqf-now-line-group[data-line="enoden"] { border-left-color: #18A948; }
.vtqf-now-line-group[data-line="jr"] { border-left-color: #0067C0; }
.vtqf-now-line-group[data-line="odakyu"] { border-left-color: #0078BE; }
.vtqf-now-line-group[data-line="monorail"] { border-left-color: #0DB02B; }
.vtqf-now-line-group[data-line="keikyu"] { border-left-color: #E60012; }

.vtqf-now-line-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
    padding-left: 0;
}

.vtqf-now-line-label .vtqf-now-line-color {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

.vtqf-now-station-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vtqf-now-station-chip {
    padding: 8px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.vtqf-now-station-chip:hover {
    border-color: #FB923C;
    background: rgba(251, 146, 60, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.vtqf-now-station-chip.selected {
    background: linear-gradient(135deg, #FB923C, #F97316);
    color: var(--white);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.vtqf-now-date-chip:disabled,
.vtqf-now-station-chip:disabled,
.vtqf-now-time-chip:disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.vtqf-now-time-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.vtqf-now-time-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    cursor: pointer;
    transition: all 0.25s ease;
}

.vtqf-now-time-chip:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vtqf-now-time-chip.selected {
    background: linear-gradient(135deg, #34d399, #10b981);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.vtqf-now-time-chip-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 2px;
}

.vtqf-now-time-chip-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}

.vtqf-now-time-chip.selected .vtqf-now-time-chip-label {
    color: var(--white);
}

.vtqf-now-time-chip-sub {
    font-size: 10px;
    color: var(--gray-400);
    line-height: 1.3;
    text-align: center;
}
.vtqf-now-time-chip.selected .vtqf-now-time-chip-sub {
    color: rgba(255,255,255,0.85);
}

.vtqf-now-time-chip-end {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    margin-top: 2px;
}

.vtqf-now-time-chip.selected .vtqf-now-time-chip-end {
    color: rgba(255,255,255,0.9);
}

.vtqf-now-time-chip.dimmed {
    opacity: 0.4;
    pointer-events: none;
}

.vtqf-now-area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vtqf-now-area-chip {
    padding: 10px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtqf-now-area-chip:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vtqf-now-area-chip.selected {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary);
    border-color: #3b82f6;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.vtqf-now-weather-banner {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.vtqf-now-generate-btn {
    width: 100%;
    padding: 16px;
    background: #ccc;
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.vtqf-now-generate-btn:not(:disabled) {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.vtqf-now-generate-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.vtqf-now-generate-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* 受付終了メッセージ */
.vtqf-now-time-expired {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5;
    border-radius: var(--radius-lg);
}

.vtqf-now-time-expired-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.vtqf-now-time-expired-text {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    line-height: 1.4;
}

/* 受付終了ボタン */
.vtqf-now-generate-btn.vtqf-now-btn-closed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    cursor: not-allowed;
}

/* セクション番号: 期限切れ ✕ */
.vtqf-now-section-number.expired {
    background: #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    opacity: 1;
    transform: scale(1);
}

/* 明日チップ誘導パルス */
@keyframes vtqf-suggest-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25); }
}

.vtqf-now-date-chip-suggest {
    animation: vtqf-suggest-pulse 1.5s ease-in-out infinite;
    border-color: #3b82f6;
}

.vtqf-now-no-transit {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin: 12px 0;
}
.vtqf-now-no-transit p:first-child { font-size: 1.1em; font-weight: 600; }
.vtqf-now-no-transit-sub { font-size: 0.85em; opacity: 0.8; margin-top: 8px; }

.vtqf-now-last-train-warn {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    text-align: center;
    margin: 8px 0;
    font-size: 0.9em;
}

.vtqf-now-too-late {
    text-align: center;
    padding: 20px;
    background: rgba(251, 146, 60, 0.06);
    border-radius: var(--radius-lg);
}

.vtqf-now-too-late p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 12px;
}

.vtqf-now-too-late-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}


@media (max-width: 380px) {
    .vtqf-now-time-chips {
        grid-template-columns: repeat(2, 1fr);
    }
    .vtqf-now-station-chip {
        padding: 7px 11px;
        font-size: 12px;
    }
}

/* 保存済みプラン一覧 */
.vtqf-saved-routes-section {
    width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
    margin-top: 24px;
}

.vtqf-saved-routes-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    padding: 0 12px;
}

.vtqf-saved-routes-notice {
    font-size: 12px;
    color: var(--gray-500);
    padding: 0 12px 8px;
}

.vtqf-saved-routes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.vtqf-saved-route-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.vtqf-saved-route-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.vtqf-saved-route-icon {
    font-size: 24px;
}

.vtqf-saved-route-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vtqf-saved-route-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtqf-saved-route-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
}

.vtqf-saved-route-meta span {
    white-space: nowrap;
}

.vtqf-saved-route-areas {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtqf-saved-route-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-shrink: 0;
}

.vtqf-saved-route-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vtqf-saved-route-btn svg {
    pointer-events: none;
}

.vtqf-saved-route-btn-load {
    background: var(--primary, #1B3A5C);
    color: #fff;
    border: none;
}

.vtqf-saved-route-btn-load:hover {
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.3);
}

.vtqf-saved-route-btn-delete {
    background: #fff;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.vtqf-saved-route-btn-delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

@media (max-width: 600px) {
    .vtqf-saved-route-card {
        padding: 10px;
        gap: 8px;
    }

    .vtqf-saved-route-name {
        font-size: 0.85rem;
    }

    .vtqf-saved-route-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* ========================================
   言語セレクター（i18n）
   ======================================== */
.vtqf-lang-selector {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
}

.vtqf-lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.vtqf-lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.vtqf-lang-dropdown,
.vtqf-lang-dropdown-shared {
    display: none;
    position: fixed;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
    padding: 4px;
    min-width: 150px;
    animation: vtqf-lang-drop 0.15s ease-out;
    flex-direction: column;
    gap: 2px;
}

.vtqf-lang-dropdown-shared.open {
    display: flex;
}

@keyframes vtqf-lang-drop {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.vtqf-lang-btn {
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.vtqf-lang-btn:hover {
    background: var(--gray-100);
}

.vtqf-lang-btn.active {
    background: var(--primary-pale);
    color: var(--primary);
    font-weight: 700;
}

.vtqf-lang-btn:focus {
    outline: none;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .vtqf-lang-selector {
        top: 8px;
        right: 8px;
    }

    .vtqf-lang-toggle {
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* 非常に小さい画面 */
@media (max-width: 400px) {
    .vtqf-lang-selector {
        top: 6px;
        right: 6px;
    }

    .vtqf-lang-toggle {
        height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* ========================================
   スポット詳細モーダル
   ======================================== */

/* 続きを読むリンク（スポット選択画面） */
.vtqf-spot-read-more {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    margin-top: 2px;
    transition: color 0.2s;
}

.vtqf-spot-read-more:hover {
    color: var(--primary-dark, #132A42);
    text-decoration: underline;
}

/* 続きを読むリンク（結果カード） */
.vtqf-spot-desc-card {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0 0 12px 0;
    padding: 0 20px;
}

.vtqf-spot-read-more-card {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.vtqf-spot-read-more-card:hover {
    color: var(--primary-dark, #132A42);
    text-decoration: underline;
}

/* モーダルオーバーレイ */
.vtqf-spot-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vtqf-spot-detail-overlay.active {
    opacity: 1;
}

/* モーダル本体 */
.vtqf-spot-detail-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.vtqf-spot-detail-overlay.active .vtqf-spot-detail-modal {
    transform: scale(1) translateY(0);
}

/* モーダルヘッダー */
.vtqf-spot-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.vtqf-spot-detail-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.vtqf-spot-detail-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.vtqf-spot-detail-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.vtqf-spot-detail-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* モーダルボディ */
.vtqf-spot-detail-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vtqf-spot-detail-description {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.9;
    margin: 0 0 20px 0;
    white-space: pre-wrap;
}

/* モーダル内の情報セクション */
.vtqf-spot-detail-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vtqf-spot-detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-600);
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.vtqf-spot-detail-info-label {
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.vtqf-spot-detail-site-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* 説明文トグルボタン */
.vtqf-desc-toggle {
    display: block;
    margin-top: 6px;
    background: none;
    border: none;
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
}
.vtqf-desc-toggle:hover {
    text-decoration: underline;
}

/* 外部リンクアイコン */
.vtqf-external-icon {
    font-size: 11px;
    opacity: 0.6;
    margin-left: 2px;
}

/* 音声ガイド強調セクション */
.vtqf-audio-guide-prominent {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
.vtqf-audio-guide-btn-large {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    background: var(--primary-light, #eff6ff);
    border: 1px solid var(--primary, #3b82f6);
    border-radius: 8px;
    color: var(--primary-dark, #1d4ed8);
    cursor: pointer;
    font-weight: 500;
}
.vtqf-audio-guide-btn-large:hover {
    background: var(--primary, #3b82f6);
    color: #fff;
}

/* メモモーダル注意文 */
.vtqf-memo-modal-notice {
    font-size: 11px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* スポット上限トースト（1泊2日誘導） */
.vtqf-spot-limit-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 260px;
    max-width: 320px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.25s ease;
}

.vtqf-spot-limit-msg {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    font-weight: 500;
}

.vtqf-spot-limit-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.vtqf-spot-limit-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.vtqf-spot-limit-btn:hover {
    background: #2563eb;
}

/* 終了時刻超過警告モーダル */
.vtqf-overtime-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.vtqf-overtime-modal-box {
    background: var(--bg-primary, #fff);
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 28px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: slideUp 0.22s ease;
}

.vtqf-overtime-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #111);
}

.vtqf-overtime-modal-body {
    font-size: 13px;
    color: var(--text-secondary, #555);
    line-height: 1.7;
}

.vtqf-overtime-spot-name {
    font-weight: 600;
    color: var(--text-primary, #111);
}

.vtqf-overtime-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vtqf-overtime-extend-btn {
    background: var(--color-primary, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s;
}

.vtqf-overtime-extend-btn:hover {
    filter: brightness(0.92);
}

.vtqf-overtime-add-btn {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-primary, #111);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.vtqf-overtime-cancel-btn {
    background: transparent;
    color: var(--text-secondary, #888);
    border: none;
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

/* 代替スポット提案 */
.vtqf-spot-alternatives {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}
.vtqf-spot-alt-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.vtqf-spot-alt-title::before {
    content: '🔄';
}
.vtqf-spot-alt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: #f0fdf4;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.vtqf-spot-alt-item:active {
    background: #dcfce7;
}
.vtqf-spot-alt-emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.vtqf-spot-alt-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.vtqf-spot-alt-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vtqf-spot-alt-reason {
    font-size: 0.75rem;
    color: #6b7280;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .vtqf-spot-detail-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .vtqf-spot-detail-modal {
        max-height: 90vh;
        border-radius: 20px 20px 12px 12px;
    }

    .vtqf-spot-detail-header {
        padding: 16px;
    }

    .vtqf-spot-detail-body {
        padding: 16px;
    }
}

/* ========================================
   バリュープロポジション
   ======================================== */
.vtqf-value-proposition {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
    margin: 0 auto 16px;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.vtqf-vp-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.vtqf-vp-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.vtqf-vp-separator {
    color: var(--gray-300);
    margin: 0 2px;
}

/* ========================================
   人気のモデルコースプレビュー
   ======================================== */
.vtqf-popular-courses {
    margin-top: var(--section-gap);
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.vtqf-popular-courses-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-700);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-bottom: 8px;
}

.vtqf-popular-courses-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.vtqf-popular-courses-title svg {
    flex-shrink: 0;
}

.vtqf-popular-courses-scroll {
    overflow: hidden;
    margin: 0 -16px;
    padding: 0 16px 4px;
}

.vtqf-popular-courses-scroll::-webkit-scrollbar {
    display: none;
}

/* スライドトラック */
.vtqf-popular-courses-track {
    display: flex;
    gap: 10px;
    animation: vtqf-courses-slide 30s linear infinite;
    width: max-content;
    will-change: transform;
}

.vtqf-popular-courses-track:hover {
    animation-play-state: paused;
}

@keyframes vtqf-courses-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .vtqf-popular-courses-track {
        animation: none;
    }
    .vtqf-popular-courses-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.vtqf-popular-course-card {
    flex: 0 0 130px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.vtqf-popular-course-card:hover {
    border-color: rgba(27, 58, 92, 0.15);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.vtqf-popular-course-thumb {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #DBEAFE 0%, #BAE6FD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vtqf-popular-course-thumb-icon {
    font-size: 1.8rem;
    opacity: 0.7;
}

.vtqf-popular-course-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.vtqf-popular-course-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vtqf-popular-course-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-400);
}

.vtqf-popular-course-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
}

.vtqf-popular-course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 2px;
}

.vtqf-popular-course-tag {
    font-size: 0.65rem;
    padding: 1px 6px;
    background: linear-gradient(135deg, var(--primary-pale), #DBEAFE);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
}

@media (max-width: 600px) {
    .vtqf-popular-course-card {
        flex: 0 0 115px;
    }

    .vtqf-popular-course-thumb {
        height: 40px;
    }

    .vtqf-popular-course-thumb-icon {
        font-size: 1.5rem;
    }

    .vtqf-popular-course-name {
        font-size: 0.7rem;
    }

    .vtqf-popular-course-meta-item {
        font-size: 0.65rem;
    }

    .vtqf-popular-course-tag {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .vtqf-popular-course-body {
        padding: 4px 6px;
    }

    .vtqf-popular-courses-track {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
  .vtqf-wave,
  .vtqf-start-wave,
  .vtqf-surfer-wave,
  .vtqf-wave-dot,
  .vtqf-fade-in,
  .vtqf-scroll-fade-item {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================================
   タイムライン画面 モバイル対応
   ======================================== */
@media (max-width: 600px) {
    /* ナビバー */
    .vtqf-timeline-nav {
        padding: 6px 8px;
        gap: 4px;
    }

    .vtqf-timeline-nav-primary button {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    /* 日帰りヘッダー */
    .vtqf-timeline-day-header {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .vtqf-timeline-day-info {
        flex: 1 1 auto;
        white-space: nowrap;
        font-size: 0.8rem;
    }

    .vtqf-timeline-day-meta {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        font-size: 0.7rem;
    }

    .vtqf-day-end-time,
    .vtqf-day-sunset {
        padding: 1px 6px;
        font-size: 0.7rem;
    }

    /* ========================================
       スポット選択画面 モバイル対応
       ======================================== */

    /* スポットカード2列グリッド */
    .vtqf-options-spots .vtqf-option-emoji {
        font-size: 1.2rem;
        width: auto;
    }

    .vtqf-options-spots .vtqf-option-label {
        font-size: 0.75rem;
    }

    .vtqf-options-spots .vtqf-option-romaji,
    .vtqf-options-spots .vtqf-option-sublabel {
        font-size: 0.6rem;
    }

    .vtqf-options-spots .vtqf-spot-detail-link {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    /* カテゴリフィルター折り返し */
    .vtqf-spot-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .vtqf-spot-filter-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

}

/* ========================================
   欧文言語（en/fr/de/es）向けコンパクト化
   テキストが CJK より30-50%長いため縦方向を圧縮
   ======================================== */
:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-hero-features {
    gap: 4px;
    padding: 10px 16px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-hero-feature {
    font-size: 12px;
    gap: 6px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-start-grid-card {
    padding: 14px 10px;
    gap: 6px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-start-grid-title {
    font-size: 12px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-start-grid-desc {
    font-size: 10px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-option-checkbox label {
    min-height: 80px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-option-label {
    font-size: 12px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-course-option label {
    min-height: 80px;
    padding: 12px 10px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-options-spots .vtqf-option-checkbox label {
    min-height: 70px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-duration-chip {
    padding: 10px 6px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-duration-chip-label {
    font-size: 12px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-duration-chip-desc {
    font-size: 9px;
}

/* --- 横方向のはみ出し防止 --- */
:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-timeline-nav {
    flex-wrap: wrap;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-timeline-nav-btn {
    padding: 6px 10px;
    font-size: 11px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-timeline-nav-action {
    padding: 5px 8px;
    font-size: 10px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-timeline-footer {
    gap: 4px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-footer-pill {
    padding: 7px 4px;
    font-size: 0.62rem;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-top-nav-btn {
    padding: 8px 14px;
    font-size: 12px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-bento-card {
    padding: 14px 8px;
    gap: 6px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-spot-view-toggle,
:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-spot-filter-btn {
    padding: 4px 10px;
    font-size: 11px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-create-plan-btn {
    font-size: 14px;
    padding: 14px;
}

:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"]) .vtqf-lang-bar-btn {
    padding: 2px 5px;
    font-size: 10px;
}

/* ========================================
   欧文言語: 長い単語の折り返し・ハイフネーション
   ======================================== */
:is([lang="fr"], [lang="de"], [lang="es"]) .vtqf-wrapper {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ========================================
   RTL (Arabic) - 最小限オーバーライド
   dir="rtl" で flex/grid は自動反転
   ======================================== */

/* --- 言語セレクタ: 位置反転 --- */
[dir="rtl"] .vtqf-lang-selector {
    right: auto;
    left: 12px;
}
[dir="rtl"] .vtqf-lang-dropdown {
    right: auto;
    left: 0;
}
@media (max-width: 600px) {
    [dir="rtl"] .vtqf-lang-selector {
        right: auto;
        left: 8px;
    }
}
@media (max-width: 400px) {
    [dir="rtl"] .vtqf-lang-selector {
        right: auto;
        left: 6px;
    }
}

/* --- タイムライン: 縦線・ドットを右側に --- */
[dir="rtl"] .vtqf-timeline-item {
    padding-left: 0;
    padding-right: 32px;
}
[dir="rtl"] .vtqf-timeline-item::before {
    left: auto;
    right: 8px;
}
[dir="rtl"] .vtqf-timeline-dot {
    left: auto;
    right: 2px;
}

/* --- タイムライン移動セクション --- */
[dir="rtl"] .vtqf-timeline-travel {
    margin-left: 0;
    margin-right: 18px;
    border-left: none;
    border-right: 2px dashed #94a3b8;
}

/* --- ボーダーアクセント: 左→右 --- */
[dir="rtl"] .vtqf-timeline-additional .vtqf-timeline-spot {
    border-left: none;
    border-right: 3px solid #d1d5db;
}

/* --- text-align: left → right --- */
[dir="rtl"] .vtqf-lang-btn {
    text-align: right;
}

/* --- padding-left インデント → padding-right --- */
[dir="rtl"] .vtqf-spot-tips ul {
    padding-left: 0;
    padding-right: 20px;
}

/* --- アラビア語テキスト圧縮（欧文と同様） --- */
:is([lang="ar"]) .vtqf-hero-features {
    gap: 4px;
    padding: 10px 16px;
}
:is([lang="ar"]) .vtqf-hero-feature {
    font-size: 12px;
    gap: 6px;
}
:is([lang="ar"]) .vtqf-start-grid-card {
    padding: 14px 10px;
    gap: 6px;
}
:is([lang="ar"]) .vtqf-start-grid-title {
    font-size: 12px;
}
:is([lang="ar"]) .vtqf-start-grid-desc {
    font-size: 10px;
}
:is([lang="ar"]) .vtqf-option-checkbox label {
    min-height: 80px;
}
:is([lang="ar"]) .vtqf-option-label {
    font-size: 12px;
}
:is([lang="ar"]) .vtqf-course-option label {
    min-height: 80px;
    padding: 12px 10px;
}
:is([lang="ar"]) .vtqf-duration-chip {
    padding: 10px 6px;
}
:is([lang="ar"]) .vtqf-duration-chip-label {
    font-size: 12px;
}
:is([lang="ar"]) .vtqf-duration-chip-desc {
    font-size: 9px;
}
:is([lang="ar"]) .vtqf-timeline-nav {
    flex-wrap: wrap;
}
:is([lang="ar"]) .vtqf-timeline-nav-btn {
    padding: 6px 10px;
    font-size: 11px;
}
:is([lang="ar"]) .vtqf-timeline-nav-action {
    padding: 5px 8px;
    font-size: 10px;
}
:is([lang="ar"]) .vtqf-timeline-footer {
    gap: 4px;
}
:is([lang="ar"]) .vtqf-footer-pill {
    padding: 7px 4px;
    font-size: 0.62rem;
}
:is([lang="ar"]) .vtqf-top-nav-btn {
    padding: 8px 14px;
    font-size: 12px;
}
:is([lang="ar"]) .vtqf-bento-card {
    padding: 14px 8px;
    gap: 6px;
}
:is([lang="ar"]) .vtqf-spot-view-toggle,
:is([lang="ar"]) .vtqf-spot-filter-btn {
    padding: 4px 10px;
    font-size: 11px;
}
:is([lang="ar"]) .vtqf-create-plan-btn {
    font-size: 14px;
    padding: 14px;
}
:is([lang="ar"]) .vtqf-lang-bar-btn {
    padding: 2px 5px;
    font-size: 10px;
}
:is([lang="ar"]) .vtqf-wrapper {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* --- RTL: margin-left: auto → margin-right: auto --- */
[dir="rtl"] .vtqf-spot-actions {
    margin-left: 0;
    margin-right: auto;
}

/* --- RTL: ボタン・チップ配置 --- */
[dir="rtl"] .vtqf-spot-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .vtqf-transit-link-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .vtqf-station-time-control {
    flex-direction: row-reverse;
}

/* --- RTL: テキスト方向 --- */
[dir="rtl"] .vtqf-spot-meta {
    text-align: right;
}

[dir="rtl"] .vtqf-timeline-edit-hint-text {
    text-align: right;
}

/* --- RTL: border-left アクセント --- */
[dir="rtl"] .vtqf-timeline-spot {
    border-left: none;
    border-right: 3px solid #10b981;
}

[dir="rtl"] .vtqf-timeline-spot-station {
    border-left: none;
    border-right: 3px solid #3b82f6;
}

[dir="rtl"] .vtqf-timeline-spot-lunch {
    border-left: none;
    border-right: 3px solid #f59e0b;
}

[dir="rtl"] .vtqf-timeline-spot-hotel {
    border-left: none;
    border-right: 3px solid #8b5cf6;
}

/* --- RTL: ハンバーガーメニュー位置 --- */
[dir="rtl"] .vtqf-hamburger {
    right: auto;
    left: 12px;
}

/* --- RTL: 閉じるボタン位置 --- */
[dir="rtl"] .vtqf-timeline-close-btn {
    right: auto;
    left: 8px;
}

/* --- RTL: スクロールトップボタン --- */
[dir="rtl"] .vtqf-scroll-top {
    right: auto;
    left: 16px;
}

/* --- RTL: padding-left → padding-right --- */
[dir="rtl"] .vtqf-timeline-edit-hint {
    padding: 4px 12px 4px 4px;
}

[dir="rtl"] .vtqf-spot-description {
    text-align: right;
}

/* --- RTL: transform translateX 反転 --- */

/* --- レスポンシブ RTL タイムライン --- */
@media (max-width: 480px) {
    [dir="rtl"] .vtqf-timeline-item {
        padding-right: 22px;
    }

    [dir="rtl"] .vtqf-timeline-edit-hint {
        padding: 3px 8px 3px 3px;
    }
}

/* ========================================
   タイムライン混雑レポートカード
   ======================================== */
.vtqf-tl-report-card {
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%);
    border-radius: 10px;
    border: 1px solid var(--gray-200, #e2e8f0);
}

.vtqf-tl-report-ask {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700, #334155);
    margin-bottom: 6px;
}

.vtqf-tl-report-benefits {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.vtqf-tl-report-benefit {
    font-size: 10.5px;
    color: var(--gray-500, #64748b);
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--gray-200, #e2e8f0);
    white-space: nowrap;
}

/* 投稿するボタン */
.vtqf-tl-report-open-btn {
    width: 100%;
    padding: 8px;
    border: 1.5px solid var(--primary, #1b3a5c);
    border-radius: 8px;
    background: #fff;
    color: var(--primary, #1b3a5c);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.vtqf-tl-report-open-btn:hover {
    background: rgba(27, 58, 92, 0.05);
}
.vtqf-tl-report-open-btn:active {
    transform: scale(0.97);
}

/* 投稿フォーム */
.vtqf-tl-report-form {
    margin-top: 8px;
    animation: vtqfSlideDown 0.2s ease;
}
@keyframes vtqfSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.vtqf-tl-report-form-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.vtqf-tl-report-comment {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 8px;
    font-size: 12px;
    outline: none;
    background: #fff;
}
.vtqf-tl-report-comment:focus {
    border-color: var(--primary, #1b3a5c);
}
.vtqf-tl-report-photo-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    background: #fff;
    flex-shrink: 0;
    transition: background 0.15s;
}
.vtqf-tl-report-photo-label:hover {
    background: var(--gray-50, #f8fafc);
}

.vtqf-tl-report-photo-preview {
    display: none;
    margin-bottom: 8px;
}
.vtqf-tl-report-photo-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--gray-200, #e2e8f0);
}

/* 混雑度4段階ボタン */
.vtqf-tl-report-levels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
    margin-bottom: 8px;
}
.vtqf-tl-level-btn {
    padding: 6px 2px;
    border: 1.5px solid var(--gray-200, #e2e8f0);
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    line-height: 1.3;
    color: var(--gray-600, #475569);
}
.vtqf-tl-level-btn:active {
    transform: scale(0.95);
}
.vtqf-tl-level-btn.selected {
    border-color: var(--primary, #1b3a5c);
    background: rgba(27, 58, 92, 0.08);
    color: var(--primary, #1b3a5c);
    font-weight: 600;
}

/* 送信ボタン */
.vtqf-tl-report-submit {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: var(--primary, #1b3a5c);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.vtqf-tl-report-submit:disabled {
    background: var(--gray-300, #cbd5e1);
    cursor: default;
}
.vtqf-tl-report-submit:not(:disabled):hover {
    opacity: 0.9;
}
.vtqf-tl-report-submit:not(:disabled):active {
    transform: scale(0.97);
}

/* お礼メッセージ */
.vtqf-tl-report-thanks {
    text-align: center;
    padding: 12px 8px;
    animation: vtqfFadeIn 0.4s ease;
}
@keyframes vtqfFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.vtqf-tl-report-thanks-icon {
    font-size: 28px;
    margin-bottom: 4px;
}
.vtqf-tl-report-thanks-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700, #334155);
}

/* タイムライン混雑レポートボタン（報告済み用） */
.vtqf-tl-crowd-report {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-200, #e2e8f0);
}

.vtqf-tl-crowd-btn {
    flex: 1;
    padding: 7px 10px;
    border: 1.5px solid var(--gray-300, #cbd5e1);
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    line-height: 1.3;
}

.vtqf-tl-crowd-reported {
    flex: 1;
    color: var(--gray-500, #64748b);
    border-color: var(--gray-300, #cbd5e1);
    background: var(--gray-50, #f8fafc);
    cursor: default;
    font-size: 12px;
}

/* ========================================
   昼食カード AIレコメンドセクション
   ======================================== */
.vtqf-lunch-ai-section {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--gray-200, #e2e8f0);
    background: var(--gray-50, #f8fafc);
}

.vtqf-lunch-ai-locked {
    text-align: center;
    opacity: 0.7;
}

.vtqf-lunch-ai-lock-label {
    font-size: 12px;
    color: var(--gray-500, #64748b);
}

.vtqf-lunch-ai-unlocked {
    animation: vtqf-pulse-glow 2s ease-in-out 1;
}

@keyframes vtqf-pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(184, 134, 11, 0.25); }
    100% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0); }
}

.vtqf-lunch-ai-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent, #B8860B), #d4a017);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.vtqf-lunch-ai-btn:hover {
    opacity: 0.9;
}

.vtqf-lunch-ai-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.vtqf-lunch-ai-loading {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.vtqf-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300, #cbd5e1);
    border-top-color: var(--accent, #B8860B);
    border-radius: 50%;
    animation: vtqf-spin 0.6s linear infinite;
}

@keyframes vtqf-spin {
    to { transform: rotate(360deg); }
}

.vtqf-lunch-ai-response {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-700, #334155);
    border: 1px solid var(--gray-200, #e2e8f0);
}

.vtqf-lunch-ai-error {
    margin-top: 8px;
    padding: 8px;
    font-size: 12px;
    color: var(--crowding-orange, #f97316);
    text-align: center;
}

/* タイムライン簡素化：MVP不要要素を非表示 */
.vtqf-audio-guide-section,
.vtqf-lunch-ai-section,
.vtqf-crowding-report,
.vtqf-tl-report-card,
.vtqf-tl-crowd-report,
.vtqf-spot-thumb {
    display: none !important;
}

/* タイムライン濃紺統一 */

/* 1. 最適化ポイントバナー */
.vtqf-ai-reasoning {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.85) !important;
}
.vtqf-ai-reasoning-header,
.vtqf-ai-reasoning-toggle {
    color: rgba(255,255,255,0.85) !important;
}
.vtqf-ai-reasoning-list li {
    color: rgba(255,255,255,0.75) !important;
}

/* 2. 日付バー */
.vtqf-timeline-day-header {
    background: rgba(255,255,255,0.08) !important;
    border: none !important;
}
.vtqf-day-label,
.vtqf-day-date,
.vtqf-day-weather-compact,
.vtqf-timeline-day-meta {
    color: rgba(255,255,255,0.9) !important;
}

/* 3. 出発駅カード */
.vtqf-timeline-station-item,
.vtqf-timeline-spot-station {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
}
.vtqf-timeline-transit-link {
    color: rgba(255,255,255,0.85) !important;
}

/* 4. 戻るボタン行 */
.vtqf-timeline-header {
    background: #0b1f35 !important;
}
#vtqf-result-back {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

/* 最適化ポイントバナー：水色を上書き */
.vtqf-ai-reasoning,
[class*="reasoning"],
[class*="optimization"] {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
}

/* 日付バーのテキストを白に */
.vtqf-timeline-day-header * {
    color: rgba(255,255,255,0.9) !important;
}

/* スポットカードを純白に */
.vtqf-timeline-spot {
    background: #ffffff !important;
    border-color: rgba(255,255,255,0.15) !important;
}

/* 概要ボタンを濃紺統一 */
.vtqf-timeline-overview-btn,
[class*="overview-btn"] {
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
}

/* 最適化ポイントバナー：linear-gradientを完全上書き */
.vtqf-ai-reasoning,
.vtqf-tl-ai-reasoning {
    background: rgba(255,255,255,0.08) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.vtqf-ai-reasoning-title {
    color: rgba(255,255,255,0.9) !important;
}
.vtqf-ai-reasoning-arrow {
    color: rgba(255,255,255,0.7) !important;
}
.vtqf-ai-reasoning-list li {
    color: rgba(255,255,255,0.75) !important;
}

/* 日付バー：グレーを濃紺に */
.vtqf-timeline-day-header {
    background: rgba(255,255,255,0.08) !important;
    background-image: none !important;
}
.vtqf-timeline-day-header:nth-child(odd) {
    background: rgba(255,255,255,0.08) !important;
}

/* ルート概要モーダル内のバナーは元の色に戻す */
.vtqf-overview-modal .vtqf-ai-reasoning,
.vtqf-route-summary .vtqf-ai-reasoning {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    background-image: unset !important;
    border: 1px solid #93c5fd !important;
    color: #1e3a5f !important;
}
.vtqf-overview-modal .vtqf-ai-reasoning-title,
.vtqf-route-summary .vtqf-ai-reasoning-title {
    color: #1e40af !important;
}
.vtqf-overview-modal .vtqf-ai-reasoning-list li,
.vtqf-route-summary .vtqf-ai-reasoning-list li {
    color: #1e3a5f !important;
}
.vtqf-overview-modal .vtqf-ai-reasoning-arrow,
.vtqf-route-summary .vtqf-ai-reasoning-arrow {
    color: #3b82f6 !important;
}

/* 最適化ポイントバナーを見えるように */
.vtqf-ai-reasoning.vtqf-tl-ai-reasoning {
    background: rgba(255,255,255,0.15) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
}
.vtqf-ai-reasoning.vtqf-tl-ai-reasoning .vtqf-ai-reasoning-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}
.vtqf-ai-reasoning.vtqf-tl-ai-reasoning .vtqf-ai-reasoning-arrow {
    color: rgba(255,255,255,0.8) !important;
}

/* 最適化ポイントバナーを非表示 */
.vtqf-ai-reasoning,
.vtqf-tl-ai-reasoning {
    display: none !important;
}

/* ヒントバナーを濃紺に統一 */
.vtqf-timeline-edit-hint {
    background: rgba(255,255,255,0.08) !important;
    border: 1px dashed rgba(255,255,255,0.2) !important;
}
.vtqf-timeline-edit-hint-text {
    color: rgba(255,255,255,0.5) !important;
}

/* 日付バーのバッジを濃紺に統一 */
.vtqf-day-sunset {
    background: rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.9) !important;
}
.vtqf-day-end-time {
    background: rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.9) !important;
}

/* 日付バー背景を濃くして文字を見えやすく */
.vtqf-timeline-day-header {
    background: rgba(255,255,255,0.18) !important;
    background-image: none !important;
}

/* 混雑予測テキストを白に */
.vtqf-crowding-basis-note {
    color: rgba(255,255,255,0.45) !important;
}

/* 日付バー：不透明な色で強制上書き */
.vtqf-timeline-day-header,
.vtqf-timeline-day-header.vtqf-day-header-with-time {
    background: #1a3a5c !important;
    background-image: none !important;
    background-color: #1a3a5c !important;
}

/* ============================================================
   混雑フィードバック UI — 改善版
   ============================================================ */

/* 既存の複雑な投稿フォームを非表示 */
.vtqf-tl-report-card {
    display: none !important;
}

/* ── インラインFBブロック全体 ── */
.vtqf-crowd-simple {
    border-top: 1px solid #f0ece7 !important;
    padding: 10px 14px 12px !important;
    background: #fafaf9 !important;
}

/* ライブドット付きラベル */
.vtqf-crowd-simple-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: #aaa !important;
    margin-bottom: 9px !important;
    line-height: 1.4 !important;
}
.vtqf-crowd-live-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #5de8a0 !important;
    box-shadow: 0 0 5px #5de8a0 !important;
    flex-shrink: 0 !important;
    animation: vtqfLivePulse 2s infinite !important;
}
@keyframes vtqfLivePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* ── ボタン行 ── */
.vtqf-crowd-btn-row {
    display: flex !important;
    gap: 8px !important;
}
.vtqf-crowd-btn {
    flex: 1 !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transition: all 0.18s cubic-bezier(0.4,0,0.2,1) !important;
    line-height: 1 !important;
}
/* 空いてる */
.vtqf-crowd-btn-ok {
    background: #edf7f2 !important;
    border-color: rgba(45,138,94,0.22) !important;
    color: #2d8a5e !important;
}
.vtqf-crowd-btn-ok:hover {
    background: #d6f0e3 !important;
    border-color: rgba(45,138,94,0.4) !important;
    transform: translateY(-1px) !important;
}
.vtqf-crowd-btn-ok.vtqf-crowd-selected {
    background: #2d8a5e !important;
    border-color: #2d8a5e !important;
    color: #fff !important;
    transform: scale(1.03) !important;
    box-shadow: 0 4px 14px rgba(45,138,94,0.32) !important;
}
/* 混んでる */
.vtqf-crowd-btn-ng {
    background: #fdf0ee !important;
    border-color: rgba(201,71,43,0.22) !important;
    color: #c9472b !important;
}
.vtqf-crowd-btn-ng:hover {
    background: #faddd8 !important;
    border-color: rgba(201,71,43,0.4) !important;
    transform: translateY(-1px) !important;
}
.vtqf-crowd-btn-ng.vtqf-crowd-selected {
    background: #c9472b !important;
    border-color: #c9472b !important;
    color: #fff !important;
    transform: scale(1.03) !important;
    box-shadow: 0 4px 14px rgba(201,71,43,0.32) !important;
}
/* 投票済み（disabled） */
.vtqf-crowd-btn.voted {
    opacity: 0.45 !important;
    cursor: default !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ── サンクス表示 ── */
.vtqf-crowd-thanks {
    display: none !important;
    align-items: center !important;
    gap: 10px !important;
    animation: vtqfThanksIn 0.35s cubic-bezier(0.34,1.56,0.64,1) !important;
    padding: 4px 0 !important;
}
.vtqf-crowd-thanks.vtqf-crowd-thanks-show {
    display: flex !important;
}
@keyframes vtqfThanksIn {
    from { opacity: 0; transform: scale(0.9) translateY(4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.vtqf-crowd-thanks-icon {
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
}
.vtqf-crowd-thanks-body {
    flex: 1 !important;
}
.vtqf-crowd-thanks-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1a1410 !important;
    margin-bottom: 1px !important;
}
.vtqf-crowd-thanks-sub {
    font-size: 11px !important;
    color: #999 !important;
    line-height: 1.4 !important;
}
/* カウンターバッジ */
.vtqf-crowd-counter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: rgba(93,232,160,0.12) !important;
    border: 1px solid rgba(93,232,160,0.3) !important;
    border-radius: 99px !important;
    padding: 3px 9px !important;
    font-size: 11px !important;
    color: #2d8a5e !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    animation: vtqfCounterIn 0.4s cubic-bezier(0.34,1.56,0.64,1) !important;
}
@keyframes vtqfCounterIn {
    from { transform: translateY(6px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ── エラー表示 ── */
.vtqf-crowd-error {
    font-size: 11px !important;
    color: #c9472b !important;
    margin-top: 6px !important;
    text-align: center !important;
    display: none !important;
}
.vtqf-crowd-error.show { display: block !important; }

/* AI理由エリアの余白も完全除去 */
.vtqf-ai-reasoning,
.vtqf-tl-ai-reasoning {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* タイムライン上部余白を完全除去 */
.vtqf-timeline-summary:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.vtqf-timeline-summary {
    padding: 0 !important;
    margin: 0 !important;
}
.vtqf-crowding-basis-note {
    padding: 0 8px 4px !important;
}

/* タイムライン上部余白を完全除去 */
#vtqf-timeline-content {
    padding-top: 0 !important;
    background: transparent !important;
    background-image: none !important;
}

.vtqf-timeline-edit-hint {
    display: none !important;
}

.vtqf-crowding-basis-note {
    display: none !important;
}

.vtqf-timeline-day-header {
    margin-top: 0 !important;
}

/* timeline-nav の下余白を除去 */
.vtqf-timeline-nav {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* timeline-summary を完全に潰す */
#vtqf-timeline-summary {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* プランを作るボタンを鳥居レッドに */
.vtqf-hero-cta-primary,
#vtqf-hero-cta-btn {
    background: #c9472b !important;
    box-shadow: 0 8px 30px rgba(201,71,43,0.45) !important;
    border: none !important;
}
.vtqf-hero-cta-primary:hover,
#vtqf-hero-cta-btn:hover {
    background: #a83322 !important;
    box-shadow: 0 12px 40px rgba(201,71,43,0.55) !important;
    transform: translateY(-2px) !important;
}
/* 今すぐボタン */
.vtqf-hero-cta-now {
    background: #c9472b !important;
    box-shadow: 0 8px 30px rgba(201,71,43,0.45) !important;
    border: none !important;
}
.vtqf-hero-cta-now:hover {
    background: #a83322 !important;
    box-shadow: 0 12px 40px rgba(201,71,43,0.55) !important;
    transform: translateY(-2px) !important;
}
/* 事前計画ボタン */
.vtqf-hero-cta-plan {
    background: rgba(255,255,255,0.15) !important;
    border: 1.5px solid rgba(255,255,255,0.5) !important;
    box-shadow: none !important;
    backdrop-filter: blur(4px);
}
.vtqf-hero-cta-plan:hover {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.7) !important;
    transform: translateY(-2px) !important;
}

/* エリア混雑度カード */
.vtqf-hero-area-crowd {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 460px;
    margin: 0 0 1rem 0;
    animation: vtqfHeroFadeUp 0.9s 0.4s ease both;
}
.vtqf-area-crowd-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}
.vtqf-area-crowd-item.recommended {
    border-color: rgba(93,232,160,0.5);
    background: rgba(93,232,160,0.1);
}
.vtqf-area-crowd-name {
    font-size: 0.75em;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    white-space: nowrap;
}
.vtqf-area-crowd-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.vtqf-area-crowd-dot.crowd-low { background: #4caf50; }
.vtqf-area-crowd-dot.crowd-medium { background: #ff9800; }
.vtqf-area-crowd-dot.crowd-high { background: #f44336; }
.vtqf-area-crowd-dot.crowd-very_high { background: #b71c1c; }
.vtqf-area-crowd-level {
    font-size: 0.65em;
    color: rgba(255,255,255,0.7);
}
.vtqf-area-crowd-item.recommended .vtqf-area-crowd-level {
    color: #5de8a0;
}

/* 3プラン選択画面 */
#vtqf-plan-selector-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f5f5f5;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.vtqf-plan-selector {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}
.vtqf-plan-selector-title {
    text-align: center;
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 20px;
    color: #333;
}
.vtqf-plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.vtqf-plan-card:hover {
    border-color: #2d7aad;
}
.vtqf-plan-card-hero {
    position: relative;
    height: 120px;
    margin: -18px -18px 12px;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}
.vtqf-plan-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vtqf-plan-card-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    gap: 8px;
}
.vtqf-plan-card-hero-overlay .vtqf-plan-card-icon {
    font-size: 1.5em;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.vtqf-plan-card-hero-overlay .vtqf-plan-card-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.vtqf-plan-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.vtqf-plan-card-icon {
    font-size: 1.5em;
}
.vtqf-plan-card-name {
    font-size: 1.05em;
    font-weight: 700;
    color: #333;
}
.vtqf-plan-card-area {
    font-size: 0.82em;
    color: #2d7aad;
    font-weight: 600;
    margin-bottom: 6px;
}
.vtqf-plan-card-spots {
    font-size: 0.82em;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}
.vtqf-plan-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8em;
    color: #999;
    margin-bottom: 10px;
}
.vtqf-plan-card-pro {
    font-size: 0.85em;
    color: #2e7d32;
    margin-bottom: 4px;
}
.vtqf-plan-card-con {
    font-size: 0.85em;
    color: #e65100;
    margin-bottom: 14px;
}
.vtqf-plan-card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2d7aad;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.vtqf-plan-card-btn:hover {
    background: #1e5f8a;
}

/* 混雑予測（プランカード＋タイムライン共通） */
.vtqf-plan-card-crowd {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f8f8f8;
    border-radius: 8px;
}
.vtqf-plan-crowd-reason {
    color: #888;
    font-size: 0.9em;
    margin-left: 4px;
}
.vtqf-timeline-crowd {
    font-size: 0.8em;
    color: #555;
    margin-top: 4px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
}
.vtqf-tl-crowd-reason {
    color: #888;
    font-size: 0.9em;
}

/* 別の日程リンク */
.vtqf-hero-gps-hint {
    margin-top: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.7em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.vtqf-hero-plan-link {
    display: inline-block;
    margin-top: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85em;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.vtqf-hero-plan-link:hover {
    color: rgba(255,255,255,1);
}

/* ウィザード内 日付選択セクション */
.vtqf-wiz-date-section {
    margin-bottom: 12px;
}
.vtqf-wiz-date-label,
.vtqf-wiz-station-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vtqf-wiz-station-label {
    margin-top: 4px;
    margin-bottom: 8px;
}
.vtqf-wiz-date-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.vtqf-wiz-date-chip {
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.vtqf-wiz-date-chip:hover {
    border-color: #2d7aad;
    background: #f0f7ff;
}
.vtqf-wiz-date-chip.selected {
    background: #2d7aad;
    color: #fff;
    border-color: #2d7aad;
    font-weight: 600;
}

/* 日付選択チップ（CTAボタン上部） */
.vtqf-hero-date-chips {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.vtqf-hero-date-chip {
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 0.82em;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.vtqf-hero-date-chip:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
}
.vtqf-hero-date-chip.selected {
    background: rgba(255,255,255,0.9);
    color: #1a4a6e;
    border-color: #fff;
    font-weight: 600;
}

/* Kamakura Today タイポグラフィ */
.vtqf-hero-title-new {
    font-family: 'DM Serif Display', serif !important;
    font-size: clamp(3rem, 12vw, 5.5rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.vtqf-hero-title-main {
    color: #ffffff !important;
    font-style: normal !important;
}
.vtqf-hero-title-italic {
    color: #a8d4ee !important;
    font-style: italic !important;
}

/* サブタイトル調整 */
.vtqf-hero-sub {
    font-size: 0.95rem !important;
    color: rgba(255,255,255,0.6) !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 2rem !important;
}

/* CTAサブテキスト */
.vtqf-hero-cta-sub {
    font-size: 0.72rem !important;
    color: rgba(255,255,255,0.5) !important;
    margin-top: 8px !important;
}

/* ── 移動カード（モックアップ版：インライン1行） ── */
.vtqf-transport-row {
    padding: 4px 0;
}
.vtqf-transport-line {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(45,122,173,0.07);
    border: 1px solid rgba(45,122,173,0.13);
    border-radius: 10px;
    padding: 8px 12px;
}
.vtqf-transport-text {
    flex: 1;
    font-size: 0.76rem;
    color: #1a4a6e;
    font-weight: 500;
}
.vtqf-transport-sub {
    font-size: 0.65rem;
    color: #aaa;
    margin-top: 1px;
}
.vtqf-transport-duration {
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── いまここバッジ ── */
.vtqf-now-here-badge {
    margin-left: auto;
    background: rgba(201,71,43,0.1);
    border: 1px solid rgba(201,71,43,0.25);
    border-radius: 99px;
    padding: 3px 9px;
    font-size: 0.65rem;
    color: #c9472b;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
/* いまここ中のスポットカードはトーリレッドアクセント */
.vtqf-timeline-spot.vtqf-now-here {
    border-color: rgba(201,71,43,0.2) !important;
    box-shadow: 0 2px 16px rgba(201,71,43,0.1) !important;
}
.vtqf-timeline-item.vtqf-now-here .vtqf-timeline-dot {
    background: #c9472b !important;
}
.vtqf-now-here .vtqf-spot-time {
    background: #c9472b !important;
}

/* ══════════════════════════════════════════════
   新ヒーローデザイン対応（index.html v2026 override）
   インラインCSSと協調するための上書き解除
══════════════════════════════════════════════ */

/* 旧min-heightを新しいsvhベースに変更 */
.vtqf-header-hero {
    min-height: 100svh !important;
    height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: url('../images/kamakura/hokokuji/IMG_7548.JPG') center/cover no-repeat !important;
    padding: 60px 0 4rem 0 !important;
}

@media (max-width: 430px) {
    .vtqf-header-hero {
        justify-content: center !important;
        min-height: 100svh !important;
        padding: 56px 0 3rem 0 !important;
    }
}

/* ナビバーを画面上端に固定 */
.vtqf-hero-nav {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
    padding: max(14px, env(safe-area-inset-top)) 24px 10px !important;
    box-sizing: border-box !important;
}

/* タイトル：旧style.cssの !important を上書き */
.vtqf-hero-title-new {
    font-family: 'DM Serif Display', 'Playfair Display', serif !important;
    font-size: clamp(1.9rem, 5.5vw, 4.5rem) !important;
    color: #fff !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.4rem !important;
    word-break: keep-all !important;
    display: block !important;
    flex-direction: unset !important;
    text-align: center !important;
}

@media (max-width: 430px) {
    .vtqf-hero-title-new {
        font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    }
}

.vtqf-hero-title-main {
    color: #fff !important;
    font-style: normal !important;
    display: inline !important;
}

.vtqf-hero-title-italic {
    color: #a8d4ee !important;
    font-style: italic !important;
    display: inline !important;
}

/* サブタイトル */
.vtqf-hero-sub {
    font-family: 'Noto Serif JP', serif !important;
    font-size: 0.95rem !important;
    color: rgba(255,255,255,0.6) !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 1.2rem !important;
    font-weight: 400 !important;
}

/* ヒーローコンテンツ配置 */
.vtqf-hero-content {
    position: relative !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    padding: 0 2rem 4rem !important;
    width: 100% !important;
    max-width: 520px !important;
    box-sizing: border-box !important;
}

@media (max-width: 430px) {
    .vtqf-hero-content {
        padding: 0 1.25rem 3rem !important;
    }
}

/* LIVEバッジ */
.vtqf-live-badge {
    display: none !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #a8d4ee !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 5px 14px !important;
    border-radius: 99px !important;
    margin-bottom: 0.9rem !important;
    position: relative !important;
    z-index: 5 !important;
}

/* 混雑カード */
.vtqf-hero-crowd-card {
    display: none !important;
}

/* CTAヒント */
.vtqf-hero-cta-sub,
.vtqf-hero-cta-hint {
    font-size: 0.72rem !important;
    color: rgba(255,255,255,0.4) !important;
    margin-top: 4px !important;
}

/* 旧スライダーを非表示 */
.vtqf-hero-slider {
    display: none !important;
}

/* ===== ヒーローヘッダー 空白修正（子要素のみ） ===== */
.vtqf-header.vtqf-header-hero * {
    min-height: unset !important;
    height: auto !important;
}

.vtqf-header.vtqf-header-hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100svh !important;
    padding-top: 60px !important;
    padding-bottom: 3rem !important;
}

/* ===== 竹林背景用テキストカラー調整 ===== */
.vtqf-header-hero .vtqf-hero-nav-logo {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.vtqf-header-hero .vtqf-hero-nav-logo span {
    color: #f5d77a;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.vtqf-header-hero .vtqf-hero-title-new {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.vtqf-header-hero .vtqf-hero-sub {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.vtqf-header-hero .vtqf-live-badge {
    background: rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.3);
    color: #d4f5c0;
}
.vtqf-header-hero .vtqf-hero-crowd-card {
    background: rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.2);
}
.vtqf-header-hero .vtqf-hero-lang-switcher {
    background: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}

/* ナビバー・ピル・ウェーブは新インラインCSSで制御 */

/* ヒーロー表示中はコンテナの余白を除去 */
body:has(.vtqf-header-hero:not([style*="display:none"])) .vtqf-container {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

body:has(.vtqf-header-hero:not([style*="display:none"])) .vtqf-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
}

body:has(.vtqf-header-hero:not([style*="display:none"])) .vtqf-wrapper,
body:has(.vtqf-header-hero:not([style*="display:none"])) .vtqf-container,
body:has(.vtqf-header-hero:not([style*="display:none"])) .vtqf-question-screen,
body:has(.vtqf-header-hero:not([style*="display:none"])) .vtqf-result {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

/* ヒーロー表示中は波背景を非表示 */
body:has(.vtqf-header-hero:not([style*="display:none"])) .vtqf-wave-background {
    display: none !important;
}

/* ヒーロー表示中はbody背景を透明に */
body:has(.vtqf-header-hero:not([style*="display:none"])) {
    background: transparent !important;
}

/* ========================================
   防災避難モード (Disaster Evacuation)
   ======================================== */
.vtqf-footer-evac-btn {
    background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
    color: #fff !important;
}
.vtqf-footer-evac-btn:hover {
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.4) !important;
}
.vtqf-evac-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1300;
    justify-content: center;
    align-items: center;
}
.vtqf-evac-overlay.active {
    display: flex;
}
.vtqf-evac-modal {
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vtqf-evac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    flex-shrink: 0;
}
.vtqf-evac-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.vtqf-evac-close {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.2);
    border: none; border-radius: 50%;
    color: #fff; font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.vtqf-evac-alert {
    background: #fff3e0;
    color: #e65100;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #ff9800;
    flex-shrink: 0;
}
.vtqf-evac-filter {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #f5f5f5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    border-bottom: 1px solid #e0e0e0;
}
.vtqf-evac-filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}
.vtqf-evac-filter-btn.active {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}
.vtqf-evac-filter-btn:not(.active):active {
    background: #eee;
}
.vtqf-evac-body {
    flex: 1;
    overflow-y: auto;
}
.vtqf-evac-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.vtqf-evac-loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid #eee;
    border-top-color: #d32f2f;
    border-radius: 50%;
    animation: vtqf-spin 1s linear infinite;
    margin: 0 auto 16px;
}
.vtqf-evac-loading-sub {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}
.vtqf-evac-area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
}
.vtqf-evac-area-btn {
    background: #fff;
    border: 2px solid #d32f2f;
    border-radius: 10px;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.vtqf-evac-area-btn:active {
    background: #d32f2f;
    color: #fff;
}
.vtqf-evac-map {
    height: 40vh;
    min-height: 200px;
    background: #e8e8e8;
}
.vtqf-evac-list-title {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px 4px;
    color: #333;
}
.vtqf-evac-list {
    padding: 8px 16px 16px;
}
.vtqf-evac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f5f5f5;
    margin-bottom: 8px;
}
.vtqf-evac-num {
    width: 32px; height: 32px;
    background: #d32f2f;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.vtqf-evac-info {
    flex: 1;
    min-width: 0;
}
.vtqf-evac-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    word-break: break-all;
}
.vtqf-evac-name-ja {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-top: 1px;
}
.vtqf-evac-types {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 2px 0 3px;
}
.vtqf-evac-type-badge {
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 3px;
    background: #e8e8e8;
    color: #666;
}
.vtqf-evac-type-badge.active {
    background: #d32f2f;
    color: #fff;
}
.vtqf-evac-dist {
    font-size: 13px;
    color: #666;
}
.vtqf-evac-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #d32f2f;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}
.vtqf-evac-user-marker {
    width: 16px; height: 16px;
    background: #2196f3;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.6);
}
.vtqf-evac-shelter-marker {
    width: 28px; height: 28px;
    background: #d32f2f;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.vtqf-evac-offline-msg {
    background: #fff3e0;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #e65100;
}
.vtqf-evac-footer {
    padding: 8px 16px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.vtqf-evac-note {
    font-size: 11px;
    color: #999;
    text-align: center;
}
.vtqf-evac-offline-fallback {
    padding: 16px 12px;
    background: #f5f5f5;
    min-height: 180px;
    border-radius: 12px;
}
.vtqf-evac-offline-title {
    text-align: center;
    color: #e65100;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 10px;
    background: #fff3e0;
    border-radius: 8px;
}
.vtqf-evac-offline-item {
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.6;
}
