/* ひなたしらべ 見た目の決まり（第2版）
   文字 14/15/16/17/19/24/32/40px・本文16px 行の高さ1.75・余白は8の倍数・押せるもの44px以上
   主の色は #B54C08（白い文字で5.25:1）、日なたは運営会社の色 #F47A20。色だけで分けず、言葉と絵を組にする */
:root {
  --ink: #1F1C19;
  --ink-2: #5A544D;
  --ink-3: #6B655E;
  --line: #E7E2DB;
  --line-2: #D2CBC2;
  --paper: #FFFFFF;
  --paper-2: #FAF8F5;
  --paper-3: #F3EFEA;
  --accent: #B54C08;
  --accent-2: #9A3F06;
  --accent-soft: #FBEFE6;
  --sun: #F47A20;
  --sun-soft: #FDEBDC;
  --shade: #3A414B;
  --back: #D6D0C8;
  --night: #EFEBE6;
  --water: #2563A8;
  --water-soft: #E3EEF8;
  --focus: #1D4ED8;
  --g5: #C2560B; --g4: #F47A20; --g3: #FBBE8A; --g2: #FDE3CC; --g1: #ECE7E1;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(31, 28, 25, .06);
  --sh-2: 0 1px 2px rgba(31, 28, 25, .05), 0 8px 24px rgba(31, 28, 25, .07);
  --sh-3: 0 2px 6px rgba(31, 28, 25, .08), 0 16px 40px rgba(31, 28, 25, .10);
  --w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 16px; }
