@charset "UTF-8";

/* =========================================================
   店舗管理画面 (商品管理・注文一覧) スマートフォン最優先
   ========================================================= */

:root {
  --color-bg: #fffdfa;
  --color-surface: #ffffff;
  --color-text: #2b2320;
  --color-text-muted: #6b5f58;
  --color-accent: #f97316;
  --color-accent-dark: #c2410c;
  --color-accent-soft: #ffedd5;
  --color-line: #ecdfd4;
  --color-ok: #16a34a;
  --color-ng: #dc2626;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic",
    "Noto Sans JP", "Meiryo", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

/* hidden 属性は display 指定より必ず優先させる */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-accent-dark);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-header h1 {
  font-size: 17px;
  margin: 0;
  font-weight: 700;
}

.admin-nav {
  display: flex;
  gap: 8px;
}

.admin-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.admin-nav a.current {
  background: #fff;
  color: var(--color-accent-dark);
  font-weight: 700;
}

/*
  狭い画面 (スマートフォン) では、見出しとメニューを2段に分け、メニューは横にスクロールさせる。
  1段のままだと、見出しとメニューの文字が1文字ずつ縦に折り返されて読めなくなる。
*/
@media (max-width: 720px) {
  .admin-header {
    flex-wrap: wrap;
  }

  .admin-header h1 {
    flex: 1 1 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-nav {
    flex: 1 1 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav a {
    flex: none;
    white-space: nowrap;
  }
}

/* ログイン画面を出している間は、ログインしないと使えないメニューを出さない */
body:has(#login-view:not([hidden])) .admin-nav {
  display: none;
}

.admin-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 16px 80px;
}

.section-label {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.muted {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ---- ログイン ---- */
.login-box {
  max-width: 420px;
  margin: 48px auto;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.login-box h2 {
  margin-top: 0;
}

/* 「ログインできないときは」はログインボタンから離して置く */
.login-box .howto-detail {
  margin-top: 18px;
  padding-top: 6px;
  border-top: 1px solid var(--color-line);
}

/* ---- 共通ボタン・入力 ---- */
.btn-primary {
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-primary:disabled {
  background: var(--color-line);
  color: var(--color-text-muted);
}

.btn-outline {
  padding: 10px 16px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger-outline {
  padding: 10px 16px;
  border: 2px solid var(--color-ng);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ng);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* 取り消せない操作の確定 (アカウントの削除) */
.btn-danger {
  padding: 10px 16px;
  border: 2px solid var(--color-ng);
  border-radius: var(--radius-md);
  background: var(--color-ng);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 注文一覧の末尾の「もっと見る」 */
.load-more {
  margin: 16px 0 24px;
}

/*
 * 6桁の入力画面の「送り直す」「やり直す」は、指で押せる高さ (44px) をフォントの行の高さに任せない。
 * .btn-outline の高さは 余白 + 行の高さ で決まり、行の高さが小さいフォントの端末では 40px まで縮んでいた。
 */
#login-step-code .btn-outline {
  min-height: 44px;
}

.text-input,
.number-input,
.textarea-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-family: inherit;
}

.text-input:focus,
.number-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.field {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

/* ---- 商品一覧 ---- */
.product-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-row {
  display: flex;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px;
  align-items: flex-start;
}

.product-row.inactive {
  opacity: 0.6;
}

.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--color-accent-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.product-row-body {
  flex: 1;
  min-width: 0;
}

.product-row-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.product-row-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 2px 0 8px;
}

.status-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 6px;
}

.status-tag.on {
  background: #dcfce7;
  color: var(--color-ok);
}

.status-tag.off {
  background: #fee2e2;
  color: var(--color-ng);
}

.product-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/*
 * 削除は戻せないので、編集・販売停止とは別の行へ落として離す。
 * 375px でも押し間違えないよう、右端に寄せて間を空ける。
 */
.product-row-danger {
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* 押せる幅をフォントの字幅に任せない (日本語フォントが無い端末では「削除」の2文字が細くなる) */
.product-row-danger .btn-danger-outline {
  min-width: 60px;
}

/* ---- 商品フォーム (モーダル) ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 35, 32, 0.45);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal {
  background: var(--color-bg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}

.modal h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

/*
 * お客様の注文画面と同じ「4:3・contain・白地」で見せる。
 * cover にすると店舗側だけ切り取られた絵を見ることになり、
 * 実際にお客様へ出る見た目とずれてしまう。
 */
.image-preview {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  display: block;
  margin-bottom: 8px;
}

.btn-remove-image {
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions .btn-primary {
  flex: 1;
}

/* ---- 「？」のヘルプ (admin-common.js の showHelp / attachHelp) ---- */

/* 吹き出しに「？」が入ったボタン。押せる範囲は 44×44 を保つ */
.help-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-accent-dark);
  cursor: pointer;
}

.help-icon-button:hover,
.help-icon-button:focus-visible {
  background: rgba(43, 35, 32, 0.06);
}

.help-icon-button svg {
  width: 26px;
  height: 26px;
}

/* 下から出す既存の .modal と違い、ヘルプは画面の中央に出す (小さい画面でもはみ出さない) */
.help-dialog-backdrop {
  align-items: center;
  padding: 16px;
}

.help-dialog {
  border-radius: var(--radius-lg);
  max-height: calc(100vh - 32px);
}

.help-dialog-summary,
.help-dialog-example {
  margin: 0 0 8px;
  line-height: 1.7;
}

.help-dialog-heading {
  margin: 12px 0 4px;
  font-weight: 700;
  color: var(--color-accent-dark);
}

/* 入力欄・単位・「？」を1行に並べる (狭い画面でも重ならない) */
.inline-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-input-row .number-input {
  width: 96px;
  flex: 0 0 auto;
}

.field-warning {
  margin: 6px 0 0;
  color: var(--color-ng);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- 注文一覧 ---- */
.day-block {
  margin-bottom: 28px;
}

.day-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--color-accent);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.summary-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.summary-table th,
.summary-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--color-line);
  text-align: left;
  font-size: 15px;
}

.summary-table td.qty {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.order-card.canceled {
  opacity: 0.55;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.order-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.order-customer {
  font-size: 16px;
  font-weight: 700;
}

.order-items {
  margin: 6px 0;
  padding-left: 1.2em;
  font-size: 15px;
}

/* ---- 注文に添付された参考画像 ---- */
/*
 * 明細1行の下に、その明細に添付された画像だけを並べる。
 * 注文をまたいで混ざらないよう、必ず明細 (li) の内側に置く。
 */
.order-item-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 10px;
}

.order-item-image {
  margin: 0;
  width: 96px;
}

/*
 * サムネイルは押せる。button にしておくと、指でもキーボードでも同じように開ける。
 */
.order-item-image-button {
  display: block;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.order-item-thumb {
  width: 100%;
  height: 100%;
  /* 切り取らずに全体を見せる (どんな絵か分からないまま拡大させない) */
  object-fit: contain;
  display: block;
}

.order-item-image-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

/* ---- 添付画像の拡大表示 ---- */
.image-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 35, 32, 0.8);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.image-viewer {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.image-viewer-image {
  max-width: 100%;
  /* 見出しと閉じるボタンのぶんを残す */
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
}

.image-viewer-caption {
  color: #fff;
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.image-viewer-close {
  background: #fff;
}

.order-total {
  font-weight: 700;
}

.order-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.order-status-label {
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 12px;
}

.order-status-label.received {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.order-status-label.picked_up {
  background: #dcfce7;
  color: var(--color-ok);
}

.order-status-label.canceled {
  background: #fee2e2;
  color: var(--color-ng);
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: 90%;
  background: rgba(43, 35, 32, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  white-space: pre-line;
}

/*
 * 「この内容で登録」。戻る/次への下に、間を空けて置く。
 * 誤って押すと保存まで進んでしまうため、隣り合わせにしない。
 */
.wizard-save-now {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}

.topbar-actions > div {
  flex: 1 1 220px;
  min-width: 0;
}

/* 狭い画面で潰れて縦書きのようにならないようにする */
.topbar-actions .btn-outline {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* =========================================================
   LINE連携設定 (スマートフォンで設定される前提)
   ========================================================= */

.admin-section {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 16px;
}

.admin-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.admin-section p {
  margin: 0 0 10px;
}

/* ---- 接続状態 ---- */
.line-hero {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 16px;
  border: 2px solid var(--color-line);
  background: var(--color-surface);
}

.line-hero-caption {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.line-hero-badge {
  margin: 2px 0 6px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.line-hero-note {
  margin: 0 0 14px;
  font-size: 15px;
}

.line-hero[data-state="connected"] {
  border-color: var(--color-ok);
  background: #f0fdf4;
}

.line-hero[data-state="connected"] .line-hero-badge {
  color: var(--color-ok);
}

.line-hero[data-state="in_progress"] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.line-hero[data-state="in_progress"] .line-hero-badge {
  color: var(--color-accent-dark);
}

.line-hero[data-state="not_configured"] .line-hero-badge,
.line-hero[data-state="unknown"] .line-hero-badge,
.line-hero[data-state="loading"] .line-hero-badge {
  color: var(--color-text-muted);
}

/* ---- 3ステップのチェック ---- */
.line-checks {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.line-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.line-check-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-line);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.line-check-mark::before {
  content: "―";
}

.line-check[data-done="true"] .line-check-mark {
  border-color: var(--color-ok);
  background: var(--color-ok);
  color: #fff;
}

.line-check[data-done="true"] .line-check-mark::before {
  content: "✓";
}

.line-check-body {
  min-width: 0;
}

.line-check-body b {
  display: block;
  font-size: 15px;
}

.line-check-body small {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- 準備不足の案内 ---- */
.notice {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 2px solid var(--color-line);
}

.notice-warn {
  border-color: #fbbf24;
  background: #fffbeb;
}

.notice-text {
  margin: 0;
  font-weight: 700;
}

/* ---- STEP ---- */
.step-section {
  padding-top: 14px;
}

.step-badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--color-accent-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---- コピー欄 (1タップコピー: copy-field.js が組み立てる) ---- */
.copy-field {
  margin: 12px 0;
}

.copy-field .field-label {
  display: block;
  margin-bottom: 6px;
}

.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0;
}

/*
  入力欄 + コピーボタンを1行にする (GitHub のクローンURL欄と同じ形)。
  ・input は残り幅いっぱい (flex:1, min-width:0 で縮められる)
  ・button は右で固定幅。長いURLでも位置が動かない
  ・横スクロールは input の内部だけで起き、ページ全体には波及しない
*/
.copy-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.copy-row .copy-value {
  flex: 1 1 auto;
  min-width: 0; /* これが無いと長いURLで button が押し出される */
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 12px;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.copy-row .copy-value:focus {
  outline: none;
}

/* コピーボタン: 右上のコピーアイコン相当。アイコン + 「コピー」。 */
.btn-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  min-height: 46px; /* 指で押しやすいタップ領域 */
  padding: 0 12px;
  border: none;
  border-left: 1px solid var(--color-line);
  border-radius: 0;
  background: var(--color-accent-soft, #ffedd5);
  color: var(--color-accent-dark, #c2410c);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #ffe0b8;
}

.btn-copy:active {
  transform: translateY(1px);
}

.btn-copy .copy-ic {
  flex: 0 0 auto;
}

.btn-copy.is-copied {
  color: var(--color-ok, #15803d);
}

/* 極端に狭い画面ではラベル文字を隠し、アイコンだけでも押せるようにする */
@media (max-width: 360px) {
  .btn-copy {
    min-width: 52px;
  }
  .btn-copy .btn-copy-label {
    display: none;
  }
  .btn-copy.is-copied .btn-copy-label {
    display: inline; /* 「コピーしました」は狭くても出す */
  }
}

/* 数値入力と単位を横に並べる (例: [30] 日) */
.inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-field .number-input {
  width: 120px;
}

.inline-unit {
  font-weight: 700;
}

/* 信頼済み端末の一覧 */
.device-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}

.device-row:last-child {
  border-bottom: none;
}

.device-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.device-row .muted {
  margin: 0 0 8px;
}

/* 6桁の確認コードは、数字を1つずつ確かめられるよう大きめ・広めに出す */
#login-code,
#verify-code {
  font-size: 22px;
  letter-spacing: 0.3em;
  text-align: center;
}

.copy-result {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  min-height: 1.2em;
}

.copy-result[data-kind="ok"] {
  color: var(--color-ok);
}

.copy-result[data-kind="ng"] {
  color: var(--color-ng);
}

/* ---- 手順 ---- */
.howto-list {
  margin: 10px 0;
  padding-left: 1.4em;
  font-size: 15px;
  line-height: 1.9;
}

.howto-list li {
  margin-bottom: 4px;
}

.plain-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.9;
}

.howto-detail,
.dev-detail {
  margin-top: 10px;
}

.howto-detail > summary,
.dev-detail > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 0;
}

/* ---- 詳細の一覧 ---- */
.status-list {
  margin: 4px 0 0;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--color-line);
}

.status-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  min-width: 150px;
}

.status-value {
  flex: 1 1 200px;
  margin: 0;
  font-size: 15px;
  min-width: 0;
}

/* =========================================================
   利用開始 (/signup/)
   ========================================================= */

.header-home {
  color: inherit;
  text-decoration: none;
}

.header-badge {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.required {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--color-ng);
  font-size: 12px;
  font-weight: 700;
}

/* 誤りは該当欄のすぐ下に出す (どこを直せばよいか分かるように) */
.field-error {
  margin: 6px 0 0;
  color: var(--color-ng);
  font-size: 14px;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.text-input.has-error {
  border-color: var(--color-ng);
  background: #fff5f5;
}

#signup-form .btn-primary {
  margin-top: 6px;
}

#confirm-panel .btn-outline {
  margin-top: 10px;
}

#done-panel .btn-primary.btn-lg {
  margin-top: 16px;
}

/* 問い合わせ先。メールアドレスは狭い画面でも折り返して収める */
.contact-link {
  color: var(--color-accent-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* 長いIDやURLで横スクロールを起こさない */
.break-all {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.richmenu-preview {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
}

.btn-lg {
  padding: 18px 20px;
  font-size: 18px;
}

/* リンクをボタンと同じ大きさで押せるようにする */
.btn-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* =========================================================
   「この値はLINEのどこにあるか」の案内
   =========================================================

   入力欄のすぐ下に、その値が載っているLINE側の画面を開くリンクを置く。
   ・スマートフォンで押しやすいよう、リンク全体を1つの面にして高さを確保する
     (文字リンクだと指では狙いにくい)
   ・別タブで開く。書きかけの入力欄を離脱で失わせない
   ・見出し行と補足行の2段。補足はチャネルIDが分かると
     「直接開きます」に差し替わる (public/admin/line.js) */

.field-hint {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.btn-help {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding: 12px 14px;
  min-height: 46px; /* 指で押しやすいタップ領域 */
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-help:hover {
  background: #ffe0b8;
}

/* 別タブで開くことを、文字でも記号でも分かるようにする */
.btn-help-label {
  font-size: 15px;
  font-weight: 700;
}

.btn-help-label::after {
  content: " ↗";
  font-weight: 400;
}

.btn-help-sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* =========================================================
   LINEメニュー (リッチメニューのデザイン選択)
   ========================================================= */

.template-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}

@media (min-width: 720px) {
  .template-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.template-card {
  background: var(--color-surface);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.template-card[data-selected="true"] {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.template-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.template-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 4px;
}

.template-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border-radius: 999px;
  padding: 1px 10px;
}

.template-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

/* ===== 営業日・営業時間 ===== */

.bh-label {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
}

.bh-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bh-time {
  flex: 1 1 120px;
  min-width: 0;
  max-width: 180px;
}

.bh-tilde {
  color: var(--color-text-muted);
}

/* 曜日の1タップ切り替え。押されている = 営業日。 */
.bh-weekdays {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bh-weekday {
  flex: 1 1 40px;
  min-width: 40px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.bh-weekday[aria-pressed="true"] {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.bh-details {
  margin: 16px 0;
  padding: 10px 12px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
}

.bh-details > summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bh-day-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.bh-day-name {
  width: 2em;
  font-weight: 700;
}

.bh-day-closed {
  color: var(--color-text-muted);
  font-size: 14px;
}

.bh-closure-form {
  margin-bottom: 12px;
}

.bh-closure-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-closure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
}

.bh-closure-remove {
  flex: 0 0 auto;
  width: auto;
  padding: 4px 12px;
  font-size: 13px;
}

/* 基本の営業時間を変えるとき、曜日ごとの設定をどうするかを尋ねる */
.bh-confirm {
  margin: 12px 0;
  padding: 12px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
}

.bh-confirm > p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
}

.bh-confirm > button + button {
  margin-top: 8px;
}

/* 曜日ごとの個別設定があることを示す注記 */
#bh-basic-note[data-state="custom"] {
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* 曜日ボタンは7つを必ず1行に収める (折り返すと「日」だけ大きく見えてしまう) */
.bh-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.bh-weekday {
  min-width: 0;
  padding: 10px 2px;
}

/* 曜日ごとの行は幅が狭い。時刻が「18:0…」と切れないよう詰める */
.bh-day-row .bh-time {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 6px;
  font-size: 15px;
}

.bh-day-row .bh-tilde {
  flex: 0 0 auto;
}

/* ===== LINE連携ウィザードの現在地 ===== */

/*
 * 「いま何段目か」を常に見せる。設定の途中で自分がどこにいるか分からなくなると、
 * そこで手が止まってしまうため。375px でも折り返さずに3つ並ぶ大きさにする。
 */
.setup-steps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.setup-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  text-align: center;
}

.setup-step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: #f3ece7;
}

.setup-step-label {
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.setup-step[data-state="current"] {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.setup-step[data-state="current"] .setup-step-no {
  color: #fff;
  background: var(--color-accent);
}

.setup-step[data-state="current"] .setup-step-label {
  color: var(--color-text);
  font-weight: 700;
}

.setup-step[data-state="done"] .setup-step-no {
  color: #fff;
  background: #16a34a;
}

/* 「済」であることを記号でも示す (色だけに頼らない) */
.setup-step[data-state="done"] .setup-step-no::after {
  content: "✓";
}

.setup-step[data-state="done"] .setup-step-no {
  font-size: 0;
}

.setup-step[data-state="done"] .setup-step-no::after {
  font-size: 14px;
}

/* 月・日・週・曜日の選び欄を横に並べる (375px で足りないときは折り返す) */
.date-parts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.date-parts .text-input {
  /*
   * 3つ並べても375pxに収まるようにする。
   * padding と枠を幅に含め (box-sizing)、必要なら縮められるようにする (min-width: 0)。
   * そうしないと「月・第X・W曜日」が縦積みになって縦に長くなる。
   */
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 6px;
}

/*
 * 数値入力の設定 (最小値・最大値・初期値・増減単位・単価)。
 * 短い数字の欄なので、幅があるときは2列に並べる。375px では1列に落ちる。
 */
.number-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0 12px;
}

.number-settings .number-input {
  width: 100%;
}

@media (min-width: 600px) {
  .setup-step {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .setup-step-label {
    font-size: 13px;
  }
}

/*
 * 文章の途中に置くボタン。見た目はリンクだが操作はボタン
 * (画面遷移ではなくウィザードの段を戻すため)。
 */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* デザイン画像が読めなかったカードは、壊れた枠のまま置かない */
.template-card[data-image-error="true"] img {
  display: none;
}

/* ---- 商品のサイズ編集 (サイズ選択が必要な商品) ---- */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent, #f97316);
}

.size-edit-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.size-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.size-edit-row .size-name-input {
  flex: 1;
  min-width: 0;
}

.size-edit-row .size-price-input {
  width: 110px;
  flex: none;
}

.size-edit-row .size-remove-btn {
  flex: none;
  padding: 8px 12px;
}

/* ---- 注文カードの追加情報 (注文番号・連絡先・備考) ---- */
.order-number-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted, #6b5f58);
  background: #f1f0ee;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: auto;
}

.order-contact {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-text-muted, #6b5f58);
  overflow-wrap: anywhere;
}

.order-note-text {
  margin: 6px 0 0;
  font-size: 13px;
  background: #fff8ef;
  border-radius: 8px;
  padding: 6px 10px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* =========================================================
   値の取得元の案内 (LINE公式側のどの画面を開けばよいか)

   Channel Secret / アクセストークンのような「LINE側からコピーしてくる値」は、
   入力欄だけを見せても店舗の人には出どころが分からない。
   入力欄のすぐ下に「どの画面のどこにあるか」と「そこを開くボタン」を組で置き、
   画面を行き来せずに コピー → 貼り付け ができるようにする。

   ボタンは指で押す前提。高さ48pxを下限にし、幅いっぱいまで広げる。
   ========================================================= */

.key-source {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
}

/* 「LINE Developers → Messaging APIチャネル → チャネル基本設定」の道順 */
.key-source-path {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

/* 道順の中の画面名。太字だけだと区切りが読みにくいので薄い下地を敷く */
.key-source-path b {
  font-weight: 700;
  white-space: nowrap;
}

/*
  外部サイト (LINE公式) を開くリンク。
  押せる範囲を広く取り、リンクではなくボタンに見えるようにする。
*/
.btn-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-accent-dark);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

/*
 * 取得元リンクは btn-help (2行) と btn-source (指で押せる大きさ) を兼ねる。
 * btn-source の中央寄せ1行レイアウトが後から効くので、2行の並びへ戻す。
 */
.btn-help.btn-source {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: left;
  gap: 2px;
  background: var(--color-accent-soft);
}

/* 外部リンクの印は文字のすぐ後ろに置く */
.btn-help.btn-source .btn-help-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-source:active {
  background: var(--color-accent-soft);
}

/* 別タブで開くことを、文字でも形でも示す */
.btn-source .ext-ic {
  flex: none;
}

/* 補足 (「まだチャネルが無いときは」など) */
.key-source-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.key-source-note a {
  color: var(--color-accent-dark);
}

/*
  目には見せないが、読み上げには渡したい文字。
  「新しいタブで開きます」のように、見た目はアイコンで足りるが
  音声だけで操作している人には言葉が要るものに使う。
*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   商品の登録・編集 (STEP 1〜8) /admin/product-edit.html
   ========================================================= */

/* リンクをボタンの見た目で使う (一覧の「編集」・「新しい商品を登録」) */
a.btn-primary,
a.btn-outline,
a.btn-danger-outline {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.wizard-back-link {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
}

.wizard-progress {
  margin-bottom: 16px;
}

.wizard-progress-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  flex-wrap: wrap;
}

.wizard-progress-label span {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.wizard-progress-label b {
  font-size: 17px;
}

/* どこまで進んだかの帯 */
.wizard-bar {
  height: 6px;
  background: var(--color-line);
  border-radius: 999px;
  overflow: hidden;
}

.wizard-bar span {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.wizard-step {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.wizard-actions button {
  flex: 1 1 0;
  min-height: 52px;
}

.wizard-logout {
  margin-top: 24px;
  justify-content: flex-end;
}

/* ---- 選択肢 (ラジオ・チェック) ---- */
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
}

.radio-row input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

/* ---- STEP 2: 画像 ---- */
.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.image-add-label {
  cursor: pointer;
}

.image-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 10px;
}

.image-row-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  flex: 0 0 auto;
}

.image-row-body {
  flex: 1 1 auto;
  min-width: 0;
}

.image-row-label {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
}

.image-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- STEP 4: 個数以外の項目数 ---- */
.count-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
}

.count-btn {
  min-width: 56px;
  min-height: 56px;
  font-size: 24px;
  line-height: 1;
}

.count-value {
  font-size: 28px;
  font-weight: 700;
  min-width: 2ch;
  text-align: center;
}

/* ---- STEP 6: 各項目の詳細 ---- */
.param-block {
  margin-bottom: 16px;
}

.option-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.option-row {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--color-bg);
}

.option-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.option-row-number {
  font-weight: 700;
  font-size: 14px;
}

.option-row .field:last-child {
  margin-bottom: 0;
}

/* ---- STEP 7: 注文画面プレビュー ---- */
.preview-frame-wrap {
  display: flex;
  justify-content: center;
  background: var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px;
  overflow-x: auto;
}

/* お客様のスマートフォンと同じ幅 (375px) で見せる */
.preview-frame {
  width: 375px;
  max-width: 100%;
  min-height: 480px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
}

/* ---- STEP 8: 確認 ---- */
.review-list {
  margin: 0 0 20px;
}

.review-list > div {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
}

.review-list dt {
  flex: 0 0 40%;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-muted);
}

.review-list dd {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}


/* ---- Google / LINE でのログイン ---- */
.login-brand {
  margin: 0 0 4px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

#login-view .login-box h2 {
  text-align: center;
}

.login-providers {
  display: grid;
  gap: 12px;
  margin: 20px 0 8px;
}

/* 指で押しやすい大きさ (高さ52px・文字16px = iOS で勝手に拡大されない) */
.btn-idp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-idp:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-idp:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 各社のブランドガイドラインに合わせた配色 (Google: 白地・枠線 / LINE: 緑地・白文字) */
.btn-idp-google {
  border: 1px solid #747775;
  background: #ffffff;
  color: #1f1f1f;
}

.btn-idp-google:hover:not(:disabled) {
  background: #f8f9fa;
}

.btn-idp-line {
  border: 1px solid #06c755;
  background: #06c755;
  color: #ffffff;
}

.btn-idp-line:hover:not(:disabled) {
  background: #05b34c;
}

/* Apple: 黒地・白文字 (Apple のヒューマンインターフェイスガイドラインの Sign in with Apple のボタン) */
.btn-idp-apple {
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
}

.btn-idp-apple:hover:not(:disabled) {
  background: #1f1f1f;
}

.idp-mark-apple {
  width: 17px;
  height: 20px;
}

.idp-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.idp-mark-google {
  width: 22px;
  height: 22px;
  color: #4285f4;
  font-size: 18px;
}

.idp-mark-line {
  padding: 1px 5px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.login-inapp-note {
  margin: 4px 0 0;
}

/* 使えないログイン方法のボタンのすぐ下に出す「準備中」の補足 (admin-common.js の ChumonbanAuthProviders が出し入れする) */
.idp-unavailable-note {
  margin: -6px 0 2px;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.login-links {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
  text-align: center;
  list-style: none;
}

.login-links a {
  color: var(--color-accent-dark);
}

/* 登録が無いアカウントのときだけ、案内の下に出す「利用開始の手続きへ」(admin-common.js が出し入れする) */
.login-signup-cta {
  margin-top: 12px;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

.logout-dialog {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.logout-dialog p {
  margin: 0;
}

.btn-text {
  padding: 10px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 14px;
  cursor: pointer;
}

.notice-migration {
  display: grid;
  gap: 10px;
  border-color: var(--color-accent);
}

.notice-migration p {
  margin: 0;
}

.identity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}

.identity-row:last-child {
  border-bottom: none;
}

.identity-title {
  margin: 0;
  font-weight: 700;
}

/* セキュリティ画面の「〇〇 を追加する」が押せない理由は、その行の下の段に出す (admin-common.js の ChumonbanAuthProviders が出し入れする) */
.identity-row .idp-unavailable-note {
  flex-basis: 100%;
  margin: 0;
  text-align: left;
}

/* スマートフォン (375px / 390px) では画面の端まで使う */
@media (max-width: 480px) {
  .login-box {
    margin: 24px 12px;
    padding: 20px 16px;
  }
}

/* ---- 期間限定の販売 (migration 0063) ---- */
.limited-sale-block {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #dfe2e6);
}

.limited-sale-heading {
  font-size: 1rem;
  margin: 0 0 4px;
}

.ls-year-select {
  width: auto;
  margin-left: 8px;
}

.ls-date-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.ls-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ls-date-row label {
  min-width: 7em;
}

.ls-date-row .number-input {
  max-width: 8em;
}

.limited-sale-text {
  color: var(--color-text, #33383d);
}
