/*
Theme Name: 朝倉トレイルラン 2026
Theme URI: https://asakura-trail.run
Author: 朝倉トレイルラン実行委員会
Author URI: https://asakura-trail.run
Description: 一乗谷朝倉氏遺跡トレイルラン2026 公式テーマ。戦国×モダンをコンセプトにしたカスタムWordPressテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: asakura-trail
Tags: custom-background, custom-logo, custom-menu, featured-images, full-width-template
*/

/* ─── CSS VARIABLES ─── */
:root {
  --crimson: #8B1A1A;
  --crimson-dark: #5C0E0E;
  --crimson-light: #C0392B;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --ink: #1A1208;
  --parchment: #F5EDD8;
  --parchment-dark: #E8D9BC;
  --stone: #8B8070;
  --mist: #D4C9B0;
  --white: #FEFCF7;
  --font-serif: 'Shippori Mincho', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-display: 'IM Fell English SC', serif;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── UTILITY ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 300;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--mist);
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAVIGATION ─── */
#site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(26,18,8,0.95), transparent);
  backdrop-filter: blur(2px);
  transition: background 0.3s;
}

#site-header.scrolled {
  background: rgba(26,18,8,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.site-branding a {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

#primary-menu {
  display: flex;
  gap: 2.5rem;
}

#primary-menu a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--mist);
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

#primary-menu a:hover,
#primary-menu .current-menu-item a { color: var(--gold); }

.header-sns {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-sns a {
  color: var(--mist);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.header-sns a:hover { color: var(--gold); }

/* Language Switcher */
.header-lang-switcher {
  display: flex;
  gap: 0;
  align-items: center;
  margin-left: 1rem;
}

.header-lang-switcher ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 3px;
  overflow: hidden;
}

.header-lang-switcher li a,
.header-lang-switcher li span {
  display: block;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.header-lang-switcher li a:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.header-lang-switcher li.current-lang span,
.header-lang-switcher li.current-lang a {
  background: rgba(201,168,76,0.25);
  color: var(--gold);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  max-height: 100vh;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,26,26,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(26,18,8,0.3) 0%, rgba(26,18,8,0.6) 60%, rgba(26,18,8,0.95) 100%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  z-index: 0;
}

.hero-mountains svg {
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-up var(--dur) var(--delay) infinite ease-in-out;
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-120px) translateX(var(--drift)); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 8vw 5vh;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title .accent {
  color: var(--crimson-light);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--mist);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-date-block {
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-date-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.hero-date {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.hero-date small {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--mist);
  margin-left: 0.5rem;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

.countdown-unit { text-align: center; }

.countdown-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--stone);
  margin-top: 0.3rem;
}

.countdown-sep {
  font-size: 2rem;
  color: var(--crimson);
  margin-top: 0.2rem;
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(201,168,76,0.3);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s;
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { color: var(--ink); }
.btn-primary span { position: relative; z-index: 1; }

.hero-cta {
  opacity: 0;
  animation: fadeUp 1s 1.3s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--stone);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ─── DIVIDER ─── */
.mon-divider {
  padding: 0 8vw;
  margin: 2rem 0;
  position: relative;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--crimson), transparent);
}

/* ─── ABOUT ─── */
#about {
  padding: 7rem 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(139,26,26,0.05) 0%, transparent 50%);
}

.about-card {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 3rem;
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px;
  right: 8px; bottom: 8px;
  border: 1px solid rgba(139,26,26,0.4);
  pointer-events: none;
}

.about-card-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.about-card p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--stone);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.badge {
  display: inline-block;
  background: var(--crimson-dark);
  border: 1px solid var(--crimson-light);
  color: var(--parchment);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 0.3rem 0.8rem;
}

/* ─── NEWS ─── */
#news {
  padding: 3rem 8vw;
  text-align: center;
}

.news-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.news-header .section-label,
.news-header .section-title {
  text-align: center;
}

