/* ========================================================
   天給自足実践塾 — style.css
   ======================================================== */

:root {
  --ink: #2b2620;
  --ink-soft: #5a5348;
  --cream: #faf6ee;
  --cream-deep: #f2ead9;
  --forest: #2f4a3a;
  --forest-deep: #1f3227;
  --forest-soft: #4c6b57;
  --clay: #b9713a;
  --clay-soft: #d99a5b;
  --line: #e4dbc8;
  --max-w: 1120px;
  --radius: 18px;
  --serif: "Shippori Mincho", serif;
  --sans: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

/* ---------- Scroll reveal (organic fade + rise, used across pages) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* subtle grain overlay for warmth */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: radial-gradient(circle at 1px 1px, #000 1px, transparent 0);
  background-size: 3px 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--forest-deep);
  line-height: 1.2;
}
.brand-kanji {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--forest-deep);
  white-space: nowrap;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
@media (max-width: 420px) {
  .brand { gap: 6px; }
  .brand-kanji, .brand-sub { font-size: 0.82rem; }
  .brand-sub { padding-left: 6px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a:not(.nav-cta):hover { color: var(--forest); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--clay);
  transition: right .25s ease;
}
.main-nav a:not(.nav-cta):hover::after { right: 0; }

.nav-cta {
  background: var(--forest);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
}
.nav-cta:hover { background: var(--forest-deep); }

.main-nav a.active:not(.nav-cta) {
  color: var(--forest);
  font-weight: 500;
}
.main-nav a.active:not(.nav-cta)::after { right: 0; background: var(--clay); }

/* ---------- Nav dropdown ("レジオン八ヶ岳" — stay/rental/shop/consulting) ---------- */
.nav-dropdown { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-label {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-dropdown-label:hover { color: var(--forest); }
.nav-dropdown-label::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--clay);
  transition: right .25s ease;
}
.nav-dropdown-label:hover::after,
.nav-dropdown.current .nav-dropdown-label::after { right: 0; }
.nav-dropdown.current .nav-dropdown-label { color: var(--forest); font-weight: 500; }
.nav-dropdown.current .nav-dropdown-label::after { background: var(--clay); }

.nav-dropdown-caret {
  background: none;
  border: none;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1;
}
.nav-dropdown-caret:hover { color: var(--forest); }
.nav-dropdown-caret span { display: inline-block; transition: transform .2s ease; }
.nav-dropdown.is-open .nav-dropdown-caret span { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  min-width: 170px;
  box-shadow: 0 20px 40px rgba(31,50,39,0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 700;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--cream-deep); color: var(--forest); }
.nav-dropdown-menu a.active { color: var(--forest); font-weight: 500; background: var(--cream-deep); }

.footer-nav a.active { color: #fff; text-decoration: underline; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--forest-deep);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
}
.btn-primary:hover { background: var(--clay-soft); transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fdfbf5;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(217,154,91,0.35), transparent 60%),
    linear-gradient(160deg, var(--forest-deep) 0%, var(--forest) 55%, #3a5a44 100%);
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 120px);
}
/* 八ヶ岳の稜線シルエット */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200 L0 140 L80 90 L150 130 L230 60 L320 140 L400 40 L480 120 L560 70 L650 150 L720 100 L800 150 L800 200 Z' fill='%23233d2e' fill-opacity='0.55'/%3E%3Cpath d='M0 200 L0 170 L100 150 L200 190 L300 140 L420 190 L520 150 L620 195 L720 160 L800 190 L800 200 Z' fill='%231c3225' fill-opacity='0.75'/%3E%3C/svg%3E")
    bottom / cover no-repeat;
}
/* 木漏れ日・花粉が漂うような、ごく淡い浮遊パーティクル */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.55) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,0.4) 0 1.5px, transparent 2.5px);
  background-size: 260px 260px, 340px 340px;
  background-position: 0 0, 90px 140px;
  opacity: 0.35;
  animation: driftParticles 40s linear infinite;
}
@keyframes driftParticles {
  from { background-position: 0 0, 90px 140px; }
  to   { background-position: -260px 260px, -340px 480px; }
}
.hero-inner { padding-top: 90px; padding-bottom: 90px; position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--clay-soft);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 30px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.55;
  margin: 0 0 26px;
  letter-spacing: 0.02em;
}
.hero-lead {
  max-width: 640px;
  font-size: 1rem;
  color: rgba(253,251,245,0.88);
  margin: 0 0 42px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll span {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(rgba(255,255,255,0.9), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Entrance (index.html: dynamic nature splash before home.html) ---------- */
.entrance-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fdfbf5;
  text-align: center;
}
.entrance-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--forest-deep);
}
.entrance-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: entranceFade 18s ease-in-out infinite;
}
.entrance-slide:nth-child(1) { animation-delay: 0s; }
.entrance-slide:nth-child(2) { animation-delay: 6s; filter: brightness(1.25) saturate(1.08); }
.entrance-slide:nth-child(3) { animation-delay: 12s; filter: brightness(1.22) saturate(1.1); }
@keyframes entranceFade {
  0%   { opacity: 0; transform: scale(1.04); }
  5%   { opacity: 1; }
  28%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.16); }
}
.entrance-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.03) 55%, rgba(0,0,0,0.22) 100%);
}
.entrance-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 46px 42px;
  background: rgba(15, 23, 18, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  animation: entranceContentIn 1.4s ease both;
  animation-delay: 0.3s;
}
@media (max-width: 640px) {
  .entrance-content { padding: 34px 24px; border-radius: 22px; }
}
@keyframes entranceContentIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.entrance-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--clay-soft);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 26px;
}
.entrance-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.4vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  white-space: nowrap;
}
@media (max-width: 420px) {
  .entrance-title { white-space: normal; }
}
.entrance-sub {
  font-size: clamp(1.05rem, 2.8vw, 1.5rem);
  letter-spacing: 0.14em;
  color: var(--clay-soft);
  margin: 10px 0 0;
}
.entrance-lead {
  font-size: 1.08rem;
  line-height: 1.95;
  color: rgba(253,251,245,0.92);
  margin: 0 0 36px;
}
.entrance-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.entrance-btn { font-size: 1rem; padding: 17px 36px; }

