/* =========================================================
   津山広域事務組合 トップページ デザインモック
   基調色: 画像の淡い黄緑 #E6EE8E（パステル調グリーン）
   コントラスト: 本文 4.5:1 以上、UI 3:1 以上（JIS X 8341-3:2016 AA）
   ========================================================= */

:root {
  --lime:       #E6EE8E;   /* 基調。面・装飾に使う（文字は載せても濃色のみ） */
  --lime-soft:  #F4F7D3;   /* 薄い面 */
  --lime-deep:  #CBD85A;   /* 線・バッジの縁 */
  --moss:       #3A5A1C;   /* 見出し・リンク（lime 上 6.4:1） */
  --leaf:       #4A7A1E;   /* ボタン面（白文字 5.1:1） */
  --ink:        #233322;   /* 本文 */
  --muted:      #5B6B52;   /* 補足（白上 5.7:1） */
  --paper:      #FFFFFF;
  --line:       #DDE3CF;
  --alert:      #B3261E;
  --focus:      #1F5FBF;

  --font-disp: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", system-ui, -apple-system, sans-serif;

  --fs: 16px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --gut: 16px;
  --max: 1120px;
}
html.size-lg { --fs: 19px; }

/* 背景色の切替（閲覧支援） */
html[data-theme="yellow"] { --paper: #FFF9C4; --lime-soft: #F6F2B0; --line: #E2DBA0; }
html[data-theme="dark"] {
  --paper: #111613; --lime: #2B3A17; --lime-soft: #1B2414; --lime-deep: #4F6A2A;
  --moss: #D9E8A8; --leaf: #9BC25A; --ink: #F2F5EA; --muted: #BFCAB0; --line: #33402A;
}
html[data-theme="dark"] .btn-leaf, html[data-theme="dark"] .who-tab[aria-selected="true"] { color: #111613; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font-body); line-height: 1.8; color: var(--ink); background: var(--paper);
  font-feature-settings: "palt";
}
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-disp); line-height: 1.35; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic.flip { transform: scaleX(-1); }
.ic.up { transform: rotate(-90deg); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--moss); color: #fff; padding: 8px 14px; border-radius: var(--r-s); z-index: 1000; }
.skip:focus { top: 8px; }

