/* =========================================================
   道のオアシス神泉 — 共通スタイル(宿ベース・瀬青パレット)
   ========================================================= */

:root {
  --ink: #172026;
  --ink-deep: #0c1216;
  --sumi: #22303a;
  --awa-sumi: #5a6870;
  --kinari: #f2f2ec;
  --washi: #f8f8f3;
  --paper: #e6eae5;
  --kei: #c0c9c6;
  --kei-thin: #d6ddd9;
  --koke: #3a5560;      /* 瀬青(神流川の青碧) */
  --koke-deep: #2b4149;
  --shu: #a2555f;       /* 冬桜紅（落款用） */

  --serif-jp: "Noto Serif JP", "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  /* 読み込み待ちは大きさを合わせた代替を使う(文字が動くのを防ぐ。fonts.css参照) */
  --serif-en: "Cormorant Garamond", "EB Garamond",
              "Cormorant Fallback", "Cormorant Fallback 2", Georgia, serif;
  --sans-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--kinari);
  color: var(--ink);
  font-family: var(--serif-jp);
  font-weight: 300;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 文字の折り返しを自然にする(2026-08-21。宿HPと同じ直し)。
   句読点を行頭に置かない/日本語は文節で折り返す/最終行に1〜2文字だけ残さない */
p, li, dd, dt, td, th, figcaption, blockquote, label, .note {
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}
h1, h2, h3, h4 {
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: balance;
}

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

/* Fine hairline */
.hair {
  border: 0;
  border-top: 1px solid var(--kei);
  margin: 0;
}

/* Utility */
.en {
  font-family: var(--serif-en);
  font-weight: 400;
  letter-spacing: 0.12em;
}
.en-sans {
  font-family: var(--sans-en);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}
.tategaki {
  writing-mode: vertical-rl;
  font-feature-settings: "vpal";
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================
   Header — 極細のトップナビ
   ========================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.6s ease, color 0.6s ease, backdrop-filter 0.6s ease,
              transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-header.on-image {
  color: var(--washi);
}
.site-header.scrolled {
  background: rgba(242, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-bottom: 1px solid rgba(192, 201, 198, 0.5);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.3em;
}
.brand .en-sans {
  opacity: 0.75;
  font-size: 10px;
}
.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  align-items: center;
}
.nav a {
  font-size: 13px;
  letter-spacing: 0.24em;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s ease, left 0.4s ease;
}

.nav .en-sans { font-size: 10px; opacity: 0.7; display: block; margin-top: 2px; }
.nav-item { text-align: center; line-height: 1.3; }

.reserve-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid currentColor;
  font-size: 12px;
  letter-spacing: 0.28em;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ==========================================
   Section base
   ========================================== */
section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--awa-sumi);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--kei);
}

.section-title {
  font-family: var(--serif-en);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 12px 0;
  color: var(--ink);
}
.section-title-jp {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.4em;
  color: var(--sumi);
  margin: 0 0 40px 0;
}

.lead {
  font-size: 15px;
  line-height: 2.2;
  color: var(--sumi);
  max-width: 42em;
  font-weight: 300;
}

