/* ==========================================================================
   Kagura Design System — 案 C「新しい会員アプリ」（2026-10-05〜。旧「幕（まく）」の器を継ぐ）
   強弱で読ませる・色面で区切る・合図は萌黄の菱形だけ。
   単一の正本。全ページがこの1ファイルだけを読む。
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
/* チェックボックスの印は墨（ブラウザ既定のシステムの青は TONALITY の色に無い）。面が墨のときは --ink が明るい色に変わる */
input[type="checkbox"] { accent-color: var(--ink); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:where(h1,h2,h3,h4) { font-weight: 500; line-height: 1.35; }

/* --------------------------------------------------------------------------
   1. Primitives — 原色・寸法・時間（案 C・2026-10-05 Takuma 採用）
   これ以外の値をコンポーネントで直書きしない。
   色の根拠は N-pops Kagura の本番ロゴ（日輪の朱赤・筆文字の金箔）とアプリの theme-color（藍鼠）。
   実測コントラストは TONALITY.md の kagura 章と見本 ~/Desktop/kagura-redesign/C-new/index.html。
   -------------------------------------------------------------------------- */
:root {
  /* -- 地と文字 ----------------------------------------------------------- */
  --c-paper:     #EEF0F1;   /* 地 */
  --c-surface:   #FFFFFF;   /* カード（地との差 1.14:1 は縁 --c-line で補う） */
  --c-surface-2: #F6F7F8;   /* カードの中の沈んだ面 */
  --c-ink:       #121A1F;   /* 墨。白 17.60:1 / 地 15.39:1。14px 未満の文字はすべてこれ */
  --c-ink-2:     #3E4A52;   /* 補助。白 9.11:1 / 地 7.97:1（地の上は 14px 以上だけ） */
  --c-ink-3:     #6B7780;   /* 装飾・非テキスト専用（アイコンの線など） */
  --c-line:      #AEB8BE;   /* カードの縁。白 2.02:1 */

  /* -- 主色 = ロゴの朱赤（日輪） ----------------------------------------- */
  --c-red:       #C4200A;   /* 塗り（主ボタン・タイル・予定のある日）。白文字 5.90:1 */
  --c-on-red:    #FFFFFF;
  --c-red-text:  #A81B07;   /* 文字の朱（リンク等）。白 7.43:1 / 地 6.50:1 */
  --c-red-deep:  #8A1405;   /* 臙脂。場のキービジュアル・深いタイル。白文字 9.62:1 */
  --c-blush:     #FCE4DC;   /* 淡い朱の面。墨 14.47:1 */

  /* -- 差し色 = 筆文字の金箔。文字には使わない（地で 3.37:1） --------------- */
  --c-kin:       #A87848;
  --c-kin-light: #E2B989;   /* 臙脂の上の線 */

  /* -- 構造色 = theme-color の藍鼠 --------------------------------------- */
  --c-ai:        #486572;   /* 白文字 6.21:1（14px 以上） */
  --c-ai-deep:   #22333B;   /* ドック・左レール */
  --c-ai-tint:   #DCE6EA;   /* ナビの選択中。墨 13.87:1 */
  --c-on-dark:   #FFFFFF;
  --c-on-dark-2: #E8EEF0;   /* 濃い藍鼠の上の 12px ラベル 11.17:1 / Lc 90.7 */

  /* -- 合図 = 萌黄 ＋ 菱形 ＋ ▶ ＋ 言葉。「あなたが動く番」だけ -------------- */
  --c-cue:       #D4F04A;   /* 墨文字 13.71:1 / Lc 88.1 → 14px 以上の 900 だけ */
  --c-on-cue:    #121A1F;

  /* -- 旧名の読み替え（まだ作り直していない画面・部品のため） ---------------
     ⚠ 旧 --gold は文字にも使われていた（views に 98 箇所）。C の金箔は文字に使えない
       ので、読める補助の墨へ落とす。旧 --red（淡赤）は使われていない。 */
  --kinari-bg: var(--c-paper); --kinari-elev: var(--c-surface); --kinari-line: var(--c-line);
  --kinari-ink: var(--c-ink); --kinari-ink-2: var(--c-ink-2); --kinari-ink-3: var(--c-ink-3);
  --sumi-bg: var(--c-red-deep); --sumi-elev: #9C2312; --sumi-elev-2: #A92F1D; --sumi-line: #C25A49;
  --sumi-ink: var(--c-on-dark); --sumi-ink-2: #FBE9E3; --sumi-ink-3: #E8A797;
  --maku-1: var(--c-red-deep); --maku-2: var(--c-red-deep);
  --gold: var(--c-ink-2); --gold-on-light: var(--c-ink-2);
  --green: var(--c-ink-2); --blue: var(--c-ink-2); --red: var(--c-red);
  --green-on-light: var(--c-ink-2); --blue-on-light: var(--c-ink-2); --red-on-light: var(--c-red-text);
  --shu-light: var(--c-cue); --shu-dark: var(--c-cue);
  --ai-light: var(--c-ink-2); --ai-dark: var(--c-ink-2);
  /* 旧 LP（layout の <style>）の変数名 — kagura.css は layout でそれより後に読む */
  --bg-soft: #E3E7EA; --bg-warm: #E3E7EA; --bg-deep: var(--c-ink);
  --ink-soft: var(--c-ink-2); --ink-mute: var(--c-ink-2);
  --gold-bright: var(--c-ink-2); --gold-soft: var(--c-blush); --gold-pale: var(--c-blush);
  --hover: var(--c-red-text); --focus: var(--c-ink); --logo-dot: var(--c-red);
  --line-soft: color-mix(in srgb, var(--c-line) 50%, transparent);

  /* -- 余白: 4px グリッド ------------------------------------------------ */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px;
  --gutter: 16px;

  /* -- 角丸: 操作はピル、面は大きく丸く、タイルは左上だけ締める ---------- */
  --r-s: 12px; --r-m: 20px; --r-l: 28px; --r-xl: 36px; --r-pill: 999px;
  --r-tile: 8px var(--r-xl) var(--r-xl) var(--r-xl);   /* 吹き出し形 = 声の出どころ */
  /* 8 弁の「クッキー形」— アバター・予定のある日・資料のアイコン。この案の署名の形 */
  --cookie: polygon(100.0% 50.0%,99.4% 53.2%,97.7% 56.3%,95.4% 59.0%,92.9% 61.5%,90.7% 63.8%,89.3% 66.3%,88.6% 69.0%,88.4% 72.2%,88.5% 75.7%,88.2% 79.3%,87.2% 82.6%,85.4% 85.4%,82.6% 87.2%,79.3% 88.2%,75.7% 88.5%,72.2% 88.4%,69.0% 88.6%,66.3% 89.3%,63.8% 90.7%,61.5% 92.9%,59.0% 95.4%,56.3% 97.7%,53.2% 99.4%,50.0% 100.0%,46.8% 99.4%,43.7% 97.7%,41.0% 95.4%,38.5% 92.9%,36.2% 90.7%,33.7% 89.3%,31.0% 88.6%,27.8% 88.4%,24.3% 88.5%,20.7% 88.2%,17.4% 87.2%,14.6% 85.4%,12.8% 82.6%,11.8% 79.3%,11.5% 75.7%,11.6% 72.2%,11.4% 69.0%,10.7% 66.3%,9.3% 63.8%,7.1% 61.5%,4.6% 59.0%,2.3% 56.3%,0.6% 53.2%,0.0% 50.0%,0.6% 46.8%,2.3% 43.7%,4.6% 41.0%,7.1% 38.5%,9.3% 36.2%,10.7% 33.7%,11.4% 31.0%,11.6% 27.8%,11.5% 24.3%,11.8% 20.7%,12.8% 17.4%,14.6% 14.6%,17.4% 12.8%,20.7% 11.8%,24.3% 11.5%,27.8% 11.6%,31.0% 11.4%,33.7% 10.7%,36.2% 9.3%,38.5% 7.1%,41.0% 4.6%,43.7% 2.3%,46.8% 0.6%,50.0% 0.0%,53.2% 0.6%,56.3% 2.3%,59.0% 4.6%,61.5% 7.1%,63.8% 9.3%,66.3% 10.7%,69.0% 11.4%,72.2% 11.6%,75.7% 11.5%,79.3% 11.8%,82.6% 12.8%,85.4% 14.6%,87.2% 17.4%,88.2% 20.7%,88.5% 24.3%,88.4% 27.8%,88.6% 31.0%,89.3% 33.7%,90.7% 36.2%,92.9% 38.5%,95.4% 41.0%,97.7% 43.7%,99.4% 46.8%);

  /* -- 文字: 画面名・数字の見出しはしっぽり明朝 B1（700）、本文は Zen Kaku Gothic New ------
     2026-10-10 Takuma「書体がポップすぎる」→「しっぽり明朝」（Dela Gothic One をやめた）。ゴシックの太さは 700 まで。
     細い字（300）と字間の広い小さなラベルは使わない。階層は書体・太さ・大きさで作る。 */
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans:    "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --serif:   var(--sans);    /* 旧名。見出しの明朝はやめた（太さで階層を作る） */
  --latin:   var(--display); /* 旧名。ロゴの欧文 */
  --serif-jp: var(--sans); --serif-en: var(--sans);   /* 旧 LP の変数名 */

  --t-display: 48px;          /* 画面名（768px〜 64px） */
  --t-h1:      30px;
  --t-h2:      24px;          /* 節の見出し（900） */
  --t-h3:      19px;          /* カードの題（900） */
  --t-body:    16px;
  --t-sm:      15px;          /* 補助（700） */
  --t-xs:      14px;          /* 小さい補助（700） */
  --t-min:     12px;          /* 下タブのラベルだけ。墨系の Lc 90 以上の組み合わせに限る */
  --t-latin:   14px;          /* 旧名。字間を広げた小さな欧文ラベルはやめた */

  --lh-body: 1.75;
  --lh-tight: 1.35;

  /* -- 動き: ばねの戻りだけ ---------------------------------------------- */
  --dur-1: 120ms; --dur-2: 220ms; --dur-3: 420ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* -- レイアウト --------------------------------------------------------- */
  --topbar-h: 64px;
  --tabbar-h: 74px;           /* 下のドック */
  --rail-w: 232px;
  --col: 720px;
  --tap: 44px;                /* タップ標的の下限 */
}

/* --------------------------------------------------------------------------
   1b. プロジェクトのアクセント色
       管理側で場ごとに 1 色えらぶ。乱立してよい。
       ★ ただし出る場所は「幕・上帯の線・サムネ」＝ その場の身元を示すところだけ。
         本文の朱（あなたが動く番）と藍（済んだこと）には一切さわらない。
         身元の色と状態の色を混ぜると、朱が効かなくなるため。
   -------------------------------------------------------------------------- */
:root { --p-deep:#342d24; --p-glow:#5e5342; --p:#c3ad89; --p-line:#aa8b58; }  /* 既定＝金茶 */
/* プロジェクトのアクセント色 — 管理側で場ごとに 1 つ選ぶ。data-accent の 1 属性で切り替わる。
   --p-deep 幕の地 / --p-glow 幕の色みの層 / --p 幕の上の色 / --p-line 生成り上の 2px 線
   値は 8bit に丸めたあとで判定している（丸め落ちで 4.49:1 になる事故を防ぐため）。 */
[data-accent="suou"] { --p-deep:#2d1917; --p-glow:#4e2323; --p:#c76d6f; --p-line:#9e3d3f; }   /* 蘇芳 本文 11.34 ・ 色 4.63 ・ 線 6.15 ・ 墨字 5.24 */
[data-accent="beni"] { --p-deep:#351211; --p-glow:#601415; --p:#eb4e54; --p-line:#c9171e; }   /* 紅 本文 11.21 ・ 色 4.61 ・ 線 5.42 ・ 墨字 5.15 */
[data-accent="ai"] { --p-deep:#141f23; --p-glow:#15313f; --p:#218fc7; --p-line:#165e83; }   /* 藍 本文 11.68 ・ 色 4.65 ・ 線 6.63 ・ 墨字 5.21 */
[data-accent="tokiwa"] { --p-deep:#102418; --p-glow:#0c3e24; --p:#009d55; --p-line:#007b43; }   /* 常磐 本文 10.42 ・ 色 4.62 ・ 線 5.02 ・ 墨字 5.33 */
[data-accent="yamabuki"] { --p-deep:#3d2f0b; --p-glow:#745608; --p:#f8b500; --p-line:#b78500; }   /* 山吹 本文 5.86 ・ 色 7.21 ・ 線 3.09 ・ 墨字 10.39 */
[data-accent="murasaki"] { --p-deep:#291827; --p-glow:#452248; --p:#b668c6; --p-line:#883998; }   /* 紫 本文 11.44 ・ 色 4.61 ・ 線 6.37 ・ 墨字 5.18 */
[data-accent="asagi"] { --p-deep:#102b2b; --p-glow:#0c4e52; --p:#00a3af; --p-line:#009da9; }   /* 浅葱 本文 8.09 ・ 色 4.89 ・ 線 3.07 ・ 墨字 6.14 */
[data-accent="kincha"] { --p-deep:#342d24; --p-glow:#5e5342; --p:#c3ad89; --p-line:#a98956; }   /* 金茶 本文 6.46 ・ 色 6.24 ・ 線 3.07 ・ 墨字 8.65 */

/* --------------------------------------------------------------------------
   2. Surface — 意味トークン
      読む面は 1 種（地 + 白いカード）。臙脂の面は場のキービジュアルだけ。
      act = 合図（萌黄・あなたが動く番）／ done = 済んだこと（色を付けない補助の墨）。
   -------------------------------------------------------------------------- */
[data-surface="kinari"] {
  --bg: var(--c-paper);  --elev: var(--c-surface); --elev-2: var(--c-surface-2);
  --line: var(--c-line);
  --ink: var(--c-ink); --ink-2: var(--c-ink-2); --ink-3: var(--c-ink-3);
  --accent: var(--c-red-text);
  --accent-quiet: var(--c-blush);
  --ok: var(--c-ink-2); --info: var(--c-ink-2); --warn: var(--c-red-text);
  --act: var(--c-cue);  --act-ink: var(--c-on-cue);   /* 萌黄 + 墨 13.71:1 */
  --done: var(--c-ink-2);  --done-ink: #ffffff;       /* 補助の墨 + 白 9.11:1（色を付けない） */
  --tint: 18%; --tint-base: #ffffff;
  --btn-bg: var(--c-red); --btn-ink: var(--c-on-red); /* 朱 + 白 5.90:1（16px 900） */
  --scrim: rgba(18,26,31,.5);
  --shadow: none;
}
[data-surface="sumi"],
.surface-sumi {
  --bg: var(--sumi-bg);  --elev: var(--sumi-elev); --elev-2: var(--sumi-elev-2);
  --line: var(--sumi-line);
  --ink: var(--sumi-ink); --ink-2: var(--sumi-ink-2); --ink-3: var(--sumi-ink-3);
  --accent: var(--c-kin-light);
  --accent-quiet: color-mix(in srgb, var(--c-on-dark) 14%, transparent);
  --ok: var(--sumi-ink-2); --info: var(--sumi-ink-2); --warn: var(--sumi-ink);
  --act: var(--c-cue);  --act-ink: var(--c-on-cue);
  --done: var(--c-on-dark);  --done-ink: var(--c-red-deep);
  --tint: 20%; --tint-base: var(--sumi-elev);
  --btn-bg: var(--c-on-dark); --btn-ink: var(--c-ink);
  --scrim: rgba(0,0,0,.62);
  --shadow: none;
}

/* --------------------------------------------------------------------------
   3. App shell — 上部バー / 下のドック（900px〜 左レール）
   -------------------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 500;                     /* ⚠ 旧 LP の <style> が 300（細字）にしていた = 「薄い」の一因 */
  line-height: var(--lh-body);
  font-feature-settings: "palt" 1;
}
/* 旧 LP の全画面ノイズは使わない */
.maku-body::before { content: none !important; display: none !important; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.tabbar :focus-visible, [data-surface="sumi"] :focus-visible, .surface-sumi :focus-visible { outline-color: var(--c-on-dark); }

/* ばね: 押すと少し沈み、離すと弾んで戻る（上部バーの戻ると場の札のリンクも、同じバーのベルとそろえる） */
.press, .btn, .chip, .iconbtn, .topbar__back, a.topbar__where { transition: transform .45s var(--spring), background-color var(--dur-2) var(--ease), border-radius .45s var(--spring); }
.press:active, .btn:active, .chip:active, .iconbtn:active, .topbar__back:active, a.topbar__where:active { transform: scale(.95); transition-duration: .1s; }

.app {
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 80px);   /* ドック + 鳳凰（70px）の分 */
}

/* ---- 上部バー ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s3) var(--s2) var(--gutter);
  background: var(--c-paper);
}
.topbar__mark {
  display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap);
  font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: .02em;
  color: var(--c-ink); flex: none;
}
.topbar__mark i { color: var(--c-red); font-style: normal; }
.topbar__logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.topbar__mark { gap: 8px; }
.topbar__name--with-logo { font-size: 20px; }
.topbar__name { display: none; }
.topbar__initial { display: inline; }
@media (min-width: 420px) { .topbar__name { display: inline; } .topbar__initial { display: none; } }
/* 現在地チップ（場の中にいるとき） */
.topbar__where {
  display: inline-flex; align-items: center; min-width: 0; min-height: 36px;
  padding: 0 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--c-ink); font-size: var(--t-xs); font-weight: 700;
}
.topbar__where b { font-weight: 700; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.topbar__where { min-height: var(--tap); }   /* 押せる札（場の詳細へのリンク）は押せる大きさにする */
a.topbar__where:hover { border-color: var(--accent); }
a.topbar__where:hover b { color: var(--accent); }
.topbar__spacer { margin-left: auto; }
/* 戻る「‹ 親の名前」（掘り下げた画面・kagura-back-nav）。900px 未満ではロゴと入れ替わる。長い名前は 1 行で切る */
.topbar__back {
  display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); min-width: 0; flex: 0 1 auto;
  margin-left: calc(-1 * var(--s2)); padding-inline: var(--s2); border-radius: var(--r-pill);
  color: var(--accent); font-size: var(--t-body); font-weight: 700; line-height: 1;
}
.topbar__back-mark { font-size: 28px; line-height: 1; margin-top: -3px; }
/* 戻ると場の札が並ぶ画面（練習日程の詳細の「‹ 練習日程」と場の名前）では札だけが縮む（戻るは押せる幅と名前を保つ） */
.topbar__back:has(~ .topbar__where) { flex-shrink: 0; }
.topbar__back-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__back:hover .topbar__back-label { text-decoration: underline; text-underline-offset: 4px; }
.topbar--back .topbar__mark { display: none; }
/* 戻るのリンクの #ev- / #shelf- で戻ったとき、カードや棚が上部バー（sticky）の下に隠れないように */
html { scroll-padding-top: calc(var(--topbar-h) + var(--s3)); }
/* 場の中にいるあいだは上部バーの下にその場の色の線 */
[data-ba] .topbar::after {
  content: ""; position: absolute; inset: auto var(--gutter) 0 var(--gutter); height: 3px; border-radius: 2px;
  background: var(--p-line);
}

/* ---- 内容カラム -------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--col); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- 下のドック ---------------------------------------------------------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, minmax(max-content, 1fr));
  background: var(--c-ai-deep); color: var(--c-on-dark-2);
  border-radius: var(--r-l) var(--r-l) 0 0;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 58px; border-radius: 22px; padding-inline: 2px;
  font-size: var(--t-min); font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
  color: var(--c-on-dark-2);
}
.tabbar a span:not(.ico) { white-space: nowrap; }
.tabbar .ico { display: grid; place-items: center; width: 56px; height: 32px; border-radius: var(--r-pill);
  transition: background-color var(--dur-2) var(--ease), width .5s var(--spring); }
.tabbar a:hover .ico { background: color-mix(in srgb, var(--c-on-dark) 14%, transparent); }
.tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--c-on-dark); }
.tabbar a[aria-current="page"] .ico { background: var(--c-ai-tint); color: var(--c-ink); width: 64px; }
/* 下タブ「予定」の点（kagura-your-turn）— あなたの番（出欠の未回答・未確認の連絡）があるときだけ。萌黄の小さな菱形をアイコンの右上に置く。
   合図（.cue）ではない（§32 の例外）: 1 画面 3 個にも鳳凰の羽ばたきにも数えない。言葉は .vh でラベルの後ろに持つ。
   縁にドックの色の輪を付けて、アイコンの線と選択中の淡い地の上でも形が分かれるようにする */
.tabbar .ico { position: relative; }
.tabbar__dot { position: absolute; top: 2px; right: calc(50% - 20px); width: 10px; height: 10px; rotate: 45deg; border-radius: 2px;
  background: var(--c-cue); box-shadow: 0 0 0 2px var(--c-ai-deep); pointer-events: none; }

/* ---- 900px〜: 左レール（同じ nav・同じ DOM 順） ------------------------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --t-display: 64px; }
}
@media (min-width: 900px) {
  .app { padding-left: var(--rail-w); padding-bottom: var(--s7); }
  .tabbar {
    inset: 0 auto 0 0; width: var(--rail-w); height: 100dvh;
    padding: 96px 14px 24px;               /* 上はロゴの場所 */
    grid-template-columns: 1fr; grid-auto-rows: max-content; align-content: start; gap: 6px;
    border-radius: 0 var(--r-l) var(--r-l) 0;
  }
  .tabbar a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 52px; padding: 0 10px;
    font-size: var(--t-body); }
  .tabbar .ico { width: 32px; height: 32px; }
  .tabbar__dot { top: 0; right: -2px; }
  .tabbar a[aria-current="page"] { background: var(--c-ai-tint); color: var(--c-ink); }
  .tabbar a[aria-current="page"] .ico { background: none; width: 32px; }
  /* ロゴはレールの上に置く（上部バーの左端の要素をレールの上へ移す）。
     地はスマホと同じ地の色のまま（透かすと、スクロールした本文が「‹ 親の名前」と場の札の下に透けて重なって見える） */
  .topbar { padding-inline: var(--gutter); }
  /* ⚠ 上部バー（sticky・z 40）の重なりの文脈の中では、固定にしてもレール（z 50）の下に沈む。レールの上に出すため上部バーを上げる
     （上部バーは内容の列だけを覆い、レールとは重ならない）。地の色はレールと同じ色を自分で持つ（読み手と計測が同じ地を見る） */
  .topbar { z-index: 55; }
  .topbar__mark { position: fixed; z-index: 60; top: 20px; left: 24px; max-width: calc(var(--rail-w) - 48px); color: var(--c-on-dark); font-size: 26px;
    flex-direction: column; align-items: flex-start; gap: 6px; background: var(--c-ai-deep); }
  .topbar--back .topbar__mark { display: inline-flex; }   /* 広い画面ではロゴはレールの上に残し、戻るは内容の列の左端に置く */
  .topbar__mark .topbar__logo { height: 56px; }
  .topbar__mark .topbar__name { line-height: 1.1; overflow-wrap: anywhere; }
  .tabbar { padding-top: 132px; }
  .topbar__mark i { color: var(--c-kin-light); }
  .topbar__name { display: inline; } .topbar__initial { display: none; }
  .page { padding-bottom: var(--s7); }
}
/* 右添えカラムは .aside を持つページだけ */
@media (min-width: 1180px) {
  .page:has(.aside) { display: grid; grid-template-columns: minmax(0,1fr) 320px;
          gap: var(--s6); max-width: 1140px; margin-inline: auto;
          padding-inline: var(--gutter); align-items: start; }
  .page:has(.aside) > .wrap { padding-inline: 0; max-width: none; }
  .aside { display: block; position: sticky; top: calc(var(--topbar-h) + var(--s5)); }
}
.aside { display: none; }

/* --------------------------------------------------------------------------
   4. Typography — 太さと大きさで階層を作る
   -------------------------------------------------------------------------- */
.t-display { font-family: var(--display); font-size: var(--t-display); line-height: 1.05;
  font-weight: 400; letter-spacing: -.01em; }
.t-h1 { font-size: var(--t-h1); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -.01em; }
.t-h2 { font-size: var(--t-h2); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.t-h3 { font-size: var(--t-h3); font-weight: 700; line-height: var(--lh-tight); }
.t-body { font-size: var(--t-body); line-height: var(--lh-body); }
.t-sm { font-size: var(--t-sm); font-weight: 700; line-height: 1.6; }
.t-xs { font-size: var(--t-xs); font-weight: 700; line-height: 1.55; }
.t-muted { color: var(--ink-2); }
/* 旧: 字間を広げた小さな欧文ラベル。C では普通の太い小見出しにする */
.t-latin { font-family: var(--sans); font-size: var(--t-latin); font-weight: 700; letter-spacing: .02em;
  text-transform: none; color: var(--ink); }
.t-num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   5. Page head — 画面名は極太・下に金箔の筆線
   -------------------------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  padding-block: var(--s2) var(--s5); }
.page-head__top { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); width: 100%; }
.page-head h1 { font-family: var(--display); font-size: var(--t-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.page-head h1::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--c-kin); }
.page-head p { color: var(--ink); font-size: var(--t-body); font-weight: 700; margin-top: 0; padding-bottom: 6px; }
.back {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: var(--tap); margin-left: calc(var(--s3) * -1); padding-inline: var(--s3);
  color: var(--ink); font-size: var(--t-sm); font-weight: 700; border-radius: var(--r-pill);
}
.back:hover { background: var(--elev); }
.back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* --------------------------------------------------------------------------
   6. 幕（まく）— 場のヒーロー。旧 507px → 高さ上限 220px。

   ★★ Phase 60 ⑤ venue-hero-cushion-retire（Takuma 逐語「プロジェクトのヒーローですが、
      デザイン的な座布団は廃止してください。」）
      幕は **画像の上に浮く不透明な角丸パネル（＝座布団）を持たない**。
      撤去したもの（描画実測で「座布団として見えていた」ことを確認・ADR-Phase60-5）:
        (a) 地      background-color: var(--p-deep) + radial-gradient(隅のグロー) + linear-gradient
        (b) 枠・丸み border: 1px / border-radius: var(--r-m) / min-height: 168px / overflow: hidden
      残したもの:
        (c) 上辺の金の一本線（.maku::before）… 装飾の縁であって座布団ではない
        トークンの読み替え（幕の中は墨）… 中のチップ・ボタンの意味色がここに依存する
      可読性は **覆い（scrim）だけで保証**する。地のパネルには依存しない
      → `.po-portal-hero-copy.maku::after`（このファイル下部の「Phase 60 ⑤」節）。
      ⚠ 余白は `.po-portal-hero-copy` 自身の padding が持つ（実測 23.4px で変化なし）。
   -------------------------------------------------------------------------- */
.maku {
  /* ページが明るくても、幕の中だけは墨。中のチップもボタンも自動で墨仕様になる。
     「場に入った」合図を、**面ではなく覆いと金の線と現在地チップ**が担う。 */
  --bg: var(--sumi-bg); --elev: var(--sumi-elev); --elev-2: var(--sumi-elev-2);
  --line: var(--sumi-line);
  --ink: var(--sumi-ink); --ink-2: var(--sumi-ink-2); --ink-3: var(--sumi-ink-3);
  --accent: var(--p);
  --act: var(--shu-dark); --act-ink: #14110e;
  --done: var(--ai-dark); --done-ink: #14110e;
  --tint: 20%; --tint-base: var(--sumi-elev);
  --btn-bg: var(--p); --btn-ink: #14110e;
  color: var(--sumi-ink);
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.maku::before { /* 金の一本線 */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--p) 22%, var(--p) 62%, transparent);
  opacity: .85;
}
.maku__ghost { /* 明朝の透かし */
  position: absolute; right: -6px; top: 50%; translate: 0 -50%;
  font-family: var(--serif); font-size: 132px; line-height: 1; font-weight: 300;
  color: var(--p); opacity: .14; pointer-events: none; user-select: none;
  letter-spacing: .06em;
}
.maku__meta { position: relative; display: flex; align-items: center; gap: var(--s2);
  font-size: var(--t-xs); color: var(--sumi-ink-2); margin-bottom: var(--s2); }
.maku h1 { position: relative; font-family: var(--serif); font-size: clamp(24px,6.6vw,32px);
  font-weight: 400; letter-spacing: .04em; }
.maku__foot { position: relative; display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s2); margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   7. Panel — 節。見出しは 900・空のときは 1 行に畳む
   -------------------------------------------------------------------------- */
.panel { margin-block: 36px 0; }
.panel__head {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 44px; margin-bottom: var(--s3);
}
.panel__head h2 { font-family: var(--sans); font-size: var(--t-h2); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.panel__count { font-size: var(--t-sm); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.panel__more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding-inline: var(--s1);
  font-size: var(--t-sm); font-weight: 700; color: var(--accent); border-radius: var(--r-pill);
}
.panel__more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.panel__more:hover { text-decoration: underline; text-underline-offset: 4px; }
/* 空の節は枠を作らず 1 行 */
.panel--empty { margin-block: var(--s5) 0; }
.panel--empty .panel__head { margin-bottom: 0; }
.panel--empty .empty {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  min-height: 44px; padding: 0; border: 0; background: none;
  font-size: var(--t-sm); font-weight: 700; color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   8. Card / Row / Chip
      面は白いカード（縁 2.0:1・角 28px）。操作はピル。
      状態の色は 1 つだけ: 合図（萌黄 + 菱形）= あなたが動く番。済んだことは色を付けない。
   -------------------------------------------------------------------------- */
.card {
  background: var(--elev); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 20px;
}
.card--flat { background: transparent; }

.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--s3); min-height: 64px; padding: var(--s3) var(--s4);
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: transform .45s var(--spring), box-shadow var(--dur-1) var(--ease);
}
a.row:hover { box-shadow: inset 0 0 0 2px var(--ink); }
a.row:active { transform: scale(.98); transition-duration: .1s; }
.row__title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.row__sub { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); margin-top: 2px; }
.row__go { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2.2; flex: none; }
.rows { display: grid; gap: var(--s2); }
/* 場の行は左端にその場の色 */
.row--ba { position: relative; overflow: hidden; padding-left: calc(var(--s4) + 6px); }
.row--ba::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--p-line); }

