/* ==========================================================
   ベーストークン — 次のサイトはここだけ差し替えれば流用できる
   ========================================================== */
:root {
  --color-bg: #F2F2F2;
  /* ページ全体の背景色。生成りっぽいオフホワイト */
  --color-ink: #000;
  /* メインの文字色・線の色。純粋な黒より少し柔らかい黒 */
  --color-ink-soft: #000;
  /* 補足文・キャプションなど、主張を弱めたいテキストの色 */
  --color-accent: #2f5d50;
  /* アクセントカラー（深いグリーン）。今はまだ未使用の予備色 */
  --color-surface: #ffffff;
  /* カードなど、背景の上に乗る「面」の色（純白） */

  --font-display: 'EB Garamond', 'Shippori Mincho', serif;
  --font-body: 'EB Garamond', 'Shippori Mincho', serif;

  /* ---- トラッキング(字間) ----
     全体に少し広げたいという指示に対応。
     base = 通常テキスト用、wide = ロゴ・ボタンなど強調したい箇所用 */
  --tracking-base: 0.02em;
  --tracking-wide: 0.04em;

  /* ---- タイポスケール ----
     用途ごとに1つの変数にまとめてある。
     サイズを一括変更したいときはここだけ触ればOK。
     命名ルール: --fs-{用途}
     ※全サイズ、元のデザイン仕様値からさらに1.1倍（累計で元の1.21倍）に変更済み */
  --fs-caption: 1.03rem;
  /* キャプション、footer-meta、detail-row dd（小さめ本文）など最小サイズ（元0.85remの1.21倍） */
  --fs-body-sm: 1.11rem;
  /* card/text-card本文、hero-copy pの一段階小さい本文（元0.92remの1.21倍） */
  --fs-body: 1.21rem;
  /* 基準となる本文サイズ（元1remの1.21倍） */
  --fs-body-lg: 1.23rem;
  /* text-statement本文など、少し余裕を持たせたい本文（元1.02remの1.21倍） */
  --fs-lead: 1.27rem;
  /* detail-row dtなど、本文よりわずかに強調したいテキスト（元1.05remの1.21倍） */
  --fs-h3-sm: 1.33rem;
  /* text-card-body h3専用のやや小さい見出しサイズ（元1.1remの1.21倍）。
     ※以前はこのトークンを使わず直書きしていた不整合を修正済み */
  --fs-h3: 1.45rem;
  /* カード見出し(h3)共通（元1.2remの1.21倍） */
  --fs-h2-sm: 1.69rem;
  /* footer-inner pの見出し的テキスト（元1.4remの1.21倍） */
  --fs-h2: 2.06rem;
  /* セクション見出し(h2)の標準サイズ：cta-section, centered-block（元1.7remの1.21倍） */
  --fs-h2-lg: 2.18rem;
  /* セクション見出し(h2)のやや大きいサイズ：cards, text-cards（元1.8remの1.21倍） */
  --fs-h2-xl: 2.3rem;
  /* text-statementの見出し、最も大きいh2（元1.9remの1.21倍） */
  --fs-h1-detail: clamp(2.06rem, 3.5vw, 3.15rem);
  /* 2ページ目タイトル(detail-title h1)（元clamp(1.7rem,3.5vw,2.6rem)の1.21倍） */
  --fs-h1-hero: clamp(2.18rem, 4vw, 3.63rem);
  /* 1ページ目ヒーロー見出し(hero-copy h1)、最大サイズ（元clamp(1.8rem,4vw,3rem)の1.21倍） */

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 8rem;

  --radius: 2px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* デフォルトは「枠いっぱいに敷き詰めてトリミング」。
     アスペクト比を保ちたい箇所(.photo-block等)では個別に上書きしている */
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-m);
  /* 全セクション共通の中央寄せ＋左右余白コンテナ */
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
}