/* ==========================================
   Seal / 落款
   ========================================== */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--shu);
  color: var(--shu);
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  position: relative;
  background: rgba(162, 85, 95, 0.02);
}
.seal::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid var(--shu);
  opacity: 0.35;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
  background: var(--ink-deep);
  color: var(--kinari);
  padding: 96px var(--gutter) 40px;
  margin-top: 120px;
  font-weight: 300;
}
.site-footer .footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
}
.site-footer h4 {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 20px 0;
  color: var(--kinari);
  opacity: 0.9;
}
.site-footer h4 .jp {
  display: block;
  font-family: var(--serif-jp);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-top: 6px;
  opacity: 0.6;
}
.site-footer ul {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 13px;
  line-height: 2.2;
}
.site-footer ul a {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.site-footer .brand-block .en {
  font-size: 28px;
  font-style: italic;
}
.site-footer .brand-block p {
  opacity: 0.6;
  font-size: 13px;
  line-height: 2;
  margin: 16px 0 0;
}
.footer-bottom {
  max-width: var(--max);
  margin: 80px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(242, 242, 236, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.5;
}
@media (max-width: 800px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ==========================================
   Webフォント確定ゲート（文字の詰め直しを見せない）
   ・フォント読み込み完了(または1.2秒)まで大型テキストを透明にし、
     確定後に reveal と同じトーンでふわっと表示する
   ・JS無効時は .js が付かないので常に表示（フェイルセーフ）
   ========================================== */
.js .hero-inner,
.js .page-hero-inner,
.js .hero-nav,
.js .brand {
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js.fonts-loading .hero-inner,
.js.fonts-loading .page-hero-inner,
.js.fonts-loading .hero-nav,
.js.fonts-loading .brand {
  opacity: 0;
}
/* ページ全体のゲート(2026-08-07)
   ヒーローと屋号だけを隠していたが、本文も代替フォントで一度描かれてから
   入れ替わるため「文字が縮む・横に広がる」が残っていた。読み込みがそろうまで
   ページごと隠し、そろってからふわりと出す。
   ・JSが無ければ .js が付かないのでそのまま表示(安全側)
   ・1.2秒で必ず表示に倒す保険はスクリプト側にある(真っ白のまま止めない) */
.js body {
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js.fonts-loading body {
  opacity: 0;
}
/* 動きを減らす設定の環境では、ゲートもフェードも使わず常時表示(安全側) */
@media (prefers-reduced-motion: reduce) {
  .js .hero-inner, .js .page-hero-inner, .js .hero-nav, .js .brand { transition: none; }
  .js.fonts-loading .hero-inner,
  .js.fonts-loading .page-hero-inner,
  .js.fonts-loading .hero-nav,
  .js.fonts-loading .brand { opacity: 1; }
  .js body { transition: none; }
  .js.fonts-loading body { opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  .hero-slide.active { animation: none; }
}

/* ==========================================
   Reveal on scroll (fade + slight rise)
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* ==========================================
   Chapter divider（章仕切り）
   ========================================== */
.chapter {
  padding: 80px 0;
  text-align: center;
  background: var(--kinari);
}
.chapter-line {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  color: var(--awa-sumi);
  /* スマホで飾り線が画面幅を突き破らないように(2026-07-10 横はみ出し修正) */
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}
.chapter-line hr {
  /* 幅120pxを上限に、狭い画面では縮む */
  flex: 0 1 120px;
  min-width: 24px;
  border: 0;
  border-top: 1px solid var(--kei);
  margin: 0;
}
@media (max-width: 480px) {
  .chapter-line { gap: 20px; }
}
.chapter-line .kanji {
  font-family: var(--serif-jp);
  font-size: 14px;
  letter-spacing: 1em;
  padding-left: 1em;
}
.chapter-line .roman {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 20px;
}

/* ==========================================
   Feature（画像＋テキストの2カラム帯）
   トップページとサブページ（湯処詳細など）で共用
   ========================================== */
.feature {
  padding: 120px 0;
  background: var(--kinari);
}
.feature.alt {
  background: var(--paper);
}
.feature-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature.reverse .feature-image { order: 2; }
.feature.reverse .feature-text  { order: 1; }
.feature-image {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  position: relative;
}
.feature-number {
  position: absolute;
  top: -10px; left: -20px;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: 88px;
  line-height: 1;
  color: var(--awa-sumi);
  opacity: 0.4;
  background: var(--kinari);
  padding: 0 8px;
}
.feature.alt .feature-number { background: var(--paper); }
.feature-text .eyebrow { margin-bottom: 24px; }
.feature-text h3 {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.05;
  margin: 0 0 8px 0;
  color: var(--ink);
}
.feature-text h3 .jp {
  display: block;
  font-family: var(--serif-jp);
  font-style: normal;
  font-size: 17px;
  letter-spacing: 0.5em;
  color: var(--sumi);
  margin-top: 14px;
  font-weight: 400;
}
.feature-text p {
  font-size: 15px;
  line-height: 2.2;
  color: var(--sumi);
  margin: 32px 0;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.05em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.4s ease;
}

.feature-link::after {
  content: "→";
  font-style: normal;
  font-family: var(--serif-jp);
}
@media (max-width: 900px) {
  .feature-inner { grid-template-columns: 1fr; gap: 50px; }
  .feature.reverse .feature-image { order: 0; }
}

/* ==========================================
   電話リンク・注記
   ========================================== */
a.tel-link { border-bottom: 1px dotted currentColor; }
.note-center {
  text-align: center;
  padding: 40px 0 120px;
  color: var(--awa-sumi);
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.3em;
  line-height: 2.4;
}

/* ==========================================
   モバイルナビ（ハンバーガー）
   ========================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 14, 16, 0.96);
  color: var(--washi);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 上下に余白を作る(2026-08-21 オーナー指摘「上下いっぱいすぎる」)。
     ・行の高さと間隔を詰めて、項目の並び全体を短くする
     ・上下に必ず余白を残す(padding)
     ・flex-start + 上下 auto の余白で「入るときは中央・入らないときは
       上から順に出す」。justify-content:center だと入りきらないとき
       上が切れて触れなくなる */
  justify-content: flex-start;
  gap: 6px;
  padding: 84px var(--gutter) 52px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav > :first-child { margin-top: auto; }
.mobile-nav > :last-child { margin-bottom: auto; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header {
  color: var(--washi);
  z-index: 110;   /* オーバーレイ(100)の上に出す。50のままだと×がオーバーレイに覆われ押せない */
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  /* ヘッダーの「何も無いところ」は指を通す(2026-08-21。宿HPと同じ直し)。
     メニューより前に出しているため、ヘッダーに重なるいちばん上の項目が
     見えているのに押せなくなっていた。×ボタンとロゴは押せるまま */
  pointer-events: none;
}
body.nav-open .site-header .nav-toggle,
body.nav-open .site-header .brand-logo-link,
body.nav-open .site-header .brand,
body.nav-open .site-header a,
body.nav-open .site-header button {
  pointer-events: auto;
}
.mobile-nav a {
  font-family: var(--serif-jp);
  font-size: 17px;
  letter-spacing: 0.4em;
  text-align: center;
  /* 押せる範囲を横いっぱいに広げる(2026-08-21。宿HPと同じ直し)。
     中央寄せのため、リンクの幅が文字の分しかなく、短い項目は押しにくかった */
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 11px 0;
  line-height: 1.35;   /* 本文の1.9のままだと1項目が高すぎて画面いっぱいになる */
}
.mobile-nav a .en-sans {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  opacity: 0.6;
  margin-top: 3px;
}
.mobile-nav .reserve-btn {
  margin-top: 18px;
  font-size: 13px;
}
.mobile-nav .mobile-tel {
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: 0.15em;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .brand { letter-spacing: 0.18em; }
}

/* 中間幅での折り返し防止 */
@media (max-width: 1080px) {
  .brand .en-sans { display: none; }
  .nav { gap: 16px; }
  .nav a { letter-spacing: 0.14em; }
}

/* ==========================================
   キャンプ場サイト固有の部品
   ========================================== */
.text-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--koke-deep);
  border-bottom: 1px solid var(--kei);
  padding-bottom: 3px;
}

.tax-note { font-size: 12px; color: var(--awa-sumi); letter-spacing: 0.08em; margin: 0 0 24px; }
.muted-lead { color: var(--awa-sumi); font-size: 13px; letter-spacing: 0.1em; }

.price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.price-table td { padding: 9px 8px; border-bottom: 1px solid var(--kei-thin); vertical-align: top; }
.price-table td.pr { text-align: right; white-space: nowrap; font-weight: 600; }
.price-table td.nt { color: var(--awa-sumi); font-size: 12px; width: 38%; }

.thumb-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.thumb-row img { width: calc(25% - 6px); min-width: 90px; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }

.map-image { text-align: center; }
.map-image img { max-width: 100%; height: auto; border: 1px solid var(--kei-thin); border-radius: 6px; background: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.flow-list { list-style: none; margin: 0; padding: 0; }
.flow-list li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--kei-thin); }
.flow-num { font-size: 26px; color: var(--koke); min-width: 48px; letter-spacing: 0.05em; }
.flow-body h4 { margin: 2px 0 8px; font-size: 16px; letter-spacing: 0.14em; }
.flow-body p { margin: 0; font-size: 13.5px; line-height: 2; color: var(--sumi); }

.rental-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.rental-group h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.2em; color: var(--koke-deep);
  border-left: 3px solid var(--koke); padding-left: 10px; }

.shop-list { margin-top: 30px; }
.shop-item { padding: 16px 0; border-bottom: 1px solid var(--kei-thin); }
.shop-item h4 { margin: 0 0 4px; font-size: 15px; letter-spacing: 0.12em; }
.shop-item .addr { font-size: 11px; color: var(--awa-sumi); letter-spacing: 0.06em; }
.shop-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--sumi); }

.route-figure { margin: 16px 0 0; }
.route-figure img { max-width: 320px; width: 100%; border-radius: 4px; }
.route-figure figcaption { font-size: 11px; color: var(--awa-sumi); margin-top: 6px; }

/* トップはナビをヒーロー下部バーに出すため、上部ヘッダーはロゴのみ(デスクトップ) */
.site-header.index-header .nav { display: none; }
.site-header.index-header .nav-toggle { display: flex; color: var(--washi); }
.site-header.index-header.scrolled .nav-toggle { color: var(--ink); }

/* ==========================================
   画面張り付きの予約ボタン(全ページ)
   ========================================== */
.fixed-reserve {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 26px 11px;
  background: rgba(248, 248, 243, 0.96);
  color: var(--koke-deep);
  border: 1px solid var(--kei);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(12, 18, 22, 0.22);
  text-align: center;
  transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease;
}

.fixed-reserve .fr-label {
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.fixed-reserve .fr-note {
  font-size: 8.5px;
  letter-spacing: 0.24em;
  opacity: 0.75;
}
@media (max-width: 800px) {
  .fixed-reserve { right: 12px; bottom: 12px; padding: 11px 20px 9px; }
  .fixed-reserve .fr-label { font-size: 12px; }
}
body.nav-open .fixed-reserve { display: none; }   /* 全画面ナビ表示中は隠す */

/* 背景画像のフェード(2026-08-07)
   写真は role="img" の要素に背景として敷いている。読み込みが終わった瞬間に
   ぱっと出る・上から半分だけ出る、という見え方になっていた。
   読み終わってからじんわり出す。JSが無ければクラスが付かないのでそのまま表示。 */
.js .bgfade { opacity: 0; transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .bgfade.bgfade-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .bgfade { opacity: 1; transition: none; }
}

/* =========================================================
   間（ま）— スクロールの所作
   ---------------------------------------------------------
   考え方: 動きの「量」は今より減らし、「順番」だけを設計する。
   既存の .reveal（24px上がってフェード）と写真フェード（.bgfade）は
   置き換えない。上から遅延と、写真以外の細い罫だけを足す。

   守っている約束:
   ・動かすのは transform と opacity だけ（レイアウトを再計算させない）
   ・要素を隠すクラス（.ma-item / .ma-kei / .ma-sumi）は JSが付けたときだけ
     効く。JSが読めない・途中で止まった環境では何も隠れない
   ・prefers-reduced-motion では全部止まり、かつ全部見えている（最下部）
   ・追加リクエストゼロ（このファイルの末尾に足すだけ・画像もフォントも増えない）
   ========================================================= */

:root {
  /* 既存の .reveal と同じイージング。サイト全体の手ざわりを揃える */
  --ma-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ma-dur:  1.15s;   /* 現れ切るまで */
  --ma-step: 0.10s;   /* 隣り合う要素のずれ ＝ これが「間」 */
  --ma-cap:  0.45s;   /* ずれの上限（実時間）。これ以上は「遅いサイト」になる */
  --ma-rise: 12px;    /* 立ち上がる高さ。既存24pxより小さくする＝上品 */
  --ma-kei-dur: 1.20s;/* 罫が引かれる速さ */
}

/* ---- ページごとの表情 ------------------------------------
   仕掛けは全ページ共通。数字だけを差し替えて空気を変える。
   data-page は build 時にテンプレートが出力する（JSでは付けない＝
   パース直後の再計算とチラつきを作らないため）。
   未定義のページは :root の既定値で動く＝新規ページでも壊れない。 */
html[data-page="index"]    { --ma-step:.09s; --ma-rise:12px; --ma-dur:1.10s; }
html[data-page="about"]    { --ma-step:.10s; --ma-rise:10px; --ma-dur:1.25s; }
html[data-page="tent"],
html[data-page="bungalow"] { --ma-step:.11s; --ma-rise:10px; --ma-dur:1.30s; }
html[data-page="rental"]   { --ma-step:.08s; --ma-rise:9px;  --ma-dur:1.15s; }
html[data-page="around"]   { --ma-step:.07s; --ma-rise:14px; --ma-dur:1.05s; --ma-kei-dur:0.9s; }
html[data-page="guide"],
html[data-page="access"],
html[data-page="contact"]  { --ma-step:.05s; --ma-rise:6px;  --ma-dur:0.90s; --ma-kei-dur:1.0s; }

/* 画面を細くすると横並びは縦積みになり、「ずれ」は誰にも見えず遅延だけが残る。
   スマホでは間を詰める（JS側でも縦積みのグループは対象から外している）。 */
@media (max-width: 700px) {
  html[data-page] { --ma-step: .05s; --ma-cap: .25s; }
}

/* =========================================================
   一．間積み（stagger）— 隣り合うものを、ひと呼吸ずつずらして座らせる
   ・対象は「一画面に複数が同時に見える横並び」だけ（JS側で判定）
   ・.ma.ma と二重に書いているのは base.css の .reveal.delay-1〜3 に
     確実に後勝ちさせるため。!important は使わない（後から壊れにくい）
   ・遅延は必ず --ma-cap で頭打ちにする。site.js は写真を読み終えてから
     .in を付けるので、CSSの遅延はその待ち時間に上乗せされる。
     上限を切らないと「間」ではなく「安いサーバー」に見える。
   ========================================================= */
.ma.ma > .reveal,
.ma.ma > .ma-item {
  transition-delay: min(calc(var(--ma-i, 0) * var(--ma-step)), var(--ma-cap));
}
.ma.ma > .reveal {
  transition-duration: var(--ma-dur), var(--ma-dur);
}
/* 立ち上がる高さを既存24pxから抑える。.ma の外の .reveal には触らない */
.ma.ma > .reveal:not(.in) { transform: translateY(var(--ma-rise)); }

/* 初期表示で既に画面内にあるグループは、ずれをほぼ殺す。
   ここを遅らせると LCP（最初の大きな要素が出る時刻）が直接後ろへ動く。 */
.ma.ma-first { --ma-step: .03s; --ma-cap: .09s; }

/* .reveal を持たない子を「間」に乗せるための最小クラス。
   このクラスは JSが付けたときだけ存在する＝JSが動かなければ何も隠れない。 */
.ma-item {
  opacity: 0;
  transform: translateY(var(--ma-rise));
  transition: opacity var(--ma-dur) var(--ma-ease),
              transform var(--ma-dur) var(--ma-ease);
}
.ma-item.in { opacity: 1; transform: none; }

/* =========================================================
   二．罫を引く — 小見出しの短い線と、章仕切りの飾り罫
   写真には罫を差さない。写真そのものが opacity 0 から出るので、
   その中に置いた線は「写真より先」には物理的に出られないため。
   代わりに、写真の外にある既存の罫（.eyebrow::before / .chapter-line hr）を
   引く。要素を増やさない＝DOMもバイトも増えない。
   ========================================================= */
.ma-kei.eyebrow::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ma-kei-dur) var(--ma-ease) .06s;
}
.ma-kei.eyebrow.in::before { transform: scaleX(1); }