/* 中立の札（役割・種類・状態）— 墨の線のピル。色を付けない */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 700; line-height: 1.2; white-space: nowrap; flex: none;
  background: transparent; color: var(--ink);
  border: 1.5px solid currentColor;
}
/* 合図 = あなたが動く番（萌黄の札・角を締める・菱形）。1 画面 0〜3 個 */
.chip--act, .chip--warn, .chip[data-status="act"] {
  min-height: 32px; padding: 2px 12px 2px 10px; border-radius: 6px; border: 0;
  background: var(--act); color: var(--act-ink); box-shadow: inset 0 0 0 2px var(--c-ink);
}
.chip--act::before, .chip--warn::before, .chip[data-status="act"]::before {
  content: ""; width: 8px; height: 8px; flex: none; margin: 0 2px; rotate: 45deg; border-radius: 1px; background: var(--c-ink);
}
/* 済んだこと — 色を付けない（✓ と言葉で示す） */
.chip--done, .chip--ok, .chip[data-status="done"] { background: transparent; border-color: currentColor; color: var(--ink); }
.chip--done::before, .chip--ok::before, .chip[data-status="done"]::before { content: "✓"; font-weight: 700; }
.chip--info { background: transparent; border-color: currentColor; }
/* 合図の点（行の先頭）— 菱形 */
.dot { display: inline-block; width: 12px; height: 12px; flex: none;
  rotate: 45deg; border-radius: 2px; background: var(--act); box-shadow: 0 0 0 2px var(--c-ink); }
.dot--soft { background: transparent; }
/* 押せる札（絞り込み等）は 44px のピル */
button.chip, a.chip {
  min-height: var(--tap); padding-inline: 18px; border: 1.5px solid var(--line);
  background: var(--elev); font-size: var(--t-sm); font-weight: 700;
}
button.chip:hover, a.chip:hover { border-color: var(--ink); }
.chip--on, a.chip.chip--on, button.chip.chip--on, button.chip[aria-pressed="true"], a.chip[aria-current="true"] {
  background: var(--c-ink); color: var(--c-on-dark); border-color: var(--c-ink); border-radius: 14px; font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. Button — 主操作は朱のピル。1 画面に 1 つ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: var(--t-body); font-weight: 700; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--c-red-deep); }
