/* すぽカレンダー：見た目（設計書 9.2。2026-09-29 に画像を出す形へ作り直した）
   色は画像（配信のサムネイルとチャンネルのアイコン）とメンバーの色に任せる。枠やボタンは墨と紙の 2 色で静かにする。
   差し色（合図）は、いまの時刻の線、配信中、「締切が近い」だけに使う。 */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}

:root {
  color-scheme: light dark;
  --paper: #F4F5F2;
  --surface: #FFFFFF;
  --ink: #16211F;
  --ink-2: #5B6864;
  --rule: #DADFDA;
  --cue: #E3A21A;
  --on-cue: #16211F;
  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --font-num: "Unbounded", var(--font-jp);
  --step--2: 0.64rem;
  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-6: 3.815rem;
  --gutter: 16px;
  --time-col: 3.9rem;
  /* ホーム画面から開いたとき（アプリの形）に、上の時刻や電池の表示と重ならないよう、画面の上の余白を足す。Safari では 0 */
  --safe-top: env(safe-area-inset-top, 0px);
  --masthead: calc(60px + var(--safe-top));
  --thumb-w: 112px;
}

/* 明るさ：自動（端末の設定）・ライト・ダーク。選んだものは <html data-theme> に入る（theme-v1.js） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1514;
    --surface: #182020;
    --ink: #E8EEEA;
    --ink-2: #93A29D;
    --rule: #26322F;
    --cue: #F0B43A;
    --on-cue: #0F1514;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F1514;
  --surface: #182020;
  --ink: #E8EEEA;
  --ink-2: #93A29D;
  --rule: #26322F;
  --cue: #F0B43A;
  --on-cue: #0F1514;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-jp); font-size: var(--step-0); line-height: 1.7; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cue); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* メンバーのアイコン。画像の外側に、紙の色の細い隙間とメンバーの色の輪を付ける。画像が無ければ色の丸と 1 文字 */
