/* トップ以外のページ（本会について・協同組合など）と、全ページ共通のメニュー・フッター。
   色と文字は style.css の変数をそのまま使う。読み物のページなので、本文の列を細く保ち、
   横の「項目一覧」だけを畳色の帯で目立たせる。 */

/* ---------- 狭い画面のメニュー ---------- */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  font-weight: 700; font-size: 0.9375rem; color: var(--kachi);
  padding: 8px 12px; border: 1.5px solid var(--kachi); border-radius: var(--radius-sm);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--kachi); color: #fff; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(86vw, 320px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgb(23 37 63 / 0.16);
}
.menu ul { list-style: none; margin: 0; padding: 6px 0; }
.menu a { display: block; padding: 10px 18px; text-decoration: none; color: var(--sumi); }
.menu a:hover { background: var(--shironeri); }
.menu a[aria-current] { color: var(--kachi); font-weight: 700; box-shadow: inset 4px 0 0 var(--tatami); }
.site-nav a[aria-current] { color: var(--kachi); font-weight: 700; text-decoration: underline; text-decoration-color: var(--tatami); text-decoration-thickness: 3px; }

/* メニューが7項目あるので、1行に収まらない幅ではボタンに切り替える */
.site-nav ul { gap: 4px 20px; }
.site-nav a { white-space: nowrap; }
.brand-name { white-space: nowrap; }
@media (max-width: 1240px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .head-tel { margin-left: auto; }
}
.menu-tel { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); }
.menu-tel a { padding: 0; font-weight: 700; color: var(--kachi); }
.menu-tel a:hover { background: none; text-decoration: underline; }
/* スマホ幅ではヘッダーの電話番号をメニューの中へ移し、院名とメニューボタンだけにする */
@media (max-width: 560px) {
  .site-head { gap: 12px; }
  .head-tel { display: none; }
  .menu { margin-left: auto; }
}
@media (max-width: 360px) {
  .brand-name { white-space: normal; }
}

/* ---------- ページの見出し ---------- */
.page-head { max-width: 1240px; margin: 0 auto; padding: 20px var(--gutter) 36px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.4em; font-size: var(--fs-sm); color: var(--nibi); }
.crumbs li + li::before { content: "／"; margin-right: 0.4em; color: var(--line); }
.crumbs a { color: var(--nibi); }
.page-head h1 { margin-top: 28px; font-size: var(--fs-xl); letter-spacing: 0.02em; }
.page-lead { margin-top: 14px; max-width: var(--measure); font-size: 1.125rem; }

/* 協同組合は別の団体なので、見出しの上に団体名の帯を置いて区別する */
.page-org {
  display: inline-block; margin-top: 24px;
  padding: 2px 12px; border-left: 6px solid var(--tatami);
  background: var(--tatami-pale); color: var(--sumi);
  font-family: var(--font-display); font-size: 1.05rem;
}
.page-head.is-co h1 { margin-top: 12px; }

/* ---------- 本文と項目一覧 ---------- */
.page-body { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }
.page-body.has-side { display: grid; grid-template-columns: 15em minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.section-nav { position: sticky; top: 96px; border-left: 4px solid var(--tatami); padding: 4px 0 4px 16px; }
.section-nav-title { font-family: var(--font-display); color: var(--nibi); font-size: 0.95rem; }
.section-nav ul { list-style: none; margin: 8px 0 0; padding: 0; }
.section-nav a { display: block; padding: 7px 0; text-decoration: none; color: var(--sumi); line-height: 1.5; }
.section-nav a:hover { color: var(--kachi); text-decoration: underline; }
.section-nav a[aria-current="page"] { color: var(--kachi); font-weight: 700; position: relative; }
.section-nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -20px; top: 0.55em; bottom: 0.55em; width: 4px; background: var(--kachi);
}

.prose { max-width: 42em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.6em; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-lg); }
.prose > h2:first-child, .prose > section:first-child > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h2 + * { margin-top: 0.9em; }
.prose b { color: var(--kachi); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }

.note { font-size: 0.9375rem; color: var(--nibi); }
.aside-link a { font-weight: 700; }
.kana { font-size: var(--fs-sm); color: var(--nibi); }

