/* 共通スタイル（一般質問・議案解説ページ用） */
:root {
  --navy: #2c4f7c;
  --navy-dark: #1d3757;
  --ink: #2b2f36;
  --sub: #66707c;
  --paper: #fafafa;
  --white: #ffffff;
  --line: #e3e7ec;
  --voice: #d9741c;        /* 永井の声（質問・司の視点） */
  --voice-bg: #fdf6ee;
  --answer-bg: #f2f6fa;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.9; letter-spacing: 0.04em; font-size: 16px;
}
a { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--voice); outline-offset: 2px; }

/* ヘッダー（トップと共通） */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,250,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 20px 5%; display: flex; justify-content: space-between; align-items: center;
}
.logo-wrap { display: flex; flex-direction: column; text-decoration: none; }
.logo-sub { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--navy); line-height: 1.2; margin-bottom: 2px; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--navy); letter-spacing: 0.1em; line-height: 1.2; }
html { scrollbar-gutter: stable; }
.header-nav { display: flex; gap: 28px; }
.header-nav a { text-decoration: none; font-size: 0.85rem; color: var(--navy); letter-spacing: 0.1em; border-bottom: 2px solid transparent; padding-bottom: 2px; line-height: 1.6; }
.header-nav a:hover { opacity: 0.6; }
.header-nav a.current { border-bottom-color: currentColor; -webkit-text-stroke: 0.4px currentColor; }

/* ページ共通 */
.wrap { max-width: 820px; margin: 0 auto; padding: 56px 20px 96px; }
.page-head h1 { font-size: 2rem; color: var(--navy); letter-spacing: 0.12em; margin: 0 0 8px; }
.page-head p { color: var(--sub); margin: 0 0 32px; }
.back { display: inline-block; margin-top: 48px; color: var(--navy); font-weight: bold; text-decoration: none; }
.back:hover { text-decoration: underline; }
footer { text-align: center; padding: 40px; font-size: 0.8rem; color: #999; border-top: 1px solid var(--line); background: var(--white); }

/* 議会の切り替え */
.session-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.session-jump a {
  text-decoration: none; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--navy); color: var(--navy); font-size: 0.9rem; font-weight: bold;
}
.session-jump a:hover { background: var(--navy); color: var(--white); }

/* 議会ブロック */
.session { margin-bottom: 64px; scroll-margin-top: 110px; }
.session-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  border-bottom: 3px solid var(--navy); padding-bottom: 12px; margin-bottom: 8px; }
.session-top h2 { margin: 0; font-size: 1.45rem; color: var(--navy); letter-spacing: 0.08em; line-height: 1.4; }
.session-top h2 small { display: block; font-size: 0.85rem; color: var(--sub); font-weight: normal; letter-spacing: 0.05em; }
.btn-video {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--navy); color: var(--white); padding: 9px 18px; border-radius: 6px; font-size: 0.9rem; font-weight: bold;
}
.btn-video:hover { background: var(--navy-dark); }
.theme { font-size: 1rem; color: var(--sub); margin: 32px 0 12px; font-weight: bold; letter-spacing: 0.06em; }