.surface-sumi .btn--primary:hover, [data-surface="sumi"] .btn--primary:hover { background: var(--c-blush); }
/* 「いま押すべき」= 合図（萌黄・角を締める・▶） */
.btn--act, .next .btn--primary {
  border-radius: 12px; background: var(--act); color: var(--act-ink); box-shadow: inset 0 0 0 2px var(--c-ink);
}
.btn--act::before, .next .btn--primary::before {
  content: ""; width: 0; height: 0; border-left: 10px solid var(--c-ink); border-block: 7px solid transparent;
}
.btn--ghost { background: var(--elev); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--c-blush); }
.btn--quiet { color: var(--accent); padding-inline: var(--s2); }
.btn--quiet:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* 円アイコンボタン（いいね等）— 44px */
.iconbtn {
  display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap); border-radius: var(--r-pill);
  color: var(--ink);
}
.iconbtn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.iconbtn:hover { background: var(--bg); }
.iconbtn[aria-pressed="true"] { color: var(--c-red); }
.iconbtn[aria-pressed="true"] svg { fill: currentColor; stroke: currentColor; }
.iconbtn__n { font-size: var(--t-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.actions { display: flex; align-items: center; gap: var(--s1); margin-left: -10px; }
.actions .iconbtn { width: auto; min-width: var(--tap); padding-inline: 10px; gap: 6px; grid-auto-flow: column; }
/* 上部バーのベルは白い丸。長い戻るの名前に押されても縮まない（縮むと押せる幅が 44px を切る） */
.topbar .iconbtn { width: 48px; height: 48px; flex: none; background: var(--c-surface); }
.topbar .iconbtn:hover { background: var(--c-blush); }

/* --------------------------------------------------------------------------
   10. Avatar — 8 弁の形（この案の署名の形）
   -------------------------------------------------------------------------- */
.ava {
  display: grid; place-items: center; flex: none; white-space: nowrap;
  width: 46px; height: 46px; clip-path: var(--cookie);
  font-family: var(--display); font-size: 19px; line-height: 1;
  background: var(--c-blush); color: var(--c-ink);
  object-fit: cover;
}
.ava--s { width: 36px; height: 36px; font-size: 15px; }
.ava--l { width: 72px; height: 72px; font-size: 30px; }
.ava-stack { display: flex; }
.ava-stack .ava { margin-left: -10px; }
.ava-stack .ava:first-child { margin-left: 0; }

/* --------------------------------------------------------------------------
   11. Post / Message — 投稿は白いカード 1 枚ずつ
   -------------------------------------------------------------------------- */
.post {
  background: var(--elev); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px;
}
/* ロール札が複数ある会員で行が膨らまないよう折り返す（2026-07-26 の実機 FB） */
.post__head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px var(--s3);
  min-width: 0; margin-bottom: var(--s3); }
.post__head > * { min-width: 0; }
.post__head .post__time { margin-left: auto; }
.post__name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.post__time { margin-left: auto; font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.post__body { font-size: var(--t-body); line-height: var(--lh-body); white-space: pre-line;
  overflow-wrap: anywhere; word-break: normal; }
.post__body a { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.post__foot { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.post__who { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); margin-top: var(--s1); }
.post__who b { font-weight: 700; color: var(--ink); }

.msg { display: grid; grid-template-columns: 46px 1fr; gap: var(--s3); padding-block: var(--s4); }
.msg + .msg { border-top: 1px solid var(--line); }
.msg--cont { padding-top: 0; border-top: 0; }
.msg--cont .ava { visibility: hidden; height: 0; }
.msg__head { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: 2px; }
.msg__name { font-size: var(--t-sm); font-weight: 700; }
.msg__time { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.msg__body { font-size: var(--t-body); line-height: var(--lh-body); white-space: pre-line; overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: var(--t-sm); font-weight: 700; color: var(--accent); }
.link-danger { display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding-inline: var(--s4); border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 700; color: var(--warn); }
/* 場のサムネ */
.thumb { background-color: var(--p-deep);
  background-image: linear-gradient(150deg, var(--p-glow), var(--p-deep));
  color: var(--p); }

/* --------------------------------------------------------------------------
   12. Composer — 起動は 1 行のピル。書くときだけシートを開く
   -------------------------------------------------------------------------- */

/* スレッドの下部固定コンポーザ */
.dock {
  position: fixed; inset: auto 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom)) 0; z-index: 45;
  padding: var(--s3) var(--gutter);
  background: var(--c-paper); border-top: 1px solid var(--line);
}
.dock__inner { display: flex; align-items: flex-end; gap: var(--s2);
  max-width: var(--col); margin-inline: auto; }
.dock textarea {
  flex: 1; min-height: 48px; max-height: 132px; resize: none;
  padding: 12px var(--s4); border-radius: 24px;
  background: var(--c-surface); border: 1.5px solid var(--ink-2); color: var(--ink);
  font-size: var(--t-body); line-height: 1.6;
}
.dock textarea::placeholder { color: var(--ink-2); opacity: 1; }
.dock textarea:focus { outline: 3px solid var(--c-ink); outline-offset: 2px; }
@media (min-width: 900px) {
  .dock { left: var(--rail-w); bottom: 0; }
}

/* 画像選択 — OS 既定の英語表記を出さない */
.filepick { position: relative; display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap); border-radius: var(--r-pill);
  color: var(--ink); }
.filepick:hover { background: var(--bg); }
.filepick svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.filepick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* --------------------------------------------------------------------------
   13. Form
   -------------------------------------------------------------------------- */
.field { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.field > label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--t-xs); color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 10px var(--s3);
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-s);
  color: var(--ink); font-size: var(--t-body);
}
.textarea { min-height: 108px; resize: vertical; line-height: var(--lh-body); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 56px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch > *:first-child { min-width: 0; }               /* 長いラベルで横あふれさせない */
.switch > label { flex: none; display: inline-flex; align-items: center;
  min-height: var(--tap); position: relative; }
.switch__track { width: 46px; height: 28px; border-radius: var(--r-pill); flex: none;
  background: var(--line); position: relative; transition: background var(--dur-2) var(--ease); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--bg);
  transition: translate var(--dur-2) var(--ease); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch input:checked + .switch__track { background: var(--ok); }
.switch input:checked + .switch__track::after { translate: 18px 0; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   14. 日付札 — 淡い朱の角丸札。月・日（極太）・曜日
   -------------------------------------------------------------------------- */
.date-tile {
  display: grid; justify-items: center; align-content: center; flex: none;
  width: 64px; min-height: 76px; padding: 6px 0;
  border-radius: var(--r-m); background: var(--c-blush); color: var(--c-ink); line-height: 1.2;
}
.date-tile__m, .date-tile__w { font-size: var(--t-xs); font-weight: 700; }
.date-tile__d { font-family: var(--display); font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   15. 状態表示・進捗
   -------------------------------------------------------------------------- */
.meter { height: 4px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--done); border-radius: inherit;
  transition: width var(--dur-3) var(--ease); }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: var(--s2) var(--s4);
  font-size: var(--t-sm); }
.kv dt { color: var(--ink-2); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s5); }
.hairline { height: 1px; border: 0; margin-block: var(--s5);
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5; }

/* --------------------------------------------------------------------------
   16. プロフィール — 見出し・次の予定・参加している場・お知らせ・タブ（案 C）
   -------------------------------------------------------------------------- */
.me-head { display: grid; justify-items: center; text-align: center; gap: 4px; padding-top: var(--s2); }
.me-head .ava.me-head__ava { width: 120px; height: 120px; font-size: 52px; background: var(--c-red); color: var(--c-on-red); }
.me-head__name { margin-top: var(--s3); font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.me-head__sub { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); }
.me-head__since { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); }
.me-head__bio { margin-top: 10px; max-width: 32em; text-align: left; font-size: var(--t-body); line-height: var(--lh-body); color: var(--ink); }
.me-head__row { display: flex; align-items: center; justify-content: center; gap: var(--s4) 20px; margin-top: var(--s4); flex-wrap: wrap; }
.me-head__stat { display: inline-flex; align-items: baseline; gap: 6px; }
.me-head__stat b { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; }
.me-head__stat span { font-size: var(--t-sm); font-weight: 700; }
@media (min-width: 768px) {
  .me-head { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 28px; }
  .me-head .ava.me-head__ava { grid-row: span 6; width: 148px; height: 148px; font-size: 64px; }
  .me-head__name { margin-top: 0; }
  .me-head__row { justify-content: flex-start; }
}

/* 次の予定 — 白いカード 1 行ずつ */
.next-list { display: grid; gap: 10px; }
.next-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-l); color: var(--ink);
  transition: transform .45s var(--spring), box-shadow var(--dur-1) var(--ease);
}
.next-item:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.next-item:active { transform: scale(.98); transition-duration: .1s; }
.next-item__body { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.next-item__title { font-size: var(--t-h3); font-weight: 700; line-height: 1.35; }
.next-item__where { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); }

/* 参加している場 — 吹き出し形の色面タイル（1 枚目は全幅で大きく） */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }   /* minmax(0,…): 札＋矢印の最小幅で列が列幅を超えない */
.place {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px;
  padding: 18px 18px 20px; border-radius: var(--r-tile);
  transition: transform .45s var(--spring);
}
.place:active { transform: scale(.97); transition-duration: .1s; }
.place:first-child { grid-column: 1 / -1; min-height: 148px; }
.place--red   { background: var(--c-red);   color: var(--c-on-red); }
.place--ai    { background: var(--c-ai);    color: var(--c-on-dark); }
.place--blush { background: var(--c-blush); color: var(--c-ink); }
.place__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.place .chip { color: inherit; }
.place__thumb { display: grid; place-items: center; width: 44px; height: 44px; flex: none; overflow: hidden;
  clip-path: var(--cookie); background: color-mix(in srgb, currentColor 18%, transparent); }
.place__thumb img { width: 100%; height: 100%; object-fit: cover; }
.place__thumb .card__thumb-ph { font-family: var(--display); font-size: 20px; line-height: 1; }
.place__name { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.place:first-child .place__name { font-size: 34px; }
@media (min-width: 600px) {
  .places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place:first-child { grid-column: auto; }
  .place:first-child .place__name { font-size: 26px; }
}

/* お知らせ（1 件）*/
.notice-card {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px;
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-l); color: var(--ink);
}
.notice-card:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.notice-card__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--bg); }
.notice-card__ic svg, .notice-card__go { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.notice-card__title { flex: 1; min-width: 0; font-weight: 700; line-height: 1.55; }

/* プロフィールのタブ — ピルの切り替え。
   ⚠ 作り（横スクロールの帯・端のフェード・inset のフォーカスリング）は Phase 53 の検証どおり変えない。見た目だけ。 */
nav[aria-label="プロフィール"] { gap: 6px; padding-block: 4px; margin-top: 36px; border-bottom: 0 !important; }
.ks-profile-tab {
  min-height: var(--tap); padding: 0 16px !important; margin-bottom: 0 !important;
  border: 0 !important; border-radius: var(--r-pill);
  font-size: var(--t-sm) !important; font-weight: 700 !important; color: var(--c-ink) !important;
  background: var(--c-surface);
}
.ks-profile-tab:hover { background: var(--c-blush); }
.ks-profile-tab[aria-current="page"] { background: var(--c-ink); color: var(--c-on-dark) !important; font-weight: 700 !important; }
.ks-profile-tab[aria-current="page"] svg, .ks-profile-tab[aria-current="page"] span { color: var(--c-on-dark) !important; }
.ks-profile-tab span { color: inherit !important; }

/* --------------------------------------------------------------------------
   16b. 資料の棚 — 棚ごとの吹き出しタイル（白）・大きな件数・白いピルの行
        2026-10-15 kagura-library-list: 先頭の棚だけの朱をやめた。朱は「新しく」の見出しだけ。
   -------------------------------------------------------------------------- */
/* 一覧の上の 2 段（新しく・最近見た）。棚の箱は作らず、地の上に行を並べる */
.lib-picks { display: grid; gap: var(--s5); margin-bottom: var(--s6); }
.lib-pick .panel__head { margin-bottom: var(--s2); }
.lib-pick .docs { margin-top: 0; }
.lib-pick--new .panel__head h2 { color: var(--c-red-text); }
.shelves { display: grid; gap: var(--s4); }
.shelves > .empty a { display: inline-flex; align-items: center; min-height: var(--tap); }   /* 全部空のときの 1 行のリンク。共有の .empty a は高さを持たないので、ここだけで 44px にする（他の画面の .empty は変えない） */
.shelf { padding: 24px 20px; border-radius: var(--r-tile); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink); }
.shelf__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); }
.shelf__head h2 { font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.shelf__desc { margin-top: 4px; font-size: var(--t-sm); font-weight: 700; color: var(--c-ink-2); }
.shelf__count { display: flex; align-items: baseline; gap: 4px; flex: none; }
.shelf__count b { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: .9; }
.shelf__count span { font-size: var(--t-body); font-weight: 700; }
.docs { display: grid; gap: 10px; margin-top: 18px; }
.row.doc {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px 10px 10px;
  border-radius: var(--r-m); border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink);
}
.row.doc:hover { box-shadow: inset 0 0 0 2px var(--c-ink); }
.doc__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--c-blush); clip-path: var(--cookie); }
.doc__ic svg, .doc__go { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.doc__title { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.doc__title .chip { display: inline-flex; vertical-align: 2px; margin-left: 4px; }   /* 「新しく」の札。題の後ろに続け、入らなければ次の行へ */
/* 資料詳細の添付（kagura-library-open-in-app）: 行は一覧と同じ .row.doc で、行全体が「見る」。「保存」はリンクの外の右。
   ul の 2 列を各行が subgrid で共有するので、「保存」の無い行も行の右端（›）がそろう。
   ホーム画面アプリでは「保存」を出さない（scope の中の attachment は、戻るボタンの無い全画面になる。保存は「見る」の枠の共有 →「ファイルに保存」）。
   列が空になるので、その間は名前の列が広がる */
.docs--att { grid-template-columns: minmax(0, 1fr) auto; column-gap: 0; margin-top: 0; }
.docs--att > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.docs--att [data-attachment-save] { margin-left: var(--s2); }
.doc__sub { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--c-ink-2); }
@media (display-mode: standalone) { .docs--att [data-attachment-save] { display: none; } }
@media (min-width: 900px) {
  .lib-picks { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: var(--s4); align-items: start; }   /* 列の間隔は棚と同じ（列の端をそろえる） */
  .shelves { grid-template-columns: 1fr 1fr; align-items: start; }
  .wrap:has(> .shelves) { max-width: 1080px; }
}

/* --------------------------------------------------------------------------
   16c. 仕上げ（cycle 2・ux-critic の指摘）
   -------------------------------------------------------------------------- */
/* 文字リンク（タブより弱い導線） */
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 4px;
  font-size: var(--t-sm); font-weight: 700; color: var(--c-red-text); }
.text-link::after { content: "→"; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* プロフィールのタブ: 1 本の白い入れ物に等分（横スクロールの作りは残す・幅が足りない端末では入れ物の中だけが流れる） */
nav[aria-label="プロフィール"] { margin-inline: 0 !important; padding: 4px !important; background: var(--c-surface); border: 1px solid var(--c-line) !important; border-radius: var(--r-pill); -webkit-mask-image: none !important; mask-image: none !important; gap: 4px; }
nav[aria-label="プロフィール"] .ks-profile-tab { flex: 1 0 auto; justify-content: center; }
/* 場のタイルの矢印 */
.place__go { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-left: auto; }
.place__row .chip { margin-left: 0; }
/* 投稿の「…」は右上（時刻の横）。自分の投稿のアバターは朱 */
.post { position: relative; }
.post:has(.post__menu) .post__head { padding-right: 48px; }
.post__menu { position: absolute; top: 22px; right: 10px; margin: 0; }   /* 44px のボタンの中心を名前の行（上端から 44px）に揃える */
.post__menu .iconbtn svg { fill: currentColor; stroke: none; }   /* .iconbtn svg の線描きの既定に負けて 3 点が輪になっていた */
.post--mine > .post__head .ava { background: var(--c-red); color: var(--c-on-red); }
/* 「いいね！: 名前」をアイコンの左端にそろえる */
.post__who { margin-left: -2px; }
.post__who .post__who-btn { padding-inline: 0; }
/* 日付札の数字・上部バーのベルの線・自己紹介の 1 文字だけの行 */
.date-tile__d { letter-spacing: -.04em; }
.topbar .iconbtn svg { stroke-width: 2; }
.me-head__bio { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   17. Sheet（投稿・詳細のモーダル）
   -------------------------------------------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet[open] { display: block; }
.sheet__scrim { position: absolute; inset: 0; background: var(--scrim); }
.sheet__panel {
  position: absolute; inset: auto 0 0 0; max-height: 88dvh; overflow: auto;
  padding: var(--s4) var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom));
  background: var(--bg); border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line);
  animation: rise var(--dur-3) var(--ease);
}
.sheet__grab { width: 36px; height: 4px; border-radius: var(--r-pill);
  background: var(--line); margin: 0 auto var(--s4); }
@keyframes rise { from { translate: 0 24px; opacity: 0; } }
@media (min-width: 900px) {
  .sheet__panel { inset: 50% auto auto 50%; translate: -50% -50%;
    width: min(560px, 92vw); border-radius: var(--r-m); border: 1px solid var(--line); }
}

/* 確かめる小窓（ブラウザの dialog。予定の削除の確認と「対象の会員に知らせる」・event-change-notice）。開閉・Esc・フォーカスは dialog に任せる */
.ask { width: min(420px, calc(100vw - 2 * var(--gutter))); margin: auto; padding: var(--s5); border: 1px solid var(--line);
  border-radius: var(--r-m); background: var(--elev); color: var(--ink); }
.ask::backdrop { background: rgba(18,26,31,.5); } /* 古いブラウザの ::backdrop は変数を継がないので --scrim の値を直に書く */
.ask__title { font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ask__check { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); margin-top: var(--s3); font-weight: 700; }
.ask__note { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.ask__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); margin-top: var(--s4); }

/* 予定の追加・編集のモーダル（運営ロール・部品 _schedule_form。ブラウザの dialog）。中は欄の部品（.field .input .select .textarea）と小窓の並び（.ask__actions）。
   余白は中の form に持たせる（dialog 自身を押した = 後ろの画面を押した、として閉じるため・kagura.js） */
.sform { width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 2 * var(--s4)); margin: auto; padding: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--elev); color: var(--ink); }
.sform::backdrop { background: rgba(18,26,31,.5); } /* .ask と同じ（::backdrop は変数を継がない） */
.sform form { padding: var(--s3) var(--s5) var(--s5); }
.sform__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.sform__title { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.4; }
.sform__errors { margin-bottom: var(--s4); }
.sform__row { display: grid; gap: 0 var(--s3); }
@media (min-width: 600px) { .sform__row { grid-template-columns: 1fr 1fr; } }
.sform__check { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); font-weight: 700; cursor: pointer; }
/* 印の欄（予定のモーダルと削除の小窓）: 本物のチェックボックスは透明にして札（ラベル）全体に広げ、44px の札のどこを押しても切り替わる。
   見える箱は ::before の 20px（付いたら墨の地に白の ✓）。キーボードで来たら札に朱の枠（スイッチ .switch と同じ考え方） */
.sform__check, .ask__check { position: relative; }
.sform__check input[type="checkbox"], .ask__check input[type="checkbox"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sform__check::before, .ask__check::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 4px; background: var(--elev) center / 14px no-repeat; }
.sform__check:has(input[type="checkbox"]:checked)::before, .ask__check:has(input[type="checkbox"]:checked)::before {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.sform__check:has(input[type="checkbox"]:focus-visible), .ask__check:has(input[type="checkbox"]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }
.sform__check--tile { min-width: 0; padding-inline: var(--s3); border: 1px solid var(--line); border-radius: var(--r-s); font-weight: 500; overflow-wrap: anywhere; }
.sform__check--tile:has(:checked) { border-color: var(--ink); }
.sform__hint { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.sform__box { margin-bottom: var(--s4); padding: var(--s2) var(--s3) var(--s3); border: 1px solid var(--line); border-radius: var(--r-s); }
.sform__box .field { margin-bottom: 0; }
.sform__fold { margin-bottom: var(--s4); border: 1px solid var(--line); border-radius: var(--r-s); }
.sform__fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s2); min-height: var(--tap); padding: var(--s2) var(--s3); cursor: pointer; list-style: none; }
.sform__fold > summary::-webkit-details-marker { display: none; }
.sform__fold-label { font-weight: 700; }
.sform__fold-go { margin-left: auto; color: var(--accent); font-weight: 700; }
.sform__fold-text { flex-basis: 100%; }
.sform__fold-body { display: grid; gap: var(--s3); padding: var(--s3); border-top: 1px solid var(--line); }
.sform__roles { min-width: 0; margin: 0; padding: 0; border: 0; }
.sform__roles legend { margin-bottom: var(--s2); padding: 0; font-size: var(--t-sm); font-weight: 700; }
.sform__tiles { display: grid; gap: var(--s2); }
@media (min-width: 600px) { .sform__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* スマホは 1 列（2 列だと役の名前が 3 行に折れる） */

/* --------------------------------------------------------------------------
   18. 目印・入場ラベル
   -------------------------------------------------------------------------- */
.enter-note {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--t-xs); color: var(--ink-2); padding-block: var(--s3);
}
.enter-note::before, .enter-note::after {
  content: ""; height: 1px; background: var(--line); flex: 1;
}
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: var(--r-pill);
  background: var(--warn); color: var(--bg);
  font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   19. Focus / Motion / a11y
   -------------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 画面を移るときのフェード（幕の転換）は 2026-10-15 にやめた（D7。すぐ次の画面を出す）。 */