button { font-family: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.sp-only { display: none !important; }
@media (max-width: 760px) { .sp-only { display: inline-flex !important; } .pc { display: none !important; } }

.devbar { background: var(--ink); color: #fff; font-size: 14px; text-align: center; padding: 6px 16px; line-height: 1.5; }

/* 上の帯 */
.gh { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.gh .wrap { display: flex; align-items: center; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: .04em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--ink); }
.gsearch { position: relative; flex: 1; max-width: 420px; }
.gsearch > svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-3); pointer-events: none; }
.gsearch input { width: 100%; height: 44px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px 0 42px; font: inherit; font-size: 15px; background: var(--paper-2); color: var(--ink); }
.gsearch input:focus { outline: none; border-color: var(--ink); background: #fff; }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.gnav a:hover { background: var(--paper-3); color: var(--ink); }
.gnav a[aria-current="page"] { font-weight: 700; background: var(--paper-3); }
.gnav .ic { width: 20px; height: 20px; }
.gnav .icon-only { width: 44px; padding: 0; justify-content: center; }
.gnav .count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.gnav .count[data-zero="1"] { background: var(--paper-3); color: var(--ink-2); }
@media (max-width: 760px) {
  .gh .wrap { height: 56px; gap: 8px; }
  .brand { font-size: 17px; } .brand svg { width: 26px; height: 26px; }
  .gsearch { display: none; }
  .gnav a { padding: 0 10px; font-size: 15px; }
}

/* 下の帯 */
.gf { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 96px; }
.gf .wrap { padding-top: 48px; padding-bottom: 56px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .gf .wrap { grid-template-columns: 1fr; gap: 24px; } }
.gf h2 { font-size: 15px; color: var(--ink-2); font-weight: 700; margin-bottom: 12px; }
.gf ul { list-style: none; padding: 0; margin: 0; }
.gf-areas ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.gf li { margin: 6px 0; }
.gf a { color: var(--ink); text-decoration: none; font-size: 15px; }
.gf a:hover { text-decoration: underline; }
.gf-about p { font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.gf .credit { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; color: var(--ink-3); line-height: 1.7; margin: 0; }

/* ボタン */
.btn { appearance: none; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-m); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; background: var(--accent); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--accent-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.sub { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.sub:hover { background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink); }
.btn.line { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.line:hover { background: var(--accent-soft); color: var(--accent-2); }
.btn.lg { min-height: 56px; font-size: 17px; padding: 0 28px; border-radius: 14px; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn.save[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* 札 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .sub { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.chip[aria-pressed="true"] .sub, .chip[aria-current="true"] .sub { color: rgba(255, 255, 255, .78); }

.seg { display: inline-flex; background: var(--paper-3); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { appearance: none; border: 0; background: transparent; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.tag.survey { background: #FBEFE6; color: #8A3A06; }
.tag.field { background: #E6F0E8; color: #245C33; }
.tag.guide { background: #E7EDF5; color: #26446E; }
.tag.news { background: var(--paper-3); color: #3D3833; }
.pr { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border: 1px solid var(--ink-3); border-radius: 4px; font-size: 14px; color: var(--ink-2); font-weight: 700; line-height: 1; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.card.raise { box-shadow: var(--sh-2); border-color: transparent; }
@media (max-width: 640px) { .card { padding: 18px; } }

/* 区切りと見出し */
.sec { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.sec.first { border-top: 0; padding-top: 32px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-h h2 { font-size: 24px; }
.sec-h .more { font-size: 15px; font-weight: 600; text-decoration: none; }
.sec-lead { color: var(--ink-2); margin-top: -4px; max-width: 760px; }
.sec.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .sec.two { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 640px) { .sec { padding-top: 36px; padding-bottom: 36px; } .sec-h h2 { font-size: 21px; } }
.page-h { font-size: 36px; font-weight: 800; line-height: 1.35; margin: 4px 0 8px; }
@media (max-width: 640px) { .page-h { font-size: 27px; } }
.kicker { display: block; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .02em; }
.lead { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.note { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin: 12px 0 0; }
.src { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin-top: 12px; }
.big-ans { font-size: 21px; font-weight: 700; line-height: 1.6; margin-bottom: 12px; }
.big-ans b { color: var(--accent); }
.big-ans .ba-sub { display: block; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--ink-3); padding: 20px 0 8px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* 表 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { font-size: 14px; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line-2); white-space: nowrap; padding-top: 0; }
table.data .r { text-align: right; }

/* 入力 */
.input { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 17px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input.lg { min-height: 60px; font-size: 18px; border-radius: 14px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 28, 25, .08); }
.select { appearance: none; min-height: 48px; padding: 0 40px 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F1C19' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.select.lg { min-height: 56px; font-size: 17px; border-radius: 14px; }
.select.sm { min-height: 44px; font-size: 15px; }
.q-wrap { position: relative; flex: 1; }
.q-wrap .q-ic { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--ink-3); pointer-events: none; }
.q-wrap .input { padding-left: 50px; }

/* 入力中の候補 */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 14px; box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; z-index: 60; min-width: 300px; }
.suggest a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--paper-2); }
.suggest .k { font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--paper-3); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.suggest .nm { font-weight: 600; display: block; line-height: 1.5; }
.suggest .ad { font-size: 14px; color: var(--ink-3); display: block; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; box-shadow: var(--sh-3); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
body.has-dock .toast { bottom: 96px; }

/* 太陽の絵 */
.sun-ic { flex: none; }

/* 建物の正面の絵 */
.facade { display: grid; grid-template-columns: repeat(var(--cols), max-content); gap: 18px; align-items: end; }
.face { display: flex; flex-direction: column; align-items: center; }
.face-h { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; white-space: nowrap; }
.face-body { display: flex; flex-direction: column; gap: 3px; padding: 6px 6px 0; background: #fff; border: 2px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0; position: relative; }
.face-body::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: -3px; height: 3px; background: var(--ink-3); border-radius: 2px; }
.face .roof { display: none; }
.cell { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 3px; text-decoration: none; color: var(--ink); position: relative; }
.cell.g5 { background: var(--g5); } .cell.g4 { background: var(--g4); } .cell.g3 { background: var(--g3); } .cell.g2 { background: var(--g2); } .cell.g1 { background: var(--g1); }
.cell.none { background: repeating-linear-gradient(135deg, #fff 0 4px, var(--paper-3) 4px 8px); }
.f-lg .cell { width: 92px; height: 34px; }
.f-lg .cell .sun-ic { background: #fff; border-radius: 50%; padding: 1px; width: 22px; height: 22px; }
.f-lg .cell .fl { font-size: 14px; font-weight: 700; min-width: 2.2em; text-align: left; }
.f-lg .cell.g5 .fl { color: #fff; }
.f-lg .cell.g4 .fl { color: var(--ink); }
a.cell:hover { box-shadow: 0 0 0 2px var(--ink); z-index: 1; }
.cell.here { box-shadow: 0 0 0 3px var(--focus); z-index: 1; }
.f-sm { gap: 10px; }
.f-sm .face-h { font-size: 14px; }
.f-sm .cell { width: 46px; height: 14px; border-radius: 2px; }
.f-sm .face-body { gap: 2px; padding: 4px 4px 0; }
.f-xs { gap: 4px; }
.f-xs .face-body { gap: 1.5px; padding: 3px 3px 0; border-width: 1.5px; }
.f-xs .face-body::after { left: -6px; right: -6px; height: 2px; bottom: -2px; }
.f-xs .cell { width: 18px; height: 6px; border-radius: 1px; }

/* 段階の凡例 */
.legend-g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--ink-2); margin-top: 16px; }
.legend-g > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-g small { font-size: 14px; color: var(--ink-3); }
.legend-g .sw { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.g5 { background: var(--g5); } .sw.g4 { background: var(--g4); } .sw.g3 { background: var(--g3); } .sw.g2 { background: var(--g2); } .sw.g1 { background: var(--g1); border: 1px solid var(--line-2); }
.legend-g .lg-note { color: var(--ink-3); }

/* 建物のカード */
.bcards { display: grid; gap: 12px; }
.bcards.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .bcards.grid2 { grid-template-columns: minmax(0, 1fr); } }
.bcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); transition: box-shadow .2s, border-color .2s; }
.bcard:hover { box-shadow: var(--sh-2); border-color: transparent; }
.bc-link { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px 56px 18px 18px; color: var(--ink); text-decoration: none; }
.bc-link:hover { color: var(--ink); }
.bc-link:hover .bc-name { color: var(--accent); }
.bc-fig { display: flex; align-items: flex-end; justify-content: center; background: var(--paper-2); border-radius: var(--r-m); padding: 12px 8px 10px; min-height: 120px; }
.bc-name { font-size: 18px; font-weight: 800; line-height: 1.45; }
.bc-meta { font-size: 14px; color: var(--ink-2); margin: 2px 0 10px; }
.bc-meta span { color: var(--line-2); margin: 0 2px; }
.bc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bc-facts li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.55; }
.bc-facts svg { margin-top: 1px; }
.bc-save { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bc-save svg { width: 22px; height: 22px; }
.bc-save:hover { background: var(--paper-3); color: var(--ink); }
.bc-save[aria-pressed="true"] { color: var(--accent); }
.bc-save[aria-pressed="true"] path { fill: currentColor; }
@media (max-width: 480px) { .bc-link { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px 44px 14px 12px; } .bc-fig { min-height: 0; padding: 8px 2px; align-self: start; overflow: hidden; } .f-xs .face-body { padding: 2px 2px 0; border-width: 1.5px; } .bc-name { font-size: 17px; } .f-xs { gap: 3px; } .f-xs .cell { width: 8px; height: 4px; } .bc-facts li { font-size: 14px; } }

/* 一覧 */
.tlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tlist a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; font-weight: 600; }
.tlist a:hover, .tlist a[aria-current="page"] { border-color: var(--ink); color: var(--ink); }
.tlist .num { font-size: 14px; color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.clist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.clist a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; border-radius: var(--r-m); background: var(--paper-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; transition: background .15s; }
.clist a:hover { background: var(--sun-soft); color: var(--ink); }
.clist .n { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.alist { list-style: none; padding: 0; margin: 0; }
.alist a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.alist a:hover .at { text-decoration: underline; }
.alist .at { font-weight: 600; }
.alist .ad { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) { .alist a { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.empty { padding: 40px 24px; text-align: center; background: var(--paper-2); border-radius: var(--r-l); }
.empty h2 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--ink-2); }

/* 記事のカード */
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .agrid { grid-template-columns: minmax(0, 1fr); } }
.acard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; height: 100%; }
.acard:hover { color: var(--ink); box-shadow: var(--sh-2); transform: translateY(-2px); }
.acard .cv { aspect-ratio: 16 / 9; background: var(--paper-3); overflow: hidden; }
.acard .cv svg { width: 100%; height: 100%; }
.acard .bd { padding: 18px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.acard h3 { font-size: 17px; line-height: 1.6; }
.acard .meta { font-size: 14px; color: var(--ink-3); margin-top: auto; }
@media (max-width: 900px) { .acard { flex-direction: row; } .acard .cv { width: 120px; flex: none; aspect-ratio: auto; } .acard .bd { padding: 14px 16px; gap: 6px; } .acard h3 { font-size: 16px; } }

/* 3Dの表示（共通） */
.viewer { position: relative; border-radius: var(--r-l); overflow: hidden; background: #EDEAE5; }
.viewer canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.v-top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.v-top > * { pointer-events: auto; }
.v-top .chip { background: rgba(255, 255, 255, .94); }
.v-top .chip[aria-pressed="true"] { background: var(--ink); }
.v-clock { background: var(--ink); color: #fff; font-weight: 700; font-size: 20px; padding: 4px 14px; border-radius: 10px; }
.v-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: #EDEAE5; color: var(--ink-2); font-size: 15px; transition: opacity .4s; }
.v-loading.done { opacity: 0; pointer-events: none; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--sun); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.zoom-tip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(31, 28, 25, .78); color: #fff; font-size: 15px; white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 3; }
.zoom-tip.on { opacity: 1; }
.rng { padding: 14px 0 0; }
.rng input[type=range], .tb-range input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; }
.rng-ticks { position: relative; height: 22px; margin: 0 9px; font-size: 14px; color: var(--ink-3); }
.rng-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* 浸水 */
.fl-list { list-style: none; padding: 0; margin: 12px 0 0; }
.fl-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fl-list b { font-size: 17px; }
.fl-list small { grid-column: 1 / -1; font-size: 14px; color: var(--ink-3); }
.fl-fig { margin: 0; background: var(--paper-2); border-radius: var(--r-l); padding: 16px; }
.flood-fig { width: 100%; height: auto; max-width: 420px; margin: 0 auto; }

/* 相場の棒 */
.spark { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-bottom: 26px; position: relative; border-bottom: 1px solid var(--line-2); margin-top: 12px; }
.sp-c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.sp-c span { width: 100%; max-width: 36px; background: #CFC8BF; border-radius: 4px 4px 0 0; }
.sp-c:last-child span { background: var(--accent); }
.sp-c i { position: absolute; bottom: -26px; font-style: normal; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.school .sname { font-size: 24px; font-weight: 800; margin: 0; }
.school .saddr { color: var(--ink-2); font-size: 15px; margin: 0; }

/* 凡例（1日の帯） */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 16px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.sun { background: var(--sun); } .legend i.shade { background: var(--shade); } .legend i.back { background: var(--back); }

/* 1日の帯（朝・昼・夕方） */
.daybar { position: relative; }
.db-parts { position: relative; height: 24px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.db-parts span { position: absolute; top: 0; text-align: center; }
.db-bar { position: relative; height: 32px; border-radius: 8px; background: var(--night); overflow: hidden; }
.db-bar span { position: absolute; top: 0; bottom: 0; }
.db-bar .sun { background: var(--sun); } .db-bar .shade { background: var(--shade); } .db-bar .back { background: var(--back); }
.db-bar .maybe { background: repeating-linear-gradient(135deg, var(--sun) 0 5px, var(--shade) 5px 10px); }
.db-bar i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(255, 255, 255, .9); }
.db-ticks { position: relative; height: 22px; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.db-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.db-sm .db-bar { height: 22px; border-radius: 6px; }
.db-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.db-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 6px; }
.db-legend .sun { background: var(--sun); } .db-legend .shade { background: var(--shade); } .db-legend .back { background: var(--back); }

/* ===== 見た目の手直し（第2版の3）：中のページは薄い地に白い欄 ===== */
body.inner { background: #F5F2EE; }
body.inner .gh { background: rgba(255, 255, 255, .97); }
body.inner .sec { background: #fff; border: 0; border-radius: 20px; padding: 32px 36px; margin-top: 20px; box-shadow: 0 1px 2px rgba(31, 28, 25, .04); }
body.inner .sec.first { padding-top: 32px; }
body.inner .sec-h h2, .home .sec-h h2 { position: relative; padding-left: 16px; font-size: 24px; }
body.inner .sec-h h2::before, .home .sec-h h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 3px; background: var(--sun); }
.home .sec-h.center h2 { padding-left: 0; }
.home .sec-h.center h2::before { display: none; }
body.inner .sec p { color: var(--ink); }
body.inner .sec .sec-lead, body.inner .sec .src, body.inner .sec .note { color: var(--ink-2); }
body.inner .sec .src { color: var(--ink-3); }
body.inner .gf { margin-top: 64px; }
@media (max-width: 640px) {
  body.inner .sec { padding: 24px 18px; border-radius: 16px; margin-top: 12px; }
  body.inner .sec-h h2, .home .sec-h h2 { font-size: 21px; padding-left: 14px; }
}
/* 2列の欄：中の2つを並べる */
body.inner .sec.two { gap: 40px; }
/* ページの見出しの帯 */
body.inner .crumbs { padding-top: 16px; }
.page-h { letter-spacing: .02em; }
/* 文字の段階：答え 26/21、本文16、補足15/14 */
.big-ans { font-size: 22px; line-height: 1.55; }
@media (max-width: 640px) { .big-ans { font-size: 19px; } }

/* 建物のカード（第2版の3） */
.bcard { border: 0; border-radius: 16px; box-shadow: 0 1px 2px rgba(31, 28, 25, .05); }
.bcard:hover { box-shadow: var(--sh-2); }
.bc-link { grid-template-columns: 104px minmax(0, 1fr); gap: 20px; padding: 20px 60px 20px 20px; }
.bc-fig { min-height: 0; height: 128px; padding: 10px 8px 12px; overflow: hidden; align-items: flex-end; }
.bc-fig .f-xs .cell { height: var(--ch, 6px); }
.bc-name { font-size: 19px; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 14px; color: var(--ink-2); margin: 2px 0 12px; }
.bc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bc-tile { display: flex; flex-direction: column; gap: 2px; background: var(--paper-2); border-radius: 12px; padding: 10px 14px 12px; min-width: 0; }
.bt-l { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.bt-v { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bt-v b { font-size: 22px; line-height: 1.3; font-weight: 800; }
.bt-v b.ok { font-size: 19px; color: #2F6B3A; }
.bt-v small { font-size: 14px; color: var(--ink-2); }
.bt-s { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 560px) {
  .bc-link { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 16px 48px 16px 14px; }
  .bc-fig { height: 96px; padding: 6px 2px 8px; }
  .bc-tiles { grid-template-columns: minmax(0, 1fr); }
  .bc-name { font-size: 17px; }
}
.bc-meta span { color: var(--ink-2); margin: 0; }
.bc-fig { padding: 10px 6px 12px; justify-content: center; }
.bc-fig .f-xs { gap: 3px; }
.bc-fig .f-xs .cell { width: 12px; }
.bc-fig .f-xs .face-body { padding: 2px 2px 0; border-width: 1.5px; }
.bc-fig .f-xs .face-body::after { left: -3px; right: -3px; }
@media (max-width: 560px) { .bc-fig .f-xs .cell { width: 8px; } .bc-fig .f-xs { gap: 2px; } }
@media (max-width: 560px) {
  .bc-link { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "fig body" "tiles tiles"; row-gap: 12px; }
  .bc-body { display: contents; }
  .bc-fig { grid-area: fig; height: 72px; }
  .bc-title { grid-column: 2; grid-row: 1; align-self: center; }
  .bc-title .bc-meta { margin-bottom: 0; }
  .bc-tiles { grid-area: tiles; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-tile { padding: 10px 12px; }
  .bt-v b { font-size: 19px; }
  .bt-v small, .bt-s { font-size: 14px; }
}
@media (max-width: 560px) {
  .bc-link { padding: 14px 14px 14px 12px; }
  .bc-title { padding-right: 36px; }
  .bt-l { font-size: 14px; line-height: 1.4; }
}
@media (max-width: 560px) {
  .clist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .clist a { min-height: 52px; padding: 0 12px; font-size: 15px; }
  .tlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tlist a { padding: 0 12px; font-size: 15px; }
}
/* 正面の絵の色の見本：長い ←→ 短い */
.legend-g.len { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.legend-g.len .lg-t { width: 100%; }
.legend-g.len .sw { width: 22px; height: 14px; border-radius: 3px; display: inline-block; }
.legend-g.len .lg-s { font-weight: 700; }
.sc-g span b { display: block; font-size: 17px; color: var(--accent-2); }
.bt-band { font-size: 17px !important; line-height: 1.4; }

/* 向きごとの表（一覧のカードと建物のページ）：向き｜階｜冬の晴れた日に日が入る時間｜6時〜18時の帯 */
.dirs { width: 100%; border-collapse: collapse; font-size: 15px; }
.dirs thead th { background: var(--paper-3); font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: left; padding: 6px 12px; border: 1px solid var(--line); white-space: nowrap; }
.dirs tbody th, .dirs tbody td { padding: 7px 12px; border: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: middle; line-height: 1.5; }
.dirs tbody th { font-weight: 700; width: 6em; white-space: nowrap; vertical-align: top; }
.dirs tbody tr.first th, .dirs tbody tr.first td { border-top: 2px solid var(--line-2); }
.dirs td.fl { white-space: nowrap; width: 7.5em; }
.dirs td.ok { font-weight: 700; color: var(--accent-2); }
.dirs td.none { color: var(--ink-3); }
.dirs tr.more td { font-size: 14px; color: var(--ink-3); }
.dirs .c-bar { width: 220px; }
.dirs .c-bar a, .dirs td a { color: inherit; }
.mbt { display: flex; justify-content: space-between; font-size: 14px; font-weight: 400; color: var(--ink-3); margin: 0 -10px; }
.mb { position: relative; display: block; height: 14px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.mb i { position: absolute; top: 0; bottom: 0; background: var(--g4); }
.mb b { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .9); }
@media (max-width: 760px) {
  .dirs { font-size: 14px; }
  .dirs thead th { white-space: normal; padding: 6px 8px; }
  .dirs tbody th, .dirs tbody td { padding: 8px; }
  .dirs tbody th { width: auto; }
  .dirs td.fl { width: auto; }
  .dirs .c-bar { display: none; }
}
.bt-d { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 15px; line-height: 1.5; }
.bt-d b { font-weight: 700; min-width: 3.6em; }
.bt-d span { font-weight: 700; color: var(--accent-2); }
.bt-d span.none { font-weight: 400; color: var(--ink-3); }
.bt-d small { font-size: 14px; color: var(--ink-3); }

/* エリアの選び方：地方ごとに都道府県 */
.regions { border-top: 1px solid var(--line); }
.rg { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rg-h { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.rg-l { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.rg-l a, .rg-l .off { display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-m); font-size: 16px; font-weight: 700; line-height: 1.5; }
.rg-l a { background: var(--paper-2); color: var(--ink); text-decoration: none; }
.rg-l a:hover { background: var(--sun-soft); }
.rg-l a[aria-current] { background: var(--ink); color: #fff; }
.rg-l a[aria-current] small { color: #fff; }
.rg-l small { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.rg-l .off { color: var(--ink-3); font-weight: 400; padding-left: 6px; padding-right: 6px; }
@media (max-width: 760px) {
  .rg { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* Googleマップの埋め込み（全ページ共通） */
.gmap { position: relative; }
.gmap iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 16px; background: var(--paper-3); }
.gmap-open { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: 15px; font-weight: 700; }
@media (max-width: 640px) { .gmap iframe { height: 280px; border-radius: 12px; } }