.news-header .section-title {
  font-size: 1.6rem;
}

.news-list {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  text-decoration: none;
  color: var(--mist);
  transition: background 0.2s, padding-left 0.2s;
}

.news-item:hover {
  background: rgba(201,168,76,0.05);
  padding-left: 1rem;
}

.news-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--stone);
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 5.5rem;
}

.news-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}

.news-title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
}

.news-arrow {
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.news-item:hover .news-arrow {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .news-item {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .news-date {
    min-width: auto;
  }
  .news-title {
    width: 100%;
    font-size: 0.85rem;
  }
}

/* ─── FEATURES ─── */
#features {
  padding: 7rem 8vw;
  background: rgba(201,168,76,0.02);
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.features-header {
  text-align: center;
  margin-bottom: 5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(201,168,76,0.1);
}

.feature-item {
  background: var(--ink);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.feature-item:hover { background: rgba(139,26,26,0.08); }
.feature-item:hover::before { transform: scaleX(1); }

.feature-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(201,168,76,0.12);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.4s;
}

.feature-item:hover .feature-num { color: rgba(201,168,76,0.25); }

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.feature-text {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--stone);
}

/* ─── COURSE ─── */
#course {
  padding: 7rem 8vw;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.course-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(201,168,76,0.15);
  margin-top: 3rem;
}

.stat-item {
  background: var(--ink);
  padding: 1.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

.stat-unit {
  font-size: 0.8rem;
  color: var(--stone);
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--mist);
  margin-top: 0.3rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  padding: 0.7rem 1.5rem;
  margin-top: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline:hover { background: rgba(201,168,76,0.1); }

.map-wrapper {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) sepia(30%) hue-rotate(5deg);
  opacity: 0.9;
}

/* ─── OVERVIEW ─── */
#overview {
  padding: 7rem 8vw;
  background: linear-gradient(180deg, transparent, rgba(139,26,26,0.05), transparent);
}

.overview-header {
  text-align: center;
  margin-bottom: 4rem;
}

.race-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 900px;
  margin: 0 auto;
}

.race-table tr {
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.race-table th {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-align: left;
  padding: 1.4rem 2rem;
  width: 200px;
  vertical-align: top;
  background: rgba(201,168,76,0.04);
  border-right: 1px solid rgba(201,168,76,0.1);
  white-space: nowrap;
}

.race-table td {
  font-size: 0.9rem;
  color: var(--mist);
  padding: 1.4rem 2rem;
  line-height: 1.8;
}

.race-table td strong { color: var(--white); font-weight: 500; }

/* ─── ENTRY ─── */
#entry {
  padding: 8rem 8vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#entry::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,26,26,0.15) 0%, transparent 70%);
}

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

.entry-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  padding: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.entry-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.entry-text {
  color: var(--stone);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  line-height: 2;
}

.email-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.email-input {
  flex: 1;
  background: rgba(245,237,216,0.05);
  border: 1px solid rgba(201,168,76,0.3);
  border-right: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.9rem 1.2rem;
  outline: none;
  transition: border-color 0.3s;
}

.email-input::placeholder { color: var(--stone); }
.email-input:focus { border-color: var(--gold); }

.email-submit {
  background: var(--crimson);
  border: 1px solid var(--crimson-light);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.email-submit:hover { background: var(--crimson-light); }

.entry-note {
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.1em;
}

/* ─── SNS ─── */
#sns-section {
  padding: 4rem 8vw;
  border-top: 1px solid rgba(201,168,76,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sns-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
}

.sns-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--stone);
  font-weight: 300;
  margin-top: 0.3rem;
}

.sns-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--mist);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 0.7rem 1.5rem;
  transition: all 0.3s;
}

.sns-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