/* 節の入り（スクロール連動の浮かび上がり）は案 C でやめた（動きはばねの戻りだけ）。 */

/* --------------------------------------------------------------------------
   20. 裏面のあかり — 真っ黒の平面にしないための、上からの淡い光
   -------------------------------------------------------------------------- */
[data-surface="sumi"] .app::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 320px; z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%,
    color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%);
}
[data-surface="sumi"] .topbar, [data-surface="sumi"] .page { position: relative; z-index: 1; }

.swatch { display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-s); flex: none;
  background-color: var(--p-deep);
  background-image: linear-gradient(150deg, var(--p-glow), var(--p-deep));
  border: 1px solid color-mix(in srgb, var(--p) 34%, transparent);
  color: var(--p); font-family: var(--serif); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   6b. 幕に画像（キービジュアル）が入るとき
       ★ 文字の可読性は「覆い（scrim）」だけで保証する。画像に期待しない。
         計測: 墨 #14110e を不透明度 0.80 以上でかぶせれば、
         真っ白な画像の上でも 本文 8.77:1 / 副次 4.67:1 を保てる。
       ★ 覆いをプロジェクト色にしてはいけない。
         山吹の覆いだと副次が 3.18:1 まで落ちる。色は画像側に薄く乗せる。
   -------------------------------------------------------------------------- */
.maku--photo {
  aspect-ratio: 4 / 3; min-height: 220px; max-height: 340px;
  padding: 0;                                   /* 余白は .maku__body 側で持つ */
  background-image: none;                       /* 画像が地になる。色は下地として残す */
}
.maku__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;  /* 主題は上寄りに置く前提 */
  z-index: 0;
}
/* 画像の上にプロジェクト色を薄く。可読性の保証には数えない層。 */
.maku__tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--p-glow); opacity: .18; mix-blend-mode: multiply;
}
/* 文字が載る帯。ここが保証の本体。高さが変わっても必ず 0.82 以上がかかる。 */
.maku--photo .maku__body {
  position: relative; z-index: 2; margin-top: auto;
  padding: var(--s5) var(--s4) var(--s4);
  background: linear-gradient(to top, rgba(20,17,14,.94), rgba(20,17,14,.82));
  /* 画像で幕の地色が隠れるぶん、境目に色を 2px 残す。舞台の幕の縁。 */
  box-shadow: inset 0 2px 0 var(--p);
}
.maku--photo .maku__body::before {           /* 帯の上を 64px かけて溶かす */
  content: ""; position: absolute; inset: auto 0 100% 0; height: 64px;
  background: linear-gradient(to top, rgba(20,17,14,.82), rgba(20,17,14,0));
}
.maku--photo .maku__ghost { display: none; } /* 明朝の透かしは画像とぶつかるので出さない */
.maku--photo .maku__meta,
.maku--photo h1,
.maku--photo .maku__foot,
.maku--photo .maku__when,
.maku--photo .maku__span { position: relative; z-index: 2; }
.maku--photo .maku__foot { display: none; }   /* チップと期間バーは幕の外へ出す */
/* 幕のすぐ下。画像の面積を稼ぐために、帯へ入れるのは「種類・日付」と「名前」だけにする。 */
.maku__under { margin-top: var(--s3); }
.maku__under .row1 { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.maku__under .meter { margin-top: var(--s3); }
.maku__under .meter i { background: var(--p-line); }
.maku__under .legend { display: flex; justify-content: space-between; gap: var(--s3);
  margin-top: 6px; font-size: var(--t-xs); color: var(--ink-2); }

/* --------------------------------------------------------------------------
   6c. 全幅の幕（ヒーロー）
       内容カラムの余白を抜けて端まで出す。ヒーローだけの特権で、
       ほかの節は絶対に全幅にしない（外周余白 1 値の規律を壊さないため）。
   -------------------------------------------------------------------------- */
.maku--bleed {
  margin-inline: calc(var(--gutter) * -1);
  border-radius: 0; border-left: 0; border-right: 0;
  max-height: none;
}
/* 文字の左端はページ本文と揃える。ここがずれると全幅にした瞬間に散らかる。 */
.maku--bleed .maku__body,
.maku--bleed:not(.maku--photo) { padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.maku--bleed.maku--photo { aspect-ratio: 4 / 3; min-height: 260px; }
/* 上帯のすぐ下から始める（隙間があると「全幅」に見えない） */
.maku--bleed:first-child { margin-top: calc(var(--s4) * -1); }

/* デスクトップでは内容カラムの端まで。左レールの下までは伸ばさない。 */
@media (min-width: 900px) {
  .maku--bleed { border-radius: var(--r-m); margin-inline: 0;
                 border-left: 1px solid var(--sumi-line); border-right: 1px solid var(--sumi-line); }
  .maku--bleed:first-child { margin-top: 0; }
}

/* ごく浅い視差。動きに弱い人には出さない。 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .maku--photo .maku__img {
      animation: maku-parallax linear both;
      animation-timeline: view(); animation-range: entry 0% exit 100%;
    }
    @keyframes maku-parallax {
      from { translate: 0 -3%; scale: 1.06; }
      to   { translate: 0  3%; scale: 1.06; }
    }
  }
}

/* --------------------------------------------------------------------------
   6d. 場のカード（一覧）— 画像 + 文章の 2 カラム
       画像のある場は画像が、無い場はその場の色が、左の枠を埋める。
       どちらでも「色の並び」として一覧が成立するようにしてある。
   -------------------------------------------------------------------------- */
.venue {
  display: grid; grid-template-columns: 120px minmax(0, 1fr);
  min-height: 116px; overflow: hidden;
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.venue:hover { border-color: color-mix(in srgb, var(--p-line) 55%, var(--line)); }
.venue:active { transform: scale(.995); }

.venue__media {
  position: relative; overflow: hidden;
  background-color: var(--p-deep);
  background-image: linear-gradient(150deg, var(--p-glow), var(--p-deep));
  /* 画像が無い場は、この枠がまるごとその場の色になる */
}
.venue__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue__media::after {                       /* 画像の上に薄く色を重ねて、一覧の色を揃える */
  content: ""; position: absolute; inset: 0;
  background: var(--p-glow); opacity: .16; mix-blend-mode: multiply;
}
.venue__media .ghost {                        /* 画像が無いときの明朝の透かし */
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 46px; font-weight: 300;
  color: var(--p); opacity: .5;
}
.venue__media .ghost + img ~ .ghost { display: none; }

.venue__body { display: flex; flex-direction: column; gap: 3px;
  padding: var(--s3) var(--s4); min-width: 0; }
.venue__kind { font-size: var(--t-xs); color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue__title { font-family: var(--serif); font-size: var(--t-h2); font-weight: 500;
  line-height: var(--lh-tight);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue__meta { font-size: var(--t-sm); color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.venue__foot { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  margin-top: auto; padding-top: var(--s2); }
/* 進行のバーはカードの下端に細く */
.venue__span { grid-column: 1 / -1; height: 3px; background: var(--line); }
.venue__span i { display: block; height: 100%; background: var(--p-line); }

@media (min-width: 600px) {
  .venue { grid-template-columns: 168px minmax(0, 1fr); min-height: 132px; }
  .venue__media .ghost { font-size: 58px; }
}

/* --------------------------------------------------------------------------
   20b. 場の 3 つの性格 — 器は同じ。違うのは「時間の扱い」だけ。
        プロジェクト = 期間がある / イベント = 1 点の日時 / サブコミュニティ = 終わらない
   -------------------------------------------------------------------------- */
/* 期間バー（プロジェクトだけが持つ） */
.maku__span { position: relative; margin-top: var(--s3); }
.maku__span .meter { background: rgba(243,237,226,.16); }
.maku__span .meter i { background: var(--p); }
.maku__span p { display: flex; justify-content: space-between; gap: var(--s3);
  margin-top: 6px; font-size: var(--t-xs); color: var(--sumi-ink-2); }

/* イベント: 日付そのものが主役 */
.maku--event .maku__when {
  position: relative; display: flex; align-items: baseline; gap: var(--s2);
  font-family: var(--serif); color: var(--p); margin-bottom: var(--s1);
}
.maku--event .maku__when b { font-size: 42px; font-weight: 400; line-height: 1;
  font-variant-numeric: tabular-nums; }
.maku--event .maku__when span { font-size: var(--t-sm); color: var(--sumi-ink-2); }

/* サブコミュニティ: 日付が無い。人と最終更新だけ。 */
.maku--group { min-height: 148px; }
.maku--group .maku__ghost { font-size: 108px; }

/* --------------------------------------------------------------------------
   20c. スレッド — 場の主役。リンクの一覧ではなく、会話の断片を見せる。
        中身があるものだけ大きくする（空のスレッドは 1 行のまま）。
   -------------------------------------------------------------------------- */
.thread {
  display: block; padding: var(--s4);
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.thread:hover { border-color: color-mix(in srgb, var(--accent) 46%, var(--line)); }
.thread:active { transform: scale(.995); }
.thread__head { display: flex; align-items: baseline; gap: var(--s3); }
.thread__title { flex: 1; min-width: 0; font-family: var(--serif); font-size: var(--t-h2);
  font-weight: 500; line-height: var(--lh-tight); }
.thread__time { font-size: var(--t-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 最後の発言の断片 = ここが「幅」。誰が何を話しているかが一覧で分かる。 */
.thread__last {
  display: grid; grid-template-columns: 28px 1fr; gap: var(--s3);
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.thread__last p { font-size: var(--t-sm); line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread__last b { color: var(--ink); font-weight: 600; }
.thread__foot { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.thread__foot .ava-stack .ava { box-shadow: 0 0 0 2px var(--elev); }
/* まだ誰も話していないスレッドは大きくしない */
.thread--quiet { padding: var(--s3) var(--s4); }
.thread--quiet .thread__title { font-size: var(--t-h3); font-family: var(--sans); font-weight: 600; }

/* --------------------------------------------------------------------------
   20d. ロール — この団体はロール制。予定は「自分に関係するもの」が既定で、
        他のロールは足し引きできる。ロールは状態ではないので色を付けない。
   -------------------------------------------------------------------------- */
.rolebar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.rolebar__label { font-size: var(--t-xs); color: var(--ink-2); width: 100%; }
.rolebar button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 var(--s4); border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--elev); color: var(--ink-2);
  font-size: var(--t-sm); white-space: nowrap;
  transition: all var(--dur-1) var(--ease);
}
.rolebar button::before {
  content: "＋"; font-size: var(--t-xs); color: var(--ink-3); line-height: 1;
}
.rolebar button[aria-pressed="true"] {
  background: var(--btn-bg); color: var(--btn-ink); border-color: transparent;
}
.rolebar button[aria-pressed="true"]::before { content: "✓"; color: inherit; }
/* 自分のロールは外せない（外すと自分の予定が消えて事故になる） */
.rolebar button[data-mine] { cursor: default; }
.rolebar button[data-mine]::before { content: "●"; font-size: 8px; }
[hidden] { display: none !important; }
.role-empty { font-size: var(--t-sm); color: var(--ink-2); padding-block: var(--s4); }

/* --------------------------------------------------------------------------
   21. 表示の切り替え — セグメント（押された側は朱・角が締まる）。1 ページに 1 つまで
   -------------------------------------------------------------------------- */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill);
  background: var(--c-surface); border: 1px solid var(--c-line); }
.seg button {
  min-height: var(--tap); padding: 0 20px; border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 700; color: var(--c-ink);
  transition: background var(--dur-1) var(--ease), border-radius .45s var(--spring);
}
.seg button[aria-pressed="true"] { background: var(--c-red); color: var(--c-on-red); font-weight: 700; border-radius: 16px; }

/* --------------------------------------------------------------------------
   22. 予定 — 月送り・カレンダー（予定のある日は朱の 8 弁）・選んだ日の墨の帯・予定カード
       スマホは マスに日付と時刻だけ。押した日の予定名・時刻・場所は帯に全幅で出す（600px〜 はマスにも名前）。
   -------------------------------------------------------------------------- */
.sched-note { margin-top: calc(var(--s3) * -1); margin-bottom: var(--s3); font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); }
.sched-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s3); }   /* カレンダーの中の先頭。「今日」は › のすぐ右（離すと右の列の操作に見える） */
.month { display: flex; align-items: center; gap: 4px; }
.month__label { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; padding: 0 6px; white-space: nowrap; }
.month .iconbtn { background: var(--c-surface); }
.month .iconbtn:hover { background: var(--c-blush); }
.month__today { min-height: var(--tap); padding-inline: var(--s4); }   /* 今月以外を見ているときだけ出る。月送りの行の高さ（44px）にそろえる */
.sched { display: grid; gap: 20px; }
.sched > * { min-width: 0; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: var(--s2); font-size: var(--t-xs); font-weight: 700; }
.legend__mark { display: inline-flex; align-items: center; gap: 8px; }
.legend__mark i { width: 16px; height: 16px; background: var(--c-red); clip-path: var(--cookie); }
/* カテゴリの札 — 色は運営が管理画面で選ぶ（badge_classes / badge_style）。形と大きさだけここで揃える */
.cat-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  border: 1.5px solid currentColor; font-size: var(--t-xs); font-weight: 700; line-height: 1.2; white-space: nowrap; }

.cal { padding: 12px 8px 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-l); }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__week span { text-align: center; font-size: 13px; font-weight: 700; padding: 4px 0 8px; }
.day {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; min-width: 0;
  padding: 4px 0 6px; border-radius: 18px; color: var(--c-ink);
}
button.day:hover { background: var(--c-paper); }
.day__num { display: grid; place-items: center; width: 38px; height: 38px; font-size: var(--t-body); font-weight: 700; line-height: 1; border-radius: 50%; font-variant-numeric: tabular-nums; }
.day--out { color: var(--c-ink-2); }
.day--out .day__num { font-weight: 500; }
.day--today .day__num { box-shadow: inset 0 0 0 2px var(--c-ink); font-weight: 700; }
.day--ev .day__num { background: var(--c-red); color: var(--c-on-red); clip-path: var(--cookie); border-radius: 0; font-weight: 700; }
.day__lbl { display: grid; justify-items: center; max-width: 100%; font-size: var(--t-min); font-weight: 700; line-height: 1.3; }
.day__n, .day__more { display: none; }
.day[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--c-ink); }
.day[aria-pressed="true"] .day__num { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }

.day-note { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 10px; min-height: 56px; padding: 8px 20px;
  border-radius: var(--r-tile); background: var(--c-ink); color: var(--c-on-dark); font-size: var(--t-body); font-weight: 700; line-height: 1.5;
  /* 日付を押して帯が画面の外にあるとき、kagura.js が scrollIntoView({ block: 'nearest' }) で寄せる。下タブに隠れない所まで */
  scroll-margin-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
.day-note b { font-weight: 700; }
.day-note__ev { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-height: var(--tap); color: var(--c-on-dark); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  transition: transform .45s var(--spring); }
.day-note__ev:hover { text-decoration-thickness: 3px; }
.day-note__ev:active { transform: scale(.95); transition-duration: .1s; }   /* §34 の沈む動き（動きを減らす設定では §19 の一括の規則が止める） */
.day-note__m { font-weight: 700; text-decoration: none; }

.ev-list { display: grid; gap: 12px; }
.ev-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-l); padding: 16px;
  transition: box-shadow .3s var(--ease), transform .45s var(--spring); }
.ev-card.is-sel { box-shadow: inset 0 0 0 2.5px var(--c-ink); }
/* カードはリンクでない（article）。予定を開くのは題のリンクなので、それを押している間だけカードを沈める。
   カードに :active を付けると、余白や出欠の 3 択を押してもカードごと沈み、ボタンが指の下で動く */
.ev-card:has(h3 a:active) { transform: scale(.95); transition-duration: .1s; }
.ev-card__main { display: flex; gap: 14px; align-items: flex-start; }
.ev-card__body { flex: 1; min-width: 0; }
.ev-card h3 { font-size: 21px; font-weight: 700; line-height: 1.35; }
.ev-card h3 a, .po-next-title { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }   /* 題のリンクも 44px（場の詳細の次の予定の題も同じ） */
.ev-card h3 a:hover, .po-next-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; font-size: var(--t-sm); font-weight: 700; color: var(--c-ink-2); }
.ev-card__ask { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); }

/* あなたの番（予定の最上段・kagura-your-turn）— 受付中で未回答の予定と未確認の連絡。あるときだけカレンダーの上に出す。
   予定の行は「日時・題（詳細へのリンク）」＋出欠の 1 行（部品 _attendance_row）。390×844 で 3 件の「参加」「欠席」が最初の画面に入るよう、
   予定一覧のカード（日付札つき）より低く組む。連絡の行は読む画面へのリンク 1 本。900px〜 は行を横に並べる */
