:root {
    --primary-color: #f7f3f0; /* warm off-white */
    --text-main: #2a2523; /* darker slate for higher contrast */
    --text-light: #5c5350; /* much darker readable gray */
    --accent: #b88b7d; /* deeper, elegant rose/terracotta for visibility */
    --white: #ffffff;
    --black: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    max-width: 100vw;
}

body {
    font-family: 'Noto Serif JP', serif;
    background-color: var(--primary-color);
    color: var(--text-main);
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6, .nav-logo {
    font-family: 'Cormorant Garamond', serif;
}

/* Common Section Styles */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--text-light);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}

.section-title {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 500;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 18px 40px;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: #9B003F !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    padding: 18px 40px;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-main);
    transition: color 0.3s;
}

/* Default state (White text on transparent hero bg) */
.nav-logo, .nav-links li a { 
    color: var(--white); 
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-links li a {
    color: var(--white);
}

/* Sub-page Navigation Stability */
.is-subpage .navbar {
    background: #9B003F;
    backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
    padding: 18px 40px !important;
}
.is-subpage .navbar .nav-logo,
.is-subpage .navbar .nav-links li a {
    color: var(--white) !important;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links li a {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%; height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links li a:hover:not(.nav-cta)::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--white);
    color: var(--text-main) !important;
    transform: translateY(-2px);
}

.navbar.scrolled .nav-cta,
.is-subpage .navbar .nav-cta {
    background: var(--accent);
    color: var(--white) !important;
}

.navbar.scrolled .nav-cta:hover,
.is-subpage .navbar .nav-cta:hover {
    background: var(--white);
    color: var(--text-main) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.85); /* Slightly darker for text contrast */
}

/* Soft gradient overlay for elegant typography readability */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(20,20,30,0.5) 0%, rgba(20,20,30,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 2;
    margin-bottom: 50px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.primary-btn {
    display: inline-block;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    border-radius: 30px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
}

.primary-btn:hover {
    background: var(--white);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--white);
    opacity: 0.8;
}

.scroll-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 50%;
    background: var(--white);
    animation: scrollDown 2s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* About Section */
.about-section {
    background: var(--white);
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.value-card {
    padding: 40px 30px;
    background: var(--primary-color);
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 80, 80, 0.08);
}

.value-num {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 20px;
    font-weight: 300;
}

.value-title {
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.value-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Map Section (From Previous Step) */
.map-section {
    position: relative;
    background-image: url('../img/map-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    min-height: 100vh; /* Changed from strict height to min-height */
    display: flex;
    flex-direction: column;
}

.map-section .section-container {
    padding: 0;
    margin: 0; /* Reset default auto margin to prevent shifts */
    max-width: 100%; /* Important: overrides the 1280px limit from common classes! */
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Forces perfect centering */
    position: relative;
}

/* Elegant Vertical Side Titles - Premium Asymmetrical Japanese Layout */
.vertical-title-left, .vertical-title-right {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.85rem; 
    font-weight: 700; /* 目立たせるために太字へ変更！ */
    letter-spacing: 0.3em; 
    color: var(--text-main); 
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 4px 20px rgba(255,255,255,0.85); /* 強い発光でさらに目立たせる */
    white-space: nowrap; 
}

/* 左側のタイトル：登場 ＋ 呼吸のような浮遊アニメーション */
.vertical-title-left { 
    top: 20%; 
    left: 4%; 
    opacity: 0; /* Wait for scroll */
}
.vertical-title-left.visible {
    animation: verticalLineInLeft 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards,
               floatVerticalLeft 5s ease-in-out 1.5s infinite alternate;
}
.vertical-title-left::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 60px; 
    background-color: var(--text-main);
    margin-bottom: 20px; 
    opacity: 0.6;
}

/* 右側のタイトル：登場 ＋ 呼吸のような浮遊アニメーション */
.vertical-title-right { 
    bottom: 15%; 
    right: 4%; 
    opacity: 0; /* Wait for scroll */
}
.vertical-title-right.visible {
    animation: verticalLineInRight 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards,
               floatVerticalRight 5s ease-in-out 1.5s infinite alternate;
}
.vertical-title-right::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 80px; 
    background-color: var(--text-main);
    margin-top: 20px; 
    opacity: 0.6;
}

.v-en {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem; 
    color: var(--accent);
    display: inline-block; 
    margin-top: 30px; 
    letter-spacing: 0.5em;
    font-weight: 600; /* English also bolded */
}

/* Custom Vertical Animations */
@keyframes verticalLineInLeft {
    0% { opacity: 0; top: 0%; transform: translateY(-50px); }
    100% { opacity: 1; top: 20%; transform: translateY(0); }
}
@keyframes verticalLineInRight {
    0% { opacity: 0; bottom: 0%; transform: translateY(50px); }
    100% { opacity: 1; bottom: 15%; transform: translateY(0); }
}

@keyframes floatVerticalLeft {
    0% { transform: translateY(0); }
    100% { transform: translateY(12px); }
}
@keyframes floatVerticalRight {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Bright, airy overlay so venue shows through clearly while dark text remains readable */
    background: rgba(255, 255, 255, 0.5); 
    z-index: 0;
}

.map-bg-glow {
    display: none; /* Replaced by background image */
}

.map-layout-asym {
    position: relative;
    width: 80vw; /* タイトルのための余白を両端に10%ずつ確保 */
    max-width: 1400px;
    height: 90vh; 
    min-height: 750px; /* Increased from 700px */
    max-height: 1100px;
    margin: 0 auto;
    z-index: 1;
}

.map-connector-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3; /* Changed to 3: OVER THE MAP! */
    pointer-events: none;
}