.button {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--kachi); color: #fff;
}
.button:hover { background: var(--kachi-deep); color: #fff; }

.callout { background: var(--paper); border-left: 4px solid var(--kachi); padding: 16px 20px; }
.callout-title { font-weight: 700; color: var(--kachi); margin-bottom: 4px; }

/* 見出し＋説明の組（主な事業・入会のメリットなど） */
.facts, .benefits { margin: 0; display: grid; gap: 0; }
.facts div, .benefits div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt, .benefits dt { font-weight: 700; color: var(--kachi); }
.facts dd, .benefits dd { margin: 4px 0 0; }

/* 項目名：値 の表（組織の概要など） */
.org-table { margin: 0; border-top: 2px solid var(--kachi); }
.org-table div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.org-table dt { color: var(--nibi); }
.org-table dd { margin: 0; }

.plain-list { padding-left: 1.2em; }

/* ---------- 申し込みフォーム ---------- */
.apply-form { display: grid; gap: 22px; }
.apply-form[hidden], .apply-confirm[hidden] { display: none; } /* display: grid が hidden 属性より強いため */
.apply-confirm > * + *, .apply-done > * + * { margin-top: 1em; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* ロボット避けの隠し欄 */
.button[disabled] { opacity: 0.6; cursor: progress; }
.apply-form .field { margin: 0; padding: 0; border: 0; min-width: 0; }
.apply-form label, .apply-form legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.apply-form input[type="text"], .apply-form input[type="email"], .apply-form input[type="tel"], .apply-form input[type="date"] {
  width: 100%; font: inherit; padding: 11px 13px;
  border: 1.5px solid var(--nibi); border-radius: var(--radius-sm); background: var(--paper); color: var(--sumi);
}
.apply-form input.is-short { max-width: 14em; }
.apply-form textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font: inherit; line-height: 1.7; resize: vertical; }
.apply-form textarea:focus-visible { outline: 3px solid var(--tatami); outline-offset: 1px; border-color: var(--kachi); }
.apply-form input:focus-visible { outline: 3px solid var(--tatami); outline-offset: 1px; border-color: var(--kachi); }
.apply-form [aria-invalid="true"] { border-color: var(--hi); }
.apply-form .hint { margin: 0 0 8px; font-size: 0.9375rem; color: var(--nibi); }
.choices { display: grid; gap: 4px; }
.choices.is-row { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.choices label, .apply-form .agree { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; padding: 6px 0; cursor: pointer; }
.choices input, .apply-form .agree input { width: 1.2em; height: 1.2em; accent-color: var(--kachi); flex: none; }
.field-error { margin: 6px 0 0; color: var(--hi); font-weight: 700; font-size: 0.9375rem; }
.apply-form .privacy { background: var(--paper); border: 1px solid var(--line); padding: 16px 20px; }
.prose .apply-form .privacy h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.1rem; }
.apply-form .privacy p { margin: 0 0 8px; font-size: 0.9375rem; }
.apply-form button.button { font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.mail-preview {
  margin: 0; padding: 16px 20px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: inherit; font-size: 0.9375rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.apply-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.turnstile-box:not([data-sitekey=""]) { min-height: 65px; margin: 0 0 12px; } /* Turnstile の確認欄 */
.button.is-ghost { font: inherit; font-weight: 700; cursor: pointer; background: transparent; color: var(--kachi); border: 1.5px solid var(--kachi); }
.button.is-ghost:hover { background: var(--shironeri); color: var(--kachi-deep); }

/* ---------- 写真 ---------- */
.portrait { margin: 0 0 1.6em; display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: end; }
.portrait img { width: 220px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 30%; border-radius: var(--radius-sm); background: var(--land); }
.portrait.is-small img { width: 160px; object-position: center; }
.portrait.is-small { grid-template-columns: 160px 1fr; }
.portrait figcaption { font-size: 0.9375rem; color: var(--nibi); }
.portrait-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--kachi); }
.signature { text-align: right; font-family: var(--font-display); color: var(--kachi); margin-top: 2em; }

.wide-photo { margin: 1.6em 0; }
.wide-photo img { width: 100%; border-radius: var(--radius-sm); }
.wide-photo figcaption, .act-photo figcaption { margin-top: 6px; font-size: var(--fs-sm); color: var(--nibi); }

/* ---------- 役員 ---------- */
.officers { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15em), 1fr)); gap: 0 32px; }
.officers div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.officers dt { font-size: var(--fs-sm); color: var(--nibi); }
.officers dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.45rem; color: var(--kachi); }
.officers .is-chair { grid-column: 1 / -1; border-bottom: 2px solid var(--kachi); }
.officers .is-chair dd { font-size: 2rem; }
.officers dd.officer-clinic { margin-top: 4px; font-family: inherit; font-size: var(--fs-sm); color: var(--nibi); }