/* 章仕切りは、中央の漢数字から左右へ開くように引く */
.chapter-line hr.ma-kei {
  transform: scaleX(0);
  transition: transform 1.4s var(--ma-ease);
}
.chapter-line hr.ma-kei:first-child { transform-origin: right center; }
.chapter-line hr.ma-kei:last-child  { transform-origin: left  center; }
.chapter-line hr.ma-kei.in { transform: scaleX(1); }

/* =========================================================
   三．品書き罫 — 行の罫が左から引かれ、「書き込まれていく」ように見える
   写真の無いページ（お食事・ご案内・アクセス）を退屈にしないための所作。
   ・文字は一切隠さない。既存の細い罫の上に、少し濃い1pxを重ねて引くだけ
   ・だから引かれなくても見た目は今のまま＝事故が起きない
   ========================================================= */
.ma-shina { position: relative; }
.ma-shina::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--kei);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ma-kei-dur) var(--ma-ease);
  pointer-events: none;
}
.ma-shina.in::after { transform: scaleX(1); }
.ma-shina-bottom::after { bottom: -1px; }   /* border-bottom の上に重ねる */
.ma-shina-top::after    { top: -1px; }      /* border-top の上に重ねる */

/* =========================================================
   四．写真の据わり — 0.988倍から等倍へ、ゆっくり落ち着く
   ・「ズーム」ではなく「据わる」。必ず1倍以下から入るので
     隣の余白を踏まず、overflow:hidden の追加も要らない
   ・対象は JS が選ぶ（.reveal と兼ねる写真・ページヒーロー・
     トップのスライドは除外）。.reveal と transform を取り合わない
   ========================================================= */