.entrance-quicklinks {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.entrance-quicklinks-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(253,251,245,0.6);
  margin-bottom: 12px;
}
.entrance-quicklinks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.entrance-quicklinks-row a {
  font-size: 0.82rem;
  color: rgba(253,251,245,0.92);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background .15s ease, border-color .15s ease;
}
.entrance-quicklinks-row a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
}
@media (max-width: 640px) {
  .entrance-title { letter-spacing: 0.02em; }
  .entrance-lead { font-size: 1rem; }
  .entrance-quicklinks { margin-top: 20px; padding-top: 16px; }
  .entrance-quicklinks-row a { font-size: 0.76rem; padding: 7px 14px; }
  /* Content can run taller than one screen here, so top-align and let it
     scroll instead of being clipped/centered. */
  .entrance-hero { align-items: flex-start; overflow-y: auto; padding: 70px 0 40px; }
  .entrance-content { margin: 0 auto; }
  /* Reserve the LINE QR badge's footprint (bottom-left, ~100px wide) so a
     pill can never land under it, independent of scroll position or
     viewport height — relying on vertical scroll math alone isn't reliable
     since this content can be shorter OR taller than the viewport. */
  .entrance-quicklinks-row { padding-left: 110px; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .entrance-slide { animation: none; opacity: 0; }
  .entrance-slide:first-child { opacity: 1; }
  .entrance-content { animation: none; opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--cream-deep); }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--clay);
  margin: 0 0 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before,
.hero-eyebrow::before {
  content: "";
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C4 8 4 16 12 22C20 16 20 8 12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C4 8 4 16 12 22C20 16 20 8 12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.85;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--forest-deep);
  margin: 0 0 26px;
  letter-spacing: 0.02em;
}
.section-lead {
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 0 50px;
}

