/* お店の管理画面・運営管理（公開サイトと同じ配色・書体） */
body.console { padding-bottom: 0; }
[hidden] { display: none !important; }
.console .logo { margin-right: auto !important; }
.panel input:not([type=checkbox]):not([type=file]), .panel textarea { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 500; color: var(--ink); }
.panel input:focus, .panel textarea:focus { outline: 2px solid var(--main-soft); border-color: var(--main); }
table.grid td.nw { white-space: nowrap; }
body.console-admin { --hd: #2e3a46; --hd-deep: #1e2730; --main: #3d5566; --main-soft: #e4ebf0; }
.console-main { padding-top: 18px; padding-bottom: 24px; max-width: 860px; }
.panel { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; margin: 0 0 14px; }
.panel.narrow { max-width: 460px; margin: 28px auto; }
.panel h1 { font-size: 1.3rem; margin: 0 0 6px; line-height: 1.4; }
.panel h2 { display: flex; align-items: baseline; gap: 10px; font-size: 1.02rem; margin: 0 0 12px; }
.panel h2 .en, .panel .en { font-family: var(--f-en); font-size: .66rem; font-weight: 600; letter-spacing: .16em; color: var(--main); }
.panel h3 { font-size: .86rem; margin: 18px 0 8px; color: var(--muted); }
.muted { color: var(--muted); font-size: .86rem; }
.small { font-size: .76rem; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--chip, #efe9e0); color: var(--ink); white-space: nowrap; }
.badge.paid { background: #e3f1e1; color: #2f6b2a; }
.badge.warn { background: #fff1d6; color: #8a5a00; }
.badge.off { background: #f6e0e0; color: #8a2b2b; }
select { font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); color: var(--ink); }
/* ログイン */
.login-card { text-align: center; padding: 32px 24px; }
.login-card .emblem-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--hd); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; font-family: var(--f-head); font-weight: 800; font-size: 1.8rem; }
.login-card h1 { font-size: 1.25rem; }
.login-card form { text-align: left; margin-top: 18px; }
.login-card .btn { width: 100%; }
.login-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 4px; text-align: center; }
.login-steps div { background: var(--bg); border-radius: 14px; padding: 10px 6px; font-size: .72rem; color: var(--muted); }
.login-steps b { display: block; font-family: var(--f-en); color: var(--main); font-size: .9rem; }
/* オーナーの店カード */
.shop-hero { display: flex; gap: 16px; align-items: center; }
.shop-hero .thumb { width: 84px; height: 84px; border-radius: 16px; background: var(--main-soft) center / cover no-repeat; flex: none; display: grid; place-items: center; font-size: 2rem; }
.shop-hero h1 { margin: 2px 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.stats .see { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: .86rem; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; color: var(--main); }
.stats div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.stats b { display: block; font-family: var(--f-en); font-size: 1.2rem; color: var(--main); }
.stats small { font-size: .7rem; color: var(--muted); }
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 14px; }
.plan { border: 2px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 8px; position: relative; background: var(--surface); }
.plan.best { border-color: var(--accent); }
.plan .ribbon { position: absolute; top: -11px; right: 14px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.plan .price { font-family: var(--f-en); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.plan .price small { font-family: var(--f-body); font-size: .8rem; font-weight: 700; color: var(--muted); margin-left: 2px; }
.perks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.perks li { display: flex; gap: 8px; align-items: flex-start; }
.perks li::before { content: "✓"; color: var(--main); font-weight: 800; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; background: var(--surface); position: relative; }
.photo:first-child::after { content: "トップ"; position: absolute; top: 8px; left: 8px; background: var(--main); color: #fff; font-size: .66rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo .tools { padding: 8px; display: grid; gap: 6px; }
.photo input { font-size: .8rem; padding: 7px 9px; }
.add-photo { border: 2px dashed var(--line); border-radius: 14px; display: grid; place-items: center; text-align: center; min-height: 150px; color: var(--muted); font-size: .82rem; font-weight: 700; cursor: pointer; }
.add-photo:hover { border-color: var(--main); color: var(--main); }
.icon-btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 4px 10px; cursor: pointer; font-size: .8rem; }
.icon-btn[disabled] { opacity: .4; cursor: default; }
.danger { color: #b3261e; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs button { border: 1.5px solid var(--line); background: var(--surface); padding: 7px 16px; border-radius: 999px; cursor: pointer; font-family: var(--f-head); font-weight: 700; font-size: .86rem; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--main); border-color: var(--main); color: #fff; }
.tabs .num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .68rem; margin-left: 4px; padding: 0 5px; }
table.grid { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.grid td, table.grid th { border-bottom: 1px solid var(--line); padding: 9px 6px; text-align: left; vertical-align: middle; }
table.grid a { font-weight: 700; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg);
  padding: 11px 20px; border-radius: 999px; font-size: .86rem; transition: .25s; pointer-events: none; z-index: 50; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.error { background: #b3261e; color: #fff; }
.list .btn, .list .btn-ghost { padding: 7px 14px; font-size: .82rem; }
@media (max-width: 600px) { .tabs button { padding: 6px 12px; font-size: .8rem; } }
body.console-admin { --btn: #3d5566; }
.cat-seg { margin-bottom: 12px; }

/* ヘッダーのログイン中アドレス */
.who { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted rgba(255,255,255,.4); text-underline-offset: 3px; font: inherit; color: rgba(255,255,255,.85); font-size: .78rem; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 4px; }
.who::before { content: "ログイン中 "; opacity: .7; font-size: .7rem; }
#logout { white-space: nowrap; }
@media (max-width: 600px) {
  .hd-in:has(.who:not([hidden])) { flex-wrap: wrap; row-gap: 2px; }
  .who { order: 3; flex-basis: 100%; max-width: none; text-align: right; font-size: .7rem; margin: 0; }
}

/* ログイン方法の切り替え */
.login-seg { margin: 14px auto 6px; }
.login-seg [aria-pressed="true"] { background: var(--hd); color: #fff; }
/* パスワード設定のダイアログ */
.account-dlg { border: 0; border-radius: 18px; padding: 0; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.account-dlg::backdrop { background: rgba(0,0,0,.35); }
.account-form { padding: 24px; display: grid; gap: 10px; }
.account-form h2 { margin: 0; font-size: 1.1rem; }
.account-form .en { margin: 0; }
