@charset "UTF-8";

/* ==========================================
   Base Reset & Typography
   ========================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
html { 
    scroll-behavior: smooth; 
}
body { 
    font-size: 16px; 
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif; 
    line-height: 1.8; 
    color: #333; 
    background-color: #f7f9fa; 
    overflow-x: hidden; 
}

/* Color Variables */
:root {
    --theme-navy: #0f1c3f;   
    --theme-gold: #c5a059;   
    --theme-pink: #e83e8c;   
    --theme-gray: #666;
    --theme-light-gray: #f4f6f9;
    
    --kanto-color: var(--theme-pink);
    --tokai-color: var(--theme-gold);
    --kansai-color: var(--theme-navy);

    --main-grad: linear-gradient(135deg, var(--theme-navy) 0%, #1e3a8a 100%);
    --btn-grad: linear-gradient(135deg, var(--theme-pink) 0%, #d63384 100%);
    --soldout-grad: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

/* Layout */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 15px; 
}
section { 
    padding: 60px 0; 
}
.section-title { 
    text-align: center; 
    margin-bottom: 35px; 
    color: var(--theme-navy); 
    font-size: clamp(1.6rem, 4vw, 2.2rem); 
    font-weight: bold; 
    position: relative; 
    padding-bottom: 15px; 
}
.section-title::after { 
    content: ""; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 3px; 
    background: var(--theme-gold); 
}

/* ==========================================
   Header & Hamburger Navigation
   ========================================== */
header { 
    background: #fff; 
    border-bottom: 3px solid var(--theme-gold); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo { 
    display: block; 
    position: relative; 
    z-index: 1002; 
}
.logo img { 
    height: 40px; 
    width: auto; 
    display: block; 
}
.header-nav { 
    display: flex; 
    gap: 20px; 
    list-style: none; 
    font-size: 15px; 
}
.header-nav a { 
    color: var(--theme-navy); 
    text-decoration: none; 
    font-weight: bold; 
    transition: color 0.3s; 
}
.header-nav a:hover { 
    color: var(--theme-pink); 
}

.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 5px; 
    z-index: 1002; 
    flex-direction: column; 
    align-items: center; 
}
.hamburger-box { 
    position: relative; 
    width: 24px; 
    height: 16px; 
    margin-bottom: 4px; 
}
.hamburger-box span { 
    position: absolute; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background-color: var(--theme-navy); 
    transition: all 0.3s; 
}
.hamburger-box span:nth-child(1) { top: 0; }
.hamburger-box span:nth-child(2) { top: 7px; }
.hamburger-box span:nth-child(3) { top: 14px; }
.hamburger-label { 
    font-size: 10px; 
    font-weight: bold; 
    color: var(--theme-navy); 
}

.menu-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: rgba(15, 28, 63, 0.6); 
    z-index: 999; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s, visibility 0.3s; 
    backdrop-filter: blur(3px); 
}

/* ==========================================
   Breadcrumb
   ========================================== */
.breadcrumb { 
    padding: 12px 0; 
    background-color: #fff; 
    border-bottom: 1px solid #eaeaea; 
    font-size: 12px; 
}
.breadcrumb-list { 
    list-style: none; 
    display: flex; 
    flex-wrap: wrap; 
}
.breadcrumb-item { 
    display: flex; 
    align-items: center; 
}
.breadcrumb-item:not(:last-child)::after { 
    content: "＞"; 
    margin: 0 8px; 
    color: #ccc; 
}
.breadcrumb-link { 
    color: var(--theme-gray); 
    text-decoration: none; 
}
.breadcrumb-link:hover { 
    color: var(--theme-pink); 
}
.breadcrumb-current { 
    color: #333; 
    font-weight: bold; 
}

/* ==========================================
   Hero Section
   ========================================== */
.hero { 
    background: linear-gradient(rgba(15, 28, 63, 0.85), rgba(15, 28, 63, 0.7)), url('https://www.orion-tour.co.jp/bustour/nagaokamatsuri/img/hanabi-top-001.jpg') center/cover no-repeat;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 0;
}
.hero h1 { 
    font-size: clamp(1.8rem, 4.5vw, 3rem); 
    margin-bottom: 15px; 
    text-shadow: 2px 2px 12px rgba(0,0,0,0.8); 
    line-height: 1.4; 
}
.hero p { 
    font-size: clamp(1rem, 2.5vw, 1.3rem); 
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8); 
    font-weight: bold; 
    color: #fff;
    margin-bottom: 25px;
}
.soldout-badge {
    display: inline-block;
    background: var(--theme-pink);
    color: #fff;
    font-weight: bold;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hero-soldout-action {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 25px;
    max-width: 750px;
    margin: 0 auto;
}
.hero-soldout-action p {
    color: var(--theme-gold);
    font-size: 1rem;
    margin-bottom: 15px;
}
.hero-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.btn-hero-nav {
    background: var(--main-grad) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    border: 1px solid var(--theme-gold);
}
.btn-hero-nav:hover {
    transform: translateY(-2px);
    background: var(--theme-gold) !important;
    color: var(--theme-navy) !important;
}

/* ==========================================
   Page Navigation (★再販トグル機能付き)
   ========================================== */
.page-nav { 
    background: #fff; 
    padding: 25px 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
    text-align: center; 
}
.page-nav p { 
    font-weight: bold; 
    margin-bottom: 15px; 
    color: var(--theme-navy); 
}
.nav-buttons { 
    display: flex; 
    justify-content: space-between; 
    gap: 15px; 
}
.nav-btn { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    padding: 12px 5px; 
    border-radius: 10px; 
    color: #fff; 
    font-weight: bold; 
    text-decoration: none; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); 
    font-size: 1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}
