/* SEVEN. 予約ページ — 白基調・letter-spacing広めの世界観。字体は公式サイト(seven-oita.com)に合わせる */

[hidden] { display: none !important; }

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

:root {
  --ink: #2c2c2c;   /* = 公式サイトの --color-primary（基準の文字色を完全一致させる） */
  --sub: #666;      /* = 公式サイトの --color-gray */
  --line: #e8e6e3;
  --line-light: #eee;
  --red: #c25a5a;
  --blue: #5b7fae;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---- ヘッダ ---- */
.site-header {
  text-align: center;
  padding: 36px 20px 20px;
  border-bottom: 1px solid var(--ink);
}
/* ロゴは公式サイト(seven-oita.com)の .hero-title / .hero-sublogo と同一の字体・字間・色に合わせる */
.brand {
  font-family: 'Helvetica Neue', 'Arial Black', 'Helvetica', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sub {
  font-family: 'Helvetica Neue', 'Arial Black', 'Helvetica', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.32em;
  margin-top: 6px;
  margin-left: 0.32em;
  color: var(--ink);
  text-transform: uppercase;
}

/* ---- ステップ表示 ---- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px 4px;
}
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #ccc;
}
.step .step-no { font-size: 11px; }
.step.active { color: var(--ink); }
.step.done {
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.step:disabled { cursor: default; }
.step-line {
  width: 20px;
  height: 1px;
  background: var(--line);
  flex-shrink: 0;
}

/* ---- レイアウト ---- */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 4px 20px 40px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 500; /* ラベルはサイトのdt(500)に合わせる */
  letter-spacing: 4px;
  color: #666;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 28px 0 14px;
}
.section-title-ja {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--sub);
  text-align: right;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px 0 2px;
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--sub);
}
.back-btn:active { color: var(--ink); }

/* ---- ゲート（LIFF外アクセス） ---- */
.gate-box {
  text-align: center;
  padding: 72px 8px;
}
.gate-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.gate-text {
  font-size: 12px;
  color: var(--sub);
  line-height: 2.1;
}

/* ---- 予約方法の選択（外部ブラウザ） ---- */
.entry-box {
  padding: 40px 4px 24px;
}
.entry-lead {
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 24px;
}
.entry-note {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--sub);
  line-height: 1.9;
  margin: 10px 2px 6px;
}

/* ---- メニュー選択 ---- */
.menu-cat-title {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 4px;
  color: #666;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 6px;
  margin: 26px 0 2px;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 4px;
  border-bottom: 1px dotted var(--line-light);
  text-align: left;
  transition: background 0.2s ease;
}
.menu-item:active { background: #f7f6f5; }
.menu-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.menu-item-name {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.menu-item-dur {
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--sub);
  margin-top: 2px;
}
.menu-item-price {
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ---- 選択中メニューの帯 ---- */
.sel-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--ink);
  padding: 12px 16px;
  margin-top: 10px;
}
.sel-name {
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.6;
}
.sel-meta {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--sub);
}

/* ---- カレンダー ---- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-head { margin-bottom: 4px; }
.cal-wday {
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--sub);
  padding: 4px 0;
}
.cal-wday.sun { color: var(--red); }
.cal-wday.sat { color: var(--blue); }

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  border: 1px solid var(--line-light);
  font-weight: 400;
}
.cal-cell.blank {
  border: none;
  cursor: default;
}
.cal-day {
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.cal-cell.sun .cal-day { color: var(--red); }
.cal-cell.sat .cal-day { color: var(--blue); }
.cal-mark {
  font-size: 9px;
  line-height: 1.4;
  color: var(--ink);
}
.cal-few { color: #555; }
.cal-full, .cal-closed { color: #ccc; }
.cal-cell:disabled { background: #fafafa; cursor: default; }
.cal-cell:disabled .cal-day { color: #c9c9c9; }
.cal-cell.selected {
  background: var(--ink);
  border-color: var(--ink);
}
.cal-cell.selected .cal-day,
.cal-cell.selected .cal-mark { color: #fff; }

.legend {
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: #666;
  margin-top: 12px;
}

/* ---- 時間チップ ---- */
.slot-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.slot-chip {
  min-height: 44px;
  border: 1px solid #ccc;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: background 0.15s ease, color 0.15s ease;
}
.slot-chip:active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.slot-empty {
  font-size: 12px;
  color: var(--sub);
  padding: 8px 0;
}