.js [role="img"].bgfade.ma-suwari {
  transform: scale(0.988);
  /* base.css の .js .bgfade はショートハンドで transition-property を
     opacity だけにしている。ここで transform を明示的に足し直す。 */
  transition: opacity 0.9s var(--ma-ease),
              transform 2.4s var(--ma-ease);
}
.js [role="img"].bgfade.ma-suwari.bgfade-in { transform: scale(1); }

/* =========================================================
   五．墨落ち — 縦書きのひと言が、上から静かに降りて座る
   一字ずつには割らない（コピペ・読み上げ・禁則・行折れが壊れるため）。
   行まるごとを一度だけ動かす。対象はトップの写真脇のキャプション1箇所。
   ========================================================= */
.ma-sumi { overflow: hidden; }
.ma-sumi > .ma-sumi-i {
  display: block;
  opacity: 0;
  transform: translateY(-104%);
  transition: transform 1.25s var(--ma-ease), opacity .9s var(--ma-ease);
}
.ma-sumi.in > .ma-sumi-i { opacity: 1; transform: none; }

/* =========================================================
   六．落款 — 引用の下で、印がすとんと決まる
   跳ね返さない・回さない。ブランドマークが跳ねると一気に品が落ちる。
   opacity は触らない（親の .reveal のフェードと二重にしない）。
   ========================================================= */
