/* 宗内ポータル: the look designed on 2026-10-20 (warm paper, ink, deep green; Mincho headings). */
:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --paper-2: #efece4;
  --card: #fbfaf7;
  --ink: #2a2a27;
  --ink-soft: #55534d;
  --muted: #67645c;  /* 2026-11-08 照らし合わせ ア：前の色は小さな字で地との差 3.56〜4.28 → どの地でも 4.7 以上 */
  --line: #dcd8ce;
  --line-strong: #c9c4b8;
  --field-line: #8a857a;  /* 入力欄・選ぶ欄・書く欄の枠（地との差 3 以上、2026-11-08 照らし合わせ 17） */
  --green: #3e5b4e;
  --green-dark: #34503f;
  --green-soft: #e3e9e3;
  --red: #b4473b;
  --tag-shumu-bg: #dfe6df; --tag-shumu: #4b6858;
  --tag-kenshu-bg: #ece4d4; --tag-kenshu: #6e5a3c;
  --tag-todoke-bg: #dde5ec; --tag-todoke: #4c6782;
  /* 段1（2026-11-06、夜の色の設計 v0.1）: :root の外に直接書いていた色の名前。値は昼の色そのもの。夜の値は下の夜の調子で。 */
  --on-green: #f5f2ea;  /* 緑の地の上の字 */
  --on-green-white: #fff;  /* 緑の地の上の字（白） */
  --on-green-avatar: #f4f1ea;  /* お寺の丸の上の印 */
  --on-green-dim: #dfe8e2;  /* 緑の地の上の添えの字 */
  --on-green-sub: rgba(255, 255, 255, .78);  /* 緑の地の上の小さな字 */
  --on-green-sub2: rgba(255, 255, 255, .8);  /* 緑の地の上の小さな字 */
  --on-green-tint: rgba(255, 255, 255, .1);  /* 緑の地の上の薄い面 */
  --on-green-tint2: rgba(255, 255, 255, .16);  /* 緑の地の上の薄い面 */
  --on-green-tint3: rgba(255, 255, 255, .2);  /* 緑の地の上の薄い面 */
  --green-underline: rgba(62, 91, 78, .35);  /* リンクの下線 */
  --green-line: #cfdad1;  /* 緑の枠 */
  --green-line-2: #c5d3c8;  /* 緑の枠 */
  --green-line-3: #bfcfc3;  /* 緑の枠 */
  --green-soft-2: #f3f6f1;  /* まだ読んでいない知らせの面 */
  --attention-bg: #e6e9e2;  /* ホームの「お知らせあり」の帯 */
  --red-fill: #b4473b;  /* 朱の地（上の字は白） */
  --on-red: #fff;  /* 朱の地の上の字 */
  --badge: #c43f33;  /* 数の丸（朱）。上の白い字との差 5.1（前の #d4483c は 4.4） */
  --pdf-mark: #c64a3a;  /* PDF の印 */
  /* 資料庫の印の色（2026-11-27、分類ごと。宗報は --pdf-mark） */
  --doc-rule: #3b5a7a; --doc-form: #3e6b54; --doc-guide: #9a6a2c; --doc-minutes: #5f6670; --doc-assembly: #6a4c7a; --doc-research: #2f6f6a; --doc-other: #7a756b;
  --red-ink: #8a3a2f;  /* 朱の字 */
  --red-ink-2: #8a3b2b;  /* 朱の字（直すところの一覧） */
  --red-ink-3: #9a3b2f;  /* 朱の字（書くところの「必須」） */
  --red-line: #d9b3ad;  /* 朱の枠 */
  --red-line-2: #e3bdb5;  /* 朱の枠 */
  --red-soft: #f6e3df;  /* 朱の薄い面 */
  --red-soft-2: #f8ece9;  /* 朱の薄い面 */
  --red-soft-3: #fbf1ee;  /* 朱の薄い面（待つ行） */
  --alert-bg: #f6e7e3;  /* 上の知らせの行 */
  --alert-ink: #7c2e24;  /* 上の知らせの行の字 */
  --gold-ink: #7d6227;  /* 下書きの字（地との差 4.7 以上、前の #8a6d2c は 4.0〜4.7） */
  --gold-ink-2: #7a5a22;  /* 金茶の字 */
  --gold-ink-3: #8a5a2b;  /* 手で書く印の字 */
  --gold-soft: #f6efe0;  /* 金茶の薄い面 */
  --gold-line: #e0d2b4;  /* 金茶の枠 */
  --tag-todoke-line: #c4d0dc;  /* 届出の札の枠 */
  --tag-kenshu-line: #dccdb2;  /* 研修の札の枠 */
  --tag-other-bg: #e7e5df;  /* そのほかの札 */
  --tag-other: #5d5a52;  /* そのほかの札の字 */
  --panel: #ece8df;  /* 一段沈んだ面 */
  --footer: #e9e5dc;  /* フッターの地 */
  --highlight: #eadfbf;  /* 検索で当たった字の印 */
  --tint-03: rgba(0, 0, 0, .03);  /* 書くところの決まった欄の面 */
  --sheet-mark: #67645c;  /* 紙（書式のサムネイル）の上の小さな字。紙は夜も明るいので、昼も夜も同じ濃い灰色 */
  --sheet: #fff;  /* 宗報の表紙の台（表紙の絵はこの台と掛け合わせて刷ったように見せるので、夜も紙の色） */
  --guide-sheet: #fff;  /* 案内状（印刷する紙。画面の夜は暗く、印刷はいつも白） */
  --crest-gold: #c98910;  /* 寺紋の金 */
  --crop-frame: #23241f;  /* 切り抜きの窓の地 */
  --crop-ink: #ebe7df; --crop-ink-soft: #b9b4aa; --crop-hover: rgba(235, 231, 223, .06);  /* その上の字と、押せる所 (2026-11-27) */
  --band-1: #f0ede6;  /* ホームの帯の地 */
  --band-2: #ebe7df;  /* ホームの帯の地 */
  --band-3: #e6e1d7;  /* ホームの帯の地 */
  --band-fade-85: rgba(235, 231, 223, .85);  /* 帯の写真のぼかし */
  --band-fade-82: rgba(235, 231, 223, .82);  /* 帯の写真のぼかし */
  --band-fade-10: rgba(235, 231, 223, .1);  /* 帯の写真のぼかし */
  --band-fade-0: rgba(235, 231, 223, 0);  /* 帯の写真のぼかし */
  --band-chip-55: rgba(255, 255, 255, .55);  /* 帯の上のボタンの面 */
  --band-chip-70: rgba(255, 255, 255, .7);  /* 帯の小さな写真の札 */
  --notice-bg: #fff7e3;  /* 時間切れ前の知らせ */
  --notice-line: #d9a441;  /* 時間切れ前の知らせの枠 */
  --notice-ink: #5c4100;  /* 時間切れ前の知らせの字 */
  --notice-button-line: #9a6a10;  /* 時間切れ前の知らせのボタンの枠 */
  --notice-button-bg: #fff;  /* 時間切れ前の知らせのボタン */
  --on-swatch: #fff;  /* 組織図の見出し（部署の色）の上の字 */
  --about-unit-bg: #fff;  /* 組織図の箱 */
  --shadow-03: rgba(0, 0, 0, .03);  /* 影 */
  --shadow-12: rgba(0, 0, 0, .12);  /* 影 */
  --shadow-14: rgba(0, 0, 0, .14);  /* 影 */
  --shadow-warm-06: rgba(50, 40, 20, .06);  /* 影 */
  --shadow-warm-08: rgba(50, 40, 20, .08);  /* 影 */
  --shadow-warm-45: rgba(50, 40, 20, .45);  /* 影 */
  --shadow-warm-55: rgba(50, 40, 20, .55);  /* 影 */
  --shadow-warm-60: rgba(50, 40, 20, .6);  /* 影 */
  --shadow-card-05: rgba(40, 35, 20, .05);  /* 影 */
  --shadow-card-50: rgba(40, 35, 20, .5);  /* 影 */
  --shadow-card-55: rgba(40, 35, 20, .55);  /* 影 */
  --shadow-deep-08: rgba(30, 26, 18, .08);  /* 影 */
  --shadow-deep-25: rgba(30, 26, 18, .25);  /* 影 */
  --shadow-deep-60: rgba(30, 26, 18, .6);  /* 影 */
  --ask-shade: rgba(20, 20, 18, .45);  /* 確かめの窓のまわりの陰 */
  --shadow-deep-70: rgba(30, 26, 18, .7);  /* 影 */
  --backdrop-38: rgba(28, 28, 24, .38);  /* メニューの後ろの覆い */
  --backdrop-50: rgba(28, 28, 24, .5);  /* 窓の後ろの覆い */
  /* 宗門概要の組織図・護持企業などの札の色: 塗り（上の字は白）と、字の色（昼は同じ。夜は字の色だけ明るく）。 */
  --about-ink: #262624; --about-ink-t: #262624;
  --about-gray: #5b5a56; --about-gray-t: #5b5a56;
  --about-navy: #2c3678; --about-navy-t: #2c3678;
  --about-green: #1e6a44; --about-green-t: #1e6a44;
  --about-purple: #5a3a84; --about-purple-t: #5a3a84;
  --about-slate: #2f4853; --about-slate-t: #2f4853;
  --about-vermilion: #bf523c; --about-vermilion-t: #bf523c;
  --logo-tile: transparent;  /* 護持企業などのロゴの台（昼はなし。夜は白い台） */
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  /* 空き (2026-10-29, 「セクション毎の空白が狭いので窮屈でありみづらい」): one room between the parts a heading divides a page
     into, and one between a heading and what it heads (they had been 26・34・44px, part by part). */
  --section-gap: 56px;
  --head-gap: 14px;
}
@media (max-width: 760px) {
  :root { --section-gap: 44px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }


/* Header */
/* One width and one left edge (2026-10-26, デザインの見直し 案2): the band, the menu, the home page, every page's band and
   words and the foot are all at most 1180px with 40px each side (the band had started at 72px, the home page at 60px and
   the other pages at 133px, so that moving to a page moved its words but not the logo). */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { max-width: 1180px; margin: 0 auto; padding: 16px 40px 8px; display: flex; align-items: center; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 auto; }
.site-mark { width: 48px; height: 48px; flex: none; display: block; }
.site-title { font-size: 32px; letter-spacing: .06em; white-space: nowrap; flex: none; }
.site-tagline { margin-left: 16px; font-size: 16px; color: var(--ink-soft); letter-spacing: .08em; white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 20px; flex: none; }
.site-search { display: flex; align-items: center; gap: 12px; width: 214px; height: 40px; padding: 0 16px;
  border: 1px solid var(--field-line); border-radius: 4px; background: var(--paper-2); color: var(--ink-soft); }
.site-search svg { width: 18px; height: 18px; flex: none; }
.site-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 14px var(--serif); color: var(--ink); }
.site-search input:focus { outline: none; }
.site-search:focus-within { border-color: var(--green); }
.header-divider { width: 1px; height: 32px; background: var(--line-strong); }
.temple-menu { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 4px; cursor: pointer;
  font: 18px var(--serif); color: var(--ink); }
.temple-menu-name { white-space: nowrap; max-width: 15em; overflow: hidden; text-overflow: ellipsis; }
.temple-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--on-green-avatar); }
.temple-avatar svg { width: 18px; height: 18px; }

.site-nav { max-width: 1180px; margin: 0 auto; padding: 0 40px; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { position: relative; padding: 16px 8px 12px; font-size: 16px; letter-spacing: .06em; white-space: nowrap; color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--green); }
.site-nav a:hover { color: var(--green); }
/* 職員の入口 (2026-10-26, 案1): 受付・載せる・管理 at the right end with their icons, after the pages every member reads; a
   宗務本院担当's ten items fit in the row (載せる・管理 had been cut off at the right of a 1366px screen). */
@media (min-width: 1181px) {
  #nav-review:not([hidden]), #nav-review[hidden] + #nav-manage { margin-left: auto; }
  .site-nav #nav-review .nav-icon, .site-nav #nav-manage .nav-icon { display: block; width: 16px; height: 16px; color: var(--green); }
  #nav-review, #nav-manage { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
}
#nav-review, #nav-manage { color: var(--green-dark); }
#nav-review:hover, #nav-manage:hover { color: var(--green); }

/* Hero */
.hero { position: relative; min-height: 204px;
  background: linear-gradient(90deg, var(--band-1) 0%, var(--band-2) 45%, var(--band-3) 100%); overflow: hidden; }
/* The words start on the same line as the header and the menu (max 1180px, centred); the photo keeps the right half
   of the screen however wide it is (2026-10-22: on wide screens the words had stayed at the window's left edge). */
.hero-text { position: relative; z-index: 1; box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 36px 40px 28px; }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0; font-size: 18px; letter-spacing: .3em; color: var(--ink-soft); }
.hero-eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--ink-soft); }
.hero h1 { margin: 2px 0 0; font-weight: 500; font-size: clamp(34px, 3.6vw, 56px); letter-spacing: .06em; line-height: 1.3; white-space: nowrap; }
/* The date above the title (2026-11-08 「日付をタイトルの上に」). */
.hero-date { margin: 12px 0 0; font-size: 18px; color: var(--ink-soft); letter-spacing: .04em; }
/* 写真（2026-10-20 ご提供）: faded into the paper on the left, as in the design. */
.hero-image { position: absolute; top: 0; right: 0; bottom: 0; left: 50%; background:
    linear-gradient(90deg, var(--band-2) 0%, var(--band-fade-85) 12%, var(--band-fade-0) 42%),
    url("/static/portal/hero.jpg") center 42% / cover no-repeat; }

/* Page */
.page { max-width: 1180px; margin: 0 auto; padding: 8px 40px 40px; }
.attention { display: flex; align-items: center; gap: 24px; margin: 8px 2px 28px; padding: 8px 24px; background: var(--attention-bg); border-radius: 3px; }
.attention-tag { padding: 3px 16px; border-radius: 3px; background: var(--red-fill); color: var(--on-red); font: 12px var(--sans); letter-spacing: .06em; }
.attention-text { flex: 1; padding-left: 24px; border-left: 1px solid var(--line-strong); font-size: 16px; letter-spacing: .06em; }
.more-link { white-space: nowrap; font-size: 13px; letter-spacing: .1em; color: var(--ink-soft); }
.more-link:hover, a:hover .more-link { color: var(--green); }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }  /* in 1100px (2026-10-26) */
/* No rule between the two columns (2026-11-08 「ここ右の縦線いらないかも」); the side keeps its 22px so it lines up with
   直近の行事・研修 above it. */
.column-side { position: relative; padding-left: 24px; }
/* 案A 段3 (2026-11-07, 「お寺がアカウントの人が迷わず使えるように」): よく使う手続き and 提出・確認状況 under 要確認, over the
   two columns and as wide as they are (the 提出・確認状況 where the side column's words begin). */
.home-do { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; margin-bottom: var(--section-gap); }
/* 2026-11-08 「確認状況ですが、直近の行事・研修と並びを入れ替えましょう」: 直近の行事・研修 here, 確認状況 in the side column. */
.home-do > .home-events { margin-left: 24px; }
.home-events > .section-head { margin-top: 0; }
.home-tasks > .section-title { margin-top: 0; }

/* 見出しの決まり (2026-10-26, デザインの見直し 案3): a heading that divides a page is as the 宗報's years — wide letters
   and a fine line running to the right (no line under the heading, no short dash). 21px since 2026-10-29 (「見出しの文字が
   大きいかな」, every page alike), the line to the right end and 「すべて見る →」 under the part at its right (「右下に置いて
   いい」). */
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: var(--head-gap); }
.section-head::after, .section-title::after, .library-head::after, .sponsors-head::after { content: ""; order: 1; flex: 1 1 24px;
  min-width: 24px; height: 1px; align-self: center; background: var(--line-strong); }
.section-head h2, .section-title { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: .1em; }
.section-title { display: flex; align-items: baseline; gap: 8px 12px; margin: 28px 0 var(--head-gap); }
/* 「すべて見る →」「バックナンバーへ →」: under the part, at the right edge of what it lists (the rows of お知らせ and 行事 keep
   a little room inside, so the arrow stands over their 「›」). */
.section-more { display: flex; justify-content: flex-end; margin: 12px 0 0; }
.news-list + .section-more { padding-right: 12px; }
.event-list + .section-more { padding-right: 8px; }
/* The parts of the home page, one room apart, and half that room under the photo band (it had been 8px). */
.column-main > section + section, .column-side > section + section, .library, .sponsors { margin-top: var(--section-gap); }
.hero + .page { padding-top: calc(var(--section-gap) / 2); }
.column-main > section > .section-title:first-child { margin-top: 0; }
.section-title > small { margin-left: 0; }  /* 「公開中」「任意」: the heading's gap is their room */

.news-list { list-style: none; margin: 0 0 8px; padding: 0; }
.news-list a { display: grid; grid-template-columns: 112px 62px minmax(0, 1fr) 20px; align-items: center; gap: 20px;
  padding: 16px 12px; border-bottom: 1px solid var(--line); }
.news-list a:hover { background: var(--paper-2); }
.news-list time { font-size: 16px; color: var(--ink-soft); letter-spacing: .04em; }
.tag { display: inline-block; text-align: center; padding: 3px 0; border-radius: 3px; font: 12px var(--sans); letter-spacing: .06em; }
.tag-shumu { background: var(--tag-shumu-bg); color: var(--tag-shumu); }
.tag-kenshu { background: var(--tag-kenshu-bg); color: var(--tag-kenshu); }
.tag-todoke { background: var(--tag-todoke-bg); color: var(--tag-todoke); }
.news-title { font-size: 16px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-chevron { font-size: 20px; line-height: 1; color: var(--ink-soft); text-align: right; }

.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }  /* every tile as tall (2026-11-07) */
/* 「宗務へのお問い合わせ」 on one line in the 1100px page (2026-10-26). */
.task-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: center; gap: 16px; min-height: 78px;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 3px;
  font-size: 18px; letter-spacing: .05em; }
.task-card svg { width: 34px; height: 34px; color: var(--green); stroke-width: 1.3; }
.task-card:hover { border-color: var(--green); }
/* The tile is named as the page it opens; under the name, what one does there (2026-11-07, 案A 段2). */
.task-name small { display: block; margin-top: 3px; font-size: 13px; letter-spacing: .04em; line-height: 1.5; color: var(--ink-soft); }

.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { border-bottom: 1px solid var(--line); }
/* The whole row is the link (2026-10-26, 案4: only 「詳細を見る →」 could be pressed, a お知らせ's whole row). */
.event-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 20px; align-items: center; gap: 24px; padding: 12px 8px 12px 0; }
.event-row:hover { background: var(--paper-2); }
.event-date { margin: 0; text-align: center; padding-right: 20px; border-right: 1px solid var(--line-strong); }
.event-date span { display: block; font-size: 28px; letter-spacing: .02em; line-height: 1.2; }
.event-date small { font-size: 14px; color: var(--ink-soft); }
.event-body p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.event-body .event-title { font-size: 18px; color: var(--ink); letter-spacing: .06em; margin-bottom: 2px; }

.status-box { padding: 16px 16px 16px; background: var(--panel); border-radius: 3px; }
.status-box h2 { margin: 0 0 12px; font-weight: 500; font-size: 18px; letter-spacing: .1em; }
.status-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 18px; align-items: center; gap: 20px;
  padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 16px; letter-spacing: .08em; }
.status-row svg { width: 22px; height: 22px; }
.status-count { font-size: 18px; }
.status-count small { font-size: 14px; margin-left: 2px; }
.status-waiting { color: var(--red); }
/* 申請・届出の受付を閉めている間 (0177): the home's 提出・確認状況 says so in one line. */
.status-closed { margin: 4px 2px 8px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }

.library-head { display: flex; align-items: baseline; gap: 8px 16px; margin-bottom: var(--head-gap); }
.library-head h2 { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: .1em; }
.library-head p { margin: 0; font: 13px var(--sans); color: var(--muted); letter-spacing: .04em; }
.dark-button { display: inline-flex; align-items: center; gap: 16px; padding: 8px 36px; background: var(--green); color: var(--on-green);
  border-radius: 3px; font-size: 16px; letter-spacing: .1em; }
.dark-button:hover { background: var(--green-dark); }
.library-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.library-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; align-items: center; gap: 20px; padding: 12px 24px 12px 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: 3px; }
.library-list a:hover { border-color: var(--green); }
.pdf-icon { display: grid; place-items: end center; width: 26px; height: 32px; padding-bottom: 4px; background: var(--pdf-mark); color: var(--on-red);
  font: 700 8px var(--sans); clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%); }
/* 資料庫の印の色 (2026-11-27 「ジャンルごとに色分けして欲しい。色に関してはお任せ」): one colour a 分類, deep enough for the
   white letters; 宗報 keeps the 朱 of before. 0201: the colour is the 分類's own (掲載・管理の「資料の分類」で選ぶ8色). */