.nav-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.nav-btn small {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ------------------------------------------
   🚫 完売時（data-nav-status="soldout"）のスタイル
   ------------------------------------------ */
[data-nav-status="soldout"] {
    background-color: #718096 !important; /* 目立たないグレー */
}
[data-nav-status="soldout"] .badge-nav-soldout {
    display: inline;
    opacity: 0.8;
}
[data-nav-status="soldout"] .badge-nav-onsale {
    display: none; /* 販売中テキストは隠す */
}

/* ------------------------------------------
   ✨ 再販時（data-nav-status="onsale"）のスタイル
   ------------------------------------------ */
[data-nav-status="onsale"] {
    background: var(--main-grad) !important; /* オリオンツアーのメインカラーで目立たせる */
    border: 2px solid var(--theme-pink);
    animation: borderPulse 2s infinite; /* ユーザーの視線を引きつけるアニメーション */
}
[data-nav-status="onsale"] .badge-nav-soldout {
    display: none; /* 完売テキストは隠す */
}
[data-nav-status="onsale"] .badge-nav-onsale {
    display: inline;
    color: #fff;
    font-weight: bold;
    background-color: var(--theme-pink); /* 鮮やかなピンクバッジ */
    padding: 0px 6px;
    border-radius: 4px;
}

/* 復活ボタン用の緩やかな注目アニメーション */
@keyframes borderPulse {
    0% { box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 15px rgba(232, 62, 140, 0.6); }
    100% { box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
}

/* ==========================================
   Features Grid
   ========================================== */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; 
}
.feature-box { 
    background: #fff; 
    border: 1px solid #e1e4e8; 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
    text-align: center; 
}
.feature-box .icon { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    display: block; 
}
.feature-box h3 { 
    color: var(--theme-navy); 
    margin-bottom: 12px; 
    font-weight: bold; 
}
.feature-box p { 
    font-size: 0.95rem; 
    color: #555; 
    text-align: left; 
}

/* ==========================================
   長岡花火 解説・YouTubeエリア
   ========================================== */
.video-section { 
    padding-top: 40px; 
}
.video-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    border-radius: 15px 15px 0 0; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}
.video-wrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}
.video-description { 
    background: #fff; 
    padding: 35px; 
    border-radius: 0 0 15px 15px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
    border-top: 5px solid var(--theme-gold); 
}
.video-description h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: var(--theme-navy); 
    font-weight: bold; 
}
.video-description p { 
    font-size: 1.05rem; 
    color: #444; 
    margin-bottom: 15px;
}
.video-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   美麗写真付き他花火大会・祭り回遊枠
   ========================================== */