.ma-han {
  transform: scale(1.07);
  transition: transform 1.0s var(--ma-ease) .15s;
}
.ma-han.in { transform: none; }

/* =========================================================
   動きを減らす設定 — すべて止め、すべて見えている状態に倒す
   （JS側も冒頭で退散するが、途中で設定を変えた場合のための二重の保険）
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .ma.ma > .reveal,
  .ma.ma > .ma-item { transition: none; transition-delay: 0s; }
  .ma.ma > .reveal:not(.in) { transform: none; }
  .ma-item { opacity: 1; transform: none; transition: none; }
  .ma-kei.eyebrow::before,
  .chapter-line hr.ma-kei,
  .ma-shina::after { transform: none; transition: none; }
  .ma-sumi { overflow: visible; }
  .ma-sumi > .ma-sumi-i { opacity: 1; transform: none; transition: none; }
  .ma-han { transform: none; transition: none; }
  .js [role="img"].bgfade.ma-suwari { transform: none; transition: none; }
}

/* 指で触る端末ではホバーを使わない(2026-08-21。宿HPと同じ直し)。
   スマホでは1回目のタップがホバー扱いになり、二度押しが必要になっていた。 */
/* =========================================================
   間（ま）その二 — 所作をもう少し（2026-08-21）
   ---------------------------------------------------------
   ・ここで足す仕掛けは :hover を一度も使わない。
     指で触る端末では1回目のタップがホバー扱いになり、
     「2回押さないと反応しない」が起きるため。
     マウス向けの飾りは、このファイル末尾の
     @media (hover: hover) and (pointer: fine) の中だけに置く。
   ・押した手応えは :active に filter を当てる。
     transform や opacity は他の所作（間積み・フェード）が
     使っているので、取り合うと動きが壊れる。filter は誰も使っていない。
   ・動きを減らす設定のときは、いちばん下でまとめて止める。
   ========================================================= */

