/* ==================================================================
   X308 JOURNAL — rev.7 "FOR THE READER"
   基準はひとつ：初めて来た人の3秒。
   - 写真が主役（プレースホルダは「写真が入る場所」として静かに待つ）
   - 言葉はぜんぶ普通の日本語。英字はロゴだけ
   - 番号・記号・飾り文字・体系の自慢は置かない
   - 進む手段はテキストリンクのみ
   ================================================================== */

:root {
  /* 夜トーン（2026-07-05 GO。クリーム紙版は backup_20260705_cream に保存） */
  --paper: #0b1410;          /* 地＝夜のガレージ（黒に近い深緑） */
  --card: #10201a;
  --ink: #f2ede1;            /* 本文＝クリーム */
  --ink-soft: rgba(244, 238, 225, 0.64);
  --green-deep: #0e1a14;     /* topbar・フッターの面 */
  --green: #1d3528;
  --brass: #b08d3e;
  --brass-soft: #c9a55a;
  --cream: #ece4d0;
  --cream-dim: rgba(236, 228, 208, 0.75);
  --heading: #f6f1e5;        /* 見出し（旧: 深緑） */
  --line: rgba(244, 238, 225, 0.14);
  --line-strong: rgba(244, 238, 225, 0.4);
  --line-on-dark: rgba(236, 228, 208, 0.2);
  /* 小さな文字用の真鍮（夜地では明るい方が読める） */
  --brass-text: #c9a55a;

  --logo: "Libre Caslon Display", serif;
  --jp-display: "Shippori Mincho B1", serif;
  --jp-body: "Noto Serif JP", serif;
  --jp-sans: "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp-body);
  font-size: 1rem; line-height: 2; letter-spacing: 0.02em;
  font-feature-settings: "palt"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(176, 141, 59, 0.28); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.topbar a:focus-visible, .site-footer a:focus-visible { outline-color: var(--brass-soft); }

/* スキップリンク（キーボード利用時のみ現れる） */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  background: var(--green-deep); color: var(--cream);
  padding: 0.6rem 1rem; font-family: var(--jp-sans); font-size: 0.85rem;
}