/* ---------- 資料（PDF）の一覧 ---------- */
.docs { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.docs li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose .docs li + li { margin-top: 0; }
.prose .docs { padding-left: 0; }
.report-table, .fee-table, .result-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td, .fee-table th, .fee-table td, .result-table th, .result-table td {
  text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-weight: 400;
}
.report-table thead th, .result-table thead th { font-size: var(--fs-sm); color: var(--nibi); border-bottom: 2px solid var(--kachi); }
.report-table tbody th { font-family: var(--font-display); color: var(--kachi); white-space: nowrap; }
.report-table tbody th span { display: block; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--nibi); }
.report-table td:nth-child(2) { font-size: 0.9375rem; color: var(--nibi); }
.report-table td a { display: block; white-space: nowrap; }
.fee-table { border-top: 2px solid var(--kachi); }
.fee-table th { width: 11em; color: var(--nibi); }
.fee-table td { font-family: var(--font-display); font-size: 1.25rem; color: var(--kachi); }
.result-table td { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--kachi); white-space: nowrap; }

/* ---------- 柔道整復術の歩み（年表） ---------- */
.timeline { list-style: none; padding: 0; margin-top: 1.6em; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.2em; top: 0.6em; bottom: 0.6em; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 2em; padding: 10px 0; position: relative; }
.prose .timeline li + li { margin-top: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(6.2em - 5px); top: 1.15em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--shironeri); border: 2px solid var(--kachi);
}
.tl-year { font-family: var(--font-display); font-size: 1.25rem; color: var(--tatami-ink); text-align: right; line-height: 1.6; font-variant-numeric: tabular-nums; }
.timeline .tl-era .tl-year { font-size: 1.05rem; }
.timeline .tl-era p { color: var(--nibi); }
.timeline .tl-now::before { background: var(--kachi); }
.timeline .tl-now .tl-year { color: var(--kachi); }

/* ---------- よくある質問 ---------- */
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 16px 2.2em 16px 2.2em; font-weight: 700; line-height: 1.6;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "問"; position: absolute; left: 0; top: 16px; font-family: var(--font-display); color: var(--tatami-ink); font-weight: 400; }
.qa summary::after { content: "＋"; position: absolute; right: 4px; top: 16px; color: var(--kachi); }
.qa[open] summary::after { content: "−"; }
.qa summary:hover { color: var(--kachi); }
.qa-a { padding: 0 0 18px 2.2em; position: relative; }
.qa-a::before { content: "答"; position: absolute; left: 0; top: 0; font-family: var(--font-display); color: var(--kachi); }
.qa-a > * + * { margin-top: 0.8em; }

/* ---------- 地域での活動 ---------- */
.act-block + .act-block { margin-top: 3.2em; }
.act-block > * + * { margin-top: 1em; }
.act-block h2 { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.act-block:first-child h2 { border-top: 0; padding-top: 0; }
.act-photo { margin: 1em 0; }
.act-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.act-photo.is-small { max-width: 400px; }
.act-photo.is-small img { aspect-ratio: 4 / 3; }
.groups, .link-list { margin: 0; border-top: 1px solid var(--line); }
.groups div, .link-list div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 20px; }
.groups dt, .link-list dt { font-weight: 700; }
.groups dd, .link-list dd { margin: 0; color: var(--sumi); }
.link-list dd { color: var(--nibi); font-size: 0.9375rem; }