/* ---- 七．戸の開け閉て — メニューが下から段になって開く ----
   閉じるときは遅延なしで一斉に戻す（開くときだけ順番をつける）。 */
.mobile-nav > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: 0s;
}
body.nav-open .mobile-nav > * { opacity: 1; transform: none; }
body.nav-open .mobile-nav > *:nth-child(1) { transition-delay: 0.10s; }
body.nav-open .mobile-nav > *:nth-child(2) { transition-delay: 0.16s; }
body.nav-open .mobile-nav > *:nth-child(3) { transition-delay: 0.22s; }
body.nav-open .mobile-nav > *:nth-child(4) { transition-delay: 0.28s; }
body.nav-open .mobile-nav > *:nth-child(5) { transition-delay: 0.34s; }
body.nav-open .mobile-nav > *:nth-child(6) { transition-delay: 0.40s; }
body.nav-open .mobile-nav > *:nth-child(7) { transition-delay: 0.46s; }
body.nav-open .mobile-nav > *:nth-child(8) { transition-delay: 0.52s; }
body.nav-open .mobile-nav > *:nth-child(n+9) { transition-delay: 0.58s; }

/* ---- 八．見出しの起こし ----
   英字の大見出しは、少し下から起きて濃くなる。
   .in は JS が付ける。JS が動かなければ「起こし」の指定自体が付かないので、
   見出しが消えたままになることはない。 */
.ma-okoshi {
  opacity: 0;
  transform: translateY(0.26em);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}
.ma-okoshi.in { opacity: 1; transform: none; }

/* ---- 九．和文の据わり ----
   字間が広めから、もとの字間にすっと詰まって落ち着く。
   --ls には、その見出しがもともと持っている字間を JS が入れる。 */
