/* Search pages (range, area, Tokyo, lessons), design C "Painting first" (Mike, 2026-10-25).
   Markup and look from golf-tracker docs/seo/designs-r2.html (.dC blocks + shared .acc, .ft, .sb);
   built by scripts/build-seo.mjs. Text in rem so it follows the browser's text size; no JS needed. */
:root {
  --bg: #f5f1e8; --card: #fbf9f5; --ink: #1f342a; --muted: #5f6b61; --line: #ddd5c6;
  --brass: #94742f; --brass-soft: #efe4c8; --forest: #1f342a; --on-forest: #f5f1e8;
  --miss: #b5523b; --miss-soft: #f6e3dc; --ground: #e8e1d0;
  --serif: "Newsreader", Georgia, serif; --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --ja-head: "Murecho", "Hiragino Sans", sans-serif; --ja-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #15231b; --card: #1d2f24; --ink: #f1ede3; --muted: #b0bdac; --line: #2f4336;
  --miss: #e08a6e; --miss-soft: #3a2620; --ground: #24372b; --brass: #d8b66c; --brass-soft: #343020; --forest: #2e4a36; --on-forest: #f5f1e8; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #15231b; --card: #1d2f24; --ink: #f1ede3; --muted: #b0bdac; --line: #2f4336;
  --miss: #e08a6e; --miss-soft: #3a2620; --ground: #24372b; --brass: #d8b66c; --brass-soft: #343020; --forest: #2e4a36; --on-forest: #f5f1e8; color-scheme: dark }
html { -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }

/* ── shared page parts ── */
.pg { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--sans); min-height: 100vh; -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom, 0px); overflow-wrap: anywhere; }
[lang="ja"] .pg { font-family: var(--ja-body); font-size: .875rem; overflow-wrap: normal; line-break: strict; }
.pg h1, .pg h2 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; text-wrap: balance; }
[lang="ja"] .pg h1, [lang="ja"] .pg h2 { font-family: var(--ja-head); font-weight: 700; word-break: auto-phrase; }
.pg h1, .pg h2, .cr, .sub { overflow-wrap: anywhere; min-width: 0; }
.C-title, .C-head, .C-sec { grid-template-columns: minmax(0, 1fr); }
.pg h1 { font-size: 1.9rem; } [lang="ja"] .pg h1 { font-size: 1.55rem; }
.pg h2 { font-size: 1.1rem; } [lang="ja"] .pg h2 { font-size: .98rem; }
.pg p { margin: 0; }
.pg a { color: inherit; text-decoration: none; }
.pg a:focus-visible, .pg summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.pg img { display: block; max-width: 100%; height: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; z-index: 9; }
.skip:focus { left: 8px; }
.tb { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top, 0px)); background: var(--forest); color: var(--on-forest); }
.wm { font: 600 1.2rem var(--serif); }
.tbr { font-size: .78rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tbr a { opacity: .9; }
.tbr a.lang { border: 1px solid rgba(245,241,232,.45); border-radius: 99px; padding: 0 8px; font-weight: 600; opacity: 1; }
.cr { font-size: .74rem; color: var(--muted); }
.cr a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.sub { color: var(--muted); font-size: .9rem; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.note { position: absolute; right: 10px; font-size: .64rem; color: #f5f1e8; background: rgba(20,34,26,.55); padding: 0 7px; border-radius: 99px; }
.hs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.acc { margin: 0 16px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 2px; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { color: var(--muted); transition: transform .2s; }
.acc details[open] summary .ic { transform: rotate(180deg); }
.acc details > p, .acc details > ul { padding: 0 2px 14px; color: var(--muted); }
.acc ul { margin: 0; list-style: none; display: grid; gap: 6px; }
.acc li { overflow-wrap: anywhere; min-width: 0; }
.acc .src { display: block; margin-top: 4px; font-size: .74rem; }
.acc .src a, .acc a.out { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ft { margin: 26px 16px 0; padding: 14px 0 22px; border-top: 1px solid var(--line); display: grid; gap: 3px; font-size: .74rem; color: var(--muted); }
.ft a { text-decoration: underline !important; text-underline-offset: 2px; }
.ft .unof { color: var(--ink); font-weight: 600; }
.ft2 { opacity: .8; }
.ft .soc a { margin-right: 2px; }
.sb { display: inline-block; line-height: 0; }
.sb img { height: 2.6rem; width: auto; }
.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row .t { display: grid; flex: 1; min-width: 0; }
.row .t b { font-weight: 600; } .row .t span { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row > .ic { color: var(--muted); }
.A-indoor { margin: 12px 16px 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; background: var(--card); }

/* ── C · Painting first ── */
.dC .C-hero { position: relative; }
/* The picture fills the hero; the hero is 4:5 but grows with the title at very large text sizes. */
.dC .C-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dC .C-over { position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(to bottom, rgba(16,28,21,.55), transparent 22%, transparent 50%, rgba(16,28,21,.82)); }
.dC .C-over .tb { background: transparent; }
.dC .C-title { padding: 0 18px 22px; color: #f5f1e8; display: grid; gap: 4px; }
.dC .C-title .cr { color: rgba(245,241,232,.85); }
.dC .C-title h1 { font-size: 2.3rem; color: #f5f1e8; }
[lang="ja"] .dC .C-title h1 { font-size: 1.85rem; }
.dC .C-title .sub { color: rgba(245,241,232,.85); }
.dC .note { position: static; align-self: flex-end; margin: 0 10px auto; }
.dC .C-verdict { margin: 18px 18px 0; font: 400 1.25rem/1.4 var(--serif); }
[lang="ja"] .dC .C-verdict { font-family: var(--ja-head); font-weight: 600; font-size: 1.05rem; }
.dC .pro { font-family: var(--sans); font-size: .8rem; color: var(--brass); font-weight: 600; white-space: nowrap; }
[lang="ja"] .dC .pro { font-family: var(--ja-body); }
.dC .C-three { margin: 16px 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dC .C-three div { padding: 12px 4px; display: grid; justify-items: center; align-content: start; text-align: center; gap: 0; min-width: 0; }
.dC .C-three div + div { border-left: 1px solid var(--line); }
.dC .C-three b { font: 600 min(1.6rem, 8.5vw)/1.1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; } /* capped so 3 numbers fit a 320 px screen at large text */
.dC .C-three span { font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.dC .C-sec { margin: 22px 18px 0; display: grid; gap: 10px; }
.dC .C-sec .hs { margin-right: -18px; padding-right: 18px; }
.dC .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dC .tags span { background: var(--brass-soft); color: var(--ink); border-radius: 99px; padding: 4px 12px; font-size: .84rem; font-weight: 600; }
.dC .acc { margin-top: 20px; }
.dC .C-ok { margin: 10px 18px 0; font-size: .74rem; color: var(--muted); }
.dC .C-cta { margin: 22px 18px 0; display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: 16px; background: var(--forest); color: var(--on-forest); }
.dC .C-cta b { font: 600 1.15rem/1.3 var(--serif); }
.dC .C-cta span { font-size: .85rem; opacity: .85; }
[lang="ja"] .dC .C-cta b { font-family: var(--ja-head); font-size: 1rem; }
.dC .pc { flex: none; width: 200px; position: relative; border-radius: 14px; overflow: hidden; }
.dC .pc img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.dC .pc span { position: absolute; inset: auto 0 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(16,28,21,.85)); color: #f5f1e8; display: grid; font-size: .82rem; line-height: 1.3; }
.dC .pc em { font-style: normal; opacity: .85; font-size: .72rem; }
.dC .C-head { padding: 16px 18px 12px; display: grid; gap: 4px; }
.dC .acs { display: grid; gap: 14px; padding: 0 18px; }
.dC .ac { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.dC .ac img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dC .acb { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(16,28,21,.88)); color: #f5f1e8; display: grid; gap: 1px; }
.dC .acb b { font: 600 1.15rem/1.25 var(--serif); }
[lang="ja"] .dC .acb b { font-family: var(--ja-head); font-size: 1rem; }
.dC .acb span { font-size: .78rem; opacity: .92; font-variant-numeric: tabular-nums; }
.dC .C-quote { margin: 22px 18px 0; padding: 0; font: 600 1.9rem/1.2 var(--serif); display: grid; gap: 6px; }
[lang="ja"] .dC .C-quote { font-family: var(--ja-head); font-size: 1.5rem; }
.dC .C-quote span { font: 700 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
[lang="ja"] .dC .C-quote span { letter-spacing: .04em; font-family: var(--ja-body); }
.dC .C-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.dC .C-steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 8px; }
.dC .C-steps li::before { content: counter(s); font: 600 1.6rem/1 var(--serif); color: var(--brass); }
.dC .A-indoor { margin: 14px 18px 0; }
.dC .C-sec .rows .row:first-child { border-top: 1px solid var(--line); }
.dC .gen { font-size: .78rem; color: var(--muted); }
.dC .plain { margin: 18px 18px 0; display: grid; gap: 10px; }
.dC .plain .sb { margin-top: 6px; }
.dC .lead { margin: 4px 18px 10px; }
.nf-en { margin-top: 20px; display: grid; gap: 4px; }

/* ── guides (scripts/build-guides.mjs): an article with our reel, in the same C look ── */
.gd .G-kick { font: 700 .7rem var(--sans); letter-spacing: .04em; color: var(--brass); margin-top: 6px; }
[lang="ja"] .gd .G-kick { font-family: var(--ja-body); }
.gd .C-head h1 { font-size: 1.5rem; line-height: 1.35; }
.gd .G-answer { margin: 4px 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; font-size: 1rem; line-height: 1.8; }
.gd .G-answer p:first-child { font-family: var(--ja-head); font-weight: 600; font-size: 1.05rem; line-height: 1.6; }
.gd .G-video { margin: 18px auto 0; padding: 0 18px; max-width: 22rem; display: grid; gap: 6px; }
.gd .G-video video, .gd .G-yt, .gd .G-yt img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #1f342a; object-fit: cover; }
.gd .G-yt { position: relative; overflow: hidden; }
.gd .G-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gd .G-play { position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: 50%; background: rgba(16,28,21,.72); }
.gd .G-play::after { content: ""; position: absolute; left: 1.55rem; top: 1.2rem; border: .8rem solid transparent; border-left: 1.3rem solid #f5f1e8; border-right: 0; }
.gd .G-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gd figcaption { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.gd .G-sec { gap: 12px; margin-top: 30px; }
.gd .G-sec h2 { font-size: 1.2rem; line-height: 1.4; }
.gd .G-sec p, .gd .G-ul li, .gd .C-steps li { font-size: 1rem; line-height: 1.85; }
.gd .G-sec a, .gd .G-answer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.gd .G-ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.gd .G-fig { margin: 4px 0; display: grid; gap: 6px; max-width: 26rem; }
.gd .G-fig img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
/* Infographics (scripts/infographics.mjs): the explainer reels' notebook look (REEL-RULES L18): taped white card on cream grid paper.
   Fixed colours, so the figure looks the same in light and dark mode, like the reels. */
.gd .G-ifig { max-width: 40rem; padding: 14px 12px 14px; border-radius: 18px; background-color: #F4F1E6;
  background-image: linear-gradient(#E1E4D3 2px, transparent 2px), linear-gradient(90deg, #E1E4D3 2px, transparent 2px); background-size: 28px 28px; }
.gd .G-ifig figcaption { color: #3C4A40; padding: 2px 10px 0; }
.gd .G-ifig figcaption a { color: #1C2A21; text-decoration-color: #B8902A; }
.gd .G-svg { width: 100%; height: auto; display: block; font-family: "Murecho", var(--ja-body); font-weight: 700; }
.G-svg text { font-weight: 700; }
.G-svg .fi, .G-svg .fk, .G-svg .t-ink-x { fill: #1C2A21; } .G-svg .fm { fill: #56635A; } .G-svg .fx { fill: #D2412F; } .G-svg .fg { fill: #2F8A4A; } .G-svg .fb { fill: #9A7414; }
.G-svg .fo { fill: #FFFFFF; } .G-svg .fk0 { fill: #1C2A21; } .G-svg .fp { fill: #E6DCC6; stroke: #1C2A21; stroke-width: 3; }
.G-svg .fxf { fill: #FF6B5B; } .G-svg .fbf { fill: #F0C460; } .G-svg .fgf { fill: #74E08F; } .G-svg .fwf { fill: #FFFFFF; }
.G-svg .se1 { stroke: rgba(0,0,0,.45); stroke-width: 3; }
.G-svg .se { stroke: rgba(0,0,0,.45); } .G-svg .sx { stroke: #FF6B5B; } .G-svg .sb { stroke: #F0C460; } .G-svg .sg { stroke: #74E08F; } .G-svg .sw { stroke: #FFFFFF; }
.G-svg .sk { stroke: #1C2A21; } .G-svg .paper { fill: #FBFAF4; } .G-svg .grass { fill: #8FAF7C; }
.G-svg .ball { fill: #FFFFFF; stroke: #1C2A21; stroke-width: 3; } .G-svg .hollow { fill: none; stroke: #56635A; }
.G-svg .shoe { fill: #3A4A3F; stroke: #1C2A21; stroke-width: 2; }
.G-svg .note { fill: #F7E9B5; filter: drop-shadow(0 6px 10px rgba(45,60,40,.25)); }
.G-svg .box { fill: #FFFFFF; stroke: #1C2A21; } .G-svg .boxx { fill: #FFE1DA; stroke: #D2412F; }
.G-svg .p-ink { fill: #1C2A21; } .G-svg .t-ink { fill: #FFFFFF; } .G-svg .p-red { fill: #FF6B5B; } .G-svg .t-red { fill: #FFFFFF; }
.G-svg .p-gold { fill: #F0C460; } .G-svg .t-gold { fill: #1C2A21; } .G-svg .p-green { fill: #74E08F; } .G-svg .t-green { fill: #1C2A21; }
.G-svg .p-white { fill: #FFFFFF; stroke: #1C2A21; stroke-width: 2; } .G-svg .t-white { fill: #1C2A21; }
.G-svg .mk { fill: #1C2A21; fill: context-stroke; }
.gd .G-ref { font-size: .68em; line-height: 0; }
.gd .G-ref a { text-decoration: none !important; color: var(--brass); font-weight: 700; padding: 0 2px; }
.gd .G-tw { overflow-x: auto; }
.gd .G-table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.6; }
.gd .G-table th, .gd .G-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.gd .G-table thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.gd .G-table tbody th { font-weight: 700; white-space: nowrap; }
.gd .G-drill { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-left: 18px; margin-right: 18px; }
.gd .G-note { font-size: .86rem !important; color: var(--muted); }
.gd .G-qa h3 { font: 700 1.02rem/1.6 var(--ja-head); margin-top: 8px; }
.gd .G-tr p { font-size: .94rem; color: var(--muted); }
.gd .C-cta .G-web { font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; opacity: .95; }
.gd .G-src { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.gd .G-src a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); overflow-wrap: anywhere; }
.gd .G-src span { display: block; }
.gd .G-src li:target { background: var(--brass-soft); }
.gd .ac img { object-position: 50% 78%; }

/* ── computer width: centred column, wider pictures ── */
@media (min-width: 760px) {
  .pg > :not(.tb):not(.C-hero):not(.skip) { max-width: 720px; margin-left: auto !important; margin-right: auto !important; }
  .pg > .acc { width: 720px; }
  .dC .C-over { aspect-ratio: 21 / 8; }
  .dC .C-title { max-width: 720px; width: 100%; margin: 0 auto; }
  .dC .C-title h1 { font-size: 3.2rem; } [lang="ja"] .dC .C-title h1 { font-size: 2.5rem; }
  .dC .acs { grid-template-columns: 1fr 1fr; }
}

/* ── guide tools (scripts/build-guides.mjs): the ナイスショット率 calculator and the printable-sheet block ── */
.gd .ac img.T-card { object-position: 50% 0; }
.gd .T-tool { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-left: 18px; margin-right: 18px; }
.gd .T-calc { display: grid; gap: 14px; }
.gd .T-row { display: grid; gap: 4px; }
.gd .T-row label { font-weight: 700; font-size: 1rem; }
.gd .T-row input { font: inherit; font-size: 1.15rem; width: 100%; max-width: 12rem; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--muted); background: var(--bg); color: var(--ink); }
.gd .T-row input:focus-visible, .gd .T-btns button:focus-visible, .gd .T-btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.gd .T-hint { font-size: .8rem; color: var(--muted); }
.gd .T-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.gd .T-btns button { font: inherit; font-weight: 700; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--muted); cursor: pointer; background: transparent; color: var(--ink); }
.gd .T-btns button[type="submit"] { background: var(--forest); color: var(--on-forest); }
.gd .T-out { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--brass-soft); color: var(--ink); display: grid; gap: 4px; }
.gd .T-out b { font-family: var(--ja-head); font-size: 1.15rem; line-height: 1.5; }
.gd .T-out span { font-size: .92rem; line-height: 1.7; }
.gd .T-fig { max-width: 22rem; }
.gd .T-open { margin: 0; }
.gd .T-btn { display: inline-block; font-weight: 700; padding: 11px 20px; border-radius: 999px; background: var(--forest); color: var(--on-forest) !important; text-decoration: none !important; }

/* area pages: side-by-side table and picks */
.dC .A-tw { overflow-x: auto; margin: 12px 0 8px; }
.dC .A-table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.5; }
.dC .A-table th, .dC .A-table td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dC .A-table thead th { font-size: .76rem; color: var(--muted); font-weight: 600; }
.dC .A-table tbody th { font-weight: 700; }
.dC .A-picks { margin: 8px 0 4px; padding-left: 1.2em; line-height: 1.7; }
.dC .A-picks li { margin: 4px 0; }