.doc-color-NAVY { --doc-c: var(--doc-rule); }          /* 藍（規程） */
.doc-color-GREEN { --doc-c: var(--doc-form); }         /* 緑（書式） */
.doc-color-GOLD { --doc-c: var(--doc-guide); }         /* 金茶（手引き） */
.doc-color-VERMILION { --doc-c: var(--pdf-mark); }     /* 朱（宗報） */
.doc-color-SLATE { --doc-c: var(--doc-minutes); }      /* 鈍色（議事録） */
.doc-color-PURPLE { --doc-c: var(--doc-assembly); }    /* 紫（宗会資料） */
.doc-color-TEAL { --doc-c: var(--doc-research); }      /* 青緑（研究資料） */
.doc-color-GRAY { --doc-c: var(--doc-other); }         /* 灰（その他） */
.pdf-icon[class*="doc-color-"] { background: var(--doc-c); }
/* すべて: each 分類 under its own heading, its newest six, 「…をすべて見る →」 under it when there are more. */
.library-group + .library-group { margin-top: 32px; }
.library-group-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 12px; font-weight: 500; font-size: 18px; letter-spacing: .1em; }
.library-group-title svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.library-group-title small { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.file-meta { display: grid; min-width: 0; }
.file-name { font-size: 14px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.download { width: 20px; height: 20px; color: var(--ink-soft); }

.site-footer { padding: 24px 16px 32px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* Narrower screens */
@media (max-width: 1180px) {
  .header-row, .site-nav { padding-left: 24px; padding-right: 24px; }
  .site-tagline { display: none; }
  .page { padding: 8px 24px 32px; }
  .columns { grid-template-columns: 1fr; gap: var(--section-gap); }
  .column-side { padding-left: 0; }
  .home-do { grid-template-columns: 1fr; gap: var(--section-gap); }  /* よく使う手続き, then 直近の行事・研修 (2026-11-08) */
  .home-do > .home-events { margin-left: 0; }
  .hero-text { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 12px; padding: 12px 16px 4px; }
  .site-title { font-size: 24px; }
  .site-mark { width: 38px; height: 38px; }
  .header-tools { width: 100%; gap: 12px; }
  .site-search { flex: 1; width: auto; min-width: 0; }
  .site-search input { width: 100%; }
  .header-divider { display: none; }
  .temple-menu { font-size: 16px; }
  .site-nav { padding: 0 16px; gap: 24px; }
  .site-nav a { font-size: 16px; }
  .hero { min-height: 0; }
  .hero-image { position: absolute; inset: 0 0 0 55%; opacity: .55; }
  .hero-text { padding: 24px 16px 24px; }
  .hero-eyebrow { font-size: 14px; letter-spacing: .2em; }
  .hero h1 { font-size: 28px; white-space: normal; }
  .hero-date { font-size: 16px; }
  .page { padding: 8px 16px 28px; }
  .attention { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .attention-text { padding-left: 12px; font-size: 14px; }
  .section-head h2, .section-title { font-size: 20px; }
  .news-list + .section-more { padding-right: 4px; }
  .news-list a { grid-template-columns: auto auto minmax(0, 1fr) 14px; gap: 12px; padding: 12px 4px; }
  .news-list time { font-size: 13px; }
  .tag { padding: 2px 8px; }
  .news-title { font-size: 16px; white-space: normal; }
  .task-grid { grid-template-columns: 1fr; gap: 12px; }
  .task-card { min-height: 64px; padding: 12px 16px; font-size: 16px; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 16px; }
  .task-card svg { width: 32px; height: 32px; }
  .event-row { grid-template-columns: 72px minmax(0, 1fr) 14px; gap: 16px; }
  .event-date span { font-size: 24px; }
  .library-head { flex-wrap: wrap; }
  .library-head h2 { font-size: 20px; }
  .library-list { grid-template-columns: 1fr; gap: 12px; }
  .library-list a { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- 第1段: lists, details, forms and the 載せる・管理 screens (same paper, ink and green) ---- */
[hidden] { display: none !important; }
.notice-line { max-width: 1100px; margin: 12px auto 0; padding: 12px 16px; background: var(--alert-bg); color: var(--alert-ink); border-radius: 3px; font-size: 14px; }
.notice-line.notice-info { background: var(--green-soft); color: var(--green-dark); }
/* 押した場所の近くに (声 FB-005, portal.js say): the same line right under the pressed button's row, a row of its own in a list. */
.notice-line.near-note { max-width: none; margin: 12px 0 0; flex-basis: 100%; grid-column: 1 / -1; scroll-margin-bottom: 16px; }
:is(ul, ol) > li.near-note-row { display: block; grid-column: 1 / -1; list-style: none; margin: 0; padding: 0 0 8px; border: 0; background: none; }
tr.near-note-row > td { padding-top: 0; border-top: 0; }
/* 移った先の知らせ (2026-11-09, portal.js sayInPage): at the top of the opened page's first box, above what it holds. */
.notice-line.in-page-note { margin: 0 0 16px; }
.state-panel { max-width: 640px; margin: 64px auto; padding: 32px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.state-panel h1 { margin: 0 0 12px; font-weight: 500; font-size: 28px; letter-spacing: .1em; }
.page-inner { max-width: 1100px; padding-top: 24px; }
.crumb { margin: 0 0 8px; font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.page-inner h1 { margin: 0; font-weight: 500; font-size: 32px; letter-spacing: .1em; }
.page-lead { margin: 12px 0 8px; color: var(--ink-soft); font-size: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
/* 絞り込みのボタン: corners as the boxes' 6px (2026-10-29, 「丸いボタンの角丸をコンテナと同じくらいに」; they had been round). */
.chip { padding: 4px 16px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; letter-spacing: .06em; background: var(--card); }
.chip-on { background: var(--green); border-color: var(--green); color: var(--on-green); }
.tag-other { background: var(--tag-other-bg); color: var(--tag-other); }
.empty { margin: 16px 4px; color: var(--muted); font-size: 14px; }
li.empty { list-style: none; }
.count { margin: 12px 0 8px; color: var(--muted); font-size: 13px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 20px 0; font-size: 14px; color: var(--ink-soft); }
.plain-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 3px;
  background: var(--card); color: var(--ink); font: 14px var(--serif); cursor: pointer; letter-spacing: .04em; }
.plain-button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
/* 押せないとき (2026-11-08 照らし合わせ イ): not only faint — a dashed edge and grey words, so it reads as 押せない, not as broken */
.plain-button:disabled { border-style: dashed; background: transparent; color: var(--muted); cursor: not-allowed; }
.pager-off { visibility: hidden; }  /* 最初のページの前へ・最後のページの次へ: their place kept, the button not shown */
.plain-button.strong { border-color: var(--green); color: var(--green); }
.dark-button { border: 0; cursor: pointer; font-family: var(--serif); }
.dark-button.small { padding: 8px 20px; font-size: 14px; }
.library-list-wide { margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.file-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; align-items: center; gap: 20px; width: 100%; padding: 12px 24px 12px 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: 3px; text-align: left; font-family: var(--serif); color: var(--ink); cursor: pointer; }
.file-row:hover { border-color: var(--green); }
.file-row-plain { display: block; padding: 12px 16px; }
.download-mark { font-size: 18px; color: var(--ink-soft); text-align: right; }
.library-list li { list-style: none; }
.inline-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.inline-search input, .inline-search select, .field input, .field select, .field textarea, .other-link-row input {
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--card);
  font: 16px var(--serif); color: var(--ink); }
.inline-search input { flex: 1; min-width: 200px; }
.inline-search > .field { flex: 1; min-width: 200px; }  /* a box with its name over it (照らし合わせ ウ) */
.inline-search > .field input { width: 100%; }
.inline-search:has(> .field) { align-items: flex-end; }
.table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; background: var(--card); }
.table th, .table td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-weight: 600; color: var(--ink-soft); background: var(--paper-2); letter-spacing: .06em; }
.table td a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * + * { margin-left: 8px; }
.status { font-size: 13px; }
.status-published { color: var(--green); font-weight: 600; }
.status-draft { color: var(--gold-ink); }
.status-archived { color: var(--muted); }
.detail-head { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.detail-head h1 { margin: 8px 0 8px; font-size: 28px; }
.detail-meta { margin: 0; color: var(--ink-soft); font-size: 14px; letter-spacing: .06em; }
.body-text p { margin: 0 0 1.1em; font-size: 16px; line-height: 1.9; }
.facts { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px 20px; margin: 0 0 24px; padding: 16px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: 3px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.muted { color: var(--muted); }
.back-row { margin-top: 28px; }
.mine-box { margin-top: 24px; padding: 16px 20px; background: var(--panel); border-radius: 3px; }
.mine-box .section-title { margin-top: 0; font-size: 18px; }
.coming-soon { margin: 8px 0 0; padding: 12px 16px; background: var(--card); font-size: 14px; color: var(--ink-soft); }
.form-list { columns: 2; column-gap: 32px; padding-left: 0; list-style: none; }
.form-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.form-no { display: inline-block; min-width: 7.5em; color: var(--green); }
.plain-list { list-style: none; padding: 0; margin: 12px 0; }
.plain-list li { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.unit-row { display: flex; gap: 12px; align-items: center; }
.unit-row input { flex: 1; min-height: 38px; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--card);
  font: 16px var(--serif); color: var(--ink); }  /* the box's own paper, as every field (the night's default was lighter) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; border-bottom: 1px solid var(--line-strong); }
.tab { padding: 8px 16px; border: 1px solid transparent; border-bottom: 0; font-size: 16px; letter-spacing: .06em; border-radius: 3px 3px 0 0; }
.tab-on { background: var(--card); border-color: var(--line-strong); margin-bottom: -1px; font-weight: 600; }
.manage-top { display: flex; justify-content: flex-end; margin: 16px 0 4px; }
.editor { max-width: 760px; display: grid; gap: 16px; margin-top: 12px; }
.field { display: grid; gap: 8px; }
.field-label { font-size: 14px; color: var(--ink-soft); letter-spacing: .06em; }
.field-hint { font-size: 12px; color: var(--muted); }
.field-optional { margin-left: 8px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 12px; font-weight: normal; color: var(--muted); letter-spacing: .04em; vertical-align: 1px; }
.quiet-tag { margin-left: 12px; font-size: 12px; font-weight: normal; color: var(--muted); letter-spacing: .04em; }
.quiet-tag.status-published { color: var(--green); }
.quiet-tag.status-draft { color: var(--gold-ink); }
.check-note { font-size: 12px; color: var(--muted); }
.field textarea { line-height: 1.7; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; font-size: 16px; }
.audience { border: 1px solid var(--line-strong); border-radius: 3px; padding: 12px 16px 16px; background: var(--card); }
.audience legend { padding: 0 8px; font-size: 14px; color: var(--ink-soft); }
.unit-checks { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 0 28px; }
.form-actions { display: flex; gap: 12px; align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.check-list li { padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.check-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
/* お寺を選ぶ欄 (2026-10-30, 声 FB-001): 山号＋寺名, and 教区・所在地 small under it, as the site search's 寺院情報. */
.picker-temple { min-width: 0; }
.picker-temple b { display: block; font-weight: 500; letter-spacing: .04em; }
.picker-temple small { display: block; font-size: 12px; color: var(--muted); }
.picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.picked .chip { cursor: pointer; font: 13px var(--serif); color: var(--ink); }
.form-status { min-height: 1.5em; margin: 0; font-size: 14px; color: var(--ink-soft); }
.temple-menu-wrap { position: relative; }
.search-section { margin-top: 20px; }
@media (max-width: 760px) {
  .page-inner h1 { font-size: 24px; }
  .library-list-wide { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  .form-list { columns: 1; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 8px 8px; }
}

/* ---- 各ページ（2026-10-20 見直し）: the home page's band, cards and icons carried to every page ---------------- */
.page-banner { position: relative; overflow: hidden; background: var(--band-2); border-bottom: 1px solid var(--line); }
.page-banner::after { content: ""; position: absolute; inset: 0 0 0 46%;
  background: linear-gradient(90deg, var(--band-2) 0%, var(--band-fade-82) 18%, var(--band-fade-10) 60%),
    url("/static/portal/hero.jpg") center 42% / cover no-repeat; }
.page-banner[data-photo="b"]::after { background-position: 0 0, center 70%; }
.page-banner[data-photo="c"]::after { background-position: 0 0, right 30%; }
.page-banner[data-photo="d"]::after { background-position: 0 0, left 55%; }
.page-banner[data-photo="e"]::after { background-position: 0 0, center 20%; }
.banner-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 32px 40px 32px; display: flex;
  align-items: center; gap: 24px; min-height: 164px; }
.page-banner-slim .banner-inner { min-height: 112px; padding-top: 20px; padding-bottom: 20px; }
.banner-icon { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--green); }
.banner-icon svg { width: 32px; height: 32px; stroke-width: 1.3; }
.banner-text { min-width: 0; max-width: 660px; }
.banner-text .crumb { margin: 0 0 4px; }
.page-banner h1, .banner-title { margin: 0; font-weight: 500; font-size: 36px; letter-spacing: .12em; line-height: 1.35; }
.page-banner-slim .banner-title, .page-banner-slim h1 { font-size: 28px; }
.banner-lead { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; letter-spacing: .04em; }

.page-inner { max-width: 1180px; padding-top: 28px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.page-main { min-width: 0; }
.page-main > .filters { margin: 0 0 16px; justify-content: flex-start; }
.page-aside { display: grid; gap: 20px; }

.panel-box { background: var(--card); border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 28px 16px; }
.panel-box + .panel-box { margin-top: 20px; }
.panel-box .inline-search { margin: 12px 0 8px; }
.box-title { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; font-weight: 500; font-size: 20px; letter-spacing: .1em; }
.box-title svg { width: 22px; height: 22px; color: var(--green); }
.box-count { margin-left: auto; font: 13px var(--sans); color: var(--muted); letter-spacing: .06em; }
/* A month over お知らせ・行事 (2026-10-26, 案4) as a year over the 宗報's covers: a fine line to the right; 18px, under the
   21px of a page's parts (2026-10-29). */
.month-head { list-style: none; display: flex; align-items: center; gap: 16px; margin: 32px 0 2px; padding: 0; font-size: 18px;
  letter-spacing: .1em; color: var(--ink); }
.month-head::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.month-head:first-child { margin-top: 4px; }
.event-list li.month-head { border-bottom: 0; }
.news-list-page a { padding-left: 8px; padding-right: 8px; }
.panel-box .news-list, .panel-box .event-list { margin-bottom: 0; }
.panel-box .news-list li:last-child a, .panel-box .event-list li:last-child { border-bottom: 0; }

.aside-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px 20px; }  /* lighter than the page's own words (2026-10-26) */
.aside-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-bottom: 12px; font-weight: 500; font-size: 18px;
  letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.aside-card h2 svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.aside-card p { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
/* 右の欄の枠 (2026-10-29, 「もう少し凝ったデザインに」): the heading's mark in a soft green round (on phones too) with a short
   green line under the heading; a list as rows to press, each ending in 「›」; the 「…へ →」 links under the card as framed
   buttons, side by side when two (portal.js asideCard). */
.aside-card { padding: 20px 20px 20px; }
.aside-card h2 { position: relative; gap: 12px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 0; }
.aside-card h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; border-radius: 1px; background: var(--green); }
.aside-mark { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); }
.aside-card h2 .aside-mark svg { display: block; width: 17px; height: 17px; }
.aside-card .compact-list li + li { border-top-style: solid; }
.aside-card .compact-list a { position: relative; padding-right: 20px; }
.aside-card .compact-list a::after { content: "›"; position: absolute; top: 50%; right: 2px; font-size: 18px; line-height: 1; color: var(--ink-soft);
  transform: translateY(-50%); }
.aside-links { display: flex; gap: 8px; margin-top: 16px; }
.aside-card .aside-links .more-link { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 0; margin: 0;
  padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--card); color: var(--ink); text-align: center;
  letter-spacing: .06em; white-space: normal; }
.aside-card .aside-links .more-link:hover { border-color: var(--green); color: var(--green); }
/* Side by side when both fit, else one under the other, each as wide as the card; the words are not broken (2026-11-03:
   「よくあるご質問へ」 had been broken in two beside 「お問い合わせへ」, on every page with the card). */
.aside-links { flex-wrap: wrap; }
.aside-card .aside-links .more-link { flex: 1 1 auto; }
/* 2026-11-27 「このボタンを下で揃えて欲しい」(資料庫の右の3つの箱, side by side under 1180px): the buttons at the foot of
   each card, so cards of one row (one height) end in a line whatever the words above. */
.aside-card { display: flex; flex-direction: column; }
.aside-card > .aside-links { margin-top: auto; padding-top: 16px; }
.aside-card > :has(+ .aside-links) { margin-bottom: 0; }  /* the room above the buttons stays 16px (flex keeps both margins) */
.aside-card .empty { margin: 4px 0 8px; font-size: 14px; }
.compact-list { list-style: none; margin: 0; padding: 0; }
/* 寺院情報の「自分のお寺」 (2026-11-27): the temple's icon, its name, its 山号・教区, place and telephone. */
.my-temple-list { list-style: none; margin: 0; padding: 0; }
.my-temple-list li + li { border-top: 1px solid var(--line); }
.my-temple { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; color: var(--ink);
  text-decoration: none; }
.my-temple:hover b { color: var(--green); }
.my-temple .temple-mark { width: 48px; height: 48px; }
.my-temple .temple-mark svg { width: 24px; height: 24px; }
.my-temple-text { display: grid; gap: 4px; min-width: 0; }
.my-temple-text b { font-weight: 500; font-size: 16px; letter-spacing: .06em; }
.my-temple-facts { display: grid; gap: 0; }
.my-temple-facts small { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.compact-list li + li { border-top: 1px dashed var(--line); }
.compact-list a, .compact-file { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 8px 0; text-align: left;
  font: 14px/1.6 var(--serif); color: var(--ink); background: none; border: 0; cursor: pointer; }
.compact-list a:hover, .compact-file:hover { color: var(--green); }
.compact-list time { flex: none; font-size: 12px; color: var(--muted); padding-top: 2px; }
.compact-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.compact-events a > span:last-child { display: grid; min-width: 0; }
.compact-events small { color: var(--muted); font-size: 12px; }
.mini-date { flex: none; display: grid; place-items: center; width: 50px; padding: 3px 0; border: 1px solid var(--line-strong);
  border-radius: 4px; background: var(--paper); line-height: 1.2; }
.mini-date b { font-weight: 500; font-size: 16px; }
.mini-date small { font-size: 12px; color: var(--muted); }

.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; width: 100%; }
.category-tile { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 6px; }
.category-tile:hover { border-color: var(--green); }
.category-tile svg { flex: none; width: 28px; height: 28px; color: var(--green); stroke-width: 1.3; }
.category-tile span { display: grid; min-width: 0; }
.category-tile b { font-weight: 500; font-size: 16px; letter-spacing: .08em; }
.category-tile small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-tile-on { background: var(--green); border-color: var(--green); color: var(--on-green); }
.category-tile-on svg, .category-tile-on small { color: var(--on-green-dim); }

.article-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: 6px; padding: 28px 36px 32px; }
.article-card h1 { margin: 12px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 28px;
  letter-spacing: .08em; line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; font-size: 14px; color: var(--ink-soft); }
.article-meta .tag, .event-head .tag { padding: 3px 12px; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.meta-item svg { width: 16px; height: 16px; color: var(--green); }
.article-empty { margin: 4px 0 0; }
.event-head { display: flex; gap: 24px; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.event-head h1 { margin: 8px 0 0; padding: 0; border: 0; }
.date-block { flex: none; display: grid; place-items: center; width: 96px; margin: 0; padding: 8px 0 12px; border: 1px solid var(--green);
  border-radius: 6px; background: var(--paper); color: var(--green); line-height: 1.2; }
.date-block b { font-weight: 500; font-size: 32px; letter-spacing: .02em; }
.date-block small { font-size: 12px; }
.icon-facts { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 0; margin: 0 0 20px; }
.icon-facts dt, .icon-facts dd { margin: 0; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.icon-facts dt { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.icon-facts dt svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.temple-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; padding-bottom: 20px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line); }
.temple-head h1 { margin: 0; padding: 0; border: 0; font-size: 32px; }
.temple-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); }
.temple-mark svg { width: 32px; height: 32px; stroke-width: 1.3; }
.temple-sango, .temple-kana { margin: 0; font-size: 14px; color: var(--ink-soft); letter-spacing: .1em; }
.unit-badge, .mine-badge { padding: 3px 12px; border-radius: 999px; font: 12px var(--sans); letter-spacing: .06em; }
.unit-badge { border: 1px solid var(--line-strong); color: var(--ink-soft); background: var(--paper); }
.mine-badge { background: var(--green); color: var(--on-green); }
/* このお寺のダッシュボード: the same room at the sides as the temple's card above it (2026-10-29; it had been 24px, the card
   34px on wide screens and 16px on phones). */
.mine-box { margin-top: 20px; padding: 16px 36px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.mine-box .box-title { margin-top: 2px; }
.soon-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 12px; }
.soon-tile { display: grid; justify-items: center; gap: 4px; padding: 16px 8px; background: var(--card); border: 1px dashed var(--line-strong);
  border-radius: 6px; text-align: center; color: var(--ink-soft); }
.soon-tile svg { width: 28px; height: 28px; color: var(--green); stroke-width: 1.3; }
.soon-tile b { font-weight: 500; font-size: 14px; color: var(--ink); }
.soon-tile small { font-size: 12px; color: var(--muted); }
/* 自分のお寺の過去帳 (0155): under the dashboard's own tiles. */
.kakocho-box { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
/* 案A (2026-11-07, 「お寺がアカウントの人が迷わず使えるように」): the dashboard's three tiles (自分のお寺の申請・お問い合わせ・
   寺院情報の変更届); under them, which of the 変更届 and the page's own 修正 is for what; a temple without the 過去帳 has
   its one line at the foot of the page (E4 b); 書式の一覧 brought into view from the home's tile. */
.mine-box > .soon-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mine-guide { margin: 4px 0 0; padding-left: 1.3em; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.mine-guide b { font-weight: 500; color: var(--ink); }
.kakocho-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: var(--section-gap) 0 0; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.kakocho-foot > b { flex-basis: 100%; font-weight: 500; color: var(--ink); letter-spacing: .06em; }
.kakocho-foot-item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.kakocho-foot-item small { font-size: 13px; }
.kakocho-foot-link { display: inline-flex; align-items: center; gap: 4px; color: var(--green); text-decoration: underline;
  text-decoration-color: var(--green-underline); text-underline-offset: 3px; }
.kakocho-foot-link .button-icon { width: 13px; height: 13px; }
.kakocho-foot-link { min-height: 24px; }  /* 押せる所は 24px 以上 (照らし合わせ オ) */
.forms-box { scroll-margin-top: 16px; }
.info-card { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding: 20px 24px; background: var(--green-soft);
  border: 1px solid var(--green-line); border-radius: 6px; }
.info-card > svg { flex: none; width: 34px; height: 34px; color: var(--green); stroke-width: 1.3; }
.info-card > div { flex: 1; min-width: 0; }
.info-card b { font-weight: 500; }
.info-card p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
/* 申請・届出の受付を閉めている間 (0177): the card that says so (the paper's own colours, not the green of 「出す」), the
   dashboard's two tiles across, and on the 管理者's page the state now and its record. */
.applications-closed { background: var(--paper-2); border-color: var(--line-strong); }
.applications-closed > svg { color: var(--ink-soft); }
.mine-box > .soon-tiles.soon-tiles-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.switch-now { margin: 0 0 12px; padding: 12px 16px; border-radius: 4px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.switch-now b { font-weight: 500; font-size: 16px; color: var(--ink); }
.switch-open { background: var(--green-soft); }
.switch-closed { background: var(--red-soft-3); }
.switch-events li { font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.switch-change > .field { flex: 1 1 320px; }  /* the reason as wide as the row allows */
.switch-change > .field input { width: 100%; }
.form-grid { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* 2026-11-06 「コンテナのサイズは一番大きいものに合わせて、書式の番号も一番文字数が多い物に横幅を合わせましょうか」: every card as
   tall as the tallest of the list, every number as wide as the one with the most letters (portal.js evenWidths). */
.form-grid { grid-auto-rows: 1fr; }
.form-grid.even-widths .form-no { min-width: calc(var(--even-letters) * 1em + 16px); text-align: center; }
/* 書式のカード (2026-11-03, 「ここのデザインの崩れを直して」): the number and its marks (改定・添える書式・郵送で出す) on the
   first line, the name under them, the download on the right of both; a mark no longer takes the name's room (the name
   had been left one letter a line beside it). The two lines keep to the top of a card made taller by its neighbour, so
   the numbers of a row stand on one line (2026-11-06, 「号数が内容によって高さが違うのでガタガタに見えちゃう。上揃えにする？」),
   and the download stands beside the number. */
/* 書式のサムネイル (0178): the 書式's first page on the left of the card (A4 portrait, on the paper of the 宗報's covers); the
   name goes on under the download too, so beside the picture it keeps its width (2026-11-07: three across, a long name had
   gone six lines and made every row as tall). */
/* 2026-11-08 (「タグとアイコンの並びをもっとバランス良く」「タグのずれが気になります」「配置は単純にspace-betweenで上下を
   均等配置で良かった」): the number alone on the first line, as high as the download beside it (also where there is no
   download), at the top of the card; the mark (添える書式・郵送で出す; 改定 on the 書式's page only) on the last, at its
   foot (the cards of the list are as tall as the tallest); the name between them, the room above and under it shared
   evenly. The picture is
   out of the rows' sizing (else a card shorter than it had its rows made taller and its number moved down), at the top
   left, and the card at least as tall as it. */
/* 2026-11-27 「PCだと箱で並びますが分かりにくいのでスマホのように横長一覧で統一。サムネイルは残す。どんな申請内容かの一文入れる」:
   one card a row on every screen, as the phones' — the number and its mark at the top beside the download, the name under
   them, then the 書式's first sentence (its 説明). */
.form-card { position: relative; display: grid; grid-template-columns: 56px auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(32px, auto) auto auto; grid-template-areas: "thumb head marks download" "thumb name name name" "thumb desc desc desc";
  gap: 8px 12px; align-items: center; align-content: space-between; min-height: calc(56px * 1.414 + 22px); padding: 12px 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 14px; line-height: 1.5; }
.form-card .form-head { grid-area: head; display: flex; align-items: center; min-width: 0; }
.form-card .form-marks { grid-area: marks; display: flex; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
/* A mark wraps inside the card (「改定」 is on the 書式's page only, 2026-11-08). */
.form-card .form-marks .form-only { flex: 0 1 auto; min-width: 0; white-space: normal; }
.form-card .form-name { grid-area: name; align-self: start; }
.form-card .form-download { grid-area: download; align-self: start; }
.form-card .form-thumb { grid-area: thumb; position: absolute; top: 0; left: 0; }
.form-card .form-desc { grid-area: desc; margin: 0; font-size: 13px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
/* 2026-11-27 メモ2「号数の後に書類名を出すようにしたい。３行が２行になってスッキリします。号数｜書類名｜添える書類など補足」:
   on wider screens the number, the name and its mark on the first line, the 書式's sentence on the second, both lines
   together beside the picture; phones keep the mark beside the number and the name under it (2026-11-08). */
@media (min-width: 761px) {
  .form-card { grid-template-columns: 56px auto minmax(0, max-content) minmax(0, 1fr) auto; grid-template-rows: minmax(32px, auto) auto;
    grid-template-areas: "thumb head name marks download" "thumb desc desc desc desc"; align-content: center; }
  .form-card .form-name { align-self: center; }
}
.form-thumb { display: grid; place-items: center; width: 56px; aspect-ratio: 1 / 1.414; overflow: hidden;
  border: 1px solid var(--line); border-radius: 3px; background: var(--sheet); }
.form-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.form-thumb-mark { font: 12px var(--sans); letter-spacing: .04em; color: var(--sheet-mark); }
/* 2026-11-08 「書式の一覧の状態でもサムネイルを拡大できるように」「「拡大する」入れず虫眼鏡アイコンを右下に置くだけで」: the
   card's picture opens the LightBox; only a small lens in its lower right corner says so. */
.form-thumb-zoom { position: relative; padding: 0; font: inherit; color: inherit; cursor: zoom-in; }
.form-thumb-zoom:hover, .form-thumb-zoom:focus-visible { border-color: var(--green); }
.form-thumb-lens { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; padding: 3px; border-radius: 50%;
  background: var(--green); color: var(--on-green); stroke-width: 2.2; }
/* The 書式's page: its first page right of the words (above them on phones), opening the LightBox. */
.form-intro { display: grid; grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "text figure"; gap: 0 28px;
  align-items: start; }
.form-intro.form-intro-plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text"; }
.form-intro-text { grid-area: text; min-width: 0; }
/* 2026-11-08 (「注意事項を上の左カラムへ移して、…特に注意する項目とこの書式をダウンロードと一緒に下のコンテナへ」): under the
   words and the picture, what to mind most (添える・郵送で出す, the 原本, the 支院長's seal) and the buttons together, with no
   frame round them (「ボックスの中にボタンがあるので、ボックスは無くしましょう」): the notes keep their own colour. */
.form-todo { margin: 20px 0 8px; }
.form-todo > :first-child { margin-top: 0; }
.form-todo > :last-child { margin-bottom: 0; }
.form-todo > .app-original + .form-actions { margin-top: 12px; }
.form-figure { grid-area: figure; margin: 4px 0 0; }
.form-figure-zoom { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 4px; background: var(--sheet); cursor: zoom-in; overflow: hidden; }
.form-figure-zoom img { display: block; width: 100%; aspect-ratio: 1 / 1.414; object-fit: contain; }
.form-figure-zoom:hover, .form-figure-zoom:focus-visible { border-color: var(--green); }
.form-figure-hint { position: absolute; right: 8px; bottom: 8px; padding: 2px 12px; border-radius: 999px;
  background: var(--green); color: var(--on-green); font: 12px var(--sans); letter-spacing: .06em; }
.lightbox { width: min(820px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 6px;
  background: var(--card); color: var(--ink); overflow: auto; }
.lightbox::backdrop { background: var(--backdrop-50); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lightbox-bar { position: sticky; top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px;
  background: var(--card); border-bottom: 1px solid var(--line); }
.lightbox-title { flex: 1 1 12em; min-width: 0; font-weight: 500; }
.lightbox-image { display: block; width: 100%; height: auto; background: var(--sheet); }
/* 2026-11-08 「ボタンを下にしましょうか」: the download and ✕ under the picture, kept at the foot while it scrolls. */
.lightbox-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 8px 12px; padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); }
.thumbnails-card .form-status { margin: 4px 0 0; }
.form-card .form-no { flex: none; min-width: 0; padding: 2px 8px; border-radius: 4px; background: var(--green); color: var(--on-green);
  font: 12px var(--sans); letter-spacing: .04em; }
.manage-panel { background: var(--card); border: 1px solid var(--line-strong); border-radius: 6px; padding: 16px 28px 28px; }
.manage-panel .tabs { margin-top: 0; }
.search-results .panel-box { margin-bottom: 20px; }

/* The foot: the crest and name, who the pages are for, ORITAS — no menu (2026-10-29, 「フッターのリンクはいらない」: the
   band's menu is on every page). */
.site-footer { margin-top: var(--section-gap); padding: 0; background: var(--footer); border-top: 1px solid var(--line); text-align: left;
  font-size: 13px; color: var(--ink-soft); letter-spacing: .06em; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 24px 40px 28px; display: grid; grid-template-columns: minmax(0, 1fr);
  align-items: center; gap: 8px 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; width: fit-content; font-size: 18px; letter-spacing: .12em; color: var(--ink); }
.footer-note { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.footer-copy { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .2em; }
.footer-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; margin: 12px 0 0;
  padding: 16px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-links a { color: var(--ink-soft); font-size: 13px; }
.footer-links a:hover { color: var(--green); }

@media (max-width: 1180px) {
  .banner-inner { padding-left: 24px; padding-right: 24px; }
  .page-grid { grid-template-columns: 1fr; }
  .page-aside { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer-inner { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 760px) {
  .page-banner::after { inset: 0 0 0 40%; opacity: .45; }
  .banner-inner { min-height: 0; gap: 16px; padding: 20px 16px; }
  .page-banner-slim .banner-inner { min-height: 0; padding: 16px 16px; }
  .banner-icon { width: 48px; height: 48px; }
  .banner-icon svg { width: 24px; height: 24px; }
  .page-banner h1, .banner-title { font-size: 28px; }
  .page-banner-slim .banner-title, .page-banner-slim h1 { font-size: 24px; }
  .banner-lead { font-size: 13px; }
  .page-inner { padding-top: 16px; }
  .panel-box { padding: 8px 16px 12px; }
  .article-card { padding: 20px 16px 24px; }
  .mine-box { padding-left: 16px; padding-right: 16px; }  /* as the card above it (2026-10-29) */
  .article-card h1 { font-size: 24px; }
  .event-head { gap: 16px; }
  .date-block { width: 74px; }
  .date-block b { font-size: 24px; }
  .icon-facts { grid-template-columns: 1fr; }
  .icon-facts dt { border-bottom: 0; padding-bottom: 0; }
  .soon-tiles, .mine-box > .soon-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-box > .soon-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }  /* the third of three across (2026-11-07) */
  /* 書式の一覧: one card a row as on every screen since 2026-11-27 (the mark beside the number, 2026-11-08). */
  .form-intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "figure" "text"; }
  .form-figure { width: min(220px, 70%); margin: 2px auto 16px; }
  .info-card { flex-wrap: wrap; }
  .manage-panel { padding: 12px 12px 20px; }
  .footer-inner { grid-template-columns: 1fr; padding: 20px 16px 24px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 選ぶ欄の矢印 (2026-11-27 「プルダウンの矢印がコンテナ横に近すぎて気持ち悪いので、少し余白をつけて欲しい」): the browser's
   own arrow sat against the right edge; every select draws its own small chevron 16px in from the edge (in the words'
   colour, by day and by night), with room for it on the right. */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* 宗門概要・発信元（第1段の仕上げ） */
.box-lead { margin: -2px 0 12px; font-size: 14px; color: var(--ink-soft); }
.officer-table td { vertical-align: top; }
.officer-position { color: var(--green); white-space: nowrap; }
.officer-name { font-size: 16px; letter-spacing: .06em; }
.officer-term { white-space: nowrap; font-size: 13px; color: var(--ink-soft); }
.row-muted td { color: var(--muted); }
.order-input { width: 6em; flex: none !important; }
.officer-manage { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.officer-manage-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 8px; }
.officer-manage-head h3 { margin: 0 auto 0 0; font-weight: 500; font-size: 20px; letter-spacing: .08em; }
.danger-button { color: var(--red); border-color: var(--red-line); }
@media (max-width: 760px) {
  .officer-table thead { display: none; }
  .officer-table tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .officer-table td { border: 0; padding: 2px 4px; }
  .officer-term { white-space: normal; }
}

/* 申請・届出（第2段の1） */
.app-badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font: 12px var(--sans); letter-spacing: .06em; white-space: nowrap;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft); }
.app-submitted { background: var(--tag-todoke-bg); border-color: var(--tag-todoke-line); color: var(--tag-todoke); }
.app-reviewing { background: var(--tag-kenshu-bg); border-color: var(--tag-kenshu-line); color: var(--tag-kenshu); }
.app-returned { background: var(--red-soft); border-color: var(--red-line-2); color: var(--red-ink); }
.app-accepted { background: var(--green); border-color: var(--green); color: var(--on-green); }
.app-withdrawn { color: var(--muted); }
.app-list { list-style: none; margin: 8px 0 0; padding: 0; }
.app-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 16px; align-items: center; gap: 16px; padding: 12px 8px;
  border-bottom: 1px solid var(--line); }
.app-row:hover { background: var(--paper-2); }
.app-row time { font-size: 13px; color: var(--ink-soft); }
.app-main { display: grid; min-width: 0; }
.app-main b { font-weight: 500; font-size: 16px; letter-spacing: .04em; }
.app-main small { font-size: 12px; color: var(--muted); }
.app-files { list-style: none; margin: 8px 0 12px; padding: 0; }
.app-files li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.app-files svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.file-link { flex: 1; min-width: 0; padding: 0; text-align: left; border: 0; background: none; font: 16px var(--serif); color: var(--ink);
  cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.file-link:hover { color: var(--green); }
.app-draft .field, .app-review .field { margin-top: 16px; }  /* room between the 欄 (2026-11-04, 「隙間が狭い」) */
.app-draft > .dark-button { margin-top: 12px; }  /* only a button of its own line: 探す stays level with its words */
.app-return-reason { margin: 8px 0 4px; padding: 12px 16px; border: 1px solid var(--red-line-2); border-radius: 6px; background: var(--red-soft-2); }
.app-return-reason b { color: var(--red-ink); }
.app-return-reason p { margin: 4px 0 0; white-space: pre-wrap; }
p.app-accepted { display: inline-block; padding: 8px 16px; border-radius: 6px; }
.app-original { margin: 8px 0; padding: 8px 16px; background: var(--tag-kenshu-bg); border-radius: 6px; color: var(--tag-kenshu); font-size: 14px; }
.app-round { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.app-round:first-of-type { border-top: 0; }
.app-round h3 { margin: 0 0 4px; font-weight: 500; font-size: 18px; letter-spacing: .06em; }
.app-round p { margin: 2px 0; font-size: 14px; }
.app-timeline { list-style: none; margin: 4px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-strong); }
.app-timeline li { position: relative; display: grid; grid-template-columns: 9.5em auto minmax(0, 1fr); gap: 4px 16px; padding: 8px 0 8px 8px; font-size: 14px; }
.app-timeline li::before { content: ""; position: absolute; left: -21px; top: 13px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--green); }
.app-timeline time { color: var(--muted); font-size: 13px; }
.app-timeline b { font-weight: 500; }
.app-timeline span { color: var(--ink-soft); }
.app-timeline p { grid-column: 1 / -1; margin: 0; padding: 8px 12px; background: var(--paper); border-radius: 4px; white-space: pre-wrap; }
.app-timeline .app-note::before { border-color: var(--tag-kenshu); }
.app-withdraw { margin: 16px 0 0; }
.form-card .form-download { margin-left: auto; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong);
  border-radius: 50%; background: var(--card); color: var(--green); cursor: pointer; }
.form-card .form-download svg { width: 16px; height: 16px; }
.status-more { display: block; margin-top: 12px; text-align: right; }
a.status-row { color: var(--ink); }
a.status-row:hover { background: var(--paper-2); }
.live-tile { border-style: solid; color: var(--ink); }
.live-tile:hover { border-color: var(--green); }
@media (max-width: 760px) {
  .app-row { grid-template-columns: minmax(0, 1fr) auto; }
  .app-row time, .app-row .row-chevron { display: none; }
  .app-timeline li { grid-template-columns: 1fr; }
}
#detail-body > * + *, #coming-body > * + * { margin-top: 20px; }

/* 提出のお願い・寺院情報の変更届・お問い合わせ・よくあるご質問 (0134) */
.req-open { background: var(--green-soft); border-color: var(--green-line-2); color: var(--green-dark); }
.req-closed, .req-cancelled { color: var(--muted); }
.state-none { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-ink-2); }
.state-draft { color: var(--ink-soft); }
.state-submitted { background: var(--tag-todoke-bg); border-color: var(--tag-todoke-line); color: var(--tag-todoke); }
.state-returned { background: var(--red-soft); border-color: var(--red-line-2); color: var(--red-ink); }
.state-accepted { background: var(--green); border-color: var(--green); color: var(--on-green); }
.req-temples { list-style: none; margin: 8px 0 12px; padding: 0; }
.req-temples li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.req-temple { font-size: 16px; min-width: 8em; }
.req-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 16px; }
.req-count { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--card); }
.req-count b { font: 600 24px var(--serif); }
.req-count small { font-size: 12px; }
.count-none b { color: var(--gold-ink-2); }
.count-submitted b { color: var(--tag-todoke); }
.count-returned b { color: var(--red-ink); }
.count-accepted b { color: var(--green); }
button.chip { cursor: pointer; font: 13px var(--serif); color: var(--ink); }
button.chip.chip-on { color: var(--on-green); }
p.app-request { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 6px; background: var(--gold-soft);
  font-size: 14px; }
p.app-request svg { width: 18px; height: 18px; color: var(--gold-ink-2); }
p.app-request a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.dc-table th { width: 9em; }
.dc-table td input { width: 100%; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--card);
  font: 16px var(--serif); color: var(--ink); }
.dc-table td input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 2px var(--green-soft); }
.dc-table .dc-new { font-weight: 600; color: var(--green-dark); }
.box-subtitle { margin: 20px 0 4px; font: 500 16px var(--serif); letter-spacing: .06em; }
.app-change { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
button.soon-tile { font: inherit; cursor: pointer; }
.inq-thread { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.inq-msg { padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.inq-msg.inq-desk { background: var(--green-soft); border-color: var(--green-line-2); margin-left: 32px; }
.inq-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-size: 13px; color: var(--ink-soft); }
.inq-head b { font-weight: 600; color: var(--ink); }
.inq-waiting { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-ink-2); }
.inq-answered { background: var(--green-soft); border-color: var(--green-line-2); color: var(--green-dark); }
.inq-closed { color: var(--muted); }
/* よくあるご質問 (2026-11-08 「デザインをもっと凝った感じに」): the 分類 at the top, a Q in green and an A on the paper,
   each question a card of its own whose mark turns while it is open. No rule on the left of the A, and the A right under the Q
   (「左の罫線はいらないですね」「QとAがまっすぐ揃うように」): the answer keeps the question's own side room and gap. */
.faq-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px; }
.faq-toc-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--card); color: var(--ink); font: 16px var(--serif); letter-spacing: .04em; cursor: pointer; }
.faq-toc-item svg { width: 18px; height: 18px; color: var(--green); }
.faq-toc-item .faq-count { min-width: 1.6em; padding: 0 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark);
  font: 12px var(--sans); text-align: center; }
.faq-toc-item:hover, .faq-toc-item:focus-visible { border-color: var(--green); color: var(--green-dark); }
.faq-all { margin-left: auto; }
.box-title .faq-count { margin-left: 12px; font: 13px var(--sans); letter-spacing: .02em; color: var(--muted); }
.faq-list { display: grid; gap: 12px; margin: 8px 0 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; }
.faq-item[open] { border-color: var(--green-line); box-shadow: 0 1px 0 var(--green-line); }
.faq-item summary { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; font-size: 16px; letter-spacing: .03em; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--paper); }
.faq-item summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.faq-q, .faq-a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 600 16px var(--serif); }
.faq-q { background: var(--green); color: var(--on-green); }
.faq-a { border: 1px solid var(--tag-kenshu); background: var(--card); color: var(--tag-kenshu); }
.faq-turn { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.faq-item[open] .faq-turn { transform: rotate(180deg); color: var(--green); }
.faq-item[open] .faq-question { color: var(--green-dark); }
.faq-answer { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; margin: 0; padding: 12px 16px 16px;
  border-top: 1px dashed var(--line); background: var(--paper); }
.faq-answer .body-text { margin: 0; font-size: 16px; }
.faq-answer .body-text > p:first-child { margin-top: 3px; }
.faq-answer .body-text > p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq-turn { transition: none; } }
@media (max-width: 760px) {
  .faq-all { margin-left: 0; }
  .faq-item summary { grid-template-columns: 26px minmax(0, 1fr) 18px; gap: 12px; padding: 12px; font-size: 16px; }
  .faq-q, .faq-a { width: 26px; height: 26px; font-size: 14px; }
  .faq-answer { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px; }
}
.faq-manage { margin-bottom: 16px; }
@media (max-width: 760px) {
  .req-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inq-msg.inq-desk { margin-left: 12px; }
  .dc-table th { width: auto; }
}

