/*
| 店舗管理・マイページの見た目（2026-09-19 作り直し。YUTAKAさん「シンプルすぎて分かりにくい・品が下がる」）。
| 下調べ（デジタル庁・SmartHR・Shopify Polaris のデザインの決まり、ヘブンネットの即ヒメ）から:
| - 飾りを増やさず、色を絞る（お店のテーマの色を1つ＋状態の色）。余白と文字の大きさで強弱を付ける
| - 文字は16px（補足14px・それより小さくしない）、押すところは44px以上
| - 状態は色だけでなく言葉でも。説明は「?」に隠さず、いつも見える場所に
| - パソコン: 左にメニュー。スマホ: 下にタブ
*/
:root {
  --accent: #7a2e55;
  --accent-soft: color-mix(in srgb, var(--accent) 8%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 22%, #fff);
  --ground: #faf9f7;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e8e6e3;
  --ok: #1f8a55;
  --ok-soft: #e6f5ec;
  --error: #b3261e;
  --error-soft: #fbe9e7;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --info: #1f5480;
  --info-soft: #e7f0f8;
  --gray: #6b6b6b;
  --gray-soft: #efeeec;
  --rose: #c2334b;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --radius: 12px;
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-size: 16px; line-height: 1.6; letter-spacing: .02em; -webkit-text-size-adjust: 100%; }
h1 { font-size: 22px; line-height: 1.4; margin: 0 0 6px; letter-spacing: .03em; }
h2 { font-size: 18px; line-height: 1.4; margin: 0 0 10px; }
a { color: var(--accent); }
small { color: var(--muted); }
.ic { width: 22px; height: 22px; flex: none; }

/* ───── 枠: 上の帯・左のメニュー（パソコン）・下のタブ（スマホ） ───── */
.admin-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.admin-brand { display: grid; line-height: 1.25; text-decoration: none; color: var(--ink); font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.admin-brand small { font-family: -apple-system, "Hiragino Sans", sans-serif; font-size: 12px; font-weight: 400; letter-spacing: .08em; }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-user-name { display: grid; text-align: right; font-size: 14px; font-weight: 700; line-height: 1.3; }
.admin-user-name small { font-size: 12px; font-weight: 400; }
.admin-user button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.admin-user button .ic { width: 18px; height: 18px; }
.admin-frame { display: block; }
.admin-side { display: none; }
.admin-main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 110px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.admin-main.is-guest { padding-bottom: 40px; }
.admin-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
.admin-tabs a { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 52px; padding-top: 4px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.admin-tabs a .ic { width: 24px; height: 24px; }
.admin-tabs a[aria-current] { color: var(--accent); }
.admin-tabs .count { position: absolute; top: 0; left: calc(50% + 6px); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 700; font-style: normal; line-height: 1; }
@media (min-width: 1024px) {
  .admin-frame { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
  .admin-side { display: grid; gap: 2px; position: sticky; top: 60px; max-height: calc(100vh - 60px); overflow-y: auto; padding: 16px 12px 32px; border-right: 1px solid var(--line); background: var(--surface); min-height: calc(100vh - 60px); }
  .admin-side-group { margin: 14px 10px 4px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
  .admin-side-group:first-child { margin-top: 0; }
  .admin-side a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
  .admin-side a .ic { color: var(--muted); }
  .admin-side a:hover { background: var(--ground); }
  .admin-side a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
  .admin-side a[aria-current] .ic { color: var(--accent); }
  .admin-side .count { margin-left: auto; }
  .admin-main { padding: 28px 32px 60px; }
  .admin-tabs { display: none; }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.login-panel { max-width: 420px; width: 100%; margin: 40px auto; }
.stack { display: grid; gap: 14px; }
.grid-2, .grid-3, .grid-6 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check.small { font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=time], select, textarea {
  width: 100%; font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
input[type=color] { width: 72px; height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.button-primary, .button-danger { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.button-primary { background: var(--accent); color: #fff; }
.button-danger { background: var(--error); color: #fff; }

.notice { margin: 0; padding: 12px 16px; border-radius: 8px; }
.notice ul { margin: 4px 0 0; padding-left: 20px; }
.notice p { margin: 0; }
.notice.is-success { background: var(--ok-soft); color: var(--ok); }
.notice.is-error { background: var(--error-soft); color: var(--error); }
.notice.is-warning { background: var(--warn-soft); color: var(--warn); }
.notice.is-info { background: var(--info-soft); color: var(--info); }

/* Look-around accounts: the buttons that would save or delete are visibly out of reach. */
body.is-readonly .admin-main form[method="post"] button[type="submit"] { opacity: .45; pointer-events: none; }
.hint { color: var(--muted); margin: 0; font-size: 14px; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 16px; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.page-head h1 { margin: 0; }
.week-nav { display: flex; gap: 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-links a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; text-decoration: none; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.data-table, .shift-table, .course-table { border-collapse: collapse; width: 100%; }
.data-table th, .data-table td, .course-table th, .course-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.num { font-variant-numeric: tabular-nums; }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eee; }
.status.is-published { background: var(--ok-soft); color: var(--ok); }
.status.is-draft { background: #fff4d6; color: #7a5a00; }
.status.is-hidden { background: #ececec; color: #555; }

.shift-table { min-width: 980px; }
.shift-table th, .shift-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px; vertical-align: top; }
.shift-table thead th { background: var(--ground); font-size: 13px; white-space: nowrap; }
.shift-table thead th.is-weekend { color: var(--accent); }
.shift-table tbody th { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--surface); }
.shift-table tbody th small { display: block; }
.shift-table td { display: table-cell; min-width: 120px; }
.shift-table td input[type=time] { margin-bottom: 4px; padding: 4px 6px; }
.shift-table td.has-error { background: var(--error-soft); }
.course-table { min-width: 640px; }

.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--ground) 30%); padding: 16px 0 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-item { margin: 0; display: grid; gap: 6px; align-content: start; }
.photo-item img { width: 100%; max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); height: auto; }
.button-secondary { min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--accent); background: #fff; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.link-danger { background: none; border: 0; color: var(--error); font: inherit; font-size: 13px; cursor: pointer; justify-self: start; padding: 0; text-decoration: underline; }
.upload-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.upload-row label { flex: 1 1 260px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filter-row label { min-width: 220px; }
.pager { display: flex; justify-content: center; gap: 16px; }
.photo-field { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0; }
.photo-field img { max-width: min(100%, 320px); height: auto; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wait-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 8px; }
.wait-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; }
.wait-row + .wait-row { border-top: 1px solid var(--line); }
.wait-who { flex: 1 1 200px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.wait-row select { width: auto; flex: 0 1 190px; }
.danger-zone { border: 1px solid var(--error-soft); background: var(--surface); border-radius: 10px; padding: 16px; display: grid; gap: 8px; justify-items: start; }
.danger-zone p { margin: 0; color: var(--muted); font-size: 14px; }

/* Q&A の入力（質問と答えを横に並べる） */
.qa-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; align-items: start; }
@media (max-width: 720px) { .qa-row { grid-template-columns: 1fr; } }
.option-rows { display: grid; gap: 8px; }
.option-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; padding: 8px 0; border-bottom: 1px solid #eee; }
@media (max-width: 720px) { .option-row { grid-template-columns: 1fr; } }
.theme-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.theme-choice { display: grid; gap: 4px; padding: 12px; border: 1px solid #ddd; border-radius: 10px; cursor: pointer; font-weight: 400; }
.theme-choice:has(input:checked) { border-color: #333; box-shadow: 0 0 0 2px #3333; }
.theme-choice input { justify-self: start; }
.theme-choice strong small { margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 99px; background: #fde7ef; color: #a02a5a; }
.theme-swatch { display: flex; height: 26px; border-radius: 6px; overflow: hidden; border: 1px solid #0001; }
.theme-swatch i { flex: 1; }
.logo-preview { padding: 12px; border: 1px solid #eee; border-radius: 8px; justify-self: start; color: #38343c; }
.logo-preview .logo-svg { display: block; height: 52px; width: auto; }
.logo-preview .logo-leaf { fill: var(--accent); }
.wait-next-time { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; white-space: nowrap; }
.wait-next-time input { width: auto; }

/* コンセプト・プレイ内容のページの作成画面 */
.concept-publish { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.concept-publish-state { margin: 0; flex-basis: 100%; }
.concept-publish-choices { display: flex; flex-wrap: wrap; gap: 6px 16px; border: 0; padding: 0; margin: 0; }
.concept-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--line); }
.concept-tabs a { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.concept-tabs a strong { font-size: 15px; }
.concept-tabs a small { font-size: 12px; }
.concept-tabs a.is-current { color: var(--ink); border-bottom-color: var(--accent); background: var(--surface); border-radius: 8px 8px 0 0; }
.concept-helper > summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
.concept-helper > summary::-webkit-details-marker { display: none; }
.concept-helper > summary strong::before { content: "＋ "; color: var(--accent); }
.concept-helper[open] > summary strong::before { content: "－ "; }
.concept-helper-step { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.concept-helper-step h2 { font-size: 16px; margin: 0; }
.concept-choices { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }
.concept-choices legend small { font-weight: 400; }
.concept-chip { display: inline-flex; font-weight: 400; cursor: pointer; }
.concept-chip input { position: absolute; opacity: 0; }
.concept-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.concept-chip input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
.concept-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.concept-question span { display: flex; gap: 8px; line-height: 1.6; }
.concept-question em { flex: none; font-style: normal; color: var(--accent); }
.concept-question.is-ai em { padding: 0 6px; border-radius: 4px; background: var(--info-soft); color: var(--info); font-size: 12px; align-self: start; }
.concept-followups { padding-top: 8px; border-top: 1px dashed var(--line); }
.concept-followups h3 { margin: 0; font-size: 15px; }
.concept-ai-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.concept-block-image { margin: 0; display: grid; gap: 6px; justify-items: start; }
.concept-block-image img { max-width: 200px; height: auto; border-radius: 6px; border: 1px solid var(--line); }

/* 増やせる・並べ替えられる欄 */
.repeat-group { display: grid; gap: 10px; justify-items: start; }
.repeat-list { display: grid; gap: 10px; width: 100%; }
.repeat-item { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.repeat-item.is-content { background: #fcfbfc; }
.repeat-item.is-sub { background: #fff; }
.repeat-item.is-dragging { opacity: .6; outline: 2px dashed var(--accent); }
.repeat-bar { display: flex; align-items: center; gap: 8px; }
.drag-handle { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #f6f3f6; color: var(--muted); font: inherit; font-weight: 700; letter-spacing: -2px; cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.repeat-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.repeat-actions { display: flex; gap: 4px; margin-left: auto; }
.repeat-button { min-width: 36px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.repeat-button.is-remove { color: var(--error); }
.button-secondary.is-small { min-height: 36px; font-size: 13px; }
.repeat-item [data-add] { justify-self: start; }

/* 料金表の「目的」のチェック（2026-09-18） */
.purpose-checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 220px; }
.purpose-checks label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.sns-copy textarea { font-size: 14px; }
.sns-copy [hidden] { display: none; }

/* マイページ（キャスト・スタッフ本人。2026-09-18）と、日記の承認待ち */
.status.is-pending { background: #e8eefc; color: #2f4a8a; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plain-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.inline-form { display: inline; margin-right: 8px; }
.inline-form .button-primary { padding: 4px 10px; font-size: 13px; min-height: 0; }
.status.is-danger { background: #fdecec; color: #8a2020; }
.info-list { margin: 0; display: grid; gap: 8px; }
.info-list div { display: grid; grid-template-columns: 7em 1fr; gap: 8px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; }

/* 予約の表（2026-09-18） */
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.day-nav h2 { margin: 0; }
.row-actions { display: inline-flex; gap: 6px; margin-left: 8px; }
.status-form select { min-width: 8em; }
.note-edit { margin-top: 6px; font-size: 13px; }
.note-edit summary { cursor: pointer; color: var(--muted); }
.cheer-admin { display: grid !important; gap: 6px; }
.cheer-admin p { margin: 0; }

/* 推しトーク（2026-09-19）: メニューの数字・やりとり・一覧 */
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.talk-log { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.talk-log li { max-width: 85%; justify-self: start; display: grid; gap: 4px; justify-items: start; }
.talk-log li.is-mine { justify-self: end; justify-items: end; }
.talk-log p { margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #f1f1f1; line-height: 1.7; word-break: break-word; }
.talk-log li.is-mine p { border-radius: 14px 14px 4px 14px; background: var(--ok-soft); }
.talk-log small { color: #777; font-size: 11px; padding: 0 4px; }
.talk-log .talk-read { font-weight: 700; color: var(--ok); }
.talk-log .talk-unread { font-weight: 700; }
.talk-threads { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.talk-threads a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.talk-threads li.is-unread a { border-color: var(--accent); }
.talk-threads small { color: #777; font-size: 12px; }
.talk-preview { grid-column: 1 / -1; color: #555; font-size: 13px; }

/* 相互リンク（2026-09-19） */
.link-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.link-list li { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; align-items: center; padding: 12px; border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.link-list li.is-off { opacity: .55; }
.link-preview { display: grid; place-items: center; min-height: 40px; overflow: hidden; }
.link-preview img { max-width: 120px; max-height: 60px; }
.link-preview span { font-size: 12px; word-break: break-all; }
.link-meta { display: grid; gap: 2px; min-width: 0; }
.link-meta small { color: #777; font-size: 12px; word-break: break-all; }
.link-list .actions { grid-column: 1 / -1; justify-content: flex-end; }


/* ───── 部品の作り直し（2026-09-19）: カード・入力欄・ボタン・お知らせ・状態・表 ───── */
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 20px; }
.panel > h2:first-child { margin-top: 0; }
.stack { gap: 16px; }
label { gap: 6px; font-size: 15px; font-weight: 700; }
label.check { gap: 10px; font-size: 15px; min-height: 36px; }
label.check input[type=checkbox], label.check input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=time], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  min-height: 46px; padding: 10px 12px; font-size: 16px; border: 1px solid #d8d4cf; border-radius: 10px; background: #fff;
}
textarea { line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=file] { font-size: 15px; }
.button-primary, .button-danger { min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 16px; gap: 8px; box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.button-danger { box-shadow: none; }
.button-primary:hover { filter: brightness(1.06); }
.button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--accent-line); background: var(--surface); color: var(--accent); font-size: 15px; text-decoration: none; }
.button-secondary:hover { background: var(--accent-soft); }
.button-secondary.is-small { min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.notice { display: flex; align-items: flex-start; gap: 8px; padding: 12px 16px; border-radius: var(--radius); font-size: 15px; }
.notice .ic { width: 20px; height: 20px; margin-top: 2px; }
div.notice { display: block; }
.hint { font-size: 14px; line-height: 1.7; }
.lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.empty { border-radius: var(--radius); padding: 20px; text-align: center; font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 12px; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.status.is-draft { background: var(--warn-soft); color: var(--warn); }
.status.is-hidden { background: var(--gray-soft); color: var(--gray); }
.page-head { align-items: flex-end; }
.page-head h1 { margin: 0 0 4px; }
.section-title { font-size: 18px; margin: 0 0 10px; }
.table-wrap { border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table th { font-size: 13px; color: var(--muted); font-weight: 700; background: #fcfbfa; white-space: nowrap; }
.data-table th, .data-table td { padding: 12px 14px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fcfbfa; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.sticky-actions { bottom: 68px; }
@media (min-width: 1024px) { .sticky-actions { bottom: 0; } }
.stats { gap: 10px; }
.stat { border-radius: var(--radius); box-shadow: var(--shadow); }
.quick-links a { background: var(--surface); border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
/* 見出しの横のボタンでも、目立つボタンは色つきのまま（2026-09-23。白い文字が白い下地に重なって読めなくなっていた） */
.quick-links a.button-primary { background: var(--accent); color: #fff; border-color: transparent; }
.quick-links a.button-secondary { border-color: var(--line); }

/* ───── メニューのページ（スマホの「その他」） ───── */
.menu-group { display: grid; gap: 0; }
.menu-list { display: grid; overflow: hidden; }
.menu-list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.menu-list a + a { border-top: 1px solid var(--line); }
.menu-list a:hover { background: #fcfbfa; }
.menu-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.menu-text { display: grid; line-height: 1.4; flex: 1; min-width: 0; }
.menu-text strong { font-size: 16px; }
.menu-text small { font-size: 13px; }
.menu-list a > .ic:last-child { width: 18px; height: 18px; color: var(--muted); }

/* ───── ホーム（2026-09-19）: 案内状況・やること・よく使う ───── */
.home-hello { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.home-hello h1 { margin: 0; }
.home-hello span { color: var(--muted); font-size: 14px; }
.home-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .home-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.home-grid > section, .home-side > section { display: grid; gap: 10px; align-content: start; }
.home-side { display: grid; gap: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-size: 14px; font-weight: 700; text-decoration: none; }
.wait-card { padding: 0; overflow: hidden; }
.wait-item { padding: 14px 16px; display: grid; gap: 10px; }
.wait-item + .wait-item { border-top: 1px solid var(--line); }
.wait-head { display: flex; align-items: center; gap: 12px; }
.wait-head img, .wait-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; background: var(--accent-soft); }
.wait-face { display: grid; place-items: center; color: var(--accent); font-weight: 700; }
.wait-head strong { display: block; font-size: 16px; line-height: 1.3; }
.wait-head small { display: block; font-size: 13px; }
.wait-head .state { margin-left: auto; text-align: right; }
.wait-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 520px) { .wait-seg { grid-template-columns: repeat(2, 1fr); } }
.wait-seg button.is-soldout { color: #b4235a; border-color: #f0c2d3; }
.wait-seg button.is-soldout:hover { background: #fdf0f5; color: #b4235a; }
.wait-seg button { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 46px; padding: 0 4px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.wait-seg button:hover { border-color: #cfcac4; color: var(--ink); }
.wait-seg button .ic { width: 16px; height: 16px; }
.wait-seg button.is-on.is-now { background: var(--ok); border-color: var(--ok); color: #fff; }
.wait-seg button.is-on.is-next { background: var(--warn); border-color: var(--warn); color: #fff; }
.wait-seg button.is-on.is-full { background: var(--gray); border-color: var(--gray); color: #fff; }
.wait-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.wait-foot b { color: var(--ink); }
.wait-foot .link-button { background: none; border: 0; padding: 0; min-height: 32px; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.link-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--accent-line); border-radius: 999px; background: #fff; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.link-button:hover { background: var(--accent-soft); }
.wait-foot .link-button { border: 0; padding: 0; min-height: 32px; background: none; }
.wait-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wait-chips[hidden] { display: none; }
.wait-chips button, .wait-chips .chip-time { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.wait-chips button.is-on { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.wait-chips .chip-time input { min-height: 34px; width: auto; padding: 2px 6px; border-radius: 8px; font-size: 15px; }
.wait-chips-label { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.todo-list { display: grid; gap: 10px; }
.todo { display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.todo .todo-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.todo strong { font-size: 16px; }
.todo strong b { color: var(--accent); font-size: 19px; margin: 0 1px; }
.todo p { grid-column: 2; margin: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo .go { grid-row: span 2; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.todo-done { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ok); font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a { display: grid; align-content: space-between; gap: 10px; min-height: 96px; padding: 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.quick-grid a .ic { width: 26px; height: 26px; color: var(--accent); }
.quick-grid a small { display: block; font-weight: 400; font-size: 12px; }
.quick-grid a:hover { border-color: var(--accent-line); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); }
.summary div { padding: 14px 8px; text-align: center; }
.summary div + div { border-left: 1px solid var(--line); }
.summary b { display: block; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.summary span { font-size: 12px; color: var(--muted); }

/* スマホの上の帯: 店名を優先し、ログアウトはアイコンだけ */
@media (max-width: 640px) {
  .admin-brand { font-size: 16px; min-width: 0; }
  .admin-brand, .admin-brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-user-name { display: none; }
  .admin-user button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-user button { width: 44px; justify-content: center; padding: 0; }
}

/* スマホでは表を1件ずつのカードに（2026-09-19）。見出しは data-label（layouts/admin の小さなスクリプトが入れる） */
@media (max-width: 720px) {
  .table-wrap:has(.data-table) { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr { margin-bottom: 10px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .data-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; }
  .data-table td[data-label=""]::before { content: none; }
  .data-table td[data-label=""] { justify-content: flex-end; }
  .data-table tbody tr:hover { background: var(--surface); }
}

/* ───── マイページ（2026-09-19 作り直し） ───── */
.mypage-top-nav { display: none; }
.mypage-main { max-width: 760px; }
.is-mypage .admin-brand small { white-space: nowrap; }
@media (min-width: 1024px) {
  .mypage-top-nav { display: flex; gap: 4px; margin-left: 24px; }
  .mypage-top-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
  .mypage-top-nav a:hover { background: var(--ground); }
  .mypage-top-nav a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
  .is-mypage .admin-tabs { display: none; }
}
.cast-hero { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: center; margin: -20px -16px 0; padding: 20px 16px; background: var(--accent-soft); }
@media (min-width: 1024px) { .cast-hero { margin: 0; border-radius: var(--radius); } }
.cast-hero img, .cast-hero-face { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cast-hero-face { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 24px; font-weight: 700; }
.cast-hero h1 { margin: 0; font-size: 21px; }
.cast-hero p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.cast-hero p b { color: var(--ink); }
.big-action { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--accent); color: #fff; text-decoration: none; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.big-action .ic { width: 34px; height: 34px; }
.big-action strong { display: block; font-size: 18px; }
.big-action small { display: block; color: #fff; opacity: .9; font-size: 13px; }
.big-action:hover { filter: brightness(1.05); }
.home-block { display: grid; gap: 10px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 10px; }
.week-strip div { display: grid; justify-items: center; padding: 8px 0; border-radius: 10px; font-size: 12px; color: var(--muted); }
.week-strip b { font-size: 16px; color: var(--ink); line-height: 1.3; }
.week-strip em { font-style: normal; font-size: 10px; white-space: nowrap; }
.week-strip .is-work { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.week-strip .is-work b { color: var(--accent); }
.week-strip .is-today { box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo-strip a { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 12px; text-decoration: none; text-align: center; padding: 0; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip em { position: absolute; left: 6px; top: 6px; font-style: normal; }
.completion { display: grid; gap: 8px; padding: 16px; color: var(--ink); text-decoration: none; }
.completion-head { display: flex; justify-content: space-between; font-size: 15px; }
.completion-head span { color: var(--accent); font-weight: 700; }
.completion-bar { height: 8px; border-radius: 4px; background: var(--gray-soft); overflow: hidden; }
.completion-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.completion small { font-size: 13px; line-height: 1.6; }
.shift-days { padding: 0; overflow: hidden; }
.shift-days > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 56px; padding: 10px 16px; }
.shift-days > div + div { border-top: 1px solid var(--line); }
.shift-days .shift-date { width: 8em; font-weight: 700; }
.shift-days .shift-date small { margin-left: 6px; color: var(--accent); font-size: 12px; }
.shift-days .is-weekend .shift-date { color: var(--accent); }
.shift-days .off { color: var(--muted); font-size: 14px; }
.shift-days .is-work { background: #fffdfb; }

/* ───── 共通: 説明の箱・下に貼り付く保存の帯・入力の間違い（2026-09-21） ───── */
.help-box { background: var(--info-soft); border-radius: var(--radius); padding: 0 16px; color: var(--info); font-size: 14px; }
.help-box summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.help-box summary::before { content: "？"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--info); color: #fff; font-size: 13px; }
.help-box ul { margin: 0 0 14px; padding-left: 1.2em; line-height: 1.8; }
.save-bar { position: sticky; bottom: 72px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 6px 24px rgba(0,0,0,.08); font-size: 14px; color: var(--muted); }
.save-bar .button-primary { flex: none; }
@media (min-width: 1024px) { .save-bar { bottom: 12px; } }
.field-error { display: block; color: var(--error); font-size: 13px; font-weight: 700; }

/* ───── 出勤の入力（2026-09-21 作り直し） ───── */
.week-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px; }
.week-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.week-switch a:hover { background: var(--accent-soft); }
.week-switch strong { font-size: 15px; text-align: center; }
.shift-form { display: grid; gap: 12px; }
.shift-cast { padding: 0; overflow: hidden; }
.shift-cast > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; cursor: pointer; list-style: none; background: #fcfbfa; border-bottom: 1px solid var(--line); }
.shift-cast > summary::-webkit-details-marker { display: none; }
.shift-cast > summary::after { content: "▾"; margin-left: 8px; color: var(--muted); }
.shift-cast:not([open]) > summary { border-bottom: 0; }
.shift-cast:not([open]) > summary::after { content: "▸"; }
.shift-cast > summary strong { font-size: 17px; }
.shift-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.shift-week { display: grid; grid-template-columns: minmax(0, 1fr); }
.shift-day { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 10px 14px; }
.shift-day + .shift-day { border-top: 1px solid var(--line); }
.shift-day-label { grid-row: span 2; font-weight: 700; font-size: 15px; line-height: 1.3; }
.shift-day-label small { display: block; font-size: 12px; font-weight: 400; }
.shift-day.is-weekend .shift-day-label { color: var(--accent); }
.shift-day.has-error { background: var(--error-soft); }
.shift-times { display: flex; align-items: center; gap: 6px; }
.shift-times input { flex: 1; min-width: 0; padding: 8px; }
.shift-clear { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font: inherit; font-size: 16px; cursor: pointer; }
.shift-extra { display: flex; align-items: center; gap: 10px; }
.shift-extra label.check { min-height: 32px; font-size: 13px; white-space: nowrap; }
.shift-extra select { min-height: 36px; padding: 4px 8px; font-size: 14px; width: auto; flex: 1; }
.shift-day .field-error { grid-column: 1 / -1; }
/*
   7日を横に並べるのは、カードの幅が足りているときだけ（2026-09-27 YUTAKAさん
   「入力枠がはみ出てるのでレスポンシブ対応できれいに表示できるように」）。
   画面の幅ではなくカードの幅で決めるので、左メニューがあっても、はみ出さない。
   足りないときは、今までどおり日にちを縦に並べる
*/
.shift-cast { container-type: inline-size; }
.shift-week { overflow-x: auto; } /* 念のため。どんな幅でも切れて見えなくならないように */

@container (min-width: 880px) {
  .shift-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .shift-day { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; padding: 10px 6px; min-width: 0; }
  .shift-day + .shift-day { border-top: 0; border-left: 1px solid var(--line); }
  .shift-day-label { grid-row: auto; text-align: center; font-size: 14px; }
  .shift-day-label small { display: inline; }
  .shift-times { flex-direction: column; gap: 3px; }
  .shift-times > span { display: none; }
  .shift-times input[type="time"] { width: 100%; min-width: 0; padding: 7px 4px; font-size: 14px; text-align: center; }
  .shift-clear { width: 100%; height: 28px; border-radius: 8px; font-size: 13px; }
  .shift-extra { flex-direction: column; align-items: stretch; gap: 4px; }
  .shift-extra label.check { min-height: 28px; font-size: 12px; line-height: 1.3; white-space: normal; }
  .shift-extra select { width: 100%; min-width: 0; padding: 4px; font-size: 13px; }
}

/* 前からある「下に貼り付く保存」も、保存の帯と同じ見た目に（2026-09-21） */
.sticky-actions { position: sticky; bottom: 72px; z-index: 10; display: flex; justify-content: flex-end; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
@media (min-width: 1024px) { .sticky-actions { bottom: 12px; } }
.panel .save-bar { margin: 8px -8px -8px; }

/* 長いページの中を移動するボタン（店舗設定） */
.jump-nav { position: sticky; top: 60px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px; margin: 0 -2px; background: var(--ground); scrollbar-width: none; }
.jump-nav::-webkit-scrollbar { display: none; }
.jump-nav:empty { display: none; }
.jump-nav a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.jump-nav a:hover { border-color: var(--accent-line); color: var(--accent); }
[id^="sec-"] { scroll-margin-top: 120px; }

/* 写真を選ぶ（2026-09-21）: 大きな押しやすい枠と、選んだ写真の見本 */
.photo-pick { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 88px; padding: 16px; border: 2px dashed var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; }
.photo-pick .ic { width: 28px; height: 28px; }
.photo-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-pick:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-preview { max-width: min(100%, 320px); height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.photo-field { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }

/* マイページの写メ日記の一覧（2026-09-21）: 写真の並び */
.diary-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
@media (min-width: 720px) { .diary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.diary-grid a { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.diary-grid img { width: 100%; height: 100%; object-fit: cover; }
.diary-grid-text { padding: 8px; font-size: 12px; text-align: center; }
.diary-grid .status { position: absolute; left: 6px; bottom: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.diary-grid-movie { position: absolute; right: 6px; top: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.diary-grid p { margin: 4px 2px 0; display: grid; line-height: 1.35; }
.diary-grid p strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diary-grid p small { font-size: 11px; }
.pager { gap: 10px; }

/* 写メ日記: 写真4枚の欄・本文の入力ボタン・公開／下書き（2026-09-21） */
.diary-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .diary-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.diary-slot { display: grid; gap: 6px; align-content: start; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); min-width: 0; }
.diary-slot legend { padding: 0 4px; font-size: 14px; font-weight: 700; }
.diary-slot legend small { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; }
.diary-slot-now { display: block; width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; margin: 0 auto; object-fit: cover; border-radius: 8px; background: #eee; }
.diary-slot-now[hidden] { display: none; }
.diary-slot-pick.is-video { padding: 0 16px; }
.photo-field video { display: block; width: 100%; max-width: 220px; height: auto; max-height: 220px; border-radius: 10px; background: #000; }
.diary-slot-pick { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 2px dashed var(--accent-line); border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; cursor: pointer; }
.diary-slot-now:not([hidden]) ~ .diary-slot-pick { min-height: 44px; }
.diary-slot-pick .ic { width: 22px; height: 22px; }
.diary-slot-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.diary-slot-pick:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.diary-slot .check.small { font-size: 14px; min-height: 36px; }
.compose, .compose-panel { min-width: 0; max-width: 100%; }
.compose > label { font-weight: 700; }
.compose-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.compose-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--accent-line); border-radius: 999px; background: #fff; color: var(--accent); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.compose-tool .ic { width: 20px; height: 20px; }
.compose-tool[aria-expanded=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.compose-panel { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.compose-panel .hint { margin: 0 0 8px; }
.compose-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.compose-tabs button { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.compose-tabs button[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 700; }
.compose-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; }
.compose-chips button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.compose-chips.is-emoji button { padding: 0; font-size: 24px; line-height: 1; }
.compose-chips button:hover { background: var(--accent-soft); }
.save-bar-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 480px) { .save-bar > span:first-child { display: none; } .save-bar-buttons { flex: 1; } .save-bar-buttons button { flex: 1 1 auto; white-space: nowrap; padding-inline: 14px; } }

/* 写メ日記を見せる相手（2026-09-21） */
.audience-field legend .req { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; vertical-align: 2px; }
.audience-options { display: grid; gap: 8px; }
@media (min-width: 700px) { .audience-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.audience-option { display: flex; align-items: flex-start; gap: 10px; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.audience-option input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.audience-option span { display: grid; gap: 2px; }
.audience-option strong { font-size: 16px; }
.audience-option small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.audience-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.audience-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #3b3b3b; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; }
.diary-grid-audience { position: absolute; left: 6px; top: 6px; }

/* 写メ日記のプレビュー（2026-09-21）。サイトの日記の小窓に近い形 */
.diary-preview { width: min(100%, 520px); max-width: 100%; max-height: 100%; height: 100%; margin: auto; padding: 0; border: 0; border-radius: 0; background: var(--ground); }
@media (min-width: 600px) { .diary-preview { height: auto; max-height: calc(100% - 32px); border-radius: 16px; } }
.diary-preview::backdrop { background: rgba(20, 16, 20, .6); }
.diary-preview-inner { display: flex; flex-direction: column; height: 100%; max-height: inherit; overflow-y: auto; }
.diary-preview-note { position: sticky; top: 0; z-index: 2; margin: 0; padding: 12px 16px; background: var(--accent); color: #fff; font-weight: 700; display: grid; gap: 2px; }
.diary-preview-note small { font-weight: 400; font-size: 13px; opacity: .92; }
.pv-post { background: #fff; flex: 1 0 auto; }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pv-face { flex: none; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pv-face img { width: 100%; height: 100%; object-fit: cover; }
.pv-head time { margin-left: auto; font-size: 13px; color: var(--muted); }
.pv-audience { margin: 0 14px 10px; padding: 6px 10px; border-radius: 8px; background: #3b3b3b; color: #fff; font-size: 13px; }
.pv-media { background: #111; }
.pv-media img, .pv-media video, .pv-inline img, .pv-inline video { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #111; }
.pv-body { padding: 14px 16px 20px; }
.pv-body h3 { margin: 0 0 8px; font-size: 18px; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; color: var(--accent); font-size: 13px; font-weight: 700; }
.pv-tags:empty { display: none; }
.pv-text { font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.pv-text p { margin: 0 0 .9em; }
.pv-inline { margin: 1em 0; }
.pv-inline img, .pv-inline video { border-radius: 10px; }
.diary-preview-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.diary-preview-actions button { min-height: 48px; font-size: 16px; }
.save-bar-buttons [hidden], .diary-preview [hidden] { display: none !important; }

/* プロフィール管理（2026-09-21）: 文章・プロフィール／写真の切り替えと、写真の並べ替え */
.profile-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.profile-switch a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; }
.profile-switch a .ic { width: 20px; height: 20px; }
.profile-switch a[aria-current=page] { background: var(--accent); color: #fff; }
.photo-manager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .photo-manager { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-manager li { position: relative; display: grid; gap: 8px; align-content: start; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.photo-manager img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 8px; background: #eee; }
.photo-manager-no { position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; font-size: 14px; }
.photo-manager-no small { font-size: 11px; }
.photo-manager li:first-child { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.photo-manager li:first-child .photo-manager-no { background: var(--accent); }
.photo-manager-actions { display: grid; gap: 6px; }
.photo-manager-actions form:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.photo-manager-actions .button-secondary { min-height: 40px; padding: 0 6px; font-size: 13px; }
.photo-manager-actions .button-secondary:disabled { opacity: .35; cursor: default; }
.photo-manager-top { grid-column: 1 / -1; }
.photo-manager-actions .link-danger { justify-self: center; min-height: 32px; font-size: 14px; }
.cast-photos .photo-pick { position: relative; }
.admin-tabs a span { white-space: nowrap; letter-spacing: -.03em; }
.photo-manager-actions .button-secondary { white-space: nowrap; font-size: 12.5px; padding: 0 4px; }
.photo-manager-actions form:last-child { display: flex; justify-content: center; }

/* プロフィール管理の目次（2026-09-21「初めての女の子が戸惑わないように」） */
.profile-steps { margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.profile-steps-head { margin: 0 0 10px; font-weight: 700; display: grid; gap: 2px; }
.profile-steps-head small { font-weight: 400; font-size: 13px; color: var(--muted); }
.profile-steps ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .profile-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.profile-steps a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: 60px; padding: 10px; border: 1.5px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); color: var(--ink, #222); text-decoration: none; }
.profile-steps a:hover { border-color: var(--accent); }
.step-no { grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.profile-steps strong { font-size: 14px; line-height: 1.35; }
.step-state { font-style: normal; font-size: 12px; color: var(--muted); }
.step-state.is-done { color: #1f7a4d; font-weight: 700; }
[id^="sec-"] { scroll-margin-top: 72px; }
.catalog-who { font-size: 13px; color: var(--muted); min-width: 8em; }
.big-check { padding: 12px 14px; border: 1.5px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); font-weight: 700; }
/* 本人が選ぶオプション・コスプレ（2026-09-21） */
.profile-switch { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice-list { display: grid; gap: 8px; }
@media (min-width: 700px) { .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice-item, .choice-item > label { display: flex; align-items: center; gap: 12px; }
.choice-item { min-height: 56px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.choice-item.has-note { flex-direction: column; align-items: stretch; gap: 8px; cursor: default; }
.choice-item.has-note > label { cursor: pointer; }
.choice-item input[type=checkbox] { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.choice-item span { display: grid; gap: 2px; }
.choice-item strong { font-size: 16px; }
.choice-item small { font-size: 13px; color: var(--muted); }
.choice-item:has(input[type=checkbox]:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cast-photos .photo-pick span { display: grid; gap: 2px; }
.cast-photos .photo-pick small { font-size: 13px; font-weight: 400; }
.cast-photos form.is-uploading .photo-pick { opacity: .7; pointer-events: none; }
.cast-photos [hidden] { display: none !important; }
/* トップの写真の印（2026-09-21 見やすく）: 写真のすぐ下に太い帯。顔にかからない */
.photo-manager-topband { display: grid; justify-items: center; gap: 1px; margin-top: -8px; padding: 6px 4px; border-radius: 0 0 8px 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; line-height: 1.35; text-align: center; }
.photo-manager-topband small { font-size: 11px; font-weight: 400; color: #fff; }
.photo-manager li:first-child img { border-radius: 8px 8px 0 0; }
/* 写真を指で並べ替える（2026-09-21） */
.sort-tip { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
[data-photo-sort] > li { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-photo-sort] img, [data-photo-sort] a { -webkit-user-drag: none; user-drag: none; }
[data-photo-sort] img { pointer-events: none; }
.sort-placeholder { opacity: .25; outline: 2px dashed var(--accent); outline-offset: 2px; }
.sort-ghost { position: fixed; z-index: 1000; display: block; margin: 0; padding: 0; list-style: none; pointer-events: none; transform: scale(1.02); opacity: .97; cursor: grabbing; }
.sort-ghost > li { box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.sort-ghost .photo-manager-actions, .sort-ghost .slide-actions, .sort-ghost .slide-edit { display: none; }
body.is-sorting { cursor: grabbing; overscroll-behavior: none; }
[data-photo-sort].is-saving { opacity: .6; pointer-events: none; }

/* 出勤申請（2026-09-22） */
.req-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.req-state { display: inline-block; flex: none; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-style: normal; }
.req-state.is-fixed { background: #1f7a4d; color: #fff; }
.req-state.is-pending { background: #d98a00; color: #fff; }
.req-state.is-rejected { background: #c2410c; color: #fff; }
.req-days { padding: 0; overflow: hidden; }
.req-day { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 8px; align-items: center; min-height: 56px; padding: 8px 12px; border-top: 1px solid var(--line); }
.req-day:first-child { border-top: 0; }
.req-day.is-weekend .req-date { color: var(--accent); }
.req-day.is-chosen { background: var(--accent-soft); }
.req-day.has-error { background: #fff4f2; }
.req-date { font-weight: 700; line-height: 1.2; }
.req-date small { font-weight: 400; font-size: 12px; }
.req-date em { display: block; font-style: normal; font-size: 11px; color: var(--accent); }
.req-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.req-now small { color: var(--muted); font-size: 12px; }
.req-input { display: grid; gap: 6px; min-width: 0; }
.req-input select { min-height: 44px; }
.req-times { display: flex; align-items: center; gap: 6px; }
.req-times[hidden] { display: none; }
.req-times input { min-width: 0; flex: 1; min-height: 44px; }
.req-rejected { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
.req-rejected small { flex-basis: 100%; color: #c2410c; }
.req-admin { border: 2px solid #d98a00; }
.req-admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.req-admin-head h2 { margin: 0; }
.req-admin-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.req-admin-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; }
.req-admin-what { display: grid; gap: 2px; min-width: 0; }
.req-admin-what small { color: var(--muted); }
.req-admin-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.req-reject summary { list-style: none; display: inline-flex; align-items: center; cursor: pointer; }
.req-reject summary::-webkit-details-marker { display: none; }
.req-reject[open] { flex-basis: 100%; }
.req-reject form { margin-top: 8px; }

/* 予約表の人 × 時間の帯（2026-09-22） */
.tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.tl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.tl { min-width: calc(7.5em + var(--hours) * 92px); }
.tl-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); border-top: 1px solid var(--line); min-height: 52px; }
.tl-row:first-child { border-top: 0; }
.tl-head { min-height: 28px; background: var(--ground); }
.tl-name { position: sticky; left: 0; z-index: 3; display: grid; align-content: center; gap: 1px; padding: 6px 8px; background: #fff; border-right: 1px solid var(--line); min-width: 0; }
.tl-head .tl-name { background: var(--ground); }
.tl-name strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-track { position: relative; }
.tl-hour { position: absolute; top: 6px; transform: translateX(3px); font-size: 11px; color: var(--muted); white-space: nowrap; }
.tl-shift { position: absolute; top: 8px; bottom: 8px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tl-tbd { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
.tl-block { position: absolute; top: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 4px; min-width: 0; padding: 0 6px; overflow: hidden; border-radius: 6px; color: #fff; font-size: 12px; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.tl-block span { overflow: hidden; text-overflow: ellipsis; }
.tl-block.is-confirmed { background: #1f7a4d; }
.tl-block.is-requested { background: #d98a00; }
.tl-block.is-done { background: #9a948d; }
.tl-block:hover { filter: brightness(1.1); }
.tl-now { position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; background: #e11d48; }
tr:target { background: #fff7e0; }
/* マイページの今日・明日の予約（2026-09-22） */
.resv-list { margin: 0; padding: 0; list-style: none; }
.resv-list li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.resv-list li:first-child { border-top: 0; }
.resv-when b { display: block; font-size: 12px; color: var(--accent); }
.resv-what { display: grid; gap: 2px; min-width: 0; }
.resv-what small { color: var(--muted); font-size: 13px; }
.resv-mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.empty-line { margin: 0; color: var(--muted); }
/* 予約の帯: 手直し（2026-09-22「分かりにくい」→ 箱を押すと小窓・空きを押すと予約を入れる） */
.tl-help { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.tl-row { min-height: 64px; }
.tl-head { min-height: 28px; }
.tl-track[data-tl-track] { cursor: copy; }
.tl-track[data-tl-track]:hover { background: rgba(0,0,0,.015); }
.tl-block { top: 8px; bottom: 8px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0 8px; font-size: 12px; cursor: pointer; }
.tl-block b { font-size: 13px; }
.tl-block span { max-width: 100%; }
.resv-dialog { width: min(100% - 24px, 520px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.resv-dialog::backdrop { background: rgba(20,16,20,.55); }
.resv-close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ground); font-size: 22px; line-height: 1; cursor: pointer; }
.resv-detail { display: grid; gap: 12px; padding: 20px 18px 18px; }
.resv-detail h2 { margin: 0; padding-right: 40px; font-size: 20px; }
.resv-detail-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.resv-detail-list { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 6px 10px; margin: 0; }
.resv-detail-list dt { color: var(--muted); font-size: 14px; }
.resv-detail-list dd { margin: 0; font-weight: 700; }
.resv-call { justify-content: center; }
.resv-detail-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.resv-detail-actions form { display: contents; }
.resv-state { min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.resv-state.is-confirmed { color: #1f7a4d; border-color: #b7e0c8; }
.resv-state.is-visited { color: #555; }
.resv-state.is-cancelled, .resv-state.is-no_show, .resv-state.is-declined { color: #c2410c; border-color: #f3c9b5; }
.resv-state.is-on { background: #1f7a4d; border-color: #1f7a4d; color: #fff; cursor: default; }
.resv-state.is-on.is-cancelled, .resv-state.is-on.is-no_show { background: #c2410c; border-color: #c2410c; }
.resv-state.is-on.is-visited { background: #6b6b6b; border-color: #6b6b6b; }
.resv-list-toggle > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
/* 予約台帳（2026-09-22 アリエルの予約台帳を参考に作り直し） */
.ledger-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ledger-head h2 { margin: 0; margin-right: auto; font-size: 20px; }
.ledger-head h2 small { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; vertical-align: 3px; }
.ledger-count { padding: 6px 12px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 13px; font-weight: 700; }
.ledger-count b { font-size: 16px; }
.ledger-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ledger-days a { flex: none; display: grid; justify-items: center; min-width: 58px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink, #222); font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.ledger-days a small { font-size: 11px; font-weight: 400; color: var(--muted); }
.ledger-days a[aria-current=page] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ledger-days a[aria-current=page] small { color: #fff; }
.tl-legend { gap: 6px; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: #444; }
.tl-legend i { width: 10px; height: 10px; border-radius: 50%; }
.tl-legend i.is-shift { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tl-legend i.is-confirmed { background: #10b981; }
.tl-legend i.is-requested { background: #f59e0b; }
.tl-legend i.is-done { background: #6b7280; }
.tl { min-width: calc(8.5em + var(--hours) * 110px); }
.tl-row { grid-template-columns: 8.5em minmax(0, 1fr); min-height: 76px; }
.tl-head { min-height: 32px; background: #fefce8; }
.tl-head .tl-name { background: #fefce8; font-size: 12px; font-weight: 700; }
.tl-row.is-alert .tl-name { background: #fff7ed; }
.tl-row.is-alert .tl-name small:first-of-type { color: #c2410c; font-weight: 700; }
.tl-track { background:
    repeating-linear-gradient(to right, rgba(107,114,128,.28) 0 1px, transparent 1px calc(100% / var(--hours))),
    repeating-linear-gradient(to right, rgba(107,114,128,.12) 0 1px, transparent 1px calc(100% / (var(--hours) * 2))); }
.tl-head .tl-track { background: repeating-linear-gradient(to right, rgba(107,114,128,.28) 0 1px, transparent 1px calc(100% / var(--hours))); }
.tl-hour { top: 8px; font-weight: 700; color: #111; }
.tl-shift { top: 6px; bottom: 6px; }
.tl-block { top: 12px; bottom: 12px; min-width: 104px; border-radius: 999px; padding: 0 12px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.tl-block.is-confirmed { background: #10b981; }
.tl-block.is-requested { background: #f59e0b; }
.tl-block.is-done { background: #6b7280; }
.tl-block b { font-size: 12px; }
.tl-block span { font-size: 12px; font-weight: 700; }
.resv-more > summary { cursor: pointer; font-weight: 700; color: #92400e; }
.resv-more[open] { padding: 10px 12px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; }
.resv-manual > summary { cursor: pointer; font-weight: 700; }
.resv-manual[open] > summary { margin-bottom: 10px; }

/* 予約の小窓（2026-09-22 手直し: アリエルの「予約情報」を参考に。見出しの帯・区切り・表の形・パソコンは2列） */
.resv-dialog { width: min(100% - 16px, 940px); max-height: calc(100% - 16px); padding: 0; border: 0; border-radius: 18px; background: #f7f7f7; }
.resv-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: #fff; }
.resv-sheet-head.is-ok { background: #10b981; }
.resv-sheet-head.is-wait { background: #f59e0b; }
.resv-sheet-head.is-done { background: #6b7280; }
.resv-sheet-head.is-ng { background: #dc2626; }
.resv-sheet-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; font-weight: 800; color: #fff; }
.resv-sheet-head h2 span { padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 13px; font-weight: 700; }
.resv-sheet-close { min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255,255,255,.22); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.resv-sheet-body { display: grid; gap: 14px; padding: 16px; }
@media (min-width: 760px) { .resv-sheet-body { grid-template-columns: 1.15fr 1fr; align-items: start; } .resv-sheet-body.is-one { grid-template-columns: 1fr; } }
.resv-side { display: grid; gap: 14px; }
.resv-box { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.resv-box h3 { margin: 4px 0 0; padding-bottom: 8px; border-bottom: 2px solid #10b981; font-size: 15px; font-weight: 800; color: #111; }
.resv-box.is-time h3 { border-color: #f59e0b; }
.resv-kv { display: grid; grid-template-columns: 6em minmax(0, 1fr); margin: 0; font-size: 15px; }
.resv-kv dt, .resv-kv dd { padding: 8px 0; border-top: 1px solid #f0f0f0; }
.resv-kv dt:first-of-type, .resv-kv dd:first-of-type { border-top: 0; }
.resv-kv dt { color: #555; font-weight: 600; }
.resv-kv dd { margin: 0; color: #111; font-weight: 800; overflow-wrap: anywhere; }
.resv-kv dd small { margin-left: 4px; font-weight: 600; color: #555; }
.resv-kv a { color: var(--accent); }
.resv-call { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; background: #111827; color: #fff; font-weight: 800; text-decoration: none; }
.resv-state { min-height: 50px; border: 0; border-radius: 12px; color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.resv-state.is-confirmed { background: #10b981; color: #fff; }
.resv-state.is-visited { background: #4b5563; color: #fff; }
.resv-state.is-cancelled, .resv-state.is-declined { background: #dc2626; color: #fff; }
.resv-state.is-no_show { background: #9f1239; color: #fff; }
.resv-state:hover { filter: brightness(1.08); }
.resv-state.is-on, .resv-state.is-on.is-confirmed, .resv-state.is-on.is-visited, .resv-state.is-on.is-cancelled, .resv-state.is-on.is-no_show { background: #fff; color: #111; border: 2px solid #111; cursor: default; filter: none; }
.resv-btn { min-height: 46px; border: 0; border-radius: 12px; background: #10b981; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.resv-btn.is-warn { background: #f59e0b; }
.resv-note { margin: 0; font-size: 13px; color: #555; line-height: 1.6; }
.resv-box textarea, .resv-box input { font-size: 15px; }
/*
| 管理画面の見た目の手直し（2026-09-22 YUTAKAさん「殺風景」「左のメニューの枠も同じ色で分かりにくい」「どのページを編集しているか分かりにくい」）
| - 左のメニューは濃い色の帯にして、本文（白いカード）とはっきり分ける。いま開いている画面は、お店の色で塗る
| - 本文の上に「グループ › 画面」の色の帯（アイコンつき）をいつも出す
| - 地の色を少し濃くして、白いカード（panel）と見出しを浮かせる。見出しの左にお店の色の線
*/
:root { --ground: #f3f1ee; --side: #22202a; --side-ink: #e9e6ee; --side-muted: #9a95a6; }
body { background: var(--ground); }
.admin-top { background: #fff; box-shadow: 0 1px 0 var(--line), 0 2px 10px rgba(0,0,0,.04); }
.panel, .card { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05); }
.panel > h2 { position: relative; padding-left: 12px; }
.panel > h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--accent); }
.page-head h1 { font-size: 24px; }
.page-where { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--accent); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 28%, transparent); }
.page-where-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); }
.page-where-icon .ic { width: 24px; height: 24px; color: #fff; }
.page-where-path { display: grid; line-height: 1.3; min-width: 0; }
.page-where-path small { font-size: 12px; color: #fff; opacity: 1; letter-spacing: .06em; }
.page-where-path strong { font-size: 18px; }
.page-where-hint { margin-left: auto; font-size: 13px; opacity: .9; text-align: right; }
@media (max-width: 640px) { .page-where-hint { display: none; } .page-where { padding: 10px 12px; } .page-where-path strong { font-size: 16px; } }
.admin-side-shop { display: none; }
@media (min-width: 1024px) {
  .admin-side { background: var(--side); border-right: 0; padding-top: 12px; }
  .admin-side-shop { display: grid !important; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 0 !important; margin: 0 0 10px; padding: 10px 12px !important; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff !important; }
  .admin-side-shop span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; font-family: "Shippori Mincho", serif; font-size: 18px; }
  .admin-side-shop strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-side-shop small { font-size: 11px; color: var(--side-muted); }
  .admin-side-group { color: var(--side-muted); font-size: 11px; letter-spacing: .12em; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
  .admin-side-group:first-of-type { border-top: 0; padding-top: 0; }
  .admin-side a { color: var(--side-ink); }
  .admin-side a .ic { color: var(--side-muted); }
  .admin-side a:hover { background: rgba(255,255,255,.08); }
  .admin-side a[aria-current] { position: relative; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent); }
  .admin-side a[aria-current] .ic { color: #fff; }
  .admin-side a[aria-current]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: #fff; }
  .admin-side .count { background: #e11d48; color: #fff; }
}
/* かんたんアクセス解析（2026-09-22）。グラフは1色（お店の色）の棒。数は表とツールチップで */
.an-periods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.an-periods a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.an-periods a[aria-current=page] { background: var(--accent); border-color: var(--accent); color: #fff; }
.an-range { margin-left: auto; color: var(--muted); font-size: 14px; }
.an-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .an-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.an-tile { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05); }
.an-tile span { font-size: 13px; color: var(--muted); font-weight: 700; }
.an-tile strong { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.an-tile strong small { margin-left: 2px; font-size: 13px; color: var(--muted); }
.an-tile > small { font-size: 12px; color: var(--muted); }
.an-tile.is-main { border-top: 4px solid var(--accent); }
.an-cols { display: flex; align-items: flex-end; gap: 2px; height: 200px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.an-cols.is-small { height: 130px; }
.an-col { position: relative; flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.an-col-bar { width: min(100%, 28px); min-height: 1px; border-radius: 4px 4px 0 0; background: var(--accent); }
.an-col:hover .an-col-bar { filter: brightness(1.15); }
.an-col small { position: absolute; bottom: -20px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.an-cols + .an-table-toggle, .an-cols + .hint { margin-top: 22px; }
.an-table-toggle > summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.an-grid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.an-rank { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.an-rank li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.an-rank-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-rank-bar { height: 10px; border-radius: 5px; background: var(--gray-soft); overflow: hidden; }
.an-rank-bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.an-rank strong { font-variant-numeric: tabular-nums; }
.an-rank small { grid-column: 1 / -1; margin-top: -4px; font-size: 12px; color: var(--muted); }
.seen-card { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05); }
.seen-card > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-right: auto; }
.seen-card > span .ic { color: var(--accent); }
.seen-card strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.seen-card strong small { margin: 0 4px; font-size: 12px; color: var(--muted); font-weight: 700; }/* トップのイベント画像の管理（2026-09-23） */
.slide-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.slide-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.slide-list li.is-off { opacity: .6; }
.slide-list[data-photo-sort] li { cursor: grab; }
.slide-list[data-photo-sort] li:active { cursor: grabbing; }
.slide-list[data-photo-sort] img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.slide-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #eee; }
.slide-info { display: grid; gap: 2px; min-width: 0; }
.slide-info small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.slide-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (min-width: 700px) { .slide-list li { grid-template-columns: 140px minmax(0, 1fr) auto; } .slide-actions { grid-column: auto; justify-content: flex-end; } }

.slide-edit { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 6px; }
.slide-edit > summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--accent); min-height: 40px; display: flex; align-items: center; }
.slide-edit[open] > summary { margin-bottom: 4px; }
.slide-edit form { margin-top: 4px; }

.tx-red { color: #d2323f; }
.tx-pink { color: #e04f96; }
.tx-orange { color: #d9741f; }
.tx-green { color: #2a9159; }
.tx-blue { color: #2a72c9; }
.tx-purple { color: #8250c8; }
.compose-chips.is-color button { font-weight: 700; font-size: 15px; }
.compose-chips.is-color button.is-bold { font-weight: 800; color: var(--ink); }
.slide-kind { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; vertical-align: 2px; }
/* 入力した本文が、サイトでどう見えるか（2026-09-23 YUTAKAさん「どんな色なのか・雰囲気が分からない」） */
.compose-preview { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.compose-preview-label { display: block; padding: 6px 12px; background: var(--ground); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.compose-preview-body { padding: 12px; min-height: 64px; max-height: 320px; overflow-y: auto; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.compose-preview-empty { color: var(--muted); font-size: 14px; }
.compose-preview-mark { display: inline-block; margin: 0 2px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
/* 色がついたまま書ける入力欄（2026-09-23 YUTAKAさん「直接この画面で編集できないんですか？」）。
   見た目はふつうの入力欄と同じ。中の文字だけが、サイトと同じ色・太さで出る */
.compose [hidden] { display: none !important; }
.compose-rich {
  min-height: 190px; max-height: 60vh; overflow-y: auto; padding: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; line-height: 1.9;
  white-space: pre-wrap; overflow-wrap: anywhere; cursor: text;
}
.compose-rich:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.compose-rich:empty::before { content: attr(data-placeholder); color: var(--muted); }
.compose-mark {
  display: inline-block; margin: 0 2px; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700;
  user-select: none;
}
.compose-count { margin: 0; text-align: right; font-size: 13px; color: var(--muted); }
.compose-count.is-over { color: #c0392b; font-weight: 700; }
.compose-chips.is-color button.is-plain { color: var(--muted); }
/* 文字の大きさ（2026-09-23 YUTAKAさん「文字の大きさを変えたりする機能もできますか？」） */
.sz-sm { font-size: .85em; }
.sz-lg { font-size: 1.25em; }
.sz-xl { font-size: 1.55em; font-weight: 700; line-height: 1.4; }
.compose-chips.is-size button { font-weight: 700; }
.compose-chips.is-size button.is-plain { color: var(--muted); font-weight: 400; }

/* トップの並び（2026-09-25）。写真の無い一覧なので、1列のまま余白をそろえる */
.slide-list.is-plain li { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .slide-list.is-plain li { grid-template-columns: minmax(0, 1fr) auto; } }

/*
| ========================================================================
| 2026-09-27 管理画面の作り直し（YUTAKAさん「見にくい・分かりづらい」
| 「小学生でも操作できるように」「淡色にならないように」「A案ベースで、
| グラデーションは使わない」）。
| ねらい: ①何の画面か、開いた瞬間に分かる ②押せるものが押せると分かる
| ③文字と余白を大きく、色はべた塗りではっきり
| ========================================================================
*/

/* 画面のいちばん上の帯。何の画面かを、大きく言い切る */
.page-where-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.2); }
.page-where-icon .ic { width: 26px; height: 26px; }
.page-where-path strong { font-size: 21px; font-weight: 800; letter-spacing: .01em; }
.page-where-path small { font-size: 12px; font-weight: 700; opacity: 1; }
.page-where-hint { font-size: 13px; font-weight: 600; opacity: .95; }
@media (max-width: 640px) {
  .page-where { padding: 14px 14px; }
  .page-where-path strong { font-size: 18px; }
}

/* この画面ですること（黄色いふせん） */
.what-todo {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  margin: 0; padding: 14px 16px; border: 2px solid #ffd270; border-radius: 14px; background: #fff7e0;
  font-size: 14px; line-height: 1.85; color: #5d4a1c;
}
.what-todo::before { content: "💡"; font-size: 20px; line-height: 1.2; }
.what-todo b { display: block; font-size: 15px; margin-bottom: 2px; color: #4a3a12; }

/* 見出しと、まとまり */
.page-head h1 { font-size: 22px; font-weight: 800; }
.page-head .lead { font-size: 14px; line-height: 1.85; }
.panel { border: 2px solid var(--line); border-radius: 16px; }
.panel > h2 { font-size: 18px; font-weight: 800; }

/* 入力するところは、大きく・はっきり */
.admin-body label { font-size: 15px; font-weight: 800; }
.admin-body input[type="text"], .admin-body input[type="url"], .admin-body input[type="tel"],
.admin-body input[type="email"], .admin-body input[type="number"], .admin-body input[type="password"],
.admin-body input[type="date"], .admin-body input[type="time"], .admin-body input[type="datetime-local"],
.admin-body select, .admin-body textarea {
  border: 2px solid var(--line); border-radius: 12px; font-size: 16px;
}
.admin-body input[type="text"], .admin-body input[type="url"], .admin-body input[type="tel"],
.admin-body input[type="email"], .admin-body input[type="number"], .admin-body input[type="password"],
.admin-body select { min-height: 48px; }
.admin-body input:focus, .admin-body select:focus, .admin-body textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, #fff); outline-offset: 1px; border-color: var(--accent);
}
.admin-body .hint { font-size: 13px; font-weight: 500; line-height: 1.8; }

/* ボタンは、べた塗りで大きく */
.admin-body .button-primary { border-radius: 12px; font-size: 16px; font-weight: 800; box-shadow: none; }
.admin-body .button-secondary { border: 1px solid var(--accent-line); border-radius: 12px; font-weight: 800; }
.admin-body .button-primary.is-small, .admin-body .button-secondary.is-small { font-size: 14px; border-radius: 10px; }
.admin-body .save-bar .button-primary { min-height: 56px; font-size: 17px; }

/* 出している・出していない が、ひと目で分かるように */
.status { border-radius: 999px; font-weight: 800; padding: 4px 12px; }
.status.is-published { background: #e6f7ec; color: #14663a; border: 2px solid #9fdcb8; }
.status.is-hidden, .status.is-draft { background: #f1eff3; color: #5f5460; border: 2px solid #ddd7e0; }
/*
| トップページを作る（2026-09-27）。部品カードの中で、見出し・件数・文章まで直せる。
| つかんで動かす・出す/出さない・設定 が、ひとつのカードにまとまっている
*/
.parts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.parts-list > li { border: 2px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.parts-list > li.is-off { background: #faf9fb; border-style: dashed; }
.parts-list > li.is-off .part-name strong { color: var(--muted); }
.part-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.part-grip { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 16px; cursor: grab; }
.part-no { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.part-name { flex: 1; min-width: 0; }
.part-name strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.4; }
.part-name small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.part-switch { flex: none; margin: 0; }
/*
   出す／出さないの切り替え。2026-09-27 YUTAKAさん「この位置が一番ベストですか？」→
   位置（名前のとなり）はそのままで、「札」ではなく「スイッチ」の形にした。
   丸い印だけだと、ただの札に見えて押せると気づきにくいため
*/
.switch-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; cursor: pointer;
  border: 1px solid #ddd7e0; border-radius: 999px; background: #f1eff3; color: #5f5460; font-size: 14px; font-weight: 800;
}
.switch-button i { position: relative; flex: none; display: block; width: 38px; height: 22px; border-radius: 999px; background: #c8c1cd; }
.switch-button i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
@media (prefers-reduced-motion: no-preference) { .switch-button i::after { transition: left .15s ease; } }
.switch-button.is-on { border-color: #9fdcb8; background: #e6f7ec; color: #14663a; }
.switch-button.is-on i { background: #23a35c; }
.switch-button.is-on i::after { left: 19px; }
.part-moves { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.part-moves form { margin: 0; }
.part-settings { border-top: 2px dashed var(--line); }
.part-settings > summary {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: var(--accent); list-style: none;
}
.part-settings > summary::-webkit-details-marker { display: none; }
.part-settings > summary::after { content: "▾"; margin-left: auto; }
.part-settings[open] > summary::after { content: "▴"; }
.part-settings > form { padding: 4px 16px 18px; }
.count-field { border: 0; padding: 0; margin: 0; }
.count-field legend { font-size: 15px; font-weight: 800; padding: 0; }
.count-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.count-row input[type="number"] { flex: none; width: 92px; text-align: center; font-size: 19px; font-weight: 800; }
.count-row > span { font-size: 15px; font-weight: 700; }
.count-row .check { margin-left: 4px; white-space: nowrap; }

/*
| 2026-09-27（2回目）YUTAKAさん「今どの項目をしているか分かるように」
| 「太文字が太すぎる・多すぎる」
| ①いまの画面の名前の帯を、スクロールしても上に貼りつけておく
| ②左メニューの「いま開いているところ」をもっとはっきり
| ③太字は見出しと数字だけにして、ふつうの文字を増やす
*/

/* ① 画面の名前は、下へスクロールしても見えたまま */
.page-where { position: sticky; top: 60px; z-index: 20; }
@media (min-width: 1024px) { .page-where { top: 68px; } }
@media (prefers-reduced-motion: no-preference) { .page-where { transition: box-shadow .2s ease; } }

/* ② いま開いているところ（左メニュー） */
@media (min-width: 1024px) {
  .admin-side a { opacity: .82; }
  .admin-side a[aria-current] { opacity: 1; font-weight: 700; }
  .admin-side a[aria-current] .ic { color: #fff; }
  .admin-side a[aria-current]::after { content: "●"; margin-left: auto; font-size: 9px; opacity: .8; }
}
.admin-tabs a[aria-current] { font-weight: 700; }
.admin-tabs a[aria-current]::before { content: ""; position: absolute; left: 50%; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transform: translateX(-50%); }

/* ③ 太字を減らす。太字は「見出し」と「数字」だけにする */
.admin-body label { font-weight: 600; }
.admin-body .button-primary { font-weight: 700; }
.admin-body .button-secondary { font-weight: 600; }
.page-where-path strong { font-weight: 700; }
/* 上の小さい文字（いま居る場所）が読みにくかったので、うすくしない（2026-09-27） */
.page-where-path small { font-weight: 600; opacity: 1; }
.page-head h1 { font-weight: 700; }
.panel > h2 { font-weight: 700; }
.what-todo b { font-weight: 700; }
.part-name strong { font-weight: 700; }
.part-no { font-weight: 700; }
.switch-button { font-weight: 600; }
.status { font-weight: 600; }
.part-settings > summary { font-weight: 600; }
.count-field legend { font-weight: 600; }
.count-row > span { font-weight: 500; }
.count-row input[type="number"] { font-weight: 700; }
.sort-tip strong { font-weight: 600; }

/*
| 小窓で編集する（2026-09-27 YUTAKAさん「分かりやすいボタンを付けて、ポップアップで編集画面が出るように」）。
| ボタンは、押せると分かる枠つき。小窓はスマホでは下から出る大きな紙、パソコンでは真ん中のカード
*/
.part-edit { padding: 0 16px 14px; }
.edit-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px;
  padding: 0 18px; cursor: pointer; border: 1px solid var(--accent); border-radius: 12px; text-decoration: none;
  background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 700;
}
.edit-button .ic { width: 20px; height: 20px; }
.edit-button:hover { background: var(--accent); color: #fff; }
.edit-button:hover .ic { color: #fff; }
.edit-button:active { transform: translateY(1px); }
@media (min-width: 700px) { .edit-button { width: auto; min-width: 260px; } }

/* 小窓そのもの */
.admin-dialog { width: min(680px, 100%); max-width: 100%; max-height: 92vh; padding: 0; border: 0; border-radius: 18px 18px 0 0; background: var(--surface); color: var(--ink); overflow: hidden; }
@media (min-width: 700px) { .admin-dialog { border-radius: 18px; max-height: 88vh; } }
.admin-dialog::backdrop { background: rgba(30, 24, 46, .55); }
.admin-dialog[open] { display: flex; flex-direction: column; margin: auto auto 0; }
@media (min-width: 700px) { .admin-dialog[open] { margin: auto; } }
.dialog-head {
  display: flex; align-items: center; gap: 12px; flex: none; padding: 14px 16px;
  background: var(--accent); color: #fff;
}
.dialog-head strong { font-size: 17px; font-weight: 700; }
.dialog-x { margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 17px; cursor: pointer; }
.dialog-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.dialog-foot { position: sticky; bottom: -16px; display: flex; gap: 10px; padding: 12px 0 0; margin-top: 4px; background: var(--surface); border-top: 2px solid var(--line); }
.dialog-foot .button-primary { flex: 1; min-height: 52px; }
.dialog-foot .button-secondary { flex: none; min-height: 52px; }
/* JSが動かないときは、ふつうの箱として出す（入力・保存はできる） */
.no-js .admin-dialog { display: block; border: 2px solid var(--line); border-radius: 0 0 14px 14px; }

/* 「？ どこが変わる？」と、トップページの見取り図（2026-09-27） */
.part-edit { display: flex; align-items: center; gap: 10px; }
.part-edit .edit-button { flex: 1; }
@media (min-width: 700px) { .part-edit .edit-button { flex: 0 0 260px; } }
.where-button {
  flex: none; width: 50px; height: 50px; border: 1px solid var(--accent-line); border-radius: 12px;
  background: #fff; color: var(--accent); font-size: 20px; font-weight: 700; cursor: pointer;
}
.where-button:hover { background: var(--accent-soft); }
.where-lead { margin: 0 0 12px; font-size: 14px; line-height: 1.8; }
.home-map { display: grid; gap: 3px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--ground); margin-bottom: 4px; }
.home-map span { display: block; padding: 6px 10px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.home-map-top, .home-map-foot { font-size: 12px !important; background: #f4f2f6 !important; color: #8b8391 !important; }
.home-map-row.is-current {
  background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important;
  font-weight: 700; box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.admin-dialog.is-where { width: min(420px, 100%); }
.full-button { display: flex; width: 100%; justify-content: center; }

/* 見出しの右の「？」（2026-09-27。どの画面でも使える） */
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-head h2 { margin: 0; }
.panel-head .where-button { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; margin-left: auto; }
@media (min-width: 700px) { .panel-head .where-button { margin-left: 0; } }

/* 「実際のページで見る」は、いつも下に見えているようにする（2026-09-27） */
.dialog-foot.is-single { justify-content: stretch; }
.dialog-foot.is-single .full-button { flex: 1; min-height: 52px; }
.admin-dialog.is-where .dialog-foot { position: static; flex: none; padding: 12px 16px; margin: 0; background: var(--surface); }
.where-lead { line-height: 1.85; }
.home-map-row.is-current::after { content: " ← ここ"; font-weight: 700; }

/* 動かしたカードを、少しのあいだ光らせる（2026-09-27） */
.parts-list > li.just-moved { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (prefers-reduced-motion: no-preference) {
  .parts-list > li { transition: border-color .2s ease, box-shadow .2s ease; }
}
/* 画面の名前の帯に出す「？ どこが変わる？」（2026-09-27。どの画面でも出る） */
.page-where .where-button {
  flex: none; margin-left: auto; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .18);
  color: #fff; font-size: 17px; font-weight: 700; cursor: pointer;
}
.page-where .where-button:hover { background: rgba(255, 255, 255, .3); }
.page-where-hint + .where-button { margin-left: 12px; }
/* 一覧の中のスイッチ（写メ日記・お知らせ）。行ごとうすくする（2026-09-27） */
.data-table .part-switch { margin: 0; }
.data-table tr.is-off td { color: var(--muted); }
/* 相互リンクのカード（2026-09-27）。バナーの見本を、名前の左に小さく出す */
.parts-list .link-preview { flex: none; width: 92px; min-height: 40px; }
.parts-list .link-preview img { max-width: 92px; max-height: 46px; }
.parts-list .part-name small { word-break: break-all; }
@media (max-width: 560px) { .parts-list .link-preview { display: none; } }

/*
   キャスト一覧（2026-09-27 YUTAKAさん「写真付きで、一列ではなく4（3）列ぐらいで」）。
   写真を押すと編集。並べ替えは、上の「⠿」のところをつかんで動かす
*/
.cast-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cast-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cast-grid > li { display: grid; align-content: start; gap: 8px; padding: 8px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.cast-grid > li.is-off { background: #faf9fb; border-style: dashed; }
.cast-grid > li.is-off .cast-shot img { filter: grayscale(1); opacity: .55; }
.cast-grab { display: flex; align-items: center; gap: 8px; cursor: grab; }
.cast-grab .part-grip { width: 28px; height: 28px; font-size: 14px; }
.cast-grab .part-no { width: 26px; height: 26px; font-size: 13px; }
.cast-shot { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--ground); text-decoration: none; }
.cast-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cast-shot-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.cast-shot-edit {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px; background: rgba(28, 22, 34, .7); color: #fff; font-size: 13px; font-weight: 600;
}
.cast-shot-edit .ic { width: 16px; height: 16px; }
.cast-shot:hover .cast-shot-edit { background: var(--accent); }
.cast-card-name strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.4; }
.cast-card-name small { display: block; min-height: 1.2em; font-size: 12px; color: var(--muted); }
.cast-grid .part-switch { margin: 0; }
.cast-grid .switch-button { width: 100%; justify-content: center; }
.cast-grid .part-moves { display: flex; gap: 8px; padding: 0; }
.cast-grid .part-moves form { flex: 1; }
.cast-grid .part-moves button { width: 100%; }

/* 出勤の「ひとこと」（2026-09-27）。時間の下に、目立ちすぎない欄で */
.shift-note { grid-column: 2; width: 100%; min-width: 0; padding: 7px 10px; font-size: 14px; }
@container (min-width: 880px) { .shift-note { grid-column: auto; padding: 6px 8px; font-size: 13px; } }
/*
   出勤の入力欄は数が多いので、小さめにまとめる
   （2026-09-27 YUTAKAさん「もう少し入力枠の上下幅を狭くして、文字サイズも調整」）
*/
.shift-week input[type="time"], .shift-week select, .shift-week .shift-note {
  min-height: 0; padding: 5px 8px; font-size: 14px; border-width: 1px; border-radius: 9px;
}
.shift-week .shift-note { font-size: 13px; }
.shift-week .shift-clear { height: 26px; font-size: 13px; }
.shift-week label.check { min-height: 26px; }
.shift-day { gap: 5px 10px; padding: 9px 14px; }
@container (min-width: 880px) {
  .shift-week input[type="time"] { padding: 5px 2px; font-size: 13px; }
  .shift-week select { padding: 4px 2px 4px 6px; font-size: 12px; }
  .shift-week .shift-note { padding: 5px 6px; font-size: 12px; }
  .shift-day { gap: 4px; padding: 9px 6px; }
  .shift-extra label.check { min-height: 24px; font-size: 11px; }
}

/*
   つかんで持ち上げたときの「影」は、1枚だけを元の大きさで見せる（2026-09-27 YUTAKAさん
   「入れ替えるときが添付画像のようになる」）。
   .cast-grid / .parts-list の列の決まりが後から効いて、影が列幅に押しつぶされていた
*/
ol.sort-ghost, ul.sort-ghost {
  display: block; grid-template-columns: none; gap: 0; padding: 0; margin: 0; border: 0; background: none;
}
ol.sort-ghost > li, ul.sort-ghost > li { width: 100%; margin: 0; }

/* スライダー・プレイスタイルの「表示中／非表示」スイッチ（2026-09-27） */
.slide-list .part-switch { margin: 0; justify-self: start; }
@media (min-width: 700px) { .slide-list li { grid-template-columns: 140px minmax(0, 1fr) auto auto; } .slide-list .part-switch { justify-self: end; } }
.sort-ghost .part-switch { display: none; }
/* 「編集する」「削除」もボタンにして、1列に並べる（2026-09-27 YUTAKAさん） */
.slide-moves { gap: 8px; }
.slide-moves form { margin: 0; }
.admin-body .button-secondary.is-danger { border-color: #f0b6c2; color: #a3123a; }
.admin-body .button-secondary.is-danger:hover { background: #fdeef2; }
.sort-ghost .admin-dialog { display: none; }
/*
   店舗設定の入口（2026-09-27 YUTAKAさん「中身が混在していて分かりずらい」）。
   直したいものを選んでから開く。大きくて押しやすい行にする
*/
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-list a {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.hub-list a:hover { border-color: var(--accent); background: var(--accent-soft); }
.hub-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.hub-list a:hover .hub-icon { background: var(--accent); color: #fff; }
.hub-icon .ic { width: 24px; height: 24px; }
.hub-words { display: grid; gap: 2px; min-width: 0; }
.hub-words strong { font-size: 17px; font-weight: 700; line-height: 1.4; }
.hub-words small { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.hub-arrow { margin-left: auto; color: var(--accent); font-size: 22px; }
.crumb { margin: 0 0 4px; font-size: 13px; }
.crumb a { color: var(--accent); }
.hub-next { margin-top: 28px; padding-top: 16px; border-top: 2px dashed var(--line); }
.hub-next > p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hub-next ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/*
   編集画面の作り（2026-09-27 YUTAKAさん「どの項目も、編集画面が箇条書きっぽくて
   分かりにくい」「区切り線などで、見やすくわかりやすく」）。
   ①まとまりごとに見出しと区切り線　②1つの入力を1行のかたまりに見せる
*/
.setting-group + .setting-group { margin-top: 6px; padding-top: 22px; border-top: 2px solid var(--line); }
.setting-group { display: grid; gap: 14px; }
.setting-group > h3 {
  position: relative; margin: 0; padding-left: 12px;
  font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .02em;
}
.setting-group > h3::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 2px; background: var(--accent);
}

/* 1つの入力を、囲いのある「行」に見せる。箇条書きに見えないように */
.admin-body .panel > label,
.admin-body .setting-group > label,
.admin-body .setting-group > .grid-2 > label,
.admin-body .panel > .grid-2 > label {
  display: grid; gap: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--ground);
}
.admin-body .panel > label.check,
.admin-body .setting-group > label.check { display: flex; align-items: flex-start; gap: 10px; }
.admin-body .setting-group > label + .hint,
.admin-body .panel > label + .hint,
.admin-body .setting-group > label.check + .hint {
  margin: -8px 2px 0; padding-left: 14px; border-left: 3px solid var(--accent-line);
}
.admin-body .setting-group > label input[type="text"],
.admin-body .setting-group > label input[type="url"],
.admin-body .setting-group > label input[type="tel"],
.admin-body .setting-group > label input[type="email"],
.admin-body .setting-group > label input[type="number"],
.admin-body .setting-group > label select,
.admin-body .setting-group > label textarea { background: #fff; }
.admin-body .setting-group > label:focus-within { border-color: var(--accent); background: var(--accent-soft); }

/* 番号だけの入力欄に、番号の札を付ける（2026-09-27。ただの箱が並ぶと分かりにくいため） */
.slots { display: grid; gap: 8px; }
@media (min-width: 760px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .slots.is-tight { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.slot { display: flex; align-items: center; gap: 8px; }
.slot > span {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}
.slot input { flex: 1; min-width: 0; }

/*
   スマホでは、料金・延長料金の表も1行ずつのカードにする（2026-09-27）。
   横にはみ出していて「補足」「目的」が見えず、表の上では縦にスクロールもできなかった
*/
@media (max-width: 720px) {
  .table-wrap:has(.course-table) { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .course-table, .course-table tbody, .course-table tr, .course-table td { display: block; width: 100%; }
  .course-table { min-width: 0; }
  .course-table thead { display: none; }
  .course-table tr {
    margin-bottom: 10px; padding: 6px 14px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  /* 項目名は入力欄の上に置く（横に並べると、長い項目名が3行に折れて読みにくい） */
  .course-table td { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .course-table td:last-child { border-bottom: 0; }
  .course-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 700; }
  .course-table td[data-label=""]::before { content: none; }
  .course-table td > input, .course-table td > .purpose-checks { min-width: 0; }
}

/*
   スマホでは、カードの上の行を折り返す（2026-09-27）。
   名前・スイッチ・番号を1行に詰めると、長い名前が4行に折れて読めなくなるため
*/
@media (max-width: 560px) {
  .part-bar { flex-wrap: wrap; row-gap: 8px; }
  .part-bar .part-name { order: 3; flex: 1 1 100%; }
  .part-bar .part-switch { margin-left: auto; }
  .part-bar > .switch-button { margin-left: auto; }

  /* スライダー・プレイスタイルは、画像の下に名前とボタンを並べる */
  .slide-list li { grid-template-columns: minmax(0, 1fr); }
  .slide-list img { max-height: 200px; object-fit: cover; }
  .slide-list .part-switch { justify-self: stretch; }
  .slide-list .switch-button { width: 100%; justify-content: center; }
  .slide-moves { display: grid; grid-template-columns: 1fr 1fr; }
  .slide-moves form { margin: 0; }
  .slide-moves button { width: 100%; }
}
/* アクセス解析の作り直し（2026-09-30 YUTAKAさん「年齢層や参照元はわかりやすく。次の戦略へつながるデータを」） */
@media (min-width: 900px) { .an-tiles.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.an-tile.is-accent { border-top: 4px solid var(--ok); }
.an-change { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--gray-soft); color: var(--gray); }
.an-change.is-up { background: var(--ok-soft); color: var(--ok); }
.an-change.is-down { background: var(--error-soft); color: var(--error); }
.an-note { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.an-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 4px -2px 0; scrollbar-width: thin; }
.an-tabs a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; background: #fff; border: 2px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.an-tabs a[aria-current=page] { background: var(--ink); border-color: var(--ink); color: #fff; }
.an-insights { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.an-insights li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--info-soft); }
.an-insights li.is-up { background: var(--ok-soft); }
.an-insights li.is-down { background: var(--warn-soft); }
.an-insight-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--info); color: #fff; font-weight: 700; }
.an-insights li.is-up .an-insight-mark { background: var(--ok); }
.an-insights li.is-down .an-insight-mark { background: var(--warn); }
.an-insights strong { display: block; font-size: 16px; line-height: 1.5; }
.an-insights p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.7; }
.an-insights a { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent); }
.an-funnel { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.an-funnel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.an-funnel-label { font-size: 14px; font-weight: 700; }
.an-funnel li strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.an-funnel-bar { grid-column: 1 / -1; height: 14px; border-radius: 7px; background: var(--gray-soft); overflow: hidden; }
.an-funnel-bar i { display: block; height: 100%; border-radius: 7px; background: var(--accent); }
.an-funnel li small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.an-more { font-size: 14px; font-weight: 700; color: var(--accent); }
.an-col-tap { position: absolute; top: -2px; z-index: 1; min-width: 18px; padding: 0 3px; border-radius: 9px; background: var(--ok); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.an-col-tap.is-rate { background: var(--info); }
.an-cols { position: relative; padding-top: 22px; }
.an-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 22px 0 0; font-size: 12.5px; color: var(--muted); }
.an-legend .is-bar { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.an-legend .is-tap { display: inline-block; min-width: 18px; padding: 0 3px; border-radius: 9px; background: var(--ok); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.an-legend .is-tap.is-rate { background: var(--info); }
.an-cols + .an-legend + .an-table-toggle { margin-top: 8px; }
/* 来た道の色（分類ごとに決まった色。お店の色に左右されない） */
.an-cat-search { background: #2f6fb3; } .an-cat-ai { background: #7a4fc4; } .an-cat-sns { background: #d2477a; }
.an-cat-media { background: #e0902a; } .an-cat-other { background: #8b8f96; } .an-cat-direct { background: #2f9a7a; }
.an-stack { display: flex; height: 22px; border-radius: 11px; overflow: hidden; background: var(--gray-soft); }
.an-stack i { display: block; height: 100%; min-width: 3px; }
.an-stack-legend { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; }
@media (min-width: 700px) { .an-stack-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-stack-legend li { display: flex; align-items: baseline; gap: 6px; }
.an-stack-legend li span { flex: none; width: 12px; height: 12px; border-radius: 3px; transform: translateY(1px); }
.an-stack-legend small { color: var(--muted); }
.an-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.an-table-wrap { overflow-x: auto; }
.an-source-table th[scope=row], .an-cast-table th[scope=row] { font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.an-rate { min-width: 150px; }
.an-rate-bar { display: inline-block; width: 70px; height: 8px; margin-right: 8px; border-radius: 4px; background: var(--gray-soft); overflow: hidden; vertical-align: middle; }
.an-rate-bar i { display: block; height: 100%; background: var(--ok); }
.an-rate small { display: block; font-size: 11.5px; color: var(--muted); }
.an-cast-table td small { display: block; font-size: 11.5px; color: var(--muted); }
.an-flag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.an-flag.is-warn { background: var(--warn-soft); color: var(--warn); }
.an-age-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .an-age-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.an-age { padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; }
.an-age h3 { margin: 0; font-size: 16px; }
.an-age .hint { margin: 2px 0 10px; }
.an-age .an-rank li { grid-template-columns: 5.5em minmax(0, 1fr) auto; }
.an-band-list { display: grid; gap: 10px; }
@media (min-width: 700px) { .an-band-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.an-band-list > div { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.an-band-list ol { margin: 6px 0 0; padding-left: 1.3em; font-size: 14px; }
.an-band-list small { margin-left: 6px; color: var(--muted); font-size: 12px; }
.an-tipbox { padding: 16px 18px; border-radius: 14px; background: #fff8e6; border: 2px solid #f0d79a; }
.an-tipbox > strong { font-size: 15px; }
.an-tipbox ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 14px; line-height: 1.75; }
.an-heat { display: grid; gap: 3px; overflow-x: auto; }
.an-heat-row { display: grid; grid-template-columns: 2em repeat(8, minmax(34px, 1fr)); gap: 3px; }
.an-heat-row > span { display: grid; place-items: center; min-height: 32px; font-size: 12px; }
.an-heat-row.is-head > span { font-size: 11px; color: var(--muted); min-height: 20px; }
.an-heat-row [role=rowheader] { font-weight: 700; }
.an-heat-cell { border-radius: 6px; background: color-mix(in srgb, var(--accent) calc(var(--heat) * 85%), #f4f2ef); color: var(--ink); font-variant-numeric: tabular-nums; }
.an-heat-cell.is-dark { color: #fff; font-weight: 700; }

/* 推しメッセージ（マイページ。2026-10-01） */
.fan-badge { display: inline-block; padding: 1px 10px; border-radius: 999px; background: #f2b632; color: #2a2230; font-size: 13px; font-weight: 700; }
.fan-badge.is-ok { background: #1e7a55; color: #fff; }
.fan-badge.is-muted { background: #e4e0e8; color: #4a4450; }
.fan-reactions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fan-reactions span { padding: 4px 12px; border-radius: 999px; background: #f6f3f8; font-size: 14px; }
.fan-reactions b { margin-left: 4px; font-size: 16px; }
.fan-sent h3 { margin: 0; font-size: 18px; }
.big-action.is-second { margin-top: 10px; background: #fff; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.big-action.is-second small { color: #4a4450; }
.diary-likes { margin-left: 8px; color: #b0356a; font-weight: 700; }
/* 料金の第1段（2026-09-30） */
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 12em); gap: 12px; }
.discount-rows { display: grid; gap: 14px; }
.discount-row { display: grid; gap: 10px; margin: 0; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.discount-row legend { padding: 0 6px; font-weight: 700; }
.discount-amount-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: 10px; }
.discount-amount-row small { display: block; font-size: 12px; color: var(--muted); }

/* 料金クラスごとの表に切り替えるボタン（2026-09-30） */
.rank-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.rank-tabs button { min-height: 48px; padding: 0 20px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.rank-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.course-table [hidden] { display: none !important; }
.rank-chip { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; }
.course-table input::placeholder { color: #8a8580; }
.portal-cast-row { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #e7e3ea; }
.portal-tag-pick { display: grid; gap: 4px; padding-left: 36px; font-size: 14px; }

/* お知らせの画像（2026-10-01） */
.photo-field .photo-pick { position: relative; }
.photo-thumb { display: block; max-width: 260px; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.photo-thumb[hidden] { display: none; }
