:root {
  --navy: #123349;
  --gold: #8f6d31;
  --paper: #faf9f5;
  --line: #e5e9eb;
  --muted: #617580;
  --food: var(--town-food);
  --history: var(--town-history);
  --life: var(--town-life);
  --walk: var(--town-walk);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.85;
}
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: auto; }
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.top a { text-decoration: none; }
.town-logo { display: flex; flex-direction: column; gap: 3px; }
.town-logo strong { font-size: 20px; letter-spacing: .025em; }
.town-logo small { color: var(--gold); font-size: 10px; letter-spacing: .16em; }
.back { color: var(--navy); font-size: 13px; text-underline-offset: 5px; }
.back:hover { text-decoration: underline; }
.ko-hub { padding-bottom: 72px; }
.ko-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.ko-kicker { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .19em; }
.ko-hero h1 {
  margin: 19px 0 23px;
  color: var(--navy);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(32px, 5.7vw, 62px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .025em;
}
.ko-hero p { max-width: 720px; margin: 0; font-size: 16px; line-height: 2; }
.ko-hero .ko-lead { margin-top: 19px; color: var(--muted); font-size: 13px; }
.ko-guide { padding: 35px 0 20px; }
.ko-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.ko-section-head h2 { margin: 7px 0 0; color: var(--navy); font-size: 21px; font-weight: 600; }
.ko-section-head small { flex: none; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.ko-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ko-type--food, #ko-food { --tone: var(--food); }
.ko-type--history, #ko-history { --tone: var(--history); }
.ko-type--life, #ko-life { --tone: var(--life); }
.ko-type--walk, #ko-walk { --tone: var(--walk); }
.ko-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 210px;
  margin: 0;
  padding: 23px 20px 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--tone);
  border-radius: 0;
  background: #fff;
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow .18s ease, transform .18s ease;
}
.ko-type:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18, 51, 73, .055); }
.ko-type[aria-expanded="true"] { box-shadow: inset 0 -2px 0 var(--tone); }
.ko-type-head { display: flex; align-items: center; gap: 11px; }
.ko-type-symbol { display: inline-flex; flex: none; width: 24px; height: 24px; color: var(--tone); }
.ko-type-symbol svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ko-type .en { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.ko-type strong { display: block; margin: 16px 0 7px; color: var(--tone); font-size: 25px; line-height: 1.4; font-weight: 600; }
.ko-type-description { display: block; color: var(--navy); font-size: 12px; line-height: 1.8; }
.ko-type-action { display: block; margin-top: auto; padding-top: 20px; color: var(--muted); font-size: 11px; }
.ko-type-toggle { position: absolute; right: 18px; bottom: 17px; color: var(--tone); font-size: 23px; font-weight: 300; line-height: 1; }
.ko-type-toggle::before { content: "+"; }
.ko-type[aria-expanded="true"] .ko-type-toggle::before { content: "−"; }
.ko-tap-hint { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.ko-list-group { margin-top: 23px; background: #fff; border: 1px solid var(--line); }
.ko-group-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 26px; padding: 23px 0 19px; border-bottom: 2px solid var(--tone); }
.ko-group-header h2 { scroll-margin-top: 24px; margin: 0; color: var(--tone); font-size: 26px; line-height: 1.5; font-weight: 600; letter-spacing: .04em; }
.ko-group-header h2 em { margin-left: 12px; color: var(--gold); font-size: 11px; font-style: normal; letter-spacing: .15em; }
.ko-group-header small { color: var(--muted); font-size: 11px; letter-spacing: .05em; white-space: nowrap; }
.ko-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin: 0 26px; padding: 25px 0; color: var(--navy); border-bottom: 1px solid var(--line); text-decoration: none; }
.ko-item:last-child { border-bottom: 0; }
.ko-item .ko-meta { display: block; margin-bottom: 7px; color: var(--gold); font-size: 10px; letter-spacing: .11em; }
.ko-item h3 { margin: 0 0 7px; color: var(--navy); font-size: 20px; line-height: 1.6; font-weight: 600; }
.ko-item:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ko-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.ko-right { display: flex; align-items: center; gap: 17px; white-space: nowrap; }
.ko-walk { color: var(--navy); font-size: 12px; }
.ko-arrow { color: var(--gold); font-size: 23px; line-height: 1; }
.ko-category-reset { display: inline-flex; margin: 18px 0 0; padding: 11px 17px; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 0; font: inherit; font-size: 12px; cursor: pointer; }
.ko-category-reset:hover { border-color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.ko-footer-note { margin-top: 34px; padding-top: 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.95; }
.ko-footer-note a { color: var(--navy); text-underline-offset: 4px; }
footer { padding: 27px 0 38px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .top { padding: 20px 0; gap: 12px 18px; }
  .town-logo strong { font-size: 17px; }
  .town-logo small { font-size: 9px; }
  .back { font-size: 12px; }
  .ko-hub { padding-bottom: 50px; }
  .ko-hero { padding: 39px 0 29px; }
  .ko-hero h1 { margin: 16px 0 20px; line-height: 1.5; }
  .ko-hero p { font-size: 14px; }
  .ko-kicker { font-size: 10px; letter-spacing: .14em; }
  .ko-hero .ko-lead { font-size: 12px; }
  .ko-guide { padding-top: 27px; }
  .ko-section-head { flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
  .ko-section-head h2 { font-size: 19px; }
  .ko-section-head small { font-size: 10px; }
  .ko-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ko-type { min-height: 198px; padding: 18px 14px 17px; }
  .ko-type-head { gap: 8px; }
  .ko-type-symbol { width: 20px; height: 20px; }
  .ko-type .en { font-size: 9px; letter-spacing: .09em; }
  .ko-type strong { margin-top: 13px; font-size: 23px; }
  .ko-type-description { font-size: 11px; }
  .ko-type-action { font-size: 10px; padding-top: 17px; }
  .ko-type-toggle { right: 14px; bottom: 16px; font-size: 22px; }
  .ko-list-group { margin-top: 20px; }
  .ko-group-header { margin: 0 17px; padding: 19px 0 16px; }
  .ko-group-header h2 { font-size: 23px; }
  .ko-group-header h2 em { margin-left: 9px; font-size: 10px; }
  .ko-group-header small { font-size: 10px; }
  .ko-item { margin: 0 17px; padding: 22px 0; gap: 12px; }
  .ko-item h3 { font-size: 17px; }
  .ko-item p { font-size: 12px; }
  .ko-item .ko-meta { font-size: 9px; letter-spacing: .07em; }
  .ko-right { gap: 8px; }
  .ko-walk { font-size: 10px; }
  .ko-arrow { font-size: 19px; }
  .ko-footer-note { font-size: 11px; }
}
@media (max-width: 380px) {
  .ko-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ko-right { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