/* 会員のログイン・登録の案内・住職のつなぐ申し込み (0135) */
.cell-note { display: block; font-size: 12px; color: var(--muted); }
.warn-note { color: var(--red-ink); }
.link-list li { align-items: flex-start; }
.link-who { display: grid; flex: 1; min-width: 14em; }
.link-who b { font-weight: 500; font-size: 16px; }
.link-who small { font-size: 12px; color: var(--muted); }
.guide-sheet { max-width: 720px; margin: 20px 0; padding: 36px 44px; background: var(--guide-sheet); border: 1px solid var(--line-strong);
  border-radius: 4px; line-height: 1.9; font-size: 16px; }
.guide-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px;
  border-bottom: 1px solid var(--line-strong); margin-bottom: 20px; }
.guide-head h1 { margin: 0; font: 500 24px var(--serif); letter-spacing: .08em; }
.guide-from { margin: 0; font-size: 14px; color: var(--ink-soft); }
.guide-to { font-size: 18px; }
.guide-steps { padding-left: 1.4em; }
.guide-steps li { margin: 4px 0; }
.guide-note { margin-top: 20px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .guide-sheet { padding: 20px 20px; }
}
@media print {
  body * { visibility: hidden; }
  .guide-sheet, .guide-sheet * { visibility: visible; }
  .guide-sheet { position: absolute; left: 0; top: 0; margin: 0; border: 0; max-width: none; width: 100%; }
}

/* 本番: ten minutes before the three-hour end (design v0.11, web-prototype/pass-timer.js); at the foot of the screen since
   2026-10-29 (at the top it covered the band's メニュー). */
.pass-notice { position: fixed; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 50%; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border: 1px solid var(--notice-line); border-radius: 10px; background: var(--notice-bg); color: var(--notice-ink); box-shadow: 0 6px 18px var(--shadow-12); font-size: 14px; line-height: 1.6; transform: translateX(-50%); }
.pass-notice-button { min-height: 36px; padding: 4px 16px; border: 1px solid var(--notice-button-line); border-radius: 8px; background: var(--notice-button-bg); color: var(--notice-ink); font: inherit; font-weight: 700; cursor: pointer; }

/* スマホの見やすさ（2026-10-23, 「文字の折れ方とカラムの並べ方が見づらい」）: phones only; wide screens are unchanged */
@media (max-width: 760px) {
  /* The band: one's own name beside the title, the search on its own full-width row (no bell since 2026-10-23). */
  .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand temple" "search search";
    align-items: center; column-gap: 8px; row-gap: 8px; }
  .header-tools:not([hidden]) { display: contents; }
  .site-brand { grid-area: brand; gap: 8px; }
  .site-mark { width: 34px; height: 34px; }
  .site-title { font-size: 20px; letter-spacing: .03em; }
  .temple-menu-wrap { grid-area: temple; min-width: 0; }
  .temple-menu { gap: 8px; }
  .temple-avatar { width: 28px; height: 28px; }
  .temple-menu-name { max-width: 6em; }
  .site-search { grid-area: search; width: 100%; height: 38px; }
  /* The menu: every item visible on two lines instead of a row cut off at the right edge. */
  .site-nav { flex-wrap: wrap; overflow: visible; column-gap: 20px; row-gap: 0; padding: 2px 16px 0; }
  .site-nav a { padding: 8px 2px 8px; font-size: 16px; }
  /* Notices: date and kind on a small first line, the title on its own line across the whole width. */
  .news-list a { grid-template-columns: auto auto minmax(0, 1fr) 14px;
    grid-template-areas: "date tag . chevron" "title title title chevron"; row-gap: 4px; column-gap: 8px; padding: 12px 4px; }
  .news-list time { grid-area: date; font-size: 13px; }
  .news-list .tag { grid-area: tag; font-size: 12px; padding: 1px 8px; }
  .news-list .news-title { grid-area: title; font-size: 16px; line-height: 1.6; white-space: normal; }
  .news-list .row-chevron { grid-area: chevron; }
  /* 寺院情報: one temple per block (name and 山号, then 教区・所在地・電話) instead of five narrow columns. */
  .roster-table thead { display: none; }
  .roster-table, .roster-table tbody { display: block; }
  /* 2026-11-08 「左にスペースがほとんどないのでもう少し余白を」: 14px each side (the table's own colour reaches the edge). */
  .roster-table tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 12px 16px;
    border-bottom: 1px solid var(--line); }
  .roster-table td { padding: 0; border: 0; }
  .roster-table td:nth-child(1) { order: 1; font-size: 16px; }
  .roster-table td:nth-child(2) { order: 2; font-size: 13px; color: var(--muted); }
  .roster-table tr::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .roster-table td:nth-child(n+3) { order: 4; font-size: 13px; color: var(--ink-soft); }
  .roster-table td:nth-child(n+4)::before { content: "・"; margin-right: 8px; color: var(--muted); }
  /* 資料: a long file name wraps to two lines instead of ending in "…". */
  .file-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
}

/* 「黄檗宗 宗内ポータル」(2026-10-23): the sect's name before the portal's; on phones a small line above it. */
.site-org, .footer-org { margin-right: .45em; }
.site-org:empty, .footer-org:empty { display: none; }
@media (max-width: 760px) {
  .site-title { display: flex; flex-direction: column; line-height: 1.15; }
  .site-org { margin: 0 0 1px; font-size: 12px; letter-spacing: .24em; color: var(--ink-soft); }
}

/* ハンバーガーメニュー (2026-10-23, 「ハンバーガーメニューにしたほうがいいかも」): phones only; wide screens keep the tabs. */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .header-row { grid-template-areas: "brand temple" "search toggle"; }
  .nav-toggle { grid-area: toggle; display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 12px;
    border: 1px solid var(--line-strong); border-radius: 3px; background: var(--card); font: 14px var(--serif); color: var(--ink);
    letter-spacing: .06em; white-space: nowrap; cursor: pointer; }
  .nav-toggle > span { display: inline-flex; align-items: center; gap: 8px; }
  .nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .nav-toggle .nav-toggle-open, .site-header.nav-open .nav-toggle .nav-toggle-closed { display: none; }
  .site-header.nav-open .nav-toggle .nav-toggle-open { display: inline-flex; }
  .site-header.nav-open .nav-toggle { border-color: var(--green); color: var(--green-dark); }
  .nav-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  /* The menu slides in from the right over the page (2026-10-23, 「手前に来るタイプに、横からスライドでも」), the page behind
     dimmed and still; one page per line, the current one marked at the left. Folded, it stays out of sight and out of reach. */
  .site-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(84vw, 340px); max-width: none; margin: 0;
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0 0 24px; overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain; background: var(--paper); border-left: 1px solid var(--line-strong); box-shadow: -12px 0 32px var(--shadow-14);
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .site-header.nav-open .site-nav { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav-drawer-head { position: sticky; top: 0; z-index: 1; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line-strong); }
  .nav-drawer-title { font-size: 14px; letter-spacing: .24em; color: var(--ink-soft); }
  .nav-close { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong);
    border-radius: 3px; background: var(--card); font: 14px var(--serif); color: var(--ink); letter-spacing: .06em; cursor: pointer; }
  .nav-close svg { width: 18px; height: 18px; }
  /* Each item a little inside the drawer's edge, so the current one's green line is not on the edge (2026-10-23). */
  .site-nav a { display: flex; align-items: center; gap: 16px; margin: 0 12px; padding: 12px 16px; font-size: 16px;
    border-bottom: 1px solid var(--line); }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav a[aria-current="page"] { background: var(--paper-2); border-radius: 4px; }
  .site-nav a[aria-current="page"]::after { left: 0; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; border-radius: 2px; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 55; background: var(--backdrop-38); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s; }
  .site-header.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  html.nav-locked, html.nav-locked body { overflow: hidden; }
}
/* Wide screens keep the row of tabs: no drawer head and no dimming. */
.nav-drawer-head, .nav-backdrop { display: none; }
@media (max-width: 760px) {
  .nav-drawer-head { display: flex; }
  .nav-backdrop { display: block; }
}

/* 案内の箱 (2026-10-23): on phones the text keeps the full width and the button moves under it. */
@media (max-width: 760px) {
  .info-card > div { flex-basis: calc(100% - 52px); }
  .info-card > .dark-button, .info-card > button { margin-left: 52px; }
}

/* アイコン・お寺のページ・本山のお知らせ (2026-10-23, 0138) */
.temple-avatar.has-image { background: none; overflow: hidden; }
.avatar-image, .mark-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.temple-mark.has-image { overflow: hidden; background: none; }
/* アイコンを選ぶ (2026-10-29, 「画像に軽めのシャドウをつけて、右の空白にボタンを配置する」): the round picture with a soft
   shadow at the left, 画像を選ぶ・変える・外す beside it, the note under both; the file field is a button with the chosen
   file's name beside it (the browser's own 「ファイルを選択　選択されていません」 had run out of the box on phones). */
.icon-editor { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 24px; }
.icon-editor .temple-mark { width: 96px; height: 96px; box-shadow: 0 8px 18px -8px var(--shadow-warm-45), 0 0 0 1px var(--shadow-warm-06); }
.icon-editor .temple-mark svg { width: 44px; height: 44px; }
.icon-editor-fields { display: grid; justify-items: start; gap: 12px; min-width: 0; }
.icon-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; max-width: 100%; }  /* 帯の写真 */
.icon-file-button { position: relative; }
.icon-file-button input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.icon-file-button:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.icon-editor-hint { grid-column: 1 / -1; margin: 0; }
/* 選んだ範囲の見本 (2026-10-30): the round picture shows the square chosen, not yet saved, in a ring of the 寺紋's gold. */
/* 丸に入る範囲を決める小窓 (2026-10-30, 「POPアップでトリミング」「ORITASっぽくもっとかっこいいPOPUPに」): a green line along the
   top; the heading as the right column's (its mark in a soft green round, a short green line under it); the picture in a
   dark frame under a ring of the 寺紋's gold, −・つまみ・＋ under it; 見え方 (the icon at its two sizes) and how to move it at
   the right (under it on phones); やめる and この範囲にする at the foot. It comes in softly unless motion is to be calm. */
.crop-dialog { width: min(660px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 0;
  border: 1px solid var(--line-strong); border-top: 3px solid var(--green); border-radius: 10px; background: var(--card); color: var(--ink);
  box-shadow: 0 30px 64px -26px var(--shadow-deep-60), 0 2px 8px var(--shadow-deep-08); }
.crop-dialog::backdrop { background: var(--backdrop-50); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.crop-head { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 24px 60px 20px 28px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--card)); }
.crop-head .aside-mark { width: 42px; height: 42px; margin-top: 1px; }
.crop-head .aside-mark svg { width: 21px; height: 21px; }
.crop-head-words { min-width: 0; }
.crop-title { position: relative; margin: 0; padding: 0 0 12px; border: 0; font-weight: 500; font-size: 20px; letter-spacing: .14em; }
.crop-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; border-radius: 1px; background: var(--green); }
.crop-lead { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.crop-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; }
.crop-close:hover { border-color: var(--line); background: var(--card); color: var(--green); }
.crop-close svg { width: 18px; height: 18px; }
.crop-body { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; gap: 24px 28px; padding: 24px 28px 8px; }
.crop-frame { overflow: hidden; border-radius: 8px; background: var(--crop-frame);
  box-shadow: 0 0 0 1px var(--shadow-deep-25), 0 14px 28px -16px var(--shadow-deep-70); }
.crop-stage { display: block; width: 100%; height: auto; aspect-ratio: 1; touch-action: none; cursor: grab; }
.crop-stage:active { cursor: grabbing; }
.crop-stage:focus-visible { outline: 2px solid var(--crest-gold); outline-offset: -4px; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.crop-zoom input { flex: 1; min-width: 0; margin: 0; accent-color: var(--green); }
.crop-step { display: grid; flex: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 50%; background: var(--card); color: var(--green); cursor: pointer; }
.crop-step:hover:not(:disabled) { border-color: var(--green); background: var(--green-soft); }
.crop-step:disabled { opacity: .45; cursor: default; }
.crop-step svg { width: 16px; height: 16px; stroke-width: 2; }
.crop-side { display: grid; gap: 20px; }
.crop-seen { padding: 16px 20px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.crop-seen-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; font-weight: 500; font-size: 14px;
  letter-spacing: .14em; color: var(--ink-soft); }
.crop-seen-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.crop-looks { display: flex; align-items: flex-end; justify-content: space-around; gap: 16px; }
.crop-look { display: grid; justify-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-align: center; }
.crop-look canvas { display: block; border-radius: 50%; background: var(--green-soft);
  box-shadow: 0 6px 14px -8px var(--shadow-warm-55), 0 0 0 1px var(--shadow-warm-08); }
.crop-look .is-big { width: 64px; height: 64px; }
.crop-look .is-small { width: 32px; height: 32px; }
.crop-hints { display: grid; gap: 8px; margin: 0; padding: 0 2px; list-style: none; font-size: 12px; color: var(--ink-soft); letter-spacing: .03em; }
.crop-hints li { display: flex; align-items: center; gap: 12px; }
.crop-hints svg { flex: none; width: 16px; height: 16px; color: var(--green); }
.crop-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; padding: 16px 28px 20px;
  border-top: 1px solid var(--line); }
.crop-ok { gap: 8px; }
/* 2026-11-27 メモ2: the window that chooses its own picture — an empty frame is one big button (a dashed ring in the 寺紋's
   gold), 画像を選ぶ／別の画像を選ぶ under −・つまみ・＋, and what went wrong at the left of the foot. */
.crop-frame { position: relative; }
.crop-empty { position: absolute; inset: 12px; display: none; place-content: center; justify-items: center; gap: 8px; padding: 0;
  border: 2px dashed var(--crest-gold); border-radius: 50%; background: none; color: var(--crop-ink); font: 16px var(--serif); letter-spacing: .1em;
  cursor: pointer; }
.crop-empty svg { width: 28px; height: 28px; color: var(--crest-gold); }
.crop-empty small { font: 12px var(--sans); letter-spacing: .04em; color: var(--crop-ink-soft); }
.crop-empty:hover, .crop-empty:focus-visible { background: var(--crop-hover); outline: none; }
.crop-frame.is-empty .crop-empty { display: grid; }
.crop-frame.is-empty .crop-stage { cursor: default; }
.crop-pick { justify-content: center; width: 100%; margin-top: 16px; }
.crop-pick .button-icon { width: 16px; height: 16px; }
.crop-foot { flex-wrap: wrap; }
.crop-status { flex: 1 1 200px; margin: 0; font-size: 13px; }
.crop-status:empty { display: none; }
.crop-foot > .crop-ok:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 600px) {
  .crop-head { padding: 20px 56px 16px 20px; gap: 12px; }
  .crop-head .aside-mark { width: 36px; height: 36px; }
  .crop-title { font-size: 18px; }
  .crop-body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 20px 4px; }
  .crop-hints { display: none; }  /* the lead says it; the room goes to the picture */
  .crop-foot { margin-top: 12px; padding: 16px 20px 20px; }
  .crop-foot > .plain-button { flex: none; padding: 8px 20px; }
  .crop-foot > .crop-ok { flex: 1; justify-content: center; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .crop-dialog[open] { animation: crop-in .24s cubic-bezier(.2, .8, .2, 1); }
  .crop-dialog[open]::backdrop { animation: crop-fade .24s ease-out; }
}
@keyframes crop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes crop-fade { from { opacity: 0; } }
/* プロフィールの「お寺のページを修正」 (2026-10-30): each temple with its icon now, small, at the left of its name. */
.temple-edit-list a { align-items: center; }
.temple-edit-list .temple-mark { flex: none; width: 32px; height: 32px; }
.temple-edit-list .temple-mark svg { width: 18px; height: 18px; margin: 0; }
/* お寺を選ばずに押したとき・画像を選ばずに押したとき (2026-10-29): in red right under the button. */
.form-status.is-error { color: var(--red-ink); }
/* ホームページ・SNS as buttons of one width (2026-10-29, 「サイズを均等に並べて」): as many in a row as fit, two on phones. */
.page-links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; }
.page-links .page-link { display: flex; width: 100%; height: 100%; min-height: 42px; }  /* one height in a row, a long name or not */
.page-links .page-link svg { width: 18px; height: 18px; color: var(--ink); }
@media (max-width: 760px) {
  .page-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page-link, .map-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-strong);
  border-radius: 3px; background: var(--card); font-size: 14px; letter-spacing: .04em; }
.page-link:hover, .map-link:hover { color: var(--green); border-color: var(--green); }
.page-link svg, .map-link svg { width: 16px; height: 16px; flex: none; color: var(--green); }
.map-link { margin-top: 12px; }
.page-link-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.temple-edit-link { justify-self: start; }
/* A temple's page (2026-10-29): 教区 and 自分のお寺 side by side, moving together; 修正 and アイコンを外す inside the card
   under a line. */
.temple-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
/* The top of a temple's page in three columns (2026-10-29, 「3カラムの横並び」): the mark, the names, and the marks of 教区
   and 自分のお寺 one under the other, of one width, at the right — on phones too. */
.temple-page-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 20px; }
.temple-page-head .temple-badges { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.temple-page-head .temple-badges > * { text-align: center; white-space: nowrap; }
.temple-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line); }
.other-link-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 8px; margin-top: 8px; }
/* The mark of a page outside at the lower right of its row, beside the title's last line (2026-10-29, 「記事の右下へバランス
   良く」; on phones it had stood at the upper right beside the date). */
.head-news-list a { grid-template-columns: 112px auto minmax(0, 1fr) 18px; grid-template-areas: none; }
/* 0200 (メモ 8): the feed's categories as tags, as the 宗務のお知らせ's kinds (an item without them keeps the room empty). */
.head-news-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.head-news-tags .tag { padding: 3px 8px; }
.head-news-list .row-external { width: 16px; height: 16px; align-self: end; justify-self: end; margin-bottom: 4px; color: var(--muted); }
@media (max-width: 760px) {
  .head-news-list a { grid-template-columns: auto auto minmax(0, 1fr) 16px; grid-template-areas: "date tags . ." "title title title ext"; }
  .head-news-list time { grid-area: date; }
  .head-news-tags { grid-area: tags; }
  .head-news-tags .tag { padding: 1px 8px; }
  .head-news-list .news-title { grid-area: title; }
  .head-news-list .row-external { grid-area: ext; }
  .other-link-row { grid-template-columns: 1fr; }
  .icon-editor { align-items: start; gap: 12px 16px; }
  .icon-editor .temple-mark { width: 76px; height: 76px; }
  .icon-editor .temple-mark svg { width: 34px; height: 34px; }
  .icon-editor-fields { justify-items: stretch; }  /* the buttons one under another, as wide as the room beside the picture */
  .icon-editor-fields .form-actions > * { width: 100%; justify-content: center; }
  .icon-editor-fields .form-actions { display: grid; gap: 8px; }
}

/* 載せる・管理の直し (2026-10-23, 本番の画面を見て): the items in three named groups of buttons that wrap without a broken
   line, one line saying what the chosen item is for, buttons as wide as their words, and 保存しました on the button itself. */
.manage-menu { display: grid; gap: 12px; padding: 8px 0 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.manage-group { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: start; gap: 8px 16px; }
.manage-group-name { padding-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: .12em; }
.manage-group-items { display: flex; flex-wrap: wrap; gap: 8px; }
.manage-item { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 16px; border: 1px solid var(--line-strong);
  border-radius: 6px; background: var(--paper); font-size: 16px; letter-spacing: .06em; color: var(--ink); white-space: nowrap; }  /* 6px as .chip (2026-10-29) */
.manage-item:hover { border-color: var(--green); color: var(--green); }
.manage-item-on, .manage-item-on:hover { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 600; }
.editor > button, .editor > .dark-button, .editor > .plain-button { justify-self: start; }
.form-actions { flex-wrap: wrap; }
.button-icon { width: 18px; height: 18px; flex: none; }
.dark-button.is-saved, .dark-button.is-saved:hover { gap: 8px; background: var(--green-soft); color: var(--green-dark); cursor: default;
  box-shadow: inset 0 0 0 1px var(--green-line-3); }
.plain-button.is-saved, .plain-button.is-saved:disabled { opacity: 1; border-style: solid; background: var(--green-soft); border-color: var(--green-line-3); color: var(--green-dark); cursor: default; }
.plain-button.is-saved .button-icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .manage-group { grid-template-columns: 1fr; gap: 4px; }
  .manage-group-name { padding-top: 0; }
  .manage-item { min-height: 34px; padding: 4px 12px; font-size: 14px; }
  .manage-menu { gap: 12px; padding-top: 4px; }
  /* The other rows of tabs (受付・お問い合わせ) on phones: one switch of equal halves side by side in one frame, a line
     between them and the chosen one filled (2026-10-23, 「自分宛 | 広報委員会宛 としてタブで切り替え」); never wrapped. */
  .tabs { flex-wrap: nowrap; gap: 0; margin: 4px 0 16px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px;
    overflow: hidden; background: var(--card); }
  .tab { flex: 1 1 0; min-width: 0; margin: 0; padding: 8px 8px; border: 0; border-radius: 0; background: none;
    font-size: 14px; line-height: 1.4; text-align: center; }
  .tabs.even-widths > .tab { min-width: 0; }  /* the halves are equal already; a long name wraps inside its half */
  .tab + .tab { border-left: 1px solid var(--line-strong); }
  .tab-on { margin-bottom: 0; background: var(--green); color: var(--on-green); }
}

