﻿/* ============================================================
   8つ森レンタル 共通スタイル（ダークネイビー＋ゴールド）
   index.html のGPTデザインに合わせて、予約フォーム・確認・
   管理画面のトーンを統一する。
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-deep: #eef1f5;
  --panel: #f5f6f8;
  --panel-2: #eef1f5;
  --border: #dde2e8;
  --gold: #f0b429;
  --gold-dark: #d9960f;
  --text: #15314f;
  --text-dim: #41546b;
  --text-mute: #6b7785;
  --danger: #ff6b6b;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- サブページ共通ヘッダー ---------- */
.subpage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(21, 49, 79, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.subpage-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.container { padding: 22px 20px 40px; }

/* ---------- ウィザード進捗 ---------- */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.wizard-progress .wp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wp-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--text-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--panel);
}
.wp-step.active .wp-circle,
.wp-step.done .wp-circle {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg-deep);
}
.wp-label { font-size: 10px; font-weight: 700; color: var(--text-mute); }
.wp-step.active .wp-label { color: var(--gold); }
.wp-line { width: 28px; height: 2px; background: var(--border); margin-bottom: 18px; }
.wp-line.done { background: var(--gold); }

.step-panel { display: none; }
.step-panel.active { display: block; }

/* ---------- フォーム ---------- */
.field { margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field-label .req { display: inline-block; color: #fff; background: #e0342b; font-size: 10px; font-weight: 800; line-height: 1.3; margin-left: 6px; padding: 1px 7px; border-radius: 4px; letter-spacing: .04em; vertical-align: 1px; }

.field-input,
.field-select {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #cbd8e6;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #f3f7fc;
}
.field-input::placeholder { color: var(--text-mute); }
/* フォーカス=青リングで「今ここが有効」を明示（全フォーム共通） */
.field-input:focus, .field-select:focus { outline: none; border-color: #2f6fb0; background: #fff; box-shadow: 0 0 0 3px rgba(47,111,176,.16); }
.field-select option { color: #111; }

.help-text { font-size: 11.5px; color: var(--text-mute); margin: 6px 0 0; }

/* 用具サイズ選択 */
.equip-group { margin-bottom: 22px; }
.equip-group-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--gold);
}
.size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.size-row-info { font-size: 14px; font-weight: 700; }
.size-row-remaining { font-size: 11px; color: var(--text-mute); font-weight: 500; margin-left: 8px; }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.stepper button:disabled { opacity: 0.3; }
.stepper .qty { min-width: 20px; text-align: center; font-weight: 800; font-size: 15px; }

/* ---------- ボタン ---------- */
.wizard-actions { display: flex; gap: 10px; margin-top: 8px; }
/* ご予約CTA：電話＋Instagram DM の2ボタン（WEB予約システム本稼働までの導線）。
   狭い画面では自動で縦に積む（flex-basis 230px + wrap） */
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cta-actions .btn-nav { flex: 1 1 230px; width: auto; }
.btn-nav.cta-dm { background: #15314f; color: #fff; border: none; box-shadow: 0 4px 12px rgba(21,49,79,.22); }
.btn-nav.cta-dm:hover { background: #0f2540; }
.btn-block { width: 100%; }
.btn-nav {
  flex: 1;
  border-radius: 999px;
  padding: 15px 0;
  font-weight: 800;
  font-size: 15px;
  border: none;
  text-align: center;      /* aタグのボタンでも文字を中央に */
  display: block;
}
.btn-nav.primary {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 10px 24px rgba(245, 197, 66, 0.22);
}
.btn-nav.primary:disabled { opacity: 0.5; box-shadow: none; }
.btn-nav.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ---------- アラート ---------- */
.alert {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.alert-error { background: rgba(255, 107, 107, 0.12); color: #ffb4b4; border: 1px solid rgba(255, 107, 107, 0.35); }
.alert-info { background: rgba(245, 197, 66, 0.1); color: #f3d489; border: 1px solid rgba(245, 197, 66, 0.3); }

.empty-note { font-size: 13px; color: var(--text-mute); padding: 14px 0; }

/* ---------- 完了画面 ---------- */
.done-box { text-align: center; padding: 20px 0; }
.done-check {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--gold); color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.done-title { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.done-sub { font-size: 13px; color: var(--text-dim); margin: 0 0 20px; }
.code-box {
  background: var(--panel);
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}
.code-label { font-size: 11px; color: var(--text-mute); margin: 0 0 4px; }
.code-value { font-size: 27px; font-weight: 800; letter-spacing: 0.08em; margin: 0; color: var(--gold); }

.summary-list { text-align: left; font-size: 13px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); }
.summary-row .k { color: var(--text-mute); }
.summary-row .v { font-weight: 700; }

/* ---------- 予約確認結果 ---------- */
.result-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-pending { background: rgba(245, 197, 66, 0.18); color: #f3d489; }
.status-confirmed { background: rgba(76, 217, 123, 0.18); color: #8be0a6; }
.status-cancelled { background: rgba(21, 49, 79, 0.12); color: var(--text-mute); }

/* ---------- admin ---------- */
.admin-nav {
  display: flex;
  gap: 8px;
  padding: 14px 20px 4px;
  overflow-x: auto;
}
.admin-nav a {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.admin-nav a.active { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

.data-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}
.data-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.data-card-name { font-weight: 800; font-size: 15px; }
.data-card-meta { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

.row-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-sm {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
}
.btn-sm.danger { color: #ffb4b4; border-color: rgba(255, 107, 107, 0.4); }
.btn-sm.solid { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 120px; }

/* 管理者専用であることを明確に示す帯（お客様画面と取り違えないように） */
.admin-badge {
  background: #15314f;
  color: #dbe6f2;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  padding: 7px 12px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #f0b429;
}

/* ============================================================
   ページエディタ（admin/editor.html）
   ============================================================ */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.editor-toolbar .spacer { flex: 1; }
.device-switch { display: flex; gap: 4px; background: var(--panel); border-radius: 999px; padding: 4px; }
.device-switch button {
  border: none; background: transparent; color: var(--text-dim);
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
.device-switch button.active { background: var(--gold); color: var(--bg-deep); }

.editor-shell { display: flex; height: calc(100vh - 130px); min-height: 480px; }
.editor-canvas-wrap { flex: 1; background: #f0f2f5; overflow: hidden; }
.editor-panel { width: 280px; border-left: 1px solid var(--border); overflow-y: auto; padding: 14px; background: var(--bg); flex-shrink: 0; }
.editor-panel h4 { font-size: 12.5px; margin: 16px 0 8px; color: var(--text-dim); }
.editor-panel h4:first-child { margin-top: 0; }

.version-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; font-size: 11.5px;
}
.version-item button { font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); }

#blocks-container .gjs-block { width: auto !important; }
#layers-container, #style-manager-container, #trait-manager-container { font-size: 12px; }


/* ---------- ブランドヘッダー・写真帯・店舗フッター（予約系ページ用） ---------- */
.brand-header { display:flex; align-items:center; gap:10px; height:64px; padding:0 14px; background:rgba(255,255,255,.97); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:10; }
.bh-logo { width:40px; height:40px; border-radius:50%; object-fit:contain; border:1px solid var(--border); background:#fff; }
.bh-name { font-weight:800; font-size:15px; line-height:1.2; color:var(--text); }
.bh-sub { font-size:9px; color:var(--text-mute); letter-spacing:.08em; margin-top:2px; }
.bh-page { margin-left:auto; font-size:11.5px; font-weight:800; color:var(--text-dim); background:var(--panel); border:1px solid var(--border); padding:5px 12px; border-radius:999px; white-space:nowrap; }
.mini-hero { position:relative; height:104px; overflow:hidden; }
.mini-hero img { width:100%; height:104px; object-fit:cover; object-position:left 30%; display:block; }
.mh-ov { position:absolute; inset:0; background:linear-gradient(90deg, rgba(8,18,46,.5), rgba(8,18,46,.12)); }
.mh-t { position:absolute; left:16px; bottom:14px; color:#fff; font-weight:800; font-size:15px; text-shadow:0 1px 6px rgba(0,0,0,.4); }
.page-footer { display:flex; gap:12px; align-items:center; background:var(--panel); border-top:1px solid var(--border); padding:14px 16px; margin-top:26px; font-size:11.5px; color:var(--text-dim); line-height:1.7; }
.page-footer img { width:46px; height:46px; border-radius:10px; object-fit:contain; border:1px solid var(--border); background:#fff; flex-shrink:0; }

/* 「トップへ戻る」をわかりやすく（全ページ共通） */
.back-link { display:inline-flex; align-items:center; gap:4px; padding:7px 12px 7px 9px; background:#fff; border:1.5px solid var(--border); border-radius:999px; font-weight:800; color:var(--text); font-size:15px; line-height:1; flex-shrink:0; }
.back-link::after { content:"トップへ"; font-size:11.5px; font-weight:800; }

/* ---------- PC表示（900px以上）：予約・案内ページを広いレイアウトに ---------- */
@media (min-width: 760px) {
  :root { --max-width: 760px; }
  .page { box-shadow: 0 0 48px rgba(20, 40, 60, 0.1); min-height: 100vh; }
  .brand-header, .subpage-header { padding: 0 28px; height: 72px; }
  .bh-logo { width: 46px; height: 46px; }
  .bh-name { font-size: 17px; }
  .bh-page { font-size: 13px; padding: 6px 16px; }
  .mini-hero, .mini-hero img { height: 180px; }
  .mh-t { font-size: 20px; left: 28px; bottom: 20px; }
  .container { padding-left: 48px !important; padding-right: 48px !important; }
  .page-footer { padding: 18px 28px; font-size: 13px; }
}