/* ==========================================================
   Header / Footer — 全ページ共通
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
  color: #fff;
  /* 画面上部に固定されるヘッダー。背景色は敷かず、
     mix-blend-mode: difference で下の画像に応じて白/黒が反転する */
}

.logo {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: .02em;
  mix-blend-mode: difference;
  /* サイトロゴ文字 */
}

.nav {
  display: flex;
  gap: var(--space-m);
  font-size: var(--fs-body-sm);
  /* PC幅でのグローバルナビ（横並びリンク） */
}

.nav a {
  position: relative;
  padding-block: 2px;
  mix-blend-mode: difference;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
  /* ホバー時に左から右へ伸びるアンダーライン */
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-footer {
  position: relative;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  /* 画面下部、背景画像＋暗幕オーバーレイのフッター（全ページ共通・使い回し可） */
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  /* フッター背景画像の上に敷く暗幕（文字を読みやすくする） */
}

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

.footer-inner p {
  margin-bottom: var(--space-m);
  font-family: var(--font-display);
  font-size: var(--fs-h2-sm);
}

.footer-meta {
  position: absolute;
  bottom: var(--space-s);
  left: 0;
  right: 0;
  font-size: var(--fs-caption);
  opacity: .75;
  z-index: 1;
  /* コピーライト等、フッター最下部の小さい注記 */
}

.btn {
  display: inline-block;
  padding: 0.85em 2em;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius);
  font-size: var(--fs-body-sm);
  letter-spacing: .02em;
  transition: background .25s ease, color .25s ease;
  /* 標準ボタン（黒枠・白背景）。ホバーで反転 */
}

.btn:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

.btn-invert {
  border-color: #fff;
  color: #fff;
  /* 暗い背景の上で使う白枠バージョン（例：フッターやヒーロー上） */
}

.btn-invert:hover {
  background: #fff;
  color: var(--color-ink);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 44px;
  height: 44px;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  /* スマホ幅で表示されるハンバーガーメニューのボタン本体（PCでは非表示） */
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #ffffff;
  transition: transform .3s ease, opacity .3s ease;
  /* ハンバーガーアイコンの3本線 */
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
  bottom: 15px;
}

.nav-toggle.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  /* メニューが開いている状態：3本線を「×」に変形 */
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

@media (max-width:720px) {
  .nav-toggle {
    display: block;
    /* 720px以下でハンバーガーボタンを表示 */
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-m);
    background: #000000;
    color: #fff;
    font-size: 1.54rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s ease, opacity .3s ease;
    overflow-y: auto;
    padding-block: var(--space-xl);
    /* スマホ幅では通常非表示。.is-open が付くと全画面メニューとして上からスライドイン */
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==========================================================
   Hero — フルスクリーン スライドショー（1ページ目・使い回し可）
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  /* トップページ最上部、画面いっぱいの写真スライドショー領域 */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  /* スライド1枚分。JS側で .is-active を付け替えてクロスフェードさせる想定 */
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 55%);
  /* 下部の文字を読みやすくするためのグラデーション暗幕 */
}

.hero-copy {
  position: absolute;
  left: var(--space-m);
  right: var(--space-m);
  bottom: var(--space-l);
  max-width: 36rem;
  /* ヒーロー画像の左下に重ねるキャッチコピー＋説明文 */
}

.hero-copy h1 {
  font-size: var(--fs-h1-hero);
}

.hero-copy p {
  margin-top: var(--space-xs);
  font-size: var(--fs-body);
  opacity: .9;
}

/* ==========================================================
   Card grid — 画面幅に応じて列数が変わる可変グリッド（1ページ目・使い回し可）
   ※ auto-fit のため「固定2カラム」ではなく、320px以上を確保しつつ
     並べられるだけ並べる（広い画面なら3列以上にもなる）
   ========================================================== */
.cards {
  padding-block: var(--space-xl);

}