/* 本番の広い画面を見て (2026-10-23, 二度目): buttons of one row as wide as the one with the most letters (portal.js
   evenWidths), each page's icon in the phone menu, a faint line between the items of the menu, room between the menu and
   the photo band, and 「予定はまだありません。」 on one line. */
.even-widths > .chip, .even-widths > .tab, .even-widths .manage-item { min-width: calc(var(--even-letters) * 1.08em + 2.4em);
  justify-content: center; text-align: center; }
.nav-icon { display: none; }
.site-nav a + a::before { content: ""; position: absolute; left: -12px; top: 50%; width: 1px; height: 14px; margin-top: -7px;
  background: var(--line); }
.hero, .page-banner { margin-top: 24px; }
.event-list li.empty { display: block; }
@media (max-width: 760px) {
  /* スマホのアイコン (2026-10-23, 「アイコンいらないですね」): no round icon in the page band, no icon in the green boxes and no
     mark before the side notes' titles; the words and the button start at the left edge. */
  .banner-icon, .info-card > svg, .aside-card h2 svg { display: none; }
  .info-card > div { flex-basis: 100%; }
  .info-card > .dark-button, .info-card > button { margin-left: 0; }
  .nav-icon { display: block; width: 20px; height: 20px; flex: none; color: var(--green); }
  .site-nav a + a::before { display: none; }
  .hero, .page-banner { margin-top: 12px; }
}

/* 未読の数とプロフィール (2026-10-23, 「通知アイコンはどの表示サイズでも不要」「LINEの通知みたいに、自分のアイコンの右上に小さい数字」
   「名前を押したらメニューを出さずにプロフィールへ、その中にダッシュボード・ログアウト・通知」) */
.me-avatar { position: relative; display: inline-flex; flex: none; }
.me-badge { position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--badge);
  color: var(--on-red); font: 600 12px/18px var(--sans); letter-spacing: 0; text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.temple-menu:hover .temple-menu-name { color: var(--green); }
/* 新着に気づく (2026-11-04): 受付 in the band with how many came, as the icon's badge; the home's two groups named;
   a row with something waiting tinted; 受付's chips with their counts, 新着 red when any came. */
#nav-review { position: relative; }
.nav-badge { display: inline-block; min-width: 18px; height: 18px; margin-left: 8px; padding: 0 4px; border-radius: 9px; background: var(--badge);
  color: var(--on-red); font: 600 12px/18px var(--sans); letter-spacing: 0; text-align: center; vertical-align: 2px; }
.status-group { margin: 16px 0 4px; padding: 0 4px; font-size: 13px; color: var(--ink-soft); letter-spacing: .06em; }
.status-group:first-child { margin-top: 0; }
a.status-row:has(.status-waiting) { background: var(--red-soft-3); }
a.status-row:has(.status-waiting) > span:nth-child(2) { font-weight: 600; }
.chip-count { display: inline-block; min-width: 1.6em; margin-left: 8px; padding: 0 8px; border-radius: 9px; background: var(--paper-2);
  color: var(--ink-soft); font: 600 12px/18px var(--sans); text-align: center; }
.chip-on .chip-count { background: var(--on-green-tint3); color: inherit; }
.chip-count.chip-new { background: var(--badge); color: var(--on-red); }
/* 自分のお寺の申請 (0175; 2026-11-06 「ボーダーで囲んだボックスに」→「名前を一番上に」): a box each — the 書式's name and its status
   at the top, what comes next under it (a green band when it is the temple's turn), the number and the day small at the foot. */
.app-list.app-cards { display: grid; gap: 12px; }
.app-card { display: block; padding: 16px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink);
  text-decoration: none; }
.app-card:hover { border-color: var(--green); background: var(--paper-2); }
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-card-name { min-width: 0; font-weight: 500; font-size: 16px; letter-spacing: .04em; line-height: 1.6; }
.app-card-head .app-badge { flex: none; margin-top: 2px; }
.app-card .app-next { margin: 8px 0 0; padding: 4px 12px; border-left: 3px solid var(--line-strong); font-size: 13px; color: var(--ink-soft); }
.app-card .app-next.is-mine { border-left-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.app-card-meta { margin: 8px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.filters .chips-note { flex-basis: 100%; margin: 2px 0 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 16px; }
.even-widths > .plain-button { min-width: calc(var(--even-letters) * 1.08em + 2.4em); justify-content: center; }
.note-list { display: grid; }
.note-item { display: grid; gap: 8px; padding: 12px 12px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--ink); }
.note-item small { justify-self: end; color: var(--muted); font-size: 12px; text-align: right; }  /* the day at the right, a little apart (2026-10-29) */
.note-item:hover { background: var(--paper-2); }
.note-unread { background: var(--green-soft-2); }
.note-unread span::before { content: "● "; color: var(--red); font-size: 10px; vertical-align: 2px; }
.note-empty { margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
.note-all { justify-self: start; margin-top: 12px; }
/* 通知の行き先 (2026-10-29): one about nothing to open is read where it is; read ones are tagged 「既読」 */
.note-stay { cursor: default; }
.note-stay.note-unread { cursor: pointer; }
.note-read { margin-left: 8px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 3px; font: normal 12px var(--sans);
  color: var(--muted); }

/* 宗門概要 (2026-10-23, 0139): the 組織図と職務概要 drawn from the sect's data, laid out as the sect's PDF on wide screens
   (宗会 left, 責任役員会 over 内局, 外局 right, the 部 in columns below, 関連団体 at the bottom right) and one box after
   another on phones. The colours of the headings are the PDF's. */
.page-grid-wide { grid-template-columns: minmax(0, 1fr); }
.page-grid-wide > .page-aside { display: none; }
.about-color-ink { --about-c: var(--about-ink); --about-t: var(--about-ink-t); }
.about-color-gray { --about-c: var(--about-gray); --about-t: var(--about-gray-t); }
.about-color-navy { --about-c: var(--about-navy); --about-t: var(--about-navy-t); }
.about-color-green { --about-c: var(--about-green); --about-t: var(--about-green-t); }
.about-color-purple { --about-c: var(--about-purple); --about-t: var(--about-purple-t); }
.about-color-slate { --about-c: var(--about-slate); --about-t: var(--about-slate-t); }
.about-color-vermilion { --about-c: var(--about-vermilion); --about-t: var(--about-vermilion-t); }
.about-head { margin: 4px 0 20px; text-align: center; }
.about-title { margin: 0; font-weight: 500; font-size: 32px; letter-spacing: .12em; }
.about-subtitle { margin: 8px 0 0; font-size: 18px; color: var(--ink-soft); letter-spacing: .1em; }
.about-chart { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 2.5fr) 84px minmax(0, 1fr);
  grid-template-areas: "assembly arrow1 board . ."
                       "assembly . executive arrow2 independent"
                       "departments departments departments departments affiliates";
  gap: 20px 0; align-items: start; }
.about-assembly { grid-area: assembly; }
.about-board { grid-area: board; }
.about-executive { grid-area: executive; }
.about-independent { grid-area: independent; }
.about-departments { grid-area: departments; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
  margin-right: 16px; align-items: stretch; }
.about-affiliates { grid-area: affiliates; }
.about-arrow1 { grid-area: arrow1; }
.about-arrow2 { grid-area: arrow2; }
.about-cell:not(.about-departments) > .about-region + .about-region { margin-top: 16px; }
.about-region, .about-block { overflow: hidden; background: var(--card); border: 1.5px solid var(--about-c, var(--ink));
  border-radius: 6px; }
.about-region-head { margin: 0; padding: 8px 12px; background: var(--about-c, var(--ink)); color: var(--on-swatch); font-weight: 500;
  font-size: 18px; letter-spacing: .14em; text-align: center; }
.about-region-head small { margin-left: 4px; font-size: 13px; letter-spacing: .04em; opacity: .92; }
.about-region-body, .about-block-body { display: grid; gap: 12px; padding: 12px 16px 16px; }
.about-composition { margin: 0; text-align: center; font-size: 16px; letter-spacing: .04em; }
.about-remark { margin: 0; font-size: 13px; color: var(--ink-soft); }
.about-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.about-unit { padding: 8px 12px; background: var(--about-unit-bg); border: 1px solid var(--line-strong); border-radius: 4px; text-align: center; }
.about-unit-name { margin: 0; font-size: 16px; letter-spacing: .1em; }
.about-unit-note { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.about-unit .about-remark { margin-top: 4px; }
.about-under { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.about-under .about-unit { background: var(--paper); }
.about-duties-head { margin: 2px 0 8px; padding: 4px 12px; background: var(--about-c, var(--ink)); color: var(--on-swatch); border-radius: 2px;
  font-size: 13px; letter-spacing: .16em; text-align: center; }
.about-duties ul, .about-items { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }
.about-duties li + li, .about-items li + li { margin-top: 4px; }
.about-departments .about-region { display: flex; flex-direction: column; }
.about-departments .about-region-body { flex: 1; align-content: start; }
.about-affiliates .about-region { border-style: dashed; }
.about-affiliates .about-units { grid-template-columns: 1fr; }
.about-arrow { align-self: center; display: grid; justify-items: center; gap: 2px; padding: 0 4px; text-align: center;
  font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; line-height: 1.4; }
.about-arrow b { font-size: 28px; line-height: 1; color: var(--ink); }
.about-arrow-down { display: none; }
.about-officers { margin-top: 8px; text-align: left; font-size: 13px; }
.about-officers summary { color: var(--green); cursor: pointer; }
.about-officer-list { margin: 8px 0 0; padding-left: 1.1em; line-height: 1.7; }
.about-block { margin-top: 24px; }
.about-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.about-role { padding: 16px 20px; border-left: 1px solid var(--line); }
.about-role:first-child { border-left: 0; }
.about-role-name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; letter-spacing: .08em; }
.about-role-name small { font-size: 14px; letter-spacing: .02em; }
.about-role-mark { width: 26px; height: 26px; flex: none; color: var(--about-t); }
.about-role-place { margin: 2px 0 8px 36px; font-size: 14px; color: var(--about-t); letter-spacing: .04em; }
.about-role-text { margin: 0; font-size: 14px; line-height: 1.8; }
.about-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.about-sections .about-block { margin-top: 0; }
.about-lead { margin: 0; font-size: 16px; line-height: 1.9; }
.about-officers-title { margin-top: var(--section-gap); }
.about-footnote { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
/* 宗門概要を直す */
.about-tabs { margin-top: 4px; }
.about-import { margin: 12px 0 20px; }
.about-imported { margin: 12px 0 4px; color: var(--green-dark); }
.about-manage-tree { list-style: none; margin: 12px 0 20px; padding: 0; }
.about-manage-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.about-manage-row.about-depth-2 { padding-left: 32px; }
.about-manage-row.about-depth-3 { padding-left: 60px; }
.about-manage-name { flex: 1; min-width: 0; font-size: 16px; }
.about-manage-row.row-muted .about-manage-name { color: var(--muted); }
.about-manage-row .actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* The buttons of a row as wide as the longest (「下に加える」), and a little room between the buttons at the top. */
.about-manage-row .actions .plain-button { min-width: calc(5 * 1.08em + 2.4em); justify-content: center; }
.manage-top { gap: 8px; }
@media (max-width: 1000px) {
  .about-chart { grid-template-columns: minmax(0, 1fr); gap: 12px;
    grid-template-areas: "assembly" "arrow1" "board" "executive" "arrow2" "independent" "departments" "affiliates"; }
  .about-departments { margin-right: 0; }
  .about-arrow { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; }
  .about-arrow-across { display: none; }
  .about-arrow-down { display: block; font-size: 24px; }
}
@media (max-width: 760px) {
  .about-title { font-size: 24px; letter-spacing: .06em; }
  .about-subtitle { font-size: 14px; }
  .about-region-head { font-size: 16px; }
  .about-role { border-left: 0; border-top: 1px solid var(--line); padding: 12px 16px; }
  .about-role:first-child { border-top: 0; }
  .about-manage-row { flex-wrap: wrap; }
  .about-manage-row.about-depth-2 { padding-left: 20px; }
  .about-manage-row.about-depth-3 { padding-left: 36px; }
}

/* ---- 寺院名簿の版 (0140): 読み込む → 違いを確かめる → 反映する、もとにした版、名簿の移り変わり ---- */
.roster-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .03em; }
.edition-counts { margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.edition-group { margin: 12px 0; border: 1px solid var(--line); background: var(--card); padding: 12px 16px; }
.edition-group summary { cursor: pointer; font-size: 16px; letter-spacing: .03em; color: var(--ink); }
.edition-group summary::marker { color: var(--green); }
.edition-group .table { margin-top: 12px; }
/* The buttons' cell stays a cell of the row (2026-11-06, 「反映しないの位置がずれますね」): as a flex box it did not
   stretch to a tall 変わる寺 row, so the button and the line under it fell out of step with the row. */
.edition-group td.actions { vertical-align: middle; }
.edition-group td.actions > * { margin: 3px 0 3px 8px; }
.edition-group td.actions:has(.field) { white-space: normal; text-align: left; }
.edition-group .actions .field { min-width: 240px; }
.status.edition-draft { color: var(--green); }
.status.edition-discarded { color: var(--muted); }
.change-list { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 14px; }
.change-list dt { color: var(--muted); }
.change-list dd { margin: 0; overflow-wrap: anywhere; }
.hand-mark { display: block; color: var(--gold-ink-3); font-size: 12px; }
.problem-list { margin: 8px 0 12px; padding-left: 20px; font-size: 14px; color: var(--red-ink-2); }
.notice-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 12px 0; padding: 12px 16px;
  border: 1px solid var(--green); background: var(--green-soft); }
.notice-box p { margin: 0; }
.saved-note { margin: 12px 0; color: var(--green); }
.roster-history { margin-top: 20px; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.history-head { margin: 0 0 8px; font-size: 14px; }
.same-jushoku { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.same-jushoku .field-hint { flex-basis: 100%; margin: 0; }
@media (max-width: 760px) {
  .change-list { grid-template-columns: minmax(0, 1fr); }
  .change-list dd { margin-bottom: 8px; }
}

/* ホームの護持企業など (0141, 2026-10-24 「ゆっくり横方向に流れる＆ループ」): one band under 資料庫. While the cards fit
   they stand in the middle; otherwise portal.js lines them up twice and moves the band left by one run, round again.
   Since 2026-10-29 (「止めるボタンはやめて、指で左右にスワイプ」「触ると止まる」) the band is a row one can move by hand:
   portal.js scrolls it a little at a time and waits while a finger, the pointer or the focus is on it. 「一覧を見る →」 at
   its lower right opens every card. Since 2026-11-05 (「おすすめの3つで」) it stops and glides one card at a time
   (portal.js), every card has the same shape (the mark, the logo's room, the name's line and the note's line in their own
   rows) and, while it moves, its two ends fade into the paper, so a card cut at an edge looks like more to come. */
.sponsors-head { display: flex; align-items: baseline; gap: 8px 16px; margin-bottom: var(--head-gap); }
.sponsors-head h2 { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: .1em; }
.sponsors-head p { margin: 0; font: 13px var(--sans); color: var(--muted); letter-spacing: .04em; }
.sponsors-frame { overflow-x: auto; overscroll-behavior-x: contain; }
.sponsors.is-flowing .sponsors-frame { scrollbar-width: none;  /* it moves of itself: no bar to drag */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 72px), transparent); }
.sponsors.is-flowing .sponsors-frame::-webkit-scrollbar { display: none; }
.sponsors-track { display: flex; width: max-content; margin: 0 auto; padding: 0; list-style: none; }
.sponsors.is-flowing .sponsors-track { margin: 0; }
.sponsor-card { flex: none; display: flex; width: 240px; margin-right: 16px; }
.sponsors:not(.is-flowing) .sponsor-card:last-child { margin-right: 0; }
.sponsor-box { position: relative; flex: 1; display: grid; grid-template-rows: auto 72px 21px 18px; align-content: start;
  gap: 8px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 3px; }
a.sponsor-box:hover { border-color: var(--green); }
.sponsor-kind { grid-row: 1; justify-self: start; padding: 0 8px; border: 1px solid var(--about-t, var(--ink-soft)); border-radius: 2px;
  color: var(--about-t, var(--ink-soft)); font: 12px/1.7 var(--sans); letter-spacing: .08em; }
.sponsor-logo { grid-row: 2; display: flex; align-items: center; justify-content: center; height: 72px; min-width: 0; }
.sponsor-logo img { display: block; max-width: 100%; max-height: 72px; object-fit: contain; }
.sponsor-logo-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 18px;
  line-height: 1.4; letter-spacing: .06em; text-align: center; }
.sponsor-name { grid-row: 3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 21px;
  letter-spacing: .04em; }
.sponsor-external { position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; color: var(--ink-soft); }
.sponsor-note { grid-row: 4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 18px;
  color: var(--ink-soft); }
.about-manage-name .sponsor-kind { display: inline-block; margin-right: 4px; vertical-align: middle; }
.sponsor-thumb { display: grid; place-items: center; flex: none; width: 96px; height: 48px; font-size: 12px; color: var(--muted);
  background: var(--paper-2); border-radius: 3px; }
.sponsor-thumb img { display: block; max-width: 96px; max-height: 48px; object-fit: contain; }
.sponsor-period { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.quiet-tag.sponsor-state-shown { color: var(--green); }
.quiet-tag.sponsor-state-ending { color: var(--red); }
.section-title .quiet-tag[class*="sponsor-state-"] { white-space: nowrap; }
.sponsor-period-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sponsor-logo-preview { width: 240px; padding: 8px; background: var(--paper-2); border-radius: 3px; }
/* 護持企業などの一覧 (2026-10-29): the same cards under their 区分, as many in a row as fit, every note whole. */
.sponsor-group + .sponsor-group { margin-top: var(--section-gap); }
.sponsor-group > .section-title { margin-top: 0; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0;
  list-style: none; }
.sponsor-grid .sponsor-card { width: auto; margin-right: 0; }
.sponsor-grid .sponsor-box { grid-template-rows: auto 72px auto auto; }
.sponsor-grid .sponsor-note { overflow: visible; white-space: normal; line-height: 1.5; }
@media (max-width: 760px) {
  .sponsors-head { flex-wrap: wrap; }
  .sponsors-head h2 { font-size: 20px; }
  .sponsors-head p { order: 3; flex: 1 1 100%; }  /* its own line under the heading and its line */
  .sponsor-card { width: 200px; margin-right: 12px; }
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sponsor-box { grid-template-rows: auto 56px 21px 18px; }
  .sponsor-grid .sponsor-box { grid-template-rows: auto 56px auto auto; }
  .sponsor-logo { height: 56px; }
  .sponsor-logo img { max-height: 56px; }
  .sponsor-period-fields { grid-template-columns: 1fr; }
  .sponsor-manage-row { flex-wrap: wrap; }
}

/* スマホの載せる・管理とホームの資料庫 (2026-10-24, 「直す、を修正へ」「ボタンの配置をもっと工夫したい」「レイアウトが崩れています」) */
.table td a.plain-button { color: var(--ink); text-decoration: none; }  /* a button in a list is a button, not an underlined link */
@media (max-width: 760px) {
  /* 項目: two equal columns across the panel. */
  .manage-group-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .manage-menu .manage-item { width: 100%; min-width: 0; }
  /* 「お寺を加える」 and the like across the width; the search: the 教区 on its own line, the words and 探す side by side. */
  .manage-top .dark-button { flex: 1; justify-content: center; }
  .inline-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .inline-search select { grid-column: 1 / -1; }
  .inline-search input { width: 100%; min-width: 0; }
  .inline-search button { white-space: nowrap; }
  /* 資料庫: the heading, its line and 「資料を探す →」 on one line, the words on their own line under them (as 護持企業など). */
  .library-head p { order: 3; flex: 1 1 100%; }
  /* A choice with a note (会員を登録する: お寺のアカウント／個人のアカウント): the note under the words, not squeezed beside them. */
  .check:has(> .check-note) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; margin-right: 0; }
  .check > .check-note { flex: 1 1 100%; padding-left: 28px; }
}
/* The lists of 載せる・管理 on phones and tablets (2026-10-24: at 768px the columns were squeezed to one letter and the
   会員 list was wider than the screen): one block per row — the name and its 修正 on the first line, the rest small under
   it; a row with several buttons puts them on a line of their own. */
@media (max-width: 1180px) {
  .manage-table thead { display: none; }
  .manage-table, .manage-table tbody { display: block; }
  .manage-table tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 3px; padding: 12px 4px;
    border-bottom: 1px solid var(--line); }
  .manage-table td { padding: 0; border: 0; }
  .manage-table td.cell-main { order: 1; flex: 1 1 0; min-width: 0; font-size: 16px; color: var(--ink); }
  .manage-table td.actions { order: 2; flex: none; margin-left: auto; }
  .manage-table tr::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .manage-table td:not(.cell-main):not(.actions) { order: 4; font-size: 13px; color: var(--ink-soft); }
  .manage-table td.cell-none { display: none; }  /* only 「—」 (portal.js markEmptyCells) */
  .manage-table td:not(.cell-main):not(.actions):not(.cell-none) ~ td:not(.cell-main):not(.actions) { margin-left: -8px; }
  .manage-table td:not(.cell-main):not(.actions):not(.cell-none) ~ td:not(.cell-main):not(.actions)::before { content: "・"; margin-right: 1px; color: var(--muted); }
  .manage-table td.actions:has(> :nth-child(2)) { order: 5; flex-basis: 100%; margin: 8px 0 0; text-align: left; white-space: normal; }
  .manage-table td.actions:has(> :nth-child(2)) > * { margin: 0 8px 8px 0; }
  /* 書式の設定's 決裁 in the small line under the name: 「決裁 総・庶・財・教」 (in the table its heading says it). */
  .forms-table td.cell-kessai .cell-cap { display: inline; margin-right: .35em; }
}

/* ---- 自分のお寺 (0143) ---- */
.own-temple-note { display: block; color: var(--green); font-size: 12px; }
/* The profile's 自分のお寺 (2026-10-29, 「表示が崩れているので綺麗に」「アイコンつけましょうか」): one temple a row — its mark
   and name (to its page) with the note under them at the left, 結び付きを終える at the right (under the name when the row is
   too narrow) — a line between rows, the notes apart, and room and a line before 結び付けるお寺. */
.own-temple-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
/* Two columns at every width (2026-10-29, 「ボタンを横へ。2カラム化がいいな」): the name and its note at the left, the
   button at the right. */
.own-temple { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); }
.own-temple-who { display: grid; gap: 2px; min-width: 0; }
.own-temple-name { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 16px; letter-spacing: .04em; color: var(--ink); }
.own-temple-name svg { flex: none; width: 18px; height: 18px; color: var(--green); }
.own-temple-name:hover { color: var(--green); }
.own-temple-who .cell-note { padding-left: 0; }  /* at the left edge, under the mark (「端まで寄せて」) */
.own-temple-end { flex: none; }
.own-temple-notes { display: grid; gap: 8px; margin: 12px 0 0; }
.own-temple-notes p { margin: 0; }
.own-temple-ask { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.own-temple-list + .own-temple-ask { padding-top: 0; border-top: 0; }  /* the list's last line is the line (no second one) */

/* 自分のお寺 (2026-11-08, 「殺風景すぎますね」): one card a temple — the mark at the left, 山号 over 寺名 and 教区・所在地 under it,
   how one is linked, and the way to its page at the foot. Two or three a row by the width, one on a phone. */
.my-temple-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.my-temple-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px 16px; padding: 24px 24px 20px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease; }
.my-temple-card:hover, .my-temple-card:focus-visible { border-color: var(--green); box-shadow: 0 6px 16px -10px var(--shadow-warm-45); }
.my-temple-names { display: grid; gap: 3px; min-width: 0; }
.my-temple-sango { font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); min-height: 1em; }
.my-temple-name { font-weight: 500; font-size: 24px; letter-spacing: .08em; }
.my-temple-where { font-size: 13px; color: var(--muted); }
.my-temple-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding-top: 12px;
  border-top: 1px dashed var(--line); }
.my-temple-tag { padding: 1px 12px; border: 1px solid var(--green-line); border-radius: 999px; background: var(--green-soft-2);
  font: 12px var(--sans); letter-spacing: .06em; color: var(--green); }
.my-temple-since { font-size: 12px; color: var(--muted); }
.my-temple-open { grid-column: 1 / -1; justify-self: end; font-size: 14px; color: var(--green); letter-spacing: .04em; }
.my-temple-card:hover .my-temple-open { text-decoration: underline; }

/* お寺の人 (0182): one person a row in four columns — お名前 (あなた・兼務 under it), 立場 (how linked under it), the rights as
   chips (a 代理's 提出 waiting for the telephone in the 朱 of a waiting row, its note under them), 変える; the columns named
   once above the rows. 2026-11-08 「散らかって見えるので、可能な限り工夫して見た目を整えて」: what can be changed waits in a
   panel under its row, opened by 変える; 足す and the record folded at the foot, each one line until opened. */
.staff-head, .staff-person { display: grid; grid-template-columns: minmax(0, 13.5rem) 7.5rem minmax(0, 1fr) auto; gap: 8px 16px; }  /* rem: the head's small words keep the rows' columns */
.staff-head { padding: 4px 0 8px; font: 12px var(--sans); letter-spacing: .1em; color: var(--muted); }
.staff-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.staff-person { align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }  /* rows read from their top line */
.staff-person > .staff-edit { grid-column: 1 / -1; }
.staff-who { display: grid; gap: 2px; min-width: 0; }
.staff-name { font-weight: 500; font-size: 16px; letter-spacing: .04em; overflow-wrap: anywhere; }
.staff-named { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.staff-me { padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font: 12px var(--sans); letter-spacing: .06em; color: var(--muted); }
.staff-via { font: 12px var(--sans); letter-spacing: .04em; color: var(--muted); }
.staff-also { font: 12px var(--sans); letter-spacing: .03em; color: var(--ink-soft); }  /* 兼務 (0184) */
.staff-also a { color: var(--green); }
/* 立場 and how linked as one box, a dotted line between them (2026-11-08 「この2列ですが、一括りにしてしまいましょう。間に罫線
   （点線）を入れて囲んでください」): the 住職 with its top in green and a green edge, 立場はまだ with a dashed edge. */
.staff-role { display: grid; align-self: start; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden;
  background: var(--card); text-align: center; }
.staff-position { display: block; padding: 3px 8px; background: var(--paper); font: 12px var(--sans); letter-spacing: .06em;
  color: var(--ink-soft); white-space: nowrap; }
.staff-role .staff-via { display: block; padding: 3px 8px; border-top: 1px dotted var(--line-strong); }
.staff-role-jushoku { border-color: var(--green); }
.staff-position.staff-jushoku { background: var(--green); color: var(--on-green); }
.staff-role-jushoku .staff-via { border-top-color: var(--green); }
.staff-role-unset { border-style: dashed; }
.staff-position.staff-position-unset { background: none; color: var(--muted); }
.staff-rights { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.staff-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-right { display: inline-flex; align-items: center; gap: 8px; padding: 2px 12px; border: 1px solid var(--green-line);
  border-radius: 6px; background: var(--green-soft-2); font-size: 13px; letter-spacing: .04em; }
.staff-right-pending, .staff-right-stopped { border-color: var(--red-line-2); background: var(--red-soft-3); color: var(--red-ink); }
.staff-right-none { border-style: dashed; background: none; color: var(--muted); }
.staff-right-all { padding: 2px 0; border-color: transparent; background: none; color: var(--ink-soft); }
.staff-right-all svg { width: 15px; height: 15px; flex: none; color: var(--green); stroke-width: 2; }
.chip-x { padding: 0 4px; border: 0; background: none; font: 12px var(--sans); color: var(--muted); text-decoration: underline;
  cursor: pointer; }
/* 外す: 24px high to press (照らし合わせ オ), the chip itself no taller (the extra reaches into its padding) */
.chip-x { display: inline-flex; align-items: center; min-height: 24px; margin: -3px -6px -3px 0; padding: 0 8px; }
.chip-x:hover { color: var(--red-ink); }
.staff-note { margin: 0; font: 12px/1.6 var(--sans); letter-spacing: .02em; color: var(--muted); }
.staff-rights > .staff-note { max-width: 34em; }
.staff-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.staff-act { justify-self: end; }
.staff-edit-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); font: 13px var(--sans); letter-spacing: .06em; color: var(--ink-soft); cursor: pointer;
  white-space: nowrap; }
