/* ===========================================================================
   弁理士春秋会 — renewed design (docs/02 chapter 3, docs/mock/index.html)
   Matte: no shadows, gloss or gradients. Muted navy, stone and unbleached tones.
   Keep public/assets/css/v2.css and assets/css/v2.css identical.
   ======================================================================== */

:root {
  color-scheme: light;
  --navy: #26324A;
  --navy-2: #3A4762;
  --ink: #161B24;
  --mute: #353A43;
  --ground: #F2F1ED;
  --stone: #E5E3DD;
  --paper: #FAFAF7;
  --rule: #D3D1CA;
  --rule-dark: #8A887F;
  --link: #3B5186;
  --haru: #B28A8F;
  --aki: #9C6B52;
  --on-navy: #EEF0F4;
  --font: "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.9; letter-spacing: 0.02em; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 700; margin: 0; line-height: 1.5; letter-spacing: 0.04em; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0; text-wrap: pretty; word-break: auto-phrase; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.photo-matte { filter: saturate(0.82) contrast(0.96); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 8px 16px; }
.skip:focus { left: 8px; top: 8px; }

/* ===== Header ===== */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header .wrap { max-width: 1360px; display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand img { height: 64px; width: auto; margin-block: -6px; min-width: 0; object-fit: contain; object-position: left center; }
.brand span { font-weight: 700; font-size: 20px; letter-spacing: 0.1em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gnav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 22px; margin-left: auto; font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
.gnav a { text-decoration: none; padding-block: 6px; position: relative; white-space: nowrap; }
.gnav a:hover { color: var(--link); }
.gnav a[aria-current="page"]:not(.gnav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--navy); }
.gnav .gnav-election::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--haru); margin-right: 6px; vertical-align: 2px; }
.gnav .gnav-cta { background: var(--navy); color: #fff; padding: 8px 16px; font-weight: 700; border-radius: 2px; }
.gnav .gnav-cta:hover { background: var(--navy-2); color: #fff; }
/* Hamburger button: three bars that turn into a cross while the menu is open. */
.menu-btn { display: none; flex-shrink: 0; margin-left: auto; width: 44px; height: 44px; padding: 0; color: var(--ink); background: none; border: 1px solid var(--rule-dark); border-radius: 2px; cursor: pointer; }
.menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.2s, background-color 0.2s; }
.menu-btn-bars { position: relative; margin-inline: auto; }
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; left: 0; }
.menu-btn-bars::before { top: -6px; }
.menu-btn-bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars { background-color: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { transform: translateY(-6px) rotate(-45deg); }

.flash { padding-block: 12px; font-weight: 700; border-bottom: 1px solid var(--rule); }
.flash-success { background: #E4EBE3; color: #22402B; }
.flash-error { background: #F1E1DC; color: #6B2A1B; }

/* ===== Shared parts ===== */
.sec { padding-block: clamp(56px, 7vw, 96px); }
.sec.alt { background: var(--paper); border-block: 1px solid var(--rule); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head.tight { margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 900; letter-spacing: 0.08em; }
.more { font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.more:hover { color: var(--link); border-color: var(--link); }
.btn { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font: inherit; font-weight: 700; font-size: 15px; letter-spacing: 0.08em; padding: 14px 24px; border: 1px solid var(--navy); border-radius: 2px; background: var(--navy); color: #fff; cursor: pointer; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: var(--ink); }
.mark::before { content: ""; width: 8px; height: 8px; background: var(--rule-dark); }
.mark.haru::before { background: var(--haru); }
.mark.aki::before { background: var(--aki); }
.empty { color: var(--mute); }
.note { font-size: 14px; color: var(--mute); }
.admin-note { margin-top: 24px; padding: 10px 14px; background: var(--stone); border-left: 3px solid var(--aki); font-size: 14px; }

/* ===== Top: photo ===== */
.hero { background: var(--stone); }
.hero-img { width: 100%; height: clamp(280px, 46vh, 440px); object-fit: cover; object-position: 50% 55%; }
.hero-panel { background: var(--navy); color: #fff; }
.hero-box { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4px 56px; align-items: end; padding-block: clamp(18px, 2.2vw, 26px); }
.hero-box .org { grid-column: 1 / -1; font-weight: 500; font-size: 13px; letter-spacing: 0.2em; color: #DDE1EA; }
.hero-box h1 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.4; letter-spacing: 0.06em; }
.hero-box p { font-size: 15px; line-height: 1.8; color: var(--on-navy); }
.facts { background: var(--paper); border-bottom: 1px solid var(--rule); }
.facts .wrap { display: grid; grid-template-columns: repeat(2, 1fr) 2fr; }
.facts .fact { margin: 0; padding: 22px 20px 22px 0; }
.facts .fact + .fact, .facts .origin { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; }
.facts dd { margin: 2px 0 0; font-weight: 900; font-size: 30px; line-height: 1.2; letter-spacing: 0.04em; }
.facts dd small { font-weight: 500; font-size: 15px; margin-left: 6px; letter-spacing: 0.02em; }
.facts .origin { font-size: 15px; line-height: 1.8; align-self: center; }

.notice-election { background: var(--stone); border-bottom: 1px solid var(--rule); }
.notice-election a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 18px; text-decoration: none; }
.notice-election strong { font-weight: 700; font-size: 17px; letter-spacing: 0.06em; }
.notice-election .go { margin-left: auto; }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--rule); }
.news-list a { display: grid; grid-template-columns: 7em 7.5em 1fr auto; gap: 16px; align-items: baseline; padding: 18px 4px; text-decoration: none; }
.news-list a:hover { background: var(--paper); }
.news-list a:hover .t { color: var(--link); }
.news-list time { font-size: 15px; }
.news-list .cat { font-weight: 500; font-size: 12px; letter-spacing: 0.08em; background: var(--stone); padding: 1px 10px; justify-self: start; line-height: 1.9; }
.news-list .arrow { color: var(--rule-dark); }

.greeting { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.greeting.no-photo { grid-template-columns: 1fr; }
.greeting figure { margin: 0; background: var(--stone); }
.greeting figure img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; object-position: 50% 20%; }
.greeting .role { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; letter-spacing: 0.12em; color: var(--ink); }
.greeting .role::before { content: ""; width: 8px; height: 8px; background: var(--aki); }
.greeting .name { font-weight: 700; font-size: 24px; margin-top: 10px; letter-spacing: 0.12em; line-height: 1.5; }
.greeting .name small { font-weight: 500; font-size: 16px; color: var(--ink); margin-right: 14px; letter-spacing: 0.06em; }
.greeting .excerpt { margin-top: 20px; max-width: 38em; }
.greeting .greeting-text { margin-top: 20px; }
.greeting .btn { margin-top: 28px; }

.guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide a { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; text-decoration: none; background: var(--paper); border: 1px solid var(--rule); }
.guide .thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.guide .thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide .gb { padding: 0 18px; display: grid; gap: 6px; align-content: start; }
.guide .gt { font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.guide .gs { font-size: 14px; color: var(--mute); line-height: 1.8; }
.guide .go { padding: 0 18px 16px; font-weight: 500; font-size: 13px; }
.guide a:hover { border-color: var(--ink); }
.guide a.no-thumb { grid-template-rows: 1fr auto; padding-top: 20px; }
.guide a:hover .gt { color: var(--link); }

.x-post { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; }
.x-card { background: var(--paper); border: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); text-decoration: none; }
.x-card.no-image { grid-template-columns: 1fr; }
.x-card:hover { border-color: var(--ink); }
.x-img { display: block; background: var(--stone); min-height: 180px; }
.x-img img { width: 100%; height: 100%; object-fit: cover; }
.x-text { display: grid; gap: 10px; align-content: center; padding: 20px 24px; }
.x-card .acct { font-size: 13px; color: var(--mute); }
.x-go { font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

.join { background: var(--navy); }
.join a.wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 32px; padding-block: clamp(32px, 4vw, 48px); text-decoration: none; color: #fff; }
.join h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; }
.join p { color: var(--on-navy); font-size: 15px; max-width: 26em; }
.join .go { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.join a:hover .go { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Page head ===== */
.page-banner { background: var(--stone); }
.page-banner img { width: 100%; max-width: 1440px; height: clamp(140px, 22vw, 260px); margin-inline: auto; object-fit: cover; }
.page-banner.none { height: 12px; background: var(--navy); }
.page-title-bar { background: var(--paper); border-bottom: 1px solid var(--rule); }
.page-title-bar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 56px; padding-block: clamp(28px, 4vw, 44px); align-items: center; }
.page-title-bar .wrap.no-lead { grid-template-columns: 1fr; }
.crumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; color: var(--mute); letter-spacing: 0.06em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-title-bar h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: 0.08em; line-height: 1.35; }
.title-meta { margin-top: 6px; font-size: 15px; }
.page-title-bar .lead { font-size: 16px; line-height: 1.95; max-width: 34em; }
.page-body { padding-bottom: clamp(48px, 6vw, 80px); }
.back-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 32px; border-top: 1px solid var(--rule); }

/* ===== Blocks ===== */
.blk { padding-block: clamp(44px, 5vw, 72px); }
.blk + .blk { border-top: 1px solid var(--rule); }
.blk h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; margin-bottom: 20px; }
.kicker { font-weight: 500; font-size: 13px; letter-spacing: 0.16em; color: var(--mute); margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px clamp(28px, 5vw, 64px); }
.two-col .blk-head h2 { margin-bottom: 0; }
.media-text { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px clamp(28px, 5vw, 64px); align-items: start; }
.media-text.image-left > figure { order: -1; }
.figure { margin: 0; }
.figure img { margin-inline: auto; }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
.figure a { display: block; }

/* Rich text entered in the editor. */
.prose { max-width: 40em; }
.one-col .prose { max-width: 46em; }
.prose.admission-guide { max-width: none; }
/* Every block carries its gap beneath it, so the editor's 行間 setting (space-tight,
   space-wide) on a paragraph decides the gap to the next one. */
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .content-table, .prose .video-embed { margin: 0 0 1.1em; }
.prose > :last-child, .prose > :last-child > :last-child, .prose blockquote > :last-child { margin-bottom: 0; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 1.8em 0 0.6em; }
.prose h4 { font-size: 17px; font-weight: 700; margin: 1.5em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.3em; }
.prose blockquote { margin: 0.3em 0; padding: 18px 22px; background: var(--stone); font-size: 15px; line-height: 2; }
.prose blockquote p { white-space: pre-line; }
.prose .heritage-source { font-size: 14px; color: var(--mute); }
.prose .job-meta { font-weight: 700; }
.prose .align-left { text-align: left; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose .space-tight { margin-bottom: 0.2em; }
.prose .space-wide { margin-bottom: 2em; }
.prose .txt-sm { font-size: 0.875em; }
.prose .txt-lg { font-size: 1.2em; }
.prose .txt-xl { font-size: 1.45em; font-weight: 900; }
.prose .txt-kon { color: var(--navy); }
.prose .txt-kin { color: var(--aki); }
.prose .txt-warn { color: #8A3B22; }
.prose .txt-muted { color: var(--mute); }
.prose .content-table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose .content-table th, .prose .content-table td { padding: 10px 14px; border: 1px solid var(--rule); text-align: left; vertical-align: top; line-height: 1.7; }
.prose .content-table th { background: var(--stone); font-weight: 700; }
.prose .video-embed, .video { position: relative; aspect-ratio: 16 / 9; background: #2C3342; }
.prose .video-embed iframe, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video { max-width: 860px; }
.blk-toc ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.blk-toc a { display: block; padding: 10px 14px; border-left: 3px solid var(--navy); background: var(--stone); color: var(--ink); font-weight: 500; text-decoration: none; }
.blk-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.blk-video .video { width: 100%; }
.blk-video .video-align-left { margin-left: 0; margin-right: auto; }
.blk-video .video-align-center { margin-left: auto; margin-right: auto; }
.blk-video .video-align-right { margin-left: auto; margin-right: 0; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
/* Mail-newsletter articles are laid out with full-width spaces and fixed line
   breaks, so they keep a fixed-width face and their line breaks. */
.prose .plain-text-body { font-family: "BIZ UDGothic", "MS Gothic", "Osaka-Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.article-body-wide .prose { max-width: 52em; }

.points { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.points li { padding: 16px 0 16px 26px; border-bottom: 1px solid var(--rule); position: relative; }
.points li::before { content: ""; position: absolute; left: 2px; top: 1.55em; width: 8px; height: 8px; background: var(--navy); }
.points-lead { margin-bottom: 20px; }
.after-list { margin-top: 20px; }

.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.items[data-columns="1"] { grid-template-columns: minmax(0, 1fr); }
.items[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.items[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item { background: var(--paper); border: 1px solid var(--rule); display: grid; align-content: start; }
.item .ib { padding: 24px; display: grid; gap: 8px; align-content: start; }
.item .kicker { margin: 0; }
.item h3 { font-size: 18px; }
.item .item-link { justify-self: start; margin-top: 4px; }
.item .prose { font-size: 15px; }
.item-img { display: block; }
.item-img img { width: 100%; }
.photo-items .ph { display: block; aspect-ratio: 791 / 1024; background: var(--stone); overflow: hidden; }
.photo-items .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-items .ib { padding: 12px 14px; }
/* Hovering a club card shows navy bands over the foot of the photo:
  「記事を見る」 opens the newsletter page full size, and the card's link, when
   set, sits just above it. Flat colour only, in keeping with the matte design. */
.photo-items .ph { position: relative; }
.photo-items .ph-img { display: block; height: 100%; cursor: zoom-in; }
.photo-items .ph-actions { position: absolute; left: 0; right: 0; bottom: 0; display: grid; opacity: 0; transform: translateY(100%); transition: opacity 0.18s ease, transform 0.18s ease; }
.photo-items .ph-actions a { display: block; padding: 8px 12px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-align: center; text-decoration: none; }
.photo-items .ph-open { background: var(--navy); }
.photo-items .ph-link { background: var(--navy-2); border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.photo-items .ph-actions a:hover, .photo-items .ph-actions a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.photo-items .item:hover .ph-actions, .photo-items .ph:focus-within .ph-actions { opacity: 1; transform: none; }
.photo-items .item:hover .ph img, .photo-items .ph:focus-within img { filter: none; }
.photo-items .item:hover, .photo-items .item:focus-within { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: -1px; }
.photo-items .item:hover h3 { color: var(--link); }
@media (hover: none) { .photo-items .ph-actions { opacity: 1; transform: none; } .photo-items .ph-actions a { padding: 5px 8px; font-size: 12px; } .photo-items .ph-open { background: rgba(38, 50, 74, 0.88); } .photo-items .ph-link { background: rgba(58, 71, 98, 0.88); } }
@media (prefers-reduced-motion: reduce) { .photo-items .ph-actions, .menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after { transition: none; } }

/* Full-size image viewer (layout.php). The image keeps its own size and the
   viewer scrolls; on a narrow screen it is fitted to the width instead. */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px 24px; border: 0; background: rgba(22, 27, 36, 0.92); overflow: auto; }
.lightbox::backdrop { background: rgba(22, 27, 36, 0.6); }
.lightbox img { display: block; margin: 0 auto; max-width: 100%; height: auto; background: #fff; cursor: zoom-out; }
.lightbox-close { position: fixed; top: 12px; right: 16px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--paper); border: 0; border-radius: 2px; padding: 8px 16px; cursor: pointer; }
.photo-items h3 { font-size: 16px; }

.tier { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 24px; padding-block: 24px; border-top: 1px solid var(--rule); }
.blk-sponsors .tier:first-of-type { border-top: 2px solid var(--ink); }
.tier h3 { font-size: 17px; }
.tier h3 small { display: block; font-weight: 400; font-size: 12px; color: var(--mute); letter-spacing: 0.08em; }
.tier-lead { margin-bottom: 14px; }
.logos { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logos[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.logos[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.logo { background: #fff; border: 1px solid var(--rule); min-height: 76px; display: grid; place-items: center; text-align: center; padding: 10px 12px; font-size: 14px; line-height: 1.5; text-decoration: none; }
.logos[data-columns="3"] .logo { min-height: 96px; }
.logo img { max-height: 64px; width: auto; object-fit: contain; }
.logos[data-columns="3"] .logo img { max-height: 76px; }
.logo.name-only { background: transparent; border-style: dashed; font-weight: 700; }
a.logo:hover { border-color: var(--ink); }

.jobs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.jobs > li { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.jobs h3 { font-size: 16px; }
.jobs .place { font-size: 14px; color: var(--mute); margin-top: 2px; }
.jobs ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.jobs > li > a { font-weight: 500; font-size: 14px; white-space: nowrap; }
.note-prose { font-size: 14px; color: var(--mute); margin: -8px 0 20px; }

.year { font-size: 20px !important; margin: 44px 0 12px !important; }
.blk-article_list .year:first-of-type { margin-top: 0 !important; }

.child-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.child-list li { border-bottom: 1px solid var(--rule); }
.child-list a { display: grid; grid-template-columns: minmax(10em, 0.8fr) 1.6fr auto; gap: 4px 24px; align-items: baseline; padding: 18px 4px; text-decoration: none; }
.child-list a:hover { background: var(--paper); }
.child-list a:hover .t { color: var(--link); }
.child-list .t { font-weight: 700; font-size: 17px; }
.child-list .ex { font-size: 15px; color: var(--mute); }
.child-list .arrow { color: var(--rule-dark); grid-column: 3; grid-row: 1; }

/* Election */
.el-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 56px; }
.el-summary .fy { margin-bottom: 8px; }
.el-summary h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.el-comment { margin-top: 20px; }
.el-meta { margin: 0; border-top: 2px solid var(--ink); font-size: 15px; align-self: start; }
.el-meta div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.el-meta dt { color: var(--mute); }
.el-meta dd { margin: 0; }
.el-meta a { color: var(--link); }
.cat-block + .cat-block { margin-top: 48px; }
.cat-block h3 { font-size: 19px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 20px; display: flex; gap: 12px; align-items: baseline; }
.cat-block h3 small { font-weight: 400; font-size: 14px; color: var(--mute); }
.cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cand { display: grid; text-decoration: none; background: var(--paper); border: 1px solid var(--rule); }
.cand .video-thumb { display: block; aspect-ratio: 16 / 9; background: #3C4250; overflow: hidden; }
.cand .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cand .cb { padding: 14px 16px 16px; display: grid; gap: 2px; }
.cand .kana, .cand-head .kana { font-size: 13px; color: var(--mute); letter-spacing: 0.1em; }
.cand .cn { font-weight: 700; font-size: 19px; }
.cand .reg, .cand-head .reg { font-size: 14px; color: var(--mute); }
.cand:hover { border-color: var(--ink); }
.cand:hover .cn { color: var(--link); }
.cand-head { display: grid; gap: 4px; }
.cand-head .cand-name { font-weight: 900; font-size: clamp(24px, 3vw, 32px); letter-spacing: 0.08em; }
.cand-comment { margin-top: 24px; }
.pdf-pages { display: grid; gap: 16px; max-width: 860px; }
.pdf-pages img { width: 100%; border: 1px solid var(--rule); background: #fff; }
.pdf-link { margin-top: 16px; font-size: 14px; }
.pdf-link a { color: var(--link); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; max-width: 860px; }
.form.narrow { max-width: 520px; grid-template-columns: 1fr; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field .req { color: var(--aki); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--rule-dark); border-radius: 2px; padding: 10px 12px; width: 100%; }
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }

/* ===== Footer ===== */
.site-footer { background: #1D2536; color: #E6E9EF; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px; }
.site-footer h2 { color: #fff; font-size: 18px; letter-spacing: 0.16em; }
.site-footer p { font-size: 14px; margin-top: 12px; color: #D5DAE4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; align-content: start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Back-to-top button at the bottom of the main content, on every public page but the home page. */
.to-top .wrap { display: flex; justify-content: flex-end; padding-block: 0 40px; }
/* The button row replaces the content's bottom padding, and sits a little into the last block's own padding. */
.page-body:has(+ .to-top) { padding-bottom: 0; }
.to-top { margin-top: -16px; }
.to-top a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; background: transparent; border: 1px solid var(--rule-dark); border-radius: 2px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
.to-top a:hover { border-color: var(--ink); }

/* ===== Narrow screens ===== */
@media (min-width: 961px) {
  .brand { flex-shrink: 0; }
  .gnav { min-width: 0; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 96px; }
  /* Keep navigation visible when mobile browser toolbars change on scroll. */
  .site-header { position: sticky; top: 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; max-height: calc(100vh - 85px); max-height: calc(100svh - 85px); overflow-y: auto; }
  .gnav.is-open { display: flex; }
  .gnav a { flex-shrink: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .gnav a[aria-current="page"]:not(.gnav-cta)::after { top: 12px; bottom: 12px; left: -12px; right: auto; width: 3px; height: auto; }
  .gnav .gnav-cta { margin-top: 12px; text-align: center; padding: 12px 16px; border-bottom: 0; }
}
@media (max-width: 960px) {
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .facts .origin { grid-column: 1 / -1; border-left: 0; padding: 0 0 18px; }
  .guide { grid-template-columns: repeat(2, 1fr); }
  .items[data-columns="3"], .items[data-columns="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-items[data-columns="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos, .logos[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  .site-header .wrap { min-height: 68px; gap: 12px; }
  .gnav { max-height: calc(100vh - 69px); max-height: calc(100svh - 69px); }
  .brand { gap: 10px; }
  .brand img { height: 48px; margin-block: 0; }
  .brand span { font-size: 16px; letter-spacing: 0.06em; }
  .hero-img { height: 240px; }
  .hero-box { grid-template-columns: 1fr; }
  .facts dd { font-size: 22px; }
  .facts dd small { display: block; margin-left: 0; font-size: 13px; }
  .facts .fact { padding-right: 8px; }
  .facts .fact + .fact { padding-left: 10px; }
  .news-list a { grid-template-columns: 6.5em 1fr; gap: 4px 12px; }
  .news-list .t { grid-column: 1 / -1; }
  .news-list .arrow { display: none; }
  .join a.wrap { grid-template-columns: 1fr; }
  .x-card { grid-template-columns: 1fr; }
  .x-img { aspect-ratio: 16 / 9; min-height: 0; }
  .greeting, .x-post, .two-col, .media-text, .el-summary, .page-title-bar .wrap { grid-template-columns: 1fr; }
  .media-text.image-left > figure { order: 0; }
  .greeting figure { max-width: 260px; }
  .guide, .items[data-columns], .cands, .form { grid-template-columns: 1fr; }
  .photo-items[data-columns] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier { grid-template-columns: 1fr; gap: 12px; }
  .logos, .logos[data-columns] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs > li { grid-template-columns: 1fr; }
  .child-list a { grid-template-columns: 1fr auto; }
  .child-list .ex { grid-column: 1; }
  .child-list .arrow { grid-column: 2; grid-row: 1 / span 2; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .to-top .wrap { justify-content: center; }
}

@media print {
  .site-header, .site-footer, .menu-btn, .skip, .to-top { display: none; }
  body { background: #fff; }
}

/* Sized images come wrapped in <picture>; let the <img> inside behave as a direct child. */
picture { display: contents; }

/* Reading pages (a news article): the name, date, summary and text share one
   centred column the width of the text, instead of the page's two columns. */
.page-title-bar .wrap.reading { max-width: calc(43em + 2 * var(--gutter)); grid-template-columns: 1fr; gap: 12px; }
.page-title-bar .wrap.reading h1 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: 0.06em; }
.page-body.reading { max-width: calc(43em + 2 * var(--gutter)); }
.page-body.reading .prose { max-width: none; }

/* Text beside a heading: a short text is centred on the heading, a long one
   starts on the heading's first line rather than on the small label above it. */
.two-col.is-short { align-items: center; }
.two-col.has-kicker:not(.is-short) > .prose { padding-top: calc(13px * 1.9 + 6px); }
@media (max-width: 640px) { .two-col.has-kicker:not(.is-short) > .prose { padding-top: 0; } }

/* Election preview (admin): the button that prints the page as a PDF. */
.senkyo-preview-print-toolbar { position: fixed; right: 16px; bottom: 16px; z-index: 30; }
.senkyo-preview-print-toolbar .btn { background: var(--navy); color: #fff; }
.senkyo-print-footer { display: none; }
@media print { .senkyo-preview-print-toolbar, .admin-note { display: none; } }
