:root {
  --ink: #1f2a36;
  --ink-sub: #5b6875;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --sea: #24527a;
  --sea-deep: #173a59;
  --sky: #e8f1f8;
  --now: #fff4d6;
  --now-ink: #8a5a00;
  --link: #24527a;
  --serif: Georgia, "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --hd-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.8; font-size: 16px; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: var(--link); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* 1. header */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hd-h); color: #fff; transition: background-color .3s, color .3s, box-shadow .3s; }
.hd.is-solid, .hd.is-open { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hd-in { height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: .08em; color: inherit; text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.35); white-space: nowrap; }
.hd.is-solid .logo, .hd.is-open .logo { text-shadow: none; }
.mapbtn { font: inherit; font-size: 17px; font-weight: 800; color: #3a2500; background: #f2b45a; border: 2px solid #fff; border-radius: 999px; padding: 8px 20px; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.25); letter-spacing: .06em; }
.mapbtn-ic { margin-right: 6px; }
.hd.is-solid .mapbtn, .hd.is-open .mapbtn { border-color: #d9962f; box-shadow: 0 2px 8px rgba(217,150,47,.35); }
.mapbtn:hover { background: #ffc873; }
@media (max-width: 767px) { .mapbtn { font-size: 15px; padding: 7px 14px; } }
.nav { margin-left: auto; display: flex; gap: 28px; }
.nav a { color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hd.is-solid .nav a { text-shadow: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.navtoggle { display: none; }
@media (max-width: 767px) {
  .navtoggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 40px; height: 40px; padding: 8px; background: none; border: 0; color: inherit; cursor: pointer; }
  .navtoggle span { display: block; height: 2px; background: currentColor; border-radius: 1px; }
  .nav { display: none; position: absolute; top: var(--hd-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .hd.is-open .nav { display: flex; }
  .nav a { color: var(--ink); text-shadow: none; padding: 14px 16px; border-top: 1px solid var(--line); }
  .logo { font-size: 20px; }
}

/* 2. hero */
.hero { position: relative; height: clamp(440px, 56.25vw, 100vh); overflow: hidden; background: #2b5f99; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(rgba(10,30,60,.35), rgba(10,30,60,0)); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(rgba(10,30,60,0), rgba(10,30,60,.28)); pointer-events: none; }
.hero-txt { z-index: 1; }
.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; image-rendering: pixelated; }
.hero-txt { position: absolute; left: 0; right: 0; bottom: 14%; padding: 0 16px; max-width: 1280px; margin: 0 auto; color: #fff; text-shadow: 0 2px 12px rgba(10,30,60,.55), 0 0 2px rgba(10,30,60,.5); }
.hero-txt h1 { margin: 0; font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: .06em; line-height: 1.2; }
.hero-txt p { margin: 12px 0 0; font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; letter-spacing: .08em; }
.hero-txt p span { display: inline-block; }
@media (min-width: 768px) { .hero-txt { padding: 0 48px; } }
@media (max-width: 767px) { .hero-img { object-position: 96% 50%; } }

/* sections */
.sec { padding: 88px 0; }
.sec-ttl { margin: 0 0 40px; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: .14em; }
@media (max-width: 767px) { .sec { padding: 64px 0; } .sec-ttl { font-size: 22px; margin-bottom: 28px; } }

/* 3. day */
.month { text-align: center; font-family: var(--serif); line-height: 1; margin-bottom: 28px; }
.month-d { display: block; font-size: 56px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
@media (max-width: 767px) { .month-d { font-size: 8.4vw; } }
.tl { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.tl::before { content: ""; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-row { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 0 28px; align-items: start; padding: 18px 16px 18px 0; border-radius: 10px; transition: background-color .3s; }
.tl-row::before { content: ""; position: absolute; left: 71px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--sea); }
.tl-row time { font-family: var(--serif); font-size: 20px; font-weight: 700; text-align: right; line-height: 1.5; }
.tl-body { padding-left: 4px; }
.tl-body h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.tl-body p { margin: 4px 0 0; color: var(--ink-sub); font-size: 14px; }
.tl-now { display: none; }
.tl-row { grid-template-columns: 64px 1fr auto 112px; }
.tl-pic { grid-column: 4; grid-row: 1; width: 112px; height: 112px; object-fit: cover; border-radius: 12px; display: block; filter: saturate(.55) brightness(.9); transition: filter .3s, box-shadow .3s; }
.tl-row.is-now .tl-pic { filter: none; box-shadow: 0 0 0 3px #f2c96b, 0 0 16px rgba(242,165,22,.45); }
.tl-row.is-now { background: var(--now); }
.tl-row.is-now::before { background: #f2a516; border-color: #f2a516; box-shadow: 0 0 0 4px rgba(242,165,22,.25); }
.tl-row.is-now .tl-now { display: inline-block; align-self: center; font-size: 13px; font-weight: 700; color: var(--now-ink); background: #fff; border: 1px solid #f2c96b; border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
@media (max-width: 600px) {
  .tl::before { left: 60px; }
  .tl-row { grid-template-columns: 48px 1fr; gap: 0 24px; padding-right: 12px; }
  .tl-row::before { left: 55px; }
  .tl-row time { font-size: 17px; }
  .tl-row.is-now .tl-now { grid-column: 2; justify-self: start; margin: 8px 0 0 4px; }
  .tl-row { grid-template-columns: 48px 1fr 72px; }
  .tl-pic { grid-column: 3; width: 72px; height: 72px; border-radius: 10px; }
}

/* 4. diary */
.diary { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(20,40,60,.06); }
.card-link { display: block; color: inherit; text-decoration: none; padding: 0 0 4px; flex: 1; }
a.card-link:hover .card-ttl { text-decoration: underline; }
.card-img { aspect-ratio: 4 / 3; display: flex; align-items: flex-end; }
.card-img span { width: 100%; background: rgba(255,255,255,.88); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; padding: 6px 12px; }
.ph-lighthouse { background: #3e6f9c; }
.ph-radio { background: #5d8aa8; }
.ph-home { background: #7fa7c2; }
.ph-cityhall { background: #2f5878; }
.card-img { position: relative; }
.card-img span { position: relative; }
.card-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-pic-todai { object-position: 50% 40%; }
.card-pic-radio { object-position: 50% 30%; }
.card-date { display: block; margin: 14px 16px 0; font-family: var(--serif); font-size: 13px; color: var(--ink-sub); }
.card-ttl { margin: 4px 16px 0; font-size: 16px; line-height: 1.55; color: var(--link); }
div.card-link .card-ttl { color: var(--ink); }
.card-ex { margin: 6px 16px 0; font-size: 13px; color: var(--ink-sub); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.who { display: flex; align-items: center; gap: 8px; margin: 12px 16px 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }

/* avatars: 単色円＋頭文字（後日差し替え） */
.av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; flex: none; image-rendering: pixelated; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.av-lg { width: 96px; height: 96px; font-size: 36px; }
.av-answer { background: #2f6fa8; }
.av-keeper { background: #c98a1e; }
.av-reck { background: #3f9a7a; }
.av-sora { background: #6aa6d6; }
.av-fumi { background: #8a6bb0; }
.av-tadataka { background: #b0574a; }
.av-w { background: #5f6b7a; }
.av-radio { background: #5d8aa8; font-size: 13px; }

/* 5. estate */
.estate { background: var(--sea); color: #fff; padding: 48px 0; }
.estate-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.estate-txt { margin: 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: .06em; line-height: 1.5; }
.estate-txt span { display: inline-block; font-size: .7em; font-weight: 700; margin-left: .4em; opacity: .9; }
.btn { display: inline-block; background: #fff; color: var(--sea-deep); font-weight: 800; text-decoration: none; padding: 14px 36px; border-radius: 999px; letter-spacing: .1em; white-space: nowrap; }
.btn:hover { background: var(--sky); }

/* 6. people */
.residents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 16px; text-align: center; }
@media (max-width: 1000px) { .residents { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .residents { grid-template-columns: repeat(2, 1fr); } }
.residents li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.residents .av { margin-bottom: 10px; }
.residents b { font-size: 16px; }
.residents .role { font-size: 13px; }
.residents .catch { font-family: var(--serif); font-size: 12px; color: var(--ink-sub); }
/* その他の住人：メインと同系・少し控えめ */
.sub-ttl { margin: 56px 0 24px; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: .14em; color: var(--ink-sub); }
.residents-sub { grid-template-columns: repeat(2, minmax(0, 200px)); justify-content: center; }
.residents-sub .av-lg { width: 72px; height: 72px; font-size: 28px; }
.residents-sub b { font-size: 15px; }
@media (max-width: 1000px) { .residents-sub { grid-template-columns: repeat(2, minmax(0, 200px)); } }
@media (max-width: 600px) { .residents-sub { grid-template-columns: repeat(2, 1fr); } }

/* 7. channels */
.channels { background: var(--bg-soft); }
.ch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .ch { grid-template-columns: repeat(2, 1fr); } }
.ch li > a, .ch li { color: inherit; text-decoration: none; }
.ch li { background: #fff; border-radius: 4px; }
.ch li > a, .ch li:not(:has(> a)) { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 24px 12px; text-align: center; height: 100%; }
.ch li > a:hover b { text-decoration: underline; color: var(--link); }
.ch-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sky); color: var(--sea); font-size: 22px; margin-bottom: 8px; }
.ch b { font-size: 16px; }
.ch span:not(.ch-ic) { font-size: 13px; color: var(--ink-sub); }
.soon { font-style: normal; font-size: 11px; color: var(--ink-sub); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; margin-top: 6px; }
.soon.listen { color: var(--link); border-color: var(--link); }

/* 8. footer */
.ft { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; }
.ft-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ft-nav a { color: var(--ink-sub); text-decoration: none; }
.ft-nav .ft-map { color: var(--sea); font-weight: 700; }
.ft-nav a:hover { text-decoration: underline; }
.ft-sns { margin: 0; color: var(--ink-sub); }
.ft-sns a { color: var(--ink-sub); margin-left: 8px; }
.copy { margin: 0; color: var(--ink-sub); font-family: var(--serif); }

/* map overlay */
.ov { position: fixed; inset: 0; z-index: 100; background: rgba(5,10,20,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.ov[hidden] { display: none; }
.ov-map { position: relative; width: 100%; max-width: min(1400px, calc((100vh - 120px) * 2240 / 1040)); }
.ov-map img { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 4px; }
.spot { position: absolute; display: block; border-radius: 4px; outline: 2px dashed rgba(242,180,90,.0); transition: background-color .2s, outline-color .2s; }
.spot:hover, .spot:focus-visible { outline: 2px solid rgba(242,180,90,.9); background: rgba(242,180,90,.18); }
.ov-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; }
.ov-close:hover { background: rgba(255,255,255,.25); }
.ov-hint { color: #cfd6e2; font-size: 13px; margin: 12px 0 0; text-align: center; }
body.ov-on { overflow: hidden; }

/* bunjou */
.hd.hd-fixed { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hd-fixed .logo, .hd-fixed .nav a { text-shadow: none; }
.hd-fixed .mapbtn { border-color: #d9962f; box-shadow: 0 2px 8px rgba(217,150,47,.35); }
.bj-sign { position: relative; padding: calc(var(--hd-h) + 96px) 0 96px; background: var(--sky); overflow: hidden; }
.bj-sign-art { position: absolute; inset: 0; background-image: linear-gradient(rgba(36,82,122,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(36,82,122,.08) 1px, transparent 1px); background-size: 48px 48px; }
.bj-sign-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: .45; }
.bj-sign-txt { position: relative; }
.bj-sign h1 { margin: 0; font-size: clamp(30px, 5.6vw, 64px); font-weight: 800; letter-spacing: .06em; line-height: 1.3; color: var(--sea-deep); }
.bj-sign p { margin: 12px 0 0; font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; letter-spacing: .08em; color: var(--sea); }
.bj-soft { background: var(--bg-soft); }
.bj-plan { display: grid; grid-template-columns: 1fr 1.4fr 1fr; max-width: 900px; margin: 0 auto; border: 4px solid var(--ink); background: #fff; }
.bj-room { padding: 24px 20px; border: 1px solid var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; }
.bj-room-answer { grid-column: 2; grid-row: 1 / 3; background: var(--sky); }
.bj-room-keeper { grid-column: 1; grid-row: 1; } .bj-room-reck { grid-column: 1; grid-row: 2; }
.bj-room-sora { grid-column: 3; grid-row: 1; } .bj-room-fumi { grid-column: 3; grid-row: 2; }
.bj-room h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: .1em; line-height: 1.4; }
.bj-room h3 small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-sub); letter-spacing: .06em; }
.bj-room p { margin: 0; font-family: var(--serif); font-size: 13px; color: var(--ink-sub); }
.bj-room-answer .av { width: 56px; height: 56px; font-size: 22px; }
@media (max-width: 700px) {
  .bj-plan { grid-template-columns: 1fr 1fr; }
  .bj-room { grid-column: auto !important; grid-row: auto !important; min-height: 150px; padding: 20px 12px; }
  .bj-room-answer { grid-column: 1 / 3 !important; order: -1; }
}
.bj-tl .tl-row { grid-template-columns: 64px 1fr; }
.bj-when { font-family: var(--serif); font-size: 20px; text-align: right; line-height: 1.5; }
@media (max-width: 600px) { .bj-tl .tl-row { grid-template-columns: 48px 1fr; } .bj-when { font-size: 17px; } }
.bj-steps { list-style: none; counter-reset: bj; margin: 0 auto; padding: 0; max-width: 560px; }
.bj-steps li { counter-increment: bj; position: relative; padding: 18px 0 18px 72px; border-bottom: 1px solid var(--line); min-height: 48px; }
.bj-steps li::before { content: counter(bj); position: absolute; left: 0; top: 14px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--sea); color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.bj-steps h3 { margin: 0; font-size: 18px; line-height: 1.6; }
.bj-steps p { margin: 2px 0 0; font-size: 14px; color: var(--ink-sub); }
.bj-more { text-align: center; margin: 40px 0 0; }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--sea-deep); }
.bj-faq { max-width: 720px; margin: 0 auto; }
.bj-faq > div { background: #fff; border-radius: 4px; padding: 20px 24px; margin-bottom: 16px; }
.bj-faq dt { font-weight: 700; }
.bj-faq dt::before { content: "Q. "; color: var(--sea); font-family: var(--serif); }
.bj-faq dd { margin: 6px 0 0; color: var(--ink-sub); font-size: 15px; }
.bj-faq dd::before { content: "A. "; color: #c98a1e; font-family: var(--serif); font-weight: 700; }
.bj-lead { text-align: center; font-size: 18px; font-weight: 500; line-height: 1.8; margin: 0 0 32px; }
.bj-lead-sign { margin: 40px 0 0; }
.bj-real { max-width: 560px; margin: 32px auto 0; text-align: center; }
.bj-real h3 { margin: 0; font-size: 18px; } .bj-real p { margin: 8px 0 0; }
.bj-real audio { display: block; width: 100%; max-width: 480px; margin: 16px auto 0; }

/* 市役所の窓口（/ai/ への橋）2026-10-10 */
.tl-body .tl-mado { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--sea); text-decoration: none; border-bottom: 1px dotted currentColor; }
.tl-body .tl-mado::after { content: " \2192"; }
.tl-body .tl-mado:hover { border-bottom-style: solid; }