.wrap { max-width: 66rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ------------------------------------------------------------------
   ヘッダー：ロゴ＋日本語ナビ5つ。それ以上は置かない
   ------------------------------------------------------------------ */

.topbar { position: sticky; top: 0; z-index: 50; background: var(--green-deep); }
.topbar .inner {
  max-width: 66rem; margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar .brand { font-family: var(--logo); font-size: 0.95rem; letter-spacing: 0.22em; color: #fdfaf2; text-decoration: none; white-space: nowrap; }
.topbar nav { display: flex; gap: clamp(0.9rem, 2.4vw, 1.8rem); flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a {
  font-family: var(--jp-sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-decoration: none; color: var(--cream-dim);
  padding: 0.15rem 0; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.topbar nav a:hover, .topbar nav a.current { color: #fff; border-bottom-color: var(--brass-soft); }

@media (max-width: 640px) {
  .topbar .inner { flex-direction: column; align-items: center; gap: 0.45rem; padding: 0.7rem 0.75rem 0.6rem; }
  .topbar nav { justify-content: center; gap: 0.85rem; row-gap: 0.2rem; }
  .topbar nav a { font-size: 0.76rem; letter-spacing: 0.04em; padding: 0.35rem 0.15rem; }
}

/* テキストリンク（このサイト唯一の「進む」）。下線は文字部分（.tx）だけに敷く */
.tlink {
  font-family: var(--jp-sans); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.06em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color .15s;
}
.tlink .tx { border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.tlink .ar { transition: transform .15s; }
.tlink:hover { color: var(--brass); }
.tlink:hover .ar { transform: translateX(4px); }
.tlink.on-dark { color: var(--cream); }
.tlink.on-dark .tx { border-color: var(--brass-soft); }
.tlink.on-dark:hover { color: #fff; }

/* 写真の場所（届いたら <img> に差し替えるだけ） */
.ph {
  position: relative; display: block; overflow: hidden;
  background:
    radial-gradient(120% 100% at 30% 20%, #24402f 0%, #16281e 70%);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .note {
  position: absolute; right: 0.9rem; top: 0.8rem;
  font-family: var(--jp-sans); font-size: 0.72rem; letter-spacing: 0.1em;
  color: rgba(236, 228, 208, 0.62);
}

/* ------------------------------------------------------------------
   控えめなモーション（2026-07-05追加。rev.7の品位の範囲。派手にしない）
   - 出現＝14px下からのフェードアップ1種のみ。1要素1回。prose本文には付けない
   - motion.js が .reveal を付与し、視界に入ったら .in を足す
   ------------------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .65s ease, transform .65s cubic-bezier(0.22, 1, 0.36, 1);
}
.card .ph img { transition: transform .8s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .ph img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .card .ph img { transition: none; }
}

/* ------------------------------------------------------------------
   ヒーロー：写真全面＋ひとこと。以上
   ------------------------------------------------------------------ */

.hero { position: relative; height: 100vh; overflow: hidden; }
.hero .slide { position: absolute; inset: 0; opacity: 0; animation: hero-cycle 21s infinite; }
.hero .slide:nth-child(2) { animation-delay: 7s; }
.hero .slide:nth-child(3) { animation-delay: 14s; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hero-cycle {
  0% { opacity: 0; transform: scale(1.06); }
  6% { opacity: 1; }
  33.3% { opacity: 1; transform: scale(1); }
  40% { opacity: 0; }
  100% { opacity: 0; transform: scale(1); }
}
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(11, 20, 16, 1) 0%, rgba(11, 20, 16, 0.72) 14%,
    rgba(11, 20, 16, 0.42) 32%, rgba(11, 20, 16, 0.18) 50%,
    rgba(11, 20, 16, 0.05) 66%, rgba(11, 20, 16, 0.25) 100%);
  pointer-events: none;
}
.hero .copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5.5rem);
  max-width: 66rem; margin-inline: auto;
  color: var(--cream);
}
.hero h1 {
  font-family: var(--jp-display); font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.8rem);
  line-height: 1.45; color: #fdfaf2; hanging-punctuation: first;
  margin-bottom: 1rem; text-wrap: balance;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.45);
}
.hero .sub { font-family: var(--jp-sans); font-size: 0.95rem; line-height: 2; color: var(--cream-dim); max-width: 36rem; }
.hero .cue {
  position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); bottom: 2.2rem;
  font-family: var(--jp-sans); font-size: 0.68rem; letter-spacing: 0.3em;
  color: rgba(244, 238, 225, 0.38); writing-mode: vertical-rl;
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide { animation: none; }
  .hero .slide:first-child { opacity: 1; }
}

/* 表紙（index）ではヒーローに透けて載り、抜けたら地の色が敷かれる */
body.cover .topbar {
  position: fixed; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(11, 20, 16, 0.8), rgba(11, 20, 16, 0));
  transition: background .3s;
}
body.cover .topbar.solid { background: rgba(11, 20, 16, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ------------------------------------------------------------------
   セクション見出し：日本語＋短い真鍮の罫。それだけ
   ------------------------------------------------------------------ */

.sec { padding-top: clamp(3.2rem, 7vw, 5rem); }
.sec-head { margin-bottom: clamp(1.8rem, 3vw, 2.4rem); }
.sec-head h2 {
  font-family: var(--jp-display); font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.8rem);
  line-height: 1.5; color: var(--heading);
}
.sec-head h2::after { content: ""; display: block; width: 2.6rem; height: 2px; background: var(--brass); margin-top: 0.8rem; }
.sec-head .lede { font-family: var(--jp-sans); font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.9rem; }

/* ------------------------------------------------------------------
   読みものカード：写真＋見出し。読みたくなるかどうかが全て
   ------------------------------------------------------------------ */

/* 箱は使わない。写真・タグ・見出し・一行を紙の上に直接置く */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(2rem, 4vw, 3rem); row-gap: clamp(2.4rem, 4vw, 3.2rem);
}

.card { display: block; text-decoration: none; }
.card .ph { aspect-ratio: 3 / 2; }
.card .body { padding-top: 1.2rem; }
.card .tag { font-family: var(--jp-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--brass-text); }
.card h3 {
  font-family: var(--jp-display); font-weight: 600;
  font-size: 1.14rem; line-height: 1.6; color: var(--ink);
  margin-top: 0.7rem; transition: color .15s; hanging-punctuation: first;
}
.nw { white-space: nowrap; }
.card:hover h3 { color: var(--brass); }
.card .desc { font-family: var(--jp-sans); font-size: 0.79rem; line-height: 1.95; color: var(--ink-soft); margin-top: 0.65rem; }

.sec .foot { margin-top: 2.2rem; text-align: left; }

@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   この車：写真＋事実。語りすぎない
   ------------------------------------------------------------------ */

.car-sec .grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.car-sec .ph { aspect-ratio: 4 / 3; }
.car-sec p.intro { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.car-sec .facts { border-top: 2px solid var(--heading); margin-bottom: 1.8rem; }
.car-sec .facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.62rem 0.1rem; border-bottom: 1px solid var(--line); }
.car-sec .facts dt { font-family: var(--jp-sans); font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); }
.car-sec .facts dd { font-size: 0.88rem; text-align: right; }

@media (max-width: 820px) { .car-sec .grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   日誌：日付と題だけの静かなリスト
   ------------------------------------------------------------------ */

.journal-sec .list { list-style: none; border-top: 1px solid var(--line-strong); }
.journal-sec .list a {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1.15rem 0.15rem; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.journal-sec .date { font-family: var(--logo); font-size: 0.84rem; letter-spacing: 0.03em; color: var(--brass-text); white-space: nowrap; min-width: 5.8rem; }
.journal-sec .t { font-family: var(--jp-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); transition: color .15s; }
.journal-sec a:hover .t { color: var(--brass); }
.journal-sec .d { font-family: var(--jp-sans); font-size: 0.79rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .journal-sec .list a { flex-wrap: wrap; row-gap: 0.15rem; }
  .journal-sec .d { flex-basis: 100%; }
}

/* ------------------------------------------------------------------
   フッター
   ------------------------------------------------------------------ */

.site-footer { margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--green-deep); color: var(--cream-dim); }
.site-footer .inner { max-width: 66rem; margin-inline: auto; padding: 2.8rem clamp(1.25rem, 4vw, 2.5rem) 2.2rem; }
.site-footer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line-on-dark); }
.site-footer .brand-foot { font-family: var(--logo); letter-spacing: 0.22em; color: #fdfaf2; font-size: 0.95rem; text-decoration: none; display: block; margin-bottom: 0.5rem; }
.site-footer .tag { font-family: var(--jp-sans); font-size: 0.78rem; }
.site-footer nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.site-footer nav a { font-family: var(--jp-sans); font-size: 0.8rem; color: var(--cream-dim); text-decoration: none; }
.site-footer nav a:hover { color: var(--brass-soft); }
.site-footer .legal { padding-top: 1.5rem; font-family: var(--jp-sans); font-size: max(0.74rem, 12px); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------
   記事ページ
   ------------------------------------------------------------------ */

.article-hero { border-bottom: 1px solid var(--line); }
.article-hero .container, .article-body .container { max-width: 44rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.article-hero .container { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.2rem, 4vw, 3rem); }

.article-hero .crumb { font-family: var(--jp-sans); font-size: 0.78rem; font-weight: 500; margin-bottom: 2rem; color: var(--ink-soft); }
.article-hero .crumb a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.article-hero .crumb a:hover { color: var(--brass); border-color: var(--brass); }
.article-hero .crumb .sep { margin-inline: 0.55rem; }

.article-hero h1 {
  font-family: var(--jp-display); font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  line-height: 1.4; color: var(--heading);
  margin-bottom: 1.3rem; text-wrap: balance; hanging-punctuation: first;
}
.article-hero .standfirst { font-size: 1.05rem; line-height: 2.05; color: var(--ink-soft); max-width: 38rem; margin-bottom: 1.4rem; }
.article-hero .meta { font-family: var(--jp-sans); font-size: 0.8rem; color: var(--ink-soft); }
.article-hero .meta .sep { margin-inline: 0.6rem; color: var(--brass); }

.article-body { padding-block: clamp(2.6rem, 5vw, 4rem) 0; }

.prose { max-width: 38rem; }
.prose > * + * { margin-top: 1.75em; }
.prose .lead { font-size: 1.12rem; line-height: 2.0; }
.prose .lead.dropcap { line-height: 1.9; }
.prose .lead.dropcap::first-letter {
  font-family: var(--logo); font-size: 3.4em; line-height: 0.9;
  float: left; margin: 0.09em 0.14em 0 0; color: var(--brass);
}
@supports (initial-letter: 3) { .prose .lead.dropcap::first-letter { initial-letter: 3; float: none; margin: 0 0.14em 0 0; } }

.prose h2 { margin-top: 3.4em; }
.h-block { display: flex; align-items: baseline; gap: 1.1rem; border-top: 1px solid var(--line); padding-top: 1.9rem; }
.h-block .h-no { font-family: var(--logo); font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); line-height: 1; color: var(--brass); }
.h-block .h-t { font-family: var(--jp-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); line-height: 1.5; color: var(--heading); }

.prose a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); }
.prose a:hover { color: var(--brass); }
.prose .note { font-family: var(--jp-sans); font-size: 0.78rem; line-height: 1.9; color: var(--ink-soft); }