.cards h2 {
  font-size: var(--fs-h2-lg);
  margin-bottom: var(--space-l);
}



.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-m);
  margin-bottom: var(--space-l);
  /* 複数の card-grid を連続で並べたときに、グリッド同士がくっつかないための余白 */
}

.card-grid:last-child {
  margin-bottom: 0;
  /* セクション最後のグリッドは余白不要 */
}

.card {
  display: block;
  background: var(--color-surface);
}

.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-media img {
  transition: transform .4s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
  /* ホバー時に画像だけ少し拡大するズームイン演出 */
}

.card-body {
  padding: var(--space-m);
}

.card-body h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.card-body p {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-soft);
}

/* ==========================================================
   CTA — 中央揃え、使い回し用セクション（両ページ共通）
   ========================================================== */
.cta-section {
  padding-block: var(--space-xl);
  text-align: center;
}

.cta-section .wrap {
  max-width: 40rem;
}

.cta-section h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-s);
}

.cta-section p {
  color: var(--color-ink-soft);
  margin-bottom: var(--space-m);
}

.cta-section.alt {
  background: var(--color-surface);
  /* 背景を白く敷いた別バリエーション（連続するセクション間の区切りに使う） */
}

/* ==========================================================
   Detail hero — フルスクリーン写真1枚（2ページ目）
   ========================================================== */
.detail-hero {
  height: 100vh;
  min-height: 560px;
}

/* ==========================================================
   Title — 中央配置（2ページ目）
   ========================================================== */
.detail-title {
  text-align: center;
  padding-block: var(--space-xl) var(--space-l);
}

.detail-title h1 {
  font-size: var(--fs-h1-detail);
}

.detail-title p {
  margin-top: var(--space-xs);
  color: var(--color-ink-soft);
  font-size: var(--fs-body-sm);
}

/* ==========================================================
   Detail rows — 左見出し(固定200px) / 右内容、薄い罫線で区切る、
   行を追加していける定義リスト形式（2ページ目）
   ========================================================== */
.detail-rows {
  padding-bottom: var(--space-xl);
}

.detail-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-l);
  padding-block: var(--space-m);
  border-top: 1px solid rgba(0, 0, 0, .08);
  /* ↑ コメントにあった「薄い罫線」が実装から抜けていたため追加。
     行と行の間を薄い横線で区切る */
}

.detail-row:first-child {
  border-top: none;
  /* 最初の行は罫線なし（detail-titleとの間に二重線ができないように） */
}

.detail-row dt {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  color: var(--color-ink);
}

.detail-row dd {
  color: var(--color-ink-soft);
  font-size: var(--fs-body-sm);
  max-width: 45rem;
}

@media (max-width:640px) {
  .detail-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    /* スマホ幅では左右2カラムをやめ、縦積みに切り替え */
  }
}

/* ==========================================================
   Photo stream — フルスクリーン高さの写真の連続、追加していける（2ページ目）
   .photo-block をコピーすれば増やせる
   ========================================================== */
.photo-stream {
  padding-bottom: var(--space-xl);
}

.photo-block {
  margin-bottom: var(--space-l);
}

.photo-block .frame {
  width: 100%;
}

.photo-block .frame img {
  height: auto;
  object-fit: unset;
  /* グローバルのimg設定（トリミング表示）を解除し、
     元画像の縦横比のまま表示する */
}

.photo-block.portrait .frame {
  max-width: 480px;
  margin-inline: auto;
  /* 縦長写真用：横幅を絞って中央寄せ */
}

.photo-block .caption {
  margin-top: var(--space-xs);
  font-size: var(--fs-caption);
  color: var(--color-ink-soft);
}

/* ==========================================================
   Centered block — タイトル→画像→本文、中央揃え、追加していける
   .centered-block をコピーすれば増やせる
   ========================================================== */
.centered-block {
  padding-block: var(--space-xl);
  text-align: center;
}

