/*
 * 静的デモ（web 版）: 店舗「fixU Work 渋谷」の見た目を Figma（ページ「デモ画面」の A案）に合わせる上書き。
 *
 * 配色（Webスタイル管理の 5 設定）は各ページの :root（--bs-base など）を直接書き換えている。
 * ここで持つのは、設定値では表せない Figma との差だけ:
 *   - 選択中タブの件数バッジの数字を白にする（Figma 25:204「PdM へ修正依頼中・修正後の想定」）
 *   - 利用明細・合計バー・チェックアウト確認の並びと文字の大きさ（Figma 63:81 / 63:87）
 *   - PC 表示のヘッダー・サイドメニュー・タブ・下部ボタンの寸法（Figma 125:92 / 63:69）
 *   - 収録時にフォントが欠けて四角になっていた Feather アイコン（feather-*）を SVG で描く
 *   - ベースカラー（#C0CEAE）を文字色に使っている箇所を濃い緑 #6E7F5C にする（白地で薄すぎるため。2026-11-25 木田さん回答）
 * 固定色（営業時間の青、利用時間・金額の紺など）はここでは変えない。
 */

/* ---- 共通 ---- */

/* ベースカラーの文字（.text-base・.btn-outline-base の文字）を濃い緑に。背景・枠のベースカラーはそのまま。
   例: 利用履歴の店舗名、予約画面のオプション名、確認シートの「お支払い額」と金額、店舗トップの利用可能時間。
   .btn-outline-base の hover（ベース地に白文字）は layout.css のまま */
.text-base { color: #6E7F5C !important; }
.btn-outline-base { color: #6E7F5C; }

/* 選択中タブの件数バッジ: アクセント地に白文字 */
#admin-Navi .active .number { color: #fff; }

/* Feather アイコン（フォント未収録）。使っている 4 種だけ mask で描く */
[class^="feather-"],
[class*=" feather-"] { font-family: inherit !important; } /* 未収録のフォントを取りに行かない */
[class^="feather-"]::before,
[class*=" feather-"]::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--demo-feather) center / contain no-repeat;
  mask: var(--demo-feather) center / contain no-repeat;
}
.feather-clock { --demo-feather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.feather-list { --demo-feather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E"); }
.feather-chevron-right { --demo-feather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E"); }
.feather-check-circle { --demo-feather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E"); }

/* ---- 会員登録の利用規約（/register/term/）の下部ボタン ----
   収録 HTML は読み込み時に JS で幅を本文の幅（px）に固定するため、画面の幅が変わる（回転・ウィンドウの拡縮）と
   「次へ進む」が右へはみ出していた（2026-11-26 木田さん）。幅を左右の位置で決め、端末下端の安全領域ぶん余白を足す */
#button_area {
  left: 0;
  right: 0;
  width: auto !important;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 768px) {
  #button_area { left: 50%; } /* 本文は右半分（col-md-6） */
}

/* ---- 利用明細（/checkin/） ---- */
.demo-bill { color: #272727; }
.demo-bill__title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.demo-bill__title + .demo-bill__title { margin-top: 4px; }
.demo-bill__text { margin-top: 6px; font-size: 13px; line-height: 1.6; }

/* 合計バー: 「時間」00:00:00 ……… 「金額」330円 */
.demo-totals { display: flex; align-items: baseline; gap: 8px; }
.demo-totals__label { font-size: 11px; color: #999; }
.demo-totals__value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #004876; /* 固定色（紺）。収録時の値のまま */
}

/* ---- PC 表示（Figma は 1440 幅） ---- */
@media (min-width: 768px) {
  /* ヘッダーの店舗名 */
  header.bg-header h1 { font-size: 26px; }

  /* サイドメニュー: 帯の下 56px から、幅いっぱいの行（高さ 55・間隔 6）、文字 17px */
  .admin-Header .admin-Header__inner { padding-top: calc(var(--fixu-demo-bar-h, 0px) + 56px) !important; }
  .admin-Header .login-Header__navi { max-width: none; }
  .admin-Header .login-Header__navi li { height: 55px; }
  .admin-Header .login-Header__navi li + li { margin-top: 6px !important; }
  .admin-Header .login-Header__navi a { font-size: 17px; border-radius: 6px; }
  .admin-Header .login-Header__navi div { width: 56px; }

  /* タブ: 文字 16px、件数バッジは角丸の横長 */
  #admin-Navi a { height: 53px; padding: 12px 16px 14px; font-size: 16px; }
  #admin-Navi .number {
    width: auto;
    min-width: 27px;
    height: 23px;
    padding: 0 8px;
    margin-left: 8px;
    border-radius: 999px;
    font-size: 14px;
  }

  /* 店舗トップ: サービスの入口ボタン（#offering_links）。Figma 125:138: タブの下 24・左は店舗画像にそろえて 24（Figma は 28）、ボタンの高さ 50・文字 16、間隔 12 */
  #offering_links { padding: 24px 24px 0 !important; gap: 12px !important; }
  #offering_links .btn { padding: 12px 18px; font-size: 16px; line-height: 26px; border-radius: 4px; }

  /* 店舗トップ下部: 営業時間（高さ 57）・チェックイン（高さ 61）、文字 18px */
  #tutorial_start { padding: 14px !important; font-size: 18px; border-radius: 4px; }
  .button_checkin { height: 61px !important; font-size: 18px; border-radius: 8px !important; }

  /* 利用明細 */
  .demo-bill { padding: 24px 16px !important; }
  .demo-bill__title { font-size: 16px; }
  .demo-bill__text { font-size: 14px; }
  .demo-totals__label { font-size: 13px; }
  .demo-totals__value { font-size: 36px; }
  #checkout { height: 61px !important; font-size: 18px; border-radius: 8px !important; }

  /* チェックアウト確認 */
  #menu-checkout > div { padding: 24px !important; }
  #menu-checkout .menu-title > div:first-child { font-size: 22px !important; margin-bottom: 12px !important; }
  #menu-checkout .menu-title > div { font-size: 18px; margin-bottom: 12px !important; }
  #menu-checkout #total_price,
  #menu-checkout .demo-pay { font-size: 24px !important; }
  #menu-checkout .divider { display: none; }
  #button_checkout_execute,
  #button_checkout_cancel { height: 61px !important; font-size: 18px; border-radius: 8px; }
  #button_checkout_execute { margin-bottom: 12px !important; }
}