.avatar { --size: 32px; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--size); height: var(--size); overflow: hidden; border-radius: 50%; background: color-mix(in oklab, var(--c) 40%, var(--surface)); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--c); }
.avatar.is-xs { --size: 16px; box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--c); }
.avatar.is-sm { --size: 24px; }
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-initial { color: var(--ink); font-size: calc(var(--size) * 0.46); font-weight: 800; line-height: 1; }
.avatar.is-xs .avatar-initial { display: none; }
.avatar.is-group { background: var(--ink); color: var(--paper); font-size: var(--step--1); font-weight: 800; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.avatar-stack { position: relative; display: inline-flex; align-items: center; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }
.avatar-more { margin-left: 3px; color: var(--ink-2); font-family: var(--font-num); font-size: 0.62rem; font-weight: 700; line-height: 1; }
/* 何人もいる項目は、種類の印を重ねない（種類は名前の横の文字で分かる） */
.avatar-stack.is-many + .kind-badge { display: none; }

/* 上の帯 */
.masthead { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--masthead); padding: calc(8px + var(--safe-top)) var(--gutter) 8px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.brand { font-size: var(--step-1); font-weight: 800; letter-spacing: 0.04em; text-decoration: none; }
.filter-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-size: var(--step--1); font-weight: 700; cursor: pointer; }
.filter-count { font-weight: 500; }
.masthead-actions { display: flex; align-items: center; gap: 8px; }
.theme-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; font-size: var(--step--1); font-weight: 700; cursor: pointer; }
.brand, .filter-button, .theme-button { white-space: nowrap; }
@media (max-width: 479px) {
  .brand { font-size: var(--step-0); }
  .theme-button { justify-content: center; width: 44px; padding: 0; }
  .theme-button [data-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .filter-button { padding: 0 12px; }
}
.theme-mark { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }

/* いま・このあと（このサイトの顔。大胆にするのはここだけ） */
.onair { padding: 20px 0 4px; border-bottom: 1px solid var(--rule); }
.today { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); }
.today-date { display: flex; align-items: flex-end; gap: 10px; margin: 0; }
.today-day { font-family: var(--font-num); font-size: var(--step-6); font-weight: 800; line-height: 0.82; letter-spacing: -0.02em; }
.today-meta { font-size: var(--step--1); font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.onair-title { margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }
.rail { position: relative; margin-top: 14px; padding: 0 0 18px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.rail-track { --lane-h: 54px; position: relative; width: var(--w); height: calc(30px + var(--lanes) * var(--lane-h)); margin: 0 var(--gutter); }
.rail-tick { position: absolute; top: 0; bottom: 0; left: var(--x); padding-left: 6px; border-left: 1px solid var(--rule); color: var(--ink-2); font-family: var(--font-num); font-size: var(--step--2); font-weight: 500; line-height: 1; white-space: nowrap; }
.rail-tick.is-muted { color: transparent; }
.rail-bars { margin: 0; padding: 0; list-style: none; }
.rail-bar { position: absolute; top: calc(30px + var(--lane) * var(--lane-h)); left: var(--x); width: var(--bw); height: calc(var(--lane-h) - 8px); }
.rail-link { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 12px 0 8px; overflow: hidden; border-radius: 999px 14px 14px 999px; background: color-mix(in oklab, var(--c) 16%, var(--surface)); text-decoration: none; }
.rail-text { display: flex; flex-direction: column; min-width: 0; }
.rail-bar.is-open .rail-link { background: linear-gradient(to right, color-mix(in oklab, var(--c) 18%, var(--surface)) 65%, transparent); }
.rail-name { font-size: var(--step--1); font-weight: 800; line-height: 1.25; white-space: nowrap; }
.rail-title { overflow: hidden; color: var(--ink-2); font-size: var(--step--2); line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
/* 配信中：アイコンの輪が合図の色になり、外へ広がる（このサイトで動くのは、ここと「いま」の線だけ） */
.rail-bar.is-live .rail-link { box-shadow: inset 0 0 0 1.5px var(--cue); }
.rail-bar.is-live .avatar, .entry.is-live .thumb .avatar { animation: live-ring 2.4s ease-out infinite; }
@keyframes live-ring {
  0% { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--cue), 0 0 0 3.5px color-mix(in oklab, var(--cue) 70%, transparent); }
  70%, 100% { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--cue), 0 0 0 14px color-mix(in oklab, var(--cue) 0%, transparent); }
}
.rail-now { position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 2px; background: var(--cue); transform: translateX(var(--x)); pointer-events: none; }
.rail-now-label { position: absolute; top: -1px; left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--cue); color: var(--on-cue); font-family: var(--font-num); font-size: var(--step--2); font-weight: 700; line-height: 1.2; }
.rail-now.is-arriving { animation: now-arrive 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes now-arrive { from { transform: translateX(0); } to { transform: translateX(var(--x)); } }
.rail-empty { margin: 0 var(--gutter); color: var(--ink-2); font-size: var(--step--1); }

/* 一覧と月の切り替え（スマホ） */
.views { padding: 0 var(--gutter) 48px; }
.view-switch { display: inline-flex; gap: 2px; margin: 20px 0 4px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.view-switch button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: var(--step--1); font-weight: 700; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* 一覧 */
.agenda-block { margin-top: 24px; }
.day-head { position: sticky; top: var(--masthead); z-index: 3; display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 8px 0 6px; border-bottom: 2px solid var(--ink); background: var(--paper); font-size: inherit; }
.day-num { font-family: var(--font-num); font-size: var(--step-3); font-weight: 800; line-height: 1; }
.day-meta { color: var(--ink-2); font-size: var(--step--1); font-weight: 700; }
.block-head { margin: 0; padding: 8px 0 6px; border-bottom: 2px solid var(--ink); font-size: var(--step-0); }
.entries { margin: 0; padding: 0; list-style: none; }
.entry { border-bottom: 1px solid var(--rule); }
.entry-link { display: grid; grid-template-columns: var(--time-col) 12px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; text-decoration: none; }
.entry-link:hover .entry-title { text-decoration: underline; text-underline-offset: 3px; }
.entry-time { justify-self: start; align-self: start; padding-top: 1px; font-family: var(--font-num); font-size: var(--step--1); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 配信：時刻｜サムネイル（16:9）｜名前と題。番組表のように、時刻とサムネイルの列をそろえる */
.entry.is-stream .entry-link { grid-template-columns: var(--time-col) var(--thumb-w) minmax(0, 1fr); }
.thumb { position: relative; display: block; width: var(--thumb-w); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, color-mix(in oklab, var(--c) 55%, var(--surface)), color-mix(in oklab, var(--c) 18%, var(--surface))); }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .avatar { position: absolute; bottom: 6px; left: 6px; }
.thumb-live { position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--cue); color: var(--on-cue); font-size: var(--step--2); font-weight: 800; line-height: 1.5; }
.entry.is-live .thumb { box-shadow: 0 0 0 2px var(--cue); }
.entry-link:hover .thumb-img { filter: brightness(1.06); }
/* グッズ・イベント・誕生日・記念日：時刻｜メンバーのアイコン（右下に種類の印）｜名前と題 */
.entry.is-item .entry-link { grid-template-columns: var(--time-col) 56px minmax(0, 1fr); }
.entry-mark { position: relative; display: flex; align-items: flex-start; min-height: 36px; padding: 2px 0 0 4px; }
.kind-badge { position: absolute; top: 22px; left: 26px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); font-size: 0.56rem; line-height: 1; }
.entry-who { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: var(--step--1); line-height: 1.5; }
.entry-name { font-weight: 800; }
.entry-source { color: var(--ink-2); }
.entry-title { display: -webkit-box; margin-top: 2px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.55; }
.entry-note { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--step--1); }
.entry.is-live .entry-time { color: color-mix(in oklab, var(--cue) 70%, var(--ink)); font-family: var(--font-jp); font-weight: 800; }
.entry.is-soon .entry-time { padding: 0 6px; border-radius: 4px; background: var(--cue); color: var(--on-cue); }
.entry.is-item { display: flex; align-items: flex-start; gap: 8px; }
.entry.is-item .entry-link { flex: 1; min-width: 0; }
.gcal-link { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 36px; margin-top: 8px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); font-size: var(--step--2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.gcal-link:hover { border-color: var(--ink); }
.gcal-plus { font-size: var(--step--1); line-height: 1; }
/* スマホ：ボタンを本文の下に置き、タイトルの幅を削らない */
@media (max-width: 599px) {
  .entry.is-item { flex-wrap: wrap; gap: 0; }
  .entry.is-item .entry-link { flex-basis: 100%; }
  .gcal-link { margin: -4px 0 12px calc(var(--time-col) + 80px); }
}
.empty { margin: 16px 0; color: var(--ink-2); }

/* 月 */
.month-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 8px; }
.month-title { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: inherit; }
.month-year { color: var(--ink-2); font-family: var(--font-num); font-size: var(--step--1); font-weight: 600; }
.month-number { font-family: var(--font-num); font-size: var(--step-2); font-weight: 800; }
.month-nav { display: flex; gap: 6px; }
.month-nav button { width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; font-size: var(--step-1); line-height: 1; cursor: pointer; }
.month-grid { border-top: 2px solid var(--ink); }
.month-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-weekday { padding: 6px 0; color: var(--ink-2); font-size: var(--step--2); font-weight: 700; text-align: center; }
.month-cell { min-height: 68px; border-top: 1px solid var(--rule); }
.month-cell button { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; height: 100%; padding: 8px 0 6px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.month-num { display: grid; place-items: center; min-width: 28px; height: 28px; font-family: var(--font-num); font-size: var(--step--1); font-weight: 600; line-height: 1; }
.month-cell.is-today .month-num { border-radius: 999px; background: var(--ink); color: var(--paper); }
.month-cell.is-selected button { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.month-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 0; min-height: 16px; padding: 0 4px; }
.month-dots .avatar + .avatar { margin-left: -4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 30%, transparent); }
.month-more { color: var(--ink-2); font-family: var(--font-num); font-size: 0.6rem; }
.month-marks { font-size: 0.62rem; letter-spacing: 0.1em; line-height: 1; }