/* クラス名を4つ重ねて指定を強くしてある。
   和文の字間は「.seasons-header .jp」のように場所つきで決めてあるところが多く、
   ふつうに .ma-sueru と書くと負けて、字間がまったく動かない(実測で確認)。
   さらに .info-block .lbl .jp はクラス3つぶんの強さがあり、page.css は
   base.css より後に読まれるので、3つでは足りない(2026-08-22)。 */
.ma-sueru.ma-sueru.ma-sueru.ma-sueru {
  opacity: 0;
  letter-spacing: calc(var(--ls, 0.4em) + 0.22em);
  /* transform も並べておく。書かないと、同じ要素に載っている
     .reveal の移動が遷移対象から外れ、瞬間移動して見える
     (2026-08-22 の監査で判明)。 */
  transition: opacity 0.9s ease 0.1s,
              letter-spacing 1.3s cubic-bezier(0.19, 1, 0.22, 1) 0.1s,
              transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}
.ma-sueru.ma-sueru.ma-sueru.ma-sueru.in { opacity: 1; letter-spacing: var(--ls, 0.4em); }

/* ---- 十．押した手応え（指でもマウスでも同じ） ----
   押している間だけ少し沈んで見える。ホバーではないので二度押しにならない。
   なめらかにする指定はあえて置かない（押した瞬間に返るほうが手応えが出る）。 */
.reserve-btn,
.mobile-nav a,
.rd-card,
.season-card,
.fac-card,
.spot-card,
.room-card,
.course-item,
.cf-choice {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.reserve-btn:active,
.mobile-nav a:active,
.mobile-tel:active,
.rd-card:active,
.season-card:active,
.fac-card:active,
.spot-card:active,
.room-card:active,
.course-item:active,
.cf-choice:active { filter: brightness(0.92); }

/* ---- 十一．ヘッダーの出入り ----
   下に読み進むとヘッダーが引っ込み、上に戻すと出てくる。
   写真と本文が広く見える。メニューを開いている間は必ず出したまま。 */
body.hdr-hide .site-header { transform: translateY(-102%); }
body.nav-open .site-header { transform: none; }

/* ---- 十二．読み進みの罫 ----
   いまページのどのあたりかを、朱の細い線で示す。
   なめらかにする指定は置かない（指の動きにぴたりと付いてくるように）。 */
.read-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  background: var(--shu);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.reading .read-line { opacity: 0.85; }
body.nav-open .read-line { opacity: 0; }

/* ---- 動きを減らす設定のときは、ここで全部止める ---- */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav > *,
  body.nav-open .mobile-nav > *:nth-child(n) {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
  .ma-okoshi { opacity: 1; transform: none; transition: none; }
  .ma-sueru.ma-sueru.ma-sueru.ma-sueru { opacity: 1; letter-spacing: var(--ls, 0.4em); transition: none; }
  body.hdr-hide .site-header { transform: none; }
  .read-line { display: none; }
}
/* =========================================================
   所作の空白地帯を埋める（2026-08-22）
   ---------------------------------------------------------
   ・使うのは opacity だけ。transform は既存の所作が全部使っていて、
     1要素に1つしか持てないため、割り込むと今動いているものが黙って死ぬ
   ・transition はショートハンドで書かない（既存の遷移を消さないため）
   ・隠すのは JS がクラスを付けたときだけ。CSSだけでは何も隠さない
   ========================================================= */

/* ---- 行送り — 順番に、淡くのる ----
   --ma-i は順番（0,1,2…）。既存の間積みと同じ変数に乗せてあるので、
   章ごとのテンポ（--ma-step / --ma-cap）もそのまま効く。 */
/* クラス名を2つ重ねてある。page.css は base.css より後に読まれ、
   そこで .reveal が定義し直されているため、同じ強さでは負けて
   順送りがまったく効かなかった(2026-08-22 の監査で判明)。 */
.ma-gyo.ma-gyo {
  opacity: 0;
  transition-property: opacity;
  transition-duration: var(--ma-dur, 1.15s);
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: min(calc(var(--ma-i, 0) * var(--ma-step, .10s)), var(--ma-cap, .45s));
}
.ma-gyo.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ma-gyo { opacity: 1; transition: none; }
}
/* ---- 行送りの行 — 一行ずつ淡くのる ----
   親（段落）に .in が付いた瞬間から、順番に濃くなる。
   display は inline のまま。箱を作らないので、コピペ・読み上げ・
   日本語の禁則・行の折り返しは1ミリも変わらない。 */
