/* ============================================
   RISEN 予約フォーム専用ページ
   ============================================ */
:root {
  --brand: #2b6fff;
  --brand-dark: #1a4dd6;
  --brand-soft: #eef3ff;
  --brand-bg: #f4f6f9;
  --text: #0a1e3a;
  --text-sub: #4a5a72;
  --line: #e5ebf3;
  --error: #e64545;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--brand-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

button { font-family: inherit; cursor: pointer; }

/* ============================================
   レイアウト
   ============================================ */
.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ============================================
   ブランドヘッダー
   ============================================ */
.brand {
  text-align: center;
  margin-bottom: 28px;
}
.brand-tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand), #4f8cff);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 12px 32px;
  border-radius: 999px;
  margin: 0;
  box-shadow: 0 8px 24px rgba(43, 111, 255, .35);
}
@media (min-width: 480px) {
  .brand-tag {
    font-size: 22px;
    padding: 14px 38px;
  }
}

/* ============================================
   カード
   ============================================ */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px 28px;
  box-shadow: 0 8px 32px rgba(10, 30, 58, .08);
}

.card-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
  color: var(--text);
}

.card-lead {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.8;
}
.card-lead strong {
  color: var(--brand);
  font-weight: 700;
}

/* ============================================
   フォームフィールド
   ============================================ */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.req {
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 2px;
}
.opt {
  background: #d8e0ec;
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 111, 255, .15);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: #fff5f5;
}
.field-error {
  color: var(--error);
  font-size: 12px;
  margin: 6px 0 0;
  min-height: 1em;
  line-height: 1.4;
}

/* 希望日時グループ */
.field-group {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 18px 14px 8px;
  margin-bottom: 18px;
}
.field-group-title {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}
.field-group-note {
  font-size: 11px;
  color: var(--text-sub);
  margin: 0 0 16px;
  line-height: 1.7;
}
.field-group .field { margin-bottom: 14px; }
.field-group .field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

/* 日付 + 時間枠 のペア */
.datetime-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.datetime-pair .date-input,
.datetime-pair .time-input {
  width: 100%;
}

@media (max-width: 380px) {
  .datetime-pair {
    grid-template-columns: 1fr;
  }
}

/* 送信ボタン */
.submit-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--brand), #4f8cff);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(43, 111, 255, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(43, 111, 255, .4);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.notes {
  list-style: none;
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.7;
}
.notes li { margin-bottom: 4px; }

/* ============================================
   送信完了画面
   ============================================ */
.success-card {
  text-align: center;
  padding: 40px 24px 32px;
  animation: fadeUp .4s ease both;
}
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.success-icon svg { width: 100%; height: 100%; }
.success-icon path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck .6s ease-out .25s forwards;
}
.success-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
}
.success-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
  margin: 0 0 24px;
}
.success-text strong {
  color: var(--brand);
  font-weight: 700;
}
.success-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--brand-soft);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.success-badge strong {
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
}

/* ============================================
   フッター
   ============================================ */
.footer {
  text-align: center;
  margin-top: 32px;
  color: var(--text-sub);
}
.footer-co {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.footer-copy {
  font-size: 11px;
  margin: 6px 0 0;
  opacity: .6;
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