.related-fireworks {
    background-color: #f0f4f8;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 40px 0;
}
.section-intro-text {
    text-align: center;
    max-width: 800px;
    margin: -15px auto 35px;
    font-size: 1rem;
    color: #4a5568;
}
.fireworks-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.fireworks-link-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.fireworks-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(15, 28, 63, 0.15);
    border-color: var(--theme-gold);
}
.card-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    background: #e2e8f0;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fireworks-link-card:hover .card-img-wrap img {
    transform: scale(1.05);
}
.card-img-wrap .card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #007bff;
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
    letter-spacing: 0.5px;
}
.card-img-wrap .active-tag {
    background: #28a745 !important;
}
.card-txt-wrap {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-meta {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--theme-gold);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.fireworks-link-card h3 {
    color: var(--theme-navy);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}
.card-catch {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--theme-pink);
    margin-bottom: 12px;
    line-height: 1.4;
    border-left: 3px solid var(--theme-pink);
    padding-left: 8px;
}
.fireworks-link-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
.card-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--theme-navy);
    padding-top: 10px;
    border-top: 1px dotted #e2e8f0;
}
.fireworks-link-card:hover .card-more {
    color: var(--theme-pink);
}

/* ==========================================
   Tour Plan Cards (★再販トグル制御付き)
   ========================================== */
.region-block { 
    margin-bottom: 50px; 
    scroll-margin-top: 90px; 
}
.region-header { 
    font-size: clamp(1.4rem, 3.5vw, 2rem); 
    margin-bottom: 25px; 
    padding-bottom: 12px; 
    border-bottom: 3px solid #ddd; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: bold; 
}
.plan-card { 
    border-radius: 15px; 
    margin-bottom: 35px; 
    display: grid; 
    grid-template-columns: 350px 1fr; 
    background: #fff; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}
.plan-card-img { 
    width: 100%; 
    height: 100%; 
    position: relative; 
    overflow: hidden; 
}
.plan-card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.plan-card-body { 
    padding: 35px; 
    display: flex; 
    flex-direction: column; 
}
.plan-card-header h3 { 
    font-size: clamp(1.2rem, 2.5vw, 1.4rem); 
    color: var(--theme-navy); 
    line-height: 1.4; 
    margin-bottom: 20px; 
    font-weight: bold; 
}
.info-list { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 10px; 
    list-style: none; 
}
.info-label { 
    font-weight: bold; 
    color: var(--theme-navy); 
    min-width: 85px; 
}
.price-text { 
    font-weight: bold; 
}
.plan-card-action-wrap { 
    margin-top: auto; 
    padding-top: 25px; 
}
.plan-card-action { 
    display: flex; 
    gap: 15px; 
}
.btn { 
    flex: 1; 
    display: inline-block; 
    color: #fff; 
    padding: 14px 20px; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1.05rem; 
    text-align: center; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s;
}

/* ------------------------------------------
   💡 トグル用：[data-status="soldout"] (満席時) の挙動
   ------------------------------------------ */
[data-status="soldout"] {
    border: 1px solid #cbd5e0;
}
[data-status="soldout"] .price-text {
    color: #718096;
}
/* 満席時：画像オーバーレイを表示 */
[data-status="soldout"] .img-overlay-soldout {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 2px;
    border: 2px solid var(--theme-pink);
    margin: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
}
/* 満席時：マイクロコピー・ボタンの表示切り替え */
[data-status="soldout"] .microcopy-soldout { display: block; text-align: center; color: var(--theme-pink); font-size: 0.85rem; font-weight: bold; margin-bottom: 12px; }
[data-status="soldout"] .microcopy-onsale { display: none; }
[data-status="soldout"] .btn-soldout-redirect { display: inline-block; background: var(--soldout-grad); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
[data-status="soldout"] .btn-soldout-redirect:hover { background: var(--theme-navy); transform: translateY(-2px); }
[data-status="soldout"] .btn-booking-action { display: none; } /* 予約ボタンは隠す */

/* ------------------------------------------
   💡 トグル用：[data-status="onsale"] (再販復活時) の挙動
   ------------------------------------------ */
[data-status="onsale"] {
    border: 2px solid var(--theme-pink); /* 復活したのが一目でわかるアクセント */
    box-shadow: 0 10px 25px rgba(232, 62, 140, 0.15);
}
[data-status="onsale"] .price-text {
    color: var(--theme-pink);
}
/* 再販時：SOLD OUTの黒いマスクを非表示 */
[data-status="onsale"] .img-overlay-soldout {
    display: none !important;
}
/* 再販時：マイクロコピー・ボタンの表示切り替え */
[data-status="onsale"] .microcopy-soldout { display: none; }
[data-status="onsale"] .microcopy-onsale { display: block; text-align: center; color: #28a745; font-size: 0.95rem; font-weight: bold; margin-bottom: 12px; background: #e8f5e9; padding: 6px; border-radius: 4px; border: 1px solid #c8e6c9; }
[data-status="onsale"] .btn-soldout-redirect { display: none; } /* 他ツアーへの流し用ボタンを隠す */
[data-status="onsale"] .btn-booking-action { display: inline-block; background: var(--btn-grad); box-shadow: 0 4px 10px rgba(232, 62, 140, 0.3); } /* 通常の申し込みボタンを出現 */
[data-status="onsale"] .btn-booking-action:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(232, 62, 140, 0.5); }

/* ==========================================
   Preparation Guide & FAQ
   ========================================== */
.prep-section { 
    background: #fff; 
    padding: 60px 0; 
    border-top: 4px solid var(--theme-gold); 
    border-bottom: 4px solid var(--theme-gold); 
    margin-bottom: 40px; 
}
.warning-box { 
    background: #fff3cd; 
    border-left: 6px solid #ffc107; 
    padding: 20px; 
    border-radius: 4px; 
    margin-bottom: 40px; 
    font-weight: bold; 
    color: #856404; 
}
.prep-category-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; 
}
.prep-card { 
    background: #fdfdfd; 
    border: 1px solid #eee; 
    border-radius: 12px; 
    padding: 25px; 
}
.prep-card h3 { 
    color: var(--theme-navy); 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--theme-gold); 
    padding-bottom: 10px; 
    font-weight: bold; 
}
.check-list { 
    list-style: none; 
}
.check-list li { 
    position: relative; 
    padding-left: 24px; 
    margin-bottom: 15px; 
    font-size: 0.95rem; 
    color: #444; 
}
.check-list li::before { 
    content: "✓"; 
    position: absolute; 
    left: 0; 
    top: 0; 
    color: var(--theme-pink); 
    font-weight: bold; 
}