/* 質問カード */
.q { background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.q-title { margin: 0; padding: 16px 20px 10px; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.q-title .mayor { display: inline-block; vertical-align: 2px; margin-left: 8px; font-size: 0.72rem; color: var(--white);
  background: var(--navy); padding: 1px 8px; border-radius: 3px; letter-spacing: 0.05em; }
.gist { margin: 0 20px; padding: 0; list-style: none; }
.gist li { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); line-height: 1.75; }
.gist .who { font-size: 0.8rem; font-weight: bold; padding-top: 3px; }
.gist .who.n { color: var(--voice); }
.gist .who.c { color: var(--navy); }
.gist .a { font-weight: bold; }
.gist .pending { color: var(--sub); font-weight: normal; }
.q-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 20px 16px; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.time { font-size: 0.78rem; color: var(--navy); background: var(--answer-bg); border-radius: 4px; padding: 2px 8px; text-decoration: none; white-space: nowrap; }
.time:hover { background: #e2ebf4; }
details.more { width: 100%; }
details.more summary { cursor: pointer; color: var(--navy); font-size: 0.9rem; font-weight: bold; list-style: none; display: inline-block; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "＋ "; }
details.more[open] summary::before { content: "－ "; }
.detail { margin-top: 12px; display: grid; gap: 10px; }
.detail .box { padding: 14px 16px; border-radius: 6px; font-size: 0.95rem; }
.detail .box p { margin: 0 0 8px; } .detail .box p:last-child { margin: 0; }
.detail .box h4 { margin: 0 0 6px; font-size: 0.85rem; }
.detail .nagai { background: var(--voice-bg); border-left: 4px solid var(--voice); }
.detail .nagai h4 { color: var(--voice); }
.detail .city { background: var(--answer-bg); border-left: 4px solid var(--navy); }
.detail .city h4 { color: var(--navy); }
.re { font-size: 0.82rem; font-weight: bold; color: var(--sub); margin-right: 4px; }

/* 議案解説：一覧 */
.post-list { display: grid; gap: 16px; }
.post-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--navy); }
.post-meta { font-size: 0.82rem; color: var(--sub); margin: 0 0 4px; }
.post-card h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--navy); line-height: 1.6; }
.post-card p.ex { margin: 0; color: var(--sub); font-size: 0.93rem; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: bold; padding: 1px 8px; border-radius: 3px; margin-right: 6px; }
.tag.focus { background: var(--voice); color: var(--white); }
.tag.all { background: var(--navy); color: var(--white); }

