/* shirasagi36/view.css — 白鷺三十六景 一景ページ共通スタイル
   hub (shirasagi36.html) の和紙トーンを、Tailwind に頼らず素の CSS で再現したもの。
   JA / EN / HK 共通。生成元: tools/build-shirasagi.mjs（このファイルは手で編集してよい） */

:root {
  --washi: #fcfaf2;
  --ink: #2b2b2b;
  --blue: #1A3FB9;
  --red: #b91c1c;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --font-jp: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Crimson Text", "Noto Serif JP", Georgia, serif;
  --font-tc: "Noto Serif TC", "Noto Serif JP", "PingFang TC", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-jp);
  --font-display: var(--font-en);
  --nav-h: 80px;
  --measure: 720px;
  --wide: 1120px;
  /* js/comments.js が参照する style.css のトークン相当 */
  --border-color: var(--gray-200);
  --text-color: var(--ink);
  --text-light: var(--gray-500);
  --primary-font: var(--font-body);
}
html[lang="en"] { --font-body: var(--font-en); }
html[lang="zh-Hant"] { --font-body: var(--font-tc); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--washi);
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
::selection { background: var(--blue); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { font-family: var(--font-en); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--blue); }
.hanko { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border: 2px solid var(--red); border-radius: 3px; color: var(--red); font-weight: 700; font-size: 11px; line-height: 1.15; letter-spacing: 0; writing-mode: vertical-rl; text-orientation: upright; background: rgba(255,255,255,.5); font-family: var(--font-jp); }

/* ---------- Nav（hub と同じ見た目） ---------- */
.v-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); background: rgba(252,250,242,.95); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid rgba(229,231,235,.5); padding-top: env(safe-area-inset-top); }
.v-nav__inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.v-nav__logo { font-family: var(--font-en); font-size: 20px; letter-spacing: .25em; text-decoration: none; color: var(--ink); }
.v-nav__logo:hover { opacity: .7; }
.v-nav__menu { display: none; align-items: center; gap: 24px; font-family: var(--font-en); font-size: 14px; letter-spacing: .15em; color: var(--gray-500); }
.v-nav__menu a { text-decoration: none; color: inherit; transition: color .2s; }
.v-nav__menu a:hover { color: var(--blue); }
.v-nav__menu a.is-active { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-weight: 600; }
.v-nav__lang { display: inline-flex; gap: 8px; margin-left: 12px; }
.v-nav__lang a { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0; border: 1px solid var(--gray-400); border-radius: 999px; padding: 5px 14px; color: var(--gray-600); }
.v-nav__lang a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.v-nav__lang a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.v-nav__toggle { display: inline-flex; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.v-nav__toggle svg { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .v-nav__inner { padding: 0 32px; }
  .v-nav__menu { display: flex; }
  .v-nav__toggle { display: none; }
}
.v-mobile { position: fixed; inset: 0; z-index: 60; background: rgba(252,250,242,.98); backdrop-filter: blur(10px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; font-family: var(--font-en); font-size: 20px; letter-spacing: .15em; }
.v-mobile.is-open { display: flex; }
.v-mobile a { text-decoration: none; color: var(--ink); }
.v-mobile a.is-active { color: var(--blue); font-weight: 700; border-bottom: 2px solid var(--blue); padding-bottom: 6px; font-size: 24px; }
.v-mobile__close { position: absolute; right: 24px; top: max(2rem, env(safe-area-inset-top)); background: none; border: 0; padding: 12px; color: var(--gray-500); cursor: pointer; }
.v-mobile__close svg { width: 32px; height: 32px; }
.v-mobile__lang { display: flex; gap: 12px; margin-top: 24px; }
.v-mobile__lang a { font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; border: 1px solid var(--gray-400); border-radius: 999px; padding: 10px 24px; }
body.is-menu-open { overflow: hidden; }

/* ---------- Layout ---------- */
.v-wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.v-measure { max-width: var(--measure); margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .v-wrap { padding: 0 24px; } }

/* パンくず */
.v-crumbs { padding: 20px 0 0; font-family: var(--font-sans); font-size: 12px; color: var(--gray-500); letter-spacing: .02em; }
.v-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.v-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gray-400); }
.v-crumbs a { text-decoration: none; color: var(--gray-600); }
.v-crumbs a:hover { color: var(--blue); }