/* ---- 確認・完了 ---- */
.confirm-list {
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-light);
}
.confirm-row dt {
  font-size: 11px;
  font-weight: 500; /* サイトの reservation-info dt と同じ扱い */
  letter-spacing: 2px;
  color: var(--sub);
  flex-shrink: 0;
}
.confirm-row dd {
  font-size: 13.5px;
  letter-spacing: 0.5px;
  text-align: right;
  overflow-wrap: anywhere;
}

.form-group { margin-top: 18px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #555; /* = サイトの --color-secondary */
  margin-bottom: 6px;
}
.req { color: var(--red); font-size: 9px; letter-spacing: 1px; margin-left: 6px; }
.opt { color: var(--sub); font-size: 9px; letter-spacing: 1px; margin-left: 6px; }
.form-group input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px; /* iOSの自動ズーム防止 */
  letter-spacing: 0.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
}
.form-group input:focus {
  outline: none;
  border-color: var(--ink);
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 14px;
}
.policy-note {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--sub);
  line-height: 1.9;
  margin-top: 18px;
}
.trial-notice {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
}
.trial-notice-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.trial-notice-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--sub);
}
.trial-notice-list li { margin-bottom: 4px; }
.trial-notice-list li:last-child { margin-bottom: 0; }
.trial-notice-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  cursor: pointer;
}
.trial-notice-check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ボタンは <button> でも <a>（カレンダー追加リンク等）でも同じ見た目になるよう
   flexで中央寄せ・下線なしにする（blockのままだとaは文字が左上に寄り下線が残る） */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  text-decoration: none;
  transition: opacity 0.25s ease; /* サイトのリンクと同じ触り心地 */
}
.btn-primary:active { opacity: 0.55; }
.btn-primary:disabled { opacity: 0.4; }

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 28px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 3px;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.btn-outline:active { opacity: 0.55; }

.done-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 40px auto 18px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 24px;
}
.done-title {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 24px;
}
.done-note {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--sub);
  margin-top: 18px;
}
/* 本文中のリンク（公式LINE誘導など。サイトのサブリンクと同じ下線スタイル） */
.text-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Apple標準カレンダー派向けの控えめな.icsリンク（サイトのサブリンクと同じ下線スタイル） */
.done-ics-link {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 14px;
}

/* ---- 予約の確認・キャンセル ---- */
.my-bookings {
  max-width: 480px;
  margin: 8px auto 0;
  padding: 0 20px 8px;
}
.mb-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px dotted var(--line-light);
}
.mb-item.cancelled { opacity: 0.45; }
.mb-item.cancelled .mb-date { text-decoration: line-through; }
.mb-info { min-width: 0; }
.mb-date {
  font-size: 13px;
  letter-spacing: 0.5px;
}
.mb-menu {
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.mb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.mb-status-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--sub);
}
.mb-status-label.mb-confirmed { color: var(--ink); }
.mb-cancel-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ccc;
  font-size: 11px;
  letter-spacing: 1px;
  color: #555;
}
.mb-cancel-btn:active {
  border-color: var(--ink);
  color: var(--ink);
}
.mb-empty {
  font-size: 12px;
  color: #666;
  padding: 8px 0;
}

/* ---- フッタ ---- */
.site-footer {
  text-align: center;
  margin-top: 32px;
  padding: 28px 20px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--sub);
}

/* 個人情報の取り扱い（利用目的の公表）。フッタ内の控えめな折りたたみ */
.privacy {
  max-width: 480px;
  margin: 14px auto 0;
  text-align: left;
}
.privacy summary {
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy-body {
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1.9;
  color: var(--sub);
  padding: 4px 2px 8px;
}
.privacy-body p { margin-bottom: 8px; }
.privacy-body ul { margin: 0 0 8px 1.4em; }

/* ---- ローディング・トースト ---- */
.loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.spinner {
  width: 28px;
  height: 28px;
  border: 1.5px solid #e0e0e0;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--sub);
}

.toast {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 110;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.7;
  padding: 14px 16px;
  text-align: center;
}