/* ---------- Philosophy ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}
.philosophy-text p { margin: 0 0 20px; color: var(--ink-soft); }
.philosophy-text strong { color: var(--forest); }

.philosophy-quote {
  background: var(--forest-deep);
  color: #fdfbf5;
  border-radius: var(--radius);
  padding: 46px 38px;
  position: relative;
}
.philosophy-quote p:first-child {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0 0 22px;
  color: var(--clay-soft);
}
.philosophy-quote-sub {
  font-size: 0.88rem;
  color: rgba(253,251,245,0.78);
  margin: 0;
}

.mission-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: 4px;
  padding: 32px 36px;
  background: #fff;
}
.mission-box h3 {
  font-family: var(--serif);
  color: var(--forest-deep);
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.mission-box p { margin: 0; color: var(--ink-soft); }

/* ---------- Merits ---------- */
.merit-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.merit-list li {
  background: var(--cream-deep);
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 26px 30px;
  font-size: 0.95rem;
}
.merit-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--clay);
  flex-shrink: 0;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 46px;
  top: 10px; bottom: 10px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-month {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--serif);
  color: var(--forest);
  align-self: start;
}
.timeline-month span { font-size: 2rem; font-weight: 700; }
.timeline-month small { font-size: 0.8rem; }
.timeline-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--forest-deep);
  margin: 6px 0 6px;
}
.timeline-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: var(--cream-deep);
  border: 1px solid rgba(185,113,58,0.3);
  padding: 10px 18px;
  border-radius: 12px;
  margin: 0 0 12px;
}
.timeline-meta-year {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--clay);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.timeline-meta-date {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-deep);
}
.timeline-meta-days {
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .timeline-meta { padding: 9px 14px; }
  .timeline-meta-date { font-size: 1.02rem; }
}
.timeline-body p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

.timeline-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.timeline-photos img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 1.2s ease;
}
.timeline-photos a:hover img,
.timeline-photos img:hover { transform: scale(1.05); }

.curriculum-note {
  margin-top: 34px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Courses ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.course-grid--four { grid-template-columns: repeat(4, 1fr); }
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.course-card-main {
  background: var(--forest-deep);
  color: #fdfbf5;
  border-color: var(--forest-deep);
}
.course-badge {
  position: absolute;
  top: -13px; left: 32px;
  background: var(--clay);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
}
.course-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 8px 0 14px;
}
.course-card-main h3 { color: #fdfbf5; }
.course-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 26px;
  flex-grow: 0;
}
.course-card-main .course-desc { color: rgba(253,251,245,0.8); }
.course-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--clay-soft);
  margin: 0 0 24px;
}
.course-price span { font-size: 0.9rem; margin-left: 4px; color: inherit; opacity: 0.8; }
.course-card:not(.course-card-main) .course-price { color: var(--forest); }
.course-price-inquire { font-size: 1.1rem; color: var(--ink-soft) !important; }
.course-features {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.course-features li { padding-left: 20px; position: relative; color: inherit; }
.course-features li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--clay);
}
.course-card:not(.course-card-main) .course-features li { color: var(--ink-soft); }

.course-months {
  list-style: none;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--cream-deep);
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.course-months li { color: var(--ink-soft); }
.course-months li span {
  display: inline-block;
  min-width: 34px;
  font-weight: 700;
  color: var(--clay);
  margin-right: 4px;
}
.course-card-main .course-months { background: rgba(255,255,255,0.08); }
.course-card-main .course-months li { color: rgba(253,251,245,0.8); }
.course-card-main .course-months li span { color: var(--clay-soft); }
.course-note-2y {
  font-size: 0.8rem;
  color: var(--clay-soft);
  margin: -8px 0 20px;
}

.course-intro-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 34px 42px;
  background: rgba(185, 113, 58, 0.1);
  border-radius: var(--radius);
  border-left: 4px solid var(--clay);
}
.course-intro-box p {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.9;
  color: var(--forest-deep);
  font-weight: 500;
}
.course-intro-link {
  margin-top: 20px !important;
  text-align: center;
}
.course-intro-link a {
  color: var(--clay);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .course-intro-box { padding: 26px 24px; }
  .course-intro-box p { font-size: 1.08rem; line-height: 1.8; }
}