.centered-block .wrap {
  max-width: 44rem;
}

.centered-block h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-m);
}

.centered-block .media {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: var(--space-m);
}

.centered-block p {
  color: var(--color-ink-soft);
  font-size: var(--fs-body-sm);
}

/* ==========================================================
   More link — ボタンだけの細いセクション、追加していける
   ========================================================== */
.more-link {
  padding-top: var(--space-m);
  padding-bottom: var(--space-l);
  text-align: center;
}

/* ==========================================================
   Text cards — 見出し＋カード（文字のみ、リンク不要）
   .text-card をコピーすれば増減できる
   ※ .card-grid と同じく auto-fit の可変グリッド（固定2カラムではない）
   ========================================================== */
.text-cards {
  padding-block: var(--space-xl);
  text-align: center;
}

.text-cards h2 {
  font-size: var(--fs-h2-lg);
  margin-bottom: var(--space-l);
}

.text-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-m);
  text-align: left;
}

.text-card {
  background: var(--color-surface);
}

.text-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.text-card-media img {
  transition: transform .4s ease;
}

.text-card-body {
  padding: var(--space-m);
}

.text-card-body h3 {
  font-size: var(--fs-h3-sm);
  /* 修正：以前は 1.21rem を直書きしていたが、
     他の見出しと同様にトークン(--fs-h3-sm)経由に統一 */
  margin-bottom: var(--space-xs);
}

.text-card-body p {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-soft);
}

/* ==========================================================
   Text statement — 見出し＋長文だけのセクション
   ========================================================== */
.text-statement {
  padding-block: var(--space-xl);
  padding-bottom: var(--space-l);
}

.text-statement .wrap {
  max-width: 42rem;
}

.text-statement h2 {
  font-size: var(--fs-h2-xl);
  margin-bottom: var(--space-m);
}

.text-statement p {
  font-size: var(--fs-body-lg);
  line-height: 2;
  color: var(--color-ink-soft);
}

.text-statement p+p {
  margin-top: var(--space-s);
}

/* ==========================================================
   Reveal on scroll — ふわっと出現（script.js と対）
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--reveal-delay, 0s);
  /* 初期状態は非表示＋少し下にずらしておく。
     JS側で is-visible を付けるとフェード＋上スライドで出現 */
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Video section — 動画（mp4 / YouTubeなどの埋め込み）を貼るセクション
   ========================================================== */
.video-section {
  padding-block: var(--space-xl);
}

.video-section .frame {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-ink);
}

.video-section .frame video,
.video-section .frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  object-fit: cover;
}

.video-section .caption {
  margin-top: var(--space-xs);
  font-size: var(--fs-caption);
  color: var(--color-ink-soft);
}

.video-section.portrait .frame {
  aspect-ratio: 9/16;
  max-width: 480px;
  margin-inline: auto;
  /* 縦長（スマホ縦動画）用バリエーション */
}

/* ==========================================================
   Reasons cards — 「選ばれる理由」カード、常に固定2カラム
   .text-cards がベース。auto-fitではなく repeat(2, 1fr) で
   画面幅に関わらず常に2列（640px以下のみ1列に切り替え）。
   .text-card をコピーすれば理由を増やせる（奇数個なら最後は1列になる）
   ========================================================== */
.reason-cards {
  padding-block: var(--space-xs);
  padding-bottom: var(--space-xl);
  text-align: center;
}

.reason-cards h2 {
  font-size: var(--fs-h2-lg);
  margin-bottom: var(--space-l);
}

.reason-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
  text-align: left;
}

@media (max-width:640px) {
  .reason-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Interview — インタビュー記事用
   ベースは .text-statement（余白・文字サイズ・行間・段落間）を流用。
   ここでは「見出しの下線」と「質問を太字」だけを足す
   ========================================================== */
.interview h2 {
  padding-bottom: var(--space-s);
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.interview .q {
  font-weight: 500;
}