/* お知らせの一覧（tools/news_cards.py が作る）。トップの新着は style.css の .news-list */
.prose:has(.news-archive) { max-width: 1040px; }
.news-archive > * + * { margin-top: 1.4em; }
.news-search { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.news-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.news-search input { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--nibi); border-radius: var(--radius-sm); background: #fff; }
.news-search-count { margin: 8px 0 0; color: var(--nibi); font-size: var(--fs-sm); }
.news-search-count:empty { display: none; }
.prose ul.news-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.prose .news-cards li + li { margin-top: 0; }
.news-card a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--sumi); text-decoration: none;
}
.news-card a:hover { border-color: var(--kachi); }
.news-card a:hover .news-title { color: var(--kachi); text-decoration: underline; }
.news-thumb { display: block; flex: none; aspect-ratio: 3 / 2; background: var(--land); }
.is-news .prose .news-thumb img { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; } /* 記事の本文の画像の余白を打ち消す */
.news-archive [data-news-browse] > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.news-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.news-card time { color: var(--nibi); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.news-card .news-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.55; font-weight: 700; }
.news-snippet { color: var(--nibi); font-size: var(--fs-sm); line-height: 1.6; overflow-wrap: anywhere; }
.news-file { align-self: flex-start; margin-top: 2px; padding: 0 8px; color: var(--kachi); font-size: var(--fs-sm); background: var(--shironeri); border-radius: var(--radius-sm); }
.news-year { border-bottom: 1px solid var(--line); }
.news-year:first-of-type { border-top: 1px solid var(--line); }
.prose .news-archive .note + .news-year { margin-top: 1em; }
.news-year summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 9px 2.2em 9px 0; font-weight: 700;
}
.news-year summary::-webkit-details-marker { display: none; }
.news-year summary::after { content: "＋"; position: absolute; right: 4px; top: 9px; color: var(--kachi); }
.news-year[open] summary::after { content: "−"; }
.news-year summary:hover { color: var(--kachi); }
.news-year-count { margin-left: 0.8em; color: var(--nibi); font-size: var(--fs-sm); font-weight: 400; }
.news-year .news-cards { padding-bottom: 20px; }
.news-more { display: block; margin: 20px auto 0; padding: 10px 32px; font: inherit; color: var(--kachi); background: var(--paper); border: 1px solid var(--kachi); border-radius: var(--radius-sm); cursor: pointer; }
.news-more:hover { background: var(--kachi); color: #fff; }
.news-more[hidden], [data-news-browse][hidden], [data-news-results][hidden], .news-search[hidden] { display: none; }
@media (max-width: 900px) { .prose ul.news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .prose ul.news-cards { grid-template-columns: 1fr; gap: 10px; }
  .news-card a { flex-direction: row; }
  .news-thumb { width: 104px; aspect-ratio: auto; min-height: 88px; }
  .news-card-body { padding: 10px 12px; flex: 1; }
}

/* ---------- 協同組合 ---------- */
.merit-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.prose .merit-list li + li { margin-top: 0; }
.merit-list li { background: var(--paper); padding: 14px 18px; border-top: 3px solid var(--tatami); }
.merit-list b { display: block; margin-bottom: 2px; }
.steps-list li { padding-left: 0.3em; }
.steps-list li::marker { font-family: var(--font-display); color: var(--tatami-ink); }

/* ---------- 動画 ----------
   押すまで YouTube を読み込まないので、表紙の画像と再生の印だけを出す。印は勝色の丸、押せる所に畳色の輪 */
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17em), 1fr)); gap: 28px 24px; margin-top: 1.2em; }
.video-list.is-single { grid-template-columns: minmax(0, 30em); }
.video { margin: 0; }
.video-thumb { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--kachi-deep); }
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: var(--kachi); box-shadow: 0 0 0 0 var(--tatami);
  transition: box-shadow 0.15s ease-out;
}
.video-play::after {
  content: ""; position: absolute; left: 24px; top: 19px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.video-thumb:hover .video-play, .video-thumb:focus-visible .video-play { box-shadow: 0 0 0 6px var(--tatami); }
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } }
.video figcaption { margin-top: 10px; display: grid; gap: 2px; }
.video-title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--kachi); }
.video-meta { font-size: var(--fs-sm); color: var(--nibi); font-variant-numeric: tabular-nums; }
.video-note { font-size: 0.9375rem; line-height: 1.7; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-group-lead { color: var(--nibi); }

/* ---------- けがをしたとき ---------- */
/* 先に医療機関へかかるべきサイン。緋色はこの枠にだけ使う */
.warn { background: var(--paper); border-left: 4px solid var(--hi); padding: 16px 20px; }
.warn-title { font-weight: 700; color: var(--hi); }
.prose .warn ul { margin-top: 6px; }
/* RICE: 頭文字を大きく置き、4つの手当てを縦に並べる */
.rice { list-style: none; padding: 0; border-top: 2px solid var(--kachi); }
.prose .rice li + li { margin-top: 0; }
.rice li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rice-key { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--tatami-ink); text-align: center; }
.rice b { display: block; font-size: 1.1rem; }
.rice small { font-size: var(--fs-sm); color: var(--nibi); margin-left: 0.4em; font-weight: 400; }

/* 検索へつなぐ一行 */
.to-find { margin-top: 2.6em; padding: 20px; background: var(--tatami-pale); border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.to-find p { margin: 0; flex: 1 1 16em; }

/* ---------- 年月つきの記録（救護の実績・協定の一覧） ---------- */
.record-table { width: 100%; border-collapse: collapse; }
.record-table th, .record-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.record-table thead th { font-size: var(--fs-sm); color: var(--nibi); border-bottom: 2px solid var(--kachi); }
.record-table tbody th { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tatami-ink); font-family: var(--font-display); }
.record-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.record-table td span { display: block; font-size: 0.9375rem; color: var(--nibi); }