/* ---------- Price table (stay.html rates / cancellation policy) ---------- */
.price-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.92rem; }
.price-table th, .price-table td {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.price-table th { color: var(--ink-soft); }
.price-table td { color: var(--forest-deep); font-family: var(--serif); font-size: 1.05rem; }
.price-note { display: block; font-size: 0.72rem; color: var(--ink-soft); font-family: var(--sans); margin-top: 2px; }
.mission-box .price-table th, .mission-box .price-table td { color: inherit; }
.mission-box .price-table th, .mission-box .price-table td { border-bottom-color: var(--line); }

/* ---------- Legal table (shop.html: 特定商取引法に基づく表示) ---------- */
.legal-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 0.9rem; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}
.legal-table th { width: 200px; color: var(--ink-soft); }
.legal-table td { color: var(--ink); }
.legal-table a { text-decoration: underline; }
@media (max-width: 760px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td {
    display: block;
    width: auto;
  }
  .legal-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal-table th, .legal-table td { border-bottom: none; padding: 2px 0; }
  .legal-table th { color: var(--clay); font-size: 0.78rem; letter-spacing: 0.04em; }
}

/* ---------- People ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.person-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.person-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--forest);
  color: #fdfbf5;
  font-family: var(--serif);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.person-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest-deep);
  margin: 0 0 6px;
}
.person-role {
  font-size: 0.78rem;
  color: var(--clay);
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}
.person-card p:not(.person-role) { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Related ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-grid--four { grid-template-columns: repeat(4, 1fr); }
.related-grid--five { grid-template-columns: repeat(3, 1fr); }
.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.related-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--forest-deep);
  margin: 0 0 12px;
}
.related-card p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
a.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(47,74,58,0.12);
  border-color: var(--forest-soft);
}
a.related-card .hub-link { display: inline-block; margin-top: 14px; }

/* ---------- Seasons band (index: 八ヶ岳の四季) ---------- */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.season-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest-soft);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.season-photo { width: 100%; height: 140px; overflow: hidden; }
.season-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.season-chip:hover .season-photo img { transform: scale(1.06); }
.season-chip-body { padding: 22px 22px 26px; }
.season-label {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--clay);
  margin: 0;
}
.season-chip h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--forest-deep);
  margin: 8px 0 12px;
}
.season-chip p:not(.season-label) { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.season-summer { border-top-color: var(--clay); }
.season-autumn { border-top-color: var(--clay-soft); }
.season-winter { border-top-color: var(--ink-soft); }

/* ---------- Craft gallery (fermentation.html: 手づくりの品々) ---------- */
.craft-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.craft-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.craft-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.craft-item:hover img { transform: scale(1.06); }
.craft-item figcaption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--forest-deep);
  font-family: var(--serif);
  text-align: center;
}

/* ---------- Video gallery (curriculum.html: 稲刈り・きのこ狩りの様子) ---------- */
.video-gallery-group { margin-top: 28px; }
.video-gallery-label {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--forest-deep);
  margin: 0 0 14px;
}
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.video-item {
  margin: 0;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-item video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ---------- Media gallery (photo/video grid, reused across pages) ---------- */
.media-gallery-section {
  background: var(--cream);
  padding: 56px 0 64px;
}
.media-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.media-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 2;
  grid-row: span 1;
}
.media-gallery-item.is-tall { grid-row: span 2; }
.media-gallery-item img,
.media-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
  background: #000;
}
.media-gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 760px) {
  .media-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .media-gallery-item { grid-column: span 1; }
  .media-gallery-item.is-tall { grid-row: span 2; }
}

/* ---------- Shop: product cards (shop.html) ---------- */
.product-intro {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 36px;
}
.product-intro-badge {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-intro h3 { margin: 0 0 10px; }
.product-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.product-intro-tags li {
  font-size: 0.8rem;
  color: var(--forest);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}
.product-intro-base {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.product-intro-base strong { color: var(--forest); font-weight: 500; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 14px 30px rgba(31, 50, 39, 0.1); transform: translateY(-3px); }
.product-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.product-card:hover .product-photo img { transform: scale(1.06); }
.product-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-num { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--clay); }
.product-body h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  margin: 2px 0 8px;
  color: var(--forest-deep);
}
.product-desc { font-size: 0.86rem; color: var(--ink-soft); margin: 0; flex: 1; }
.product-price {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--forest);
}
.product-price span { font-size: 0.76rem; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }

.product-set-box {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: var(--forest-deep);
  color: #fdfbf5;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.product-set-box img { width: 150px; height: 150px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.product-set-box .product-set-info { flex: 1; min-width: 220px; }
.product-set-box h3 { color: #fff; margin: 0 0 6px; font-family: var(--serif); }
.product-set-price { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--clay-soft); margin: 4px 0; }
.product-set-note { font-size: 0.84rem; color: rgba(253,251,245,0.78); margin: 0; line-height: 1.8; }

.product-order-box {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.product-order-box h3 { margin: 0 0 12px; }
.product-order-steps { margin: 0 0 20px; padding-left: 1.3em; font-size: 0.88rem; color: var(--ink-soft); line-height: 2; }
.product-order-note { font-size: 0.82rem; color: var(--ink-soft); margin: 10px 0 0; }
.line-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06C755;
  color: #fff;
  font-weight: 500;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  transition: filter .15s ease, transform .15s ease;
}
.line-order-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
.product-table th, .product-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.product-table th { width: 40%; }
.product-table .product-table-name { font-family: var(--serif); color: var(--forest-deep); font-weight: 700; }
.product-table .product-table-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--clay);
  border: 1px solid var(--clay);
  border-radius: 999px;
  padding: 1px 9px;
  margin-left: 8px;
  vertical-align: middle;
}
.product-table-price { font-family: var(--serif); font-weight: 700; color: var(--forest); white-space: nowrap; }
.product-table-ingredients { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .product-table th { display: none; }
  .product-table td { display: block; padding: 4px 6px; border-bottom: none; }
  .product-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .product-table-price { margin: 2px 0 6px; display: block; }
}

/* ---------- Art gallery (uncropped, for artwork with varied aspect ratios) ---------- */
.art-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.art-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.art-item img {
  width: 100%;
  height: auto;
  display: block;
}
.art-item figcaption {
  padding: 18px 20px 22px;
}
.art-item-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--forest-deep);
  font-family: var(--serif);
  text-align: center;
}
.art-item-desc {
  margin: 0 0 14px;
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.art-item-price {
  margin: 0;
  font-size: 0.95rem;
  color: var(--clay);
  font-family: var(--serif);
  text-align: center;
}

/* ---------- Menu items (café menu: photo + name/tags/desc/price) ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.menu-item {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.menu-item img {
  width: 160px;
  min-width: 160px;
  height: auto;
  object-fit: cover;
  display: block;
}
.menu-item-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-item-body h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.menu-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--sans);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--forest-soft);
  color: #fff;
  letter-spacing: 0.03em;
}
.menu-tag--allergen { background: var(--clay-soft); }
.menu-item-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.menu-item-price {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--clay);
  margin: 4px 0 0;
}
@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-item { flex-direction: column; }
  .menu-item img { width: 100%; height: 180px; }
}

/* ---------- Weekly closed-day pattern ---------- */
.week-pattern-title {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--forest-deep);
  margin: 28px 0 12px;
}
.week-pattern {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 520px;
  margin: 0 auto;
}
.week-pattern-day {
  text-align: center;
  padding: 14px 4px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.week-pattern-day .wd-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.week-pattern-day .wd-mark {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--forest-deep);
}
.week-pattern-day.is-closed {
  background: var(--cream-deep);
  border-color: var(--clay-soft);
}
.week-pattern-day.is-closed .wd-mark { color: var(--clay); }