.ma-gyo-l {
  opacity: 0;
  transition-property: opacity;
  transition-duration: var(--ma-dur, 1.15s);
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: min(calc(var(--ma-i, 0) * var(--ma-step, .10s)), var(--ma-cap, .45s));
}
.in .ma-gyo-l,
.ma-gyo-l.done { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ma-gyo-l { opacity: 1; transition: none; }
}
/* ---- 画面右下の予約ボタン（スマホだけ・読み始めてから出る） ----
   はじめは画面幅いっぱいの帯にしていたが、実測すると
   「客室を見る」「お食事を見る」「バス時刻表」などが帯に覆われて
   押せなくなっていた(2026-08-22 の監査)。
   キャンプ場と同じ右下の小さいボタンに変更。覆う面積が小さく、
   姉妹サイトで見た目も揃う。
   出入りは transform ではなく translate: を使う（transform は
   既存の所作が全部使っていて、1要素に1つしか持てない）。 */
.cta-bar {
  display: none;
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  padding: 13px 20px;
  border-radius: 3px;
  text-align: center;
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.18em;
  line-height: 1.3;
  color: var(--washi);
  background: var(--koke, var(--ink));
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
  border: 0;
  opacity: 0;
  translate: 0 12px;
  transition-property: opacity, translate;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body.reading .cta-bar { opacity: 1; translate: 0 0; }
body.nav-open .cta-bar { opacity: 0; translate: 0 12px; pointer-events: none; }
.cta-bar:active { filter: brightness(0.92); }

@media (max-width: 900px) {
  .cta-bar { display: block; }
  body.has-cta .site-footer { padding-bottom: 74px; }
}

/* キャンプ場の右下ボタンも、読み始めてから出す（1画面目を静かにする）。
   ★隠すのは .ma-js（JSが動いた印）が付いたときだけ。
   CSSだけで隠すと、JSが読めなかった端末で予約導線が永久に消える
   (2026-08-22 の監査で自分のミスとして見つかった)。 */
.ma-js .fixed-reserve {
  opacity: 0;
  transition-property: opacity;
  transition-duration: .5s;
  transition-timing-function: ease;
  pointer-events: none;
}
.ma-js.reading .fixed-reserve { opacity: 1; pointer-events: auto; }

/* お問い合わせ: 表示中の段だけ淡く入る（切替の仕組みには触らない） */
.cf-step.is-active { animation: cf-step-in .42s cubic-bezier(0.19, 1, 0.22, 1); }
@keyframes cf-step-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .cta-bar { transition: none; translate: 0 0; }
  .fixed-reserve { opacity: 1; pointer-events: auto; transition: none; }
  .cf-step.is-active { animation: none; }
}
/* ---- 章ごとのテンポ（クラスで配る。@media で上書きできるように） ----
   インラインの数字で配ると、下のスマホ用の指定もページごとの表情も
   全部潰れる（インラインはメディアクエリより強いため）。 */
.ma-slow  { --ma-step: .14s; --ma-cap: .5s; }
.ma-mid   { --ma-step: .09s; }
.ma-quick { --ma-step: .05s; --ma-cap: .35s; }

@media (max-width: 700px) {
  /* 小さい画面では、待たされる感じが出やすいので全体に詰める */
  .ma-slow  { --ma-step: .07s; --ma-cap: .3s; }
  .ma-mid   { --ma-step: .05s; --ma-cap: .25s; }
  .ma-quick { --ma-step: .03s; --ma-cap: .2s; }
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { width: 100%; left: 0; }
  .reserve-btn:hover {
    background: var(--ink);
    color: var(--washi);
    border-color: var(--ink);
  }
  .site-header.on-image .reserve-btn:hover {
    background: var(--washi);
    color: var(--ink);
    border-color: var(--washi);
  }
  .site-footer ul a:hover { opacity: 1; }
  .feature-link:hover { gap: 22px; }
  .text-link:hover { border-color: var(--koke-deep); }
  .fixed-reserve:hover {
    background: var(--koke-deep);
    color: var(--washi);
    transform: translateY(-2px);
  }

  /* --- ここから 2026-08-21 に足した飾り（マウスのある機械だけ） --- */
  /* 写真がほのかに明るくなる。transform ではなく filter を使う。
     写真は「据わり」(ma-suwari)や淡入で transform と opacity を
     使っているので、そこに割り込むと動きが壊れるため。 */
  .rd-card:hover,
  .fac-card:hover,
  .spot-card:hover,
  .room-card:hover,
  .course-item:hover { filter: brightness(1.045); }
  .mobile-tel:hover { opacity: 1; }
}