/* ===== 緊急情報（モック用。Joruri 側は .alert-area .docs） ===== */
.alert { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px var(--gut); background: #FFF1EE; color: var(--ink); border-top: 4px solid var(--alert); border-bottom: 1px solid #E7B7B0; }
.alert > * { max-width: var(--max); }
.alert-tag { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 12px; border-radius: 6px; background: var(--alert); color: #fff; font-family: var(--font-disp); font-weight: 700; font-size: .95rem; }
.alert p { margin: 0; }
.alert a { color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--alert); }
.alert a:hover { color: #8A1C14; }
@media (max-width: 639px) { .alert { align-items: flex-start; flex-direction: column; gap: 6px; } }
@media (min-width: 960px) { .alert { justify-content: center; } }
.alert-tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-disp); font-weight: 700; color: var(--alert); }
.alert p { flex: 1 1 8em; min-width: 0; font-size: .8rem; }
.alert a { white-space: nowrap; font-size: .8rem; }
.alert { background: var(--alert); color: #fff; }
.alert .alert-tag, .alert a { color: #fff; }
.alert a { font-weight: 700; }

/* ===== 緊急情報（Joruri: alert-area 内の記事一覧ピース。記事が無ければ空） =====
   AA 配慮: 淡い地に濃い文字（本文 12:1、濃赤 8.4:1）。赤は帯の縁と「緊急情報」バッジだけに使う */
.alert-area .docs { display: flex; justify-content: center; margin: 0; padding: 12px var(--gut); background: #FFF1EE; color: var(--ink); list-style: none; border-top: 4px solid var(--alert); border-bottom: 1px solid #E7B7B0; }
.alert-area .docs li { display: flex; align-items: center; gap: 14px; max-width: var(--max); width: 100%; }
.alert-area .docs .alert-tag { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 12px; border-radius: 6px; background: var(--alert); color: #fff; font-family: var(--font-disp); font-weight: 700; font-size: .95rem; }
.alert-area .docs .alert-tag .ic { width: 1.1em; height: 1.1em; }
.alert-area .docs .title_link a, .alert-area .docs a { color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--alert); }
.alert-area .docs .title_link a:hover { color: #8A1C14; }
.alert-area .more { display: none; }
@media (max-width: 639px) { .alert-area .docs li { align-items: flex-start; flex-direction: column; gap: 6px; } }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut); max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50% 50% 50% 12px;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, transparent 19%), linear-gradient(145deg, var(--lime) 0%, var(--lime-deep) 100%);
  border: 2px solid var(--moss);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-disp); font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-tools { display: flex; gap: 4px; }
.tool-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; min-height: 48px; padding: 4px 6px;
  background: none; border: 0; border-radius: var(--r-s); color: var(--moss); font-family: var(--font-disp); font-weight: 700; font-size: .66rem; line-height: 1.1; white-space: nowrap;
}
.tool-btn .ic { width: 1.5rem; height: 1.5rem; }
.tool-btn[aria-expanded="true"] { background: var(--lime-soft); }
.panel { border-top: 1px solid var(--line); padding: 14px var(--gut) 18px; background: var(--paper); }
.panel > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.search { display: flex; border: 2px solid var(--moss); border-radius: 999px; overflow: hidden; background: #fff; }
html[data-theme="dark"] .search { background: #1B2414; }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 18px; font: inherit; background: transparent; color: var(--ink); }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--leaf); color: #fff; width: 54px; display: grid; place-items: center; }
.search-hint { margin-top: 12px; font-size: .8rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--lime-soft); border: 1px solid var(--lime-deep); font-size: .85rem; text-decoration: none; color: var(--moss); }

.support-grid { display: grid; gap: 14px; }
.support-group { display: grid; gap: 6px; }
.support-label { font-size: .8rem; color: var(--muted); }
.seg { display: inline-flex; border: 2px solid var(--moss); border-radius: 999px; overflow: hidden; width: max-content; }
.seg button { border: 0; background: transparent; color: var(--moss); padding: 6px 16px; font-family: var(--font-disp); font-weight: 700; min-height: 40px; }
.seg button + button { border-left: 2px solid var(--moss); }
.seg button[aria-pressed="true"] { background: var(--moss); color: #fff; }
.support-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.menu ul { display: grid; gap: 2px; }
.menu a { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-disp); font-weight: 700; }

/* ===== ヒーロー〜情報ナビ：ひとつながりの黄緑の面 ===== */
.field {
  background: linear-gradient(170deg, var(--lime-soft) 0%, var(--lime) 55%, var(--lime) 100%);
  border-radius: 0 0 var(--r-l) var(--r-l);
  padding: 28px 0 32px;
  position: relative; overflow: hidden;
}
.field::before {
  content: ""; position: absolute; right: -80px; top: -40px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.35); pointer-events: none;
}
.hero { position: relative; padding: 0 var(--gut); max-width: var(--max); margin: 0 auto; }
.hero-kicker { font-family: var(--font-disp); font-weight: 700; color: var(--moss); font-size: .9rem; }
.hero-title { font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 900; color: var(--ink); margin: 0; letter-spacing: .01em; }
.hero-lead { margin-top: 14px; max-width: 34em; font-size: .95rem; }