.turn { margin-block: 20px 28px; }   /* 下のカレンダーの月送りと離す */
.turn .panel__head { margin-bottom: var(--s2); }
.turn__n { font-size: var(--t-sm); font-weight: 700; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.turn__n b { font-weight: 700; color: var(--c-ink); }
.turn__list { display: grid; gap: 8px; }
.turn__more { grid-column: 1 / -1; }
.turn__more > .turn__list { margin-top: 4px; }
.turn__item { min-width: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m); padding: 4px 14px 12px; }
.turn__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-height: var(--tap); padding-top: 8px; }
.turn__when { font-size: var(--t-sm); font-weight: 700; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.turn__title { min-width: 0; font-size: var(--t-h3); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.turn__head:hover .turn__title, .turn__notice:hover .turn__title { text-decoration: underline; text-underline-offset: 4px; }
.turn__notice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 56px; padding: 8px 14px; }
.turn__notice .turn__title { flex: 1 1 12em; font-size: var(--t-body); }
.turn__go { width: 20px; height: 20px; margin-left: auto; stroke: var(--c-ink); fill: none; stroke-width: 2.2; flex: none; }
.turn__more-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 6px; border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 700; color: var(--c-ink); cursor: pointer; list-style: none; }
.turn__more-toggle::-webkit-details-marker { display: none; }
.turn__more-toggle::after { content: ""; width: 8px; height: 8px; margin-left: 2px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; }
.turn__more[open] > .turn__more-toggle::after { rotate: 225deg; translate: 0 2px; }
.turn__more-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.turn__more-toggle:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
@media (min-width: 900px) {
  .turn__list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
/* 運営の行（kagura-mypage-operator-turn）— スタッフにだけ。会員の行の後ろに、線で区切って小見出し「運営」（線の札）を置く。合図（萌黄）は使わない。
   1 件はその画面へのリンク（連絡の行と同じ形）、2 件以上は開閉の中に 1 件ずつのリンク。開いても隣の行を引き伸ばさない */
.turn__op { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--c-line); }
/* 会員の行が無く、運営の塊が見出しの直後に来たとき（スタッフで運営の行だけ）は、区切るものが無いので線と上の余白を付けない */
.turn .panel__head + .turn__op { margin-top: 0; padding-top: 0; border-top: 0; }
.turn__op-head { margin-bottom: 8px; }
.turn__op .turn__list { align-items: start; }
.turn__op-more { padding: 0; }
.turn__op-more > summary { cursor: pointer; list-style: none; }
.turn__op-more > summary::-webkit-details-marker { display: none; }
.turn__op-more > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 0 auto; border: solid var(--c-ink); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; }
.turn__op-more[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.turn__op-more > summary:hover .turn__title, .turn__op-list a:hover .turn__title { text-decoration: underline; text-underline-offset: 4px; }
.turn__op-list { list-style: none; margin: 0; padding: 0 14px 4px; }
.turn__op-list :is(a, .turn__op-static) { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: var(--tap); padding: 8px 0; border-top: 1px solid var(--c-line); }
.turn__op-list .turn__title { flex: 1 1 12em; font-size: var(--t-body); }
/* 見る人を絞っていて、このスタッフが開けない連絡（リンクにしない行）。押せる形に見せない（矢印なし・下線なし） */
.turn__op-static:hover .turn__title { text-decoration: none; }

/* 出欠の 1 行（`_attendance_row`。予定一覧のカード・予定詳細・場の詳細の次の予定が共有する）— kagura-attendance-one-tap
   並びは状態によらず 1 通り: 状態の行（右端に開閉が 1 つ）→ ひとことの欄（開いたときだけ）→「参加」「欠席」。
   未回答: 開閉は「ひとこと」。「参加」「欠席」はいつも見え、押した時点で保存する。
   答えた後: 「✓ 〜と答えました」「前のひとこと」「変更する」の 1 行（色なし）。「変更する」を開くと ひとことの欄 → 2 つのボタン → 締切。
   締切後: 「出欠の受付は終わりました」と自分の答え。
   開閉は中身を持たない details で、開いたか（[open]）を後ろの兄弟が見て出る（開いても開閉は動かない）。 */
/* 余白は詰めてある: 行の間 6px（未回答の行を 390 で 100px 以下に収める）、状態の行の中 8px と開閉の左右 6px（予定詳細の 390 で
   「◆ 出欠がまだです」「10/16 まで」「ひとこと」を 1 行に収める。10px のままだと Hiragino の数字の幅で 2px 足りずに折れた） */
.att { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.att > * { flex-basis: 100%; }   /* 欄・ボタンはそれぞれ 1 行。状態の行だけ、右端に開閉を並べる */
.att__state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.att__due, .att__said, .att__label { font-size: var(--t-sm); font-weight: 700; color: var(--c-ink-2); }
.att > .att__state { flex: 1 1 0; }
/* 前のひとことは札の横に、入る分だけ（はみ出す分は「…」）。幅を中身（折り返さない全文）から決めない（width: 0 から伸ばす）:
   中身で決めると、予定一覧のカード（グリッドの子・min-width: auto）が全文の幅まで広がって横にあふれる。
   札の横に 5 字ぶん（「＋3 字＋…）も入らない狭い面（場の詳細の 3 列・320px）では、札の下の行へ回して 1 行ぶん見せる */
.att__state .att__said { flex: 1 1 0; width: 0; min-width: 5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att > .att__pick { flex: none; }
/* 開閉は線の無い文字のボタン（答えの札・「参加」「欠席」より目立たせない。押せる高さは 44px） */
.att__toggle { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; border-radius: var(--r-pill);
  color: var(--c-red-text); font-size: var(--t-sm); font-weight: 700; cursor: pointer; list-style: none; }
.att__toggle::-webkit-details-marker { display: none; }
.att__toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.att__toggle:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
/* 見せる・隠す: 開くまでは欄を隠す。答えた後は、ボタンと締切も隠す */
.att > .att__pick:not([open]) ~ .att__write,
.att[data-state="done"] > .att__pick:not([open]) ~ :is(.att__choices, .att__due) { display: none; }
.att__write { display: grid; gap: 6px; }
.att__choices { display: flex; gap: 10px; }
.att__choices .btn { flex: 1 1 0; }
.att__comment { display: block; width: 100%; min-height: 88px; padding: 10px 14px; border: 1.5px solid var(--c-ink-2); border-radius: 16px;
  background: var(--c-surface); color: var(--c-ink); font-size: var(--t-body); }
.att__comment:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.att__msg { flex-basis: 100%; color: var(--c-red-text); font-size: var(--t-sm); font-weight: 700; }
/* 送信中（出欠に限らずすべての POST フォーム。kagura.js）: 押したボタンは「保存中…」、ほかの送信ボタンは薄くする。
   disabled にはせず aria-disabled で止める（disabled にすると押したボタンの name/value が送られない） */
form.is-busy [aria-disabled="true"] { cursor: progress; }
form.is-busy [aria-disabled="true"]:not([data-label]) { opacity: .5; }
/* 運営向けの出欠集計の面（予定詳細）。旧 _event_attendance_styles から移した */
/* 予定詳細の運営（スタッフだけ）: 編集・削除のピル、出欠の集計とその下の催促 */
.ev-ops { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--c-line); }
.att-report__card { display: grid; gap: var(--s4); padding: 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-l); }
.att-report__rate { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2); font-weight: 700; }
.att-report__big { font-family: var(--display); font-size: 32px; line-height: 1; }
.att-report__meter { margin-top: var(--s2); }
.att-report__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.att-report__cells--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.att-report__cell { padding: var(--s2) var(--s3); border-radius: var(--r-s); background: var(--c-surface-2); text-align: center; font-size: var(--t-xs); font-weight: 700; }
.att-report__n { font-family: var(--display); font-size: 24px; line-height: 1.3; }
.att-report__group { display: grid; gap: 2px; color: var(--c-ink-2); }
.att-report__label { color: var(--c-ink); font-size: var(--t-xs); font-weight: 700; }
.att-report__group--unanswered { padding: var(--s3); border-radius: var(--r-s); background: var(--c-blush); color: var(--c-ink); }
.att-report__remind { display: grid; justify-items: start; gap: var(--s2); margin-top: var(--s4); font-weight: 700; }
.past-list { display: grid; gap: 6px; }
.past-list li { display: flex; align-items: center; gap: 8px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m); }
.past-list a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; }
.past-list__date { flex: none; font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.past-list__title { min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* スマホは升目を詰めて、6 行の月でも選んだ日の帯（予定 1 件）を押す前から下タブの上に入れる（390×844。kagura-schedule-small cycle 2）。
   マス 64 → 56px（6 行で 48px）・日付の 8 弁 38 → 34px・升目と曜日の余白 −8px。マスの高さは 44px の下限より上 */
@media (max-width: 599px) {
  .day { min-height: 56px; padding: 2px 0 4px; }
  .day__num { width: 34px; height: 34px; }
  .day__lbl { line-height: 1.1; }
  .cal { padding: 8px 8px 6px; }
  .cal__week span { padding: 2px 0 6px; }
}
/* 900px 未満は鳳凰が下タブの上・右端から 12〜82px に止まる（.hoo の max-width: 899px）。帯は下タブのすぐ上に来るので、
   帯の文字が鳳凰の下に入らないよう、右にその幅ぶん（＋4px）の余白を取る。§34 の止まり場は変えない */
@media (max-width: 899px) {
  .day-note { padding-right: calc(12px + 70px + 4px - var(--gutter)); }
}
@media (min-width: 600px) {
  .day { min-height: 92px; align-items: stretch; padding: 6px; }
  .day__num { margin: 0 auto; }
  .day__lbl { margin-top: 4px; justify-items: stretch; text-align: center; font-size: 13px; }
  .day__n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .day__more { display: block; }
}
@media (min-width: 900px) {
  .sched { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; }
  .sched.is-list { grid-template-columns: minmax(0, 720px); }
  .day-note { scroll-margin-bottom: 12px; }   /* 下タブは左のレールになるので、下には何も重ならない */
  .wrap:has(> .sched-page) { max-width: 1080px; }   /* 予定は 2 列なので本文の列を広げる */
}

/* --------------------------------------------------------------------------
   23. ひとこと — 全員が同じ資格で置ける短い声。参加/非参加の区別を作らない。
   -------------------------------------------------------------------------- */
/* ★ 390px で 2 列 × 163px は窮屈で答えが読めない。1 列に落とす。 */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s2); margin-top: var(--s3); }
.voice { padding: 10px var(--s4); border-radius: 6px var(--r-m) var(--r-m) var(--r-m);
  background: var(--c-surface); color: var(--c-ink); }
.voice b { display: block; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--c-ink); }
.voice span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: var(--t-body); font-weight: 500; line-height: 1.55; }

/* --------------------------------------------------------------------------
   23b. 鳳凰（ほうおう）— IP キャラクターのスプライト
        7 フレーム × 64px の 1 枚絵（assets/hoo-sheet.webp / 448×64）。

        ★ 等倍でしか出さない。
        ドット絵を 0.75 倍などの半端な比率で出すと、nearest-neighbor が
        ピクセルを間引いて絵が壊れる。だから 64px（1倍）か 32px（1/2倍）だけ。
        （例外: スマホは Takuma の指定で 70px。下の 2026-10-05 の注記を参照）

        ★ 飛びっぱなしにしない。
        常時はばたくと視線を奪って、朱の合図が効かなくなる。
        ふだんは羽をたたんで止まり、10 秒に 1 度だけ 0.7 秒はばたく。
   -------------------------------------------------------------------------- */
.hoo {
  position: fixed; z-index: 30;
  right: 10px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  width: 64px; height: 64px;                    /* = 1 フレーム等倍 */
  background-image: url("hoo-sheet.webp");
  background-repeat: no-repeat;
  background-size: 448px 64px;                  /* 7 フレーム分 */
  background-position-x: -384px;                /* 休みの姿（7 枚目・羽をたたむ）*/
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(20,17,14,.35));
  opacity: .9;
  /* 押せない飾り（2026-10-15 E2）。どの画面でも、幅を問わず、重なった操作（予定一覧の「答える」・広場の＋）に指を通す */
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
  animation: hoo-idle 10s steps(1, end) infinite;
}
/* 読んでいる最中は文字にかぶらないよう、スクロール中だけ薄れる。止まると戻る。 */
.hoo--away { opacity: .22; }

/* ふだんは止まっていて、ときどき 7 コマだけはばたく（1 コマ 100ms）*/
@keyframes hoo-idle {
  0%, 92%  { background-position-x: -384px; }
  93%      { background-position-x:    0px; }
  94%      { background-position-x:  -64px; }
  95%      { background-position-x: -128px; }
  96%      { background-position-x: -192px; }
  97%      { background-position-x: -256px; }
  98%      { background-position-x: -320px; }
  99%, 100%{ background-position-x: -384px; }
}
/* はばたきのコマ（合図のある画面で使う。下の body[data-cue="on"]） */
@keyframes hoo-flap {
  0%   { background-position-x:    0px; }
  14%  { background-position-x:  -64px; }
  28%  { background-position-x: -128px; }
  42%  { background-position-x: -192px; }
  57%  { background-position-x: -256px; }
  71%  { background-position-x: -320px; }
  85%, 100% { background-position-x: -384px; }
}
/* 墨の面では火の色が映えるので、ほのかに灯りをまとわせる */
[data-surface="sumi"] .hoo {
  filter: drop-shadow(0 0 10px rgba(238,103,108,.28)) drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
/* 書いている最中は邪魔をしない（スレッドの入力欄があるページ）*/
body:has(.dock) .hoo { display: none; }
/* ★★ 2026-07-26 実機 FB（Takuma）: **モバイルで本文に重なっていた**。
   投稿のいいね/返信行・出欠チップ・カードの上に 64px が丸ごと乗り、装飾が操作を隠していた。
   → いったん「デスクトップ（左レールがある幅）でだけ出す」にした。
   ★★ 2026-10-05（Takuma）: **スマホでも出す。ただし下タブの上に止まらせる**（kagura-mypage-home-merge D1）。
   - 足元を下タブの境界線（1px）に乗せる。スクロール中は .hoo--away で薄れる（kagura.js）。
   - ⚠ 4px かけると、最終列（プロフィール）の現在地の朱線（タブ上端 2px）を足元が隠した（320px で実測）。
     ∴ かけるのは境界線の 1px だけ。下タブ（z-index 50）より手前に置き、タブは 1px も塞がない。
   - 入力欄のあるページ（body:has(.dock)）では今どおり出さない。
   ★★ 2026-10-05 実機 FB（Takuma「鳥が小さい。今の幅の 2.2 倍に」）: 32px → **70px**（= 32 × 2.2）。
   - ⚠ 原寸 64px に対して 1.09 倍 = 整数比ではない。pixelated の nearest-neighbor で一部のドットが
     2 列ぶんに広がる（わずかに不揃い）。Takuma の指定を優先した。くっきりを優先するなら 64px（原寸）。
   - コマ送りの位置は 70px の倍数にする（端数を使うと隣のコマが滲む）。 */
@media (max-width: 899px) {
  .hoo {
    z-index: 51;
    right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) - 1px);
    width: 70px; height: 70px;
    background-size: 490px 70px;                /* 7 フレーム × 70px */
    background-position-x: -420px;              /* 休みの姿（7 枚目）*/
    animation-name: hoo-idle-sp;
  }
}
@media (min-width: 900px) {
  .hoo { right: 20px; bottom: 20px; }
}
/* スマホ（70px）のコマ送り（64px 用の位置をそのまま使うとコマがずれる）*/
@keyframes hoo-idle-sp {
  0%, 92%  { background-position-x: -420px; }
  93%      { background-position-x:    0px; }
  94%      { background-position-x:  -70px; }
  95%      { background-position-x: -140px; }
  96%      { background-position-x: -210px; }
  97%      { background-position-x: -280px; }
  98%      { background-position-x: -350px; }
  99%, 100%{ background-position-x: -420px; }
}
@keyframes hoo-flap-sp {
  0%   { background-position-x:    0px; }
  14%  { background-position-x:  -70px; }
  28%  { background-position-x: -140px; }
  42%  { background-position-x: -210px; }
  57%  { background-position-x: -280px; }
  71%  { background-position-x: -350px; }
  85%, 100% { background-position-x: -420px; }
}
/* --------------------------------------------------------------------------
   6e. 場（project-os）の部品 — 案 C（2026-10-05）
   場の 8 画面（一覧・詳細・スレッド・連絡・練習日程・チーム…）が共有する po-* を C の値へ寄せる。
   ⚠ `_styles.blade.php` は <body> 内の <style> で kagura.css より後に来るうえ、`[data-miniportal] .x .y` の強い指定や
     テストが値を固定している宣言を持つ。`_styles` とそのテストは変えず、この層は宣言に !important を付けて上書きする
     （値を C にするだけの層。構造・可読性の担保は `_styles` 側のまま）。
     `_styles` の構造（可読性の担保をテストが固定している）は変えず、値だけを C にする。
   ⚠ Phase 60 ⑤（Takuma「ヒーローのデザイン的な座布団は廃止」）を守る: 画像の上に浮く不透明なパネルは作らない。
     画像が無いとき（placeholder）だけ、ヒーローそのものの面を臙脂 + 日輪の青海波にする。
   -------------------------------------------------------------------------- */
