/* みっけて備北（mikkete.net の入り口）の見た目（2026-10-22）。
   町のサイトと同じ色づかい（明るいクリームの地・こげ茶の文字・ロゴの3色〔テラコッタ・からし・緑〕）と字体（本文は丸ゴシック・大きな見出しだけ明朝）。
   暗い面は作らない。角は大きくても 8px。字体は庄原の assets の fonts.css を読む */
:root {
  color-scheme: light;
  --bg: #fffaf0;
  --paper: #ffffff;
  --text: #423024;
  --text-dim: #6e5a4a;
  --line: #eadfcf;
  --terra: #b9542f;
  --terra-dark: #9c4425;
  --mustard: #e9a21f;
  --green: #5f9a35;
  --orange: #f08a3c;
  --sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --serif: "Shippori Mincho B1", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --mono: "M PLUS 1 Code", "Zen Maru Gothic", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --soft-shadow: 0 1px 2px rgba(66, 48, 36, .06), 0 6px 18px rgba(66, 48, 36, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
a { color: var(--terra-dark); }
img { max-width: 100%; height: auto; }
main { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }

/* ヘッダー（ロゴは B1「ふたつの町の山」の SVG。下に日本語の名前。町のサイトのロゴと同じ並び） */
.pt-head {
  display: flex; justify-content: center;
  padding: 18px var(--gutter) 14px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--mustard), var(--terra) 50%, #8e2f4f 75%, var(--green)) 1;
  background: var(--bg);
}
.pt-logo { --logo-h: 62px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); }
.pt-logo-svg { display: block; height: calc(var(--logo-h) * .66); width: auto; max-width: 100%; aspect-ratio: 1430 / 222; overflow: visible; }
.pt-logo-jp { font-weight: 800; font-size: calc(var(--logo-h) * .25); line-height: 1; letter-spacing: .32em; margin-right: -.32em; color: var(--terra); white-space: nowrap; }
/* ホバーで、のぞく目が虫めがねの方を見て、きらめきが光り、虫めがねが少し傾く（町のロゴと同じ動き） */
.pt-logo-svg .lg-pupils, .pt-logo-svg .lg-spark, .pt-logo-svg .lg-lens { transform-box: fill-box; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.pt-logo-svg .lg-spark { transform-origin: 50% 100%; }
.pt-logo-svg .lg-lens { transform-origin: 45% 40%; }
.pt-logo:hover .lg-pupils { transform: translate(7px, -3px); }
.pt-logo:hover .lg-spark { animation: pt-spark .9s cubic-bezier(.2, .8, .2, 1) both; }
.pt-logo:hover .lg-lens { transform: rotate(-10deg); }
.pt-logo:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; border-radius: 6px; }
@keyframes pt-spark { 40% { transform: scale(1.35); } }

/* 見出し（水彩の絵の帯と、ことば） */
.pt-hero { padding: clamp(20px, 4vw, 36px) 0 8px; }
.pt-hero-art {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 0 calc(var(--gutter) * -0.5);
}
.pt-hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--soft-shadow); }
.pt-hero-art img:nth-child(odd) { transform: translateY(8px); }
.pt-hero-text { max-width: 680px; margin: clamp(22px, 4vw, 34px) auto 0; text-align: center; }
.pt-kicker { margin: 0 0 6px; font-size: .88rem; color: var(--text-dim); letter-spacing: .12em; }
.pt-hero h1 { margin: 0 0 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(1.55rem, 4.6vw, 2.35rem); line-height: 1.5; letter-spacing: .03em; }
.pt-lead { margin: 0 0 10px; text-align: left; }
.pt-sp { display: none; }

/* 区切りの見出し */
.pt-sec { padding: clamp(26px, 5vw, 44px) 0 0; }
.pt-h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 3.4vw, 1.55rem); line-height: 1.4;
}
.pt-h2 small { font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--terra-dark); }