/* 項目の中に置く「くわしく」へのリンク */
.more-in { font-weight: 700; }

/* ---------- フッターのサイト一覧 ---------- */
.foot-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: 24px 32px; padding-bottom: 28px; border-bottom: 1px solid rgb(255 255 255 / 0.16); }
.foot-nav-title { font-family: var(--font-display); color: #fff; font-size: 1rem; }
.foot-nav ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 0.9375rem; }
.foot-nav li { margin-top: 4px; }
.foot-nav a { color: #dfe5ec; text-decoration: none; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 860px) {
  .page-body.has-side { grid-template-columns: 1fr; gap: 28px; }
  .section-nav { position: static; border-left: 0; border-top: 4px solid var(--tatami); padding: 10px 0 0; order: 2; }
  .section-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .section-nav a[aria-current="page"]::before { left: 0; right: 0; top: auto; bottom: 2px; width: auto; height: 3px; }
  .prose { order: 1; }
}
@media (max-width: 560px) {
  .portrait, .portrait.is-small { grid-template-columns: 1fr; }
  .org-table div { grid-template-columns: 1fr; gap: 0; }
  .groups div, .link-list div { grid-template-columns: 1fr; }
  .timeline::before { left: 0.4em; }
  .timeline li { grid-template-columns: 1fr; gap: 0; padding-left: 2em; }
  .timeline li::before { left: calc(0.4em - 5px); top: 1.05em; }
  .tl-year { text-align: left; }
  .fee-table th { width: auto; }
  /* 期間は年度から分かるので、狭い画面では省いて資料のリンクを読みやすくする */
  .report-table th:nth-child(2), .report-table td:nth-child(2) { display: none; }
  .record-table thead { display: none; }
  .record-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .record-table th, .record-table td { border: 0; padding: 0; }
  .record-table tbody th { grid-column: 1 / -1; }
  .rice li { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; }
  .rice-key { font-size: 2rem; }
}

/* ---------- 会員ページ（/kaiin/） ---------- */
.kaiin-gate { max-width: 40em; padding-top: 48px; }
.kaiin-gate > * + * { margin-top: 1em; }
.kaiin-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--tatami);
}
.kaiin-bar p { margin: 0; font-size: 0.9375rem; }
.kaiin-bar [data-kaiin-account] { font-weight: 700; overflow-wrap: anywhere; }
.kaiin-bar .button { font: inherit; font-weight: 700; padding: 6px 14px; cursor: pointer; }
.kaiin-badge { display: inline-block; margin-right: 8px; padding: 1px 8px; background: var(--kachi); color: #fff; font-size: var(--fs-sm); font-weight: 700; }

.kaiin-filter { display: grid; gap: 10px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kaiin-filter-row { display: grid; gap: 4px; }
.kaiin-filter label { font-weight: 700; font-size: 0.9375rem; }
.kaiin-filter input, .kaiin-filter select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--nibi); border-radius: var(--radius-sm); background: var(--paper); color: var(--sumi);
}
.kaiin-filter input:focus-visible, .kaiin-filter select:focus-visible { outline: 3px solid var(--tatami); border-color: var(--kachi); }
.kaiin-filter .note { margin: 0; }
@media (min-width: 720px) { .kaiin-filter { grid-template-columns: 2fr 1fr; align-items: end; } .kaiin-filter .note { grid-column: 1 / -1; } }
.kaiin-years ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9375rem; }
/* 横に並べる一覧は、縦の間を空けない（.prose li + li の間が付くと、最初の1つだけ上にずれる） */
.prose .kaiin-years li + li, .prose .kaiin-toc li + li, .prose .kaiin-doc-toc li + li { margin-top: 0; }

.kaiin-year[hidden], [data-filter-item][hidden] { display: none; }
.prose .kaiin-year h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kaiin-year-count { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--nibi); font-weight: 400; }

