/* 訪日客向けページ（s.html・a.html）。極上の和モダン：和紙の白・墨・差し色は朱の1色だけ
   見出しの英字は Cormorant Garamond、日本語は しっぽり明朝。本文はスマホの文字
   本文のラテン文字は Segoe UI など先に＝日本語の Windows でもベトナム語の記号が崩れない */
:root {
  color-scheme: light;
  --washi: #f7f4ee; --paper: #fcfbf8; --sumi: #222222; --text: #2d2b27; --sub: #716a5f; --line: #e1dacb;
  --shu: #b6402c; --shu-soft: #f6e8e2;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", "Noto Sans Thai", system-ui, sans-serif;
  --en: "Cormorant Garamond", "Shippori Mincho", Georgia, serif;
  --mincho: "Cormorant Garamond", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --mincho-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cg fill='none' stroke='%23b6402c' stroke-opacity='.4'%3E%3Cpath d='M0 14a14 14 0 0 1 28 0M5 14a9 9 0 0 1 18 0M10 14a4 4 0 0 1 8 0'/%3E%3C/g%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --bar-h: 96px;
}
/* 中国語・韓国語・タイ語は、その言語の明朝・セリフ体を端末から使う（日本の明朝で字形が変わらないように） */
:root:lang(zh-Hans), :root:lang(zh-Hant), :root:lang(ko), :root:lang(th) { --mincho: "Cormorant Garamond", "Songti SC", "Songti TC", "Noto Serif CJK SC", "Noto Serif KR", "AppleMyungjo", "Noto Serif Thai", serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--washi); color: var(--text); font-family: var(--sans); line-height: 1.85; overflow-x: hidden; }
/* 紙の手ざわり：ごく薄いノイズを全体に重ねる */
body::before { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; background: var(--noise); opacity: .035; mix-blend-mode: multiply; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { flex: none; }
[hidden] { display: none !important; }
a { color: inherit; }

/* 写真の色調をそろえる（コントラストを少し上げ、彩度を少し下げる。さわると色が戻って少し寄る） */
.tone { filter: contrast(1.07) saturate(.8) brightness(.98); transition: filter .9s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }

/* ===== 上のバー：家紋風のマーク＋英字ロゴ、言語 ===== */
.bar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 10px 16px 8px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(252, 251, 248, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sumi); text-decoration: none; min-width: 0; }
.mon { width: 34px; height: 34px; color: var(--shu); }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm b { font: 600 21px/1 var(--en); letter-spacing: .22em; }
.wm small { margin-top: 4px; font: italic 500 12.5px/1 var(--en); letter-spacing: .12em; color: var(--sub); }
.lang { position: relative; display: inline-flex; align-items: center; }
.lang svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--sumi); pointer-events: none; }
.lang select { font: inherit; font-size: 13px; font-weight: 600; color: var(--sumi); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 30px; max-width: 40vw; appearance: none; -webkit-appearance: none; }
.qlang { grid-column: 1 / -1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.qlang::-webkit-scrollbar { display: none; }
.qlang button { flex: none; font: 600 13px/1 var(--sans); padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--sub); cursor: pointer; }
.qlang button[aria-pressed="true"] { background: var(--sumi); color: var(--paper); }
@media (min-width: 760px) {
  .bar { grid-template-columns: auto 1fr auto; padding: 12px 32px; }
  .qlang { grid-column: auto; justify-content: flex-end; order: 2; }
  .lang { order: 3; }
}
.demo { margin: 0; padding: 7px 16px; background: #ece4d2; color: #5f4a1f; font-size: 12.5px; line-height: 1.5; text-align: center; }

main { max-width: 760px; margin: 0 auto; padding: 0 0 8px; }
.state { padding: 64px 16px; text-align: center; color: var(--sub); }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--shu); }
.kicker .ci { width: 16px; height: 16px; }
.kicker span { display: inline-flex; align-items: center; gap: 6px; }
.kicker span + span::before { content: "·"; margin-right: 8px; color: var(--sub); }
h1, h2, h3 { font-family: var(--mincho); font-weight: 600; color: var(--sumi); }
h2 { font-size: 26px; margin: 0 0 16px; line-height: 1.35; }
.sec { margin-top: 64px; }
.sec > .kicker { margin-bottom: 2px; font: italic 600 24px/1.2 var(--en); letter-spacing: .04em; text-transform: none; }
.body { padding: 0 20px; }