.who {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  padding: 0 var(--gut); margin: 22px auto 0; max-width: var(--max);
}
.who-tab {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 14px; min-height: 56px; border-radius: var(--r-m);
  background: rgba(255,255,255,.75); border: 2px solid transparent; color: var(--moss); text-align: left;
}
html[data-theme="dark"] .who-tab { background: rgba(255,255,255,.08); }
.who-main { font-family: var(--font-disp); font-weight: 900; font-size: 1.02rem; line-height: 1.25; }
.who-tab[aria-selected="true"] { background: var(--moss); color: #fff; border-color: var(--moss); }

.navwrap { padding: 0 var(--gut); margin: 14px auto 0; max-width: var(--max); }
.navwrap-title { font-size: .85rem; font-weight: 700; color: var(--moss); padding-left: 2px; }
.infonav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.infonav a {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  min-height: 104px; padding: 12px 4px 10px; border-radius: var(--r-m);
  background: var(--paper); color: var(--ink); text-decoration: none;
}
.infonav .ic { width: 2rem; height: 2rem; color: var(--leaf); }
.infonav .t { font-family: var(--font-disp); font-weight: 700; font-size: .78rem; line-height: 1.3; color: var(--moss); word-break: keep-all; overflow-wrap: anywhere; }

/* 情報ナビの「すべてのメニューを見る」 */
.nav-more { margin: 10px 0 0; text-align: right; }
.nav-more a { display: inline-flex; align-items: center; gap: 2px; padding: 8px 4px 8px 12px; min-height: 44px; font-family: var(--font-disp); font-weight: 700; font-size: .92rem; color: var(--moss); text-decoration: none; border-bottom: 2px solid var(--moss); }
.nav-more a:hover { background: rgba(255,255,255,.5); border-radius: 8px 8px 0 0; }

/* ===== 共通セクション ===== */
.section { padding: 36px var(--gut); max-width: var(--max); margin: 0 auto; }
.section-tint { max-width: none; background: var(--lime-soft); }
.section-tint > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; }
.section-title { font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.section-title::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50% 50% 50% 20%; background: var(--lime-deep); margin-right: .45em; vertical-align: .1em; border: 2px solid var(--moss); box-sizing: border-box; }
.section-lead { flex-basis: 100%; font-size: .95rem; max-width: 40em; }
.more { margin-top: 14px; text-align: right; }
.more a { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-disp); font-weight: 700; text-decoration: none; padding: 6px 2px; }

.subtabs { display: flex; gap: 6px; margin-top: 16px; border-bottom: 2px solid var(--line); }
.subtabs button {
  border: 0; background: none; padding: 8px 16px 10px; margin-bottom: -2px; border-bottom: 3px solid transparent;
  font-family: var(--font-disp); font-weight: 700; font-size: 1rem; color: var(--muted);
}
.subtabs button[aria-selected="true"] { color: var(--moss); border-bottom-color: var(--moss); }

.newslist li a {
  display: grid; grid-template-columns: max-content 1fr; grid-template-areas: "time cat" "ttl ttl";
  column-gap: 10px; row-gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.newslist time { grid-area: time; font-size: .85rem; color: var(--muted); }
.newslist .cat { grid-area: cat; justify-self: start; font-size: .72rem; padding: 1px 9px; border-radius: 999px; background: var(--lime-soft); border: 1px solid var(--lime-deep); color: var(--moss); }
.newslist .ttl { grid-area: ttl; line-height: 1.6; }
.newslist .ttl .new { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--alert); margin-left: 6px; }