/* 下から出る板（絞り込み、日の一覧） */
.sheet { width: min(100%, 560px); max-width: 100%; max-height: min(85dvh, 720px); margin: auto auto 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--ink); }
.sheet::backdrop { background: rgb(10 16 14 / 0.45); }
.sheet[open] { animation: sheet-rise 0.24s ease-out; }
@keyframes sheet-rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-inner { display: flex; flex-direction: column; max-height: inherit; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--gutter) 8px; }
.sheet-head h2 { margin: 0; font-size: var(--step-1); }
.sheet-actions { display: flex; gap: 8px; padding: 0 var(--gutter) 12px; }
.sheet-body { overflow-y: auto; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.text-button { min-height: 44px; padding: 0 4px; border: 0; background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pill-button { min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; font-size: var(--step--1); font-weight: 700; cursor: pointer; }
.filter-group { margin: 0 0 20px; padding: 0; border: 0; }
.filter-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 8px; padding: 0; font-weight: 800; }
.filter-members { display: flex; flex-wrap: wrap; gap: 8px; }
.member-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.member-toggle:has(input:checked) { border-color: var(--ink); background: color-mix(in oklab, var(--c) 14%, var(--surface)); }
.member-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
/* 種類の絞り込み：メンバーの色ではなく、一覧の印と同じ記号を出す */
.sheet-kinds { padding: 0 var(--gutter); }
.kind-toggle:has(input:checked) { background: var(--surface); }
.kind-mark { width: 1.2em; text-align: center; font-size: var(--step--1); line-height: 1; }

/* 知らせと下の帯 */
.status:empty { display: none; }
.status { margin: 16px var(--gutter); padding: 12px 14px; border-left: 4px solid var(--cue); background: var(--surface); }
.site-footer { padding: 28px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: var(--step--1); }
.site-footer p { max-width: 40em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; }
.site-footer nav a { color: var(--ink); font-weight: 700; }
.updated { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 12px; }
.updated div { display: flex; gap: 8px; }
.updated dt { font-weight: 700; }
.updated dd { margin: 0; }

/* 規約などの文のページ（Task 5） */
.doc { max-width: 40em; padding: 28px var(--gutter) 48px; }
.doc h1 { margin: 0 0 16px; font-size: var(--step-3); line-height: 1.3; }
.doc h2 { margin: 32px 0 8px; font-size: var(--step-1); line-height: 1.4; }
.doc p, .doc li { line-height: 1.85; }
.doc a { text-underline-offset: 3px; }

/* パソコン：左に月、右に一覧 */
@media (min-width: 960px) {
  :root { --gutter: 32px; --time-col: 4.4rem; --thumb-w: 144px; }
  .today-day { font-size: 5.2rem; }
  .views { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .view-switch { display: none; }
  .panel[hidden] { display: block; }
  /* 上の帯（いま・このあと）とカレンダーは、スクロールしても動かさない。--onair-h は JS が帯の高さを入れる */
  :root { --stick: calc(var(--masthead) + var(--onair-h, 0px)); }
  .onair { position: sticky; top: var(--masthead); z-index: 5; padding-top: 12px; background: var(--paper); }
  .today-day { font-size: 3.4rem; }
  /* 配信が多いときは、帯の中で縦にもスクロールする（3 段まで見える） */
  .rail { max-height: calc(30px + 3 * 46px + 18px + 16px); margin-top: 10px; overflow-y: auto; }
  .rail-track { --lane-h: 46px; }
  .day-head { top: var(--stick); }
  .panel-month { position: sticky; top: calc(var(--stick) + 8px); grid-column: 1; grid-row: 1; max-height: calc(100dvh - var(--stick) - 16px); overflow-y: auto; }
  .panel-month .month-head { margin-top: 12px; }
  .panel-list { grid-column: 2; grid-row: 1; }
  /* 画面の高さに合わせてマスを低くする（見出しと曜日の分を引いて 6 段） */
  .month-cell { min-height: clamp(48px, calc((100dvh - var(--stick) - 150px) / 6), 84px); }
  /* マスの中の余白を詰め、低い画面でも 6 段が収まるようにする */
  .panel-month .month-cell button { gap: 3px; padding: 4px 0 3px; }
  .panel-month .month-head { margin-bottom: 4px; }
  .sheet { margin: auto; border-radius: 20px; }
}
.panel-ongoing { display: none; }
/* 広い画面：カレンダー｜各日の予定｜受付中・開催中 */
@media (min-width: 1200px) {
  /* 画面の幅いっぱいに広げる（上限を付けると、広い画面で右が空く） */
  .views { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 2.5vw, 56px); }
  .panel-ongoing { display: block; position: sticky; top: calc(var(--stick) + 8px); grid-column: 3; grid-row: 1; max-height: calc(100dvh - var(--stick) - 16px); overflow-y: auto; }
}

/* 問い合わせのページ */
.contact-note { padding: 12px 14px; border-left: 4px solid var(--cue); border-radius: 0; background: var(--surface); }
.contact-form { display: grid; gap: 16px; margin-top: 24px; }
.contact-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.contact-kinds legend { margin-bottom: 8px; padding: 0; font-weight: 800; }
.contact-kinds label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.contact-kinds label:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.contact-kinds input { accent-color: var(--ink); }
.contact-label { font-weight: 800; }
.contact-form textarea { width: 100%; min-height: 12em; padding: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; line-height: 1.7; resize: vertical; }
.contact-form textarea:focus-visible { outline: 3px solid var(--cue); outline-offset: 2px; }
.contact-count { margin: -8px 0 0; color: var(--ink-2); font-size: var(--step--1); text-align: right; }
.submit-button { justify-self: start; min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; cursor: pointer; }
.submit-button:disabled { opacity: 0.6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: 12px 14px; border-left: 4px solid var(--cue); border-radius: 0; background: var(--surface); }

/* 管理者ページ */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-unread { margin: 0; font-weight: 800; }
/* カレンダーの切り替えはパソコンで隠すが、管理者ページの切り替えはいつも出す */
.admin-head .view-switch { display: inline-flex; margin: 0; }
.inquiries { margin: 0; padding: 0; list-style: none; }
.inquiry { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.inquiry.is-done { opacity: 0.72; }
.inquiry-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: var(--step--1); }
.inquiry-kind { color: var(--ink); font-weight: 800; }
.inquiry-body { margin: 8px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-button { min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); font-size: var(--step--1); font-weight: 700; cursor: pointer; }
.danger-button:hover { border-color: #C0392B; color: #C0392B; }

@media (prefers-reduced-motion: reduce) {
  .rail-now.is-arriving, .rail-bar.is-live .avatar, .entry.is-live .thumb .avatar, .sheet[open] { animation: none; }
}
/* とても広い画面：サムネイルを大きくする */
@media (min-width: 1700px) {
  :root { --thumb-w: 184px; }
}