/* ===== スポット（s.html）：写真に縦書きの名前、紙のシートを右へずらして重ねる ===== */
.hero { position: relative; margin: 0; aspect-ratio: 4 / 3.6; background: linear-gradient(150deg, #2c3a55, #1e1c19); overflow: hidden; }
.hero img { position: absolute; inset: -6% 0 0; width: 100%; height: 106%; object-fit: cover; display: block; transform: scale(1.08); will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(15, 13, 10, .5), rgba(15, 13, 10, 0) 38%), linear-gradient(to top, rgba(15, 13, 10, .35), rgba(15, 13, 10, 0) 45%); }
.tate { position: absolute; z-index: 1; top: 22px; right: 18px; margin: 0; writing-mode: vertical-rl; color: #fff; font: 600 30px/1.2 var(--mincho-ja); letter-spacing: .3em; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.tate::after { content: ""; display: block; width: 1px; height: 64px; margin: 14px auto 0; background: rgba(255, 255, 255, .8); }
.hero.no-photo { aspect-ratio: auto; min-height: 150px; }
.credit { position: relative; z-index: 1; margin: 8px 20px 0; font-size: 10.5px; color: var(--sub); text-align: right; line-height: 1.4; }
.sheet { position: relative; z-index: 2; margin: -72px 0 0 28px; padding: 28px 24px 10px 26px; background: var(--paper); box-shadow: -18px 24px 48px rgba(30, 28, 25, .1); }
.sheet::before { content: ""; position: absolute; left: 26px; top: 0; width: 56px; height: 3px; background: var(--shu); }
h1 { margin: 10px 0 0; font-size: clamp(34px, 9vw, 52px); line-height: 1.1; letter-spacing: .01em; }
.name-ja { margin: 8px 0 0; font: 500 16px/1.4 var(--mincho-ja); letter-spacing: .18em; color: var(--sub); }
.rating-sum { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--sub); }
.rating-sum b { color: var(--sumi); font: 600 20px/1 var(--en); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--sumi); text-decoration: none; cursor: pointer; transition: border-color .3s; }
.chip:hover { border-color: var(--sumi); }
.chip svg { width: 15px; height: 15px; color: var(--shu); }
.desc { font-size: 16.5px; line-height: 2; white-space: pre-line; margin: 24px 0 18px; }
.hours { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding: 16px 0 8px; margin: 0; font-size: 14px; }
.hours svg { width: 20px; height: 20px; color: var(--shu); margin-top: 3px; }
.hours b { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }
@media (min-width: 760px) { .sheet { margin: -120px 0 0 22%; padding: 40px 48px 16px; } }

/* もっと聞く */
.ask { background: var(--paper); border-top: 3px solid var(--sumi); padding: 26px 20px 20px; }
.ask form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ask textarea { flex: 1 1 100%; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 2px; border: 1px solid var(--line); background: #fff; resize: vertical; min-height: 56px; }
.fb textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 2px; border: 1px solid var(--line); background: #fff; resize: vertical; min-height: 56px; }
#fb-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ask textarea:focus, .fb textarea:focus { outline: 2px solid var(--sumi); outline-offset: 1px; }
.btn { font: inherit; font-weight: 700; letter-spacing: .08em; padding: 12px 26px; min-width: 128px; border: 0; border-radius: 2px; background: var(--sumi); color: var(--paper); cursor: pointer; text-decoration: none; text-align: center; transition: background .3s; }
.btn:hover { background: var(--shu); }
.btn:disabled { opacity: .5; }
.qa { border-top: 1px solid var(--line); padding: 14px 0 2px; margin-top: 14px; }
.qa .q { font-size: 13px; font-weight: 700; color: var(--sub); margin: 0 0 4px; }
.qa .a { margin: 0; white-space: pre-line; }
.qa .note { margin: 8px 0 0; font-size: 12px; color: var(--shu); background: var(--shu-soft); border-radius: 2px; padding: 4px 8px; }

/* ★評価 */
.fb-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-btns .chip { cursor: pointer; font-size: 15px; padding: 10px 18px; }
.fb-btns .chip.on { background: var(--sumi); color: var(--paper); border-color: var(--sumi); }
#fb-form { margin-top: 14px; }
.fb-msg { margin: 10px 0 0; font-size: 13px; color: var(--sub); }

.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); color: var(--sumi); text-decoration: none; font-weight: 600; }
.links a::after { content: "↗"; color: var(--shu); }
.fine { margin: 8px 2px 0; font-size: 12px; color: var(--sub); }