.memo-card { margin-top: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); scroll-margin-top: 96px; }
.memo-card:target { outline: 3px solid var(--tatami); }
.memo-card > * + * { margin-top: 8px; }
.memo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: var(--fs-sm); color: var(--nibi); }
.memo-org { padding: 1px 8px; border-radius: 999px; font-weight: 700; color: #fff; background: var(--kachi); }
.memo-org.is-co { background: var(--tatami-ink); }
.prose .memo-card h3 { margin: 4px 0 0; font-size: 1.1rem; }
.memo-digest-label { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--kachi); }
.prose ul.memo-agendas { margin: 2px 0 0; padding-left: 1.2em; }
.prose .memo-agendas li + li { margin-top: 2px; }
.memo-reports { margin: 0; font-size: 0.9375rem; color: var(--nibi); }
.memo-full summary { cursor: pointer; font-weight: 700; color: var(--kachi); }
.memo-full[open] summary { margin-bottom: 8px; }
.memo-full h4 { margin: 12px 0 4px; font-size: 1rem; }
.memo-results { margin: 0; }
.memo-results dt { font-weight: 700; margin-top: 8px; }
.memo-results dd { margin: 2px 0 0 1em; color: var(--sumi); }
.memo-pdf { margin: 0; }

.prose ul.kaiin-posts, .prose ul.kaiin-files, .prose ul.kaiin-latest { list-style: none; padding: 0; }
.kaiin-post, .kaiin-files li, .kaiin-latest li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose .kaiin-post + .kaiin-post, .prose .kaiin-files li + li, .prose .kaiin-latest li + li { margin-top: 0; }
.kaiin-post a, .kaiin-files a, .kaiin-latest a { font-weight: 700; }
.kaiin-post-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 2px; font-size: var(--fs-sm); color: var(--nibi); }
.kaiin-cat { padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); color: var(--nibi); background: var(--shironeri); }
.kaiin-post-excerpt { margin: 4px 0 0; font-size: 0.9375rem; color: var(--nibi); }
.kaiin-kind { margin-left: 8px; font-size: var(--fs-sm); color: var(--nibi); }
.kaiin-latest li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.kaiin-latest time { font-size: var(--fs-sm); color: var(--nibi); }

.kaiin-article { overflow-wrap: anywhere; }
.kaiin-article > * + * { margin-top: 0.9em; }
.kaiin-article img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.kaiin-article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.kaiin-article td, .kaiin-article th { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }

.prose ul.kaiin-shortcuts { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .prose ul.kaiin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose .kaiin-shortcuts li + li { margin-top: 0; }
.kaiin-shortcuts a {
  display: grid; gap: 4px; height: 100%; padding: 16px 18px; text-decoration: none; color: var(--sumi);
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--kachi); border-radius: var(--radius-sm);
}
.kaiin-shortcuts a:hover { border-left-color: var(--tatami); background: var(--shironeri); }
.kaiin-shortcuts b { color: var(--kachi); font-size: 1.1rem; }
.kaiin-shortcuts span { font-size: 0.9375rem; color: var(--nibi); }
.prose .kaiin-toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- 入会の流れ（縦のチャート）・書類と会費の表 ---------- */
.prose ol.flow { list-style: none; padding: 0; counter-reset: flow; margin-top: 1.2em; }
.flow > li {
  counter-increment: flow; position: relative; margin: 0; padding: 0 0 26px 58px;
}
.prose .flow > li + li { margin-top: 0; }
.flow > li::before {
  content: counter(flow); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--kachi); color: #fff; font-family: var(--font-display); font-size: 1.2rem;
}
.flow > li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--tatami); }
.flow > li:last-child::after { display: none; }
.flow > li.is-goal::before { content: "✓"; background: var(--tatami-ink); }
.prose .flow h3, .prose .flow h4 { margin: 6px 0 4px; font-size: 1.15rem; color: var(--kachi); }
.prose .flow h4 { font-size: 1.05rem; }
.flow p { margin: 0; }
.prose ul.flow-notes { list-style: none; padding: 10px 14px; margin: 8px 0 0; background: var(--paper); border-left: 3px solid var(--tatami); font-size: 0.9375rem; }
.flow.is-small > li { padding-left: 50px; padding-bottom: 20px; }
.flow.is-small > li::before { width: 32px; height: 32px; font-size: 1rem; }
.flow.is-small > li::after { left: 15px; top: 36px; }
.prose .flow-branch-title { margin-top: 1.6em; font-size: 1.2rem; }
.flow-branch { padding: 18px 18px 6px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--kachi); border-radius: var(--radius-sm); }
.flow-branch > * + * { margin-top: 1em; }
.flow-branch-lead { margin: 0; }
.prose ul.flow-conditions { list-style: none; padding: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .prose ul.flow-conditions { grid-template-columns: 1fr 1fr; } }
.prose .flow-conditions li + li { margin-top: 0; }
.flow-conditions li { padding: 12px 14px; border: 2px dashed var(--tatami); border-radius: var(--radius-sm); display: grid; gap: 2px; }
.flow-conditions b { color: var(--kachi); }
.flow-conditions span { font-size: 0.9375rem; color: var(--sumi); }

