/*
 * 運営者の画面（2026-10-02）。土台は admin.css（店舗管理と同じ決まり）。ここには運営者の画面だけの部品を足す。
 * 左のメニューも下のタブも無いので、本文を真ん中に置く
 */
.platform-main { max-width: 760px; margin: 0 auto; padding: 20px 16px 120px; display: grid; gap: 16px; }
.platform-body .save-bar { bottom: 12px; }
.crumb { margin: 0; font-size: 14px; }
.crumb a { color: var(--accent); text-decoration: none; }

/* 記事の一覧 */
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-list a { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
.pp-list a:hover { border-color: var(--accent); }
.pp-list strong { font-size: 17px; line-height: 1.5; }
.pp-list small { color: var(--muted); font-size: 14px; line-height: 1.6; }
.pp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pp-state, .pp-kind { font-style: normal; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pp-state { background: #e3f4e8; color: #1d6b3a; }
.pp-state.is-draft { background: #ecebe8; color: #4a4744; }
.pp-state.is-scheduled { background: #fff1d6; color: #7a4d00; }
.pp-kind { border: 1px solid var(--line); color: #4a4744; }
.pp-kind.is-blog { border-color: #b7dcd9; color: #1f6b66; }
.pp-state-line { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pp-state-line a { color: var(--accent); }

/* 書く画面 */
.pp-form { display: grid; gap: 20px; }
.pp-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; font-weight: 700; }
.pp-field legend { padding: 0; margin-bottom: 6px; }
.pp-field input[type=text], .pp-field input[type=datetime-local], .pp-field textarea { font-weight: 400; }
.pp-field .hint { font-weight: 400; }
.pp-kinds { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-kinds label { position: relative; }
.pp-kinds input { position: absolute; opacity: 0; inset: 0; }
.pp-kinds span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; cursor: pointer; }
.pp-kinds input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); }
.pp-kinds input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
#pp-body { min-height: 360px; font-size: 16px; line-height: 1.8; }

.pp-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-tools[hidden] { display: none; }
.pp-tools button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 14px; cursor: pointer; }
.pp-tools button:hover { border-color: var(--accent); color: var(--accent); }

.pp-ai { border: 2px solid color-mix(in srgb, var(--accent) 35%, #fff); border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, #fff); }
.pp-ai summary { padding: 14px 16px; font-weight: 700; cursor: pointer; }
.pp-ai-body { display: grid; gap: 10px; padding: 0 16px 16px; }
.pp-ai-body label { display: grid; gap: 6px; font-weight: 700; }
.pp-ai-body textarea { font-weight: 400; }
.pp-ai-body .button-secondary { justify-self: start; }
.pp-ai-status { margin: 0; font-size: 14px; }
.pp-ai-status.is-error { color: var(--error); }

/* 保存の帯はスマホでも1行（2段になると本文の欄をふさぐ） */
.pp-save { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; padding: 8px; }
.pp-save button { min-width: 0; min-height: 48px; padding: 0 6px; font-size: 15px; white-space: nowrap; }
@media (min-width: 600px) { .pp-save { display: flex; justify-content: flex-end; padding: 10px 12px; } .pp-save button { padding: 0 20px; } }
.pp-danger { margin-top: 8px; }

/* ロゴ（2026-10-02 YUTAKAさん）。上の帯はロゴ＋「運営者の画面」、ログインは読みがな入りのロゴ */
.platform-brand { display: flex; align-items: center; gap: 10px; }
.platform-brand img { display: block; width: auto; height: 30px; }
.platform-brand small { padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); }
.platform-login-logo { display: block; width: 180px; height: auto; margin: 0 auto 8px; }

/* ---- 2026-11-25 第1段: メニュー・お店の一覧と詳細・操作の記録・2段階認証・ヒアリング ---- */
.platform-nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.platform-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink, #222); text-decoration: none; font-weight: 700; font-size: 15px; }
.platform-nav a.is-active { background: var(--accent); color: #fff; }
@media (min-width: 760px) { .platform-nav { justify-content: center; } }
/* スマホでは右へ切れずに2段に折り返す（2026-11-26 29回目 55_sp。「LINEの知ら…」が右で切れていた） */
@media (max-width: 759px) { .platform-nav { flex-wrap: wrap; overflow-x: visible; } }
/* LINE の知らせの通数の表: 見出しを1〜2文字ずつ折らない（はみ出す分は表の枠の中で横に動かす） */
.line-usage-table th, .line-usage-table td:not(:first-child) { white-space: nowrap; }

.pf-narrow { max-width: 560px; }
.pf-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.7; }
.pf-secret { margin: 8px 0; padding: 12px 14px; border: 2px dashed var(--line); border-radius: 10px; background: #fcfbfa; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.pf-codes { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pf-codes code { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 16px; user-select: all; }

.pf-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-search input[type=search], .pf-search input[type=text], .pf-search select { flex: 1 1 200px; min-width: 0; min-height: 48px; }
.pf-search label:not(.sr-only) { flex-basis: 100%; font-weight: 700; }

.pf-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pf-cards > li > a { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
.pf-cards > li > a:hover { border-color: var(--accent); }
.pf-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-card-head strong { font-size: 17px; }
.pf-card-sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pf-facts { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 12px; }
.pf-facts div { display: grid; gap: 2px; }
.pf-facts dt { font-size: 12.5px; color: var(--muted); }
.pf-facts dd { margin: 0; font-size: 15px; font-weight: 700; }
.pf-facts small { font-weight: 400; color: var(--muted); }
.pf-state { font-style: normal; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #e3f4e8; color: #1d6b3a; }
.pf-state.is-off { background: #ecebe8; color: #4a4744; }

.pf-table { margin: 0; display: grid; }
.pf-table > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-table > div:last-child { border-bottom: 0; }
.pf-table dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.pf-table dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .pf-table > div { grid-template-columns: 200px minmax(0, 1fr); gap: 12px; } }
.pf-answer { white-space: pre-line; }
.pf-sub { margin: 18px 0 4px; font-size: 16px; }
.pf-plain { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.7; }
.pf-plain a { color: var(--accent); overflow-wrap: anywhere; }
.pf-checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-checks li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.pf-checks li.is-done { background: #e3f4e8; border-color: #b9e0c5; color: #1d6b3a; }

.pf-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-options label.check { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 48px; }
.pf-options label.check span { display: grid; gap: 2px; }
.pf-options small { color: var(--muted); font-size: 13px; }
.pf-danger { border-color: var(--error-soft); }
.pf-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-inline input[type=number] { width: 80px; min-height: 44px; }

.pf-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-log li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; }
.pf-log-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.pf-log-head a { color: var(--accent); }
.pf-log-who, .pf-log-note { color: var(--muted); }
.pf-log-diff { font-size: 12.5px; background: #fcfbfa; padding: 6px 8px; border-radius: 6px; }

.pf-cmd-label { margin: 12px 0 4px; font-weight: 700; font-size: 14px; }
.pf-cmd { margin: 0; padding: 12px; border-radius: 8px; background: #1f1d24; color: #f4f2ee; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }

/* ヒアリング（お店の人が答える画面） */
.hearing-top { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hearing-top strong { font-size: 17px; color: var(--accent); }
.hearing-top small { color: var(--muted); }
.hearing-main { max-width: 640px; }
.hearing-progress { margin: 0; display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.hearing-progress i { display: block; height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.hearing-progress i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--done, 0%); background: var(--accent); }
.hearing-field { display: grid; gap: 6px; }
.hearing-field > label, .hearing-field legend { font-weight: 700; }
.hearing-field fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.hearing-field input, .hearing-field select, .hearing-field textarea { width: 100%; min-height: 48px; font-size: 16px; }
.hearing-choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 48px; cursor: pointer; }
.hearing-choice input { width: 20px; min-height: 0; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hearing-choice span { display: grid; gap: 2px; }
.hearing-choice small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.hearing-req { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--error-soft); color: var(--error); margin-left: 6px; }
.hearing-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hearing-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.hearing-nav > * { flex: 1 1 160px; min-height: 52px; justify-content: center; }
.hearing-review h2 { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; margin: 12px 0 4px; }
.hearing-review h2 a { font-size: 14px; color: var(--accent); }