.staff-edit-toggle:hover { border-color: var(--green); color: var(--green); }
.staff-edit-toggle[aria-expanded="true"] { border-color: var(--green-line); background: var(--green-soft-2); color: var(--green); }
.staff-turn { width: 14px; height: 14px; flex: none; transition: transform .2s; }
.staff-edit-toggle[aria-expanded="true"] .staff-turn, .staff-fold[open] > summary .staff-turn { transform: rotate(180deg); }
.staff-edit { display: grid; gap: 16px; margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); }
.staff-edit[hidden] { display: none; }
/* 2026-11-08 「このページをなんとかしたいね」: the panel as a form of one column, the name of each part over it */
.staff-edit-sec { display: grid; gap: 8px; }
.staff-edit-label { margin: 0; font: 13px var(--sans); letter-spacing: .06em; color: var(--ink-soft); }
.staff-edit-body { display: grid; gap: 8px; min-width: 0; }
.staff-edit-body > .form-actions { margin: 0; }
.staff-right-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.staff-right-list li + li { border-top: 1px solid var(--line); }
.staff-right-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 16px;
  cursor: pointer; }
.staff-right-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.staff-right-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.staff-right-words b { font-weight: 600; letter-spacing: .04em; }
.staff-right-note { flex-basis: 100%; font: 13px/1.6 var(--sans); letter-spacing: .02em; color: var(--muted); }
.staff-right-state { padding: 0 8px; border: 1px solid var(--red-line-2); border-radius: 999px; background: var(--red-soft-3);
  font: 12px var(--sans); color: var(--red-ink); }
/* 確かめること: the 代理 waiting for the telephone, above the people, for who confirms */
.staff-pending { margin: 8px 0 16px; padding: 12px 16px; border: 1px solid var(--red-line-2); border-left: 4px solid var(--red);
  border-radius: 6px; background: var(--red-soft-3); }
.staff-pending-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 500; letter-spacing: .06em; color: var(--red-ink); }
.staff-pending-title svg { width: 18px; height: 18px; flex: none; }
.staff-pending-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; }
.staff-pending-item + .staff-pending-item { border-top: 1px dashed var(--red-line-2); }
.staff-pending-who { flex: 1 1 18em; margin: 0; font-size: 14px; }
.staff-edit select { flex: 1 1 auto; width: auto; max-width: 100%; min-width: 0; min-height: 36px; padding: 8px 12px;
  border: 1px solid var(--field-line); border-radius: 3px; background: var(--card); font: 14px var(--serif); color: var(--ink); }
.staff-tool { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }  /* a select with its button */
.staff-edit .staff-tool { display: flex; gap: 8px; }  /* the select and its button, side by side as a pair */
.staff-edit .staff-tool select { flex: 0 1 16em; }
.staff-edit-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding-top: 16px; border-top: 1px dashed var(--line); }
.staff-edit-foot .field-hint { flex: 1 1 18em; margin: 0; }
.staff-edit-foot .danger-button { margin-left: auto; }  /* 結び付きを終える at the far end, as この下書きを捨てる */
.staff-foot-note { margin: 12px 0 0; }
.staff-closed-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.6; color: var(--gold-ink-2); }
.staff-closed-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.staff-fold { margin-top: 12px; }
.staff-fold + .staff-fold { margin-top: 4px; }
.staff-fold > summary { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; list-style: none; cursor: pointer;
  font-size: 14px; letter-spacing: .04em; color: var(--ink-soft); }
.staff-fold > summary::-webkit-details-marker { display: none; }
.staff-fold > summary svg:first-child { width: 16px; height: 16px; flex: none; color: var(--green); }
.staff-fold > summary:hover { color: var(--green); }
.staff-link > summary { color: var(--green); }
.staff-link-body { margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.staff-link-body .form-actions { margin-top: 0; }
.staff-event-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.staff-event { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 2px 16px; padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px; line-height: 1.55; }
.staff-event[hidden] { display: none; }
.staff-event-at { font: 12px var(--sans); letter-spacing: .02em; color: var(--muted); white-space: nowrap; padding-top: 1px; }
.staff-event-what { min-width: 0; overflow-wrap: anywhere; }
.staff-event-by { display: block; font: 12px var(--sans); letter-spacing: .03em; color: var(--muted); }
.staff-event-more { margin-top: 12px; font-size: 13px; }
@media (max-width: 760px) {
  .staff-head { display: none; }
  .staff-person { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who role" "rights act" "edit edit"; gap: 8px 12px;
    padding: 12px 0; }
  .staff-who { grid-area: who; }
  .staff-role { grid-area: role; justify-self: end; min-width: 7.5em; }  /* the box at the right, its words centred */
  .staff-rights { grid-area: rights; }
  .staff-act { grid-area: act; align-self: start; }
  .staff-person > .staff-edit { grid-area: edit; }
  .staff-edit { padding: 12px; }
  .staff-right-check { padding: 12px; }
  .staff-edit .staff-tool select { flex: 1 1 auto; }
  .staff-pending-item > .staff-confirm, .staff-pending-item .dark-button { width: 100%; justify-content: center; }
  .staff-event { grid-template-columns: minmax(0, 1fr); }
}
.app-sender { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.app-submit-row .app-send-note { flex: 1 1 100%; margin: 0; }
.proxy-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0; font-size: 16px; }
.proxy-ask svg { width: 16px; height: 16px; color: var(--green); }
.proxy-list li { flex-wrap: wrap; }

/* 申請・届出の決裁 (0144): the 決裁欄 as on the paper (受付日・総・庶・財・教・係・処理), never wider than the screen. */
.kessai-grid-wrap { margin: 12px 0; }
.kessai-grid { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--card); }
.kessai-grid th, .kessai-grid td { border: 1px solid var(--line-strong); text-align: center; padding: 8px 4px; overflow-wrap: anywhere; }
.kessai-grid th { font-family: var(--serif); font-weight: 600; background: var(--paper-2); }
.kessai-grid td { height: 76px; vertical-align: middle; font-size: 13px; }
.kessai-grid td span, .kessai-grid td small { display: block; }
.kessai-grid td small { color: var(--muted); font-size: 12px; }
.kessai-grid td small.kessai-seal { color: var(--red); }
.kessai-wait { color: var(--tag-kenshu); }
.kessai-back { color: var(--red); }
/* 外した欄 (回避, 0162): gray, not a seal. */
.kessai-excluded { color: var(--muted); }
.kessai-excluded span:first-child { display: inline-block; margin: 0 auto 2px; padding: 1px 8px; border: 1px solid var(--muted); font-family: var(--serif); }
.kessai-own-note { display: block; margin-left: 1.6em; }
.kessai-exclude .compact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* 宗派の管理者 (0163) */
.governance-now { font-weight: 600; color: var(--green); }
.governance-admins li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.governance-add { align-items: flex-end; flex-wrap: wrap; }
.kessai-none { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 10px, var(--paper-2) 10px 11px); }
.kessai-checks { display: grid; gap: 8px; }
.kessai-label { display: inline-block; min-width: 1.6em; padding: 0 4px; border: 1px solid var(--line-strong); text-align: center; font-family: var(--serif); }
.kessai-current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kessai-edit { margin-top: 12px; }
.kessai-edit summary { cursor: pointer; color: var(--green); }
.kessai-approve .form-actions { flex-wrap: wrap; }
@media (max-width: 760px) {
  .kessai-grid th, .kessai-grid td { padding: 4px 1px; font-size: 12px; }
  .kessai-grid td { height: 64px; }
  .kessai-grid td small { font-size: 10px; line-height: 1.4; }
}
/* 決裁の役職 (0144): a long name in a choice never widens the page on a phone. */
#manage-body .field { grid-template-columns: minmax(0, 1fr); }
#manage-body .field select { max-width: 100%; }
/* 行事・研修の日時 (2026-11-03): the day and the time (every 30 minutes) side by side, as wide as they need. */
.date-time { display: flex; flex-wrap: wrap; gap: 8px; }
.date-time input[type=date] { flex: 0 1 12em; min-width: 0; }
.date-time select { flex: 0 1 8em; min-width: 7em; }

/* ---- 書式の案内 (0145): 注意事項・添える書類・改定・まとめて読み込む ---- */
.form-card .form-name { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.form-card .form-name:hover { color: var(--green); text-decoration: underline; }
.form-revised, .form-only { flex: none; padding: 1px 8px; border-radius: 4px; font: 12px var(--sans); letter-spacing: .04em; white-space: nowrap; }
.form-revised { background: var(--tag-kenshu-bg); color: var(--tag-kenshu); }
.form-only { background: var(--tag-todoke-bg); color: var(--tag-todoke); }
.article-meta .form-revised { margin-left: 8px; }
.notes-list { margin: 4px 0 12px; padding-left: 1.4em; font-size: 16px; line-height: 1.8; }
.attach-list { list-style: none; margin: 8px 0 12px; padding: 0; }
/* 2026-11-08: the name the whole width on the first line, its mark and buttons on the second (no line between them); a row
   with no button has its mark beside the name (「場合によるのタグは別紙の横に」), its small words on one line. */
.attach-list li { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.attach-list li:first-child { border-top: 1px dashed var(--line); }  /* 2026-11-08 「書式第2号同意書の上にも…点線のボーダーを」 */
.attach-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.attach-need { flex: none; padding: 2px 8px; border-radius: 4px; background: var(--green); color: var(--on-green); font: 12px var(--sans); letter-spacing: .04em; }
.attach-need.attach-cond { background: var(--green-soft); color: var(--green-dark); }
.attach-name { min-width: 0; display: flex; flex-direction: column; }
.attach-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.attach-name b { font-weight: 500; }
.attach-name small { color: var(--muted); font-size: 13px; }
.form-guide { margin: 4px 0 12px; }
.form-guide > .plain-button { margin: 4px 0 8px; }
/* 添える書類の行 (2026-11-03, 「ここも見ずらいので工夫が必要」): a card of two lines, every choice under its own small name, the
   same places in every row whatever its 種類 (書式・資料・書類の名前 share one place), and この行を消す in one line. */
.attach-rows .attach-row { display: grid; gap: 8px; margin-bottom: 8px; padding: 12px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--paper-2); }
.attach-rows .attach-line { display: grid; gap: 8px 12px; align-items: end; }
.attach-rows .attach-line-top { grid-template-columns: 12em minmax(0, 1fr) auto; grid-template-areas: "kind target remove"; }
.attach-rows .attach-line-foot { grid-template-columns: minmax(0, 1fr) 11em 8em minmax(0, 1fr); grid-template-areas: "note relation need when"; }
.attach-rows .attach-cell { display: grid; gap: 3px; min-width: 0; }
.attach-rows .attach-cap { font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }
.attach-rows .attach-cell select, .attach-rows .attach-cell input { width: 100%; min-width: 0; }
.attach-rows .attach-at-kind { grid-area: kind; }
.attach-rows .attach-at-target { grid-area: target; }
.attach-rows .attach-remove { grid-area: remove; min-height: 40px; white-space: nowrap; }
.attach-rows .attach-at-note { grid-area: note; }
.attach-rows .attach-at-relation { grid-area: relation; }
.attach-rows .attach-at-need { grid-area: need; }
.attach-rows .attach-at-when { grid-area: when; }
.attach-rows .attach-row [hidden] { display: none; }
/* Under 860px the editor is narrower than its 760px: the 書式 under 種類, and 場合の説明 under 出し方・要るか. */
@media (max-width: 860px) {
  .attach-rows .attach-line-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kind remove" "target target"; }
  .attach-rows .attach-line-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "note note" "relation need" "when when"; }
}
.attach-rows > .plain-button { margin-top: 8px; }
.versions-box { margin-top: 16px; }
.versions-box li small { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .attach-name { min-width: 0; }
}
/* 新しく申請する (0145): a long 書式 name in the choice never widens the page on a phone; the guide wraps. */
#list-body .editor, #list-body .field { grid-template-columns: minmax(0, 1fr); }
#list-body .field select { max-width: 100%; }
.form-guide { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .form-revised, .form-only { white-space: normal; }
}

/* ---- 表示の見直し (2026-10-24, 「ズレや謎のスペースなど、文字のバランスを調整」「リンクが分かりにくい箇所」「高さや幅も」):
   every page measured at 1366・768・375px (~/oritas-practice/w1tools/layout_audit.py) and these put right. ---- */

/* 文字の折れ方: headings and short names break between phrases into lines of even length; a paragraph never ends with one
   or two characters alone on its last line. The longhands only, so that a nowrap elsewhere stays nowrap. */
h1, h2, h3, .box-title, .section-title, .banner-title, .info-card b, .news-title, .event-title, .app-main b, .form-card .form-name,
.attach-name b, .faq-item summary, .temple-head h1, .tab, .manage-table td.cell-main { text-wrap-style: balance; word-break: auto-phrase; }
.quiet-tag { white-space: nowrap; }  /* 「宗会など（左）」「公開中」: a short mark moves whole to the next line */
p, li, dd, .field-hint, .check-note, .cell-note, .attention-text, .app-main small { text-wrap-style: pretty; }
.banner-lead, .box-lead, .page-lead, .library-head p, .sponsors-head p { word-break: auto-phrase; }  /* short leads: between phrases */
.table th { white-space: nowrap; }  /* 「状態」「原本」 were broken into one letter a line */

/* 帯のメニュー on tablets: every page in sight on one line from edge to edge, the letters a little closer (2026-10-26, 案1:
   on two lines, 宗門概要 alone had been left on the second; 宗門概要・受付・載せる・管理 were out of sight before 10-24). */
@media (min-width: 761px) and (max-width: 1180px) {
  /* The band's title is never covered: the search field and one's name give way first (at 768px a long name pushed the
     search field over 「宗内ポータル」). */
  .site-brand { flex: none; }
  .site-title { font-size: 28px; }
  .header-tools { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 16px; }
  .site-search { flex: 0 1 214px; min-width: 140px; }
  .temple-menu { min-width: 0; font-size: 16px; }
  .temple-menu-name { max-width: 7em; }
  .site-nav { flex-wrap: nowrap; justify-content: space-between; column-gap: 8px; }  /* a 宗務本院担当's ten at 761px */
  .site-nav a { padding: 12px 1px 12px; font-size: 16px; letter-spacing: .02em; }
  .site-nav a + a::before { display: none; }
  .library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 要確認: the link under the words (the words had been squeezed into a narrow column between the mark and the link). */
  .attention { flex-wrap: wrap; row-gap: 4px; }
  .attention-text { flex: 1 1 0; min-width: 0; }
  .attention > .more-link { flex-basis: 100%; text-align: right; }
}

/* 写真の帯: the words never run into the photo on wide screens; on phones the photo stays faint behind the words. */
.banner-text { max-width: 600px; }
@media (max-width: 760px) {
  .hero h1 { font-size: 24px; letter-spacing: .04em; }
  .hero-image { opacity: .35; }
  .page-banner::after { opacity: .3; }
}

/* 要確認 on phones: the red mark on its own line, the words across the whole width, the link under them. */
@media (max-width: 760px) {
  .attention { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 8px; padding: 12px 16px; }
  .attention-text { padding-left: 0; border-left: 0; letter-spacing: .04em; line-height: 1.7; }
  .attention > .more-link { justify-self: end; white-space: normal; text-align: right; }
}

/* 提出・確認状況 on phones: 「回答済のお問い合わせ」 on one line. */
@media (max-width: 760px) {
  .status-box { padding: 12px 12px 16px; }
  .status-row { grid-template-columns: 22px minmax(0, 1fr) auto 12px; gap: 12px; padding: 12px 12px; letter-spacing: .04em; }
  .status-row svg { width: 20px; height: 20px; }
}

/* 絞り込み on phones: the chips of a row in even columns across the width instead of a ragged right edge. */
@media (max-width: 760px) {
  .filters.even-widths { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--even-letters) * 14px + 34px), 1fr)); }
  .filters.even-widths > .chip { min-width: 0; padding-left: 8px; padding-right: 8px; }
  /* A chip with its number keeps the number on its line (2026-11-06: 「宗務本院で手続き中」's fell under it). */
  .filters.even-widths > .chip:has(.chip-count) { white-space: nowrap; font-size: 12px; letter-spacing: 0; }
  .filters.even-widths > .chip:has(.chip-count) .chip-count { margin-left: 4px; }
}

/* 押しやすさ (phones): every link and button at least about 32px high — the search field the whole height of its frame,
   the small 「… →」 links, the names in lists and the folding lines (the foot's menu, in three columns, went on 2026-10-29). */
@media (max-width: 760px) {
  .site-search input { align-self: stretch; }
  .more-link, .file-link, .form-card .form-name { padding-top: 8px; padding-bottom: 8px; }
  .form-card .form-name { margin-top: -7px; margin-bottom: -7px; }
  .table td a:not(.plain-button), .icon-facts dd a:not([class]) { padding-top: 8px; padding-bottom: 8px; }  /* inline: room to press, the lines unmoved */
  summary { padding-top: 4px; padding-bottom: 4px; }
}

/* 小さすぎる文字: 12px at the least for words one reads (the count on one's icon and the PDF mark are marks, not words). */
.field-optional, .category-tile small, .mini-date small, .soon-tile small, .footer-copy, .page-link-note { font-size: 12px; }

/* 余白: no room kept for a message line that is still empty, nor for an empty row of filters; 受理 notes one under the other. */
.form-status:empty { min-height: 0; }  /* still in place (it is read aloud when its words come), only without height */
.page-main > .filters:empty { margin: 0; }
.app-files:empty, .same-jushoku:empty { margin: 0; }
p.app-accepted { display: block; width: fit-content; margin: 8px 0; }

/* 手順 in a side note: one numbered line each. */
.aside-steps { margin: 0 0 12px; padding-left: 1.5em; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.aside-steps li + li { margin-top: 4px; }
.aside-steps li::marker { color: var(--green); }

/* 寺院情報 tiles: a long note wraps instead of ending in 「…」. */
.category-tile small { white-space: normal; overflow: visible; line-height: 1.5; }
.mine-box p.muted, .article-card > p.muted { font-size: 14px; line-height: 1.8; }  /* the grey notes under a card, as the side notes */

/* 入力: a check box is a box (not the 40px of a text field); a long choice keeps its box at the first line; the 教区 of
   「見せる範囲」 in even columns; 「保存」 beside a name never broken; the buttons over a list wrap whole. */
.field input[type=checkbox], .field input[type=radio] { min-height: 0; padding: 0; }
.check { align-items: flex-start; }
.check > input[type=checkbox], .check > input[type=radio] { flex: none; margin: 4px 0 0; }
.check > .check-note { align-self: center; }
.check > .check-name { flex: none; white-space: nowrap; }  /* 会員を登録する: お寺のアカウント／個人のアカウント (2026-11-27) */
.unit-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5em, 1fr)); gap: 4px 12px; }  /* two columns on phones */
.unit-checks .check { margin-right: 0; }
.unit-row button { flex: none; white-space: nowrap; }
.manage-top { flex-wrap: wrap; }
.manage-top > a, .manage-top > button { white-space: nowrap; }
@media (max-width: 760px) {
  .manage-top > a, .manage-top > button { flex: 1 1 auto; justify-content: center; }
  .tab { display: flex; align-items: center; justify-content: center; }
  .check > input[type=checkbox], .check > input[type=radio] { width: 18px; height: 18px; margin-top: 3px; }
  .profile-actions.even-widths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-actions.even-widths > .plain-button { min-width: 0; }
}
/* The search rows: the words, the 教区 and 探す all 40px high. */
.inline-search input, .inline-search select, .inline-search button { height: var(--control-h); min-height: var(--control-h); }
.inline-search input, .inline-search select { padding-top: 0; padding-bottom: 0; }

/* リンク: a 書式's name and the names in the facts of a page look like links (green, a faint line under them). */
.form-card .form-name, .icon-facts dd a:not([class]), .plain-list a:not([class]) { color: var(--green-dark); text-decoration: underline;
  text-decoration-color: var(--green-underline); text-underline-offset: 3px; }
.form-card .form-name:hover, .icon-facts dd a:not([class]):hover, .plain-list a:not([class]):hover { color: var(--green);
  text-decoration-color: currentColor; }
/* 大本山萬福寺のお知らせ on wide screens: a long title on two lines instead of cut off with 「…」. */
@media (min-width: 761px) {
  .head-news-list .news-title { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.6; }
}

/* 一覧の表 on wide screens: the short columns of 書式の設定 on one line; the 会員's three buttons as wide as their words,
   so that the names keep their room. */
@media (min-width: 1181px) {
  .forms-table td:nth-child(1), .forms-table td:nth-child(3), .forms-table td:nth-child(4), .forms-table td:nth-child(5),
  .forms-table td:nth-child(7) { white-space: nowrap; }
  .forms-table td.cell-kessai .cell-cap { display: none; }
  .manage-table td.actions:has(> :nth-child(3)) > .plain-button { min-width: 0; }
}

/* 寺院名簿の備考 (0147): one person a line, as written. */
.icon-facts dd.lines, .change-list dd { white-space: pre-line; }

/* 支院 (0148): whose 支院長's seal an application needs (the temple's 支院 and the 院's 住職). */
p.app-branch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0; padding: 12px 16px; border-radius: 6px;
  background: var(--green-soft); font-size: 14px; }
p.app-branch b { font-weight: 600; color: var(--green-dark); }
p.app-branch small { flex-basis: 100%; color: var(--ink-soft); font-size: 13px; }
/* 支院長の確認 (0149): the 院 a 院主 confirms for, above the 書式 */
.confirm-as { margin: 8px 0 0; font-size: 16px; font-weight: 600; color: var(--green-dark); }
.app-branch-confirm .field { grid-template-columns: minmax(0, 1fr); }  /* a long 院 name never widens the page on a phone */
.app-branch-confirm select { max-width: 100%; }
p.app-branch .plain-button.small { padding: 2px 12px; }

/* 宗報のバックナンバー (0151, 表紙で並べる 0152): the newest issue with its cover and the search at the top, the まとまり
   as cards with the cover of their first issue, and the issues of one まとまり as covers under their years (元号の年), with
   a narrow bar to move (年代へ・第□号へ). Scans are grey on white: multiplied into the paper, they read as printed on it.
   Found pages carry a few words of the text read from the scan, the words looked for marked. */
.shuho-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; margin: 0 0 var(--section-gap); }
/* 最新号 (2026-10-29): 最新号 and its line across the card, the words left and the cover right (as the home page's); since
   2026-11-06 (「左カラムに入れちゃっていいんじゃないか」) 紙面を開く under the words, beside the cover. */
.shuho-latest { display: grid; grid-template-columns: minmax(0, 1fr) 184px; gap: 0 32px; padding: 28px 32px; background: var(--card);
  border: 1px solid var(--line); border-radius: 4px; }
.shuho-latest > .shuho-eyebrow { grid-column: 1 / -1; margin: 0 0 16px; }
.shuho-latest-text { align-self: center; min-width: 0; }
.shuho-latest-actions { margin-top: 20px; }
.shuho-latest-cover { display: block; align-self: start; }
.shuho-cover { position: relative; display: block; aspect-ratio: 210 / 297; overflow: hidden; background: var(--sheet);
  border: 1px solid var(--line-strong); box-shadow: 0 1px 0 var(--shadow-03), 0 10px 20px -14px var(--shadow-warm-45); }
.shuho-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; mix-blend-mode: multiply;
  filter: sepia(.14) contrast(1.03); }
.shuho-cover-no { display: none; }
.shuho-cover.is-blank { display: flex; align-items: center; justify-content: center; background: var(--paper-2); }
.shuho-cover.is-blank .shuho-cover-no { display: block; padding: 0 8px; font-size: 16px; letter-spacing: .08em; color: var(--ink-soft);
  text-align: center; }
.shuho-cover .shuho-badge { position: absolute; top: 6px; left: 6px; }
.shuho-eyebrow { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; font: 12px var(--sans); letter-spacing: .24em;
  color: var(--green); }
.shuho-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.shuho-latest-title { margin: 0 0 8px; font-weight: 500; font-size: 32px; letter-spacing: .12em; line-height: 1.35; }
.shuho-latest-title small { display: block; font-size: 16px; letter-spacing: .2em; color: var(--ink-soft); }
.shuho-when { margin: 0; font-size: 16px; letter-spacing: .04em; color: var(--ink-soft); }
.shuho-meta { margin: 2px 0 0; font: 13px var(--sans); color: var(--muted); }
.shuho-open-main .button-icon { width: 15px; height: 15px; margin-left: 8px; }
.shuho-span { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px;
  line-height: 1.9; color: var(--ink-soft); }
.shuho-find { align-self: start; padding: 28px 28px 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; }
.shuho-find h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-weight: 500; font-size: 18px; letter-spacing: .1em; }
.shuho-find h2 svg { width: 20px; height: 20px; color: var(--green); }
.shuho-find p { margin: 0 0 16px; font: 13px/1.8 var(--sans); color: var(--ink-soft); }
.shuho-find form { display: grid; gap: 12px; }
.shuho-find input, .shuho-find select { width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--field-line);
  border-radius: 3px; background: var(--card); font: 16px var(--serif); color: var(--ink); }
.shuho-find-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.shuho-find .dark-button { height: 44px; padding: 0 24px; }
.shuho-find small { display: block; margin-top: 12px; font: 12px/1.8 var(--sans); color: var(--muted); }

/* 収めている宗報 (2026-10-29, 「スライドしないでもタップ出来るように」「単純に大きさ」): as the 年代 of これより前の号 — the name
   large, its years and issues small, no cover, the one shown in green — four in a row, two by two on phones. */
.shuho-series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 var(--section-gap); }
.shuho-s { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; padding: 8px 16px 8px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); }
.shuho-s:hover { border-color: var(--green); }
.shuho-s-name { font: 16px var(--serif); letter-spacing: .06em; line-height: 1.5; }
.shuho-s-sub { font: 12px/1.6 var(--sans); letter-spacing: .02em; color: var(--muted); }
.shuho-s.is-on { border-color: var(--green); background: var(--green); color: var(--on-green-white); }
.shuho-s.is-on .shuho-s-sub { color: var(--on-green-sub); }

.shuho-shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 4px; }
.shuho-shelf-head h2 { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: .1em; }
.shuho-shelf-head span { font: 13px var(--sans); color: var(--muted); }
.shuho-note { margin: 2px 0 8px; font: 13px/1.8 var(--sans); color: var(--ink-soft); }
.shuho-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px 20px; margin: 8px 0 0; padding: 12px 0;
  background: var(--paper); border-bottom: 1px solid var(--line); }
.shuho-eras { display: flex; flex: 1 1 auto; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.shuho-eras::-webkit-scrollbar { display: none; }
.shuho-eras b { flex: none; padding: 0 4px 0 12px; font: 600 12px var(--sans); letter-spacing: .12em; color: var(--green); }
.shuho-eras b:first-child { padding-left: 0; }
.shuho-era { flex: none; padding: 4px 8px; border: 0; border-radius: 3px; background: none; font: 14px var(--serif);
  color: var(--ink-soft); white-space: nowrap; cursor: pointer; }
.shuho-era:hover { background: var(--green-soft); color: var(--green-dark); }
.shuho-goto { display: flex; flex: none; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-soft); }
.shuho-goto input { width: 4.6em; height: 34px; padding: 0 8px; border: 1px solid var(--field-line); border-radius: 3px;
  background: var(--card); font: 16px var(--serif); text-align: center; }
.shuho-goto .plain-button { height: 34px; }
.shuho-goto .form-status { flex-basis: 100%; text-align: right; font: 12px var(--sans); }
.shuho-goto .form-status:empty { display: none; }
.shuho-missing { margin: 12px 0 0; font: 12px/1.8 var(--sans); color: var(--muted); }
.shuho-year { padding: 28px 0 8px; scroll-margin-top: 64px; }
.shuho-year-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.shuho-year-head h3 { margin: 0; font-weight: 500; font-size: 18px; letter-spacing: .1em; }
.shuho-year-head span { font: 13px var(--sans); letter-spacing: .06em; color: var(--muted); }
.shuho-year-head::after { content: ''; flex: 1; align-self: center; height: 1px; background: var(--line); }
.shuho-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.shuho-card { min-width: 0; scroll-margin-top: 120px; }
.shuho-card-link { display: block; color: inherit; }
.shuho-card-link:hover .shuho-cover { transform: translateY(-3px); box-shadow: 0 16px 24px -16px var(--shadow-warm-60); }
@media (prefers-reduced-motion: no-preference) { .shuho-card-link .shuho-cover { transition: transform .18s, box-shadow .18s; } }
.shuho-card-no { display: block; margin-top: 12px; font-size: 16px; letter-spacing: .06em; overflow-wrap: anywhere; }
.shuho-card-date { display: block; font: 12px var(--sans); color: var(--muted); }
.shuho-card.is-gap .shuho-cover { display: flex; align-items: center; justify-content: center; background: none; box-shadow: none;
  border-style: dashed; font: 12px var(--sans); color: var(--muted); }
.shuho-card.is-gap .shuho-card-no { color: var(--muted); }
.shuho-card.is-target .shuho-cover { outline: 3px solid var(--green); outline-offset: 3px; }
/* Past the newest covers (これより前の号): the older years by 年代, one at a time, the issues as cards — a mark at the top
   (号外・特報 and the like beside it), the line, the day, and a foot with the pages and size; the 年代 chosen and the card
   jumped to (第□号へ) in the site's green (2026-10-28). */
