/* =========================
   ベース（新デザイン v3：秋色ライトテーマ）
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Yu Gothic",
    "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
  color: #1f2933;
  background: radial-gradient(circle at top, #fff7ed 0, #fefce8 40%, #f3f4f6 100%);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* =========================
   ヘッダー：柔らかな秋色バー
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 251, 235, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(248, 196, 113, 0.7);
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.logo-main {
  font-size: 1.25rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  color: #9a6a34;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.6);
  background: rgba(255, 251, 235, 0.96);
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: #92400e;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
}

.nav-list a {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  color: #92400e;
  border: 1px solid transparent;
  background: rgba(255, 247, 237, 0.9);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
}

.nav-list a:hover {
  background: radial-gradient(circle at top, #fed7aa, #feecc8);
  border-color: rgba(217, 119, 6, 0.8);
  transform: translateY(-1px);
}

/* =========================
   メインレイアウト：左サイドバー + 右コンテンツ
   ========================= */
.layout {
  flex: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 1.6rem 1.8rem 2.4rem;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 2.4rem;
}

.panels {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.timeline {
  position: sticky;
  top: 4.2rem;
  align-self: flex-start;
  font-size: 0.8rem;
}

.timeline-heading {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: #b45309;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0.4rem 0;
  border-left: 1px dashed rgba(234, 179, 8, 0.8);
}

.timeline-item {
  position: relative;
  padding: 0.6rem 0.4rem 0.6rem 1.1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #f97316;
  border: 2px solid #fed7aa;
  transform: translateY(-50%);
}

.timeline-item:hover {
  background: rgba(254, 243, 199, 0.85);
  transform: translateX(2px);
}

.timeline-item.active {
  background: radial-gradient(circle at left, #fbbf24, #fb923c);
  color: #7c2d12;
}

.timeline-item.active::before {
  background: #7c2d12;
  border-color: rgba(254, 243, 199, 0.9);
}

.timeline-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #a16207;
  text-transform: uppercase;
}

.timeline-title {
  display: block;
  margin-top: 0.16rem;
}

/* =========================
   パネル共通：秋色カード
   ========================= */
.panel {
  padding: 1.4rem 1.6rem;
  background: radial-gradient(circle at top left, #fff7ed, #fef3c7);
  border-radius: 1.2rem;
  border: 1px solid rgba(250, 204, 21, 0.7);
  box-shadow: 0 22px 50px rgba(248, 181, 71, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2.2fr);
  gap: 1.4rem;
}

.panel:nth-child(even) {
  background: radial-gradient(circle at top right, #fef9c3, #ffedd5);
  border-color: rgba(248, 181, 71, 0.8);
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.panel-media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #fed7aa;
}

.panel h1,
.panel h2,
.panel h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.panel h1 {
  font-size: 1.7rem;
}

.panel h2 {
  font-size: 1.4rem;
}

.panel h3 {
  font-size: 1.02rem;
}

.panel p {
  margin: 0;
  line-height: 1.8;
  font-size: 0.9rem;
  color: #374151;
}

.panel ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: #4b5563;
}

/* =========================
   Intro：フルブリード風の写真
   ========================= */
.intro-hero {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-image-wrap {
  position: relative;
  min-height: 260px;
  border-radius: 1rem;
  overflow: hidden;
  background: radial-gradient(circle at top, #fed7aa, #fecaca);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

.hero-image-wrap:hover img {
  transform: scale(1.09);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom, rgba(124, 45, 18, 0.75), transparent);
  mix-blend-mode: multiply;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-badges span {
  font-size: 0.74rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 196, 113, 0.9);
  background: rgba(255, 251, 235, 0.95);
  backdrop-filter: blur(10px);
}

.intro-points {
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: #4b5563;
}

/* =========================
   Routes：3カラムカード + 夜色マップ
   ========================= */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.route-card {
  padding: 0.75rem 0.8rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(255, 251, 235, 0.98);
  border: 1px solid rgba(250, 204, 21, 0.55);
}

.route-card h3 {
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.route-card p {
  font-size: 0.86rem;
}

.route-card ul {
  font-size: 0.82rem;
}

.routes-map {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.8rem;
  background: radial-gradient(circle at top, #fed7aa, #f97316);
}

.map-layer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.map-column {
  position: relative;
  border-radius: 0.9rem;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: flex-end;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.map-column span {
  writing-mode: vertical-rl;
}

.map-column-north {
  background: linear-gradient(135deg, #4f46e5, #1d4ed8);
}

.map-column-temple {
  background: linear-gradient(135deg, #e11d48, #7f1d1d);
}

.map-column-water {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.map-note {
  font-size: 0.78rem;
  color: #fefce8;
}

/* =========================
   Gallery：暗色モザイク
   ========================= */
.gallery-wall {
  padding: 0.7rem;
  background: radial-gradient(circle at top left, #fee2e2, #fffbeb);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 80px;
  gap: 0.4rem;
}

.gallery-item {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(248, 196, 113, 0.8);
  background: #fef3c7;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.06);
  transition: transform 0.7s ease-out, filter 0.3s ease-out;
}

.gallery-item:hover img {
  transform: scale(1.12);
  filter: saturate(1.25) contrast(1.1);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  background: linear-gradient(
    to top,
    rgba(124, 45, 18, 0.95),
    rgba(180, 83, 9, 0.6),
    transparent
  );
  color: #fefce8;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(5),
.gallery-item:nth-child(7) {
  grid-row: span 2;
}

.gallery-item:nth-child(3),
.gallery-item:nth-child(6) {
  grid-column: span 2;
}

/* =========================
   Scenes：チップ + シーン写真
   ========================= */
.scene-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.scene-chip {
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.9);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  background: rgba(255, 247, 237, 0.96);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.1s ease;
}

.scene-chip:hover {
  background: #fed7aa;
  border-color: rgba(234, 88, 12, 0.9);
  transform: translateY(-1px);
}

.scene-chip.active {
  background: radial-gradient(circle at top, #f97316, #facc15);
  color: #7c2d12;
  border-color: rgba(180, 83, 9, 0.9);
}

.scene-description {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 251, 235, 0.98);
  border: 1px dashed rgba(245, 158, 11, 0.9);
  font-size: 0.86rem;
}

.scene-visual {
  min-height: 220px;
  background: radial-gradient(circle at top, #fee2e2, #fed7aa);
}

.scene-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.5s ease-out, transform 6s ease-out;
}

.scene-visual img.scene-fade-in {
  opacity: 1;
  transform: scale(1.03);
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom, rgba(248, 181, 71, 0.68), transparent);
}

/* =========================
   Notes：三つの時間帯カード
   ========================= */
.notes-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.notes-columns section {
  padding: 0.75rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 251, 235, 0.98);
  border: 1px solid rgba(250, 204, 21, 0.7);
}

.notes-columns h3 {
  font-size: 0.94rem;
  margin-bottom: 0.3rem;
}

.notes-columns p {
  font-size: 0.86rem;
}

.notes-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

/* =========================
   Policy：テキスト重視セクション
   ========================= */
.policy-section {
  margin-top: 0.5rem;
}

.policy-section h3 {
  margin-bottom: 0.25rem;
}

.policy-section p {
  font-size: 0.86rem;
}

.policy-note {
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  background: #fef3c7;
}

.policy-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
}

/* =========================
   フッター
   ========================= */
.site-footer {
  padding: 1rem 1.6rem 1.4rem;
  text-align: center;
  font-size: 0.78rem;
  color: #92400e;
  border-top: 1px solid rgba(248, 196, 113, 0.8);
  background: #fffbeb;
}

/* =========================
   レスポンシブ
   ========================= */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1.4rem;
    gap: 1.4rem;
  }

  .timeline {
    position: static;
    border-bottom: 1px solid rgba(248, 196, 113, 0.8);
    padding-bottom: 0.8rem;
  }

  .panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notes-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    padding-inline: 1.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    right: 1.2rem;
    top: 3.1rem;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.6rem 0.7rem;
    background: rgba(255, 247, 237, 0.98);
    border-radius: 0.8rem;
    border: 1px solid rgba(248, 196, 113, 0.9);
    box-shadow: 0 18px 40px rgba(248, 181, 71, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-list.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .layout {
    padding-inline: 1.1rem;
  }

  .panel {
    padding: 1.2rem 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .site-header-inner {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .logo-main {
    font-size: 1.02rem;
  }

  .layout {
    padding-inline: 1rem;
  }

  .panel h1 {
    font-size: 1.4rem;
  }

  .panel h2 {
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-item {
    grid-row: auto !important;
    grid-column: auto !important;
    height: 180px;
  }
}