/* 町の入り口 */
.pt-towns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pt-town {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 20px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--soft-shadow);
}
.pt-town-state {
  position: absolute; top: 12px; right: 12px; margin: 0;
  padding: 0 10px; border-radius: 6px; font-size: .78rem; font-weight: 700; line-height: 1.9;
  background: #e5f1d9; color: #3d6b1e;
}
.pt-town-logo { width: min(100%, 300px); height: auto; aspect-ratio: 1282 / 199; margin: 6px 0 4px; }
.pt-town-name { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.4; }
.pt-town-area { margin: 0; font-size: .88rem; color: var(--text-dim); }
.pt-town-num { display: flex; gap: 22px; margin: 8px 0 10px; }
.pt-town-num div { display: flex; flex-direction: column; }
.pt-town-num dt { font-size: .78rem; color: var(--text-dim); }
.pt-town-num dd { margin: 0; font-size: .95rem; }
.pt-town-num b { font-size: 1.7rem; line-height: 1.2; color: var(--terra); margin-right: 2px; }
.pt-town-note { margin: 8px 0 10px; font-size: .92rem; }
.pt-town-host { margin: 6px 0 0; font-family: var(--mono); font-size: .75rem; color: var(--text-dim); letter-spacing: .04em; }
.pt-town.is-coming { background: #fdf8ee; border-style: dashed; box-shadow: none; }
.pt-town.is-coming .pt-town-state { background: #efe7da; color: var(--text-dim); }
.pt-town.is-coming .pt-town-logo { opacity: .78; }

.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start;
  padding: 10px 18px; border-radius: 6px; background: var(--terra); color: #fff; font-weight: 700; text-decoration: none;
  transition: background-color .15s;
}
.pt-btn:hover { background: var(--terra-dark); }
.pt-btn:focus-visible, .pt-wk a:focus-visible, .pt-nearby a:focus-visible, .pt-more a:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.pt-btn-ghost { background: transparent; color: var(--terra-dark); border: 1px solid var(--terra); }
.pt-btn-ghost:hover { background: #fbeee6; }

.pt-nearby { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .9rem; }
.pt-nearby span { color: var(--text-dim); margin-right: 4px; }
.pt-nearby a { padding: 2px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--text); text-decoration: none; }
.pt-nearby a:hover { border-color: var(--terra); }
.pt-nearby b { color: var(--terra); }

/* 今週末の催し（新聞の催し物欄のような、上下の罫線だけの1行） */
.pt-wk { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pt-wk li { border-bottom: 1px solid var(--line); }
.pt-wk a { display: flex; align-items: center; gap: 14px; padding: 10px 4px; color: var(--text); text-decoration: none; }
.pt-wk a:hover { background: #fff3df; }
.pt-wk-date {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 74px;
  padding: 2px 8px; border-radius: 6px; background: #fff1d1; font-weight: 700; font-size: .92rem; line-height: 1.5;
}
.pt-wk-date small { font-weight: 500; font-size: .78rem; color: var(--text-dim); }
.pt-wk-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.55; }
.pt-wk-body b { font-weight: 700; }
.pt-wk-body small { font-size: .82rem; color: var(--text-dim); }
.pt-more { margin: 12px 0 0; text-align: right; }
.pt-more a { font-weight: 700; }
.pt-empty { color: var(--text-dim); }

/* 載せかた */
.pt-how { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 0; padding: 0; }
.pt-how li {
  counter-increment: how; position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 16px 16px 62px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.pt-how li::before {
  content: counter(how); position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.pt-how b { font-size: 1.05rem; }
.pt-how span { font-size: .9rem; color: var(--text-dim); line-height: 1.7; }
.pt-how-note { margin: 12px 0 0; font-size: .92rem; }

/* ホーム画面に置いて、アプリのように（2026-10-30。町のアイコンを並べ、iPhone と Android の手順を2列に） */
.pt-a2hs-lead { margin: 0 0 14px; }
.pt-a2hs-icons { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0 0 16px; padding: 0; }
.pt-a2hs-icons li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; font-size: .82rem; font-weight: 700; line-height: 1.4; text-align: center; }
.pt-a2hs-icons img { width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--soft-shadow); }
.pt-a2hs-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pt-a2hs-steps section { padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.pt-a2hs-steps h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.pt-a2hs-steps ol { margin: 0; padding-left: 1.4em; }
.pt-a2hs-steps li { margin: 0 0 6px; line-height: 1.7; }
.pt-a2hs-steps li::marker { color: var(--terra); font-weight: 700; }
.pt-a2hs-steps small { display: block; font-size: .82rem; color: var(--text-dim); }
.pt-glyph { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-a2hs-note { margin: 12px 0 0; font-size: .9rem; color: var(--text-dim); }

.pt-about p { margin: 0 0 10px; }

/* フッター */
.pt-foot { margin-top: clamp(36px, 6vw, 60px); padding: 22px var(--gutter) 28px; border-top: 1px solid var(--line); text-align: center; }
.pt-foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .9rem; }
.pt-copy { margin: 12px 0 0; font-size: .82rem; color: var(--text-dim); }
.pt-copy small { margin-left: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }

@media (max-width: 600px) {
  .pt-logo { --logo-h: 46px; }
  .pt-hero-art { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
  .pt-hero-art img:nth-child(n + 3) { display: none; }
  .pt-hero-art img:nth-child(odd) { transform: none; }
  .pt-sp { display: inline; }
  .pt-wk a { gap: 10px; }
  .pt-wk-date { min-width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-btn { transition: none; }
  .pt-logo:hover .lg-spark { animation: none; }
  .pt-logo:hover .lg-pupils, .pt-logo:hover .lg-lens { transform: none; }
}