/* 見出し */
.v-head { padding: 40px 0 28px; display: grid; gap: 16px; }
.v-head__num { display: flex; align-items: center; gap: 14px; }
.v-head__num .eyebrow { color: var(--gray-500); }
.v-head__kanji { font-family: var(--font-jp); font-size: 15px; letter-spacing: .3em; color: var(--blue); font-weight: 500; }
.v-head h1 { font-family: var(--font-body); font-size: clamp(26px, 4.6vw, 44px); letter-spacing: .04em; line-height: 1.35; }
html[lang="en"] .v-head h1 { letter-spacing: 0; font-weight: 600; }
.v-head__sub { font-size: 15px; color: var(--gray-600); max-width: 42em; }
@media (min-width: 900px) { .v-head { padding: 56px 0 36px; } }

/* 写真 */
.v-photo { margin: 0; background: #fff; padding: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 10px 30px -12px rgba(43,43,43,.25); border: 1px solid rgba(0,0,0,.04); }
.v-photo picture, .v-photo img { width: 100%; height: auto; cursor: zoom-in; }
.v-photo.is-portrait { max-width: min(62vh, 100%); margin-left: auto; margin-right: auto; }
.v-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 6px 4px; font-family: var(--font-sans); font-size: 11px; letter-spacing: .06em; color: var(--gray-500); }
.v-photo figcaption .credit { color: var(--gray-400); }
@media (min-width: 900px) { .v-photo { padding: 14px; } }

/* メタ行 */
.v-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--gray-300); border: 1px solid var(--gray-300); margin: 32px 0 0; }
.v-meta > div { background: var(--washi); padding: 14px 16px; }
.v-meta dt { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px; }
.v-meta dd { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.6; }
.v-meta dd a { color: var(--blue); text-decoration: none; }
.v-meta dd a:hover { text-decoration: underline; }
.v-meta > div.span-2 { grid-column: 1 / -1; }
@media (min-width: 720px) { .v-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 本文 */
.v-body { padding: 44px 0 0; }
.v-lead { font-size: 17px; line-height: 2; color: var(--ink); }
html[lang="en"] .v-lead { font-size: 19px; line-height: 1.8; }
.v-section { margin-top: 44px; }
.v-section h2, .v-related h2 { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .3em; font-weight: 500; color: var(--gray-500); margin-bottom: 18px; }
.v-section h2::after, .v-related h2::after { content: ""; flex: 1; height: 1px; background: var(--gray-300); }
html[lang="en"] .v-section h2, html[lang="en"] .v-related h2 { font-family: var(--font-en); letter-spacing: .2em; text-transform: uppercase; }
.v-story p { font-size: 15.5px; line-height: 2.1; color: var(--gray-800); font-weight: 300; margin-bottom: 1.4em; text-align: justify; }
html[lang="en"] .v-story p { font-size: 18px; line-height: 1.8; text-align: left; }
.v-story p:last-child { margin-bottom: 0; }
.v-story-note { font-size: 13px; color: var(--gray-500); border-left: 2px solid var(--gray-300); padding-left: 14px; }
.v-story-note a { color: var(--blue); }

/* 撮影のヒント */
.v-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.v-tips li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; background: rgba(255,255,255,.55); border: 1px solid var(--gray-200); padding: 12px 14px; font-size: 14px; line-height: 1.8; }
.v-tips .icon { font-size: 18px; line-height: 1.4; }
.v-tips b { font-weight: 600; color: var(--ink); margin-right: 6px; }