/* 議案解説：記事 */
.article h1 { font-size: 1.75rem; line-height: 1.55; color: var(--navy); margin: 6px 0 20px; letter-spacing: 0.06em; }
.article h2 { font-size: 1.3rem; color: var(--navy); margin: 48px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.article h3 { font-size: 1.08rem; margin: 28px 0 8px; }
.article p { margin: 0 0 16px; }
.lead { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; margin: 0 0 8px; }
.lead h2 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; font-size: 1rem !important; color: var(--sub) !important; }
.lead ul { margin: 0; padding-left: 1.2em; }
.lead li { margin: 4px 0; }
.facts { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); margin: 0 0 16px; font-size: 0.95rem; }
.facts th, .facts td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 32%; color: var(--navy); font-weight: bold; background: #f7f9fb; }
.big { font-size: 1.35rem; font-weight: bold; color: var(--navy); }
.gian { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.gian .no { font-size: 0.8rem; color: var(--sub); font-weight: bold; }
.gian h3 { margin: 2px 0 6px !important; font-size: 1.05rem; line-height: 1.6; }
.gian p { margin: 0 0 6px !important; font-size: 0.95rem; }
.gian p:last-child { margin: 0 !important; }
.gian a.more-link { font-weight: bold; }
.view { background: var(--voice-bg); border-left: 5px solid var(--voice); border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 8px 0 16px; }
.view h2 { border: 0 !important; margin: 0 0 8px !important; padding: 0 !important; color: var(--voice) !important; font-size: 1.15rem !important; }
.view p:last-child { margin-bottom: 0; }
.draft { border: 2px dashed #c0392b; background: #fff5f4; color: #c0392b; padding: 12px 16px; border-radius: 6px; font-weight: bold; font-size: 0.9rem; margin: 0 0 16px; }
.src { font-size: 0.82rem; color: var(--sub); margin-top: 40px; }

@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 5%; }
  .header-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 20px; row-gap: 8px; width: 100%; }
  .header-nav a { font-size: 0.8rem; }
  .wrap { padding: 36px 16px 72px; }
  .page-head h1 { font-size: 1.6rem; }
  .article h1 { font-size: 1.4rem; }
  .q-title { padding: 14px 16px 8px; font-size: 1.02rem; }
  .gist { margin: 0 16px; }
  .q-foot { padding: 10px 16px 14px; }
  .facts th { width: 38%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* 司の視点（解説の中に差し込む読み解き） */
.tsukasa {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start;
  margin: 6px 0 28px; padding: 18px 20px;
  background: #fbf8f2; border-top: 1px solid #e6dccb; border-bottom: 1px solid #e6dccb;
}
.tsukasa .seal {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #b5402a; color: #b5402a; border-radius: 4px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-weight: bold; font-size: 1.35rem;
  transform: rotate(-4deg); background: #fff;
}
.tsukasa .tv-label { margin: 0 0 4px !important; font-size: 0.8rem; font-weight: bold; color: #b5402a; letter-spacing: 0.15em; }
.tsukasa p { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; line-height: 2.05; margin: 0 0 10px; font-size: 1rem; }
.tsukasa p:last-child { margin-bottom: 0; }
.tsukasa strong { color: #7a2b1c; }
.gian .tsukasa { margin: 12px -20px -16px; border-bottom: 0; border-radius: 0 0 8px 8px; }
.verdict { display: inline-block; font-weight: bold; padding: 2px 12px; border-radius: 4px; color: #fff; margin-right: 8px; }
.verdict.against { background: #b5402a; } .verdict.for { background: var(--navy); }
.verdict { font-size: 0.9rem; line-height: 1.6; padding: 3px 12px; color: #fff !important; }
@media (max-width: 768px) {
  .tsukasa { grid-template-columns: 36px 1fr; gap: 10px; padding: 16px 14px; }
  .tsukasa .seal { width: 34px; height: 34px; font-size: 1.1rem; }
  .gian .tsukasa { margin: 12px -20px -16px; }
}

/* 年の見出しと過去の一般質問 */
.year { font-size: 1.15rem; color: var(--sub); letter-spacing: 0.1em; margin: 56px 0 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.year:first-of-type { margin-top: 8px; }
details.arch { background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; scroll-margin-top: 110px; }
details.arch > summary { cursor: pointer; list-style: none; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
details.arch > summary::-webkit-details-marker { display: none; }
details.arch > summary::before { content: "＋"; color: var(--navy); font-weight: bold; }
details.arch[open] > summary::before { content: "－"; }
.arch-name { font-weight: bold; font-size: 1.08rem; color: var(--navy); }
.arch-meta { font-size: 0.82rem; color: var(--sub); }
.arch-body { padding: 0 20px 18px; }
.arch-list { margin: 0 0 16px; padding-left: 1.4em; }
.arch-list > li { margin: 10px 0; }
.arch-theme { font-weight: bold; }
.arch-list ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--ink); font-size: 0.95rem; }
.arch-list ul li { margin: 2px 0; }
.arch .mayor { display: inline-block; margin-left: 6px; font-size: 0.7rem; color: var(--white); background: var(--navy); padding: 0 7px; border-radius: 3px; vertical-align: 2px; font-weight: normal; }
@media (max-width: 768px) { details.arch > summary { padding: 12px 14px; } .arch-body { padding: 0 14px 16px; } }

/* 年タブ */
.year-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; scroll-margin-top: 110px; }
.year-tabs button {
  font: inherit; font-size: 0.95rem; font-weight: bold; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy);
}
.year-tabs button:hover { background: #eef3f8; }
.year-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.year-panel[hidden] { display: none; }
.year-panel .year { margin-top: 0; }
@media (max-width: 768px) { .year-tabs button { padding: 8px 14px; font-size: 0.88rem; } }

/* 年タブ切替のフェード */
.year-panel.fade { animation: yearFade 0.35s ease; }
@keyframes yearFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .year-panel.fade { animation: none; } }
.note { font-size: 0.85rem; color: var(--sub); }
.arch-body .theme { margin-top: 18px; }
.arch-body .q { box-shadow: none; }
.arch-body .btn-video { margin-top: 8px; }

@media (max-width: 768px) { .arch-body { padding: 0 10px 14px; } .arch-body .q-title { padding: 12px 12px 6px; } .arch-body .gist { margin: 0 12px; } .arch-body .q-foot { padding: 8px 12px 12px; } }

/* 議会発言集：探し方の切替・テーマ・種別 */
.view-switch { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 10px; overflow: hidden; margin: 0 0 24px; }
.view-switch button { font: inherit; font-weight: bold; font-size: 0.95rem; padding: 10px 22px; border: 0; background: var(--white); color: var(--navy); cursor: pointer; }
.view-switch button + button { border-left: 1.5px solid var(--navy); }
.view-switch button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.sview[hidden], .theme-panel[hidden] { display: none; }
.sview.fade, .theme-panel.fade { animation: yearFade 0.35s ease; }
@media (prefers-reduced-motion: reduce) { .sview.fade, .theme-panel.fade { animation: none; } }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.theme-chips button { font: inherit; font-size: 0.88rem; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.theme-chips button:hover { border-color: var(--navy); }
.theme-chips button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.theme-chips .cnt { margin-left: 6px; font-size: 0.75rem; opacity: 0.75; }
.year small { font-size: 0.8rem; font-weight: normal; margin-left: 6px; }
.type-head { font-size: 1.05rem; color: var(--navy); margin: 28px 0 4px; padding-left: 10px; border-left: 4px solid var(--navy); }
.session .type-head:first-of-type, .arch-body .type-head:first-child { margin-top: 18px; }
.kind { display: inline-block; font-size: 0.72rem; font-weight: bold; color: var(--voice); border: 1px solid var(--voice); border-radius: 3px; padding: 0 6px; margin-right: 8px; vertical-align: 2px; }
.q-meta { margin: 0; padding: 12px 20px 0; font-size: 0.78rem; color: var(--sub); }
.q-meta + .q-title { padding-top: 4px; }
.q-link { font-size: 0.9rem; font-weight: bold; margin-right: 14px; }
@media (max-width: 768px) { .view-switch button { padding: 9px 16px; } .q-meta { padding: 10px 16px 0; } }
.type-intro { font-size: 0.9rem; color: var(--sub); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 8px 0 4px; line-height: 1.8; }

/* スマホ表示の改善 */
.menu-btn { display: none; }
.t-en { display: block; font-size: 0.72rem; letter-spacing: 0.3em; opacity: 0.65; margin-bottom: 6px; font-weight: normal; }
.t-ja { display: block; }
@media (max-width: 768px) {
  header { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 0 !important; padding: 10px 16px !important; }
  .logo-sub { font-size: 0.68rem !important; }
  .logo { font-size: 1.2rem !important; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font: inherit; font-size: 0.8rem; font-weight: bold; letter-spacing: 0.08em; color: #2c4f7c; background: #fff; border: 1px solid #d5dbe4; border-radius: 8px; padding: 8px 12px; line-height: 1; cursor: pointer; }
  .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 16px; height: 2px; background: #2c4f7c; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn .bars::before { top: -5px; } .menu-btn .bars::after { top: 5px; }
  header.open .menu-btn .bars { background: transparent; }
  header.open .menu-btn .bars::before { top: 0; transform: rotate(45deg); }
  header.open .menu-btn .bars::after { top: 0; transform: rotate(-45deg); }
  .header-nav { display: none !important; width: 100%; grid-template-columns: 1fr 1fr; column-gap: 12px !important; row-gap: 0 !important; margin-top: 10px; padding-top: 4px; border-top: 1px solid #e6e6e6; }
  header.open .header-nav { display: grid !important; }
  .header-nav a { font-size: 0.95rem !important; padding: 13px 4px !important; border-bottom: 1px solid #efefef !important; line-height: 1.4 !important; }
  .header-nav a.current { color: #b5402a !important; -webkit-text-stroke: 0.3px currentColor; }
  body { line-height: 1.85; }
  body > section { padding: 64px 16px 16px !important; }
  h2.section-title, .page-title { font-size: 1.5rem !important; letter-spacing: 0.1em !important; margin-bottom: 28px !important; line-height: 1.5 !important; }
  .page-container { padding: 36px 16px 64px !important; }
  .page-subtitle { text-align: left !important; margin-bottom: 32px !important; }
  .page-subtitle br, .lead-nobr br { display: none; }
  .mainimg { padding: 0 16px !important; }
  .mainimg-text { padding: 32px 20px !important; margin-top: 20px !important; }
  .mainimg-text h2 { font-size: 1.6rem !important; margin-bottom: 20px !important; }
  .mainimg-text p { font-size: 1rem !important; line-height: 2 !important; }
  .checker-text { padding: 28px 20px 32px !important; }
  .contact-area { margin-top: 48px !important; padding: 48px 16px !important; }
  .pdf-grid { grid-template-columns: 1fr 1fr !important; gap: 20px 14px !important; }
  .pdf-info { padding: 12px 8px !important; }
  .pdf-vol { font-size: 1.05rem !important; }
  .pdf-date { font-size: 0.78rem !important; margin-top: 4px !important; }
  .back-btn { margin-top: 48px !important; }
  .gallery-grid { gap: 20px !important; }
  .checker-img { aspect-ratio: 4 / 3 !important; }
  .gallery-item img { height: 200px !important; }
}