.shuho-index { margin-top: var(--section-gap); scroll-margin-top: 110px; }
.shuho-index-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px 0 0; border-top: 2px solid var(--ink);
  font: 13px/1.7 var(--sans); color: var(--ink-soft); }
.shuho-index-head b { font: 500 18px var(--serif); letter-spacing: .1em; color: var(--ink); }
.shuho-index-eras { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 8px; margin: 16px 0 4px; }
.shuho-index-era { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 16px 8px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--card); font: 16px var(--serif); letter-spacing: .06em; color: var(--ink); text-align: left;
  white-space: nowrap; cursor: pointer; }
.shuho-index-era small { font: 12px var(--sans); letter-spacing: .02em; color: var(--muted); }
.shuho-index-era:hover { border-color: var(--green); }
.shuho-index-era[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--on-green-white); }
.shuho-index-era[aria-pressed="true"] small { color: var(--on-green-sub); }
.shuho-issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 20px 16px; margin: 0; padding: 0; list-style: none; }
.shuho-issue { min-width: 0; scroll-margin-top: 130px; }
.shuho-issue-link, .shuho-issue.is-gap { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); color: inherit;
  box-shadow: 0 1px 2px var(--shadow-card-05), 0 12px 22px -18px var(--shadow-card-50); }
.shuho-issue-body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 16px 16px; }
/* The mark beside 第◯◯号 and the day under the number (号外・特報… at its right), no line of its own for the mark
   (2026-10-29, 「アイコンを第◯◯号の横に置けば高さも減って良さそう」). */
.shuho-issue-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shuho-issue-head .shuho-issue-no { min-width: 0; }
.shuho-issue-day { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; padding-left: 40px; }
.shuho-issue-icon { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--green-soft); color: var(--green); }
.shuho-issue-icon svg { width: 17px; height: 17px; }
.shuho-issue.has-badge .shuho-issue-icon { background: var(--tag-kenshu-bg); color: var(--tag-kenshu); }
.shuho-issue-badge { min-width: 0; padding: 1px 8px; border-radius: 999px; background: var(--tag-kenshu-bg); color: var(--tag-kenshu);
  font: 12px var(--sans); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shuho-issue-no { font-size: 18px; font-weight: 500; letter-spacing: .05em; line-height: 1.4; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.shuho-issue-date { font: 13px var(--sans); letter-spacing: .04em; color: var(--muted); }
.shuho-issue-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px;
  background: var(--paper-2); font: 12px var(--sans); letter-spacing: .03em; color: var(--muted); }
.shuho-issue-foot svg { width: 14px; height: 14px; flex: none; }
.shuho-issue-link:hover { border-color: var(--green); box-shadow: 0 1px 2px var(--shadow-card-05), 0 16px 26px -16px var(--shadow-card-55); }
.shuho-issue-link:hover .shuho-issue-foot { color: var(--green); }
.shuho-issue.is-gap { border-style: dashed; background: none; box-shadow: none; }
.shuho-issue.is-gap .shuho-issue-icon { background: var(--paper-2); color: var(--muted); }
.shuho-issue.is-gap .shuho-issue-no { color: var(--muted); }
.shuho-issue.is-gap .shuho-issue-foot { background: none; border-top: 1px dashed var(--line-strong); }
.shuho-issue.is-target .shuho-issue-link { border-color: var(--green); background: var(--green); color: var(--on-green-white); }
.shuho-issue.is-target .shuho-issue-date, .shuho-issue.is-target .shuho-issue-foot { color: var(--on-green-sub2); }
.shuho-issue.is-target .shuho-issue-foot { background: var(--on-green-tint); }
.shuho-issue.is-target .shuho-issue-icon { background: var(--on-green-tint2); color: var(--on-green-white); }
@media (prefers-reduced-motion: no-preference) {
  .shuho-issue-link { transition: border-color .15s, box-shadow .15s, transform .15s, background-color .3s; }
  .shuho-issue-link:hover { transform: translateY(-2px); }
}

.shuho-results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 4px; padding: 0 0 12px;
  border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.shuho-results-head h3 { margin: 0; font-weight: 500; font-size: 18px; letter-spacing: .1em; }
.shuho-results-head span { font: 13px var(--sans); color: var(--muted); }
.shuho-results-head .plain-button { margin-left: auto; }
.shuho-hits { margin: 0; padding: 0; list-style: none; }
.shuho-hit { display: grid; grid-template-columns: 64px minmax(0, 1fr) 11em; gap: 8px 20px; align-items: start; padding: 16px 0;
  border-bottom: 1px solid var(--line); }
.shuho-hit:last-child { border-bottom: 0; }
.shuho-hit-cover { display: block; grid-row: 1 / span 2; }
.shuho-hit.is-plain { grid-template-columns: minmax(0, 1fr) 11em; }  /* the header's search: no cover */
.shuho-hit.is-plain .shuho-hit-actions { grid-column: 2; }
.shuho-hit.is-plain .shuho-excerpt { grid-column: 1; }
.shuho-hit-cover .shuho-cover { box-shadow: none; }
.shuho-hit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; min-width: 0; }
.shuho-hit-sub { font: 12px var(--sans); color: var(--muted); }
.shuho-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.shuho-headline { font-size: 16px; overflow-wrap: anywhere; }
.shuho-hit .shuho-headline { font-size: 18px; letter-spacing: .06em; }
.shuho-badge { flex: none; padding: 1px 8px; border-radius: 3px; background: var(--tag-kenshu-bg); color: var(--tag-kenshu);
  font: 12px var(--sans); letter-spacing: .06em; }
.shuho-excerpt { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.85; color: var(--ink-soft); overflow-wrap: anywhere; }
.shuho-excerpt mark { padding: 0 2px; background: var(--highlight); color: var(--ink); }
/* 該当ページを開く・全体を開く (2026-10-29): one above the other, of one width */
.shuho-hit-actions { display: flex; flex-direction: column; gap: 8px; grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.shuho-hit-actions .shuho-open { justify-content: center; }
.shuho-open { white-space: nowrap; }
.shuho-open .button-icon { width: 14px; height: 14px; }
.search-section .shuho-hits { margin-top: 4px; }
/* 本文を探した結果を年代で分け、番号で送る (2026-10-29, 0159): the chips are those of 「これより前の号」. */
.shuho-hit-eras { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin: 16px 0 8px; }
.number-pager { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 24px 0 8px; }
.number-pager-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.number-pager-page, .number-pager-step { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 3px; background: var(--card); font: 16px var(--serif); color: var(--ink); cursor: pointer; }
.number-pager-step { font-size: 20px; line-height: 1; }
.number-pager-page:hover, .number-pager-step:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.number-pager-page[aria-current="page"] { border-color: var(--green); background: var(--green); color: var(--on-green-white); cursor: default; }
.number-pager-step:disabled { cursor: default; }  /* and .pager-off: not shown (照らし合わせ イ) */
.number-pager-gap { min-width: 14px; text-align: center; color: var(--muted); }
.number-pager-status { margin: 0; font: 12px var(--sans); color: var(--muted); }
@media (max-width: 760px) {
  .number-pager-row { gap: 4px; }
  .number-pager-page, .number-pager-step { min-width: 36px; height: 36px; padding: 0 8px; }
}
.shuho-count { margin: 8px 0; font-size: 14px; }
.shuho-progress { width: 100%; height: 10px; accent-color: var(--green); }
td.shuho-date, td.shuho-status { white-space: nowrap; }
@media (max-width: 1180px) {
  .shuho-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shuho-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shuho-latest { grid-template-columns: minmax(0, 1fr) 108px; gap: 0 20px; padding: 20px; }
  .shuho-latest > .shuho-eyebrow { margin-bottom: 12px; }
  .shuho-latest-actions { margin-top: 16px; }
  .shuho-latest-title { margin: 0 0 4px; font-size: 20px; }
  .shuho-latest-title small { font-size: 13px; }
  .shuho-when { font-size: 14px; }
  .shuho-meta { margin-bottom: 16px; }
  .shuho-open-main { width: 100%; justify-content: center; }
  .shuho-span { margin-top: 16px; font-size: 13px; }
  .shuho-find { padding: 20px; }
  .shuho-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* all four in sight, no sideways row */
  .shuho-shelf-head h2 { font-size: 20px; }
  .shuho-bar { flex-wrap: wrap; gap: 4px 12px; padding: 8px 0 8px; }
  .shuho-eras { flex: 1 1 100%; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .shuho-goto .form-status { text-align: left; }
  .shuho-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .shuho-card-no { margin-top: 8px; font-size: 14px; }
  .shuho-index-head b { flex: 1 1 100%; font-size: 18px; }
  .shuho-index-eras { display: flex; flex-wrap: nowrap; margin: 16px -16px 0; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; }
  .shuho-index-eras::-webkit-scrollbar { display: none; }
  .shuho-index-era { flex: none; }
  .shuho-issues { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shuho-issue-body { padding: 12px 12px 12px; }
  .shuho-issue-head { gap: 8px; }
  .shuho-issue-day { padding-left: 36px; }
  .shuho-issue-icon { width: 26px; height: 26px; border-radius: 7px; }
  .shuho-issue-icon svg { width: 15px; height: 15px; }
  .shuho-issue-no { font-size: 16px; }
  .shuho-issue-foot { padding: 8px 12px; font-size: 12px; }
  .shuho-hit { grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; }
  .shuho-hit-cover { grid-row: 1 / span 3; }
  .shuho-excerpt { grid-column: 2; }
  .shuho-hit-actions { flex-direction: row; flex-wrap: wrap; grid-column: 2; grid-row: auto; margin-top: 4px; }
  .shuho-hit.is-plain { grid-template-columns: minmax(0, 1fr); }
  .shuho-hit.is-plain .shuho-hit-actions { grid-column: 1; }
  .shuho-hit-actions .shuho-open { flex: 1 1 auto; }  /* side by side, or one a line, the line's width either way */
  .shuho-results-head h3 { flex: 1 1 100%; font-size: 18px; }
}
@media (max-width: 400px) {  /* the newest issue on a narrow phone: its day and its button on one line each */
  .shuho-latest { grid-template-columns: minmax(0, 1fr) 86px; gap: 0 16px; padding: 16px; }
  .shuho-latest-title { font-size: 20px; }
  .shuho-when { font-size: 13px; }
  .shuho-open-main { padding-inline: 12px; white-space: nowrap; }
}

/* ---- デザインの見直し 案5・案6 (2026-10-26) ---- */

/* ホームの宗報 (案5): the newest issue under よく使う手続き — its line and day, a small cover, 紙面を開く — and how far the
   宗報 here reach; the cover as on the 宗報 page. Since 2026-10-29 (「サムネイルは左より右の方がいい」): 最新号 and its line
   across the card, the words at the left and the cover at the right; 紙面を開く and 本文から探す side by side under the words
   (2026-11-06, 「紙面を開くと本文から探すは左カラムに入れちゃっていいんじゃないか」), beside the cover. */
.home-shuho-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 0 28px; align-items: start;
  padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.home-shuho-card > .shuho-eyebrow { grid-column: 1 / -1; margin: 0 0 12px; }
.home-shuho-text { align-self: center; min-width: 0; }
.home-shuho-cover { display: block; }
.home-shuho-title { margin: 0 0 4px; font-weight: 500; font-size: 24px; letter-spacing: .1em; line-height: 1.35; }
.home-shuho-title small { display: block; font-size: 13px; letter-spacing: .2em; color: var(--ink-soft); }
.home-shuho-card .shuho-when { font-size: 14px; }
.home-shuho-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.home-shuho-actions .button-icon { width: 14px; height: 14px; margin-left: 4px; }
.home-shuho-span { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px;
  line-height: 1.8; color: var(--ink-soft); }
@media (max-width: 760px) {
  .home-shuho-card { grid-template-columns: minmax(0, 1fr) 88px; gap: 0 16px; padding: 16px; }
  .home-shuho-title { font-size: 20px; }
}

/* 載せる・管理 (案6). The band names the item open (portal.js). On wide screens the items stand in a column at the left
   under their group's name, the one open marked in green, and the item's own page fills the rest on the paper; tablets
   and phones keep the buttons over the page. The boxes inside a page become headings with a fine line, as elsewhere. */
#manage-body > .panel-box { margin-top: 28px; padding: 0; background: none; border: 0; border-radius: 0; }
#manage-body > .panel-box:first-child { margin-top: 8px; }
#manage-body > .panel-box > .box-title { gap: 12px; margin-top: 0; }
#manage-body > .panel-box > .box-title::after { content: ""; flex: 1 1 24px; min-width: 24px; height: 1px; align-self: center;
  background: var(--line-strong); }
/* 掲載・管理の見出し (2026-11-27 メモ2「見出しがない項目にも見出しを」「左メニューと同じ高さに揃えて」): one look on every page
   (portal.js manageTitle) — the mark, the words and a fine line, as 本人確認's; the first one as high as 本人確認's, whether
   it stands alone, at the top of a form or over the 宗門概要's tabs; a later one with room above it. */
#manage-body .manage-title { margin: 28px 0 12px; }
#manage-body .manage-title::after { content: ""; order: 1; flex: 1 1 24px; min-width: 24px; height: 1px; align-self: center;
  background: var(--line-strong); }
#manage-body .manage-title > small { margin-left: 0; white-space: nowrap; }  /* 「公開中」「任意」 before the line */
#manage-body > .manage-title:first-child, #manage-body > .editor:first-child { margin-top: 8px; }
#manage-body > .editor:first-child > .manage-title:first-child { margin-top: 0; }
#manage-body > .plain-button:first-child + .manage-title { margin-top: 20px; }  /* under 「← 一覧へ」 */
#manage-body .editor > .manage-title { margin-bottom: 0; }  /* the form's own gap under it */
.manage-top > .filters { margin-right: auto; }
/* 資料の分類 (0201): each 分類's mark in its colour, its name and note, how many 資料 it holds; the editor shows how the
   資料庫's tile and a 資料's mark will look. */
.doc-cat-mark { display: inline-grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 6px;
  background: var(--doc-c); color: var(--on-red); }
.doc-cat-mark svg { width: 18px; height: 18px; }
.doc-cat-table .cell-main { display: flex; align-items: center; gap: 12px; }
.doc-cat-words { display: grid; min-width: 0; }
.doc-cat-words small { font-size: 12px; color: var(--muted); }
.doc-cat-table .cell-order, .doc-cat-table .cell-count, .doc-cat-table .status { white-space: nowrap; }
.doc-cat-table .cell-count { font-size: 13px; color: var(--ink-soft); }
.doc-cat-table .actions .form-status { flex-basis: 100%; margin: 4px 0 0; }
.doc-cat-look { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.doc-cat-look .doc-cat-tile { min-width: 200px; cursor: default; }
.doc-cat-look .doc-cat-tile:hover { border-color: var(--line-strong); }
/* 2026-11-27 メモ2（提案）: the 分類 under the 状態, smaller; 公開を終了する quiet (words only until pointed at). */
.manage-categories { margin: 4px 0 8px; }
.manage-categories .chip { padding: 2px 12px; font-size: 12px; cursor: pointer; font-family: inherit; color: inherit; }
.manage-categories .chip.chip-on { color: var(--on-green); }
.plain-button.quiet-action { border-color: transparent; background: none; color: var(--ink-soft); }
.plain-button.quiet-action:hover:not(:disabled) { border-color: var(--line-strong); color: var(--red-ink); }
@media (max-width: 760px) {
  .manage-top > .filters { flex: 1 1 100%; margin: 0 0 4px; }
}
@media (min-width: 1181px) {
  .manage-panel { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 0 36px; align-items: start; padding: 0;
    background: none; border: 0; border-radius: 0; }
  .manage-menu { position: sticky; top: 16px; display: block; margin: 0; padding: 0; border: 0; }
  .manage-group { display: block; margin: 0 0 20px; }
  .manage-group-name { display: block; margin: 0 0 4px; padding: 0 0 8px 12px; border-bottom: 1px solid var(--line-strong);
    font: 12px var(--sans); letter-spacing: .2em; }
  .manage-group-items { display: grid; gap: 0; }
  .manage-menu.even-widths .manage-item, .manage-menu .manage-item { display: block; min-width: 0; min-height: 0; padding: 8px 12px;
    border: 0; border-radius: 3px; background: none; text-align: left; font-size: 16px; font-weight: normal; white-space: normal; }
  .manage-menu .manage-item:hover { background: var(--paper-2); }
  .manage-menu .manage-item-on, .manage-menu .manage-item-on:hover { background: var(--green-soft); color: var(--green-dark);
    font-weight: 600; box-shadow: inset 3px 0 0 var(--green); }
  #manage-body { min-width: 0; }
  #manage-body > .manage-top:first-child { margin-top: 0; }  /* a form starts with its heading, as high as the others' (2026-11-27) */
  .manage-panel .table { background: none; }
  .manage-panel .table th { background: none; border-bottom: 1px solid var(--line-strong); font: 12px var(--sans); color: var(--muted);
    letter-spacing: .1em; }
  .editions-table td:nth-child(2), .editions-table td:nth-child(3), .editions-table td:nth-child(4) { white-space: nowrap; }
  /* 書式の設定 stays a table (its columns need their headings) in the narrower page, inside its box (2026-11-04: 1,066px in
     a box of 868, its right end out of the page): its cells a little closer, the file's name nine letters a line and 決裁
     four (総・庶・ / 財・教, broken only between letters), the rest to the 書式's name — broken at its phrases while they
     fit, inside one only when it must. */
  .forms-table th, .forms-table td { padding-left: 8px; padding-right: 8px; }
  .forms-table td:nth-child(6) { width: 11em; }
  .forms-table td.cell-kessai { width: 6em; }
  .forms-table .kessai-letters { white-space: nowrap; }
  .forms-table td.cell-main { overflow-wrap: anywhere; }
  /* 会員の一覧 beside the column of items: one block per member, the name and its buttons on the first line and the rest
     small under it, as on tablets (in the narrower page 「お寺」 was broken into one letter a line, the names into three). */
  .members-table thead { display: none; }
  .members-table, .members-table tbody { display: block; }
  .members-table tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 3px; padding: 12px 4px;
    border-bottom: 1px solid var(--line); }
  .members-table td { padding: 0; border: 0; }
  .members-table td.cell-main { order: 1; flex: 1 1 0; min-width: 0; font-size: 16px; color: var(--ink); }
  .members-table td.actions { order: 2; flex: none; margin-left: auto; }
  .members-table tr::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .members-table td:not(.cell-main):not(.actions) { order: 4; font-size: 13px; color: var(--ink-soft); }
  .members-table td.cell-none { display: none; }
  .members-table td:not(.cell-main):not(.actions):not(.cell-none) ~ td:not(.cell-main):not(.actions) { margin-left: -8px; }
  .members-table td:not(.cell-main):not(.actions):not(.cell-none) ~ td:not(.cell-main):not(.actions)::before { content: "・";
    margin-right: 1px; color: var(--muted); }
  .members-table td .cell-note { display: inline; margin-left: 8px; }
}
/* 発信元の「使う」 never broken into one letter a line (it was on phones); the name's field gives way instead. */
.unit-row .check { flex: none; align-items: center; margin-right: 0; white-space: nowrap; }
.unit-row .check > input[type=checkbox] { flex: none; min-height: 0; margin-top: 0; padding: 0; }  /* a box, not a 38px field */
.unit-row input:not([type=checkbox]) { min-width: 0; }
@media (max-width: 760px) {
  /* 発信元 on phones: the name across the width, its order・使う・保存 on the line under it (the name had been cut short). */
  .unit-row:has(> .order-input) { flex-wrap: wrap; row-gap: 8px; }
  .unit-row:has(> .order-input) > input:first-child { flex: 1 1 100%; }
  .unit-row:has(> .order-input) > button:last-child { margin-left: auto; }
}

/* 決裁の役職 (2026-10-28 見直し、「このページのデザインの調整」): 今の決裁欄 on top, one card per 役職 (a second column only where
   a card still keeps its fields on one line; the 載せる・管理 page is at most 868px, so one column there), the 任期 and the
   役職's own fields on one line (not stretched across the page), and adding a 役職 last. */
.kessai-intro { margin: 4px 0 0; }
.kessai-intro > .box-title { margin: 0 0 12px; }
.kessai-intro > .box-title::after { content: ""; flex: 1 1 24px; min-width: 24px; height: 1px; align-self: center;
  background: var(--line-strong); }  /* as 本人確認's (2026-11-27): the mark, the words and a fine line */
#manage-body > .kessai-intro:first-child { margin-top: 8px; }  /* the first heading as high as 本人確認's */
#manage-body .kessai-intro ~ .kessai-intro { margin-top: 32px; }  /* a later heading with room above it, as 本人確認's second */
.kessai-intro > .count { margin: 0 0 8px; }  /* a page's count right under its heading (2026-11-27) */
.kessai-overview { width: auto; max-width: 100%; margin: 0 0 12px; }
.kessai-overview th, .kessai-overview td { width: 108px; }
.kessai-overview td { height: 62px; }
.kessai-overview td.kessai-vacant span { color: var(--muted); }
.kessai-intro > .field-hint { margin: 2px 0; }
/* 詳しく (2026-11-27 メモ2): the rest of a page's words, closed at first; a quiet green line to open them. */
.more-hints { margin: 2px 0 8px; }
.more-hints > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13px; color: var(--green-dark);
  cursor: pointer; list-style: none; }
.more-hints > summary::-webkit-details-marker { display: none; }
.more-hints > summary::before { content: "＋"; font-size: 12px; }
.more-hints[open] > summary::before { content: "－"; }
.more-hints > summary:hover { color: var(--green); text-decoration: underline; }
.more-hints > .field-hint { margin: 2px 0; }
.kessai-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; align-items: start;
  margin-top: 24px; }
.kessai-card { min-width: 0; padding: 16px 20px 16px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 6px; }
.kessai-card-off { background: var(--paper-2); }
.kessai-card-off .kessai-card-title { color: var(--muted); }
.kessai-card-add { background: none; border-style: dashed; }
.kessai-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kessai-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-weight: 500; font-size: 20px; letter-spacing: .08em; }
.kessai-card-title .kessai-label { min-width: 1.9em; padding: 2px 8px; background: var(--paper); font-size: 18px; line-height: 1.4; }
.kessai-card-title svg { width: 20px; height: 20px; color: var(--green); }
.kessai-edit-open { flex: none; padding: 4px 12px; font-size: 13px; }
.kessai-now { margin: 12px 0 0; font-size: 14px; color: var(--ink); }
.kessai-now-vacant { color: var(--muted); }
.kessai-sub { margin: 16px 0 8px; font: 500 14px var(--serif); letter-spacing: .06em; color: var(--ink-soft); }
.kessai-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 12px; }
/* 書式を画面で書く (0166): the 欄 as the 書式 lays them out (label on the left), the 名簿's values shaded, choices in a row */
.screen-form-table th { width: 30%; min-width: 120px; vertical-align: top; white-space: normal; }
.screen-form-table td input:not([type=radio]):not([type=checkbox]), .screen-form-table td textarea { width: 100%; box-sizing: border-box; }
.screen-form-table td.screen-form-fixed { color: var(--ink-soft); background: var(--tint-03); }
.screen-form-table .field-required { margin-left: 8px; font-size: 12px; color: var(--red-ink-3); }
.screen-form-choices { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.screen-form-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.screen-form-period input { width: auto !important; }
.screen-form-how { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin: 8px 0 20px; }
.screen-form-how > .field-hint { padding-bottom: 12px; font-size: 13px; }
/* 提出方法 (2026-11-04, 「タブが切り替わったように見せて」): two tabs on a line, the one chosen filled in and joined to it. */
.form-ways { display: flex; flex: 1 1 auto; gap: 4px; border-bottom: 2px solid var(--green-dark); }
.form-way { min-height: 42px; margin-bottom: -2px; padding: 8px 24px; border: 1px solid var(--line-strong); border-bottom: 2px solid var(--green-dark);
  border-radius: 6px 6px 0 0; background: var(--paper-2); color: var(--ink-soft); font: 16px var(--serif); letter-spacing: .06em; cursor: pointer; }
.form-way:hover:not(.is-chosen) { color: var(--green); border-color: var(--green); border-bottom-color: var(--green-dark); }
.form-way.is-chosen { background: var(--green-dark); border-color: var(--green-dark); color: var(--on-green); cursor: default; }
/* 提出する and この下書きを捨てる in one row, 捨てる at the far end. */
.app-submit-row { margin-top: 12px; align-items: stretch; }  /* both buttons as tall as 提出する */
.app-draft .app-submit-row > .dark-button { margin-top: 0; }  /* the row keeps the room above */
.app-submit-row > .danger-button { margin-left: auto; }
.screen-form-view td.lines { white-space: pre-line; }
/* 原本と本人確認 (0167): one line a check, with its button on the right; the temple's steps to mail the paper */
.app-check-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); }
.app-check-line p { margin: 0; flex: 1 1 260px; }
.app-checks .field { margin-top: 12px; }
.app-checks .dark-button { margin-top: 8px; }
.app-steps { margin: 8px 0 4px; padding-left: 1.6em; }
.app-steps li { margin: 4px 0; }
@media (max-width: 640px) { .screen-form-table th, .screen-form-table td { display: block; width: auto; } }
/* 部署と決裁欄 (0165): the 決裁欄 chosen on the 決裁の役職 page; a 部署's work as tags and the buttons that give or take it */
.kessai-boards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.department-works li { margin: 4px 0; }
.department-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.department-toggles { margin-bottom: 8px; }
/* 作った仕事のまとまり (0196) */
.work-bundles .kessai-card { margin-top: 12px; }
.work-bundle-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 4px 16px; margin: 8px 0 12px; }
.work-bundle-fold { margin: 8px 0; }
#manage-body .kessai-row > .field { flex: 1 1 200px; min-width: 0; margin: 0; }
#manage-body .kessai-row > .kessai-who, #manage-body .kessai-row > .kessai-name { max-width: 380px; }
#manage-body .kessai-row > .kessai-date { flex: 0 1 170px; }
#manage-body .kessai-row > .kessai-letter { flex: 0 1 100px; }
#manage-body .kessai-row > .kessai-order { flex: 0 1 110px; }
.kessai-row > .dark-button, .kessai-row > .plain-button { flex: none; min-height: 40px; }
.kessai-row > .check { margin-right: auto; }
.kessai-card .field-hint { margin: 8px 0 0; }
.kessai-terms { list-style: none; margin: 0; padding: 0; }
.kessai-terms li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kessai-terms li > .plain-button { margin-left: auto; }
.kessai-term-when { font-size: 13px; color: var(--ink-soft); }
.quiet-tag.kessai-term-current { color: var(--green); }
.kessai-edit-box { display: grid; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
#manage-body .kessai-row input, #manage-body .kessai-row select { height: 40px; min-height: 40px; }
.kessai-past { margin-top: 4px; font-size: 14px; }
.kessai-past summary { cursor: pointer; padding: 4px 0; color: var(--ink-soft); }
.kessai-past .kessai-terms li { color: var(--ink-soft); }
@media (max-width: 760px) {
  .kessai-overview { width: 100%; table-layout: fixed; }
  .kessai-overview th, .kessai-overview td { width: auto; }
  .kessai-card { padding: 12px 16px 16px; }
  .kessai-card-title { font-size: 18px; }
  /* Phones: お名前・始まり・ボタン each across the card, one under another. */
  #manage-body .kessai-row > .kessai-who, #manage-body .kessai-row > .kessai-name, #manage-body .kessai-row > .kessai-date { flex-basis: 100%; max-width: none; }
  .kessai-row > .dark-button { flex: 1 1 100%; justify-content: center; }
}

/* 会員のお名前を直す (2026-10-29, 0160): the button under the name, the form in place, why not when it cannot */
.member-rename-open { margin: -4px 0 8px; }
.member-rename { max-width: 560px; margin: 8px 0 20px; }
.member-rename-note { margin: -4px 0 12px; }

/* 兼務のお寺も一緒に結び付ける (2026-10-29, 0161): under the request, one line each, checked at first */
.link-with-list { display: grid; gap: 4px; flex-basis: 100%; margin: 4px 0 2px; }
.link-with { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; }
.link-with input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }

/* プロフィール (2026-10-29, プロフィールの見た目のメモ v0.6): the name with the kind of account right under it, ログアウト at
   the right end of that row on wide screens; on phones ログアウト is at the foot of the menu instead. */