/* ここで撮る（地図） */
.v-place { border: 1px solid var(--gray-300); background: rgba(255,255,255,.5); }
.v-place__map { position: relative; height: 260px; background: var(--gray-100); }
.v-place__map .leaflet-container { height: 100%; width: 100%; font-family: var(--font-sans); }
.v-place__map[data-map-state="idle"]::after { content: attr(data-loading); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 12px; color: var(--gray-400); letter-spacing: .1em; }
.v-place__body { padding: 16px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.v-place__name { font-size: 15px; font-weight: 600; }
.v-place__coords { font-family: var(--font-sans); font-size: 11px; color: var(--gray-400); letter-spacing: .04em; margin-top: 2px; }
.v-place__links { display: flex; flex-wrap: wrap; gap: 8px; }
.v-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; font-size: 13px; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: background .2s, color .2s; letter-spacing: .04em; cursor: pointer; font-family: var(--font-body); line-height: 1.4; }
.v-btn:hover { background: var(--ink); color: #fff; }
.v-btn--blue { border-color: var(--blue); color: var(--blue); }
.v-btn--blue:hover { background: var(--blue); color: #fff; }
.v-btn--ghost { border-color: var(--gray-300); color: var(--gray-600); }
.v-btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.shirasagi-marker { background: var(--blue); color: #fff; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 11px; font-weight: 600; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* シェア行（js/share.js が中身を描く） */
.v-share { margin-top: 44px; padding: 18px 0; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.v-share__label { font-family: var(--font-en); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gray-500); margin-right: 4px; }
.tjm-share { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.tjm-share a, .tjm-share button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-family: var(--font-sans); font-size: 12px; letter-spacing: .04em; text-decoration: none; border: 1px solid var(--gray-300); border-radius: 999px; background: rgba(255,255,255,.6); color: var(--gray-600); cursor: pointer; line-height: 1.4; transition: border-color .2s, color .2s; }
.tjm-share a:hover, .tjm-share button:hover { border-color: var(--ink); color: var(--ink); }
.tjm-share button.is-done { border-color: var(--blue); color: var(--blue); }
.tjm-share svg { width: 14px; height: 14px; fill: currentColor; }

/* 前後の景 */
.v-pn { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 44px; }
@media (min-width: 640px) { .v-pn { grid-template-columns: 1fr 1fr; } }
.v-pn a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-decoration: none; border: 1px solid var(--gray-200); background: rgba(255,255,255,.55); padding: 10px; transition: border-color .2s, box-shadow .2s; min-height: 92px; }
.v-pn a:hover { border-color: var(--ink); box-shadow: 0 8px 24px -14px rgba(43,43,43,.4); }
.v-pn a.is-next { grid-template-columns: 1fr 72px; text-align: right; }
.v-pn a.is-next img { order: 2; }
.v-pn img { width: 72px; height: 72px; object-fit: cover; filter: sepia(.1); }
.v-pn .dir { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-400); display: block; }
.v-pn .ttl { font-size: 13.5px; line-height: 1.5; color: var(--ink); display: block; margin-top: 2px; }
.v-pn .v-pn__empty { border-style: dashed; color: var(--gray-400); font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* 同じ季節の景 */
.v-related { margin-top: 48px; }
.v-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v-related__grid a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--gray-100); text-decoration: none; }
.v-related__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; filter: sepia(.1); }
.v-related__grid a:hover img { transform: scale(1.05); filter: none; }
.v-related__grid .cap { position: absolute; inset: auto 0 0 0; padding: 26px 10px 10px; background: linear-gradient(to top, rgba(43,43,43,.75), transparent); color: #fff; }
.v-related__grid .cap .no { font-family: var(--font-en); font-size: 10px; letter-spacing: .2em; display: block; opacity: .8; }
.v-related__grid .cap .ttl { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .v-related__grid { gap: 16px; } .v-related__grid .cap .ttl { font-size: 13px; } }

/* hub に戻る */
.v-back { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* コメント（js/comments.js が .comments-section を生成） */
.v-comments { margin-top: 56px; }
.comments-section { max-width: var(--measure) !important; padding: 0 !important; }

/* Footer（hub と同じ） */
.v-footer { margin-top: 96px; background: var(--ink); color: rgba(255,255,255,.8); padding: 48px 16px; text-align: center; border-top: 1px solid var(--gray-800); }
.v-footer__logo { font-family: var(--font-en); font-size: 26px; letter-spacing: .2em; font-weight: 300; margin-bottom: 28px; }
.v-footer__rule { width: 32px; height: 1px; background: var(--gray-600); margin: 0 auto 28px; }
.v-footer p { font-family: var(--font-sans); font-size: 11px; letter-spacing: .04em; opacity: .6; line-height: 1.8; }
.v-footer a { color: inherit; }

/* ライトボックス（view.js が <dialog> を作る） */
.v-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.v-lightbox::backdrop { background: rgba(252,250,242,.96); backdrop-filter: blur(8px); }
.v-lightbox img { width: 100vw; height: 100vh; object-fit: contain; cursor: zoom-out; }
.v-lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.8); color: var(--gray-600); font-size: 26px; cursor: pointer; }

@media print { .v-nav, .v-mobile, .v-share, .v-comments, .v-footer, .v-place__map { display: none !important; } body { padding-top: 0; } }