/* ===== カード（地域の一覧・近くのおすすめ） ===== */
.cards { list-style: none; padding: 0; margin: 0; }
.card a { display: block; height: 100%; color: var(--sumi); text-decoration: none; }
.card .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(150deg, #2c3a55, #1e1c19); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card a:hover .tone, .card a:focus-visible .tone { filter: none; transform: scale(1.05); }
.card .in { display: block; padding: 12px 2px 4px; }
.card .meta { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--shu); }
.card .meta .ci { width: 15px; height: 15px; }
.card h3 { margin: 4px 0 0; font-size: 21px; line-height: 1.2; }
.card .ja { display: block; margin-top: 3px; font: 500 12.5px/1.4 var(--mincho-ja); letter-spacing: .14em; color: var(--sub); }
.card .sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--text); }
.card .dist { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(252, 251, 248, .94); color: var(--sumi); font: 600 13px/1.4 var(--en); letter-spacing: .04em; }
.nearby { display: flex; gap: 16px; padding: 0 20px 8px; margin: 0 -20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; }
.nearby::-webkit-scrollbar { display: none; }
.nearby .card { flex: 0 0 min(62%, 240px); scroll-snap-align: start; }
.nearby .card .ph { aspect-ratio: 4 / 3; }
.to-area { display: block; margin: 56px 0 0; }

/* ===== 下：家紋と青海波の帯 ===== */
.foot { margin-top: 72px; padding: 36px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; color: var(--sub); background: var(--wave) top left / 28px 14px repeat-x; }
.foot .mon { width: 40px; height: 40px; }
.foot b { display: block; margin-top: 8px; font: 600 18px/1 var(--en); letter-spacing: .3em; color: var(--sumi); }
.foot p { margin: 8px 0 0; font-size: 11px; letter-spacing: .08em; }

/* スクロールで出る動き（JS が .reveal を付けたものだけ） */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in-view { opacity: 1; transform: none; }
.grid .card.reveal:nth-child(2n) { transition-delay: .12s; }

