/* =======================================
   松永土地フェアLP203-5 来場予約フォーム
   既存LP（lp203-4）のデザイントークンに合わせて構築
   - ブランドティール  : #4DAEC3 → #2B7A8E（FVと共通）
   - CTAグラデ(橙→赤)  : #FFB088 → #FF8870 → #F56060（既存CTAボタンと共通）
   - 文字縁取り        : #B23A00（既存CTAと共通）
   - フォント          : body継承（ヒラギノ角ゴ）
   ======================================= */

/* スムーススクロール（CTA→フォーム） */
/* ブラウザの自動ダーク（強制暗転）を抑止し、ページ全体を常にライト配色に固定 */
:root { color-scheme: light; }
html { scroll-behavior: smooth; color-scheme: light; }

/* =======================================
   セクション全体（ブランドティールの帯）
   ======================================= */
.reserve-section {
  position: relative;
  width: 100%;
  background: #ffdcca;
  padding: 9vw 5vw 12vw;
  scroll-margin-top: 8px;
}
@media (min-width: 800px) {
  .reserve-section { padding: 64px 40px 88px; }
}

.reserve-inner {
  max-width: 540px;
  margin: 0 auto;
}

/* =======================================
   見出し（白文字・FVと同じトーン）
   ======================================= */
.reserve-head {
  text-align: center;
  color: #fff;
  margin-bottom: 5.5vw;
}
.reserve-head p, .reserve-head h2 { color: #fff; margin: 0; }
@media (min-width: 800px) { .reserve-head { margin-bottom: 28px; } }

.reserve-head__tag {
  display: inline-block;
  font-size: 3.4vw;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 1.4vw 4.4vw;
  margin-bottom: 3.2vw;
}
.reserve-head__title {
  font-size: 7.6vw;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.reserve-head__venue {
  font-size: 3.6vw;
  font-weight: 600;
  margin-top: 2.4vw !important;
  opacity: 0.95;
}
@media (min-width: 800px) {
  .reserve-head__tag { font-size: 14px; padding: 6px 20px; margin-bottom: 14px; }
  .reserve-head__title { font-size: 40px; }
  .reserve-head__venue { font-size: 16px; margin-top: 10px !important; }
}

/* =======================================
   フォームカード（白）
   ======================================= */
.reserve-form,
.reserve-done {
  background: #fff;
  border-radius: 14px;
  padding: 6.5vw 5.5vw;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
}
@media (min-width: 800px) {
  .reserve-form, .reserve-done { padding: 34px 30px; }
}

/* 入力フィールド */
.rsv-field { margin-bottom: 3.8vw; }
.rsv-field:last-of-type { margin-bottom: 0; }
@media (min-width: 800px) { .rsv-field { margin-bottom: 18px; } }

.rsv-label {
  display: block;
  font-size: 3.5vw;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.6vw;
}
.rsv-label .req {
  color: #F56060;
  font-weight: 900;
  margin-left: 4px;
}
@media (min-width: 800px) { .rsv-label { font-size: 14px; margin-bottom: 7px; } }

/* ダークモードでもフォームは必ずライト表示に固定（UAの自動反転を抑止） */
.reserve-form { color-scheme: light; }
.reserve-form input,
.reserve-form select {
  display: block;
  width: 100%;
  font-size: 16px;                  /* iOSの自動ズーム防止に16px以上 */
  font-family: inherit;
  padding: 13px 14px;
  border: 1px solid #cfd6dc;
  border-radius: 10px;
  background-color: #fff !important; /* 背景は必ず白 */
  color: #111 !important;           /* 入力文字は必ず黒 */
  color-scheme: light;
  line-height: 1.4;
}
.reserve-form input::placeholder { color: #9ba3ac !important; opacity: 1; } /* プレースホルダーは薄いグレー（入力済みに見えないように） */
.reserve-form input:focus,
.reserve-form select:focus {
  outline: none;
  border-color: #4DAEC3;
  box-shadow: 0 0 0 3px rgba(77, 174, 195, 0.25);
}
.reserve-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232B7A8E' stroke-width='2.2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.reserve-form select:disabled { background-color: #f3f5f8 !important; color: #555 !important; }
/* 満席の枠を選んだ時の警告（赤枠＋注意文） */
.reserve-form select.is-invalid { border-color: #F56060; box-shadow: 0 0 0 3px rgba(245, 96, 96, 0.18); }
.rsv-slot-note { margin-top: 1.6vw; font-size: 12.5px; line-height: 1.5; color: #555; }
.rsv-slot-note.is-error { color: #F56060; font-weight: 700; }
.rsv-slot-note:empty { display: none; }
@media (min-width: 800px) { .rsv-slot-note { margin-top: 7px; font-size: 13px; } }

/* 補足テキスト（注意書き程度の小さい文字） */
.rsv-hint {
  margin-top: 1.4vw;
  font-size: 2.4vw;
  line-height: 1.5;
  color: #9099a1;
}
@media (min-width: 800px) { .rsv-hint { margin-top: 6px; font-size: 10.5px; } }

/* ラベルの「（任意）」表記 */
.rsv-label .opt {
  font-weight: 500;
  font-size: 0.82em;
  color: #9099a1;
  margin-left: 5px;
}

/* ハニーポット（人間には不可視） */
.rsv-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* =======================================
   送信ボタン（既存CTAと同じ橙→赤＋縁取り文字）
   ======================================= */
/* 既存LPのCTAボタン画像をそのまま使う（画像なので強制ダークでも反転しない＝デザイン統一） */
.reserve-submit {
  position: relative;
  display: block;
  /* フォームカードの幅に対してボタン画像が小さく見えるため、約10%拡大し
     カードのパディングに少しはみ出させて視認性を上げる（左右対称に -5%）。 */
  width: 110%;
  margin-left: -5%;
  margin-top: 4vw;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  animation: rsv-bound 2.8s infinite;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 800px) { .reserve-submit { margin-top: 16px; } }
@keyframes rsv-bound {
  0%, 60%, 100% { transform: translateY(0); }
  72%           { transform: translateY(-5px); }
  84%           { transform: translateY(0); }
}
.reserve-submit__label {
  display: block;
  width: 100%;
  height: auto;
}
.reserve-submit:disabled { cursor: default; animation: none; }
.reserve-submit:disabled .reserve-submit__label { opacity: 0.5; filter: grayscale(0.2); }
.reserve-submit.is-loading .reserve-submit__label { opacity: 0.45; }
/* 送信中スピナー（ボタン中央にオーバーレイ） */
.reserve-submit__spin {
  display: none;
  position: absolute; top: 50%; left: 50%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 3px solid rgba(255, 255, 255, 0.6); border-top-color: #fff;
  border-radius: 50%; animation: rsv-rot 0.7s linear infinite;
}
.reserve-submit.is-loading .reserve-submit__spin { display: block; }

/* 送信中スピナー */
.rsv-spin {
  display: inline-block;
  width: 17px; height: 17px;
  margin-right: 8px; vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rsv-rot 0.7s linear infinite;
}
@keyframes rsv-rot { to { transform: rotate(360deg); } }

/* メッセージ */
.rsv-msg { margin-top: 3.8vw; font-size: 13px; text-align: center; color: #555; }
.rsv-msg.is-error { color: #F56060; font-weight: 700; }
@media (min-width: 800px) { .rsv-msg { margin-top: 16px; font-size: 14px; } }

.rsv-note {
  text-align: center;
  color: #333333;
  font-size: 3vw;
  line-height: 1.6;
  margin-top: 4.5vw;
}
@media (min-width: 800px) { .rsv-note { font-size: 12px; margin-top: 18px; } }

/* =======================================
   完了画面
   ======================================= */
.reserve-done { text-align: center; }
.reserve-done__ico {
  width: 64px; height: 64px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: #eaf7f0; color: #1a7f37;
  border-radius: 50%; font-size: 34px; font-weight: 900;
}
.reserve-done__title { font-size: 19px; font-weight: 900; color: #2B7A8E; margin: 6px 0 10px; }
.reserve-done__slot {
  display: inline-block;
  background: #eef6f9; color: #2B7A8E;
  font-weight: 800; font-size: 15px;
  padding: 8px 18px; border-radius: 999px; margin: 4px 0 12px;
}
.reserve-done__lead { font-size: 14px; color: #444; line-height: 1.7; }
.reserve-done__bk { font-size: 12px; color: #889098; margin-top: 12px; }
.reserve-done__bk code {
  background: #f3f5f8; padding: 2px 8px; border-radius: 6px;
  font-size: 12px; color: #555;
}

/* 受付終了案内（全期間終了＝8/30より後） */
.reserve-closed {
  background: #fff;
  border-radius: 14px;
  padding: 8vw 6vw;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
  text-align: center;
}
@media (min-width: 800px) { .reserve-closed { padding: 44px 34px; } }
.reserve-closed__title { font-size: 19px; font-weight: 900; color: #2B7A8E; margin: 0 0 12px; }
.reserve-closed__lead { font-size: 14px; color: #444; line-height: 1.8; }