/* ===== 横スライド（お知らせ・イベント） ===== */
.slider { position: relative; margin-top: 16px; }
.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin;
}
.card { scroll-snap-align: start; }
.card a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px; border-radius: var(--r-m);
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.card-img { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-s); background: var(--lime-soft); }
.img-a { background: linear-gradient(135deg, var(--lime-soft), var(--lime)); }
.img-b { background: linear-gradient(135deg, var(--lime), #F7F3B8); }
.img-c { background: linear-gradient(135deg, #D7E9B0, var(--lime-soft)); }
.img-d { background: linear-gradient(135deg, var(--lime-soft), #DDEBC4); }
.card-cat { align-self: flex-start; font-size: .72rem; padding: 1px 9px; border-radius: 999px; background: var(--lime-soft); border: 1px solid var(--lime-deep); color: var(--moss); }
.card-ttl { font-weight: 500; line-height: 1.55; }
.card time { font-size: .8rem; color: var(--muted); }
.slider-ctrl { display: none; }

.counts { display: flex; flex-wrap: wrap; gap: 6px; }
.counts a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--lime-deep); text-decoration: none; font-size: .85rem; color: var(--moss); }
.counts b { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .4em; border-radius: 999px; background: var(--moss); color: #fff; font-family: var(--font-disp); font-size: .9em; }
.events .card a { padding-top: 14px; }
.ev-date { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-disp); color: var(--moss); }
.ev-date b { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.ev-date span { font-size: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 6px; background: var(--lime-soft); color: var(--ink); }
.tag-hot { background: var(--alert); color: #fff; }

/* ===== 広報誌（表紙を主役にしたカード） ===== */
.news-grid { display: grid; gap: 28px; margin-top: 16px; }
.news-side { min-width: 0; }
.kouhou { display: grid; grid-template-columns: 1fr; gap: 18px; justify-items: center; text-align: center; padding: 22px 18px 20px; border-radius: var(--r-l); background: var(--lime-soft); border: 1px solid var(--lime-deep); }
.kouhou-cover { display: block; text-decoration: none; }
.cover {
  display: flex; flex-direction: column; justify-content: space-between; width: min(62vw, 230px); aspect-ratio: 1 / 1.414; padding: 7% 8%;
  border-radius: 4px 14px 14px 4px; background: linear-gradient(160deg, #F7FAD6 0%, var(--lime) 55%, var(--lime-deep) 100%);
  border-left: 7px solid var(--moss); box-shadow: 10px 14px 28px rgba(35,51,34,.25), inset -10px 0 18px rgba(255,255,255,.35);
  color: var(--moss); font-family: var(--font-disp); line-height: 1.2; text-align: left; transition: transform .2s ease;
}
.kouhou-cover:hover .cover, .kouhou-cover:focus-visible .cover { transform: translateY(-4px) rotate(-1deg); }
.cover-brand { font-size: clamp(.6rem, 2.4vw, .8rem); font-weight: 700; letter-spacing: .04em; }
.cover-title { font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 900; line-height: 1.1; }
.cover-issue { font-size: clamp(.8rem, 3vw, 1rem); font-weight: 700; }
.cover-no { font-size: clamp(.65rem, 2.4vw, .8rem); color: var(--muted); }
.kouhou-body { min-width: 0; width: 100%; }
.kouhou-label { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--moss); padding: 1px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--lime-deep); margin-bottom: 6px; }
.kouhou-ttl { font-family: var(--font-disp); font-weight: 900; font-size: 1.25rem; color: var(--ink); line-height: 1.35; margin: 0 0 6px; }
.kouhou-desc { font-size: .88rem; color: var(--muted); margin: 0 auto; max-width: 28em; }
.kouhou-actions { display: grid; gap: 10px; width: 100%; max-width: 360px; margin: 14px auto 0; }
.btn-leaf, .btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 18px; border-radius: 999px; font-family: var(--font-disp); font-weight: 700; font-size: 1rem; text-decoration: none; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--moss); }
.btn-line { border: 2px solid var(--moss); color: var(--moss); background: #fff; }
.btn-line:hover { background: var(--lime-soft); }
@media (min-width: 960px) {
  .news-grid { grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
  .kouhou { padding: 28px 24px 24px; }
  .cover { width: 250px; }
}

/* ===== 津山圏域 ===== */
.region-body { display: grid; gap: 14px; margin-top: 16px; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; max-width: 420px; margin: 0 auto; }
.map .town ellipse { fill: var(--paper); stroke: var(--moss); stroke-width: 2; }
.map .town text { font-family: var(--font-disp); font-weight: 700; font-size: 15px; text-anchor: middle; fill: var(--moss); }
.map .town .small { font-size: 10px; font-weight: 500; fill: var(--muted); }
.map .city ellipse { fill: var(--moss); }
.map .city text { fill: #fff; }
.map .city .small { fill: rgba(255,255,255,.85); }
.map figcaption { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.towns a { display: block; text-align: center; padding: 10px 6px; border-radius: 999px; background: var(--paper); border: 2px solid var(--lime-deep); text-decoration: none; font-family: var(--font-disp); font-weight: 700; color: var(--moss); }
.region-links { display: grid; gap: 8px; margin-top: 22px; }
.region-links a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); background: var(--lime-soft); text-decoration: none; color: var(--ink); }
.region-links .ic { grid-row: span 2; width: 2rem; height: 2rem; color: var(--leaf); }
.region-links .t { font-family: var(--font-disp); font-weight: 700; color: var(--moss); }
.region-links .d { font-size: .8rem; color: var(--muted); }

/* ===== フッター ===== */
.footer { background: var(--moss); color: #fff; padding: 32px var(--gut) 90px; margin-top: 12px; border-radius: var(--r-l) var(--r-l) 0 0; }
html[data-theme="dark"] .footer { background: #1B2414; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 12px; }
.footer-name { font-family: var(--font-disp); font-weight: 900; font-size: 1.15rem; }
.footer-name a { color: #fff; text-decoration: none; }
.footer-addr { font-size: .85rem; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; }
.footer-links a { color: #fff; }
.copy { font-size: .78rem; opacity: .85; }
.totop { position: fixed; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--moss); border: 2px solid var(--moss); z-index: 40; }

/* ===== タブレット以上 ===== */
@media (min-width: 640px) {
  .who { grid-template-columns: repeat(4, 1fr); }
  .infonav a { min-height: 128px; }
  .cards { grid-auto-columns: 46%; }
  .towns { grid-template-columns: repeat(6, 1fr); }
  .region-body { grid-template-columns: 1fr 1fr; align-items: center; }
  .region-body .towns { grid-template-columns: repeat(2, 1fr); }
  .region-links { grid-template-columns: repeat(3, 1fr); }
}

/* ===== PC ===== */
@media (min-width: 960px) {
  :root { --gut: 24px; }
  .alert { font-size: .9rem; padding: 8px var(--gut); }
  .alert > * { }
  .tool-btn { flex-direction: row; gap: 6px; font-size: .85rem; padding: 6px 12px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .78rem; }
  .field { padding: 48px 0 44px; }
  .hero-title { font-size: clamp(3rem, 4.6vw, 4rem); }
  .who { margin-top: 34px; gap: 12px; }
  .who-tab { padding: 14px 18px; }
  .who-main { white-space: nowrap; }
  .who-main { font-size: 1.15rem; }
  .infonav { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
  .infonav a { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; text-align: left; min-height: 0; padding: 16px 18px; }
  .infonav .ic { width: 2.2rem; height: 2.2rem; }
  .infonav .t { font-size: .98rem; }
  .section { padding: 56px var(--gut); }
  .section-tint { padding-left: 0; padding-right: 0; }
  .section-tint > * { padding-left: var(--gut); padding-right: var(--gut); }
  .section-title { font-size: 1.85rem; }
  .newslist li a { grid-template-columns: 10em auto 1fr; grid-template-areas: "time cat ttl"; align-items: baseline; padding: 14px 8px; }
  .newslist .cat { justify-self: center; }
  .cards { grid-auto-columns: calc((100% - 36px) / 4); overflow-x: auto; }
  .slider-ctrl { display: flex; gap: 8px; position: absolute; right: 0; top: -54px; }
  .slider-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--moss); background: var(--paper); color: var(--moss); display: grid; place-items: center; }
  .section-tint .slider-ctrl { right: var(--gut); }
  .region-body { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer { padding-bottom: 48px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { grid-column: 1; }
  .copy { grid-column: 1 / -1; }
}

/* ===== Joruri 記事一覧ピース（GpArticle::Piece::Doc）の出力に合わせたスタイル ===== */
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: grid; grid-template-columns: 1fr; row-gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.docs time, .docs .date { font-size: .85rem; color: var(--muted); }
.docs .title_link a { color: var(--ink); text-decoration: none; line-height: 1.6; }
.docs .title_link a:hover { text-decoration: underline; }
.piece .more a { font-family: var(--font-disp); font-weight: 700; text-decoration: none; }
@media (min-width: 960px) {
  .docs li { grid-template-columns: 10em 1fr; column-gap: 10px; align-items: baseline; padding: 14px 8px; }
}

/* ===== 月間カレンダー（墨田区方式: 日付だけ。イベントのある日がリンク／Joruri 日別リンクピース event_title=hidden の出力） ===== */
.calendar-wrap { margin-top: 28px; }
.calendar-note { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.calendar-wrap .piece { background: var(--paper); border-radius: var(--r-m); padding: 12px 8px 14px; border: 1px solid var(--line); }
.calendar-wrap h3.month { margin: 0 0 6px; font-size: 1.3rem; text-align: center; }
.calendar-wrap h3.month a { display: inline-block; padding: 8px 16px; min-height: 44px; color: var(--ink); text-decoration: none; }
.calendar-wrap table.calendar { width: 100%; max-width: 480px; margin: 0 auto; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.calendar-wrap table.calendar th { padding: 4px 0; font-weight: 700; font-size: .85rem; color: var(--muted); }
.calendar-wrap table.calendar td { height: 48px; padding: 0; text-align: center; vertical-align: middle; font-family: var(--font-disp); font-weight: 700; font-size: 1rem; color: var(--ink); border-radius: 10px; }
.calendar-wrap table.calendar th.sun, .calendar-wrap table.calendar td.sun, .calendar-wrap table.calendar td.holiday { color: #8A1C14; }
.calendar-wrap table.calendar th.sat, .calendar-wrap table.calendar td.sat { color: #1F4E79; }
.calendar-wrap table.calendar td.prevMonth, .calendar-wrap table.calendar td.nextMonth { color: #A3AD98; }
.calendar-wrap table.calendar td.today { box-shadow: inset 0 0 0 2px var(--moss); }
.calendar-wrap table.calendar td.event a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 48px; border-radius: 10px; background: var(--lime); color: var(--ink); text-decoration: none; position: relative; }
.calendar-wrap table.calendar td.event a::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); transform: translateX(-50%); }
.calendar-wrap table.calendar td.event a:hover, .calendar-wrap table.calendar td.event a:focus-visible { background: var(--lime-deep); }
.calendar-wrap table.calendar td.sun.event a, .calendar-wrap table.calendar td.holiday.event a { color: #8A1C14; }
.calendar-wrap table.calendar td.sat.event a { color: #1F4E79; }
.calendar-wrap .links { margin-top: 10px; text-align: center; font-size: .9rem; }
.calendar-wrap .pagination a { display: inline-block; min-height: 44px; line-height: 28px; padding: 8px 18px; margin: 4px; border-radius: 999px; border: 2px solid var(--moss); font-family: var(--font-disp); font-weight: 700; text-decoration: none; }
@media (min-width: 960px) {
  .calendar-wrap .piece { padding: 20px; }
  .calendar-wrap table.calendar { max-width: 560px; border-spacing: 6px; }
  .calendar-wrap table.calendar td { height: 56px; font-size: 1.1rem; }
  .calendar-wrap table.calendar td.event a { min-height: 56px; }
}

/* ===== 下層ページ（レイアウト sub） ===== */
.sub { max-width: var(--max); margin: 0 auto; padding: 16px var(--gut) 64px; min-height: 58vh; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--moss); text-decoration: none; }
.sub h1 { font-size: 1.55rem; font-weight: 900; margin: 6px 0 22px; padding-left: 12px; border-left: 5px solid var(--lime-deep); line-height: 1.35; }
.content-body { font-size: 1rem; }
.content-body h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.content-body a { color: var(--moss); }
.content-body .feed { display: none; }
.content-body .pagination, .content-body .links { margin: 16px 0; text-align: center; }
.content-body .pagination a { display: inline-block; min-height: 44px; line-height: 28px; padding: 8px 18px; margin: 4px; border-radius: 999px; border: 2px solid var(--moss); font-family: var(--font-disp); font-weight: 700; text-decoration: none; }
/* イベントカレンダーページ（月のマスにイベント名あり） */
.calendarEvents table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendarEvents th.wday { padding: 8px 2px; font-size: .85rem; color: var(--muted); border-bottom: 2px solid var(--line); }
.calendarEvents th.sun, .calendarEvents td.sun .date, .calendarEvents td.holiday .date, .calendarEvents li.holiday { color: #8A1C14; }
.calendarEvents th.sat, .calendarEvents td.sat .date { color: #1F4E79; }
.calendarEvents td.day { vertical-align: top; min-height: 110px; height: 110px; padding: 6px; border: 1px solid var(--line); }
.calendarEvents td.day .date { margin: 0 0 6px; font-family: var(--font-disp); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.calendarEvents td.prevMonth, .calendarEvents td.nextMonth { background: #FAFBF3; }
.calendarEvents td.prevMonth .date, .calendarEvents td.nextMonth .date { color: #A3AD98; }
.calendarEvents td.today { background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--lime-deep); }
.calendarEvents td.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.calendarEvents td.day li { font-size: .88rem; line-height: 1.35; }
.calendarEvents td.day li a, .calendarEvents td.day li > span { display: block; min-height: 40px; padding: 5px 8px; border-radius: 6px; background: var(--lime-soft); border-left: 3px solid var(--leaf); color: var(--ink); text-decoration: none; }
.calendarEvents td.day li a:hover { background: var(--lime); }
@media (max-width: 759px) {
  /* スマホ: 月のマス目をやめ、イベントのある日だけを「日付＋イベント名」の縦リストにする */
  .calendarEvents thead { display: none; }
  .calendarEvents table, .calendarEvents tbody, .calendarEvents tr, .calendarEvents td { display: block; width: 100%; }
  .calendarEvents td.day { height: auto; min-height: 0; border: 0; border-bottom: 1px solid var(--line); padding: 12px 4px; }
  .calendarEvents td.day:not(:has(ul)) { display: none; }
  .calendarEvents td.day .date { font-size: 1.1rem; margin-bottom: 8px; }
  .calendarEvents td.day .date::after { content: "日"; font-size: .85rem; margin-left: 1px; }
  .calendarEvents td.day li { font-size: 1rem; }
  .calendarEvents td.day li a, .calendarEvents td.day li > span { min-height: 48px; padding: 10px 12px; }
}

/* イベントカレンダーページ: イベント名は「押せる」と分かる見た目に（リンク色・下線・矢印） */
.calendarEvents td.day li a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 700; padding-right: 22px; position: relative; background: #fff; border: 1px solid var(--lime-deep); border-left: 4px solid var(--leaf); }
.calendarEvents td.day li a::after { content: ""; position: absolute; right: 9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--moss); border-right: 2px solid var(--moss); transform: translateY(-50%) rotate(45deg); }
.calendarEvents td.day li a:hover, .calendarEvents td.day li a:focus-visible { background: var(--lime-soft); }
.calendarEvents td.day li > span { color: var(--muted); }
.calendarEvents td.day li > span:has(> a) { display: contents; } /* Joruri はリンク時も span で包む */
.calendarEvents .link-note { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }

/* ===== 記事ページ（GpArticle 記事詳細）と記事一覧ページ ===== */
.contentGpArticleDoc .date { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -8px 0 20px; font-size: .9rem; color: var(--muted); }
.contentGpArticleDoc .date p { margin: 0; }
.contentGpArticleDoc .body { max-width: 44em; }
.contentGpArticleDoc .body p { margin: 0 0 16px; line-height: 1.9; }
.contentGpArticleDoc .body h2 { font-size: 1.2rem; margin: 30px 0 12px; padding: 0 0 6px; border-bottom: 2px solid var(--lime-deep); }
.contentGpArticleDoc .body h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.contentGpArticleDoc .body ul, .contentGpArticleDoc .body ol { margin: 0 0 16px; padding-left: 1.4em; }
.contentGpArticleDoc .body li { margin: 4px 0; }
.contentGpArticleDoc .body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .95rem; }
.contentGpArticleDoc .body th, .contentGpArticleDoc .body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.contentGpArticleDoc .body th { background: var(--lime-soft); white-space: nowrap; width: 9em; font-weight: 700; }
.contentGpArticleDoc .body img { max-width: 100%; height: auto; border-radius: var(--r-s); }
.contentGpArticleDoc .body a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.contentGpArticleDocs .docs ul { list-style: none; margin: 0; padding: 0; }
.contentGpArticleDocs .docs li { display: grid; grid-template-columns: 1fr; row-gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.contentGpArticleDocs .docs .date { font-size: .85rem; color: var(--muted); }
.contentGpArticleDocs .docs .title_link a { color: var(--ink); text-decoration: none; font-size: 1.02rem; line-height: 1.6; }
.contentGpArticleDocs .docs .title_link a:hover { text-decoration: underline; }
@media (max-width: 639px) {
  .contentGpArticleDoc .body th { white-space: normal; width: 6.5em; }
}
@media (min-width: 960px) {
  .contentGpArticleDocs .docs li { grid-template-columns: 10em 1fr; column-gap: 10px; align-items: baseline; padding: 14px 8px; }
}