/* ─── FOOTER ─── */
#site-footer {
  padding: 2.5rem 8vw;
  border-top: 1px solid rgba(201,168,76,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--mist); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--stone);
  letter-spacing: 0.05em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  #site-header { padding: 1rem 1.5rem; }
  #primary-menu { display: none; flex-direction: column; gap: 0; }
  #primary-menu.open {
    display: flex;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(26,18,8,0.98);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
  }
  #primary-menu.open a { padding: 0.8rem 2rem; display: block; }
  .menu-toggle { display: flex; }

  #about { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid { grid-template-columns: 1fr; }
  #course { grid-template-columns: 1fr; }
  .hero-content { padding: 0 5vw 12vh; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  #sns-section { flex-direction: column; align-items: flex-start; }
  #site-footer { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 1rem; }
  .race-table th { width: 120px; padding: 1rem; font-size: 0.75rem; }
  .race-table td { padding: 1rem; font-size: 0.85rem; }
}

@media (max-width: 600px) {
  .countdown { gap: 0.8rem; }
  .countdown-num { font-size: 2rem; }
  .email-form { flex-direction: column; }
  .email-input { border-right: 1px solid rgba(201,168,76,0.3); border-bottom: none; }
}

/* ─── WP BLOCK ZONES ─── */
.wp-block-zone {
  padding: 5rem 0;
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  background: rgba(201,168,76,0.02);
}

.wp-block-zone .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8vw;
}

/* ブロックエディタ標準要素のスタイル上書き */
.wp-block-zone h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.wp-block-zone h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.wp-block-zone p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--mist);
  margin-bottom: 1rem;
}

.wp-block-zone a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.wp-block-zone a:hover { color: var(--gold-light); }

.wp-block-zone img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(201,168,76,0.15);
}

.wp-block-zone figure { margin: 2rem 0; }
.wp-block-zone figcaption {
  font-size: 0.78rem;
  color: var(--stone);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

/* カラム */
.wp-block-zone .wp-block-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.wp-block-zone .wp-block-column { flex: 1; min-width: 260px; }

/* ボタン */
.wp-block-zone .wp-block-button__link,
.wp-block-zone .wp-element-button {
  background: var(--crimson) !important;
  color: var(--white) !important;
  border: 1px solid rgba(201,168,76,0.3) !important;
  font-family: var(--font-serif) !important;
  letter-spacing: 0.15em !important;
  padding: 0.8rem 2rem !important;
  border-radius: 0 !important;
  transition: background 0.3s !important;
}

.wp-block-zone .wp-block-button__link:hover,
.wp-block-zone .wp-element-button:hover {
  background: var(--crimson-light) !important;
}

/* 区切り線 */
.wp-block-zone hr,
.wp-block-zone .wp-block-separator {
  border: none;
  border-top: 1px solid rgba(201,168,76,0.2);
  margin: 2rem 0;
}

/* 引用 */
.wp-block-zone blockquote {
  border-left: 3px solid var(--crimson);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--stone);
  font-style: italic;
}

/* ギャラリー */
.wp-block-zone .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* リスト */
.wp-block-zone ul,
.wp-block-zone ol {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.wp-block-zone ul li::marker { color: var(--gold); }

/* 管理画面向け：ゾーンの説明ヒント（フロントには非表示） */
.zone-label-hint {
  display: none;
}

/* ─── COURSE SECTION REVISED ─── */
#course {
  padding: 7rem 8vw;
}

.course-header {
  margin-bottom: 3rem;
}

#course .course-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.15);
  margin-bottom: 3rem;
}

/* コースブロックゾーン */
.course-block-zone {
  margin-bottom: 2rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 3rem 0;
  background: rgba(201,168,76,0.02);
}

/* ブロック内の地図iframeを全幅＆フィルター付きに */
.course-block-zone iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(201,168,76,0.2);
  filter: grayscale(70%) sepia(25%) hue-rotate(5deg);
  display: block;
}

/* ブロック内画像のスタイル */
.course-block-zone img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(201,168,76,0.15);
  display: block;
}