.table-scroll { overflow-x: auto; margin-top: 1em; }
.doc-table, .fee-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 0.9375rem; }
.doc-table caption, .fee-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--kachi); padding: 0 0 6px; font-size: 1rem; }
.doc-table th, .doc-table td, .fee-table th, .fee-table td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.doc-table thead th, .fee-table thead th { background: var(--kachi); color: #fff; font-weight: 700; }
.doc-table tbody th { width: 34%; background: var(--shironeri); font-weight: 700; }
.prose .doc-table ul { margin: 0; padding-left: 1.1em; }
.prose .doc-table li + li { margin-top: 2px; }
.doc-if { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: var(--fs-sm); border-radius: 999px; background: var(--tatami-pale); color: var(--sumi); }
.fee-table { min-width: 30em; }
.fee-table.is-rate { min-width: 0; }
.fee-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-table thead th small { display: block; font-weight: 400; font-size: var(--fs-sm); opacity: 0.9; }
.fee-table tbody th { background: var(--shironeri); font-weight: 400; }
.fee-table tfoot th, .fee-table tfoot td { font-weight: 700; background: var(--tatami-pale); }
.prose ul.note-list { padding-left: 1.2em; font-size: 0.9375rem; color: var(--nibi); }
@media (max-width: 560px) {
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; width: auto; }
  .doc-table tr { border: 1px solid var(--line); margin-bottom: 8px; }
  .doc-table th, .doc-table td { border: 0; }
  .doc-table tbody th { width: auto; }
}

/* ---------- 広報誌「岡山柔整会報」（表紙つき） ---------- */
.prose ul.kaiho-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 720px) { .prose ul.kaiho-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prose .kaiho-list li + li { margin-top: 0; }
.kaiho-list a { display: grid; gap: 2px; text-decoration: none; color: var(--sumi); }
.kaiho-list img {
  width: 100%; height: auto; aspect-ratio: 480 / 679; object-fit: cover; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  box-shadow: 0 6px 16px rgb(23 37 63 / 0.10); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kaiho-list a:hover img { transform: translateY(-3px); box-shadow: 0 10px 22px rgb(23 37 63 / 0.16); }
@media (prefers-reduced-motion: reduce) { .kaiho-list img { transition: none; } .kaiho-list a:hover img { transform: none; } }
.kaiho-no { font-family: var(--font-display); font-size: 1.2rem; color: var(--kachi); text-decoration: underline; text-decoration-color: var(--tatami); text-underline-offset: 3px; }
.kaiho-date { font-size: 0.9375rem; }
.kaiho-size { font-size: var(--fs-sm); color: var(--nibi); }
/* 横に広い表があっても、本文の列は画面の幅に収める（表だけを .table-scroll の中で横に動かす） */
.page-body > *, .prose { min-width: 0; }
@media (max-width: 560px) {
  .doc-table caption { display: block; width: auto; }
}
@media (max-width: 560px) {
  .fee-table { min-width: 0; font-size: 0.8125rem; }
  .fee-table th, .fee-table td { padding: 6px 5px; }
  .fee-table thead th small { font-size: 0.6875rem; }
}

/* ヘッダーの会員ページへの入口（協同組合と事務局の電話番号のあいだ） */
.site-nav a.is-login { padding: 5px 12px; border: 1.5px solid var(--kachi); border-radius: var(--radius-sm); color: var(--kachi); font-weight: 700; }
.site-nav a.is-login:hover { background: var(--kachi); color: #fff; text-decoration: none; }
.menu a.is-login { color: var(--kachi); font-weight: 700; border-top: 1px solid var(--line); }
.site-nav ul { gap: 4px 14px; } /* 会員ログインを足して8項目になったので、1280px でも1行に収まるよう詰める */

/* 理事会メモ：カードから1回ずつのページへ */
.prose .memo-card h3 a { color: var(--sumi); text-decoration: none; }
.prose .memo-card h3 a:hover { color: var(--kachi); text-decoration: underline; }
.memo-more { margin: 0; }
.memo-more a { font-weight: 700; }
.memo-more a::after { content: " →"; }
.memo-facts { margin-top: 1em; }
.memo-summary { padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--kachi); }
.prose .memo-summary h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 1.1rem; }
.memo-source p { margin: 0; }
.prose .memo-source > * + * { margin-top: 0.35em; }
.memo-pager { display: grid; gap: 10px; }
@media (min-width: 720px) { .memo-pager { grid-template-columns: 1fr 1fr; } }
.memo-pager a { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--sumi); }
.memo-pager a:hover { border-color: var(--kachi); }
.memo-pager span { font-size: var(--fs-sm); color: var(--nibi); }
.memo-pager-older { text-align: right; }

