/*
| 店舗管理・マイページの見た目（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; }
/* 「すぐご案内」のときのひとこと（2026-11-27 30回目。App\Support\WaitNow） */
.wait-note-edit { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.wait-note-edit label { font-weight: 700; color: var(--ink); }
.wait-note-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wait-note-row input { flex: 1 1 12em; min-width: 0; }
.wait-note-form { display: grid; gap: 10px; }
.wait-note-form .hint { margin: 0; }
.wait-note-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.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; }
/* オプション設定・コスプレ設定の1行（2026-11-20 B6・B7。入力済みの行＋空の行1つ＋「追加」） */
.catalog-row { min-width: 0; }
.catalog-row-head { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.catalog-row-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.catalog-field { display: grid; gap: 4px; min-width: 0; font-size: 14px; font-weight: 700; }
.catalog-field input { width: 100%; min-width: 0; box-sizing: border-box; font-weight: 400; }
.catalog-row .catalog-who { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 700px) {
    .catalog-row-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
    .catalog-row-fields.is-option { grid-template-columns: minmax(0, 1fr) 10rem; }
    .catalog-row-fields.is-option .is-wide { grid-column: 1 / -1; }
}
.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: max-content minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line); } /* 2026-10-02 左右の余白が無く、文字がカードのふちに付いていた */
.resv-list li:first-child { border-top: 0; }
.resv-when { font-variant-numeric: tabular-nums; line-height: 1.5; }
.resv-when b { display: block; margin-bottom: 2px; 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-11-18 要望25。並び順の新機能の回で作り直すまでの小さな形） */
.seen-parts { margin-top: 8px; padding: 10px 16px; border-radius: 14px; background: #fff; }
.seen-parts summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.seen-parts ul { list-style: none; margin: 0; padding: 0; }
.seen-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #ece8e3; }
.seen-parts b { font-variant-numeric: tabular-nums; white-space: nowrap; }/* トップのイベント画像の管理（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-11-18）。だいだいの地に濃い茶の文字（明暗差 約7） */
.slide-kind.is-out { background: #fde7c8; color: #7a3d00; }
/* 入力した本文が、サイトでどう見えるか（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; }

/*
| ==== 20回目 K 共通の部品（2026-11-23 YUTAKAさん「項目名なのか入力欄なのかが見分けにくい」） ====
| 店舗管理（layouts/admin の body.is-shop-admin）だけに効かせる。マイページ・運営者の画面は今のまま。
| ①項目名は箱をやめて、濃く太い文字だけ。入力欄のすぐ上（4〜6px）
| ②入力欄は白い地に枠。21回目 1 で、ふだんは中くらいの灰色の1px（#b4bcc6）、押しているときだけお店の色の2px＋うすい輪、間違いの欄は赤の2px
| ③項目と項目のあいだは広く（22px）、項目名と自分の入力欄のあいだは狭く
| ④説明（.hint・項目名の中の small）は入力欄のすぐ下に、#4a4a4a・13〜14px
| ⑤required の入力欄の項目名に「必須」の札（濃い赤の地に白い文字）。.req のクラスも同じ形
| ⑥画像を選ぶ所は点線の大きめの箱　⑦保存の帯はどの画面でも同じ形・同じ場所（保存のボタンは右）
| 後ろにある古い決まり（.panel > label の囲い 2026-09-27 など）に勝つよう、.admin-body.is-shop-admin で始める
*/
/* 21回目 1（2026-11-23 本人「濃すぎて画面が重い」）: ふだんの枠は中くらいの灰色の1px（#b4bcc6）に軽くした */
.admin-body.is-shop-admin { --r20-field-line: #b4bcc6;--r20-label: #1a1a1a; --r20-hint: #4a4a4a; }

/* ① 項目名: 箱をやめる（チェック・ラジオの行、写真を選ぶ枠は除く） */
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):not(.diary-slot-pick),
.admin-body.is-shop-admin legend,
.admin-body.is-shop-admin .count-field legend { color: var(--r20-label); font-weight: 700; font-size: 15px; }
.admin-body.is-shop-admin .panel > label:not(.photo-pick):not(.diary-slot-pick),
.admin-body.is-shop-admin .setting-group > label,
.admin-body.is-shop-admin .setting-group > .grid-2 > label,
.admin-body.is-shop-admin .panel > .grid-2 > label {
  gap: 6px; padding: 0; border: 0; border-radius: 0; background: none;
}
.admin-body.is-shop-admin .setting-group > label:focus-within,
.admin-body.is-shop-admin .panel > label:not(.photo-pick):not(.diary-slot-pick):focus-within { background: none; }
.admin-body.is-shop-admin label:not(.check) { gap: 6px; }
.admin-body.is-shop-admin label.check { color: var(--r20-label); font-weight: 500; }

/* ② 入力欄・選ぶ欄・文を書く欄（チェックとラジオは除く） */
.admin-body.is-shop-admin :is(input:not([type]), input[type="text"], input[type="url"], input[type="tel"], input[type="email"], input[type="number"],
  input[type="password"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="search"]),
.admin-body.is-shop-admin select,
.admin-body.is-shop-admin textarea {
  border: 1px solid var(--r20-field-line); border-radius: 10px; background-color: #fff; color: var(--r20-label); font-weight: 400;
}
.admin-body.is-shop-admin :is(input, select, textarea)::placeholder { color: #6e6873; opacity: 1; }
/* 21回目 1: 押して入力しているときだけ、お店の色の2px＋うすい光の輪。
   枠は1pxのまま、内側の影で1px足して2pxに見せる（欄の大きさ・文字の位置はずれない） */
.admin-body.is-shop-admin :is(input, select, textarea):is(:focus, :focus-visible),
.admin-body.is-shop-admin .compose-rich:focus {
  border-color: var(--accent); outline: none;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
/* 間違いのある欄: 赤の2px（押しているときも赤のまま、輪も赤） */
.admin-body.is-shop-admin :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error);
}
.admin-body.is-shop-admin :is(input, select, textarea)[aria-invalid="true"]:is(:focus, :focus-visible) {
  border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error), 0 0 0 4px color-mix(in srgb, var(--error) 18%, transparent);
}
.admin-body.is-shop-admin :is(input, select, textarea):is([readonly], :disabled) { background-color: #f3f1f4; }
.admin-body.is-shop-admin .compose-rich { border: 1px solid var(--r20-field-line); background: #fff; }

/* ③ あいだ: 項目と項目は広く、項目名と自分の入力欄は狭く */
.admin-body.is-shop-admin .stack:not(.compose),
.admin-body.is-shop-admin .setting-group { gap: 22px; }
.admin-body.is-shop-admin .compose.stack { gap: 8px; }
.admin-body.is-shop-admin .setting-group > .grid-2,
.admin-body.is-shop-admin .panel > .grid-2,
.admin-body.is-shop-admin .stack > .grid-2 { gap: 22px 16px; }
/* 項目名（label for）と、その次の入力欄: 6px まで近づける（22px − 16px） */
.admin-body.is-shop-admin :is(.stack:not(.compose), .setting-group) > label:not(.check):not(.photo-pick) + :is(input, select, textarea, .time-pick) { margin-top: -16px; }
/* ④ 説明・間違いの知らせは、すぐ上の欄にくっつける（8px） */
.admin-body.is-shop-admin :is(.stack:not(.compose), .setting-group) > :is(input, select, textarea, label, .compose, .photo-pick, .grid-2, fieldset) + :is(.hint, .field-error),
.admin-body.is-shop-admin :is(.stack:not(.compose), .setting-group) > :is(.hint, .field-error) + :is(.hint, .field-error) { margin-top: -14px; }
.admin-body.is-shop-admin .setting-group > label + .hint,
.admin-body.is-shop-admin .panel > label + .hint,
.admin-body.is-shop-admin .setting-group > label.check + .hint { padding-left: 0; border-left: 0; }
.admin-body.is-shop-admin .hint,
.admin-body.is-shop-admin label small,
.admin-body.is-shop-admin legend small { color: var(--r20-hint); font-size: 13.5px; font-weight: 400; line-height: 1.7; }
.admin-body.is-shop-admin label small { display: block; }
.admin-body.is-shop-admin .field-error { font-size: 14px; }

/* ⑤ 必須の札。required の入力欄を持つ項目名に自動で付ける（サーバーの決まりは変えない）。書いてある .req も同じ形 */
.admin-body.is-shop-admin .req,
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):has(> :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea)[required])::after,
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):has(+ :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea)[required])::after {
  display: inline-flex; align-items: center; justify-self: start; padding: 1px 8px; border-radius: 6px;
  background: #b3261e; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .06em; vertical-align: 2px;
}
.admin-body.is-shop-admin .req { margin-left: 8px; }
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):has(> :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea)[required])::after,
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):has(+ :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea)[required])::after { content: "必須"; }
/* 項目名が入力欄を包んでいるとき: 札を項目名の文字のとなりに出す（入力欄・説明はその下の行） */
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):has(> :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea)[required]) {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 6px;
}
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):has(> :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea)[required])::after { order: 1; }
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):has(> :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea)[required]) > * { order: 2; flex: 1 1 100%; min-width: 0; }
.admin-body.is-shop-admin label:not(.check):not(.photo-pick):has(+ :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea)[required]) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.admin-body.is-shop-admin .audience-field legend .req { background: #b3261e; }

/* ⑥ 画像を選ぶ所: 点線の大きめの箱（入力欄とは違う物と分かる形） */
.admin-body.is-shop-admin .photo-pick {
  min-height: 96px; padding: 18px 16px; border: 2px dashed color-mix(in srgb, var(--accent) 50%, #9a94a0); border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.admin-body.is-shop-admin .photo-pick:hover { background: color-mix(in srgb, var(--accent) 12%, #fff); }
.admin-body.is-shop-admin label:not(.photo-pick):not(.diary-slot-pick) > input[type="file"],
.admin-body.is-shop-admin :is(.stack, .setting-group, .panel) > input[type="file"] {
  display: block; width: 100%; max-width: 100%; min-height: 72px; padding: 16px 14px; box-sizing: border-box;
  border: 2px dashed color-mix(in srgb, var(--accent) 50%, #9a94a0); border-radius: 14px; background: var(--accent-soft);
  color: var(--r20-label); font-size: 15px; cursor: pointer;
}
.admin-body.is-shop-admin input[type="file"]::file-selector-button {
  margin-right: 12px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.admin-body.is-shop-admin input[type="file"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }

/* ⑦ 保存の帯: どの画面でも、保存のボタンは右（スマホは帯いっぱい）。スマホの下のタブと重ならない高さに貼り付く */
.admin-body.is-shop-admin :is(.save-bar, .sticky-actions) {
  position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 10px 12px; border: 1px solid #d8d4dc; border-radius: 14px; background: rgba(255,255,255,.97);
  box-shadow: 0 -2px 18px rgba(0,0,0,.10);
}
.admin-body.is-shop-admin .save-bar > :is(span, p):first-child { margin: 0 auto 0 0; color: var(--r20-hint); font-size: 14px; }
.admin-body.is-shop-admin .save-bar > .button-secondary,
.admin-body.is-shop-admin .save-bar > a:not(.button-primary) { order: 2; }
.admin-body.is-shop-admin .save-bar > :is(.button-primary, .save-bar-buttons) { order: 3; }
.admin-body.is-shop-admin .save-bar .button-primary { min-height: 52px; padding: 0 26px; font-size: 17px; }
@media (min-width: 1024px) { .admin-body.is-shop-admin :is(.save-bar, .sticky-actions) { bottom: 12px; } }
@media (max-width: 480px) {
  .admin-body.is-shop-admin .save-bar { flex-wrap: nowrap; }
  .admin-body.is-shop-admin .save-bar:has([data-preview-open]) { flex-wrap: wrap; }
  .admin-body.is-shop-admin .save-bar > .button-primary { flex: 1 1 auto; min-width: 0; padding: 0 16px; font-size: 16px; }
  .admin-body.is-shop-admin .save-bar > .button-secondary { flex: none; padding: 0 14px; }
}

/* スマホ375: 欄が欠けない・はみ出さない */
.admin-body.is-shop-admin :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="color"]) { max-width: 100%; min-width: 0; }
.admin-body.is-shop-admin label:not(.check) { min-width: 0; }
/* ==== 20回目 K ここまで ==== */

/*
| 小窓で編集する（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-11-21）。年齢確認の画面・トップページの下を、1件ずつ切り替える */
.link-places { display: grid; gap: 8px; margin: 0 16px 12px; padding: 10px 12px; border: 2px solid var(--line, #d9d5ce); border-radius: 12px; background: #fff; }
.link-place { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.link-place-name { font-size: 15px; font-weight: 700; color: var(--ink, #1f1d24); }
.link-place .switch-button { min-height: 44px; min-width: 128px; }
@media (min-width: 760px) { .link-places { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
.link-limit-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; }
.link-limit-row input { width: 120px; }
/* 相互リンクを直す欄（2026-11-20 B11）。開くと、サイト名・リンク先・バナーの欄 */
.link-edit { padding: 0 16px 14px; }
.link-edit > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--ink, #1f1d24); }
.link-edit > form { margin-top: 8px; padding: 14px; border: 2px solid var(--line, #d9d5ce); border-radius: 10px; background: #fff; }
#link-from-code > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

/*
   キャスト一覧（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; }
/* 推しメッセージの上限と、お店の取り下げ（2026-11-22） */
.fan-limit { margin: 0; font-size: 16px; color: var(--ink, #2a2230); }
.fan-limit small { display: inline-block; margin-left: 4px; font-size: 14px; color: #4a4450; }
.notice.fan-limit.is-full { display: block; line-height: 1.7; }
.fan-limit.is-full small { margin-left: 0; color: inherit; }
.fan-limit-num { font-size: 20px; }
.fan-badge.is-down { background: #8a2020; color: #fff; }
.fan-down-reason { margin: 0; padding: 10px 12px; border-left: 4px solid #8a2020; background: #fdf3f3; color: #4a1a1a; font-size: 15px; overflow-wrap: anywhere; }
.fan-admin-row .list-row-preview, .fan-admin-row .list-row-full p { overflow-wrap: anywhere; }
.fan-admin-down { margin: 6px 0 0; font-size: 14px; color: #4a1a1a; overflow-wrap: anywhere; }
.fan-takedown-form { display: grid; gap: 8px; margin-top: 10px; }
.fan-takedown-form input[type=text] { min-height: 44px; }
.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; }
/* コースの札（2026-11-18 要望20-⑤） */
.badge-field { display: grid; gap: 6px; min-width: 9em; }
.badge-field [hidden] { display: none !important; }
/* 料金ページの形と料金表の画像（2026-11-18 要望20・③） */
.price-layout { display: grid; gap: 12px; }
.price-layout-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: 10px; }
.price-layout-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.price-layout-choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.price-layout-choice input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.price-layout-choice span { display: grid; gap: 4px; }
.price-layout-choice em { justify-self: start; font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #f0ece6; color: var(--ink); }
.price-layout-choice small { font-size: 14px; line-height: 1.6; color: var(--muted); }
.price-layout-choice small.price-layout-caution { color: #6b4a00; font-weight: 700; }
.price-images-admin { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #f7f5f2; }
.price-images-admin h4 { margin: 0; font-size: 1rem; }
.price-images-admin [hidden] { display: none !important; }
.price-images-admin .repeat-list { display: grid; gap: 10px; }
.price-image-row { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.price-image-fields { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.price-image-fields:not(:has(.price-image-thumb)) { grid-template-columns: minmax(0, 1fr); }
.price-image-thumb { width: 96px; height: auto; max-height: 160px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.price-image-inputs { display: grid; gap: 8px; min-width: 0; }
.price-image-inputs label { display: grid; gap: 4px; font-size: 14px; }
/* コースのグループの箱（2026-11-18 要望20-④）。箱＝グループ、中の行＝時間ごとの料金 */
.course-groups > .repeat-list { display: grid; gap: 18px; }
.course-group-box { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 14px 16px 16px; border: 2px solid var(--accent); border-radius: 16px; background: #fff; }
.course-group-box > .repeat-bar .repeat-label { font-size: 1rem; }
.course-group-name { font-weight: 700; }
.course-group-name .hint { display: block; font-weight: 400; }
.course-group-rows { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #f7f5f2; }
.course-group-rows > .repeat-list { display: grid; gap: 10px; }
.course-row { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.course-row-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); gap: 10px; align-items: end; }
.course-row-fields > label, .course-row-badge { display: grid; gap: 4px; min-width: 0; font-size: 14px; }
.course-row-fields > .is-wide, .course-row-badge { grid-column: 1 / -1; }
.course-row-fields [hidden] { display: none !important; }
.course-row-fields input::placeholder { color: #8a8580; }
.course-row-badge .badge-field { grid-template-columns: minmax(0, 12em) minmax(0, 1fr); }
.course-row-move { display: grid; gap: 4px; font-size: 14px; }
.course-row-move-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.course-row-move-controls select { flex: 1 1 12em; min-width: 0; }
.course-row-move [hidden], .course-group-empty[hidden] { display: none !important; }
.course-group-empty { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff4d6; color: #5a4300; font-size: 14px; font-weight: 700; }
@media (max-width: 520px) { .course-row-badge .badge-field { grid-template-columns: 1fr; } }
.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; }

/* 利用規約・プライバシーの編集（2026-10-02） */
.legal-edit-history-fields { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) { .legal-edit-history-fields { grid-template-columns: minmax(0, 1fr); } }
.legal-edit-article label small, .legal-edit-history label small, .panel label small { font-weight: 400; color: var(--muted); }

/* キャストのマイページの入口（2026-10-02 全ページ確認 2-1）。お店のロゴと「〇〇のマイページ」 */
.mypage-login { display: grid; gap: 18px; }
.login-brand { display: grid; justify-items: center; gap: 8px; text-align: center; }
.login-logo { display: block; color: var(--accent); }
.login-logo svg, .login-logo img { display: block; width: auto; height: 56px; max-width: 220px; }
.login-shop-name { font-family: "Shippori Mincho", serif; font-size: 20px; font-weight: 700; color: var(--accent); }
.login-brand h1 { margin: 4px 0 0; font-size: 22px; line-height: 1.4; }
.login-brand h1 span { display: inline-block; }
.login-greeting { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.login-door { margin: 0; }
.login-door .button-secondary { width: 100%; justify-content: center; }
.password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; margin-top: -8px; }
.password-toggle { min-width: 84px; min-height: 48px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); cursor: pointer; }
.password-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mypage-login .check + .hint { margin: 4px 0 0 30px; }

/* マイページのホーム（2026-10-02 全ページ確認 2-2）: 今週の出勤の時間は2段、出勤の申請の状況 */
.week-strip em { display: grid; justify-items: center; line-height: 1.35; }
.week-strip em span { display: block; }
.request-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.request-badge { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
.request-badge small { font-size: 12px; font-weight: 400; text-decoration: underline; }
.request-badge.is-pending { background: #fff4e0; color: #8a5300; }
.request-badge.is-rejected { background: #fde8ea; color: #a1202f; }

/* マイページの写メ日記の一覧（2026-10-02 全ページ確認 2-3）: 予約投稿の札と、日記ごとの見られた回数 */
.status.is-scheduled { background: #e6f0ff; color: #234a8a; border: 2px solid #c9dbf7; }
.diary-views { color: var(--muted); }
.diary-grid p small { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.diary-grid p small .diary-likes { margin-left: 0; }

/* 写メ日記を書く（2026-10-02 全ページ確認 2-4） */
[data-compose-fallback-only][hidden] { display: none; }
/* タイトルは本文と同じ見た目に（パネル直下のラベルを灰色の箱にする決まりから外す） */
.admin-body .panel > label.diary-title { padding: 0; border: 0; background: none; font-weight: 700; }
.publish-when { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.publish-when legend { font-weight: 700; padding: 0 4px; }
.publish-at[hidden] { display: none; }
.draft-restored { margin: 0; padding: 10px 14px; border-radius: 10px; background: #e6f0ff; color: #234a8a; font-size: 14px; }
.draft-restored[hidden] { display: none; }
/* 下書きに保存・プレビューで確認を同じ幅で横に（2026-10-02） */
.save-bar:has([data-preview-open]) { flex-wrap: wrap; }
.save-bar:has([data-preview-open]) .save-bar-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; flex: 1 1 260px; }
.save-bar:has([data-preview-open]) .save-bar-buttons > [hidden] { display: none; }
.save-bar:has([data-preview-open]) .save-bar-buttons > button { width: 100%; justify-content: center; }

/* 写メ日記を直す（2026-10-02 全ページ確認 2-5）: 今の状態のカード */
.post-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; }
.post-state a { margin-left: auto; font-weight: 700; color: var(--accent); }
.post-state-badge { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.post-state-badge.is-live { background: #e5f5ec; color: #1d6b3f; }
.post-state-badge.is-scheduled { background: #e6f0ff; color: #234a8a; }
.post-state-badge.is-pending { background: #fff4e0; color: #8a5300; }
.post-state-badge.is-draft { background: #f1eff3; color: #5f5460; }
.save-note { margin: 0; }

/* 出勤・申請（2026-10-02 全ページ確認 2-6）: 札の説明は1組ずつ、いつもの時間のボタン、「翌」 */
ul.req-legend { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
ul.req-legend li { display: flex; align-items: center; gap: 8px; }
.req-times { display: grid; gap: 8px; }
.req-times[hidden] { display: none; }
.req-time-inputs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.req-next { font-weight: 700; color: var(--accent); }
.req-next[hidden] { display: none; }
.req-usual { display: flex; flex-wrap: wrap; gap: 6px; }
.req-usual-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--accent-line, var(--line)); border-radius: 999px; background: #fff; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.req-usual-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[data-req-submit]:disabled { opacity: .5; cursor: not-allowed; }
.req-time-inputs input { flex: 1; min-width: 0; min-height: 44px; padding-inline: 8px; }
/* スマホでは、選んだ日の入力を行いっぱいに（日付の下へ）。時刻の欄が狭く「18:0」で切れていた */
@media (max-width: 560px) {
  .req-day.is-chosen .req-input { grid-column: 1 / -1; }
}

/* プロフィール管理（2026-10-02 全ページ確認 2-7）: 印象タグは押して選ぶ札、長い文章の残り文字数 */
.tag-chips-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .tag-chips-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tag-chip { position: relative; display: block; }
.tag-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tag-chip span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; }
.tag-chip input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.tag-chip input:checked + span::before { content: "✓ "; }
.tag-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag-chip input:disabled + span { opacity: .4; }
.tag-chips-left { font-weight: 700; color: var(--accent); }
.text-count { display: block; margin-top: 4px; text-align: right; font-size: 12px; font-weight: 400; color: var(--muted); }
textarea[data-autogrow] { overflow: hidden; resize: none; }

/* 印象＝過ごす時間と会ったときのひとこと（2026-10-02） */
.mood-cards { display: grid; gap: 8px; }
@media (min-width: 700px) { .mood-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mood-card { position: relative; display: block; }
.mood-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mood-card > span { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; min-height: 64px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.mood-card i { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); font-style: normal; font-size: 18px; }
.mood-card strong { font-size: 15px; color: var(--ink); }
.mood-card small { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.mood-card input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.mood-card input:checked + span strong::after { content: " ✓"; color: var(--accent); }
.mood-card input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.mood-card input:disabled + span { opacity: .45; }
.scene-whens { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-when { position: relative; }
.scene-when input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scene-when span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; }
.scene-when input:checked + span { border-color: var(--accent); color: var(--accent); }
.scene-when input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.scene-phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-phrases[hidden] { display: none; }
#scene-text { min-height: 44px; }

[data-upload-error][hidden] { display: none; }

/* 写真の管理の作り直し（2026-10-03 YUTAKAさん「おすすめで」） */
/* ③ 1枚ごとのボタンは ◀ ▶ だけ。写真を押すと小窓 */
.photo-manager-actions { grid-template-columns: 1fr 1fr; }
.photo-manager-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.photo-manager-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-manager-wide { padding: 5px 7px; border-radius: 7px; background: #fff3d1; color: #7a4b00; font-size: 12px; line-height: 1.45; }
.photo-menu .dialog-body { display: grid; gap: 14px; }
.photo-menu-big { display: block; width: 100%; max-height: 58vh; object-fit: contain; border-radius: 10px; background: var(--ground, #f3f1ee); }
.photo-menu-actions { display: grid; gap: 10px; }
.photo-menu-actions form { margin: 0; }
.photo-menu-actions .button-primary, .photo-menu-actions .button-danger, .photo-menu-actions .button-secondary { width: 100%; min-height: 52px; }
.photo-menu-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }
/* ② 送っているあいだの進み具合 */
.upload-progress { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.upload-progress progress { width: 100%; height: 10px; accent-color: var(--accent); }
/* ① サイトでの見え方 */
.photo-look { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground, #f3f1ee); }
.photo-look h3 { margin: 0; font-size: 16px; }
.photo-look-row { display: grid; grid-template-columns: 112px 1fr; align-items: end; gap: 14px; max-width: 360px; }
.photo-look figure { display: grid; gap: 6px; margin: 0; }
.photo-look-frame { overflow: hidden; border-radius: 10px; background: #e9e5e1; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.photo-look-frame.is-card { aspect-ratio: 3 / 4.9; }
.photo-look-frame.is-page { aspect-ratio: 3 / 4; max-width: 170px; }
.photo-look-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; }
.photo-look figcaption { display: grid; gap: 1px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.photo-look figcaption strong { font-size: 14px; color: var(--ink); }
.photo-look-note { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.photo-look-note strong { color: var(--ink); }
/* 削除は押し間違えないよう控えめに（白地に赤い文字） */
.photo-menu-actions .button-danger { background: #fff; color: var(--error); border: 2px solid color-mix(in srgb, var(--error) 45%, #fff); box-shadow: none; }

/* 2-9（2026-10-03）: プロフィール管理の切り替えが5つになると、最後の1つだけが1段に残っていた → 段ごとに幅をのばして埋める */
.profile-switch { display: flex; flex-wrap: wrap; }
.profile-switch a { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 0 8px; }
@media (min-width: 700px) { .profile-switch a { flex-basis: 0; white-space: nowrap; } }
/* できないことを選ばなくていい、の一言 */
.catalog-reassure { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius); background: #eef6f1; color: #24533b; font-size: 15px; line-height: 1.7; }
.catalog-reassure strong { color: #1b4430; }
/* 店舗管理: 本人が変えたオプション・コスプレの知らせ */
.catalog-notice { scroll-margin-top: 150px; display: grid; gap: 8px; padding: 12px 14px; border: 2px solid #e0a43a; border-radius: var(--radius); background: #fff8ea; }
.catalog-notice p { margin: 0; }
.catalog-notice form { margin: 0; }

/* 推しトークの中の予約（2026-10-04）: 本人のマイページと店舗管理のカード */
.talk-log li.has-card { max-width: 94%; width: 100%; }
.talk-card { width: 100%; box-sizing: border-box; border: 2px solid var(--accent); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 0 0 4px var(--accent-soft); }
.talk-card-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--accent); color: #fff; font-size: 15px; }
.talk-card-status { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 700; }
.talk-card-rows { display: grid; margin: 0; padding: 4px 14px 10px; }
.talk-card-rows > div { display: grid; grid-template-columns: 8em 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.6; }
.talk-card-rows > div:last-child { border-bottom: 0; }
.talk-card-rows dt { color: var(--muted); font-weight: 700; }
.talk-card-rows dd { margin: 0; word-break: break-word; }
.talk-card-note { margin: 0; padding: 0 14px 10px; color: var(--muted); font-size: 13px; }
.talk-log .talk-card-text { margin: 0; padding: 12px 14px; border-radius: 0; background: none; font-size: 15px; }
.talk-card.is-confirm { border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.talk-card.is-confirm .talk-card-head { background: var(--ok); }
.talk-card.is-decline { border-color: var(--line); box-shadow: none; }
.talk-card.is-decline .talk-card-head { background: #6d6772; }
/* お店が予約台帳でキャンセル・無断キャンセルにした希望（2026-10-23）: 終わったものとして灰色に */
.talk-card.is-cancelled, .talk-card.is-no_show { border-color: var(--line); box-shadow: none; }
.talk-card.is-cancelled .talk-card-head, .talk-card.is-no_show .talk-card-head { background: #6d6772; }
.talk-card.is-cancelled .talk-card-status, .talk-card.is-no_show .talk-card-status { color: #6d6772; }
.talk-card-actions { display: grid; gap: 8px; width: 100%; }
.rq-act { width: 100%; }
.rq-act > summary { list-style: none; width: 100%; box-sizing: border-box; cursor: pointer; }
.rq-act > summary::-webkit-details-marker { display: none; }
.rq-act[open] > summary { margin-bottom: 8px; }
.rq-act form { padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.talk-card-link { font-size: 14px; }
.talk-report { padding: 10px 12px; border-radius: 10px; background: #fff4e5; }
.talk-report p { margin: 0 0 6px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.filter-tabs a[aria-current=page] { border-color: var(--accent); background: var(--accent); color: #fff; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--error); color: #fff; font-size: 12px; font-weight: 700; }
/* カードの中の文は、ふきだしの見た目を受け継がない */
.talk-log li.has-card .talk-card p { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.talk-log li.has-card .talk-card .talk-card-text { padding: 12px 14px; }
.talk-log li.has-card .talk-card .talk-card-note { padding: 0 14px 10px; }
/* 2-10（2026-10-04）: ひとことはチェックした衣装にだけ出す・書いた分だけ広がる／ぜんぶチェック・ぜんぶ外す */
.choice-item.has-note:not(:has(input[type=checkbox]:checked)) .costume-note-field { display: none; }
.costume-note-field textarea { width: 100%; min-height: 48px; resize: none; line-height: 1.6; }
.costume-rule-hint { color: #7a4a00; }
.choice-bulk { display: flex; flex-wrap: wrap; gap: 8px; }
/* 2-11（2026-10-04）: 届いた推しレビューを手紙のように。お返事がまだの札、自分のお返事は吹き出し */
.cheer-summary { display: grid; gap: 6px; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.cheer-summary p { margin: 0; }
.cheer-summary-wait b { color: var(--accent); font-size: 1.2em; }
.cheer-letter { display: grid; gap: 12px; scroll-margin-top: 80px; border-top: 4px solid var(--accent); }
.cheer-letter:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.cheer-letter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cheer-letter-head strong { font-size: 17px; }
.cheer-letter-head time { color: var(--muted); font-size: 13px; }
.cheer-wait-badge { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #fff3d6; color: #7a4a00; font-size: 12px; font-weight: 700; }
.cheer-letter-body { margin: 0; padding: 14px 16px; border-radius: 10px; background: repeating-linear-gradient(transparent 0 calc(1.9em - 1px), color-mix(in srgb, var(--accent) 14%, transparent) calc(1.9em - 1px) 1.9em), #fffdf9; line-height: 1.9; font-size: 16px; background-position: 0 14px; }
.cheer-my-reply { position: relative; margin-left: 18px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--accent) 9%, #fff); }
.cheer-my-reply p { margin: 2px 0 0; line-height: 1.7; }
.cheer-my-reply-label { font-size: 12px; font-weight: 700; color: var(--accent); }
.cheer-edit > summary { display: inline-flex; list-style: none; cursor: pointer; }
.cheer-edit > summary::-webkit-details-marker { display: none; }
.cheer-edit[open] > summary { margin-bottom: 10px; }
.button-link-danger { padding: 6px 0; border: 0; background: none; color: var(--error); font-size: 14px; text-decoration: underline; cursor: pointer; }
/* 2-12（2026-10-04）: 推しトークの一覧の札・安全の一言・受け付け方はたたむ／トークの日付の区切り */
.talk-safety { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: #eef6f1; color: #24533b; font-size: 14px; line-height: 1.7; }
.talk-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.talk-badges:empty { display: none; }
.talk-badge { padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.talk-badge.is-reserve { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, #fff); }
.talk-badge.is-wait { background: #fff3d6; color: #7a4a00; }
.talk-badge.is-new { background: var(--accent); color: #fff; }
.talk-threads li.has-reserve a { border-color: color-mix(in srgb, var(--accent) 45%, #fff); border-width: 2px; }
.talk-threads .talk-preview { grid-column: 1 / -1; }
.talk-mode > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; font-weight: 700; }
.talk-mode > summary small { color: var(--muted); font-weight: 400; }
.talk-log li.talk-day { max-width: none; justify-self: center; }
.talk-log li.talk-day span { padding: 2px 12px; border-radius: 999px; background: #e6e3de; color: #555; font-size: 12px; }
.talk-mode > summary { list-style: none; }
.talk-mode > summary::-webkit-details-marker { display: none; }
.talk-mode > summary::after { content: '開く ▾'; margin-left: auto; color: var(--accent); font-size: 14px; font-weight: 700; }
.talk-mode[open] > summary::after { content: '閉じる ▴'; }

/* 出勤の入力（4-3。2026-10-05）: スマホでチェックと受付の選択が右にはみ出していた → 受付の選択は次の行に横いっぱい */
@container (max-width: 879px) {
  .shift-extra { grid-column: 1 / -1; flex-wrap: wrap; gap: 4px 14px; }
  .shift-extra select { flex: 1 1 100%; width: 100%; min-height: 40px; font-size: 14px; }
}

/* 写メ日記の一覧（4-5。2026-10-05）: 写真つきのカード */
.diary-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.diary-cards > li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.diary-cards > li.is-pending { border-color: #e7b25c; background: #fffaf0; }
.diary-cards > li.is-draft .diary-card-photo { opacity: .6; }
.diary-card-photo { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #f1eef0; color: var(--muted); font-size: 12px; text-decoration: none; }
.diary-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.diary-card-photo b { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 4px; background: rgb(0 0 0 / .65); color: #fff; font-size: 10px; letter-spacing: .05em; }
.diary-card-body { display: grid; align-content: start; gap: 6px; min-width: 0; }
.diary-card-body small { font-size: 13px; color: var(--muted); }
.diary-card-body strong { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.diary-card-body strong a { color: inherit; text-decoration: none; }
.diary-card-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.diary-card-state .part-switch { margin: 0; }
.diary-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.diary-card-actions .inline-form { margin: 0; }
.diary-card-site { font-size: 13px; color: var(--accent); }
/* ログイン（4-1。2026-10-05） */
.login-shop { margin: 0 0 2px; font-family: var(--font-serif, serif); font-size: 15px; color: var(--accent); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 64px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.login-help { margin: 16px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
/* 会員・キャストのまま店舗管理に来たときの 403（2026-11-24 23回目3）。ログインの枠をそのまま使い、ボタンは横いっぱい */
.wrong-door .notice { margin: 12px 0 16px; line-height: 1.7; }
.wrong-door .button-primary { width: 100%; }
.wrong-door .login-door { margin-top: 12px; }

/* 4-13・4-14（2026-10-05）: スマホでコンセプト・相互リンクの画面が右にはみ出していた。
   本文の列が中身の一番長いものに合わせて広がっていたので、列は画面の幅までに決める */
.admin-main { grid-template-columns: minmax(0, 1fr); }
/* 入れ子の並び・fieldset も中身（ファイルを選ぶ欄の長い文字）で広がらないように */
.stack { grid-template-columns: minmax(0, 1fr); }
.admin-main fieldset { min-width: 0; }
.admin-main input[type="file"] { max-width: 100%; }
/* 2026-11-21: スマホ（375）でロゴ・トップの写真・店長の写真の「ファイルを選ぶ」欄が、親の幅を超えて画面が横に広がっていた（幅の決まった欄は、中の字の長さで広がる）。親の幅に収める */
/* 隠して押す枠にした欄（.photo-pick・.diary-slot-pick）は除く（独立レビュー: 見えない欄が右へはみ出すおそれ） */
.admin-main label:not(.photo-pick):not(.diary-slot-pick) > input[type="file"] { display: block; width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; }
.admin-main label:not(.photo-pick):not(.diary-slot-pick):has(> input[type="file"]) { min-width: 0; max-width: 100%; }
.photo-pick, .diary-slot-pick { position: relative; }

/* 媒体連携（2026-10-18）: 配信URLは長いので、スマホでははみ出さずに折り返す */
.feed-url { display: block; word-break: break-all; font-size: 13px; }
/* 履歴の1マスの中身は1かたまり（スマホでは表がカードになり、見出しと中身が左右に並ぶため） */
.cell-lines { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .cell-lines { justify-items: end; text-align: right; }
  .cell-lines .job-error { justify-self: stretch; text-align: left; font-size: 14px; }
}
.status.is-warning { background: var(--warn-soft); color: var(--warn); border: 2px solid #f0d49a; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.media-actions .button-secondary { min-height: 44px; }
.what-todo b.media-todo-next { margin-top: 8px; }
/* 人ごとの設定のカード。「出さない」にチェックしても、目立つ色にはしない（点線と薄い地だけ） */
.media-cast { border: 1.5px solid var(--line); margin: 0; }
.media-cast legend { font-weight: 700; font-size: 16px; padding: 0 4px; }
.media-cast legend .status { display: inline-block; margin-left: 6px; font-size: 13px; vertical-align: middle; }
.media-cast:has(input[type=checkbox]:checked) { border-color: var(--line); border-style: dashed; background: #faf9fb; }
.media-cast label.check { min-height: 44px; }
.media-cast input:disabled { background: #f1eff3; color: var(--muted); cursor: not-allowed; }
.media-memo summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 11px 0; }
.media-memo p { font-size: 14px; }
.break-any { overflow-wrap: anywhere; }

/* 使えない会員・やめた人の状態（2026-10-21）。名前の下の行に出し、長いときは折り返す */
.status.is-state { white-space: normal; text-align: left; }
.account-states { display: block; margin-top: 4px; }
.account-states:empty { display: none; }

/* 会員一覧の状態の札（2026-10-22）: 札が増えても横にはみ出さず、次の行へ折り返す。スマホのカードだけ（パソコンの表は今までどおり） */

.member-open { white-space: nowrap; } /* 札で状態の列が広がっても「開く」を2行に割らない */
@media (max-width: 720px) { .member-badges { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; min-width: 0; } }

/* 単品オプション（2026-11-17）: 本人のマイページとお店の管理画面で同じ部品。スマホは名前と料金を縦に、広い画面は横に。地は白のまま（単色の塗りは使わない） */
.single-option-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.single-option-fields label { display: grid; gap: 4px; min-width: 0; }
.single-option-fields input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (min-width: 700px) { .single-option-fields { grid-template-columns: minmax(0, 1fr) 11rem; } }
.single-option-row .repeat-bar { min-width: 0; flex-wrap: wrap; }
/* 行の上の小さなボタン（⋮⋮・↑↓・削除）を、指で押しやすい 44px に（8回目のレビュー。ほかの並べ替えの欄は今のまま） */
.single-option-row .drag-handle { width: 44px; height: 44px; flex: none; }
.single-option-row .repeat-actions { gap: 8px; }
.single-option-row .repeat-button { min-width: 44px; height: 44px; padding: 0 12px; font-size: 15px; }
.single-option-description { display: grid; gap: 4px; min-width: 0; }
.single-option-description textarea { width: 100%; min-width: 0; box-sizing: border-box; min-height: 4.5em; resize: vertical; }
.single-option-casts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.single-option-casts a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.single-option-casts a span { margin-left: auto; color: var(--muted); font-size: 14px; }
.single-option-casts small { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.single-option-link { margin-top: 4px; }
/* プロフィール管理の切り替え: 項目が増えても、広い画面で文字が重ならないよう次の行へ回す */
@media (min-width: 700px) { .profile-switch a { flex: 1 1 auto; min-width: max-content; } }
/* 会員の人数（2026-11-18 要望23）・出勤の入力の「非公開の人も表示する」（要望17） */
.member-count { margin: 4px 0 12px; font-size: 16px; }
.member-count strong { font-size: 20px; }
.shift-who { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
/* よくある質問をいくつ出すか（2026-11-18 要望21②）。場所の名前を1行目に、数を2行目に */
.faq-count-field { padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.faq-count-field .count-row > label:first-child { flex: 1 1 100%; font-size: 15px; font-weight: 700; }
.faq-count-field .count-row + .count-row { margin-top: 6px; }
/* 保存したあと同じ位置に戻ったときの知らせ（2026-11-18 要望24）。画面の上に貼り付き、数秒で消える */
.admin-toast { position: fixed; top: 12px; left: 50%; z-index: 1000; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(92vw, 560px); padding: 10px 10px 10px 16px; border-radius: 12px; background: #1f6b45; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 6px 20px rgb(0 0 0 / .18); transition: opacity .5s; }
.admin-toast.is-warning { background: #8a5a00; }
.admin-toast.is-hiding { opacity: 0; }
.admin-toast button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: rgb(255 255 255 / .18); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
/* 会員の「メール未確認」（2026-11-18 本人）: 対応の要る印ではないので、札にせず小さな灰色の文字で控えめに */
.member-quiet-note { font-size: 12px; font-weight: 400; color: #6b6470; white-space: nowrap; }

/* メニューの札「オフ」（2026-11-20。推しトークを、オフのあいだも見つけられるように） */
.menu-tag { display: inline-grid; place-items: center; min-width: 32px; height: 20px; padding: 0 7px; border: 1px solid currentColor; border-radius: 10px; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; opacity: .8; }
.admin-side .menu-tag { margin-left: auto; }

/* ── 2026-11-20 キャストのマイページのスマホの直し（全デザイン共通）──
   写メ日記の保存の帯: 2つのボタンを同じ幅に分け、文字が長いときは折り返す（「プレビューで確認」の右がはみ出していた）
   （キャストのマイページだけ＝.is-mypage。お店の管理画面の見た目は変えない。2026-11-20 レビュー） */
.is-mypage .save-bar:has([data-preview-open]) .save-bar-buttons { grid-auto-columns: minmax(0, 1fr); }
.is-mypage .save-bar-buttons button { min-width: 0; }
@media (max-width: 480px) {
  .is-mypage .save-bar-buttons button { white-space: normal; line-height: 1.3; padding-inline: 10px; }
  .is-mypage .save-bar .save-bar-buttons .button-primary, .is-mypage .save-bar .save-bar-buttons .button-secondary { font-size: 15px; }
}
/* ホームの予約の行: 「確定待ち（まだ確定していません）」の札が 360px で右にはみ出していた → 札も折り返す */
.resv-what .status { white-space: normal; justify-self: start; }
.resv-what strong, .resv-what small { overflow-wrap: anywhere; }
/* 下のタブ: 360px で「プロフィール」が右にはみ出していた → 狭い画面では文字を少し小さく */
@media (max-width: 374px) { .is-mypage .admin-tabs a { font-size: 11px; } .is-mypage .admin-tabs a span { letter-spacing: -.05em; } }
/* Q&A の「質問を選ぶ」 */
.qa-pick { width: 100%; min-height: 44px; margin-top: 6px; }
/* 出勤申請の「時」「分」を選ぶ欄 */
.time-pick { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.time-pick select { min-height: 44px; min-width: 0; padding-inline: 8px; font-size: 16px; }
.time-pick-sep { font-weight: 700; }
.req-time-inputs .time-pick { flex: 1 1 auto; }
/* 推しトークの一覧の「来店済み」「未来店」 */
.talk-badge.is-met { background: #e3f4f2; color: #0d6b5f; }
.talk-badge.is-unmet { background: #f1f2f4; color: #5b6066; }

/* ── 2026-11-20 店舗管理の枠（B2・B14・B12・B1）── */
/* B14 上の「サイトを見る」。どの画面でも、パソコン・スマホとも。枠線のボタン（べた塗りにしない） */
.admin-site-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid var(--accent); border-radius: 10px; background: #fff; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; }
.admin-site-link .ic { width: 18px; height: 18px; }
.admin-site-link:hover { background: var(--accent-soft); }
.admin-site-link + .admin-user { margin-left: 0; }
@media (max-width: 640px) {
  .admin-top { gap: 8px; padding-inline: 12px; }
  .admin-site-link { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 340px) { .admin-site-link > span:not(.sr-only) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .admin-site-link { width: 44px; justify-content: center; padding: 0; } }
/* B2 メニューの「待ち時間設定」から飛んだとき、上の帯と「いまの場所」の帯（どちらも貼り付く）に隠れないように */
.home-wait { scroll-margin-top: 160px; }
.home-wait:target > .sec-head h2 { color: var(--accent); }
/* B12 左のメニューの「店舗設定」の枠（開く・閉じる） */
.admin-side-fold { display: none; }
@media (min-width: 1024px) {
  .admin-side-fold { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
  .admin-side-fold > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--side-ink); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
  .admin-side-fold > summary::-webkit-details-marker { display: none; }
  .admin-side-fold > summary .ic { color: var(--side-muted); }
  .admin-side-fold > summary small { margin-left: auto; color: var(--side-muted); font-size: 12px; font-weight: 400; }
  .admin-side-fold > summary i { width: 8px; height: 8px; border-right: 2px solid var(--side-ink); border-bottom: 2px solid var(--side-ink); transform: rotate(45deg) translateY(-2px); flex: none; }
  .admin-side-fold[open] > summary i { transform: rotate(-135deg) translateY(-1px); }
  .admin-side-fold > summary:hover { background: rgba(255,255,255,.08); }
  .admin-side-fold > summary:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  .admin-side-fold-list { display: grid; gap: 2px; margin: 2px 0 0 12px; padding-left: 8px; border-left: 2px solid rgba(255,255,255,.14); }
  .admin-side-fold-list a { font-size: 14px; }
  .admin-side-fold-list a[aria-current]::before { left: -10px; }
}
/* B12 「その他」のメニューのページの「店舗設定」の枠 */
.menu-fold > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; margin: 0 0 10px; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05); cursor: pointer; list-style: none; }
.menu-fold > summary::-webkit-details-marker { display: none; }
.menu-fold > summary small { margin-left: auto; font-size: 13px; font-weight: 400; }
.menu-fold > summary i { width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-2px); flex: none; }
.menu-fold[open] > summary i { transform: rotate(-135deg) translateY(-1px); }
/* B1 ホームの「画面を開く」 */
.home-open-title { margin: 18px 0 10px; font-size: 16px; }
.home-open-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) and (max-width: 1023px) { .home-open-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-open-grid a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.35; }
.home-open-grid a:hover { border-color: var(--accent-line); }
.home-open-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.home-open-label { min-width: 0; overflow-wrap: anywhere; }
.home-open-grid .count { position: absolute; top: 6px; right: 6px; }
.home-open-grid .menu-tag { position: absolute; top: 6px; right: 6px; color: var(--muted); }
/* アクセス解析を分かりやすく（2026-11-20 B13）: ひと目で分かるまとめ・参照元の帯・時間帯別。外の部品は使わず CSS だけ */
.an-glance { display: grid; gap: 12px; }
.an-glance > h2 { margin: 0; font-size: 18px; }
.an-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.an-big-card { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 16px; border-radius: 14px; background: #fff; border-top: 5px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05); }
.an-big-card.is-views { border-top-color: var(--info); }
.an-big-card.is-contact { grid-column: 1 / -1; border-top-color: var(--ok); }
@media (min-width: 900px) { .an-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } .an-big-card.is-contact { grid-column: auto; } }
.an-big-card h3 { margin: 0; font-size: 15px; color: var(--ink); }
.an-big-num { font-size: 40px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.an-big-num small { margin-left: 3px; font-size: 16px; font-weight: 700; color: var(--muted); }
@media (min-width: 900px) { .an-big-num { font-size: 46px; } }
.an-compare { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 13px; color: var(--muted); }
.an-compare .an-change { font-size: 13px; }
.an-change.is-up { color: #176b41; }
.an-big-help { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.an-big-targets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.an-big-targets li { display: grid; gap: 0; justify-items: center; padding: 6px 4px; border-radius: 10px; background: var(--ok-soft); text-align: center; }
.an-big-targets span { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.an-big-targets strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.an-big-targets strong small { margin-left: 1px; font-size: 11px; color: var(--ink); }
.an-mini { display: grid; gap: 8px; margin: 0; }
@media (min-width: 700px) { .an-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-mini > div { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--line); }
.an-mini dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.an-mini dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; }
.an-mini dd strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.an-mini dd span { font-size: 13px; color: var(--muted); }
/* 参照元の横の帯 */
.an-hbars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.an-hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.an-hbar-name { font-size: 14px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.an-hbar-num { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.an-hbar-num strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.an-hbar-num small { font-size: 12.5px; }
.an-hbar { grid-column: 1 / -1; height: 16px; border-radius: 8px; background: var(--gray-soft); overflow: hidden; }
.an-hbar i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.an-hbars.is-week li { grid-template-columns: 4.5em minmax(0, 1fr) auto; align-items: center; }
.an-hbars.is-week .an-hbar { grid-column: 2; grid-row: 1; height: 14px; }
.an-hbars.is-week .an-hbar-num { grid-column: 3; grid-row: 1; }
.an-sub-title { margin: 8px 0 0; font-size: 15px; }
.an-toplist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .an-toplist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.an-toplist li { display: flex; align-items: center; gap: 2px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 14px; }
.an-toplist-name { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.an-toplist strong { font-variant-numeric: tabular-nums; }
.an-toplist strong small { margin-left: 1px; font-size: 12px; }
/* 時間帯別（0〜23時）。夜の時間は、うすい紫の帯 */
.an-hours { display: flex; align-items: stretch; gap: 2px; height: 190px; padding: 0; border-bottom: 2px solid var(--line); }
.an-hour { position: relative; flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; border-radius: 4px 4px 0 0; }
.an-hour.is-night { background: #ece7f7; }
.an-hour-bar { width: min(100%, 26px); min-height: 1px; border-radius: 4px 4px 0 0; background: var(--accent); }
.an-hour-n { display: none; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .an-hour-n { display: block; } }
.an-hour small { position: absolute; bottom: -20px; font-size: 11px; color: var(--ink); white-space: nowrap; }
.an-legend .is-night { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #ece7f7; border: 1px solid #b9acd9; }
.an-peak { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--info-soft); font-size: 14.5px; line-height: 1.7; }
.an-legend-item { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; white-space: nowrap; }
.an-hbars.is-week li { grid-template-columns: 4.2em minmax(0, 1fr) 8.6em; }
.an-hbars.is-week .an-hbar-num { justify-content: flex-end; }
.an-hbar i.an-cat-search { background: #2f6fb3; } .an-hbar i.an-cat-ai { background: #7a4fc4; } .an-hbar i.an-cat-sns { background: #d2477a; }
.an-hbar i.an-cat-media { background: #e0902a; } .an-hbar i.an-cat-other { background: #8b8f96; } .an-hbar i.an-cat-direct { background: #2f9a7a; }
@media (max-width: 520px) { .an-hbars.is-week li { grid-template-columns: 3.6em minmax(0, 1fr) auto; } .an-hbars.is-week .an-hbar-num { width: 7.4em; } .an-hbars.is-week .an-hbar-num small { font-size: 11px; } }
/* まとめ以外のタブの上（2026-11-21 B13 の残り）: 短い説明と、大きな数字のカード3枚 */
.an-glance.is-tab { margin-top: 4px; }
.an-tab-lead { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--info-soft); color: var(--ink); font-size: 14.5px; line-height: 1.75; }
.an-big.is-three { grid-template-columns: minmax(0, 1fr); }
.an-big.is-three .an-big-card.is-contact { grid-column: auto; }
@media (min-width: 700px) { .an-big.is-three { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.an-big-num.is-word { font-size: 26px; line-height: 1.3; }
@media (min-width: 900px) { .an-big-num.is-word { font-size: 28px; } }
/* どこから来たか: 来た人の帯の下に、問い合わせ率の細い緑の帯 */
.an-hbar-rate { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: -2px; }
.an-hbar-rate small { font-size: 13px; color: var(--ink); white-space: nowrap; }
.an-hbar.is-rate { height: 8px; grid-column: auto; }
.an-hbar.is-rate i { background: var(--ok); }
@media (max-width: 520px) { .an-hbar-rate { grid-template-columns: minmax(0, 1fr); gap: 2px; } .an-hbar-rate small { white-space: normal; } }
/* 時間・ページのタブの時間帯: 棒の上にボタンの回数（緑の丸） */
.an-hours.is-taps { height: 210px; }
.an-hour-tap { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-bottom: 2px; padding: 0 3px; border-radius: 9px; background: var(--ok); color: #fff; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
/*
   キャスト一覧を1人1行に（2026-11-20 B5）。
   スマホ: 1段目に つまみ・写真・名前・「…」、2段目に 公開の状態と ▲▼。パソコン: 1行にまとめる。
   押す所はすべて 44px 以上。色の付いた面は使わず、枠と文字の色で今の状態を見せる
*/
.cast-filter { display: grid; gap: 10px; margin-bottom: 14px; }
.cast-filter-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cast-filter-tabs a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.cast-filter-tabs a small { font-size: 12px; color: var(--muted); font-weight: 500; }
.cast-filter-tabs a:hover { border-color: var(--accent); }
.cast-filter-tabs a[aria-current] { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cast-filter-tabs a[aria-current] small { color: var(--accent); }
.cast-search { display: flex; gap: 8px; min-width: 0; }
.cast-search input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 44px; font-size: 16px; }
.cast-search .button-secondary { flex: none; min-height: 44px; }
@media (min-width: 900px) {
  .cast-filter { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); align-items: center; }
}

.cast-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cast-row {
  position: relative; display: grid; align-items: center; gap: 8px 10px; padding: 8px 8px 8px 4px;
  grid-template-columns: 44px 48px minmax(0, 1fr) 44px;
  grid-template-areas: "grab photo name more" "ctrl ctrl ctrl ctrl";
  border: 2px solid var(--line); border-radius: 14px; background: var(--surface);
}
.cast-row.is-off { background: #faf9fb; border-style: dashed; }
.cast-row.is-off .cast-row-photo img { filter: grayscale(1); opacity: .6; }
/* 絞り込み中に別の状態へ変えた行（8回目のレビュー B5）。地と写真だけ薄くし、文字は薄くしない。読み直すと消える */
.cast-row.is-left { background: #f1eff3; border-style: dashed; }
.cast-row.is-left .cast-row-photo img { opacity: .45; }
.cast-left-note { margin: 4px 0 0; padding: 3px 10px; display: inline-block; max-width: 100%; box-sizing: border-box; border: 1px solid #e8c98f; border-radius: 8px; line-height: 1.5; background: var(--warn-soft); color: #5c3700; font-size: 13px; font-weight: 700; }
.cast-row .cast-grab { grid-area: grab; display: grid; place-items: center; width: 44px; height: 44px; cursor: grab; touch-action: none; }
.cast-row .cast-grab .part-grip { width: 36px; height: 44px; font-size: 18px; }
.cast-row-photo { grid-area: photo; display: grid; place-items: center; width: 48px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--ground); color: var(--muted); font-size: 10px; line-height: 1.3; text-align: center; text-decoration: none; }
.cast-row-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cast-row-name { grid-area: name; min-width: 0; }
.cast-row-name a { display: inline-flex; align-items: center; flex-wrap: wrap; min-height: 44px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cast-row-name a:hover strong { text-decoration: underline; }
.cast-row-name strong { font-size: 17px; font-weight: 700; line-height: 1.35; }
.cast-row-name a span { font-size: 14px; color: var(--muted); }
.cast-row-name small { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -4px; }
.cast-row-name small:empty { display: none; }
.cast-tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: #4f4652; }
.cast-row-ctrl { grid-area: ctrl; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding-left: 4px; }

/* 公開・非公開・下書き（3つから1つ） */
.cast-status { margin: 0; flex: 1 1 auto; min-width: 0; }
.cast-status fieldset { display: flex; margin: 0; padding: 0; border: 0; min-width: 0; }
.cast-status button {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 10px; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); color: #4f4652; font: inherit; font-size: 15px; font-weight: 600;
}
.cast-status button + button { margin-left: -2px; }
.cast-status button:first-child { border-radius: 12px 0 0 12px; }
.cast-status button:last-child { border-radius: 0 12px 12px 0; }
.cast-status button:hover { border-color: #b9b0bd; position: relative; }
.cast-status button[aria-pressed="true"] { position: relative; z-index: 1; cursor: default; }
.cast-status button[aria-pressed="true"]::before { content: "● "; }
.cast-status button.is-published[aria-pressed="true"] { border-color: #23a35c; color: #14663a; background: #f1faf4; }
.cast-status button.is-hidden[aria-pressed="true"] { border-color: #6f6573; color: #3b333e; background: #f6f5f7; }
.cast-status button.is-draft[aria-pressed="true"] { border-color: #c08a1c; color: #6e4b00; background: #fffaf0; }
.cast-status button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; z-index: 2; }
.cast-status.is-saving { opacity: .6; pointer-events: none; }
.cast-status.is-fixed { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 2px dashed var(--line); border-radius: 12px; color: #4f4652; font-size: 14px; font-weight: 600; }
.cast-row .part-moves { display: flex; gap: 6px; padding: 0; flex: none; }
.cast-row .part-moves form { margin: 0; }
.cast-row .part-moves button { min-width: 44px; min-height: 44px; padding: 0; font-size: 15px; }

/* 「…」 */
.cast-more { grid-area: more; position: relative; }
.cast-more > summary {
  display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; list-style: none;
}
.cast-more > summary::-webkit-details-marker { display: none; }
.cast-more > summary span { transform: translateY(-4px); }
.cast-more[open] > summary, .cast-more > summary:hover { border-color: var(--accent); color: var(--accent); }
.cast-more-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 4px; width: min(300px, calc(100vw - 32px));
  padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 30px rgba(30, 24, 46, .18);
}
.cast-more-menu > a, .cast-del-inline > summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 10px;
  color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none;
}
.cast-del-inline > summary::-webkit-details-marker { display: none; }
.cast-del-inline > summary { color: #a3123a; }
.cast-more-menu > a:hover, .cast-del-inline > summary:hover { background: var(--accent-soft); }
.cast-del-inline > summary:hover { background: #fdeef2; }
.cast-more-menu .ic { width: 20px; height: 20px; }
.cast-del-inline .cast-del-box { padding: 4px 8px 8px; }
.cast-del-box p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; }
.cast-del-box .hint { font-size: 14px; color: var(--muted); }
/* 一緒に消える推しレビュー・推しトークの数（8回目のレビュー） */
.cast-del-box .cast-del-lose { padding: 10px 14px; border: 2px solid var(--warn); border-radius: 10px; background: var(--warn-soft); color: #5c3700; }
.cast-del-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 0; }
.cast-del-foot .button-secondary { min-height: 48px; padding: 0 18px; }
.cast-del-go { border-width: 2px !important; }
.cast-del-dialog { width: min(460px, 100%); }
.dialog-head.is-danger { background: #fff; color: #a3123a; border-bottom: 2px solid #f0b6c2; }
.dialog-head.is-danger .dialog-x { background: #f6f5f7; color: var(--ink); width: 44px; height: 44px; }
.sort-ghost .cast-more, .sort-ghost .cast-row-ctrl { visibility: hidden; }

@media (min-width: 900px) {
  .cast-row { grid-template-columns: 44px 48px minmax(0, 1fr) auto 44px; grid-template-areas: "grab photo name ctrl more"; padding: 6px 10px 6px 4px; }
  .cast-row-ctrl { flex-wrap: nowrap; padding-left: 0; }
  .cast-status { flex: none; width: 300px; }
}
/* キャスト一覧: 狭い画面で「● 非公開」が2行にならないように。「…」の中身が下のタブに隠れないように */
.cast-status button { white-space: nowrap; }
.cast-status button[aria-pressed="true"]::before { content: "●"; font-size: 10px; margin-right: 3px; vertical-align: 2px; }
@media (max-width: 899px) { .cast-status button { padding: 0 4px; font-size: 14px; } }
.cast-more-menu { scroll-margin: 80px 0 96px; }
.admin-body .button-secondary.cast-del-go { border-color: #a3123a; color: #a3123a; }
.admin-body .button-secondary.cast-del-go:hover { background: #fdeef2; }
/* ── 2026-11-20 B3・B4 推しレビューと推しトークの一覧（全デザイン共通。この2つの画面だけで使う）──
   1件を1行のカードに: 左に小さな顔、右に札・だれ・日時・始めの文・押す所。べた塗り・グラデーションは使わない。押す所は 44px 以上 */
.list-alert { margin: 0; padding: 12px 16px; border: 2px solid var(--warn); border-radius: 12px; background: var(--warn-soft); color: #5c3700; font-size: 15px; line-height: 1.7; }
.list-alert a { margin-left: 8px; color: #5c3700; font-weight: 700; }
.list-filter { display: grid; gap: 10px; }
.list-filter .filter-tabs a { min-height: 44px; }
.list-filter-cast { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.list-filter-cast label { font-size: 14px; font-weight: 700; }
.list-filter-cast select { min-height: 44px; min-width: 0; max-width: 100%; flex: 1 1 10em; }
.list-filter-cast .button-secondary { min-height: 44px; }
.list-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); }
.list-row.is-pending { border-color: var(--warn); border-left-width: 8px; background: #fffaf0; }
.list-row.is-alert { border-color: var(--error); border-left-width: 8px; }
.list-row.is-blocked { background: #f7f6f4; }
.list-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--accent-soft); }
.list-face.is-letter { display: grid; place-items: center; color: var(--accent); font-size: 20px; font-weight: 700; }
.list-row-main { display: grid; gap: 6px; min-width: 0; }
.list-row-main p { margin: 0; }
.list-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 16px; }
.list-row-head strong { overflow-wrap: anywhere; }
.list-row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #555; font-size: 13px; line-height: 1.6; }
.list-row-meta > span { overflow-wrap: anywhere; }
.list-row-preview { color: var(--ink); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.list-row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.list-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border: 1px solid #c9c6c1; border-radius: 999px; background: #fff; color: #4a4a4a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.list-tag.is-replied { border-color: #9fd4b6; background: var(--ok-soft); color: #13603a; }
.list-tag.is-new { border-color: #a9c4e0; background: var(--info-soft); color: var(--info); }
.list-tag.is-alert { border-color: #e7a8a3; background: var(--error-soft); color: #8a1c15; }
.list-tag.is-reserve { border-color: #e8c98f; background: var(--warn-soft); color: #6b4000; }
.list-tag.is-met { border-color: #9fd2ca; background: #e3f4f2; color: #0d6b5f; }
.list-tag.is-unmet { background: #f1f2f4; color: #4f545a; }
.list-tag.is-blocked { border-color: #8a8a8a; background: #ececec; color: #333; white-space: normal; }
/* 推しトーク: キャストが未読のまま24時間（2026-11-25。橙。文字と地の明暗差 約7） */
.list-tag.is-stale { border-color: #ef9f5a; background: #fff0e2; color: #8a3a00; }
.talk-stale-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 10px 14px; border: 2px solid #ef9f5a; border-radius: 10px; background: #fff0e2; color: #5c2700; font-size: 15px; }
.talk-stale-note a { color: #8a3a00; font-weight: 700; }
.list-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.list-row-actions form { margin: 0; }
.list-row-actions .button-secondary { min-height: 44px; }
.list-row-actions .button-secondary.is-ok { border-color: var(--ok); color: #13603a; }
.list-row-actions .button-secondary.is-ok:hover { background: var(--ok-soft); }
.list-row-actions .button-secondary.is-danger { border-color: #e7a8a3; color: var(--error); }
.list-row-more > summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; }
.list-row-full { display: grid; gap: 10px; padding: 12px; border-radius: 10px; background: var(--ground); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.list-row-reply { padding: 10px 12px; border-left: 4px solid var(--accent-line); background: #fff; border-radius: 8px; }
.list-row-reply small { margin-left: 8px; color: #555; }
.list-row-link { position: relative; padding-right: 56px; min-height: 44px; color: var(--ink); text-decoration: none; }
.list-row-link:hover strong { text-decoration: underline; }
.list-row-go { position: absolute; top: 50%; right: 0; transform: translateY(-50%); color: var(--accent); font-size: 14px; font-weight: 700; }
/* スマホ: 「開く ›」を右に置くと本文が細くなるので、行のいちばん下へ */
@media (max-width: 600px) {
  .list-row { gap: 10px; padding: 12px; }
  .list-row-link { padding-right: 0; }
  .list-row-go { position: static; transform: none; justify-self: end; display: inline-flex; align-items: center; min-height: 32px; }
}
/* 料金の設定のプレビュー（2026-11-20 D3）。スマホは下から出る大きな紙、パソコンは横に広い小窓 */
.no-js .admin-dialog[data-js-only] { display: none; }
.admin-dialog.is-price-preview { width: 100%; height: 94vh; max-height: 94vh; }
@media (min-width: 700px) { .admin-dialog.is-price-preview { width: min(1320px, 96vw); height: 92vh; max-height: 92vh; } }
.price-preview-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 2px solid var(--line); background: var(--surface); }
.price-preview-tools .button-secondary { min-height: 44px; min-width: 88px; }
.price-preview-tools [aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.price-preview-tools .hint { margin: 0; font-size: 13px; }
.price-preview-stage { flex: 1; min-height: 0; overflow: hidden; display: flex; justify-content: center; background: #e9e6e2; padding: 8px 0 0; }
.price-preview-frame { flex: none; border: 1px solid #bdb7b0; border-radius: 10px 10px 0 0; background: #fff; transform-origin: top center; }
.price-preview-frame.is-loading { opacity: .35; }
.price-preview-foot { position: static; padding: 10px 16px; margin: 0; }
.save-bar-buttons [data-price-preview] { min-height: 56px; font-size: 17px; }
@media (max-width: 480px) { .admin-dialog.is-price-preview .dialog-head strong { font-size: 15px; } }

/* 「お客様の画面のどこに出る？」の図（2026-11-20 B9。admin/partials/where-map）。説明の画像は使わず、箱で描く */
.page-where:has(.page-where-see) { flex-wrap: wrap; }
.page-where .where-button.has-text { width: auto; min-height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
.page-where-see {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .7); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.page-where-see:hover { background: rgba(255, 255, 255, .18); }
@media (max-width: 640px) {
  .page-where:has(.page-where-see) .page-where-path { flex: 1 1 calc(100% - 60px); }
  .page-where:has(.page-where-see) .where-button.has-text, .page-where:has(.page-where-see) .page-where-see { flex: 1 1 0; justify-content: center; margin-left: 0; }
}
.admin-dialog.is-where.has-map { width: min(760px, 100%); }
.where-legend { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; }
.where-legend-swatch { width: 22px; height: 14px; border-radius: 4px; background: var(--accent); flex: none; }
.where-map { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.where-phone-wrap { margin: 0; width: 220px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.where-phone-title { font-size: 15px; font-weight: 700; text-align: center; color: var(--ink); }
.where-phone { position: relative; padding: 22px 9px 12px; border: 3px solid #2b2730; border-radius: 26px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.where-phone-notch { position: absolute; top: 8px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 6px; background: #2b2730; }
.where-phone-screen { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.where-box { padding: 7px 8px; border-radius: 7px; border: 1px solid #d9d4dd; background: #f6f4f8; color: #3f3946; font-size: 12px; line-height: 1.45; }
.where-box small { display: block; font-size: 11px; color: #5f5866; }
.where-box.is-chrome { border-style: dashed; background: #fff; color: #5f5866; text-align: center; }
.where-box.is-off { border-style: dashed; background: #fff; }
.where-box.is-current { padding: 11px 8px; border: 2px solid var(--accent); background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent); }
.where-box.is-current small { color: #fff; }
.where-here { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; }
.where-here::before { content: "▲ "; }
.where-phone-note { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink); }
.where-phone-see { display: flex; justify-content: center; min-height: 44px; }
/* 図が意味を持たない所（検索・AI対策）。枠を描かずに一言だけ（2026-11-21 B9 の残り） */
.where-noview { width: 100%; max-width: 520px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 14px; background: #fff; }
.where-noview p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink); }
.where-noview .where-noview-title { margin-bottom: 4px; font-weight: 700; }
/* 入口ページとは（2026-11-20 B9） */
.plain-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.8; }
.plain-steps a { word-break: break-all; }
@media (max-width: 640px) {
  .page-where:has(.page-where-see) { gap: 8px 10px; }
  .page-where:has(.page-where-see) .where-button.has-text, .page-where:has(.page-where-see) .page-where-see { font-size: 14px; padding: 0 8px; min-width: 0; }
}

/* 電子同意書（2026-11-21）。管理画面の文と版・読む画面 */
.consent-step-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: consent-step; }
.consent-step-list li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: start; counter-increment: consent-step; }
.consent-step-list li::before { content: counter(consent-step); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 700; }
.consent-step-list span { color: var(--ink); font-size: 15px; line-height: 1.7; }
.consent-state { margin: 0; padding: 10px 14px; border-radius: var(--radius); font-size: 16px; }
.consent-state.is-on { background: var(--ok-soft); color: var(--ok); }
.consent-state.is-off { background: #f1f0ee; color: #4a4a4a; }
.consent-now { margin: 0; font-size: 16px; }
#consent-body { min-height: 360px; font-size: 16px; line-height: 1.8; }
#consent-new .help-box { padding: 12px 16px 2px; }
#consent-new .help-box p { margin: 0 0 6px; }
.consent-preview { padding: 14px 16px; border: 2px dashed var(--accent-line); border-radius: var(--radius); background: var(--surface); }
.consent-preview small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.consent-preview p, .consent-sentence { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.7; }
.consent-version-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.consent-version-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.consent-doc { font-size: 16px; line-height: 1.85; }
.consent-doc p { margin: 0 0 .6em; }
.consent-doc ul { margin: 0 0 .7em; padding-left: 1.3em; }
.consent-doc-article h2 { margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.consent-doc-summary, .consent-doc-history { color: var(--muted); }
.consent-doc-history { list-style: none; padding: 0 !important; font-size: 14px; }
.consent-switch-note { display: block; color: var(--ink); font-size: 14px; font-weight: 400; }
.consent-later { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
/* 同意の記録の一覧（お店・キャスト）の絞り込み */
.consent-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.consent-filter label { display: grid; gap: 4px; flex: 1 1 150px; min-width: 0; }
.consent-filter input, .consent-filter select { width: 100%; min-height: 48px; }
.consent-filter-buttons { display: flex; align-items: center; gap: 14px; }
.consent-filter a { display: inline-flex; align-items: center; min-height: 44px; }
/* キャストの同意書のページ */
[data-consent-pending][hidden], [data-consent-failed][hidden] { display: none !important; }
[data-consent-failed] { flex-direction: column; }
[data-consent-failed] [hidden] { display: none !important; }
.consent-failed-clear { min-height: 44px; }
.consent-cast-sub { margin: 6px 0 0; font-size: 16px; }
.consent-resv { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.consent-resv li { display: grid; gap: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.consent-resv-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; }
.consent-resv-when b { font-size: 18px; }
.consent-resv-when small { color: var(--muted); font-size: 14px; }
.consent-resv button, .consent-free-button { width: 100%; min-height: 52px; font-size: 17px; }
.consent-how { padding: 12px 16px 2px; }
.consent-how p { margin: 0 0 6px; }
.consent-mine { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.consent-mine li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.consent-mine small { color: var(--muted); }

/* 退店にする・戻す（2026-11-21 RET）。キャスト一覧の行・削除の小窓・編集画面。べた塗りにせず、枠の太さで目立たせる */
.cast-unretire { margin: 0; flex: 1 1 auto; }
.cast-unretire .button-secondary { min-height: 44px; padding: 0 14px; white-space: nowrap; }
.admin-body .button-secondary.cast-retire-go { min-height: 48px; padding: 0 18px; border: 2px solid var(--accent); color: var(--ink); font-weight: 700; }
.admin-body .button-secondary.cast-retire-go:hover { background: var(--accent-soft); }
.cast-del-alt { margin: 0 0 12px; }
.cast-del-alt .button-secondary { min-height: 48px; padding: 0 18px; }
.cast-retired-note { margin: 0 0 12px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.7; }
.cast-retire-back { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 10px; }
.cast-retire-back .button-secondary { min-height: 44px; }
.cast-retire-zone p { margin: 0; font-size: 15px; line-height: 1.8; }
.cast-retire-zone .button-secondary { min-height: 48px; }
.cast-state-fixed { display: grid; gap: 4px; }
.cast-state-fixed strong { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border: 2px dashed var(--line); border-radius: 10px; font-size: 16px; }

/* 店舗設定 › SEO の設定（2026-11-21 SEO-S）: 検索結果の見本・どこに出る？の図・文字数 */
.seo-out { display: block; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #2c2a33; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.seo-where { margin: 0; display: grid; gap: 8px; }
.seo-where figcaption { font-size: 14px; line-height: 1.8; color: #3a3742; }
.seo-serp { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid #d6d3dc; border-radius: 10px; background: #fff; overflow-wrap: anywhere; font-family: Arial, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
.seo-serp-url { font-size: 13px; color: #1f6b3a; }
.seo-serp-title { font-size: 18px; font-weight: 400; line-height: 1.4; color: #1a0dab; }
.seo-serp-desc { font-size: 14px; line-height: 1.6; color: #3c4043; }
.seo-serp-kind { justify-self: start; padding: 2px 8px; border-radius: 999px; background: #eceaf1; color: #2c2a33; font-size: 12px; font-weight: 700; }
.seo-tag { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: #2c2a33; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.seo-previews { display: grid; gap: 12px; }
@media (min-width: 900px) { .seo-previews { grid-template-columns: 1fr 1fr; } }
.seo-count { font-size: 13px; color: #4a4752; }
.seo-serp.is-long { border-color: #a3301f; }
.seo-serp.is-long .seo-count { color: #a3301f; font-weight: 700; }
.seo-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; font-size: 16px; }
.seo-page-row { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.seo-page-row legend { padding: 0 4px; font-weight: 700; }
/* 検索で見つけてもらう設定の作り直し（2026-11-21 本人「分かりにくい」）: 質問の番号・できた言葉・くわしい設定のたたみ */
[data-seo-brand-hint][hidden] { display: none; }
.seo-intro-lead { margin: 0; font-size: 16px; line-height: 1.9; color: #2c2a33; }
.seo-question { display: grid; gap: 6px; }
.seo-q-label { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #2c2a33; }
.seo-q-no { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #2c2a33; color: #fff; font-size: 15px; }
.seo-made { margin: 0; padding: 12px 14px; border: 2px solid #2c2a33; border-radius: 10px; background: #fff; font-size: 16px; overflow-wrap: anywhere; }
.seo-made strong { font-size: 18px; }
.seo-advanced > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 44px; cursor: pointer; font-size: 18px; font-weight: 700; color: #2c2a33; }
.seo-advanced > summary small { font-size: 14px; font-weight: 400; color: #4a4752; }
.seo-advanced h3 { margin: 8px 0 0; font-size: 17px; }
.article-alt-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; }
.article-alt-row .photo-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.seo-caution { padding: 10px 12px; border-left: 4px solid #c9a227; background: #fff8e1; color: #3b3320; }

/* マイページの渡し方（2026-11-21 ACC）・キャストの編集の「マイページ」の欄 */
.mypage-guide-url { margin: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; overflow-wrap: anywhere; font-size: 16px; }
.mypage-guide-steps { margin: 0; padding-left: 1.6em; line-height: 1.9; }
.mypage-guide-steps li + li { margin-top: 4px; }
.mypage-guide h3 { margin: 8px 0 0; font-size: 16px; }
.mypage-account-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.mypage-account-state strong { overflow-wrap: anywhere; }
.mypage-account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mypage-account-actions a { min-height: 44px; display: inline-flex; align-items: center; }

/* 店舗設定の各項目の見出しの「？ どこに出る？」（2026-11-21 ACC）。
   言葉つきのボタンが 38px の四角に押し込まれ、文字が縦に1字ずつ並んで本文に重なっていた。言葉の長さに合わせ、押せる高さ 44px に */
.panel-head { flex-wrap: wrap; }
.panel-head .where-button.has-text { width: auto; height: auto; min-height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; }

/* 会員様へのお便り（2026-11-22 MEM）。選ぶ欄は大きな札（押せる高さ 56px）、選んだ札はお店の色の枠。べた塗り・グラデーションは使わない */
.letter-choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.letter-choices legend { margin-bottom: 6px; font-weight: 700; }
.letter-choice { display: grid; gap: 8px; min-height: 56px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.letter-choice > label, label.letter-choice { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.letter-choice input[type=radio] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.letter-choice span { display: grid; gap: 2px; min-width: 0; }
.letter-choice strong { font-size: 16px; }
.letter-choice small { font-size: 13px; color: var(--muted); }
.letter-choice:has(input[type=radio]:checked) { border-color: var(--accent); background: var(--accent-soft); }
.letter-choice .letter-more { display: none; padding-left: 34px; font-size: 14px; }
.letter-choice:has(input[type=radio]:checked) .letter-more { display: grid; gap: 4px; }
.letter-choice .letter-more select, .letter-choice .letter-more input { min-height: 48px; max-width: 100%; }
.letter-save { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.letter-save button { min-height: 52px; }
.letter-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.letter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.letter-row:last-child { border-bottom: 0; }
.letter-row-main { display: grid; gap: 2px; min-width: 0; }
.letter-row-main strong { overflow-wrap: anywhere; }
.letter-count { grid-column: 1 / -1; display: grid; gap: 4px; font-size: 14px; }
.letter-count-nums b { font-size: 18px; }
.letter-count-note { color: var(--muted); font-size: 13px; }
.letter-bar { display: block; height: 8px; max-width: 240px; border-radius: 999px; background: var(--line); overflow: hidden; }
.letter-bar i { display: block; height: 100%; background: var(--accent); }
.letter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.letter-actions form { margin: 0; }
.letter-actions .button-secondary.is-small, .letter-actions .edit-button { min-height: 44px; }
@media (min-width: 900px) {
  .letter-row { grid-template-columns: minmax(0, 1fr) auto minmax(220px, 280px) auto; }
  .letter-count, .letter-actions { grid-column: auto; }
}
/* お便りの一覧の知らせ（2026-11-22 お便りのレビュー B2・B6） */
.notice.letter-note { background: #fff; border: 2px solid var(--line); color: var(--ink); }
.letter-reason { color: var(--warn) !important; }

/* ホテル一覧（2026-11-23 16回目）。ほかの画面には効かない名前だけ */
.hotel-admin .filter-tabs a { min-height: 44px; }
.hotel-admin .filter-row select, .hotel-admin .filter-row button { min-height: 44px; }
.hotel-list .slide-info strong { overflow-wrap: anywhere; }
.hotel-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hotel-kind, .hotel-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border: 1px solid; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.hotel-kind.is-love { border-color: #e7b3c8; background: #fdf0f5; color: #8c2453; }
.hotel-kind.is-general { border-color: #b6cde6; background: #eff5fc; color: #1f4c80; }
.hotel-tag.is-info { border-color: #b6cde6; background: #eff5fc; color: #1f4c80; }
.hotel-tag.is-ok { border-color: #9fdcb8; background: #e6f7ec; color: #14663a; }
.hotel-tag.is-warn { border-color: #e9cf8a; background: #fdf6e3; color: #6e4d00; }
.hotel-tag.is-alert { border-color: #eab0aa; background: #fdeeec; color: #9b2216; }
.hotel-tag.is-muted { border-color: #d6d1d9; background: #f4f2f5; color: #4f4852; }
.hotel-warn { color: #8a4b00 !important; }
.hotel-rows { display: grid; gap: 10px; }
.hotel-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hotel-row.is-tag { grid-template-columns: 88px minmax(0, 1fr); }
.hotel-row.is-tag .hotel-tone { grid-column: 1 / -1; }
@media (min-width: 700px) { .hotel-row.is-tag { grid-template-columns: 88px minmax(0, 1fr) 220px; } .hotel-row.is-tag .hotel-tone { grid-column: auto; } }
.hotel-order input { width: 100%; }
.hotel-choice { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hotel-choice .check { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.hotel-prices { display: grid; gap: 10px; }
@media (min-width: 700px) { .hotel-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hotel-price { display: grid; gap: 8px; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hotel-price legend { padding: 0 4px; font-weight: 600; }

/* ===== 会員の入力（2026-11-23 17回目）: キャストのログインの入力（mypage/login の .cast-login-form の中だけ。店舗管理の画面は変わらない） =====
   会員の入力（site.css の最後）と同じ濃さ: 地は白・枠 2px #7d7480（白い地で明暗差 4.5 前後）・高さ 52px・文字 16px。
   押している間は枠の色が変わり、外にうすい光の輪。項目の名前は欄の上に濃い字＋「必須」の札。間違いは赤い枠と欄のすぐ下の文（#b42318 は白地で 6.6）。
   パスワードの「表示」は欄の中の右の端（目の印＋小さな字。押せる所は 44px）。飾りは足さない */
.cast-login-form { gap: 18px; }
.cast-field { display: grid; gap: 7px; min-width: 0; }
.cast-login-form .cast-field-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink, #222); }
.cast-req { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: #a8285f; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: .06em; }
.cast-login-form :is(input[type="email"], input[type="password"], input[type="text"]) {
  box-sizing: border-box; width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #7d7480; border-radius: 12px;
  background: #fff; color: #2a2228; font: inherit; font-size: 16px; line-height: 1.5; box-shadow: inset 0 1px 2px rgb(0 0 0 / .05);
}
.cast-login-form :is(input[type="email"], input[type="password"], input[type="text"]):is(:focus, :focus-visible) { outline: none; border-color: #a8285f; box-shadow: 0 0 0 4px rgb(200 52 122 / .24); }
.cast-login-form .has-error :is(input[type="email"], input[type="password"], input[type="text"]) { border-color: #b42318; }
.cast-login-form .has-error :is(input[type="email"], input[type="password"], input[type="text"]):is(:focus, :focus-visible) { box-shadow: 0 0 0 4px rgb(180 35 24 / .2); }
.cast-field-error { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; color: #b42318; font-size: 14px; font-weight: 700; line-height: 1.55; }
.cast-field-error svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.cast-login-form .password-field { position: relative; display: block; margin: 0; }
.cast-login-form .password-field input { padding-right: 96px; }
.cast-login-form .password-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #5a4f58; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
}
.cast-login-form .password-toggle svg { width: 20px; height: 20px; }
.cast-login-form .password-toggle .pw-eye { display: inline-flex; }
.cast-login-form .password-toggle .pw-eye.is-hide, .cast-login-form .password-toggle[aria-pressed="true"] .pw-eye.is-show { display: none; }
.cast-login-form .password-toggle[aria-pressed="true"] .pw-eye.is-hide { display: inline-flex; }
.cast-login-form .password-toggle:hover { background: rgb(0 0 0 / .05); }
/* 切り替えは JavaScript が出す（初めは hidden）。出ていないときは右の余白も要らない */
.cast-login-form .password-toggle[hidden] { display: none; }
.cast-login-form .password-field:has(.password-toggle[hidden]) input { padding-right: 14px; }
.cast-login-form .password-toggle:focus-visible { outline: 3px solid #a8285f; outline-offset: -3px; }

/* ===== 20回目 担当T: 店舗管理の推しトークを読む画面を LINE の形に（2026-11-23 本人の求め。19回目の .adm-talk-* を書き換え） =====
   店舗管理だけの部品（.adm-talk-*）。キャストのマイページ・会員のページの .talk-log は変えない。
   決まった高さの箱（.adm-talk-box）の中だけが動く。古い発言が上・新しい発言が下。開いたときは箱のいちばん下。
   色（明るさの差は WCAG の式で計算。4.5 以上）:
   箱の地 #e9eef3 に 本文 #111（16.2）・名前 #2b3440（10.8）・時刻 #4a5562 13px（6.5）
   お客様＝左 白い吹き出し #fff に文字 #111（18.9）・薄い枠 #c3ccd6
   キャスト＝右 緑の吹き出し #a3e99c に文字 #111（13.2）
   日付の札 #d3dbe4 に文字 #2b3440（9.0）・箱の上の名前の行 #f6f8fa に #333（11.9）・注意書き #444 / #fff（9.7） */
.adm-talk { display: grid; gap: 10px; min-width: 0; }
.adm-talk-back { margin: 0; font-size: 14px; }
/* 操作と注意書き（箱の上に小さく） */
.adm-talk-tools { display: grid; gap: 6px; }
.adm-talk-actions { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.adm-talk-actions form { margin: 0; }
.adm-talk-actions .button-secondary.is-small { min-height: 40px; padding: 0 10px; font-size: 13px; }
.adm-talk-note { margin: 0; font-size: 13px; line-height: 1.55; color: #444; }
.adm-talk-met summary { cursor: pointer; min-height: 28px; }
.adm-talk-met p { margin: 2px 0 0; }
.adm-talk-tools .talk-report { font-size: 14px; }
/* 箱: 画面の高さに収まる大きさ（上の帯 60px・下のタブ 約67px・すき間を引く。最低 360px） */
.adm-talk-box { display: flex; flex-direction: column; min-width: 0; height: calc(100vh - 60px - 67px - 24px); height: calc(100dvh - 60px - 67px - env(safe-area-inset-bottom, 0px) - 24px); min-height: 360px; border: 1px solid #c3ccd6; border-radius: 12px; overflow: hidden; background: #e9eef3; }
@media (min-width: 1024px) { .adm-talk-box { height: calc(100vh - 68px - 40px); height: calc(100dvh - 68px - 40px); } }
/* 箱の上の、だれとだれのトークかの行（箱の中で動かない） */
.adm-talk-head { flex: none; padding: 8px 12px; background: #f6f8fa; border-bottom: 1px solid #c3ccd6; }
.adm-talk-head h1 { margin: 0; font-size: 17px; line-height: 1.5; color: #111; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.adm-talk-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; word-break: break-word; }
.adm-talk-pair { color: #444; font-weight: 400; }
.adm-talk-tag { display: inline-block; flex: none; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.7; color: #333; background: #fff; border: 1px solid #c3ccd6; }
.adm-talk-count { margin: 2px 0 0; font-size: 13px; color: #333; }
.adm-talk-count strong { color: #111; }
.adm-talk-empty { margin: 0; padding: 16px; font-size: 15px; color: #111; }
/* 動く所。column-reverse なので、スクリプトが無くても開いたときは下の端（いちばん新しい発言） */
.adm-talk-scroll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column-reverse; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.adm-talk-scroll:focus-visible { outline: 3px solid #2b3440; outline-offset: -3px; }
.adm-talk-inner { margin-bottom: auto; padding: 10px 10px 14px; }
.adm-talk-more, .adm-talk-end { margin: 4px 0 10px; text-align: center; }
.adm-talk-more .button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; text-decoration: none; background: #fff; }
.adm-talk-end { font-size: 13px; color: #4a5562; }
.adm-talk-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
/* 1件。吹き出しの幅は箱の7割まで */
.adm-talk-msg { display: grid; gap: 2px; min-width: 0; justify-items: start; margin-top: 8px; scroll-margin-top: 16px; }
.adm-talk-msg.is-cont { margin-top: 0; }
.adm-talk-msg.is-cast { justify-items: end; }
.adm-talk-name { margin: 0 4px; font-size: 13px; font-weight: 700; color: #2b3440; word-break: break-word; }
.adm-talk-row { display: flex; align-items: flex-end; gap: 6px; max-width: 70%; min-width: 0; }
.adm-talk-msg.is-cast .adm-talk-row { flex-direction: row-reverse; }
.adm-talk-body { min-width: 0; display: grid; gap: 4px; }
.adm-talk-time { flex: none; font-size: 12px; color: #4a5562; white-space: nowrap; }
/* 2026-11-24 時刻の上の既読・未読（LINE と同じ位置）。色だけでなく文字で分かる。
   既読 #4a5562 / 箱の地 #e9eef3（6.5）・名前の行の地 #f6f8fa（7.0）・未読 #9a3412 / #fff4e5（6.8）＋橙の枠＋太字。まとめの行の未読の数も同じ色 */
.adm-talk-meta { flex: none; display: grid; gap: 1px; justify-items: start; line-height: 1.3; }
.adm-talk-msg.is-cast .adm-talk-meta { justify-items: end; }
.adm-talk-read { font-size: 11px; white-space: nowrap; }
.adm-talk-read.is-read { color: #4a5562; }
.adm-talk-read.is-unread { padding: 0 5px; border: 1px solid #c2410c; border-radius: 4px; background: #fff4e5; color: #9a3412; font-weight: 700; }
.adm-talk-unread { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: #333; }
.adm-talk-unread-item strong { color: #111; }
.adm-talk-unread-item.has-unread strong { padding: 0 5px; border-radius: 4px; background: #fff4e5; color: #9a3412; border: 1px solid #c2410c; }
.adm-talk-lastread { margin: 1px 0 0; font-size: 12px; color: #4a5562; }
/* 退会した会員・やめたキャストのトーク: もう読む人がいないので、未読も目立たせない（文字と件数は残す） */
.adm-talk-read.is-unread.is-quiet { padding: 0; border: 0; background: none; color: #4a5562; font-weight: 400; }
.adm-talk-unread-note { font-size: 12px; color: #4a5562; }
.adm-talk-bubble { margin: 0; padding: 8px 12px; border-radius: 16px; font-size: 16px; line-height: 1.6; color: #111; word-break: break-word; overflow-wrap: anywhere; }
.adm-talk-msg.is-member .adm-talk-bubble { background: #fff; border: 1px solid #c3ccd6; }
.adm-talk-msg.is-cast .adm-talk-bubble { background: #a3e99c; }
/* 予約の希望などのカードも、吹き出しと同じ幅まで。中の表はせまい幅では縦に */
.adm-talk-msg.has-card .adm-talk-row { width: 70%; }
.adm-talk-msg.has-card .adm-talk-body { flex: 1 1 auto; }
.adm-talk-msg.has-card .talk-card { width: 100%; background: #fff; }
.adm-talk-msg.has-card .talk-card p { margin: 0; }
.adm-talk-msg.has-card .talk-card .talk-card-text { padding: 12px 14px; }
/* 日付が変わる所: まん中に小さな札 */
.adm-talk-day { display: flex; justify-content: center; margin: 12px 0 4px; }
.adm-talk-day span { padding: 2px 12px; border-radius: 999px; background: #d3dbe4; color: #2b3440; font-size: 12px; font-weight: 700; }
@media (max-width: 640px) {
  .adm-talk-head h1 { font-size: 16px; }
  .adm-talk-inner { padding: 8px 8px 12px; }
  .adm-talk-msg.has-card .talk-card-rows > div { grid-template-columns: 1fr; gap: 0; }
}
/* 19回目の合流レビュー: 確定・お断りのカードの文にも内側の余白（.talk-log の下だけの決まりが効かないため） */
.adm-talk-msg.has-card .talk-card .talk-card-text { padding: 12px 14px; }

/* ==== 20回目 エ（料金・オプション・コスプレ・ホテル） ==== */
/* 一覧の上の「名前で探す」と、出ている・出ていないの数 */
.r20e-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.r20e-tools .r20e-search { flex: 1 1 14em; min-width: 0; max-width: 24em; }
.r20e-tools .r20e-search input { width: 100%; }
.r20e-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 14px; }
.r20e-none { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
.r20e-none[hidden] { display: none; }
/* 行の札（サイトに出ている／出ていない） */
.r20e-state { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.r20e-state.is-on { background: #e3f4e8; color: #1d6b38; }
.r20e-state.is-off { background: #eeeeee; color: #444; }
.r20e-state.is-new { background: #e8eefc; color: #2f4a8a; }
.r20e-state.is-gone { background: #fdecec; color: #8a2020; }
.catalog-row .r20e-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
/* 消すボタンは行のいちばん下の右（並べ替え・追加のボタンから離す） */
.r20e-row-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.r20e-row-foot .button-secondary { min-height: 44px; }
.catalog-row.r20e-removing { border-color: #f0b6c2; background: #fff7f9; }
.catalog-row.r20e-removing .catalog-row-fields { opacity: .55; }
.r20e-gone-note { margin: 0; color: #8a2020; font-size: 14px; font-weight: 700; }
.r20e-gone-note[hidden] { display: none; }
/* あまり変えない設定の折りたたみ（料金） */
.r20e-more { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.r20e-more > summary { cursor: pointer; padding: 14px 16px; min-height: 48px; font-weight: 700; list-style: revert; }
.r20e-more > summary small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.r20e-more[open] > summary { border-bottom: 1px solid var(--line); }
.r20e-more-body { padding: 4px 16px 16px; display: grid; gap: 16px; }
.r20e-label { margin: 8px 0 0; font-size: 14px; color: var(--muted); font-weight: 700; }
/* ホテル一覧: 出していない札と、探して見つからなかった行 */
.hotel-list li[hidden] { display: none !important; }
@media (max-width: 640px) {
  .r20e-tools .r20e-search { max-width: none; flex-basis: 100%; }
  .r20e-more-body { padding: 4px 10px 12px; }
}
.catalog-row[data-item][hidden], .single-option-casts li[hidden] { display: none !important; }
.slide-actions .r20e-far { margin-left: auto; }
@media (max-width: 640px) { .slide-actions .r20e-far { margin-left: 0; flex-basis: 100%; display: flex; justify-content: flex-end; } }
/* ==== 20回目 イ（予約・会員の編集と一覧） ==== */
/* 会員の編集: 名前の下の状態の札・意味のまとまり・たたむ所・元に戻せない操作の見出し */
.r20i-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.r20i-group { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; min-width: 0; }
.r20i-group:first-of-type { border-top: 0; padding-top: 0; }
.r20i-group > legend { padding: 0; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: #333; }
.r20i-error-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #8a2020; font-weight: 700; }
.r20i-fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; cursor: pointer; list-style: none; }
.r20i-fold > summary::-webkit-details-marker { display: none; }
.r20i-fold > summary::before { content: "▶"; font-size: 12px; color: var(--muted); transition: transform .15s; }
.r20i-fold[open] > summary::before { transform: rotate(90deg); }
.r20i-fold > summary h2 { margin: 0; }
.r20i-fold-hint { font-size: 13px; color: var(--muted); }
.r20i-fold[open] .r20i-fold-hint { display: none; }
.r20i-fold > .stack { margin-top: 12px; }
.r20i-danger-head { margin: 28px 0 8px; font-size: 16px; color: #8a2020; }
/* 会員の一覧: 「開く」を指で押しやすい大きさに */
.member-open .button-secondary.is-small { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; text-decoration: none; }
/* 予約台帳: 確定待ちのボタンの間をあける・一覧の状態の札・名前で探す欄 */
.r20i-pending-actions { gap: 16px; flex-wrap: wrap; }
.r20i-state { margin-bottom: 6px; }
.r20i-find { display: grid; gap: 4px; margin: 4px 0 10px; }
.r20i-find label { max-width: 360px; }
.r20i-find-count { margin: 0; font-size: 14px; color: var(--muted); min-height: 1em; }
[data-r20i-row][hidden] { display: none !important; }
/* ==== 20回目 ウ（スライダー・お知らせ・イベント・割引・写メ日記の管理） ==== */
/* 名前で探す欄（admin/news/find）。絞り込んで外れたものは隠す */
.r20u-find { display: grid; gap: 6px; margin: 0 0 4px; }
.r20u-find input[type="search"] { width: 100%; max-width: 420px; }
.r20u-find .hint { margin: 0; min-height: 1em; }
.r20u-hide { display: none !important; }
/* 公開／下書きの札。カード（li）に is-off が付くと「下書き」に変わる（admin.js の切り替えがカードに付ける） */
.r20u-state { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-self: start; margin: 0 0 2px; }
.r20u-state b { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: normal; }
.r20u-state .r20u-on { background: #e6f7ec; color: #14663a; border: 1px solid #9fdcb8; }
.r20u-state .r20u-off { display: none; background: #fff4d6; color: #6e4b00; border: 1px solid #f0d49a; }
.r20u-state .r20u-wait { background: #e8eefc; color: #2f4a8a; border: 1px solid #c9d6f3; }
li.is-off .r20u-state .r20u-on { display: none; }
li.is-off .r20u-state .r20u-off { display: inline-flex; }
/* スライドの一覧: 編集と削除の段。並べ替え（▲▼）とは段を分け、削除は右端に線で区切る */
.slide-list li > .r20u-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.r20u-tools .r20u-edit { flex: 1 1 auto; min-height: 44px; }
.r20u-tools .r20u-del { margin: 0 0 0 auto; padding-left: 12px; border-left: 1px solid var(--line); }
.r20u-tools .r20u-del button { min-height: 44px; }
@media (min-width: 700px) { .r20u-tools .r20u-edit { flex: 0 0 220px; } }
/* 入力のまとまりの見出しと、めったに使わない項目の折りたたみ */
.r20u-group { margin: 14px 0 0; padding: 0 0 6px; font-size: 16px; border-bottom: 2px solid var(--line); }
.r20u-group:first-child { margin-top: 0; }
.r20u-fold { border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); }
.r20u-fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.r20u-fold > .stack { padding: 0 14px 14px; }
.r20u-fold-note { padding: 2px 8px; border-radius: 999px; background: #e8eefc; color: #2f4a8a; font-size: 12px; }
/* お知らせ・写メ日記の一覧: 削除の段（並べ替え・編集と離す） */
.r20u-del-line { display: flex; justify-content: flex-end; padding: 0 16px 12px; }
.r20u-del-line form { margin: 0; }
.r20u-del-line button { min-height: 44px; }
.diary-cards > li.is-draft:not(.is-off) .diary-card-photo { opacity: 1; }
.diary-cards > li .r20u-state { margin-bottom: 4px; }
/* 割引の行: 消すボタンを行の右上に */
.r20u-discount-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.r20u-discount-head button { min-height: 44px; }
.discount-row.r20u-cleared { border-style: dashed; opacity: .7; }
.r20u-discount-head .r20u-state b { display: inline-flex; }
.r20u-del-line.is-diary { padding: 8px 0 0; margin-top: 6px; border-top: 1px dashed var(--line); }
.r20u-find + .diary-cards, .r20u-find + .parts-list, .r20u-find + .slide-list { margin-top: 8px; }
/* ==== 20回目 オ（店舗設定・相互リンク・よくある質問・ほかのページ・SEO） ==== */
/* 間違いのある区切りへのリンク（店舗設定の1画面のいちばん上） */
.r20o-errsum { border: 2px solid var(--error); border-radius: var(--radius); background: var(--error-soft); color: var(--error); padding: 12px 16px; }
.r20o-errsum p { margin: 0; line-height: 1.7; }
.r20o-errsum-list { margin: 8px 0 0; padding-left: 1.2em; line-height: 1.9; }
.r20o-errsum-list a { color: var(--error); font-weight: 700; }
.r20o-jump[hidden] { display: none; }
/* 下に貼り付く帯の「保存しました」「入力をご確認ください」 */
.r20o-bar-note { font-weight: 700; }
.r20o-bar-note.is-saved { color: var(--ok); }
.r20o-bar-note.is-error { color: var(--error); text-decoration: underline; }
/* 折りたたみ（めったに使わない項目） */
.r20o-fold-lead { margin: 8px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
details.r20o-fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 14px; }
details.r20o-fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 48px; cursor: pointer; font-weight: 700; }
details.r20o-fold > summary::marker { color: var(--accent); }
details.r20o-fold[open] { padding-bottom: 14px; }
details.r20o-fold[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
/* 出ている・出ていないの札 */
.r20o-tags { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
.r20o-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.r20o-tag.is-on { background: var(--ok-soft); color: #14663a; }
.r20o-tag.is-off { background: var(--gray-soft); color: #555; }
/* 一覧の上の数と、探す欄 */
.r20o-listtools { display: grid; gap: 8px; margin: 4px 0 10px; }
.r20o-count { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.r20o-search { display: grid; gap: 4px; max-width: 420px; }
.r20o-filter-none { margin: 0; }
[data-r20o-item][hidden] { display: none !important; }
/* よくある質問のカード */
.r20o-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.r20o-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 10px 12px 12px; }
.r20o-card.is-off { background: var(--ground); }
.r20o-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.r20o-no { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.r20o-card-head .r20o-clear { margin-left: auto; }
details#faq-more .grid-2 { margin-bottom: 10px; }
/* 相互リンク: 消すボタンを並べ替えのボタンから離す */
.part-moves .r20o-del { margin-left: auto; }
.part-name .r20o-tags { margin-top: 4px; }
@media (max-width: 480px) {
  .r20o-card-head .r20o-clear { margin-left: 0; }
  .part-moves .r20o-del { margin-left: 0; flex-basis: 100%; display: flex; justify-content: flex-end; margin-top: 6px; }
}
/* スマホでは帯の「直したら」を隠す決まりがあるが、「保存しました」「入力をご確認ください」は出す */
@media (max-width: 480px) { .save-bar > .r20o-bar-note:first-child { display: inline; font-size: 14px; } .save-bar > .r20o-bar-note:first-child[hidden] { display: none; } }
/* ==== 20回目 ア（キャストの一覧・編集・出勤） ==== */
.cast-row[hidden], .shift-cast[hidden] { display: none !important; }
.r20a-state { margin-right: 4px; vertical-align: 1px; }
.r20a-find-note { flex-basis: 100%; margin: 4px 0 0; font-weight: 600; }
.r20a-more { border: 1px dashed var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface); }
.r20a-more > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.r20a-more[open] { padding-bottom: 14px; }
.r20a-saved, .r20a-unsaved { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; line-height: 1.4; }
.r20a-saved { background: var(--ok-soft); color: var(--ok); }
.r20a-saved svg { width: 18px; height: 18px; flex: none; }
.r20a-unsaved { background: #fdecec; color: #8a2020; }
.r20a-shift-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.r20a-shift-tools[hidden] { display: none; }
.r20a-shift-tools input[type=search] { flex: 1 1 180px; min-width: 0; min-height: 44px; }
.r20a-shift-tools .button-secondary { min-height: 44px; }
@media (max-width: 480px) { .save-bar > span.r20a-saved, .save-bar > span.r20a-unsaved { display: inline-flex; flex: 1 1 auto; min-width: 0; font-size: 13px; padding: 6px 10px; } }
/* ==== 21回目 F 操作マニュアル ==== */
/* 各画面の上の帯の「？ この画面の操作マニュアル」（帯が無い画面は man-help-bar の中） */
.man-help-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.man-help-link:hover { background: rgba(255, 255, 255, .26); }
.man-help-q { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 14px; line-height: 1; }
.page-where:has(.man-help-link) { flex-wrap: wrap; }
.man-help-bar { display: flex; justify-content: flex-end; }
.man-help-bar .man-help-link { border-color: var(--accent); background: var(--surface); color: var(--accent); }
.man-help-bar .man-help-q { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .page-where .man-help-link { flex: 1 1 100%; justify-content: center; } }
/* 目次 */
.man-search { display: grid; gap: 6px; margin: 0 0 16px; }
.man-search[hidden] { display: none; }
.man-search label { font-weight: 700; }
.man-search input[type="search"] { width: 100%; max-width: 480px; min-height: 48px; font-size: 16px; }
.man-search-none { margin: 0; color: var(--muted); }
.man-search-none[hidden] { display: none; }
.man-group { margin: 0 0 14px; }
.man-group[hidden], .man-list li[hidden] { display: none !important; }
.man-group > h2 { margin: 0 0 8px; font-size: 17px; }
.man-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.man-list li + li { border-top: 1px solid var(--line); }
.man-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 4px; color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.5; }
a.man-link:hover { color: var(--accent); }
.man-link i { flex: none; font-style: normal; font-size: 22px; color: var(--accent); }
.man-link.is-soon { color: var(--muted); cursor: default; }
.man-soon { flex: none; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: #eeeceb; color: #555; font-size: 13px; font-weight: 700; white-space: nowrap; }
/* 1ページ */
.man-page { max-width: 760px; }
.man-back { margin: 0 0 12px; }
.man-back a { font-weight: 700; }
.man-page > .man-back:last-child { margin-top: 24px; }
.man-group-name { margin: 0; color: var(--muted); font-size: 14px; }
.man-title { margin: 2px 0 8px; font-size: 24px; line-height: 1.4; }
.man-lead { margin: 0 0 12px; font-size: 16px; line-height: 1.8; }
/* 業種に合わせたマニュアルの写真の一言（2026-11-25。風俗のお店には出ない） */
.man-photo-note { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid var(--accent); background: #fff; font-size: 14px; line-height: 1.7; color: #3d3a44; }
.man-photo-soon { margin: 4px 0 0; font-size: 14px; color: #5a5663; }
.man-tools { margin: 0 0 16px; }
.man-soon-box { display: grid; gap: 8px; justify-items: start; padding: 18px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface); }
.man-soon-box p { margin: 0; }
.man-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.man-step { padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.man-step-text { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 17px; line-height: 1.7; }
.man-num { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; line-height: 1; margin-top: 1px; }
.man-shot { display: block; margin: 12px auto 0; max-width: 480px; text-decoration: none; }
.man-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.man-zoom-hint { display: block; margin-top: 4px; text-align: center; color: var(--muted); font-size: 13px; }
.man-trouble, .man-related { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); }
.man-trouble { border-color: #f0d49a; background: #fffaf0; }
.man-trouble h2, .man-related h2 { margin: 0 0 8px; font-size: 17px; }
.man-trouble ul { margin: 0; padding-left: 1.3em; line-height: 1.8; }
.man-zoom { width: min(960px, 100%); max-height: 100%; padding: 10px; border: 0; border-radius: 12px; }
.man-zoom::backdrop { background: rgba(0, 0, 0, .7); }
.man-zoom img { display: block; width: 100%; height: auto; }
.man-zoom form { display: flex; justify-content: center; margin-top: 8px; }
/* スマホ・パソコンの切り替え（24回目2）。data-man-mode が both なら両方、phone / pc なら片方だけ */
.man-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.man-mode[hidden] { display: none; }
.man-mode-label { font-weight: 700; }
.man-mode button { min-height: 44px; padding: 0 16px; border: 2px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.man-mode button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.man-mode-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.man-step-words { display: grid; gap: 6px; }
.man-path { display: block; }
.man-v-tag { display: none; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft, #f3e6ee); color: var(--accent); font-size: 13px; vertical-align: 1px; }
.man-shot-tag { display: none; margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.man-shot.is-phone { max-width: 390px; }
.man-shot.is-pc { max-width: 100%; }
.man-v-phone-only, .man-v-pc-only, .man-v-both-only { display: none; }
.man-page[data-man-mode="both"] .man-v-tag, .man-page[data-man-mode="both"] .man-shot-tag { display: inline-block; }
.man-page[data-man-mode="both"] .man-shot-tag { display: block; }
.man-page[data-man-mode="phone"] .man-v-pc, .man-page[data-man-mode="pc"] .man-v-phone { display: none !important; }
.man-page[data-man-mode="phone"] .man-v-phone-only, .man-page[data-man-mode="pc"] .man-v-pc-only, .man-page[data-man-mode="both"] .man-v-both-only { display: inline; }
/* 印刷の形: 左のメニュー・上の帯・ボタンを出さない。手順の途中で写真が切れない */
@media print {
  body.admin-body:has(.man-page) .admin-top, body.admin-body:has(.man-page) .admin-side, body.admin-body:has(.man-page) .admin-tabs,
  body.admin-body:has(.man-page) .page-where, body.admin-body:has(.man-page) .notice, .man-noprint, .man-zoom { display: none !important; }
  body.admin-body:has(.man-page) { background: #fff; padding: 0; }
  body.admin-body:has(.man-page) .admin-frame, body.admin-body:has(.man-page) .admin-main { display: block; margin: 0; padding: 0; max-width: none; }
  .man-page { max-width: none; }
  .man-step, .man-trouble, .man-shot { page-break-inside: avoid; break-inside: avoid; }
  .man-step { border-width: 1px; }
  .man-shot, .man-shot.is-phone { max-width: 300px; }
  .man-shot.is-pc { max-width: 100%; }
  .man-mode-note { color: #000; }
  .man-num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== トップ画像スライダーの「内容」＝文と画像の箱の並び（2026-11-24 23回目1） ===== */
.slide-edit-cover { display: flex; align-items: center; gap: 12px; }
.slide-edit-cover img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.slide-edit-cover .hint { margin: 0; }
.slide-blocks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.slide-block { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); }
.slide-block.is-dragging { opacity: .6; outline: 2px dashed var(--accent); }
.slide-block-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #faf8fa; border-radius: 12px 12px 0 0; }
.slide-block-grip { display: grid; place-items: center; width: 36px; height: 40px; flex: none; color: var(--muted); font-weight: 700; letter-spacing: -2px; cursor: grab; touch-action: none; user-select: none; }
.slide-block-grip:active { cursor: grabbing; }
.slide-block-tag { padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.slide-block-tag.is-text { background: #e6f0fb; color: #1f5f99; }
.slide-block-tag.is-image { background: var(--accent-soft); color: var(--accent); }
.slide-block-space { flex: 1; }
.slide-block-move, .slide-block-del { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; flex: none; }
.slide-block-del { padding: 0 12px; color: #b3261e; border-color: #e3b3ae; }
.slide-block-body { padding: 10px 12px 12px; min-width: 0; }
.slide-image-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.slide-image-frame { position: relative; display: grid; place-items: center; width: 132px; height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f6f3f6; }
.slide-image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.slide-image-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; background: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; color: var(--accent); text-align: center; }
.slide-image-wait[hidden], .slide-image-frame img[hidden] { display: none; }
.slide-image-size, .slide-image-name { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.slide-image-fields { min-width: 0; }
.slide-image-fields input { width: 100%; min-width: 0; }
.slide-image-replace { position: relative; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; justify-self: start; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--accent-line); border-radius: 12px; background: #fff; color: var(--accent); font-size: 15px; font-weight: 700; cursor: pointer; }
.slide-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.slide-image-replace:focus-within, .slide-block-add:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.slide-block.is-waiting .slide-image-fields { opacity: .5; pointer-events: none; }
.slide-block-adds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.slide-block-add { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 12px; border: 2px dashed var(--accent); border-radius: 12px; background: #fff; color: var(--accent); font: inherit; font-weight: 700; text-align: center; cursor: pointer; }
.slide-upload-now { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.slide-upload-errors { margin: 0; padding: 10px 12px 10px 2em; border: 1px solid #e3b3ae; border-radius: 10px; background: #fdf1f0; color: #9b1c14; font-size: 14px; font-weight: 700; }
.slide-upload-errors[hidden], .slide-upload-now[hidden] { display: none; }
label.check.slide-gapless { display: flex; color: var(--ink); align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfbfc; font-weight: 700; cursor: pointer; }
label.check.slide-gapless input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.slide-gapless small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.slide-rules { padding: 10px 12px; border: 1px solid #f1d58a; border-radius: 12px; background: #fff8e1; font-size: 14px; }
.slide-rules ul { margin: 4px 0 0; padding-left: 1.2em; }
.slide-edit-form.is-busy .slide-save-bar button { opacity: .6; }
.slide-save-bar { justify-content: flex-end; }
@media (max-width: 560px) {
  .slide-image-row { grid-template-columns: minmax(0, 1fr); }
  .slide-image-frame { width: 100%; height: 160px; }
  .slide-block-adds { grid-template-columns: minmax(0, 1fr); }
  .slide-save-bar > button { flex: 1 1 0; }
}

/* ===== キャストの区分（2026-11-25 1店目の形。App\Support\CastGroups） ===== */
.cast-group-slot .cast-group-color { display: inline-flex; align-items: center; gap: 6px; flex: none; margin: 0; font-size: 14px; font-weight: 700; }
.cast-group-slot .cast-group-color input { flex: none; width: 48px; height: 44px; padding: 2px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.cast-group-pick { margin: 12px 0 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; }
.cast-group-pick legend { padding: 0 6px; font-weight: 700; }
.cast-group-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cast-group-choice { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.cast-group-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cast-group-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 3px solid transparent; border-radius: 999px; background: var(--g-bg, #fff); color: var(--g-ink, var(--ink)); font-weight: 700; font-size: 16px; }
.cast-group-choice.is-none span { border-color: var(--line); }
.cast-group-choice input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.cast-group-choice input:checked + span::before { content: '✓'; margin-right: 6px; }
.cast-group-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.status-words { margin: 10px 0 0; padding: 10px 14px 14px; border: 2px solid var(--line); border-radius: 14px; }
.status-words legend { padding: 0 6px; font-weight: 700; }

/* ===== ホームの案内状況: 出勤が多い日のまとまり（2026-11-25 1店目の形。App\Support\WaitBoard。10人以下の日は使わない） ===== */
.wait-board { display: grid; gap: 10px; }
.wait-search { display: grid; gap: 4px; margin: 0; font-weight: 700; font-size: 15px; }
.wait-search input { min-height: 48px; font-size: 16px; }
.wait-search-none { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff8e1; border: 1px solid #f1d58a; font-weight: 700; }
.wait-search-none[hidden], .wait-group[hidden], .wait-item[hidden] { display: none; }
.wait-group { border: 2px solid var(--line); border-radius: 14px; background: var(--surface, #fff); overflow: hidden; }
.wait-group > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; }
.wait-group > summary::-webkit-details-marker { display: none; }
.wait-group > summary::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #9a96a0; }
.wait-group.is-now > summary::before { background: #1f8a4c; }
.wait-group.is-next > summary::before { background: #c98a00; }
.wait-group.is-done > summary::before { background: #6b6770; }
.wait-group.is-none > summary::before { background: #fff; box-shadow: inset 0 0 0 2px #6b6770; }
.wait-group > summary::after { content: '開く ▾'; margin-left: 4px; color: var(--accent); font-size: 14px; white-space: nowrap; }
.wait-group[open] > summary::after { content: '閉じる ▴'; }
.wait-group[open] > summary { border-bottom: 1px solid var(--line); }
.wait-group-name { flex: 1; min-width: 0; }
.wait-group-count { flex: none; padding: 2px 12px; border-radius: 999px; background: var(--accent-soft, #f3e6ee); color: var(--ink); font-size: 15px; }
.wait-group.is-empty > summary { color: var(--muted); }
.wait-group-empty { margin: 0; padding: 12px 14px; }
.wait-group > .wait-card { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.wait-group > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* 見本を入れる（2026-11-25。admin/partials/sample-button・よくある質問） */
.sample-fill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; }
.sample-fill .hint { margin: 0; flex: 1 1 220px; min-width: 0; }
.sample-fill .sample-note { flex-basis: 100%; }
.onboard-sample { margin: 4px 0 0 4px; font-size: 13px; color: var(--muted); }
.onboard-sample a { color: var(--accent); }

/* WEB予約の作り直し・前半（2026-11-25）。「新しい予約の流れ」のお店だけに出る部品（BookingSettings::v2）。案2 の見本の色に合わせる */
.tl-legend i.is-precheck { background: #2563eb; }
.tl-legend i.is-overdue { background: #fff; border: 2px dashed #dc2626; }
.tl-legend i.is-guest-mark, .tl-block .is-guest-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: #fff; color: #7c2d12; font-size: 10px; font-style: normal; font-weight: 800; }
.tl-block.is-precheck { background: #2563eb; }
.tl-block.is-overdue { background: #fff; color: #b91c1c; border: 2px dashed #dc2626; box-shadow: none; }
.tl-block.is-overdue .is-guest-mark { border: 1px solid #dc2626; }
.tl-block .tl-state { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; opacity: .95; }
.tl-rule { margin: 4px 0 8px; font-size: 13px; color: #444; line-height: 1.6; }
.resv-notices .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 13px; }
.resv-notices li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.resv-notices small { color: var(--muted); }
.resv-sheet.is-v2 .resv-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 10px 16px 0; list-style: none; }
.resv-sheet.is-v2 .resv-steps li { padding: 8px 4px; border-radius: 8px; background: #f1f1f1; color: #666; font-size: 13px; font-weight: 700; text-align: center; }
.resv-sheet.is-v2 .resv-steps li.is-done { background: #e5e7eb; color: #374151; }
.resv-sheet.is-v2 .resv-steps li.is-now { background: #111; color: #fff; }
.resv-alert { margin: 0 0 10px; padding: 10px 12px; border: 2px dashed #dc2626; border-radius: 10px; background: #fff5f5; color: #991b1b; font-size: 14px; font-weight: 700; line-height: 1.6; }
.resv-state.is-precheck { background: #2563eb; color: #fff; }
.resv-state.is-plain { background: #fff; color: #111; border: 2px solid #d1d5db; }
.resv-sheet.is-v2 .resv-detail-actions { display: grid; gap: 8px; }
.resv-sheet.is-v2 .resv-detail-actions form { margin: 0; }
.resv-sheet.is-v2 .resv-detail-actions .resv-state { width: 100%; }
.resv-marks, .resv-cancel fieldset { margin: 0; padding: 0; border: 0; }
.resv-marks legend, .resv-cancel legend { font-size: 13px; font-weight: 700; color: #444; }
.resv-cancel { margin-top: 12px; }
.resv-cancel > summary { cursor: pointer; color: #b91c1c; font-weight: 700; font-size: 14px; }
.resv-cancel form { margin-top: 8px; }
.resv-cancel .resv-state { width: 100%; margin-top: 6px; }
.resv-template { display: grid; gap: 6px; }
.resv-template label { font-size: 13px; font-weight: 700; color: #444; }
.resv-template select, .resv-template textarea { width: 100%; min-width: 0; }
.resv-counts { margin: 0 0 6px; font-size: 14px; }
.resv-counts b.is-ng { color: #b91c1c; }

/* WEB予約の作り直し・後半（2026-11-26）。新しい予約の流れのお店だけ: 受け方の帯・予約のあとの間・電話の予約の入れ方・表／一覧 */
.tl-legend i.is-gap, .tl-gap { background: repeating-linear-gradient(135deg, rgba(107,114,128,.35) 0 4px, rgba(255,255,255,.6) 4px 8px); }
.tl-legend i.is-phone { background: repeating-linear-gradient(135deg, #facc15 0 4px, #fff7cc 4px 8px); }
.tl-legend i.is-closed { background: #9ca3af; }
.tl-gap { position: absolute; top: 14px; bottom: 14px; z-index: 1; border-radius: 0 6px 6px 0; pointer-events: none; }
.tl-band { position: absolute; top: 4px; bottom: 4px; z-index: 1; border-radius: 6px; pointer-events: none; }
.tl-band.is-phone { background: repeating-linear-gradient(135deg, rgba(250,204,21,.55) 0 6px, rgba(255,247,204,.55) 6px 12px); }
.tl-band.is-closed { background: rgba(156,163,175,.55); }
.tl-rules-open { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--accent); }
.ledger-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 4px 0 10px; }
.ledger-tools > * { min-width: 0; }
.ledger-daymode label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.ledger-phone-steps { display: grid; gap: 6px; margin-top: 6px; padding: 10px 12px; border: 2px solid var(--accent-line); border-radius: 10px; background: #fff; }
.ledger-phone-steps label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.ledger-phone-hint { margin: 0; font-size: 13px; line-height: 1.6; }
.is-phone-adding .tl-track { cursor: copy; outline: 2px dashed var(--accent-line); outline-offset: -2px; }
.ledger-view-switch { display: inline-flex; margin-left: auto; border: 2px solid #d1d5db; border-radius: 999px; overflow: hidden; }
.ledger-view-switch button { min-height: 40px; padding: 0 16px; border: 0; background: #fff; color: #111; font-weight: 700; }
.ledger-view-switch button[aria-pressed="true"] { background: #111; color: #fff; }
.ledger-daymode-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.ledger-daymode-note.is-phone { background: #fff7cc; color: #5b4a14; }
.ledger-daymode-note.is-closed { background: #eceef1; color: #374151; }
.ledger-list { display: grid; gap: 10px; }
.ledger-card { padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.ledger-card.is-alert { border-color: #dc2626; }
.ledger-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font-size: 16px; }
.ledger-card h3 small { color: var(--muted); font-size: 13px; font-weight: 400; }
.ledger-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ledger-item a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 8px 10px; border-left: 6px solid #10b981; border-radius: 8px; background: #f8faf9; color: #111; text-decoration: none; }
.ledger-item a b { font-variant-numeric: tabular-nums; }
.ledger-item a em { grid-column: 1 / -1; font-size: 12px; font-style: normal; color: #444; }
.ledger-item.is-requested a { border-left-color: #f59e0b; background: #fffaf0; }
.ledger-item.is-precheck a { border-left-color: #2563eb; background: #f3f7ff; }
.ledger-item.is-visited a, .ledger-item.is-no_show a { border-left-color: #6b7280; background: #f4f4f5; }
.ledger-item.is-free { padding: 8px 10px; border: 1px dashed #9ca3af; border-radius: 8px; color: #374151; font-size: 14px; cursor: pointer; }
.ledger-item.is-free.is-mode-phone { border-color: #c9a43a; background: #fffaea; }
.ledger-item.is-free.is-mode-closed { border-style: solid; background: #f3f4f6; color: #6b7280; }
.ledger-item.is-empty { color: var(--muted); font-size: 13px; }
.add-fine { display: grid; gap: 6px; grid-column: 1 / -1; font-size: 13px; font-weight: 700; }
.add-fine [data-add-fine-list] { display: flex; flex-wrap: wrap; gap: 6px; }
.add-fine-time { min-width: 64px; min-height: 40px; padding: 0 10px; border: 2px solid #d1d5db; border-radius: 999px; background: #fff; color: #111; font-variant-numeric: tabular-nums; font-weight: 700; }
.add-fine-time.is-on { border-color: #111; background: #111; color: #fff; }
.rules-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* 表／一覧の隠した方は隠す（2026-11-26 29回目。.ledger-list の display: grid が hidden に勝って、表のときも一覧が出たままだった）。
   切り替えるのは新しい予約の流れのお店の台帳だけ（オフのお店の台帳には切り替えが無く、hidden が付かない） */
[data-ledger-pane][hidden] { display: none !important; }
/* 「＋ 電話・LINEで受けた予約」の手順の箱・ボタンと、5分きざみの候補も同じ（.ledger-phone-steps / .add-fine の display: grid が hidden に勝っていた。写真 01・06）。
   どれも新しい予約の流れのお店にだけある印 */
[data-phone-add-steps][hidden], [data-phone-add-start][hidden], [data-add-fine][hidden] { display: none !important; }
/* スマホの小窓（29回目 05_sp・09_sp）。新しい予約の流れの小窓（受け方 .is-rules・予約 .is-v2）だけ:
   「閉じる」を折らない／題名と日付は詰めて折り返す。「お店に聞く」を開くボタンは、折れても左右に余白を残して真ん中ぞろえ */
.resv-sheet.is-rules .resv-sheet-close, .resv-sheet.is-v2 .resv-sheet-close { flex: none; white-space: nowrap; }
.resv-sheet.is-rules .resv-sheet-head h2, .resv-sheet.is-v2 .resv-sheet-head h2 { flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.resv-sheet.is-rules .resv-sheet-head h2 span, .resv-sheet.is-v2 .resv-sheet-head h2 span { white-space: nowrap; }
.resv-call.resv-chat-link { padding: 10px 16px; text-align: center; line-height: 1.5; }
/* 台帳の箱の小さな状態の文字（確定など）。緑・だいだいの上の白い文字は明暗差が 2〜3 しかなかったので、
   文字の下に暗い地を敷く（白い文字と 6 以上）。新しい流れの台帳（.tl.is-v2）だけ。要確認（白い箱に赤い文字）はそのまま */
.tl.is-v2 .tl-block:not(.is-overdue) .tl-state { padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; opacity: 1; }
@media (max-width: 640px) {
    .ledger-view-switch { margin-left: 0; }
}
.resv-history { margin: 0 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.resv-history span { color: var(--muted); }
.resv-mark { padding-top: 8px; border-top: 1px solid var(--line); }
.booking-templates { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; border: 0; }
.booking-templates textarea { width: 100%; }

/* LINE通知の設定（2026-11-25）。1人ずつのカード */
.line-recipient { display: grid; gap: 12px; padding: 16px; }
.line-recipient-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.line-recipient-head strong { font-size: 17px; overflow-wrap: anywhere; }
.line-recipient fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; min-width: 0; }
.line-recipient legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
.line-recipient .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* 使える合言葉の箱（2026-11-26 29回目 51）。中の文字が枠にくっついていたので内側に余白 */
.line-code { display: grid; gap: 8px; padding: 16px; }
.line-code > p { margin: 0; }

/* まだ保存していません（2026-11-27 28回目。店舗設定の1画面。admin.js の data-unsaved-form） */
.unsaved-note { font-size: 14px; font-weight: 700; color: #b45309; }