.faq-section { 
    background: #f4f6f9; 
    padding: 60px 0; 
}
.faq-card { 
    background: #fff; 
    border: 1px solid #e1e4e8; 
    border-radius: 10px; 
    padding: 25px; 
    margin-bottom: 20px; 
}
.faq-question { 
    font-size: 1.1rem; 
    color: var(--theme-navy); 
    font-weight: bold; 
    display: flex; 
    gap: 10px; 
    margin-bottom: 12px; 
}
.faq-question .q-icon { 
    background: var(--theme-pink); 
    color: #fff; 
    border-radius: 4px; 
    padding: 0 6px; 
    font-size: 0.85rem; 
}
.faq-answer { 
    font-size: 0.95rem; 
    color: #444; 
    display: flex; 
    gap: 10px; 
}
.faq-answer .a-icon { 
    background: var(--theme-navy); 
    color: #fff; 
    border-radius: 4px; 
    padding: 0 6px; 
    font-size: 0.85rem; 
}

/* ==========================================
   Footer
   ========================================== */
footer { 
    background: #080d1f; 
    color: #fff; 
    padding: 50px 0 30px; 
    font-size: 14px; 
}
.footer-nav { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
    margin-bottom: 35px; 
    list-style: none; 
}
.footer-nav a { 
    color: #ccc; 
    text-decoration: none; 
}
.footer-nav a:hover { 
    color: var(--theme-gold); 
}
.copyright { 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 20px; 
    color: #888; 
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 900px) {
    .plan-card { grid-template-columns: 1fr; }
    .plan-card-img { height: 240px; }
    [data-status="soldout"] .img-overlay-soldout { font-size: 1.3rem; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .header-nav { 
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; 
        background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
        flex-direction: column; padding-top: 80px; transition: right 0.4s;
    }
    .header-nav.is-active { right: 0; }
    .menu-overlay.is-active { opacity: 1; visibility: visible; }
    .hero-action-buttons { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
    body { font-size: 15px; }
    .hero { min-height: 400px; }
    .nav-buttons { flex-direction: column; gap: 10px; }
    .plan-card-body { padding: 20px 15px; }
    .plan-card-action { flex-direction: column; gap: 10px; }
    .fireworks-links-grid { grid-template-columns: 1fr; }
    .card-img-wrap { height: 160px; }
}