.course-block-zone figure {
  margin: 0 0 2rem;
}

.course-block-zone figcaption {
  font-size: 0.78rem;
  color: var(--stone);
  text-align: center;
  margin-top: 0.6rem;
  letter-spacing: 0.1em;
}

/* 2カラムレイアウト（地図＋説明など） */
.course-block-zone .wp-block-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.course-block-zone .wp-block-column { min-width: 0; }

/* 3カラム写真ギャラリー */
.course-block-zone .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.course-block-zone .wp-block-gallery figure { margin: 0; }

.course-block-zone h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.course-block-zone p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--mist);
  margin-bottom: 1rem;
}

/* デフォルト表示（未設定時） */
.course-default { margin-bottom: 2rem; }

.course-default .map-wrapper {
  aspect-ratio: 16/7;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 1rem;
}

.course-default .map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(70%) sepia(25%);
}

.course-default-hint {
  font-size: 0.78rem;
  color: var(--stone);
  text-align: center;
  letter-spacing: 0.05em;
}

.course-default-hint code {
  background: rgba(201,168,76,0.1);
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  color: var(--gold);
}

.course-gpx {
  margin-top: 2rem;
}

/* admin分ずらす */
body.admin-bar #hero {
  height: calc(100vh - 32px);
  min-height: calc(700px - 32px);
}

@media (max-width: 960px) {
  #course .course-stats { grid-template-columns: repeat(2, 1fr); }
  .course-block-zone .wp-block-columns { grid-template-columns: 1fr; }
  .course-block-zone .wp-block-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .course-block-zone .wp-block-gallery { grid-template-columns: 1fr; }
}

/* ─── PAGE / SINGLE / 404 共通 ─── */
.page-hero {
  padding: 10rem 8vw 5rem;
  background:
    linear-gradient(180deg, rgba(26,18,8,0.5) 0%, rgba(26,18,8,0.95) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(139,26,26,0.2) 0%, transparent 60%);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.page-hero-inner { max-width: 800px; }

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0.5rem 0 0;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

.page-cat {
  background: var(--crimson-dark);
  color: var(--parchment);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.1em;
}

.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 8vw;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.page-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin: 2rem 0 0.8rem;
}

.page-content p {
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--mist);
  margin-bottom: 1.2rem;
}

.page-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover { color: var(--gold-light); }

.page-content ul,
.page-content ol {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.page-content ul li::marker { color: var(--gold); }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.page-content table th {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(201,168,76,0.15);
  text-align: left;
}

.page-content table td {
  color: var(--mist);
  font-size: 0.9rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(201,168,76,0.1);
  line-height: 1.8;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(201,168,76,0.15);
  margin: 1rem 0;
}

.page-content blockquote {
  border-left: 3px solid var(--crimson);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--stone);
  font-style: italic;
}

/* Contact Form 7 */
.page-content .wpcf7-form p { margin-bottom: 1.2rem; }

.page-content .wpcf7-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.page-content .wpcf7-form input[type="text"],
.page-content .wpcf7-form input[type="email"],
.page-content .wpcf7-form input[type="tel"],
.page-content .wpcf7-form textarea {
  width: 100%;
  background: rgba(245,237,216,0.05);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.page-content .wpcf7-form input:focus,
.page-content .wpcf7-form textarea:focus { border-color: var(--gold); }

.page-content .wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

.page-content .wpcf7-form input[type="submit"] {
  background: var(--crimson);
  border: 1px solid var(--crimson-light);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  padding: 0.9rem 3rem;
  cursor: pointer;
  transition: background 0.3s;
  width: auto;
}

.page-content .wpcf7-form input[type="submit"]:hover { background: var(--crimson-light); }

.page-back {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}

@media (max-width: 600px) {
  .page-hero { padding: 8rem 5vw 4rem; }
  .page-wrap { padding: 3rem 5vw; }
}