.map-line {
    fill: none;
    stroke: var(--accent); /* Resynced to Rose Gold accent */
    stroke-width: 2;
    stroke-dasharray: 4 6; 
    opacity: 0.8; 
}

.map-anchor {
    fill: var(--accent); 
    opacity: 0; 
}

.center-map-large {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 45vw; /* Just large enough to surround the map */
    max-width: 750px;
    height: 95%; /* Hugs the map tightly */
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed glass frame, map sits directly on background */
}

.japan-map-image {
    width: auto;
    height: 90%;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2)); 
}

.glow-effect-large {
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(184,139,125,0.15) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: slowPulseLarge 8s infinite alternate;
}
@keyframes slowPulseLarge {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.region-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 20px 25px; 
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.35); /* 大幅に透明度を上げ、背景の質感が透けるように */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.3); /* 境界線も細く、透明に */
    backdrop-filter: blur(15px); /* 透けている部分を美しくぼかす */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    overflow: hidden;
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
    transition: 0.6s;
    z-index: 0;
    pointer-events: none;
}

.region-card:hover::before { left: 100%; }

.region-card:hover {
    box-shadow: 0 15px 40px rgba(184, 139, 125, 0.35); 
    background: #ffffff;
}

.region-head {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.en-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; /* Refined size */
    letter-spacing: 0.25em;
    color: #a07366; 
    margin-bottom: 2px;
    font-weight: 500; 
    transition: color 0.3s;
}

.ja-name {
    font-size: 1.3rem; /* Still highly readable, but sleeker */
    font-weight: 600; 
    letter-spacing: 0.15em;
    color: #1a1615; 
}

.region-card:hover .en-name { color: #8e6559; }

/* Elegant Typography for Links */
.pref-links {
    margin-top: 12px; 
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 6px;
    border-top: 1px solid rgba(184, 139, 125, 0.3); 
    padding-top: 12px;
    position: relative;
    z-index: 2;
}

.pref-links a {
    font-size: 0.85rem; /* Balanced size */
    font-weight: 500;
    color: #3b3331; 
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
}

.pref-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%; height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.pref-links a:hover {
    background: transparent;
    color: var(--text-main);
    transform: none;
    box-shadow: none;
}

.pref-links a:hover::after {
    width: 100%;
}

/* Highly Organized Left-Right Column Layout for Ultimate Elegance */

/* ---- [ RIGHT COLUMN ] ---- */
.card-hokkaido {
    top: 12%; left: 82%;
    width: 220px;
    transform: translate(-50%, -50%); 
}
.card-hokkaido:hover { transform: translate(-50%, -52%); }

.card-tohoku {
    top: 36%; left: 86%;
    width: 230px;
    transform: translate(-50%, -50%);
}
.card-tohoku:hover { transform: translate(-50%, -52%); }

.card-kanto {
    top: 60%; left: 86%;
    width: 250px;
    transform: translate(-50%, -50%); 
}
.card-kanto:hover { transform: translate(-50%, -52%); }

.card-chubu {
    top: 84%; left: 82%;
    width: 260px;
    transform: translate(-50%, -50%);
}
.card-chubu:hover { transform: translate(-50%, -52%); }

/* ---- [ LEFT COLUMN ] ---- */
.card-kansai {
    top: 12%; left: 14%;
    width: 240px;
    transform: translate(-50%, -50%);
}
.card-kansai:hover { transform: translate(-50%, -52%); }

.card-chugoku {
    top: 36%; left: 14%; 
    width: 230px;
    transform: translate(-50%, -50%);
}
.card-chugoku:hover { transform: translate(-50%, -52%); }

.card-shikoku {
    top: 60%; left: 14%; 
    width: 220px;
    transform: translate(-50%, -50%);
}
.card-shikoku:hover { transform: translate(-50%, -52%); }

.card-kyushu {
    top: 84%; left: 18%;
    width: 250px;
    transform: translate(-50%, -50%);
}
.card-kyushu:hover { transform: translate(-50%, -52%); }

/* Featured Planners */
.planners-section {
    background: var(--white);
}

.planner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.planner-card {
    display: flex;
    flex-direction: column;
    background: var(--primary-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.planner-card:hover {
    transform: translateY(-10px);
}

.planner-img {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.planner-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.planner-card:hover .planner-img img {
    transform: scale(1.05);
}

.planner-tag {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 15px;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.1em;
    border-radius: 20px;
    color: var(--text-main);
}

.planner-info {
    padding: 30px;
}

.planner-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.planner-area {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.planner-catch {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.planner-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

/* Footer Section */
.footer {
    background: #9B003F;
    color: var(--primary-color);
    padding: 80px 20px 20px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 2rem;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.footer-links-wrap {
    display: flex;
    gap: 80px;
}

.footer-links {
    list-style: none;
}

.footer-link-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-family: 'Outfit', sans-serif;
}

/* Utility buttons */
.center-btn-wrap {
    text-align: center;
    margin-top: 40px;
}

.secondary-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
}

.secondary-btn:hover {
    background: var(--text-main);
    color: var(--white);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .values-grid, .planner-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .map-layout { flex-direction: column; gap: 40px; }
    .region-column { flex-direction: row; flex-wrap: wrap; width: 100%; justify-content: center; gap: 20px; }
    .column-left, .column-right { align-items: center; }
    .region-card { width: 45%; }
    .center-map { order: -1; width: 100%; max-width: 400px; margin-bottom: 20px; }
    .footer-container { flex-direction: column; }
    .footer-links-wrap { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .values-grid, .planner-grid { grid-template-columns: 1fr; }
    .navbar { justify-content: center; }
}
