/* =============================================
   e.NAILS Web予約フォーム
   ============================================= */

:root {
  --blue:       #0066CC;
  --blue-dark:  #004fa3;
  --blue-light: #e8f0fb;
  --white:      #ffffff;
  --bg:         #f4f6f9;
  --text:       #1a1a2e;
  --text-sub:   #555;
  --border:     #d0d8e8;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,102,204,0.10);
  --success:    #4a1a8a;
}

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

body {
  font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  min-height: 100vh;
}

/* ── ヘッダー ── */
.header {
  background: var(--blue);
  color: var(--white);
  padding: 0 20px;
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
  color: white;
}

.logo-dot { color: #7ec8f7; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-sub { font-size: 13px; opacity: .85; }

.lang-btn {
  padding: 4px 10px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  background: transparent;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: .05em;
  transition: background .2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }

/* ── プログレスバー ── */
.progress-wrap {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.progress-bar {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  transition: all .3s;
}

.progress-step.active   .step-circle { background: var(--blue); color: white; }
.progress-step.done     .step-circle { background: var(--success); color: white; }

.step-label {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
}

.progress-step.active .step-label { color: var(--blue); font-weight: bold; }
.progress-step.done   .step-label { color: var(--success); }

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 14px;
  transition: background .3s;
}

.progress-line.done { background: var(--success); }

/* ── メイン ── */
.main {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ── ステップ表示制御 ── */
.step { display: none; }
.step.active { display: block; }

.step-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  color: var(--blue-dark);
}

/* ── カテゴリタブ ── */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cat-tab {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: white;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-sub);
}

.cat-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: bold;
}

/* ── メニューリスト ── */
.menu-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.menu-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-card:hover { border-color: var(--blue); }
.menu-card.selected { border-color: var(--blue); background: var(--blue-light); }

.menu-info { flex: 1; }
.menu-name { font-size: 15px; font-weight: bold; margin-bottom: 2px; }
.menu-name-ja { font-size: 11px; color: var(--text-sub); margin-bottom: 4px; }
.menu-meta { font-size: 12px; color: var(--text-sub); }

.menu-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--blue);
  white-space: nowrap;
}

.menu-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}

.menu-card.selected .menu-check {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* ── オプション ── */
.option-box {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.option-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
  cursor: pointer;
}

.option-text { font-size: 15px; }
.option-price { color: var(--blue); font-weight: bold; margin-left: 6px; }

/* ── カレンダー ── */
.calendar-wrap {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.calendar-header {
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.cal-nav {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 0 8px;
  opacity: .8;
  transition: opacity .2s;
}

.cal-nav:hover { opacity: 1; }
.cal-month { font-size: 16px; font-weight: bold; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.cal-weekdays span {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: bold;
}

.cal-weekdays span:first-child { color: #e53935; }
.cal-weekdays span:last-child  { color: var(--blue); }

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}

.cal-day:hover:not(.disabled):not(.empty) { background: var(--blue-light); }
.cal-day.today { font-weight: bold; color: var(--blue); }
.cal-day.selected { background: var(--blue) !important; color: white !important; }
.cal-day.disabled { color: #ccc; cursor: not-allowed; }
.cal-day.sunday { color: #e53935; }
.cal-day.saturday { color: var(--blue); }
.cal-day.empty { cursor: default; }

/* 空き表示ドット */
.cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--success);
}

/* ── 時間スロット ── */
.time-section { margin-bottom: 20px; }
.time-title { font-size: 15px; font-weight: bold; margin-bottom: 12px; }

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 10px 4px;
  text-align: center;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.time-slot:hover { border-color: var(--blue); }
.time-slot.selected { background: var(--blue); color: white; border-color: var(--blue); font-weight: bold; }
.time-slot.disabled { background: #f5f5f5; color: #ccc; cursor: not-allowed; border-color: var(--border); }

/* ── フォーム ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-desc { font-size: 12px; color: var(--text-sub); margin-bottom: 6px; }

.required { color: #e53935; font-size: 11px; margin-left: 6px; font-weight: normal; }
.optional  { color: #999;    font-size: 11px; margin-left: 6px; font-weight: normal; }

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}

input:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; }

/* ── 確認カード ── */
.confirm-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.confirm-row {
  display: flex;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.confirm-row:last-child { border-bottom: none; }
.confirm-label { font-size: 13px; color: var(--text-sub); width: 80px; flex-shrink: 0; }
.confirm-value { font-size: 14px; font-weight: bold; flex: 1; }

.policy-note {
  font-size: 12px;
  color: var(--text-sub);
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 12px;
  border-left: 3px solid var(--blue);
}

/* ── ラジオボタン ── */
.radio-group {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

select:focus { border-color: var(--blue); }

/* ── キャンセルポリシー ── */
.policy-box {
  background: #f8fafd;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.policy-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.policy-list {
  list-style: none;
  margin-bottom: 14px;
}

.policy-list li {
  font-size: 13px;
  color: var(--text-sub);
  padding: 4px 0;
  padding-left: 12px;
  position: relative;
}

.policy-list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.policy-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.policy-agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── ボタン ── */
.btn {
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .03em;
}

.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { background: #b0c4de; cursor: not-allowed; transform: none; }
.btn-outline { background: white; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-full { width: 100%; }

/* ── ステップフッター ── */
.step-footer {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.step-footer .btn-primary { flex: 1; }

/* ── 完了画面 ── */
.complete-wrap { text-align: center; padding: 20px 0; }

.complete-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.complete-title { font-size: 20px; font-weight: bold; margin-bottom: 8px; }
.complete-id { font-size: 13px; color: var(--text-sub); margin-bottom: 4px; }
.complete-id span { font-weight: bold; color: var(--blue); }