/* ---------- Monthly event/closure calendar ---------- */
.event-calendar-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 24px;
}
.event-calendar-head span {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-bottom: 6px;
}
.event-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day {
  min-height: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.cal-day.cal-empty { background: transparent; border-color: transparent; }
.cal-date {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--forest-deep);
  font-size: 0.95rem;
}
.cal-day.cal-closed { background: var(--cream-deep); }
.cal-day.cal-closed .cal-date { color: var(--clay); }
.cal-day.cal-event { background: var(--clay); border-color: var(--clay); color: #fff; }
.cal-day.cal-event .cal-date { color: #fff; }
.cal-label {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
  font-size: 0.7rem;
}
.event-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.legend-chip { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--line);
}
.legend-swatch--open { background: #fff; }
.legend-swatch--closed { background: var(--cream-deep); border-color: var(--clay-soft); }
.legend-swatch--event { background: var(--clay); border-color: var(--clay); }

@media (max-width: 640px) {
  .cal-day { min-height: 68px; padding: 6px 4px; font-size: 0.66rem; }
  .cal-date { font-size: 0.82rem; }
  .cal-label { font-size: 0.6rem; }
  .event-calendar-head span { font-size: 0.68rem; }
  .week-pattern-day { padding: 10px 2px; }
  .week-pattern-day .wd-label { font-size: 0.68rem; }
}

/* ---------- Video embed ---------- */
.video-embed {
  max-width: 720px;
  margin: 32px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(31,50,39,0.18);
}
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

/* ---------- Photo bands (full-bleed, no frame — ilpleut参考) ---------- */
.photo-band {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s ease;
}
.photo-band:hover img { transform: scale(1.045); }
/* 森の色に馴染ませる、ごく淡いビネット */
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(31,50,39,0.16) 0%, transparent 20%, transparent 78%, rgba(31,50,39,0.2) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(31,50,39,0.12) 100%);
}
.photo-band--short { height: 340px; }

.photo-caption-band { width: 100%; }
.photo-caption-band--night {
  background: var(--forest-deep);
  background-image:
    radial-gradient(1.6px 1.6px at 8% 35%, rgba(255,255,255,.9) 60%, transparent),
    radial-gradient(1.2px 1.2px at 22% 70%, rgba(255,255,255,.8) 60%, transparent),
    radial-gradient(1.6px 1.6px at 38% 20%, rgba(255,255,255,.9) 60%, transparent),
    radial-gradient(1.2px 1.2px at 55% 65%, rgba(255,255,255,.8) 60%, transparent),
    radial-gradient(1.6px 1.6px at 68% 30%, rgba(255,255,255,.9) 60%, transparent),
    radial-gradient(1.2px 1.2px at 80% 75%, rgba(255,255,255,.8) 60%, transparent),
    radial-gradient(1.6px 1.6px at 92% 45%, rgba(255,255,255,.9) 60%, transparent);
}
.photo-caption-band--night .photo-caption { color: rgba(253,251,245,0.85); }

.photo-pair {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
}
.photo-pair .photo-band { height: 420px; }
.photo-pair .photo-band:last-child { margin-top: 64px; height: 356px; }

.photo-caption {
  padding: 14px 28px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---------- Hub cards (index) ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.hub-grid-5 { grid-template-columns: repeat(3, 1fr); }
.hub-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hub-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(47,74,58,0.12);
  border-color: var(--forest-soft);
}
.hub-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--clay);
  letter-spacing: 0.08em;
}
.hub-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest-deep);
  margin: 10px 0 12px;
}
.hub-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.92rem; }
.hub-link { font-size: 0.85rem; color: var(--forest); }
.hub-card-featured {
  grid-column: 1 / -1;
  background: var(--forest-deep);
  padding: 44px;
}
.hub-card-featured:hover { border-color: var(--forest-deep); }
.hub-card-featured .hub-num { color: var(--clay-soft); }
.hub-card-featured h3 { color: #fdfbf5; font-size: 1.6rem; }
.hub-card-featured p { color: rgba(253,251,245,0.85); font-size: 1rem; max-width: 640px; }
.hub-card-featured .hub-link { color: var(--clay-soft); font-weight: 700; }
.hub-card-featured-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--forest-deep);
  background: var(--clay-soft);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 10px;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--forest-deep) 0%, var(--forest) 100%);
  color: #fdfbf5;
  padding: 150px 0 70px;
}
.page-hero .section-eyebrow { color: var(--clay-soft); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 18px;
}
.page-hero p {
  max-width: 620px;
  color: rgba(253,251,245,0.85);
  margin: 0;
}