/* ===== 地域のトップ（a.html） ===== */
.page-area main { max-width: 1120px; }
.cover { position: relative; margin: 0; height: min(86vh, 760px); min-height: 460px; background: linear-gradient(150deg, #2c3a55, #1e1c19); overflow: hidden; color: #fff; }
.cover img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 13, 10, .55), rgba(15, 13, 10, 0) 45%), linear-gradient(to left, rgba(15, 13, 10, .45), rgba(15, 13, 10, 0) 40%); }
.cover .tate { font-size: clamp(48px, 13vw, 96px); top: 28px; right: 22px; letter-spacing: .32em; }
.cover .tate::after { height: 96px; }
.cover-mark { position: absolute; z-index: 1; left: 20px; bottom: 120px; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); font: italic 500 14px/1 var(--en); letter-spacing: .4em; color: rgba(255, 255, 255, .85); }
.intro { position: relative; z-index: 2; margin: -110px 14% 0 0; padding: 30px 24px 26px; background: var(--paper); box-shadow: 18px 24px 48px rgba(30, 28, 25, .1); }
.intro::before { content: ""; position: absolute; left: 24px; top: 0; width: 56px; height: 3px; background: var(--shu); }
.eyebrow { margin: 0; font: italic 600 15px/1.2 var(--en); letter-spacing: .14em; color: var(--shu); }
.intro h1 { margin-top: 10px; font: 600 clamp(46px, 13vw, 96px)/.98 var(--en); letter-spacing: -.01em; }
.intro .lead { margin: 16px 0 0; font-size: 15px; line-height: 1.8; color: var(--text); }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.stats li { display: flex; align-items: baseline; gap: 8px; }
.stats b { font: 600 40px/1 var(--en); color: var(--sumi); }
.stats span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }
.page-area .credit { margin-top: 10px; }
.tabs { position: sticky; top: var(--bar-h); z-index: 20; display: flex; gap: 22px; margin-top: 36px; padding: 0 20px; overflow-x: auto; background: rgba(247, 244, 238, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em; padding: 14px 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--sub); cursor: pointer; }
.tabs button[aria-pressed="true"] { color: var(--sumi); border-bottom-color: var(--shu); }
.tabs .near { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--shu); }
.tabs .near svg { width: 15px; height: 15px; }
.group { margin-top: 64px; }
.ghead { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 16px; margin-bottom: 26px; }
.vlabel { margin: 0; writing-mode: vertical-rl; font: 600 20px/1 var(--mincho-ja); letter-spacing: .3em; color: var(--sumi); border-left: 2px solid var(--shu); padding-left: 8px; }
.ghead .en { margin: 0; font: italic 500 clamp(44px, 12vw, 72px)/.9 var(--en); color: var(--sumi); }
.ghead h2 { margin: 6px 0 0; font-size: 15px; font-family: var(--sans); font-weight: 700; letter-spacing: .14em; color: var(--sub); }
.ghead .count { font: 600 56px/1 var(--en); color: var(--line); }
/* 先頭の1件は大きく：写真を画面の端まで出し、文字の紙を右へずらして重ねる */
.feature { margin: 0 0 40px; }
.feature a { display: block; color: var(--sumi); text-decoration: none; }
.feature .ph { position: relative; margin-left: -20px; aspect-ratio: 4 / 3; overflow: hidden; background: #2c3a55; }
.feature .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature a:hover .tone { filter: none; transform: scale(1.04); }
.feature .in { position: relative; display: block; margin: -64px -20px 0 18%; padding: 22px 22px 18px; background: var(--paper); box-shadow: -14px 18px 40px rgba(30, 28, 25, .1); }
.feature h3 { margin: 6px 0 0; font-size: clamp(28px, 8vw, 40px); line-height: 1.1; }
.feature .sum { -webkit-line-clamp: 3; font-size: 14px; }
.feature .more { display: inline-block; margin-top: 12px; font: italic 600 16px/1 var(--en); letter-spacing: .08em; color: var(--shu); }
/* 残りは2列で、右の列を少し下げて並べる */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; padding-bottom: 40px; }
.grid > li:nth-child(2n) { margin-top: 48px; }
.grid > li { margin-bottom: 28px; }
@media (min-width: 760px) {
  .body { padding: 0 32px; }
  .cover .tate { right: 48px; }
  .intro { margin: -150px 34% 0 32px; padding: 44px 48px 36px; }
  .tabs { padding: 0 32px; }
  .feature { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; }
  .feature a { display: contents; }
  .feature .ph { margin-left: -32px; }
  .feature .in { margin: 0 0 0 -80px; padding: 36px 36px 30px; }
  .grid { grid-template-columns: 1fr 1fr 1fr; gap: 0 28px; }
  .grid > li:nth-child(2n) { margin-top: 0; }
  .grid > li:nth-child(3n+2) { margin-top: 64px; }
}

/* 検索エンジン向けの本文（JS が動くブラウザでは隠し、a.js が消す） */
.js .ssr { display: none; }
.ssr { padding: 24px 20px; }
.prose p { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: var(--text); }
.access .prose { background: var(--paper); border-left: 3px solid var(--shu); padding: 18px 18px 6px; }