.profile-head { flex-wrap: nowrap; }
.profile-names { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.profile-names h1 { margin: 0; }
.profile-head .profile-logout { flex: none; margin-left: auto; }
.nav-logout { display: none; }
@media (max-width: 760px) {
  .profile-head .profile-logout { display: none; }
  .nav-logout { display: flex; align-items: center; gap: 16px; margin: 12px 12px 0; padding: 12px 16px; border: 0;
    border-top: 1px solid var(--line-strong); background: none; font: 16px var(--serif); color: var(--ink); letter-spacing: .06em;
    text-align: left; cursor: pointer; }
  .nav-logout:hover { color: var(--green); }
}

/* スマホのヘッダーの固定 (2026-10-29, 「スマホで縦長になるとメニューを押すのに戻る必要があるのでヘッダーを固定」「いつも固定」):
   on phones the band (crest, name, search and メニュー) stays at the top of the screen; what sticks under it (the 宗報's bar)
   and where a jump lands come below it (portal.js keeps --header-h at the band's height). */
@media (max-width: 760px) {
  .site-header { position: sticky; top: 0; z-index: 50; }
  html { scroll-padding-top: var(--header-h, 0px); }
  .shuho-bar { top: var(--header-h, 0px); }
}

/* サイト内の検索の寺院情報 (2026-10-29): one temple a row — its mark, its name with 山号・教区・所在地 small under it, 「›」. */
.search-temples { list-style: none; margin: 0; padding: 0; }
.search-temples a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 14px; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); }
.search-temples a:hover { background: var(--paper-2); }
.search-temples a svg { width: 18px; height: 18px; color: var(--green); }
.search-temples b { display: block; font-weight: 500; font-size: 16px; letter-spacing: .04em; }
.search-temples small { display: block; font-size: 12px; color: var(--muted); }
.search-section > .more-link { display: block; width: fit-content; margin: 12px 0 4px auto; }

/* ---- ホームの上の帯 (0164, 声 FB-004): the band written in 載せる・管理 ------------------------------------------------- */
/* Nothing of the band until portal.js knows which band it is (no standing words flashing before the written ones). */
.hero[data-band="loading"] .hero-text, .hero[data-band="loading"] .hero-image { visibility: hidden; }
/* A written title may be longer: two lines at most of 13 characters or so, never under the photo. */
.hero[data-band="set"] h1, .hero .hero-title { white-space: normal; max-width: 13em; }
.hero-link { margin: 12px 0 0; }
.hero-more { display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px; border: 1px solid var(--line-strong);
  border-radius: 3px; background: var(--band-chip-55); color: var(--ink); font-size: 14px; letter-spacing: .1em; }
.hero-more:hover { border-color: var(--green); color: var(--green); }
/* A written photo: as the 回廊 is drawn — covering the right half from 42% down, faded into the paper on its left. */
.hero-image.has-photo { background: none; }
.hero-image.has-photo > img, .hero-image.has-photo > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%; }
.hero-image.has-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--band-2) 0%, var(--band-fade-85) 12%, var(--band-fade-0) 42%); }

/* 0200 (メモ 7): up to three bands taking turns — a short fade, the dots under the words and 一時停止. */
.hero-text > :not(.hero-slides), .hero-image { transition: opacity .24s; }
.hero.is-turning .hero-text > :not(.hero-slides), .hero.is-turning .hero-image { opacity: 0; }
.hero-slides { display: flex; align-items: center; gap: 4px; margin: 16px 0 0 -8px; }  /* the first dot under the words' edge */
.hero-slides[hidden] { display: none; }
.hero-dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; }
.hero-dot::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--ink-soft); border-radius: 50%; background: var(--band-chip-55); }
.hero-dot[aria-pressed="true"]::before { border-color: var(--green); background: var(--green); }
.hero-dot:hover::before { border-color: var(--green); }
.hero-pause { margin-left: 8px; padding: 0 12px; height: 24px; border: 1px solid var(--line-strong); border-radius: 3px;
  background: var(--band-chip-55); color: var(--ink-soft); font: 12px var(--sans); letter-spacing: .06em; cursor: pointer; }
.hero-pause:hover { border-color: var(--green); color: var(--green); }

/* 載せる・管理: the list, the shelf of photos and the looks. */
.band-now { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 16px; border-radius: 3px;
  background: var(--green-soft); font-size: 14px; letter-spacing: .04em; }
.band-now svg { flex: none; width: 18px; height: 18px; color: var(--green); }
.band-row .about-manage-name { display: grid; gap: 4px; flex: 1; min-width: 0; }
.band-row .quiet-tag { justify-self: start; }
.band-state-shown { background: var(--green-soft); color: var(--green-dark); }
.band-lines { color: var(--muted); font-size: 12px; letter-spacing: .03em; line-height: 1.7; }
.band-thumb { display: grid; place-items: center; flex: none; width: 120px; aspect-ratio: 20 / 9; overflow: hidden; border-radius: 3px;
  background: var(--band-2) url("/static/portal/hero.jpg") center 42% / cover no-repeat; }
.band-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.band-thumb.is-standing > span { padding: 1px 8px; border-radius: 2px; background: var(--band-chip-70); font-size: 12px; color: var(--ink-soft); }
.band-shelf { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }
.band-shelf-item { display: grid; justify-items: center; gap: 4px; padding: 3px; border: 2px solid transparent; border-radius: 5px;
  background: none; cursor: pointer; }
.band-shelf-item.is-on { border-color: var(--green); }
.band-shelf-item canvas { display: block; width: 120px; height: 54px; border-radius: 3px; }
.band-shelf-item small { font-size: 12px; color: var(--green-dark); }
.band-shelf-item.is-new { cursor: default; }
.band-looks { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.band-look-box { margin: 0; }
.band-look-box figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.band-look { margin: 0; border: 1px solid var(--line); pointer-events: auto; }
.band-look .hero-text { padding: 24px 24px 20px; }
.band-look .hero-eyebrow { font-size: 13px; letter-spacing: .24em; }
.band-look .hero-title { margin: 2px 0 0; font-weight: 500; font-size: 28px; letter-spacing: .06em; line-height: 1.3; }
.band-look .hero-date { font-size: 13px; }
.band-look .hero-more { padding: 3px 12px; font-size: 12px; }
.band-look-wide { min-height: 150px; }
/* The phone's band, as portal.css draws it under 760 px: the photo on the right 45%, faint under the words. */
.band-look-phone { width: 300px; min-height: 0; }
.band-look-phone .hero-image { inset: 0 0 0 55%; opacity: .35; }
.band-look-phone .hero-text { padding: 20px 16px 16px; }
.band-look-phone .hero-eyebrow { font-size: 12px; letter-spacing: .2em; }
.band-look-phone .hero-title { font-size: 20px; letter-spacing: .04em; }
.band-look-phone .hero-date { font-size: 12px; }
@media (max-width: 760px) {
  .band-looks { grid-template-columns: minmax(0, 1fr); }
  .band-look-wide { display: none; }  /* a phone shows the phone's look only */
  .band-look-box:first-child { display: none; }
  .band-look-phone { width: 100%; }
  .band-row { flex-wrap: wrap; }
  .band-thumb { width: 96px; }
}

/* 切り抜きの小窓 (kind 'band'): a wide frame of 20:9 and the two looks of the band. */
.crop-dialog.is-band { width: min(940px, calc(100vw - 24px)); }
.crop-dialog.is-band .crop-body { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); }
.crop-dialog.is-band .crop-stage { aspect-ratio: 20 / 9; }
.crop-dialog.is-band .crop-looks { flex-direction: column; align-items: center; }
.crop-look .is-wide, .crop-look .is-phone { border-radius: 3px; background: var(--band-2); }
.crop-look .is-wide { width: 200px; height: 60px; }
.crop-look .is-phone { width: 88px; height: 76px; }
@media (max-width: 760px) {
  .crop-dialog.is-band .crop-body { grid-template-columns: minmax(0, 1fr); }
}

/* 待っている間 (2026-11-04, 「読み込み中がわかりにくいのでロードアイコンなど」「承認ボタンを押しても無反応な時間がある」):
   a thin bar moving along the top of the page, the button pressed turning round beside its words, and 読み込んでいます。
   with the same mark. Slower for those who ask for less motion. */
.busy-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 3px; overflow: hidden; pointer-events: none; }
.busy-bar[hidden] { display: none; }
.busy-bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: var(--green);
  animation: busy-slide 1.1s ease-in-out infinite; }
button.is-busy { cursor: progress; }
button.is-busy::after, .is-loading::before { content: ""; display: inline-block; flex: none; width: .95em; height: .95em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.15em;
  animation: busy-spin .7s linear infinite; }
button.is-busy::after { margin-left: 8px; }
.is-loading::before { margin-right: 8px; color: var(--green); }
@keyframes busy-slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .busy-bar::before { animation-duration: 3s; }
  button.is-busy::after, .is-loading::before { animation-duration: 2s; }
}
/* 要確認 (2026-11-04): each line a link to its place, read as words with a faint line under them. */
.attention-link { color: inherit; text-decoration: underline; text-decoration-color: var(--green-underline); text-underline-offset: 3px; }
.attention-link:hover { color: var(--green); text-decoration-color: currentColor; }
/* 下書きの箱 (2026-11-04, 「要素ごとの隙間が狭い」「フォームとボタンのズレ」): the 欄 of a form with room around them, a search
   box and its 探す level, a hint under its box with room; これまでの流れ in the right column in one column of lines. */
.screen-form-table { margin: 8px 0 4px; }
.screen-form-table th, .screen-form-table td { padding: 16px 16px; }
.screen-form-table td .field { gap: 12px; margin-top: 0; }
.screen-form-table td .inline-search { margin: 8px 0 12px; }
.screen-form-table td .screen-form-choices { gap: 8px 20px; padding: 4px 0; }
.screen-form-table td .field-hint { display: block; margin-top: 8px; }
.inline-search > .dark-button, .inline-search > .plain-button { margin-top: 0; align-self: stretch; }
.inline-search:has(> .field) > .dark-button, .inline-search:has(> .field) > .plain-button { align-self: flex-end; }
.app-draft .field + .dark-button { margin-top: 12px; }
.app-draft > .plain-button { margin-top: 12px; }  /* 下書きに保存, under the form */
/* The boxes of the form look as every box of the portal (2026-11-04: those not in a .field were thin and dark). */
.screen-form-table td input:not([type=radio]):not([type=checkbox]):not([type=file]), .screen-form-table td select,
.screen-form-table td textarea { min-height: 40px; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: 3px;
  background: var(--card); font: 16px var(--serif); color: var(--ink); }
.screen-form-table td > div + input { margin-top: 8px; }  /* 寺院名　代表役員, then the name written */
.aside-flow .app-timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0 8px 8px; }
.aside-flow .app-timeline li::before { top: 13px; }
/* 受理の後のお寺 (2026-11-06): one box — the lines of 原本・本人確認 and 提出した内容 under the 受理 line. */
.app-done-line { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.app-settled-content { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.app-settled-content > .box-title { margin-top: 0; }
/* これからの流れ (2026-11-06): 済 for the steps done, 次 for the first not done, the rest muted. */
.next-steps { list-style: none; margin: 4px 0 0; padding: 0; }
.next-steps li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; font-size: 14px; }
.next-steps li + li { border-top: 1px dashed var(--line); }
.next-mark { display: grid; place-items: center; height: 1.7em; border-radius: 3px; font-size: 12px; letter-spacing: 0; }
.next-steps .is-done .next-mark { background: var(--green); color: var(--on-green-white); }
.next-steps .is-next .next-mark { border: 1.5px solid var(--green); color: var(--green); font-weight: 600; }
.next-steps .is-later .next-mark { border: 1px dashed var(--line-strong); }
.next-text b { display: block; font-weight: 500; line-height: 1.7; }
.next-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.next-steps .is-done .next-text b { color: var(--muted); }
.next-steps .is-next .next-text b { color: var(--ink); font-weight: 600; }
.next-steps .is-later .next-text b { color: var(--ink-soft); }
.next-steps .next-all-done { display: block; color: var(--green); }

/* 更新履歴 (2026-11-06, 「更新履歴も載せておきたい」): at the foot of the home page (the newest five) and on #updates (all),
   the day and one sentence a line, newest first; on phones the day over its sentence. */
.updates { margin-top: var(--section-gap); }
.update-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.update-list li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 2px 20px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.7; }
.update-list time { color: var(--ink-soft); font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 760px) {
  .update-list li { grid-template-columns: minmax(0, 1fr); padding: 12px 2px; font-size: 14px; }
  .update-list time { font-size: 13px; }
}

/* 夜の色（2026-11-06、docs/ORITAS_DEV2_Obaku_Portal_Dark_Mode_Design_v0.1「A・ア・a」）: 墨の夜 = the day's paper, ink and green
   carried into the night (a warm ink-black paper, unbleached words, a lighter moss green). Shown when the device is set to
   dark (unless 「明るい画面にする」 chose the day's colours for this page), or when 「暗い画面にする」 chose them. Nothing is kept:
   opening the page again follows the device again (as the 過去帳's 夜の調子). Screens only: printing keeps the day's colours.
   The two copies below stay the same (test_portal_ui_contract compares them). */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1b1c19; --paper-2: #23241f; --card: #262722;
    --ink: #e8e4d9; --ink-soft: #c3beb1; --muted: #9a958a;
    --line: #3a3a34; --line-strong: #4a4a42; --field-line: #7d7a70;
    --green: #8fb5a0; --green-dark: #a6c7b4; --green-soft: #2a3630;
    --red: #e2846f;
    --tag-shumu-bg: #2b362f; --tag-shumu: #a9c4b2;
    --tag-kenshu-bg: #3a3226; --tag-kenshu: #d6bf94;
    --tag-todoke-bg: #28323b; --tag-todoke: #a9bfd4;
    --on-green: #1b1c19; --on-green-white: #1b1c19; --on-green-avatar: #1b1c19; --on-green-dim: #243a2e;
    --on-green-sub: rgba(27, 28, 25, .75); --on-green-sub2: rgba(27, 28, 25, .78);
    --on-green-tint: rgba(27, 28, 25, .1); --on-green-tint2: rgba(27, 28, 25, .16); --on-green-tint3: rgba(27, 28, 25, .2);
    --green-underline: rgba(143, 181, 160, .45); --green-line: #3f5348; --green-line-2: #435a4d; --green-line-3: #46604f;
    --green-soft-2: #222a25; --attention-bg: #242c27;
    --red-fill: #b4473b; --on-red: #fff; --badge: #c43f33; --pdf-mark: #c64a3a;
    --doc-rule: #3b5a7a; --doc-form: #3e6b54; --doc-guide: #9a6a2c; --doc-minutes: #5f6670; --doc-assembly: #6a4c7a; --doc-research: #2f6f6a; --doc-other: #7a756b;
    --red-ink: #e8907c; --red-ink-2: #e8907c; --red-ink-3: #e8907c; --red-line: #6a3a32; --red-line-2: #6a3a32;
    --red-soft: #3a2522; --red-soft-2: #352321; --red-soft-3: #2e2220; --alert-bg: #3a2522; --alert-ink: #f0b3a6;
    --gold-ink: #d6b46a; --gold-ink-2: #d6b46a; --gold-ink-3: #d9a77a; --gold-soft: #332c1f; --gold-line: #5a4b2c;
    --tag-todoke-line: #3c4a57; --tag-kenshu-line: #574a35; --tag-other-bg: #2e2e29; --tag-other: #c3beb1;
    --panel: #23241f; --footer: #161714; --highlight: #5e4d1c; --tint-03: rgba(255, 255, 255, .04);
    --sheet: #e8e4d9; --sheet-mark: #67645c; --guide-sheet: #262722; --about-unit-bg: #262722; --on-swatch: #fff; --logo-tile: #fff;
    --crest-gold: #c98910; --crop-frame: #23241f; --crop-ink: #ebe7df; --crop-ink-soft: #b9b4aa; --crop-hover: rgba(235, 231, 223, .06);
    --band-1: #22231f; --band-2: #1f201c; --band-3: #1c1d1a;
    --band-fade-85: rgba(31, 32, 28, .85); --band-fade-82: rgba(31, 32, 28, .82); --band-fade-10: rgba(31, 32, 28, .1);
    --band-fade-0: rgba(31, 32, 28, 0); --band-chip-55: rgba(27, 28, 25, .55); --band-chip-70: rgba(27, 28, 25, .7);
    --notice-bg: #3a3020; --notice-line: #8a6a2a; --notice-ink: #f2d99a; --notice-button-line: #b08a3a; --notice-button-bg: #262722;
    --shadow-03: rgba(0, 0, 0, .2); --shadow-12: rgba(0, 0, 0, .5); --shadow-14: rgba(0, 0, 0, .5);
    --shadow-warm-06: rgba(0, 0, 0, .3); --shadow-warm-08: rgba(0, 0, 0, .3); --shadow-warm-45: rgba(0, 0, 0, .6);
    --shadow-warm-55: rgba(0, 0, 0, .65); --shadow-warm-60: rgba(0, 0, 0, .7);
    --shadow-card-05: rgba(0, 0, 0, .25); --shadow-card-50: rgba(0, 0, 0, .6); --shadow-card-55: rgba(0, 0, 0, .65);
    --shadow-deep-08: rgba(0, 0, 0, .3); --shadow-deep-25: rgba(0, 0, 0, .5); --shadow-deep-60: rgba(0, 0, 0, .7); --ask-shade: rgba(0, 0, 0, .6);
    --shadow-deep-70: rgba(0, 0, 0, .8); --backdrop-38: rgba(0, 0, 0, .55); --backdrop-50: rgba(0, 0, 0, .6);
    --about-ink: #4a4943; --about-ink-t: #c3beb1; --about-gray: #6a6862; --about-gray-t: #b5b0a5;
    --about-navy: #3a4590; --about-navy-t: #a9b2ee; --about-green: #2a7a52; --about-green-t: #8fcfaa;
    --about-purple: #6a4a96; --about-purple-t: #c2a8e6; --about-slate: #3b5866; --about-slate-t: #9fbccb;
    --about-vermilion: #b4473b; --about-vermilion-t: #ec9a85;
    --logo-pad: 4px 8px; --logo-round: 3px;
  }
}
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #1b1c19; --paper-2: #23241f; --card: #262722;
    --ink: #e8e4d9; --ink-soft: #c3beb1; --muted: #9a958a;
    --line: #3a3a34; --line-strong: #4a4a42; --field-line: #7d7a70;
    --green: #8fb5a0; --green-dark: #a6c7b4; --green-soft: #2a3630;
    --red: #e2846f;
    --tag-shumu-bg: #2b362f; --tag-shumu: #a9c4b2;
    --tag-kenshu-bg: #3a3226; --tag-kenshu: #d6bf94;
    --tag-todoke-bg: #28323b; --tag-todoke: #a9bfd4;
    --on-green: #1b1c19; --on-green-white: #1b1c19; --on-green-avatar: #1b1c19; --on-green-dim: #243a2e;
    --on-green-sub: rgba(27, 28, 25, .75); --on-green-sub2: rgba(27, 28, 25, .78);
    --on-green-tint: rgba(27, 28, 25, .1); --on-green-tint2: rgba(27, 28, 25, .16); --on-green-tint3: rgba(27, 28, 25, .2);
    --green-underline: rgba(143, 181, 160, .45); --green-line: #3f5348; --green-line-2: #435a4d; --green-line-3: #46604f;
    --green-soft-2: #222a25; --attention-bg: #242c27;
    --red-fill: #b4473b; --on-red: #fff; --badge: #c43f33; --pdf-mark: #c64a3a;
    --doc-rule: #3b5a7a; --doc-form: #3e6b54; --doc-guide: #9a6a2c; --doc-minutes: #5f6670; --doc-assembly: #6a4c7a; --doc-research: #2f6f6a; --doc-other: #7a756b;
    --red-ink: #e8907c; --red-ink-2: #e8907c; --red-ink-3: #e8907c; --red-line: #6a3a32; --red-line-2: #6a3a32;
    --red-soft: #3a2522; --red-soft-2: #352321; --red-soft-3: #2e2220; --alert-bg: #3a2522; --alert-ink: #f0b3a6;
    --gold-ink: #d6b46a; --gold-ink-2: #d6b46a; --gold-ink-3: #d9a77a; --gold-soft: #332c1f; --gold-line: #5a4b2c;
    --tag-todoke-line: #3c4a57; --tag-kenshu-line: #574a35; --tag-other-bg: #2e2e29; --tag-other: #c3beb1;
    --panel: #23241f; --footer: #161714; --highlight: #5e4d1c; --tint-03: rgba(255, 255, 255, .04);
    --sheet: #e8e4d9; --sheet-mark: #67645c; --guide-sheet: #262722; --about-unit-bg: #262722; --on-swatch: #fff; --logo-tile: #fff;
    --crest-gold: #c98910; --crop-frame: #23241f; --crop-ink: #ebe7df; --crop-ink-soft: #b9b4aa; --crop-hover: rgba(235, 231, 223, .06);
    --band-1: #22231f; --band-2: #1f201c; --band-3: #1c1d1a;
    --band-fade-85: rgba(31, 32, 28, .85); --band-fade-82: rgba(31, 32, 28, .82); --band-fade-10: rgba(31, 32, 28, .1);
    --band-fade-0: rgba(31, 32, 28, 0); --band-chip-55: rgba(27, 28, 25, .55); --band-chip-70: rgba(27, 28, 25, .7);
    --notice-bg: #3a3020; --notice-line: #8a6a2a; --notice-ink: #f2d99a; --notice-button-line: #b08a3a; --notice-button-bg: #262722;
    --shadow-03: rgba(0, 0, 0, .2); --shadow-12: rgba(0, 0, 0, .5); --shadow-14: rgba(0, 0, 0, .5);
    --shadow-warm-06: rgba(0, 0, 0, .3); --shadow-warm-08: rgba(0, 0, 0, .3); --shadow-warm-45: rgba(0, 0, 0, .6);
    --shadow-warm-55: rgba(0, 0, 0, .65); --shadow-warm-60: rgba(0, 0, 0, .7);
    --shadow-card-05: rgba(0, 0, 0, .25); --shadow-card-50: rgba(0, 0, 0, .6); --shadow-card-55: rgba(0, 0, 0, .65);
    --shadow-deep-08: rgba(0, 0, 0, .3); --shadow-deep-25: rgba(0, 0, 0, .5); --shadow-deep-60: rgba(0, 0, 0, .7); --ask-shade: rgba(0, 0, 0, .6);
    --shadow-deep-70: rgba(0, 0, 0, .8); --backdrop-38: rgba(0, 0, 0, .55); --backdrop-50: rgba(0, 0, 0, .6);
    --about-ink: #4a4943; --about-ink-t: #c3beb1; --about-gray: #6a6862; --about-gray-t: #b5b0a5;
    --about-navy: #3a4590; --about-navy-t: #a9b2ee; --about-green: #2a7a52; --about-green-t: #8fcfaa;
    --about-purple: #6a4a96; --about-purple-t: #c2a8e6; --about-slate: #3b5866; --about-slate-t: #9fbccb;
    --about-vermilion: #b4473b; --about-vermilion-t: #ec9a85;
    --logo-pad: 4px 8px; --logo-round: 3px;
  }
}

/* 夜の色の切り替え (2026-11-06): 「暗い画面にする／明るい画面にする」 — on wide screens the moon or the sun in the band (its
   words show on pointing and stay for screen readers: with them the band's 寺院・僧侶のための… was cut), on phones the words
   in the menu above ログアウト. */
.theme-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; color: var(--ink-soft);
  font: 13px var(--serif); letter-spacing: .04em; white-space: nowrap; cursor: pointer; }
.theme-button:hover { border-color: var(--green); color: var(--green); }
.theme-button svg { width: 18px; height: 18px; flex: none; }
[data-to="dark"] .theme-sun, [data-to="light"] .theme-moon { display: none; }
.nav-theme { display: none; }
.theme-button .theme-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .theme-button { display: none; }
  .nav-theme { display: flex; align-items: center; gap: 16px; margin: 12px 12px 0; padding: 12px 16px; border: 0;
    border-top: 1px solid var(--line-strong); background: none; font: 16px var(--serif); color: var(--ink); letter-spacing: .06em;
    text-align: left; cursor: pointer; }
  .nav-theme:hover { color: var(--green); }
  .nav-theme + .nav-logout { margin-top: 0; }
}
/* When the colours are switched, they change over 0.8s instead of at once (as the 過去帳). Only while switching (portal.js
   takes the class away), so hovering stays quick; a colour fade is not a motion, so it stays with reduced motion too. */
:root.theme-fading, :root.theme-fading *, :root.theme-fading *::before, :root.theme-fading *::after {
  transition: background-color .8s ease, color .8s ease, border-color .8s ease, outline-color .8s ease,
    fill .8s ease, stroke .8s ease, box-shadow .8s ease, text-shadow .8s ease, text-decoration-color .8s ease !important;
}
/* 護持企業などのロゴ: on a white tile at night (a dark logo would vanish on the dark card); by day nothing changes. */
.sponsor-logo img, .sponsor-thumb img, .sponsor-logo-preview img { background: var(--logo-tile); padding: var(--logo-pad, 0); border-radius: var(--logo-round, 0); }

/* ---- ボタンと欄の高さ・間・スマホの並び (2026-11-08, 横田さんの画像2枚「UI CONTAINER ALIGNMENT & 8PX GRID SPACING SYSTEM」
   「MOBILE BUTTON ALIGNMENT / FORM COLUMN WIDTH RULES」を参考に): one height for buttons and boxes — 40px on wide screens,
   48px on phones —, 16px between buttons side by side and 8px between stacked ones, and on phones a row of buttons stacked
   at full width (the main one on top, a dangerous one apart at the foot) instead of squeezed side by side. Fields stay one
   column at full width (as they were); a pair of fields stacks on phones. ---- */
:root { --control-h: 40px; }
@media (max-width: 760px) { :root { --control-h: 48px; } }
.plain-button { min-height: var(--control-h); padding: 4px 16px; }
.dark-button { min-height: var(--control-h); padding-top: 4px; padding-bottom: 4px; }  /* the large one as tall as the rest */
.dark-button.small { padding: 4px 24px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), .field select, .other-link-row input,
.unit-row input:not([type=checkbox]), .staff-edit select {
  height: var(--control-h); min-height: var(--control-h); padding-top: 0; padding-bottom: 0; }
.form-actions { gap: 8px 16px; }
@media (max-width: 760px) {
  .form-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .form-actions > button, .form-actions > a.dark-button, .form-actions > a.plain-button { width: 100%; justify-content: center; }
  .form-actions > .danger-button, .app-submit-row > .danger-button { margin-left: 0; margin-top: 8px; }
  .staff-edit-foot .danger-button { width: 100%; margin-left: 0; justify-content: center; }
  /* a named box and its button, stacked (on phones the search row is a grid of two: one column here) */
  .inline-search:has(> .field) { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 8px; }
  .inline-search > .field { min-width: 0; }
  .inline-search:has(> .field) > button { width: 100%; justify-content: center; align-self: stretch; }
}
/* the fields of a form one under another on the same 8px steps: 8px between a name and its box, 16px between fields */
.field { gap: 8px; }
.editor { gap: 16px; }
/* 確かめの窓 (2026-11-08 照らし合わせ キ「画面の中央の窓」): in place of the browser's confirm and prompt. The window in the
   middle on a shade, its title the name of the button pressed, the words, a box when something is written, the button and
   やめる (on phones one under the other, at full width); one that takes something away in 朱. */
.ask-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--card); color: var(--ink); box-shadow: 0 24px 48px -16px var(--shadow-deep-60); }
.ask-dialog::backdrop { background: var(--ask-shade); }
.ask-form { display: grid; gap: 16px; padding: 24px; }
.ask-title { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: .06em; line-height: 1.5; }
.ask-text { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.ask-field[hidden], .ask-field [hidden] { display: none; }
.ask-field textarea, .ask-field input { width: 100%; }
.ask-actions { margin: 8px 0 0; }
.ask-danger { border-color: var(--red-fill); background: var(--red-fill); color: var(--on-red); font-weight: 500; }
.ask-danger:hover:not(:disabled) { border-color: var(--red-ink); background: var(--red-ink); color: var(--on-red); }
@media (prefers-reduced-motion: no-preference) {
  .ask-dialog[open] { animation: ask-in .18s ease-out; }
  @keyframes ask-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .ask-form { padding: 20px 16px; }
  .ask-title { font-size: 18px; }
}
/* お寺の人を足す (0185): the two ways one at a time; 窓口: the temple's side asks 広報委員会 */
.staff-link-modes { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 16px; }
.staff-link-modes .check { margin-right: 0; }
.staff-link-pane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }  /* a long name in a choice stays in the box */
.staff-link-pane select, .staff-link-pane input:not([type=radio]) { width: 100%; max-width: 100%; }
.staff-link-pane[hidden] { display: none; }
.staff-link-pane .form-actions, .staff-link-pane .form-status { margin: 0; }
.staff-link-body > .field-hint { margin: 16px 0 0; }
.staff-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0 0;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.staff-ask p { flex: 1 1 20em; margin: 0; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .staff-ask > button { width: 100%; justify-content: center; }
}
/* お寺の側の登録・招待 (0186): the invitations waiting, the guide just after a registration, the person's own invitations */
.staff-invites, .staff-guide { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.staff-invites-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.staff-invite-list { list-style: none; margin: 0; padding: 0; }
.staff-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0;
  border-top: 1px dotted var(--line); }