/* ---------- Contact teaser (index) ---------- */
.contact-teaser { text-align: center; }
.contact-teaser .section-title { margin-left: auto; margin-right: auto; }
.contact-teaser .section-lead { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Floating LINE QR badge ---------- */
.line-qr-fixed {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(31, 50, 39, 0.22);
  text-decoration: none;
  transition: transform .15s ease;
}
.line-qr-fixed:hover { transform: translateY(-2px); }
.line-qr-fixed img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 8px;
}
.line-qr-fixed span {
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .line-qr-fixed { left: 10px; bottom: 10px; padding: 6px; }
  .line-qr-fixed img { width: 78px; height: 78px; }
  .line-qr-fixed span { font-size: 0.62rem; }
  /* On a phone you can't scan your own screen, so make the tap action explicit */
  .line-qr-fixed span::after {
    content: "タップで追加 →";
    display: block;
    margin-top: 2px;
    font-size: 0.6rem;
    font-weight: 500;
    color: #06C755;
  }
}
@media (max-height: 760px) {
  /* The entrance page has no header, so on short viewports its badge can
     safely move to the top-right, clear of the centered hero content.
     Scoped to the entrance page only — other pages have a hamburger menu
     in that corner the badge must not collide with instead. */
  .line-qr-fixed--entrance { left: auto; right: 10px; top: 10px; bottom: auto; }
}

/* ---------- Breadcrumb-ish page nav (prev/next) ---------- */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  font-size: 0.88rem;
}
.page-nav a { text-decoration: none; color: var(--forest); }
.page-nav a:hover { color: var(--clay); }

/* ---------- Prayer ---------- */
.prayer-section {
  background: var(--forest-deep);
  color: #fdfbf5;
  padding: 100px 0;
  text-align: center;
}
.prayer-text {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 2.1;
  margin: 0 0 24px;
  color: var(--clay-soft);
}
.prayer-text-sub {
  font-size: 0.92rem;
  color: rgba(253,251,245,0.75);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-wrap { text-align: left; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 10px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-decoration: none;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--forest-deep);
  margin: 0 0 12px;
}
.contact-card p { margin: 0 0 6px; font-size: 0.92rem; color: var(--ink-soft); }
.contact-card a { text-decoration: underline; }
.contact-card-line {
  background: var(--forest);
  color: #fff;
}
.contact-card-line h3, .contact-card-line p { color: #fff; }
.contact-card-line:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(47,74,58,0.25); }
.contact-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--clay-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(253,251,245,0.7);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  font-family: var(--serif);
  color: #fdfbf5;
  margin: 0 0 4px;
}
.footer-copy { margin: 0 0 4px; font-size: 0.78rem; }
.footer-copy a { color: var(--clay-soft); text-decoration: underline; }
.footer-copy a:hover { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.82rem; }
.footer-nav a { text-decoration: none; white-space: nowrap; }
.footer-nav a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .related-grid, .related-grid--four, .related-grid--five { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .merit-list { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .seasons-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-pair { grid-template-columns: 1fr; }
  .photo-pair .photo-band:last-child { margin-top: 0; height: 340px; }
  .photo-band { height: 320px; }
}

@media (max-width: 1120px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    z-index: 600;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(31, 50, 39, 0.18);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav a {
    width: 100%;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .main-nav a:last-of-type { border-bottom: none; }
  .nav-cta { margin-top: 10px; text-align: center; }

  /* dropdown becomes a plain, always-expanded grouped section in the mobile menu */
  .nav-dropdown { width: 100%; display: block; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
  .nav-dropdown-label {
    display: block;
    width: 100%;
    padding: 12px 4px 4px;
    font-size: 1rem;
    color: var(--ink-soft);
  }
  .nav-dropdown-label::after { display: none; }
  .nav-dropdown-caret { display: none; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
  .nav-dropdown-menu a {
    width: 100%;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    border-radius: 0;
  }
  .nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: none; }

  /* dim backdrop behind the open menu, tap to close */
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: 76px;
    background: rgba(31, 50, 39, 0.35);
    z-index: 550;
  }
  .nav-backdrop.open { display: block; }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 601;
  }
  /* animate hamburger -> close (X) */
  .nav-toggle span { transform-origin: center; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .section { padding: 74px 0; }
  .seasons-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 64px 1fr; gap: 16px; }
  .timeline-month { width: 64px; height: 64px; }
  .timeline-month span { font-size: 1.4rem; }
  .timeline::before { left: 32px; }
}