.pull { margin-block: 3em; padding: 0.3em 0 0.3em 1.5rem; border-left: 3px solid var(--brass); }
.pull p { font-family: var(--jp-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem); line-height: 1.9; color: var(--heading); hanging-punctuation: first; }
.pull cite { display: block; margin-top: 0.7em; font-family: var(--jp-sans); font-size: 0.76rem; font-style: normal; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
table.simple th, table.simple td { text-align: left; padding: 0.68rem 0.9rem 0.68rem 0.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple thead th { font-family: var(--jp-sans); font-size: max(0.74rem, 12px); font-weight: 700; color: var(--ink-soft); border-bottom: 2px solid var(--line-strong); }
table.simple tbody th[scope="row"] { font-family: var(--jp-sans); font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
table.simple .hl { background: rgba(176, 141, 59, 0.16); }
table.simple .hl td:first-child { font-weight: 600; }

/* もっと詳しく（開きたい人だけ開く） */
.geek { margin-top: 1.75em; border: 1px solid var(--line); background: rgba(244, 238, 225, 0.05); }
.geek summary {
  cursor: pointer; list-style: none;
  padding: 0.95rem 1.2rem;
  font-family: var(--jp-sans); font-size: 0.84rem; font-weight: 700;
  color: var(--heading);
  display: flex; align-items: baseline; gap: 0.7rem;
}
.geek summary::-webkit-details-marker { display: none; }
.geek summary::before { content: "＋"; color: var(--brass); flex: none; font-weight: 400; }
.geek[open] summary::before { content: "−"; }
.geek .body { padding: 0.2rem 1.2rem 1.25rem; font-size: 0.88rem; line-height: 1.95; }
.geek .body > * + * { margin-top: 1em; }
.geek .body .note { font-family: var(--jp-sans); font-size: 0.76rem; color: var(--ink-soft); }

/* 次に読む */
.next-card {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.4rem;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  text-decoration: none;
  padding: 1.9rem clamp(1.4rem, 3.5vw, 2.4rem);
}
.next-card .tag { font-family: var(--jp-sans); font-size: max(0.72rem, 12px); font-weight: 700; letter-spacing: 0.14em; color: var(--brass-text); display: block; margin-bottom: 0.6rem; }
.next-card h3 { font-family: var(--jp-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); line-height: 1.6; color: var(--heading); }
.next-card p { font-family: var(--jp-sans); font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.45rem; }
.next-card .ar { font-size: 1.6rem; color: var(--brass); transition: transform .15s; }
.next-card:hover .ar { transform: translateX(6px); }

.back-row { margin-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--jp-sans); font-size: 0.82rem; }
.back-row a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.back-row a:hover { color: var(--ink); border-bottom-color: var(--brass); }

/* ==================================================================
   章ページ（car/gallery/records/equipment/journal/patronage/videos）
   ※CSS一本化時に失われた定義の復旧（2026-06-13）
   ================================================================== */

/* 非記事ページの見出し */
.page-head { padding-block: clamp(2.6rem, 5vw, 4rem) 0; }
.page-head h1 { font-family: var(--jp-display); font-weight: 600; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); line-height: 1.4; color: var(--heading); }
.page-head h1::after { content: ""; display: block; width: 2.6rem; height: 2px; background: var(--brass); margin-top: 1rem; }
.page-head .standfirst { font-family: var(--jp-sans); font-size: 0.92rem; line-height: 1.9; color: var(--ink-soft); margin-top: 1rem; max-width: 38rem; }

/* 読みもの／日誌の行リスト */
.rowlist { list-style: none; margin-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.rowlist li { border-bottom: 1px solid var(--line); }
.rowlist a { display: grid; grid-template-columns: 6.5rem 1fr; align-items: baseline; padding: 1.15rem 0.2rem; text-decoration: none; transition: background .15s; }
.rowlist a:hover { background: rgba(244, 238, 225, 0.05); }
.rowlist .tag { grid-column: 1; grid-row: 1; font-family: var(--jp-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--brass-text); white-space: nowrap; }
.rowlist .date { grid-column: 1; grid-row: 1; font-family: var(--logo); font-size: 0.84rem; letter-spacing: 0.03em; color: var(--brass-text); white-space: nowrap; }
.rowlist .t { grid-column: 2; grid-row: 1; font-family: var(--jp-display); font-weight: 600; font-size: 1.1rem; line-height: 1.6; color: var(--ink); transition: color .15s; }
.rowlist a:hover .t { color: var(--brass); }
.rowlist .d { grid-column: 2; grid-row: 2; font-family: var(--jp-sans); font-size: 0.78rem; line-height: 1.8; color: var(--ink-soft); margin-top: 0.3rem; }
@media (max-width: 640px) { .rowlist a { grid-template-columns: 1fr; } .rowlist .tag, .rowlist .date, .rowlist .t, .rowlist .d { grid-column: 1; } .rowlist .tag, .rowlist .date { grid-row: auto; margin-bottom: 0.4rem; } .rowlist .t, .rowlist .d { grid-row: auto; } }

/* 参考資料リスト */
.refs { list-style: none; margin-top: 1.2rem; }
.refs li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.refs a { font-family: var(--jp-sans); font-size: 0.85rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.refs a:hover { color: var(--brass); }

/* ギャラリー：写真が主役。本来の縦横比のまま敷き詰める（マソンリー） */
.gal-group { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
a.zoom { display: block; text-decoration: none; }
.gal-hero { margin-top: 1.8rem; overflow: hidden; background: radial-gradient(120% 100% at 30% 20%, #24402f 0%, #16281e 70%); cursor: zoom-in; }
.gal-hero img { width: 100%; height: 64vh; object-fit: cover; object-position: center 34%; display: block; transition: filter .45s ease; }
.gal-hero:hover img { filter: brightness(1.04); }
@media (max-width: 560px) { .gal-hero img { height: 46vh; } }

.gal2 { margin-top: 0.9rem; columns: 3; column-gap: 0.9rem; }
.gal2 figure { margin: 0 0 0.9rem; break-inside: avoid; }
.gal2 figure .ph { aspect-ratio: auto; overflow: hidden; background: radial-gradient(120% 100% at 30% 20%, #24402f 0%, #16281e 70%); cursor: zoom-in; }
.gal2 figure .ph img { width: 100%; height: auto; object-fit: initial; display: block; transition: transform .5s ease, filter .45s ease; }
.gal2 figure .ph:hover img { transform: scale(1.035); filter: brightness(1.05); }
.gal2 figcaption { display: none; }
@media (max-width: 980px) { .gal2 { columns: 2; } }
@media (max-width: 560px) { .gal2 { columns: 1; } }

/* ライトボックス（クリックで拡大・静かに開く） */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 4vmin; background: rgba(16, 28, 21, .94); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; display: block; box-shadow: 0 12px 50px rgba(0,0,0,.55); }

/* 機材リスト */
.kit { margin-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.item { display: grid; grid-template-columns: 7rem 1fr; gap: 1.4rem; padding: 1.4rem 0.2rem; border-bottom: 1px solid var(--line); }
.item .cat { font-family: var(--jp-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--brass-text); }
.item h3 { font-family: var(--jp-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin-bottom: 0.4rem; }
.item p { font-family: var(--jp-sans); font-size: 0.82rem; line-height: 1.85; color: var(--ink-soft); }
@media (max-width: 640px) { .item { grid-template-columns: 1fr; gap: 0.3rem; } }

/* 一覧ページの「最新の一本」特集（car-sec の2カラムを流用） */
.feature-sec { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.feature-sec .date-line { font-family: var(--logo); font-size: 0.84rem; letter-spacing: 0.03em; color: var(--brass-text); margin-bottom: 0.7rem; }
.feature-sec .feature-t { font-family: var(--jp-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); line-height: 1.5; margin-bottom: 0.9rem; hanging-punctuation: first; }
.feature-sec .feature-t a { color: var(--heading); text-decoration: none; transition: color .15s; }
.feature-sec .feature-t a:hover { color: var(--brass); }
.feature-sec a.feature-link { display: block; }
.feature-sec + .rowlist { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

/* 世話の記録エントリ */
.care-list { margin-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.care-item { padding: 1.6rem 0.2rem; border-bottom: 1px solid var(--line); }
.care-item .date { font-family: var(--logo); font-size: 0.85rem; color: var(--brass-text); }
.care-item h3 { font-family: var(--jp-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); margin: 0.5rem 0; }
.care-item p { font-family: var(--jp-body); font-size: 0.9rem; line-height: 1.95; color: var(--ink-soft); }
.care-item a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); }
.care-item a:hover { color: var(--brass); }

/* 里親の証明書 */
.cert { margin: 2rem 0 0; max-width: 24rem; }
.cert img { width: 100%; display: block; border: 1px solid var(--line); }
.cert figcaption { font-family: var(--jp-sans); font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* 記事本文中の写真 */
.prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; display: block; }
.prose figure figcaption { font-family: var(--jp-sans); font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* （ギャラリーはマソンリー版に一本化。旧 figure>div.ph のグリッド定義は上に統合） */