.staff-invite:first-child { border-top: 0; }
.staff-invite-who { flex: 1 1 16em; font-size: 14px; }
.staff-room { margin: 0 0 12px; }
.staff-guide .guide-sheet { margin: 8px 0 12px; }
.staff-invite-answer { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .staff-invite > button, .staff-invite-answer > button { width: 100%; justify-content: center; }
  .staff-invite-list .own-temple { grid-template-columns: minmax(0, 1fr); }  /* the temple's name over the two answers */
}

/* グループ (0187): one's グループ as cards; a グループ's page with its 資料 and members in boxes, written in as the 部署 page is */
.group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 8px 0 12px; padding: 0; list-style: none; }
.group-card { display: grid; gap: 4px; height: 100%; padding: 16px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--card);
  color: var(--ink); text-decoration: none; }
.group-card:hover { border-color: var(--green); }
.group-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.group-name { font: 500 18px var(--serif); letter-spacing: .06em; }
.group-me, .group-count { font-size: 14px; color: var(--ink-soft); }
.group-desc { font-size: 13px; color: var(--muted); }
.group-box .kessai-row { margin-top: 8px; }
.group-box .kessai-row > .field { flex: 1 1 200px; min-width: 0; margin: 0; }
.group-box .kessai-row > .kessai-who { max-width: 380px; }
.group-box .kessai-row > .kessai-date { flex: 0 1 170px; }
.group-box .kessai-row input, .group-box .kessai-row select { height: 40px; min-height: 40px; }
.group-box > .field-hint, .group-upload .field-hint { margin: 8px 0 0; }
.group-upload { margin: 16px 0 12px; }
.group-upload > .field { margin-top: 8px; }
.group-upload > .dark-button { margin-top: 12px; }
.group-files { display: grid; gap: 12px; margin: 8px 0; padding: 0; list-style: none; }
.group-file { display: grid; gap: 4px; }
.group-file > .plain-button { justify-self: start; }
.group-file-note { margin: 0; font-size: 14px; color: var(--ink-soft); white-space: pre-line; }
.group-withdrawn li { margin: 4px 0; color: var(--ink-soft); }
.group-members .group-role { font-size: 13px; color: var(--green); }
.group-change { flex-basis: 100%; font-size: 14px; }
.group-change summary { cursor: pointer; color: var(--ink-soft); }
.group-bulk { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
/* グループの予定・出欠・回 (0189 段2a, G26・G27): 月の表（日にちと色の点）とその下にその月の一覧、予定のページの出欠 */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
.group-cal { display: grid; gap: 12px; margin-top: 8px; }
.group-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.group-cal-title { margin: 0; font: 500 18px var(--serif); letter-spacing: .06em; }
.group-cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.group-cal-table th { padding: 4px 0; font-size: 12px; font-weight: normal; color: var(--muted); text-align: center; }
.group-cal-table th:first-child { color: var(--red-ink); }
.group-cal-table td { height: 48px; padding: 0; border: 1px solid var(--line); vertical-align: top; text-align: center; }
.group-cal-table td.is-blank { background: var(--panel); }
.group-cal-table td.is-today { outline: 2px solid var(--green); outline-offset: -2px; }
.group-cal-num { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; padding: 4px 4px 0; font-size: 13px;
  color: var(--ink-soft); }
.group-cal-n { grid-column: 2; }
.group-cal-day { display: block; width: 100%; min-height: 48px; padding: 0; border: 0; background: var(--green-soft-2); color: inherit;
  font: inherit; cursor: pointer; }
.group-cal-day:hover, .group-cal-day:focus-visible { background: var(--green-soft); }
/* 行事・研修 (2026-11-27 「項目の高さが狭いので、日にちの部分は正方形になるように」): each day a square, as wide as its
   column; the グループ's calendar keeps its own (its 回 tags sit under the number). */
.events-cal .group-cal-table td { height: auto; }
.events-cal .group-cal-day { aspect-ratio: 1 / 1; min-height: 0; }
.events-cal .group-cal-table td > .group-cal-num { aspect-ratio: 1 / 1; align-content: start; }
.group-cal-day .group-cal-num { color: var(--ink); }
.group-cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; }
.group-cal-dot { display: inline-block; flex: none; box-sizing: border-box; width: 8px; height: 8px; border-radius: 999px; background: var(--muted); }
.group-cal-dot.is-plenary, .group-cal-dot.g-c0 { background: var(--green); }
.group-cal-dot.is-meeting, .group-cal-dot.g-c1 { background: var(--tag-todoke); }
.group-cal-dot.is-other, .group-cal-dot.g-c2 { background: var(--tag-kenshu); }
.group-cal-dot.g-c3 { background: var(--red-ink); }
.group-cal-dot.g-c4 { background: var(--gold-ink); }
.group-cal-dot.is-cancelled { border: 1px solid var(--muted); background: transparent; }
.group-cal-list { display: grid; gap: 4px; }
.group-cal-dayhead { margin: 12px 0 0; padding-bottom: 4px; border-bottom: 1px solid var(--line); font: 500 16px var(--serif);
  scroll-margin-top: calc(var(--header-h, 0px) + 16px); }
/* 予定の行 (2026-11-09 「打ち合わせは上 タイトルは下」「下にも罫線を」): the tags on top, the title under them with the time on
   its line, a rule under each row and the room of the 回's rows */
.group-cal-items { display: grid; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.group-cal-sittings + .group-cal-list .group-cal-items { border-top: 0; }
.group-cal-item { scroll-margin-top: calc(var(--header-h, 0px) + 16px); }
.group-cal-item { border-bottom: 1px solid var(--line); }
.group-cal-link { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 12px 4px;
  border-radius: 3px; color: var(--ink); text-decoration: none; line-height: 1.6; }
.group-cal-link:hover { background: var(--green-soft-2); }
.group-cal-when { font-size: 14px; color: var(--ink-soft); }
.group-cal-name { font-size: 16px; }
/* 「日付｜打ち合わせ／時間｜タイトル の２カラム２段」: the day over the time, the tags over the title; the time and the title on one
   line (「高さ合わせて並んでいるのがいい感じ」) */
.group-cal-date { grid-column: 1; grid-row: 1; font-size: 13px; color: var(--ink-soft); }
.group-cal-tags { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.group-cal-link .group-cal-name { grid-column: 2; grid-row: 2; }
.group-cal-link .group-cal-when { grid-column: 1; grid-row: 2; }
.group-cal-tag, .group-cal-group { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
/* 「打ち合わせはタグにしますか。高さは合わせてください」: the kind and the 出欠 as tags like the グループ's, on the first line's middle */
/* 「タグの高さは文字の高さと合わせて」「折れるようであれば…文字の高さに揃える」: as tall as the words beside them, never broken inside */
.group-cal-tag { padding: 0 8px; border: 1px solid currentColor; border-radius: 999px; line-height: 1.2; white-space: nowrap; }
/* 「中央がずれている」: the tags' words on the line of the words beside them (by the baseline, not the boxes' middles) */
.group-cal-link .group-cal-date, .group-cal-link .group-cal-tags { align-self: baseline; }
.group-cal-tag.is-open, .group-cal-tag.is-cancelled { color: var(--red-ink); }
.group-cal-item.is-cancelled .group-cal-name { color: var(--muted); text-decoration: line-through; }
.group-cal-group { padding: 0 8px; border: 1px solid currentColor; border-radius: 999px; }
.group-cal-link .group-cal-group { line-height: 1.2; white-space: nowrap; }
.group-cal-group.g-c0 { color: var(--green); }
.group-cal-group.g-c1 { color: var(--tag-todoke); }
.group-cal-group.g-c2 { color: var(--tag-kenshu); }
.group-cal-group.g-c3 { color: var(--red-ink); }
.group-cal-group.g-c4 { color: var(--gold-ink); }
.group-event-form { display: grid; gap: 16px; margin-top: 12px; }
.group-event-form > .dark-button { justify-self: start; }
.group-cancelled { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--red); background: var(--red-soft-2); color: var(--red-ink); }
.group-online { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.group-online-note { font-size: 14px; color: var(--ink-soft); }
.group-note { margin: 4px 0 8px; font-size: 14px; color: var(--ink-soft); }
.group-deadline { margin: 0 0 8px; font-size: 14px; }
.group-counts { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 8px 0 12px; font-size: 16px; }
.group-counts > span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.group-subhead { margin: 12px 0 4px; font: 500 16px var(--serif); }
.group-answer { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; border: 0; }
.group-answer-form { display: grid; gap: 12px; margin: 8px 0 12px; }
.group-answer-form > .dark-button { justify-self: start; }
.group-people { display: grid; margin: 8px 0; padding: 0; list-style: none; }
.group-people > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.group-people > li.is-former { color: var(--muted); }
.group-person { min-width: 8em; }
.group-answer-tag { font-size: 14px; }
.group-answer-tag.is-venue { color: var(--green); }
.group-answer-tag.is-online { color: var(--tag-todoke); }
.group-answer-tag.is-absent { color: var(--red-ink); }
.group-answer-tag.is-none { color: var(--muted); }
.group-proxy { font-size: 12px; color: var(--gold-ink); }
.group-word { flex-basis: 100%; font-size: 14px; color: var(--ink-soft); }
.group-mails li { margin: 4px 0; font-size: 14px; color: var(--ink-soft); }
.group-sittings { display: grid; gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.group-sittings > li { display: grid; gap: 4px; }
.group-sitting-link { font: 500 16px var(--serif); }
.group-sitting-when { font-size: 13px; color: var(--muted); }
/* 議事録の案・確定・資料を探す・使っている量・まとめて入れる (0190 段2b, G30・G32) */
.group-minutes { justify-self: start; padding: 0 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; letter-spacing: .04em; }
.group-minutes.is-confirmed { color: var(--green); }
.group-minutes.is-draft { color: var(--gold-ink); }
.group-usage { margin: 4px 0 8px; font-size: 13px; color: var(--ink-soft); }
.group-usage.is-near { color: var(--red-ink); }
.group-find { margin: 12px 0 4px; }
.group-find-count { font-size: 13px; color: var(--muted); }
.group-bulk-add > .field, .group-bulk-add > .kessai-row { margin-top: 8px; }
.group-bulk-add > .plain-button { margin-top: 8px; }
.group-bulk-results li { margin: 4px 0; font-size: 14px; }
.group-bulk-results li.is-failed { color: var(--red-ink); }
.group-limit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.group-limit select { min-height: var(--control-h, 40px); padding: 4px 8px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--card); font: 16px var(--serif); }
/* 議題とコメント (0191 段3, G14・G31) */
.group-topics { display: grid; gap: 4px; margin: 8px 0; padding: 0; list-style: none; }
.group-topic-link { display: grid; gap: 4px; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.group-topic-link:hover { background: var(--green-soft-2); }
.group-topic-title { font: 500 16px var(--serif); }
.group-topic-meta { font-size: 13px; color: var(--muted); }
.group-topic-item.is-withdrawn .group-topic-title, .group-topic-item.is-hidden .group-topic-title { color: var(--muted); }
.group-comments { display: grid; margin: 8px 0 16px; padding: 0; list-style: none; }
.group-comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.group-comment-meta { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.group-post-note { margin: 4px 0; font-size: 14px; color: var(--muted); }
.group-post-note.is-hidden { color: var(--red-ink); }
.group-post-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.group-topic-files li { margin: 4px 0; }
/* グループから外に出す (0192 段4, G15・G16) */
.group-audience { display: grid; gap: 8px; margin: 8px 0; padding: 0; border: 0; }
.group-audience > legend { padding: 0; font-size: 14px; color: var(--ink-soft); }
.group-change > .dark-button { margin-top: 8px; }
@media (max-width: 760px) {
  .group-cal-table td { height: 44px; }
  .group-cal-day { min-height: 44px; }
  /* スマホ (「日付｜時間｜打ち合わせ／タイトル〜 の2段に」): the day, the time and the tags on the first line, the title under them */
  .group-cal-link { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 8px; }
  .group-cal-link .group-cal-date { grid-column: 1; grid-row: 1; }
  .group-cal-link .group-cal-when { grid-column: 2; grid-row: 1; }
  .group-cal-link .group-cal-tags { grid-column: 3; grid-row: 1; }
  .group-cal-link .group-cal-name { grid-column: 1 / -1; grid-row: 2; }
  /* 「モバイルでの上カラムは文字サイズ統一」: the day, the time and the tags in one size, on one middle line */
  .group-cal-link .group-cal-date, .group-cal-link .group-cal-when, .group-cal-link .group-cal-tag,
  .group-cal-link .group-cal-group { font-size: 13px; }
  .group-cal-link .group-cal-when { align-self: baseline; }
}
@media (max-width: 760px) {
  .group-box .kessai-row > .kessai-who, .group-box .kessai-row > .kessai-date { flex-basis: 100%; max-width: none; }
}

/* 登録コード (0188): the 宗派の管理者's list of temples and their codes, and the profile's 「登録コードで加わる」. */
.code-issue { margin: 16px 0 20px; }
.code-issue textarea { width: 100%; max-width: 100%; }
.code-issue .form-actions, .code-issue .form-status { margin-bottom: 0; }
.code-pick-all { align-items: center; margin: 4px 0 8px; }
.code-chosen { font-size: 14px; color: var(--ink-soft); }
.code-pick { margin-right: 0; }
.code-table td.code-state .cell-note { margin-top: 2px; }
.code-mark { font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.code-mark.code-open { color: var(--green); }
.code-mark.code-used { color: var(--ink); }
.code-mark.code-locked, .code-mark.code-expired { color: var(--red); }
.code-redeem .staff-link-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.code-redeem .staff-link-body input, .code-redeem .staff-link-body select { width: 100%; max-width: 420px; }
.code-redeem .staff-link-body .form-actions, .code-redeem .staff-link-body .form-status { margin: 0; }
@media (max-width: 1180px) {
  .code-table td.code-state .cell-note { display: inline; margin: 0 0 0 8px; }
}
/* 会員をまとめて登録する (0193): the table pasted and checked, the results, and what is printed alone (each 1枚 of the
   登録の案内 on a page of its own). */
.bulk-paste { width: 100%; max-width: 100%; min-height: 160px; font: 14px/1.7 var(--sans); }
.bulk-form .field input[type="text"] { width: 100%; max-width: 560px; }
.bulk-box { margin-top: 24px; }
.bulk-table td.bulk-email { overflow-wrap: anywhere; }
.bulk-table td.bulk-temple select { width: 100%; max-width: 360px; }
.bulk-table td .cell-note { display: block; margin-top: 2px; }
.bulk-mark { font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.bulk-mark-ready, .bulk-mark-done { color: var(--green); }
.bulk-mark-warn, .bulk-mark-same, .bulk-mark-choose { color: var(--ink); font-weight: 600; }
.bulk-mark-skip, .bulk-mark-failed { color: var(--red); }
.bulk-row.bulk-skip td, .bulk-row.bulk-exists td { color: var(--ink-soft); }
.bulk-actions { align-items: center; }
.bulk-progress { font-size: 14px; color: var(--ink-soft); }
.bulk-halted { color: var(--red); }
.bulk-part { margin: 16px 0 0; }
.bulk-part-title { margin: 20px 0 8px; font-size: 16px; }
.bulk-codes { width: 100%; max-width: 320px; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.guide-extra { margin-top: 16px; }
.print-batch { display: none; }
/* phones and tablets (as the lists of 載せる・管理): a row of the table checked is its name with the box, then one line each
   (お寺・立場・確かめ), never joined by 「・」 */
@media (max-width: 1180px) {
  .bulk-table td:not(.cell-main):not(.actions) { flex-basis: 100%; margin-left: 0; }
  .bulk-table td:not(.cell-main):not(.actions):not(.cell-none) ~ td:not(.cell-main):not(.actions) { margin-left: 0; }
  .bulk-table td:not(.cell-main):not(.actions):not(.cell-none) ~ td:not(.cell-main):not(.actions)::before { content: none; }
  .bulk-table td.bulk-pick:not(.cell-main):not(.actions) { order: 0; flex: none; flex-basis: auto; font-size: 16px; }  /* the box beside the name */
  .bulk-table td.bulk-mark-cell { margin-top: 4px; }
}
@media print {
  .print-batch { display: block; position: absolute; left: 0; top: 0; width: 100%; }
  .print-batch, .print-batch * { visibility: visible; }
  .print-batch .guide-sheet { position: static; break-after: page; }
  .print-batch .guide-sheet:last-child { break-after: auto; }
  .bulk-print table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .bulk-print th, .bulk-print td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
}

/* ---- グループのページの見た目 案B (2026-11-09, 「もっと見出しや開閉トグルも凝ったデザインに」「グループのデザインももっとリッチに」→ 案B) ----
   見出し: as elsewhere (「見出しの装飾はなくていいや」, the band and the line taken off again). 開閉: an outlined button with ＋ (− when open); the lists that only
   show more are quieter, with a turning mark. カード: a band of the グループ's colour on top and three small boxes. 回: a tag on
   each of its days. Only the グループ's pages; the PC calendar stays as it was (「シンプルで良好」). */
.group-box details > summary { list-style: none; }
.group-box details > summary::-webkit-details-marker { display: none; }
.group-box details:is(.group-upload, .group-bulk-add, .group-act, .group-change) > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 16px; border: 1px solid var(--green);
  border-radius: 4px; background: var(--card); color: var(--green-dark); cursor: pointer; font-size: 14px; letter-spacing: .06em; }
.group-box details:is(.group-upload, .group-bulk-add, .group-act, .group-change) > summary::before { content: "＋"; font-family: inherit;
  font-weight: 500; }
.group-box details:is(.group-upload, .group-bulk-add, .group-act, .group-change)[open] > summary { background: var(--green-soft);
  margin-bottom: 4px; }
.group-box details:is(.group-upload, .group-bulk-add, .group-act, .group-change)[open] > summary::before { content: "−"; }
.group-box details:is(.group-upload, .group-bulk-add, .group-act, .group-change) > summary:hover { background: var(--green-soft); }
.group-box details.group-change > summary { min-height: 32px; padding: 2px 12px; font-size: 13px; }
.group-box details.group-more > summary { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; }
.group-box details.group-more > summary::before { content: "›"; display: inline-block; font-size: 16px; line-height: 1;
  transition: transform .15s; }
.group-box details.group-more[open] > summary::before { transform: rotate(90deg); }
/* カード */
.group-card { position: relative; overflow: hidden; gap: 8px; padding: 16px 20px; border-top: 4px solid var(--green); }
.group-card.g-c1 { border-top-color: var(--tag-todoke); }
.group-card.g-c2 { border-top-color: var(--tag-kenshu); }
.group-card.g-c3 { border-top-color: var(--red-ink); }
.group-card.g-c4 { border-top-color: var(--gold-ink); }
.group-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.group-card-stat { display: grid; gap: 2px; padding: 8px 4px; border-radius: 4px; background: var(--panel); text-align: center; }
.group-card-stat small { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.group-card-stat b { font-weight: 500; font-size: 14px; color: var(--ink); }
/* 回 on the calendar */
.group-cal-sitting { display: block; margin: 2px 3px 3px; padding: 0 4px; overflow: hidden; border-radius: 2px; background: var(--gold-soft);
  color: var(--gold-ink); font-size: 12px; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
/* 回 under the table (「宗会議員｜タイトル｜日にち」「罫線で区切る」「上下余白をもう少し広げて」): one row each between rules */
.group-cal-sittings { display: grid; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.group-cal-sittings li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.group-cal-sitting-group { padding: 0 8px; border: 1px solid var(--gold-line); border-radius: 999px; background: var(--gold-soft);
  color: var(--gold-ink); font-size: 12px; letter-spacing: .04em; }
.group-cal-sitting-name { font-size: 16px; }
/* 六曜 (2026-11-09 「カレンダーに六曜入れられますか（日にちの横に小さく）」「スマホじゃ厳しいな」「六曜の位置は右上にして。日にちは
   中央でOK」「六曜の文字の揃えは数字と合わせて」): at the right of the day's first line, on the number's baseline, the number
   staying in the middle; wide screens only; 友引 in 朱 as in the 過去帳's
   calendars. */
.group-cal-rokuyo { grid-column: 3; justify-self: end; font-size: 10px; color: var(--muted); letter-spacing: .02em; }
.group-cal-rokuyo.is-tomobiki { color: var(--red-ink); }
@media (max-width: 760px) { .group-cal-rokuyo { display: none; } }
/* 行事・研修のカレンダー (2026-11-10, 「このページにもカレンダーがあった方がいい」→ 設計 Events_Calendar v0.1 の A・ア): the
   グループ's month table; a dot for each 行事 with their key under the table, and the month's 行事・研修 under that. Only the
   colours' names, so the night as it is. The dots (同日 「点の色はやっぱり変えましょう」): not the 分類's tags any more, whose
   green and blue were hard to tell apart in a dot (the nearest two 23 apart, at night 21), but 行事 緑・研修 金茶・会議 藍
   (38 apart at the least, at night 41); no 朱, kept for 日曜 and 友引. */
.group-cal-dot.ev-EVENT { background: var(--green); }
.group-cal-dot.ev-TRAINING { background: var(--gold-ink); }
.group-cal-dot.ev-MEETING { background: var(--about-navy-t); }
.events-cal-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; margin: -4px 0 0; font-size: 13px;
  color: var(--ink-soft); }
.events-cal-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.events-cal-list { border-top: 1px solid var(--line); }
.events-cal-list > li { scroll-margin-top: calc(var(--header-h, 0px) + 16px); }
.events-cal-next { margin: 8px 0 0; font: 500 16px var(--serif); letter-spacing: .06em; color: var(--ink-soft); }  /* 次の行事・研修, a label over the months */
/* 所属のお寺 */
.kessai-term-who .group-temple { display: block; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
/* 会員一覧・名簿 */
.group-roster-day { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.group-roster-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.group-roster-table th { padding: 8px; border-bottom: 2px solid var(--line-strong); font-weight: 500; font-size: 13px;
  color: var(--ink-soft); text-align: left; }
.group-roster-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.group-roster-table tr.is-future td { color: var(--ink-soft); }
.group-roster-role, .group-roster-term { white-space: nowrap; }
.group-roster-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0; }
@media (max-width: 560px) {
  .group-cal-sitting { margin: 2px 1px; font-size: 10px; }
  .group-roster-table { font-size: 14px; }
  .group-roster-table th:nth-child(4), .group-roster-table td:nth-child(4) { display: none; }
}
@media print {
  .group-roster, .group-roster * { visibility: visible; }
  .group-roster { position: absolute; left: 0; top: 0; width: 100%; margin: 0; border: 0; box-shadow: none; }
  .group-roster-table th:nth-child(4), .group-roster-table td:nth-child(4) { display: table-cell; }
}

/* ---- グループのページの並び (2026-11-10 「画像1のようなカラム構成にできますか」→「この案で作る」) ----
   次の回 on top (a green face with a line on its left), 議題 and 資料 side by side (議題 the wider), 予定 and 会員 under them;
   the whole width. Each box's heading with its mark and its one button on its right (＋, − while its form is open). */
.group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 0 12px; }
.group-head > .box-title { margin: 0; }
.group-box .group-opener { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 16px;
  border: 1px solid var(--green); border-radius: 4px; background: var(--card); color: var(--green-dark); cursor: pointer;
  font: 14px var(--serif); letter-spacing: .06em; white-space: nowrap; }
.group-box .group-opener::before { content: "＋"; font-weight: 500; }
.group-box .group-opener[aria-expanded="true"]::before { content: "−"; }
.group-box .group-opener:hover, .group-box .group-opener[aria-expanded="true"] { background: var(--green-soft); }
.group-region { margin: 0 0 16px; }
.group-region > .group-event-form { margin-top: 0; }
/* 次の回 */
.group-next { border-left: 4px solid var(--green); background: var(--green-soft); }
.group-next-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 0; }
.group-next-main { display: grid; gap: 4px; min-width: 0; }
.group-next-label { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; color: var(--green); letter-spacing: .06em; }
.group-next-label svg { width: 20px; height: 20px; }
.group-next-name { font: 500 24px var(--serif); letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.group-next-name:hover { text-decoration: underline; }
.group-next-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.group-next-when > b { font-weight: 500; font-size: 18px; }
.group-next-year { font-size: 14px; color: var(--muted); }
.group-next-count, .group-next-none { margin: 0; font-size: 14px; color: var(--ink-soft); }
.group-next-others { margin: 0 0 8px; }
.group-next .group-opener:hover, .group-next .group-opener[aria-expanded="true"] { background: var(--green-soft-2); }
/* 議題｜資料 */
.group-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; margin: 20px 0; }
.group-cols > .panel-box { margin: 0; }
.group-cols .group-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-about { margin-top: 20px; }
.group-no-vote { margin: 12px 0 4px; padding: 0 4px; font-size: 13px; }
.group-topics-box .group-topics { margin-top: 0; }
.group-topics-box .group-topic-link { padding: 12px 4px; }
.group-topic-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; }
.group-topic-sitting { padding: 0 8px; border: 1px solid var(--gold-line); border-radius: 999px; background: var(--gold-soft);
  color: var(--gold-ink); font-size: 12px; letter-spacing: .04em; line-height: 1.6; }
.group-topic-tags .group-cal-tag { font-size: 12px; }
.group-none { display: grid; justify-items: center; gap: 12px; margin: 4px 0 12px; padding: 24px 16px; border: 1px dashed var(--line-strong);
  border-radius: 6px; text-align: center; }
.group-none > p { margin: 0; color: var(--ink-soft); }
.group-documents .group-find input { min-width: 0; flex-basis: 100%; }
.group-usage-fold .group-usage { margin: 4px 0 0; }
@media (max-width: 900px) {
  .group-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .group-next-name { font-size: 20px; }
  .group-next-when > b { font-size: 16px; }
}

/* ---- グループの会員のアイコン (0198, 2026-11-10 「会員の欄にプロフィールのアイコンを」「議論ページでも投稿者に」「コメントした人にも」)
   A round icon (the person's mark when there is none): 40px beside a member's name, 28px beside a writer's, 96px on the person's
   page in the グループ. The icon and the name lead to that page. */
.member-mark { flex: none; }
.member-mark.is-list { width: 40px; height: 40px; }
.member-mark.is-list svg { width: 22px; height: 22px; }
.member-mark.is-small { width: 28px; height: 28px; }
.member-mark.is-small svg { width: 16px; height: 16px; }
.member-mark.is-large { width: 96px; height: 96px; box-shadow: 0 8px 18px -8px var(--shadow-warm-45), 0 0 0 1px var(--shadow-warm-06); }
.member-mark.is-large svg { width: 44px; height: 44px; }
.group-member-line > .kessai-term-who { flex: 0 1 auto; min-width: 0; }
.group-person-mark { display: inline-flex; flex: none; border-radius: 50%; text-decoration: none; }
.group-person-link, .group-writer-link { color: var(--ink); text-decoration: none; }
.group-person-link:hover, .group-writer-link:hover .group-writer-name { color: var(--green-dark); text-decoration: underline; }
.group-person-mark:hover .member-mark { box-shadow: 0 0 0 2px var(--green-soft); }
.group-writer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.group-writer-link { display: inline-flex; align-items: center; gap: 8px; }
.group-writer-name { font-size: 14px; color: var(--ink); }
.group-person-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 12px 0 16px; }
.group-person-names { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.group-person-name { margin: 0; font: 500 24px var(--serif); letter-spacing: .06em; }

/* メニューが1行に入らないとき (2026-11-10 「メニューが」「切れちゃった」, portal.js fitNav): 11の項目（グループ・受付・掲載・管理
   まで）が 1180px の枠に入らないときだけ、項目の間を詰める（is-tight）。それでも入らなければ2行に（is-wrap）。入るときは今のまま。 */
@media (min-width: 1181px) {
  .site-nav.is-tight { gap: 12px; }
  .site-nav.is-tight a { padding-left: 4px; padding-right: 4px; }
  .site-nav.is-tight a + a::before { left: -6px; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .site-nav.is-tight { column-gap: 4px; }
  .site-nav.is-tight a { letter-spacing: 0; }
}
@media (min-width: 761px) {
  .site-nav.is-wrap { flex-wrap: wrap; justify-content: flex-start; overflow: visible; column-gap: 20px; row-gap: 0; }
  .site-nav.is-wrap #nav-review, .site-nav.is-wrap #nav-manage { margin-left: 0; }
}
/* 宗派の入口 (2026-12-01): the first registration under the portal's own sign-in */
.signed-out-first { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