html body .po-member-eyebrow { color: var(--ink-2) !important; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: .02em !important; text-transform: none !important; }
html body .po-member-eyebrow::before { display: none !important; }
html body .po-member-title { color: var(--ink) !important; font-family: var(--display) !important; font-size: clamp(36px, 10vw, 60px) !important; font-weight: 400 !important; letter-spacing: -.01em !important; line-height: 1.1 !important; }
html body .po-member-lead, html body .po-member-summary { color: var(--ink) !important; font-family: var(--sans) !important; font-size: 16px !important; font-weight: 500 !important; line-height: 1.75 !important; }
html body .po-member-card { background: var(--c-surface) !important; border: 1px solid var(--c-line) !important; border-radius: var(--r-l) !important; box-shadow: none !important; padding: 20px !important; }
html body .po-member-card:hover { border-color: var(--c-ink) !important; box-shadow: none !important; transform: none !important; }
/* 押したら沈む（§34）のはリンクのカードだけ（場の詳細の節 section.po-member-card は押しても何も起きない）。
   上の :hover の transform: none !important に勝つように !important（PC で押す間・iPhone で押した後は :hover も付く）。
   ⚠ transition-duration には !important を付けない（§19 の動きを減らす一括の規則に勝ってしまう） */
html body a.po-member-card { transition: transform .45s var(--spring), border-color var(--dur-2) var(--ease); }
html body a.po-member-card:active { transform: scale(.95) !important; transition-duration: .1s; }
html body .po-member-card-title { font-family: var(--sans) !important; font-size: 22px !important; font-weight: 700 !important; letter-spacing: -.01em !important; line-height: 1.35 !important; }
html body .po-member-meta { color: var(--c-ink-2) !important; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
/* あなたの番（kagura-your-turn）: 予定の最上段の連絡のリンク（#notice-ID）で開いたとき、上部バーの下に連絡の頭を出す。
   場の詳細の「このあとの予定」の線の札「出欠がまだです」は行の幅に伸ばさない */
html body .po-portal-notice { scroll-margin-top: calc(var(--topbar-h) + 12px); }
.po-item-block > .chip { justify-self: start; }
html body .po-member-status { border: 1.5px solid currentColor !important; border-radius: 999px !important; color: var(--c-ink) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
html body .po-member-empty { border: 1px solid var(--c-line) !important; border-radius: var(--r-l) !important; background: var(--c-surface) !important; }
html body .po-member-action { background: var(--c-surface) !important; border: 0 !important; border-radius: 999px !important; box-shadow: inset 0 0 0 2px var(--c-ink) !important; color: var(--c-ink) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0 !important; min-height: 48px !important; padding: 0 20px !important; text-transform: none !important; }
html body .po-member-action:hover, html body .po-member-action:active { background: var(--c-blush) !important; color: var(--c-ink) !important; }
html body .po-member-action:focus-visible { outline: 3px solid var(--c-ink) !important; outline-offset: 3px !important; box-shadow: inset 0 0 0 2px var(--c-ink) !important; }
html body .po-member-action-primary { background: var(--c-red) !important; box-shadow: none !important; color: var(--c-on-red) !important; }
html body .po-member-action-primary:hover, html body .po-member-action-primary:active { background: var(--c-red-deep) !important; color: var(--c-on-red) !important; }
html body .po-member-link, html body .po-cal-link, html body .po-map-link { color: var(--c-red-text) !important; font-family: var(--sans) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; }
html body .po-member-link:hover, html body .po-cal-link:hover, html body .po-map-link:hover { color: var(--c-ink) !important; }
html body .po-member-link::after { font-size: 1em !important; }   /* 矢印も字と同じ大きさ（旧 .82rem = 13px の朱は 14px 未満の Lc 90 に届かない。監査が疑似要素を測るようになって判明） */

/* 節 = 白いカード。節見出しの暗い帯はやめて、カードの中の 900 の見出しにする */
html body [data-miniportal="project"] .po-portal-section { background: var(--c-surface) !important; border: 1px solid var(--c-line) !important; border-radius: var(--r-l) !important; padding: 16px 18px !important; }
html body .po-member-shell--tight > * + * { margin-top: 16px !important; }
html body [data-miniportal="project"] .po-portal-section-head,
html body [data-miniportal="project"] .po-portal-priority > .po-portal-section-head { background: transparent !important; border-top: 0 !important; margin-inline: 0 !important; padding: 0 0 12px !important; color: var(--c-ink) !important; }
html body [data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > .po-member-eyebrow,
html body [data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > h2 { background: transparent !important; border-top: 0 !important; margin-inline: 0 !important; padding-inline: 0 !important; color: var(--c-ink) !important; }
html body [data-miniportal="project"] .po-portal-section-head .po-member-eyebrow,
html body [data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > .po-member-eyebrow { color: var(--c-ink-2) !important; }
html body [data-miniportal="project"] .po-portal-section-head h2,
html body [data-miniportal="project"] .po-portal-section-head .po-member-card-title { color: var(--c-ink) !important; }
html body [data-miniportal="project"] .po-portal-section-head .po-member-meta { color: var(--c-ink-2) !important; }
html body [data-miniportal="project"] .po-portal-section-head .po-member-status { color: var(--c-ink) !important; border-color: var(--c-ink) !important; }
html body [data-miniportal="project"] .po-portal-section-head .po-member-link { color: var(--c-red-text) !important; }

/* ヒーロー: 全幅・下の角を丸める。画像があれば画像＋覆い（座布団なし）、無ければ臙脂＋日輪の青海波 */
html body .po-portal-hero { border-radius: 0 0 var(--r-xl) var(--r-xl) !important; background: var(--c-red-deep) !important; }
html body .po-portal-hero-placeholder { position: relative !important; overflow: hidden !important; background: var(--c-red-deep) !important; color: transparent !important; font-size: 0 !important; }
html body .po-portal-hero-placeholder::after { content: "" !important; position: absolute !important; right: -64px !important; top: -78px !important; width: 220px !important; height: 220px !important; border-radius: 50% !important; --wave: color-mix(in srgb, var(--c-on-red) 26%, var(--c-red)); background:
    radial-gradient(circle at 50% 100%, var(--c-red) 0 4px, var(--wave) 4px 6px, var(--c-red) 6px 10px, var(--wave) 10px 12px, var(--c-red) 12px 16px, var(--wave) 16px 18px, var(--c-red) 18px 20px, transparent 20px) 0 0 / 40px 20px,
    radial-gradient(circle at 50% 100%, var(--c-red) 0 4px, var(--wave) 4px 6px, var(--c-red) 6px 10px, var(--wave) 10px 12px, var(--c-red) 12px 16px, var(--wave) 16px 18px, var(--c-red) 18px 20px, transparent 20px) 20px 10px / 40px 20px,
    var(--c-red) !important; }
@media (min-width: 768px) { html body .po-portal-hero-placeholder::after { width: 340px !important; height: 340px !important; right: -70px !important; top: -110px !important; } }
html body .po-portal-hero-copy.maku .po-member-title,
html body .po-portal-hero-copy.maku .t-display { color: var(--c-on-dark) !important; font-family: var(--display) !important; font-size: clamp(34px, 9vw, 56px) !important; line-height: 1.05 !important; }   /* ヒーローは小さく（2026-10-16 D3。旧 44〜88px で 390 のヒーローが 319px あった） */
/* 種別の語は見出し横の札（運営のロール配色）が持つ。同じ語を 2 回読ませない（クラスは可読性テストのために残す） */
html body .po-portal-hero-copy.maku > .po-member-eyebrow { display: none !important; }
/* 種別の札は見本 C の淡い朱のピル（墨の文字）を見出しの上に。色は VenueKind が enum で固定した色で、運営が選ぶ色ではない（§33 の例外に当たらない）。
   inline style は Phase56VenueKindTest がパレット値の実在を固定しているので Blade は変えず、ここで上書きする */
html body .po-portal-hero-copy.maku .po-member-title { display: flex !important; flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
/* ヒーローは小さく（2026-10-16 D3）: 上下の余白を詰める（旧 clamp(20px, 6vw, 48px)）。横は本文の端とそろえたまま */
html body .po-portal-hero-copy.maku { padding-block: 16px 18px !important; }
html body .po-portal-hero-copy.maku [data-venue-kind-badge] { background: var(--c-blush) !important; color: var(--c-ink) !important; border-color: transparent !important; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1 !important; min-height: 28px; padding: 0 12px; }
/* 14px 未満の補助色をやめる（§33）。連絡の開閉は出欠の「閉じる」と同じ線のピルにして、閉じる操作の形を 1 つにする（cycle 3 の再採点） */
html body .po-notice-fold-toggle { display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--c-ink); color: var(--c-ink) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
html body .po-row-time { color: var(--c-ink) !important; font-size: 14px !important; font-weight: 700 !important; }
html body .po-member-team { color: var(--c-ink) !important; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 700 !important; }
html body .po-portal-hero-copy.maku .maku__when { border-top: 2px solid var(--c-kin-light) !important; padding-top: 10px !important; margin-top: 12px !important; color: var(--c-on-dark) !important; font-family: var(--display) !important; font-size: 19px !important; }
html body .po-portal-hero-copy.maku .maku__when .chip { font-family: var(--sans) !important; color: var(--c-on-dark) !important; }
html body .po-portal-hero-copy.maku::before { display: none !important; }   /* 旧: 金の一本線 */

/* 出欠（場の詳細の次の予定）は予定画面と同じ部品 `_attendance_row`（.att・§22）。場だけの上書きは持たない。 */

/* 小さすぎる字をやめる（14px 未満は墨のみ・それ以外は 14px 以上）。種類の札の色は運営のロール配色なので変えない */
html body [data-venue-kind].text-xs { font-size: 14px !important; font-weight: 700 !important; }
html body .po-group-count { color: var(--c-ink) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
html body .po-card-badge { font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; }
/* 場の詳細（運営モード）の「画像を変更」と送るボタン — 旧 12.48px（画像の上の半透明の地で Lc 71）を 14px へ */
html body .po-hero-op-btn { font-size: 14px !important; letter-spacing: 0 !important; }
/* 場の詳細の運営の札・ボタン（kagura-operator-venue-actions）— 旧 12px の補助色（Lc 81.6）・11.2px の運営モード・朱の淡い輪のフォーカスをやめ、§33・§34 に。
   催促のボタンは墨の線のピル（44px・押すと沈む・フォーカスは墨の輪 = .po-member-action と同じ形）。予定の 1 行（要約の横）に収めるため高さは 44px・字は 14px・左右の余白は 12px */
html body .po-op-btn { background: var(--c-surface) !important; border: 0 !important; border-radius: 999px !important; box-shadow: inset 0 0 0 2px var(--c-ink) !important; color: var(--c-ink) !important; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0 !important; min-height: 44px !important; padding: 0 12px !important; text-transform: none !important; transition: transform .45s var(--spring), background-color var(--dur-2) var(--ease) !important; }
html body .po-op-btn:hover { background: var(--c-blush) !important; color: var(--c-ink) !important; }
html body .po-op-btn:active { background: var(--c-blush) !important; color: var(--c-ink) !important; transform: scale(.95); transition-duration: .1s !important; }
html body .po-op-btn:focus-visible { outline: 3px solid var(--c-ink) !important; outline-offset: 3px !important; box-shadow: inset 0 0 0 2px var(--c-ink) !important; color: var(--c-ink) !important; }
html body .po-op-eyebrow, html body .po-op-sum, html body .po-op-mode { color: var(--c-ink) !important; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; }
html body .po-op-mode:hover, html body .po-op-mode:active { border-color: var(--c-ink) !important; background: var(--c-blush) !important; }
html body .po-op-mode:focus-visible { outline: 3px solid var(--c-ink) !important; outline-offset: 3px !important; box-shadow: none !important; }
/* 場の詳細の値（期間・チーム・概要）— 旧 12.48px を本文の太さへ */
html body .po-portal-meta { color: var(--c-ink) !important; font-family: var(--sans) !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: 0 !important; line-height: 1.6 !important; }
/* 場の詳細の空の節は 1 行（案 C: 枠を作らない）。見出しの言い換え（○○なし）と補足の 1 文は畳む */
html body [data-miniportal="project"] .po-portal-section .po-member-empty { border: 0 !important; background: transparent !important; min-height: 0 !important; padding: 0 !important; margin-top: 4px !important; text-align: left !important; }
html body [data-miniportal="project"] .po-portal-section .po-member-empty > .po-member-eyebrow,
html body [data-miniportal="project"] .po-portal-section .po-member-empty > .po-member-summary { display: none !important; }
html body [data-miniportal="project"] .po-portal-section .po-member-empty > .po-member-card-title { margin-top: 0 !important; font-size: 15px !important; font-weight: 700 !important; color: var(--c-ink-2) !important; }
/* 画像が無いとき（臙脂＋日輪）は、画像用の暗い覆い 2 枚を外す（臙脂が黒に沈んでいた） */
html body .po-portal-hero:has(.po-portal-hero-placeholder)::after { display: none !important; }
html body .po-portal-hero:has(.po-portal-hero-placeholder) .po-portal-hero-copy.maku::after { display: none !important; }
/* 節の上端の線（旧: 金・要確認は朱）を消す。節は白いカードで区切る */
html body [data-miniportal="project"] .po-portal-section::before { display: none !important; }
html body [data-miniportal="project"] .po-portal-section { border-top-width: 1px !important; }

/* 案 C の構成（cycle 2）— 状態カード 3 枚（連絡・次の予定・資料）→ この場の中 ／ この場のこと の 2 列 */
/* 列幅は minmax(0, 1fr)。指定しないと列が中身の幅に引っ張られ、折り返さない抜粋（確認済みの連絡を開いたとき）で 390 のページが横にはみ出す。900px 以上の列の定義は下の @media が上書きする */
html body .po-status3, html body .po-pair, html body .po-pair__col { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
html body .po-card-foot { display: grid; gap: 12px; justify-items: start; }   /* 足の中の行の間隔は足が 1 つに決める（子の mt は 0） */
html body .po-card-foot > * { margin-top: 0 !important; }   /* 「すべてのお知らせ」の mt-5 は Phase43 のテストが文字列で固定しているので Blade からは外さない */
html body .po-status3 > *, html body .po-pair__col > * { margin-top: 0 !important; }
/* 節のラベル（要確認・日程…）は見出しの右へ。見出しが先に読まれる */
html body [data-miniportal="project"] .po-portal-section-head { display: flex !important; flex-wrap: wrap !important; align-items: baseline !important; justify-content: space-between !important; gap: 8px 12px !important; }
html body [data-miniportal="project"] .po-portal-section-head > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
html body [data-miniportal="project"] .po-portal-section-head > div:first-child > h2 { order: 1; margin-top: 0 !important; }
html body [data-miniportal="project"] .po-portal-section-head > div:first-child > .po-member-eyebrow { order: 2; }
html body [data-miniportal="project"] .po-portal-section-head > div:first-child > .po-member-meta { order: 3; flex-basis: 100%; }
html body [data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) { display: grid !important; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
html body [data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > * { grid-column: 1 / -1; }
html body [data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > h2 { grid-column: 1; grid-row: 1; margin-top: 0 !important; }
html body [data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > .po-member-eyebrow { grid-column: 2; grid-row: 1; }
/* スレッド = 淡い朱の吹き出しタイル。件数を大きく */
html body [data-miniportal-section="thread"] .po-member-card { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; background: var(--c-blush) !important; border: 0 !important; border-radius: var(--r-tile) !important; }
html body [data-miniportal-section="thread"] .po-member-card + .po-member-card { margin-top: 12px; }
html body [data-miniportal-section="thread"] .po-member-card:hover { box-shadow: inset 0 0 0 2px var(--c-ink) !important; }
html body [data-miniportal-section="thread"] .po-member-card > * { grid-column: 1; }
html body [data-miniportal-section="thread"] .po-thread-count { grid-column: 2; grid-row: 1; margin: 0 !important; display: grid; justify-items: end; color: var(--c-ink) !important; }
html body [data-miniportal-section="thread"] .po-member-card:has(.po-member-summary) .po-thread-count { grid-row: 1 / span 2; }
html body [data-miniportal-section="thread"] .po-thread-count b { font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; }
@media (min-width: 900px) {
  .wrap:has(.po-status3) { max-width: 1080px; }   /* 状態カード 3 枚と 2 列のため本文の列を広げる */
  /* 3 枚の高さはそろえない（2026-10-16 D3）。そろえると短いカードの足の前が大きく空く（資料で 631px）。足は中身のすぐ後ろ */
  html body .po-status3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  html body .po-pair { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  html body .po-pair .po-portal-meta-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  /* ヒーローは本文の列の中に、四隅を角丸で（スマホの全幅・上部バーの下へ潜る組みは使わない） */
  html body .po-portal-hero { margin: 16px 0 0 !important; border-radius: var(--r-xl) !important; min-height: 240px !important; }
  html body .po-portal-hero-copy { margin-top: 0 !important; }   /* 上帯の下へ潜らない（上の margin が正）ので、潜る分を打ち消す余白は要らない */
}

/* --------------------------------------------------------------------------
   旧 Tailwind の直書き色の読み替え（案 C・2026-10-05）
   まだ作り直していない画面・シートの `text-[#486572]` などを、C の役割の色へ読み替える。
   ⚠ layout の旧 LP <style> が `body main .text-\[\#486572\]`（詳細度 0,1,2）で LP の色へ読み替えているので、
     同じ詳細度（html body [class*=…]）で、それより後（このファイル）に置いて勝たせる。
   ⚠ 新しく作る画面ではこれに頼らない（トークンのクラスを使う）。作り直しが済んだら消す。
   -------------------------------------------------------------------------- */
html body [class*="text-[#486572]"], html body [class*="text-[#8aa0a8]"] { color: var(--c-ink); }
html body [class*="text-[#849b9f]"], html body [class*="text-[#9ab0b6]"], html body [class*="text-[#c3ad89]"] { color: var(--c-ink-2); }
html body [class*="text-[#93a886]"], html body [class*="text-[#7f9573]"], html body [class*="text-[#deafaf]"] { color: var(--c-red-text); }
html body [class*="bg-[#486572]"] { background-color: var(--scrim); }
html body [class*="bg-[#93a886]"], html body [class*="from-[#93a886]"] { background-color: var(--c-red); background-image: none; color: var(--c-on-red); }
html body [class*="bg-[#849b9f]"] { background-color: var(--c-ai); }
html body [class*="bg-[#deafaf]"], html body [class*="bg-[#c3ad89]"], html body [class*="bg-[#f1e8b1]"] { background-color: var(--c-blush); }
html body [class*="bg-[#fdf8f2]"], html body [class*="bg-[#f4ebd9]"], html body [class*="bg-[#e4d9c8]"], html body [class*="bg-[#ede3d2]"] { background-color: var(--c-surface-2); }
html body [class*="border-[#e4d9c8]"], html body [class*="border-[#ede3d2]"], html body [class*="border-[#c3ad89]"], html body [class*="border-[#93a886]"] { border-color: var(--c-line); }
html body [class*="border-[#deafaf]"] { border-color: var(--c-red-text); }
html body [class*="ring-[#deafaf]"] { --tw-ring-color: var(--c-blush); }
html body [class*="focus:border-[#93a886]"]:focus { border-color: var(--c-ink); }
html body [class*="placeholder-[color:var(--ink-2)]"]::placeholder { color: var(--c-ink-2); opacity: 1; }
/* C の規則「14px 未満の文字はすべて墨」: 旧画面の 12px の補助文字（text-xs + 補助の墨）は APCA Lc 82〜87 で届かない */
html body .text-xs[class*="text-[color:var(--ink-2)]"] { color: var(--c-ink); }

/* ★ 案 C（2026-10-05）: 鳳凰は「合図の見張り役」。画面に合図（.cue = あなたが動く番）があるときだけ
   羽ばたき続け、無い画面では休む姿で止まる（ふだんの 10 秒に 1 度のはばたきもやめる）。
   body[data-cue] は kagura.js が .cue の有無を見て付ける。 */
.hoo { animation: none; }
/* ⚠ 羽ばたき続ける規則は no-preference の中だけに置く（cycle 1 の退行: body[data-cue] .hoo の詳細度が
   reduced-motion の .hoo { animation: none } に勝ち、動きを減らす設定でも止まらなかった）。 */
@media (prefers-reduced-motion: no-preference) {
  body[data-cue="on"] .hoo { animation: hoo-flap 1.1s steps(1, end) infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  body[data-cue="on"] .hoo { animation: hoo-flap-sp 1.1s steps(1, end) infinite; }
}
/* 触ると 1 回はばたく（2026-11-04 hoo-tap-flap。.hoo--flap は kagura.js が押した点を見て付け、animationend で外す）。
   合図の羽ばたき続け（body[data-cue] .hoo）の方が詳細度が高いので、合図のある画面ではそちらが勝つ。
   動きを減らす設定では付けない（no-preference の中だけ）。 */
@media (prefers-reduced-motion: no-preference) {
  .hoo.hoo--flap { animation: hoo-flap .7s steps(1, end) 1; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .hoo.hoo--flap { animation: hoo-flap-sp .7s steps(1, end) 1; }
}
/* 動きを減らす設定では、休みの姿で止める（倍率ごとの位置。64px の位置を 70px に使うと別のコマになる）*/
@media (prefers-reduced-motion: reduce) {
  .hoo { animation: none; background-position-x: -384px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .hoo { background-position-x: -420px; }
}


/* --------------------------------------------------------------------------
   24. モックアップ用の帯（本番には出ない）
   -------------------------------------------------------------------------- */
.mock-note {
  position: sticky; top: 0; z-index: 100;
  padding: 10px var(--gutter); background: #14110e; color: #f3ede2;
  font-size: var(--t-xs); line-height: 1.6; font-family: var(--sans);
}
.mock-note b { color: var(--gold); font-weight: 600; }
.mock-note + .app .topbar { top: 0; }

/* --------------------------------------------------------------------------
   投稿カードの部品（kagura 所有）— 案 C
   いいね・さらに表示・コメント操作は読む操作なので、合図の色は使わない。
   -------------------------------------------------------------------------- */
.post__who-btn,
.cmt__act {
  color: var(--ink-2);
  font-size: var(--t-xs); font-weight: 700;
  min-height: var(--tap);
  padding-inline: var(--s2);
}
.post__more { color: var(--accent); font-size: var(--t-sm); font-weight: 700; min-height: var(--tap); padding-inline: 2px; }
.post__who-btn:hover,
.post__more:hover,
.cmt__act:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* 読み込み中の帯（2026-11-04 kagura-responsiveness T2）。kagura.js が次の画面へ移る押下で html に .is-leaving を付ける。
   次の画面が届くまでの間だけ、上端に細い朱の帯が伸びる。押したリンク（[data-leaving]）は薄くして、押したことを残す。
   動きを減らす設定では伸ばさず、帯を出すだけにする。 */
.leavebar {
  display: none; position: fixed; inset: 0 0 auto 0; z-index: 9999; height: 3px;
  background: var(--c-red); transform-origin: left center; pointer-events: none;
}
/* スマホ幅は下タブの上の縁に出す。画面の最上部は Safari のステータスバーの帯に覆われて見えなかった（iOS シミュレーターで確認）。
   押した指（下タブ）の近くで伸びる方が、押したことにも気づける */
@media (max-width: 899px) {
  .leavebar { inset: auto 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom)) 0; z-index: 52; }
}
.is-leaving .leavebar { display: block; animation: leaving 1.6s var(--ease) forwards; }
@keyframes leaving { from { transform: scaleX(.08); } to { transform: scaleX(.9); } }
@media (prefers-reduced-motion: reduce) { .is-leaving .leavebar { animation: none; transform: scaleX(.6); } }
a[data-leaving] { opacity: .6; }

/* 引っぱって更新の目印（2026-11-04 kagura-plaza-no-categories P1）。kagura.js がホーム画面アプリでだけ作る。
   画面がいちばん上で下へ引くと、上端の丸い目印（↓）が指に合わせて下りる（--pull）。70px を超えると朱の ↑（文字は出さない）。
   離すと読み直し、読み込み中の帯（.leavebar）が出る。動きを減らす設定では、目印を動かさずに出すだけ。 */
.ptr {
  position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; z-index: 9998;
  translate: -50% calc(var(--pull, 0px) - 64px); opacity: 0; pointer-events: none;
}
.ptr[data-state] { opacity: 1; }
.ptr__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-surface); color: var(--c-red); border: 1px solid var(--c-line);
  font-size: 20px; font-weight: 700; line-height: 1; transition: rotate var(--dur-2) var(--ease);
}
.ptr[data-state="ready"] .ptr__arrow { rotate: 180deg; background: var(--c-red); color: var(--c-on-red); border-color: var(--c-red); }
@media (prefers-reduced-motion: reduce) {
  .ptr { translate: -50% 0; }
  .ptr__arrow { transition: none; }
}

/* いいね済みのコメント（2026-11-04 kagura-responsiveness T1）。押した瞬間に post_card_scripts が aria-pressed を替える。
   投稿のいいね（.iconbtn[aria-pressed="true"]）と同じ朱。数だけが変わる形だと、押したことが目に見えなかった */
.cmt__act[aria-pressed="true"] { color: var(--c-red); }

/* 折り畳み中の本文（post_card_scripts が付け外しするクラス名は変えられない） */
.post-body-collapsed { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* 投稿画像: 1 枚 = 上限 18rem / 複数 = 2 列の正方形。タップでライトボックス */
.post__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.post__media img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); cursor: zoom-in; }
.post__media img:only-child { grid-column: 1 / -1; height: auto; aspect-ratio: auto; max-height: 18rem; }
/* ⚠ .post__menu の位置は「仕上げ」の節（右上に絶対配置）が正本。ここで position を書くと後勝ちで右上配置が消える（cycle 2 の再採点で発覚） */
.post__dropdown {
  position: absolute; right: 0; top: calc(var(--tap) + 4px); z-index: 20;
  background: var(--c-surface); border: 1px solid var(--c-ink); border-radius: var(--r-m);
  padding: 6px; display: grid; gap: 2px; min-width: 140px;
}
.post__dropdown button { width: 100%; min-height: var(--tap); padding-inline: 14px; border-radius: 14px; text-align: left; font-weight: 700; color: var(--c-ink); }
.post__dropdown button:hover { background: var(--c-paper); }
.post__comments { margin-top: var(--s4); padding: 4px 0 0 16px; border-left: 4px solid var(--c-blush); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }   /* 列の指定が無いと中身（入力欄の既定の幅）より縮まず、コメントと入力欄が枠からはみ出した（2026-10-11 iPhone） */
.post__reply { display: flex; gap: var(--s2); align-items: center; }
/* コメントの中の返信の入力欄は div.post__reply > form > input + button（横並びの指定が form に届かず、入力欄が既定の幅のまま縮めなかった） */
.post__reply > form { display: flex; gap: var(--s2); align-items: center; flex: 1; min-width: 0; }
html body .post__reply input {
  flex: 1; min-width: 0; width: 100%; min-height: 48px; border: 1.5px solid var(--ink-2);
  border-radius: var(--r-pill); padding-inline: 18px; background: var(--c-surface); color: var(--c-ink);
  font-size: var(--t-body);
}
.post__reply input::placeholder { color: var(--c-ink-2); opacity: 1; }
.cmt { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s2); }   /* 1fr は中身の最小幅より縮まない。返信の入力欄の既定の幅（WebKit で広い・実機は未検証）が列の最小幅を押し上げ、枠からはみ出した（2026-10-11 iPhone）。長い URL は overflow-wrap で折れるので原因ではない */
.cmt--reply { margin-left: var(--s5); }
.cmt__body { min-width: 0; background: var(--bg); border-radius: 6px var(--r-m) var(--r-m) var(--r-m); padding: var(--s2) var(--s3); overflow-wrap: anywhere; }
.cmt__head { display: flex; align-items: baseline; gap: var(--s2); font-weight: 700; }
.cmt__foot { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s1); flex-wrap: wrap; }
.post--hidden { opacity: .55; }
.hidden { display: none !important; }
.post__author { display: inline-flex; align-items: center; gap: var(--s3); min-height: var(--tap); color: inherit; }
.post__author:hover .post__name { text-decoration: underline; text-underline-offset: 3px; }
/* 今週のひとこと = 臙脂の吹き出しタイル（data-weekly-voice + surface-sumi） */
.post[data-weekly-voice] { background: var(--c-red-deep); border: 0; border-radius: var(--r-tile); padding: 24px 20px; }
.post[data-weekly-voice] .t-h2 { font-size: 26px; line-height: 1.35; margin-top: 6px; }
.post[data-weekly-voice] .post__reply { margin-top: var(--s4); }
.post[data-weekly-voice] .post__reply input { background: color-mix(in srgb, var(--c-on-dark) 14%, transparent); border-color: var(--c-on-dark); color: var(--c-on-dark); }
.post[data-weekly-voice] .post__reply input::placeholder { color: var(--sumi-ink-2); }
.post[data-weekly-voice] > .t-xs { margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   広場の器（kagura 所有）— 案 C
   -------------------------------------------------------------------------- */
/* 検索 — 太い縁のピル */
.search { position: relative; display: flex; align-items: center; }
.search > svg {
  position: absolute; left: 18px; width: 22px; height: 22px; flex: none;
  stroke: var(--ink); stroke-width: 2; pointer-events: none;
}
/* ⚠ layout の旧 LP <style> が `body main input`（詳細度 0,0,3）で角 4px・半透明の白にしていたので html body で勝たせる */
html body .search input {
  width: 100%; min-height: 52px;
  padding: 0 var(--s5) 0 50px;
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink); font-size: var(--t-body); font-weight: 500;
}
.search input::placeholder { color: var(--ink-2); opacity: 1; }
.search input:focus { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.search__clear {
  position: absolute; right: var(--s2);
  display: grid; place-items: center; width: var(--tap); height: var(--tap);
  color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1; border-radius: 50%;
}
.search__clear:hover { background: var(--bg); }

/* 札の並び（.chips）。助けの詳細・連絡の詳細が使う。
   ★ 2026-11-04 kagura-plaza-no-categories: 広場の話題（カテゴリ）の帯（.chipbar・「次へ」）は、広場のカテゴリーの廃止で外した。 */
.chips { display: flex; gap: var(--s2); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px 72px 6px var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chips > * { scroll-snap-align: start; }
.chips--wrap { flex-wrap: wrap; overflow: visible; padding: 0; }

/* タイムライン */
.feed { display: grid; gap: var(--s3); margin-top: var(--s5); }
.feed > * { min-width: 0; }   /* グリッドの子は既定で中身より縮まない → 長い URL でカードが列からはみ出していた */
.page + .search { margin-top: var(--s3); }

/* 空の状態 — 枠を作らず 1 行 */
.empty {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  min-height: 44px; padding: 0;
  color: var(--ink-2); font-size: var(--t-sm); font-weight: 700;
}
.empty a { color: var(--accent); font-weight: 700; text-decoration: none; }
.empty a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Phase 57 F3 — 場のヒーロー（幕）の日付行 */
.maku__when {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  margin-top: var(--s3); font-size: var(--t-sm); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Phase 57 F3 — project-os の既存スタイルへの **橋渡し**
   ⚠ `packages/project-os/.../projects/_styles.blade.php`（334 行）は旧トークン名
     （--ink-soft / --ink-mute / --bg-soft / --serif-jp）を 200 箇所以上で使っている。
     全部書き換えると差分が巨大になり、他アプリが将来 project-os を入れたときに
     素の HTML で壊れる（ADR-Phase57-6: package は kagura.css 非依存で degrade する）。
   ∴ **幕のトークンから旧名へ別名を張る**。旧名は「幕の意味」に読み替わる。
   ⚠ --accent だけは意味が違う（旧: hover の赤 / 新: 朱＝あなたが動く番）。
     `_styles` の hover が朱になると 1 画面の朱が 3 個を超えるので、**hover 専用の中立色**に寄せる。
   -------------------------------------------------------------------------- */
/* ⚠ 案 C（cycle 2）: 旧名の別名（--ink-soft / --ink-mute / --bg-soft / --serif-jp / --serif-en）はファイル冒頭の
     「旧名の読み替え」に一本化した（ここで再定義すると後勝ちで冒頭の C の値を殺していた）。 */
/* 幕の内側では墨のトークンへ自動で切り替わる（.maku が --ink 等を上書きするため追随する） */
.maku { --ink-soft: var(--ink); --ink-mute: var(--ink-2); --bg-soft: var(--elev); }


/* 空の節は枠を作らず 1 行（案 C）。 */
.po-portal-empty, .po-member-empty {
  display: grid; gap: var(--s1); align-content: center;
  min-height: 44px; padding: 0; border: 0; text-align: left;
}
.po-portal-empty > *, .po-member-empty > * { margin: 0; font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   Phase 57 F3 — 節見出しを幕の規約へ
   ⚠ `_styles` は節見出しの地を `var(--ink)`（＝濃い墨）で塗り、優先節を `--accent` 55% で
     塗っている。旧トンマナでは「黒帯 + 金の線」が意図だったが、幕では:
       ① 読む面は **1 種（生成り）**。墨は `.maku` の内側だけ（TONALITY Part D §25）
       ② 意味を持つ色は **朱と藍の 2 つだけ**。節の種類に色を付けない（§26）
     ∴ 黒帯と赤帯をやめ、**金の細線 + 生成り**に戻す。見出しの階層は 3 段のまま。
   ⚠ 旧ファイル（334 行）は書き換えない。ここで上書きする（他アプリでの degrade を壊さない）。
   -------------------------------------------------------------------------- */
[data-miniportal="project"] .po-portal-section-head,
[data-miniportal="project"] .po-portal-priority > .po-portal-section-head,
[data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > .po-member-eyebrow,
[data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > h2 {
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  padding-block: var(--s4) var(--s2) !important;
  color: var(--ink) !important;
}
[data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > h2 {
  border-top: 0 !important;
  padding-block: 0 var(--s2) !important;
}
/* 「要確認」だけは朱の予算を使ってよい（あなたが動く番）。ただし **面ではなく細線**で。 */
[data-miniportal="project"] .po-portal-priority > .po-portal-section-head {
  border-top: 2px solid var(--act) !important;
}

/* 節見出しの文字色 — 旧 CSS は「黒帯の上の cream 文字」前提で
   `color-mix(--gold 62%, --bg)` を使っている。地を生成りに戻した以上、そのままだと
   **文字が地に溶けて読めない**（コントラスト 1.2:1 程度）。生成り上の色へ寄せる。 */
[data-miniportal="project"] .po-portal-section-head .po-member-eyebrow,
[data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > .po-member-eyebrow {
  color: var(--ink-2) !important;
}
[data-miniportal="project"] .po-portal-section-head .po-member-eyebrow::before,
[data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > .po-member-eyebrow::before {
  background: var(--gold-on-light) !important;
}
[data-miniportal="project"] .po-portal-priority > .po-portal-section-head .po-member-eyebrow::before {
  background: var(--act) !important;   /* 要確認だけ朱（あなたが動く番） */
}
[data-miniportal="project"] .po-portal-section-head h2,
[data-miniportal="project"] .po-portal-section-head .po-portal-section-title,
[data-miniportal="project"] .po-portal-section:not(:has(.po-portal-section-head)) > h2 {
  color: var(--ink) !important;
}
[data-miniportal="project"] .po-portal-section-head a,
[data-miniportal="project"] .po-portal-section-head p { color: var(--ink-2) !important; }

/* 空の節は 1 行に畳む（規約 #11）。旧 CSS の min-height:280px を潰す。 */
[data-miniportal="project"] .po-member-empty,
[data-miniportal="project"] .po-portal-empty {
  min-height: 56px !important; max-height: 88px !important;
  padding: var(--s3) !important; text-align: left !important;
  overflow: hidden;
}
[data-miniportal="project"] .po-member-empty > *,
[data-miniportal="project"] .po-portal-empty > * { font-size: var(--t-sm) !important; margin: 0 !important; }

/* Phase 57 F4 → ★ Phase 60 ⑤ で作り直し — 場のヒーロー（幕）の可読性
   ⚠ `_styles` は `.po-portal-hero-copy { color: var(--bg) }`（＝生成り文字）を前提にしており、
     幕の中では `--bg` が墨に変わるので **文字が地に沈む**。幕の中は墨のトークンで上書きする。
   ⚠ 覆いは **中立の墨**。プロジェクト色にしてはいけない（山吹の覆いだと副次が 3.18:1 に落ちる）。

   ★★ Phase 60 ⑤: 旧版はここで **不透明度 0.82 の地 + 隅の radial グロー**を敷いていた
      ＝ これが Takuma の言う「デザイン的な座布団」の実体（実測: 390px で 390×212px の
      角丸パネルがヒーロー 390×293px の 72% を覆い、**ヒーロー画像が 1px も見えていなかった**）。
      ∴ 地のパネルを撤去し、**文字が載る帯だけを覆う scrim** に置き換える。
   ★ 手段は **幕デザインが既に持っているもの**（`.maku--photo .maku__body` の scrim・上の 6b 節）を
      そのまま使う: 墨 #14110e を 0.82〜0.94 でかけ、帯の上を 64px かけて溶かす。
      数値の根拠も 6b 節に既にある（「0.80 以上で真っ白な画像の上でも本文 8.77:1 / 副次 4.67:1」）。
   ★ **要素を増やさない**（`.maku__body` 相当のラッパは新設しない）。
      `.maku__body` は `show.blade.php` に 1 箇所も無く、新設すると
      MiniportalLegibilityRefineFocusedTest / Phase48SalonGeneralizationTest /
      Phase56VenueKindTest が固定している構造に階層が 1 段入る。∴ 覆いは `::after` で敷く。
      ⚠ `::before` は金の一本線が使っている（同じ要素で 2 つは持てない）ので `::after`。
   ★ **新しいグラデ・グロー・滲みは足さない**。使うのは 6b 節と同じ「上下方向の linear」だけ
      （隅の radial は Takuma に「汚れ」と認知される・phase50-detail-band-palette F3 と同じ規律）。 */
.po-portal-hero-copy.maku {
  color: var(--sumi-ink) !important;
  /* 地は持たない（座布団の撤去）。可読性は下の ::after の覆いだけで保証する。 */
  background-color: transparent;
  background-image: none;
}
.po-portal-hero-copy.maku::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  /* 帯そのもの（inset 0）＋ 上へ 64px はみ出す溶かし。
     ⚠ `.maku` の overflow: hidden を Phase 60 ⑤ で外したので、上へのはみ出しが効く。 */
  inset: -64px 0 0 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 17, 14, 0) 0,
    rgba(20, 17, 14, .82) 64px,
    rgba(20, 17, 14, .94) 100%
  );
}
.po-portal-hero-copy.maku .po-member-title,
.po-portal-hero-copy.maku .t-display { color: var(--sumi-ink) !important; }
.po-portal-hero-copy.maku .po-member-eyebrow { color: var(--sumi-ink-2) !important; }
.po-portal-hero-copy.maku .po-member-eyebrow::before { background: var(--p) !important; }
.po-portal-hero-copy.maku .maku__when { color: var(--sumi-ink-2); }

/* Phase 57 F9: 客席 — 既存の .ava-stack / .post を再利用し、行 1 本だけ足す。 */
.seats { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* ══ Phase 57 F6: ホーム（P57-01）─────────────────────────────
   ★ 旧版はタブと重複する大きなリンクカードが 4 枚並んでいた。ホームは「次にやること」だけ。
   ★ 朱（--act）を持つのは .next だけ。することが無ければ朱 0 個が正しい。 */
.me { display: flex; align-items: center; gap: var(--s4); color: inherit; min-height: var(--tap); }
.me__body { display: grid; gap: var(--s1); min-width: 0; }
.chips--tight { gap: var(--s1); }
.chips--tight .chip { min-height: 0; padding: 2px var(--s2); font-size: var(--t-xs); }

.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }

/* 場のカード = 画像左・文字右。画像列はカード幅の約 3 割で頭打ち（390px でも読める幅を残す）。 */
/* ★ タップ標的は 44px 以上（数えられる要求）。カード全体がリンクなので、
   高さの下限をカード側で保証する（中の要素ごとに padding を盛らない）。 */
.card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r2); background: color-mix(in srgb, var(--ink) 8%, var(--bg)); }
.card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__thumb-ph { display: flex; align-items: center; justify-content: center; height: 100%;
  font-family: var(--serif); font-size: 1.6rem; color: var(--ink-3); }
/* ★ grid item は既定で stretch するので、チップが**カード幅いっぱいの pill** に伸びていた（実機 FB）。 */
.card__body { display: grid; gap: var(--s2); min-width: 0; justify-items: start; }



/* ══ Phase 57 F6: お知らせ / 通知 / 資料 / エンブレム / ヘルプ ─────────
   ★ 意味色は 朱（あなたが動く番）と 藍（済んだこと）の 2 つだけ。
     種類や役割に色を付けない（付けると朱が効かなくなる = ルール 9b）。 */

/* 面の中のタブ（下タブバー .tabbar とは別物）。44px 以上を必ず確保する。 */
.tabs { display: flex; gap: var(--s1); border-block-end: 1px solid var(--line); margin-block-end: var(--s4); }
.tabs .tab { display: inline-flex; align-items: center; gap: var(--s2);
  min-height: var(--tap); padding-inline: var(--s4); color: var(--ink-2);
  border-block-end: 2px solid transparent; margin-block-end: -1px; }
.tabs .tab--on { color: var(--ink); font-weight: 700; border-block-end-color: var(--c-ink); }
.tabs .tab__n { display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 9px;
  font-size: var(--t-xs); font-weight: 700; background: var(--c-ink); color: var(--c-on-dark); }   /* 件数は合図ではない（萌黄を使わない） */
/* お知らせ一覧: 先頭の合図「未確認 N件」と一覧の間、重要の一覧と続きの一覧の間をあける（行どうしと同じ間隔） */
.ann-cue { margin-block-end: var(--s3); }
.rows--pinned { margin-block-end: var(--s2); }

/* 記事本文。読む面なので行長と行間だけを決める（装飾しない）。 */
.prose { font-size: var(--t-body); line-height: var(--lh-body); }
.prose > * + * { margin-block-start: var(--s3); }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; }
/* 表とコード塊は **自分の中で**横スクロールさせる（ページ本体を横に流さない）。 */
.prose table, .prose pre { display: block; max-width: 100%; overflow-x: auto; }

.card__hero { display: block; width: 100%; max-height: 240px; object-fit: cover;
  border-radius: var(--r2); }

/* 状態の札。済んだことは色を付けない（案 C）。 */
.note { padding: var(--s3) var(--s4); border-radius: var(--r-m); border: 1px solid var(--line); }
.note--done { border-color: var(--c-ink); background: var(--elev); }

/* 知らせ（保存した・断られた・案内）。箱の形は 1 つ: 白の地・線の縁・.note と同じ角・本文の字（16px の墨）。
   layout の知らせ（.flash-*）も、project-os の知らせ（成功の .po-member-success・注意の .po-member-warning。
   project-os の既定は 13px の金の帯と朱の帯）もここで同じ形にする（kagura-notices-wording cycle 2・attendance-reminder-recipients cycle 5）。
   エラーの入力の直し（.po-alert）はこの形に含めない。
   角は Part E の段 --r-m（入力欄の 12px とカードの 28px の間）。白の地・線の縁・16px の墨は入力欄と同じなので、
   角まで近いと書ける欄に見える（cycle 3）。
   保存した知らせは §33 の「済んだこと」の言葉にそろえる: 縁を墨にし、文の前に ✓（読み上げからは外す）。
   layout の器 .flash-row は本文の列（.wrap）に置き、下のカードと s3 あける。動かさない（浮かび上がる動きはやめた）。
   断られた・入力の直しだけ字を朱にする。案内には ✓ を付けない。 */
.flash-row { margin-block-end: var(--s3); }
.flash-success, .flash-error, .flash-warning, html body .po-member-success, html body .po-member-warning {
  padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--elev); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; }
.flash-success, html body .po-member-success { border-color: var(--c-ink); }
.flash-success::before, html body .po-member-success::before { content: "✓ " / ""; font-weight: 700; }
.flash-error { color: var(--accent); }
.ack { display: grid; gap: var(--s3); padding-block-start: var(--s4);
  border-block-start: 1px solid var(--line); }
.ack form { display: grid; gap: var(--s2); justify-items: start; }

/* .row の中身を縦に積む形（お知らせ / 通知）。既存の .row は行そのものの器。 */
.row__body { display: grid; gap: var(--s1); min-width: 0; flex: 1; }
.row--read .row__title { font-weight: 700; }   /* 既読は太さで示す（不透明度を下げるとコントラストが落ちる） */

/* 資料の種類アイコン（形だけで区別する。色は付けない = ルール 9b）。 */
.row__icon { width: 20px; height: 20px; flex: none; color: var(--ink-3); }

/* 画面の読み方（ヘルプ詳細）。用語と説明を 1 対 1 で並べる。 */
.guide { display: grid; gap: var(--s3); }
.guide dt { font-weight: 600; }
.guide dd { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-body); }

/* [data-view] のタブ切替（アーカイブ）。F5 のこよみ / 一覧と同じ語彙。 */
.tabs .tab[data-view] { background: none; border-inline: 0; border-block-start: 0; cursor: pointer; font: inherit; }

/* ══ Phase 57 F6: 共有パーシャル（member-area の投稿編集モーダル）の可読性是正 ─────
   ★ なぜ CSS で直すのか（正攻法でない理由を明記する）
     10px の和文 / 2.53:1 のコントラストは **6 アプリ共有の
     packages/member-area/.../post_card_scripts.blade.php** に由来する。
     Phase 57 の適用範囲は Takuma 裁定②で **kagura のマイページのみ**なので、
     共有ビューを書き換えると裁定を越えて 6 アプリの見た目を動かしてしまう。
     ∴ **kagura だけが読み込む本ファイル**で上書きする。
   ⚠ これは弥縫策であって根治ではない。共有側の欠陥は別タスクとして起票済み。
   ⚠ 対象を id / 具体的な文脈に限定し、ユーティリティクラス全体を潰さない。 */
#edit-image-remaining,
#modal-edit .text-\[10px\],
#modal-post .text-\[10px\] {
  font-size: var(--t-xs) !important;      /* 12px 以上 */
  color: var(--ink-2) !important;         /* 4.5:1 以上 */
}

/* .dock の 2 段目（画像などの副次操作）。本文入力より下に置いて主従を保つ。 */
.dock__more { display: flex; align-items: center; gap: var(--s2);
  max-width: var(--col); margin-inline: auto; margin-block-start: var(--s2); }
/* 幅は中身に合わせる（.filepick の幅 44px のままだと「画像」が 2 行に折れる） */
.dock__more .filepick { width: auto; min-height: var(--tap); min-width: var(--tap); padding-inline: var(--s3); white-space: nowrap; }
/* .dock は固定要素なので、本文の末尾が隠れないぶんだけ余白を足す。 */
body:has(.dock) main.wrap { padding-block-end: calc(var(--tabbar-h) + 112px); }

/* ══ Phase 57: タップ標的 44px の徹底（幕 CSS が効くようになって見えた違反）──
   ★ 個々の要素に padding を盛らず、**クラス側で下限を保証**する。
     盛り方がばらつくと、次に足した 1 つがまた 44px を割る。
   ⚠ .po-member-link は project-os の _styles.blade.php 側（定義元）で 44px にした。
     ここから !important で上書きすると、定義元を読んだ人が原因を追えなくなる。 */
.cmt__act { min-width: var(--tap); }          /* 42×44 → 44×44 */

/* ══ Phase 57: 共有パーシャル（member-area の投稿モーダル）の残りの低コントラスト ─────
   ★ 対象は **モーダルの中だけ**に限定する（ユーティリティクラス全体を潰さない）。
   ⚠ 根治は共有ビュー側。裁定②（kagura のマイページのみ）を越えないための弥縫策で、
     共有側の欠陥は別タスクとして起票済み。 */
/* ⚠ 対象は **モーダルの子孫すべて**。個別クラスを列挙すると、次に足された 1 つを取り逃す
   （実際に label だけ直して span.font-normal を取り逃した）。
   モーダル内は幕の配色に統一するのが正しいので、まとめて --ink-2 / --ink に寄せる。 */
#modal-post :is(label, span, p, small, button:not([type="submit"])),
#modal-edit :is(label, span, p, small, button:not([type="submit"])) { color: var(--ink-2) !important; }
#modal-post :is(h1, h2, h3, textarea, select, input, option),
#modal-edit :is(h1, h2, h3, textarea, select, input, option) { color: var(--ink) !important; }
/* 白文字 on 淡いグラデの送信ボタン（実測 1:1 相当）。 */
#modal-post button[type="submit"], #modal-edit button[type="submit"] {
  background: var(--btn-bg) !important; background-image: none !important; color: var(--btn-ink) !important;
}

/* ロゴ（設定の画像 → サイト名 → 頭文字）の出し分けは第 3 節（上部バー）に一本化した（案 C・cycle 2）。 */

/* 朱の面（.next）の中では、印は **点だけ**。面と印を二重に赤くしない（実機 FB 2026-07-26）。 */
.next .chip[data-status="act"] { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.next .chip[data-status="act"]::before {
  content: ""; width: 6px; height: 6px; border-radius: var(--r-pill);
  background: var(--act); flex: none; margin-inline-end: var(--s2);
}
.next .chip[data-status="act"] { display: inline-flex; align-items: center; }

/* ══ 2026-07-26 実機 FB: 左右の大幅なはみ出し ─────────────────────────
   ★ 原因: **長い URL が折り返せていなかった**（overflow-wrap: normal）。
     本番の投稿には `https://kagura.n-pops.com/mypage/content/12?utm_...` のような
     区切りの無い長い文字列が入っており、投稿カードが **613px**（画面 390px）に膨らんで
     ページごと横に流れていた。
   ⚠ 自分の fixture は短い日本語だけだったので **一度も再現できなかった**。
     本番の実 HTML を持ってきて測って初めて出た。
   ⚠ `word-break: break-all` にはしない（和文が不自然な位置で切れる）。
     `anywhere` は「他に折る場所が無いときだけ」切るので、和文の見た目を壊さない。 */
.post__body,
.cmt__body,
.prose,
.voice,
.row__body,
.t-body { overflow-wrap: anywhere; }
/* 画像・表・コード塊も自分の幅に収める（本文と同じ理由）。 */
.post__body img, .prose img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   投稿ボタン（右下の＋）— 2026-10-05 Takuma「投稿欄は右下に＋ボタン。鳥はその上」
   主の操作なので朱。スマホは下タブの上、900px〜 は右下。鳳凰は＋の上に止まる。
   一覧の最後の投稿が＋と鳳凰に隠れないよう、ページの下に余白を足す。
   -------------------------------------------------------------------------- */
.fab {
  position: fixed; z-index: 52;
  right: 16px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--c-red); color: var(--c-on-red);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c-red-deep) 40%, transparent);
  transition: background-color var(--dur-2) var(--ease), scale .3s var(--spring);
}
.fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.fab:hover { background: var(--c-red-deep); }
.fab:active { scale: .94; }
.fab:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
/* 鳳凰は＋に「止まる」: 足先を＋の縁に 14px かけて手前に置く（浮遊物を 2 つでなく 1 つの意匠に）。
   触っても反応しない（タップは下の本文と＋へ通す。2026-07-26「装飾が操作を隠す」の型を作らない）。
   pointer-events: none は 2026-10-15 から .hoo の基本の規則（どの画面でも・幅を問わない）が持つ。 */
body:has(.fab) .hoo { z-index: 53; }
@media (max-width: 899px) {
  body:has(.fab) .hoo { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px + 60px - 14px); right: 11px; }
  body:has(.fab) main.wrap { padding-block-end: calc(var(--tabbar-h) + 12px + 60px + 70px + 24px); }
}
@media (min-width: 900px) {
  .fab { right: 22px; bottom: 22px; }
  body:has(.fab) .hoo { bottom: calc(22px + 60px - 12px); right: 20px; }
  body:has(.fab) main.wrap { padding-block-end: 180px; }
}

/* ==========================================================================
   見出しの書体の太さ（2026-10-10）。Dela Gothic One は太さ 400 しか無く各所で 400 を指定していたので、
   --display（しっぽり明朝 B1）を使う箇所の太さをここで 1 回だけ決める
   ========================================================================== */
html body :is(.topbar__mark, .t-display, .page-head h1, .ava, .date-tile__d, .me-head__name, .me-head__stat b, .place__thumb .card__thumb-ph,
  .place__name, .shelf__count b, .month__label, .po-member-title, .maku__when, .po-thread-count b) { font-weight: 700 !important; }

/* プロフィール画像は丸（2026-10-10 Takuma「プロフィール画像のギザギザも無くして」）。場のサムネイル・資料・予定の日の 8 弁はそのまま */
.ava { clip-path: none; border-radius: 50%; overflow: hidden; }

/* b・strong は既定で「親より一段太く（bolder）」= 親が 700 だと 900 になる。ゴシックは 700 まで */
b, strong { font-weight: 700; }