/* 理事会メモ・月刊お知らせ：本文の終わりと「前の回／新しい回」のあいだをしっかり空ける */
.prose .memo-pager { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose .memo-fulltext .note { margin-top: 1.5rem; }

/* ---------- 月刊お知らせ（PDF から作り直した紙面） ----------
   目立たせるのは号数の印だけ。紙1枚に見立て、本文の節は畳色の細い線で区切る */
.notice-head { display: flex; align-items: center; gap: 18px; margin-top: 1.4em; }
.notice-seal {
  flex: none; width: 92px; height: 92px; margin: 0; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1.15;
  border: 3px double var(--kachi); color: var(--kachi); background: var(--paper);
  font-family: var(--font-display); transform: rotate(-6deg);
}
.notice-seal span { font-size: 0.75rem; }
.notice-seal b { font-weight: 400; font-size: 1.45rem; }
.notice-kind { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--kachi); }
.notice-date { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--nibi); }
.notice-toc { padding: 12px 16px; background: var(--shironeri); border-left: 4px solid var(--tatami); }
.notice-toc p { margin: 0 0 4px; font-weight: 700; font-size: 0.9375rem; }
.prose .notice-toc ul { margin: 0; padding-left: 1.2em; }
.prose .notice-toc li + li { margin-top: 2px; }
.notice-sheet { padding: clamp(18px, 4vw, 36px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 10px 24px rgb(23 37 63 / 0.06); }
.prose .notice-sheet h2, .prose .guide-article h2 {
  margin-top: 1.8em; padding: 2px 0 2px 12px; border-top: 0; border-left: 4px solid var(--tatami); font-size: 1.2rem; scroll-margin-top: 96px;
}
.prose .notice-sheet h2:first-of-type { margin-top: 1.2em; }
.notice-sheet .pdf-lead { text-align: center; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.3em; color: var(--kachi); }
.notice-sheet .pdf-mark { color: var(--hi); font-weight: 700; }
.pdf-figure { margin: 1.2em 0; }
.pdf-figure img { max-width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }

/* 会員の接骨院の求人 */
.prose .jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.prose .job { border-top: 3px solid var(--kachi); padding-top: 12px; }
.prose .job h3 { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.prose .job h3 span { font-size: var(--fs-sm); font-weight: 400; color: var(--nibi); }
.prose .job-role { margin: 4px 0 8px; font-weight: 700; }
.prose .job-dates { font-size: var(--fs-sm); color: var(--nibi); }
.prose .jobs-empty { padding: 20px; background: var(--tatami-pale); border-radius: var(--radius-sm); }
.job-fields { display: grid; gap: 18px; }
.prose .job h3 .job-status { font-size: var(--fs-sm); font-weight: 700; color: var(--kachi); border: 1.5px solid currentColor; border-radius: var(--radius-sm); padding: 0 6px; }
.prose .job h3 .job-status.is-pending { color: var(--hi); }
.prose .job h3 .job-status.is-rejected, .prose .job h3 .job-status.is-withdrawn { color: var(--nibi); }
.prose .job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .jobs-group + .jobs-group { margin-top: 2em; }
.callout.is-error { border-color: var(--hi); color: var(--hi); }
button.button:not(.is-ghost) { font: inherit; border: 0; cursor: pointer; }

/* 書式・資料の分類の目次 */
.prose .kaiin-doc-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prose .kaiin-doc-toc a { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border: 1.5px solid var(--kachi); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; }
.prose .kaiin-doc-toc a:hover { background: var(--tatami-pale); }
.prose .kaiin-doc-toc span { font-weight: 400; font-size: var(--fs-sm); color: var(--nibi); }

/* アクセスの地図（Google マップの埋め込み） */
.prose .map-embed { margin: 1.2em 0 0; }
.prose .map-embed iframe { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* お知らせの記事 */
.news-date { color: var(--nibi); font-variant-numeric: tabular-nums; margin-bottom: 1em; }
.is-news .prose img { display: block; max-width: 100%; height: auto; margin: 1em 0; border-radius: 4px; }
