/* =============================================
   form.css — 応募フォーム専用スタイル（白×赤・上質デザイン）
============================================= */

.form-page {
  background:
    radial-gradient(circle at 15% 0%, rgba(232,25,44,.04) 0%, transparent 45%),
    radial-gradient(circle at 100% 30%, rgba(232,25,44,.03) 0%, transparent 40%),
    #FDFDFD;
}

/* ---------- フォームヒーロー ---------- */
.form-hero {
  background: linear-gradient(150deg, var(--red-dark) 0%, var(--red) 55%, #FF3B4E 100%);
  padding: 108px 20px 64px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.form-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 34px,
    rgba(255,255,255,.035) 34px, rgba(255,255,255,.035) 68px
  );
}
.form-hero::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -140px;
  width: 420px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
  pointer-events: none;
}

.form-hero-inner { position: relative; z-index: 2; }

.form-hero-eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.4);
  display: inline-block;
  padding: 6px 22px;
  border-radius: 99px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.form-hero-title {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 2px 3px 0 rgba(120,0,0,.35), 0 10px 30px rgba(0,0,0,.28);
  margin-bottom: 12px;
  letter-spacing: .02em;
}

.form-hero-sub {
  font-size: 1.02rem;
  opacity: .92;
  font-weight: 500;
}

/* ---------- フォームメイン ---------- */
.form-main {
  padding: 0 20px 90px;
  margin-top: -32px;
  position: relative;
  z-index: 3;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- 注意事項 ---------- */
.form-notice {
  background: var(--white);
  border: 1px solid #F3E3C8;
  border-left: 4px solid #E0A400;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
}

.form-notice h3 {
  font-size: .92rem;
  font-weight: 800;
  color: #8A5F00;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-notice ul {
  list-style: none;
  display: grid;
  gap: 7px;
}

.form-notice li {
  font-size: .87rem;
  color: #5A4A2A;
  padding-left: 1.2em;
  position: relative;
  line-height: 1.65;
}
.form-notice li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #E0A400;
}
.form-notice li strong { color: var(--red); }

/* ---------- ステップインジケーター ---------- */
.form-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 8px;
  padding: 24px 12px 28px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -1px 0 rgba(0,0,0,.02);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 84px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F1F1F1;
  color: #B0B0B0;
  font-size: .92rem;
  font-weight: 800;
  font-family: 'Kaisei Decol', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.step-label {
  font-size: .7rem;
  font-weight: 700;
  color: #B8B8B8;
  white-space: nowrap;
  transition: color var(--transition);
  letter-spacing: .02em;
}

.step.active .step-num   { background: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(232,25,44,.4); }
.step.active .step-label { color: var(--red); }
.step.done  .step-num    { background: var(--accent); color: #6B4E00; }
.step.done  .step-label  { color: #B08900; }

.step-line {
  flex: 1;
  height: 2px;
  background: #EDEDED;
  min-width: 20px;
  max-width: 52px;
  margin: 18px 0 0;
  transition: background var(--transition);
}

/* ---------- フォームステップ ---------- */
.form-step {
  background: var(--white);
  border-radius: 0 0 24px 24px;
  padding: 40px 40px 44px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  border: 1px solid #F5E5E7;
  border-top: none;
}

.form-step.hidden { display: none; }

.step-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1A1A1A;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F7EAEB;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.step-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 1.1em;
  background: var(--red);
  border-radius: 3px;
  margin-right: 2px;
}
.step-title span {
  font-size: .9rem;
  font-weight: 600;
  color: #999;
}

/* ---------- フィールド ---------- */
.field-group {
  margin-bottom: 26px;
}

.field-label {
  display: block;
  font-size: .87rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: .01em;
}

.field-label.required::after {
  content: '必須';
  background: var(--red);
  color: var(--white);
  font-size: .64rem;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: .04em;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 13px 16px;
  font-size: .96rem;
  font-family: inherit;
  border: 1.5px solid #E8E8E8;
  border-radius: 10px;
  background: #FBFBFB;
  color: #222;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232,25,44,.09);
}

textarea { resize: vertical; line-height: 1.75; min-height: 100px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #B0B0B0;
  border-bottom: 2px solid #B0B0B0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field-hint {
  font-size: .8rem;
  color: var(--gray);
  margin-top: 7px;
  line-height: 1.55;
}

.field-error {
  font-size: .8rem;
  color: var(--red);
  font-weight: 700;
  margin-top: 7px;
  display: none;
}

/* ---------- ラジオカード ---------- */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-card { cursor: pointer; }
.radio-card input[type="radio"] { display: none; }

.radio-card-inner {
  border: 1.5px solid #EBEBEB;
  border-radius: 16px;
  padding: 26px 16px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  background: #FBFBFB;
  position: relative;
}

.radio-card:hover .radio-card-inner {
  border-color: #FFC2C9;
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.radio-card input:checked + .radio-card-inner {
  border-color: var(--red);
  background: linear-gradient(160deg, #FFF5F6 0%, #FFFFFF 100%);
  box-shadow: 0 8px 24px rgba(232,25,44,.14);
}
.radio-card input:checked + .radio-card-inner::after {
  content: '✓';
  position: absolute;
  top: 10px; right: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .68rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

.radio-card-icon { font-size: 2.1rem; margin-bottom: 10px; }
.radio-card-title { font-size: .96rem; font-weight: 800; color: #1A1A1A; margin-bottom: 4px; }
.radio-card-desc  { font-size: .78rem; color: var(--gray); }

/* ---------- ナビゲーションボタン ---------- */
.step-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid #F5EBEC;
}

.btn-next, .btn-submit {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border: none;
  padding: 14px 38px;
  font-size: .95rem;
  font-weight: 800;
  border-radius: 99px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  font-family: inherit;
  box-shadow: 0 10px 26px rgba(232,25,44,.28);
}
.btn-next:hover, .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(232,25,44,.38);
  filter: brightness(1.04);
}

.btn-back {
  background: var(--white);
  color: #888;
  border: 1.5px solid #E8E8E8;
  padding: 13px 26px;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  font-family: inherit;
}
.btn-back:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ---------- 確認テーブル ---------- */
.confirm-table {
  border: 1px solid #F0E5E6;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 26px;
}

.confirm-row {
  display: flex;
  border-bottom: 1px solid #F5EBEC;
}
.confirm-row:nth-child(even) { background: #FCFAFA; }
.confirm-row:last-child { border-bottom: none; }

.confirm-label {
  width: 128px;
  flex-shrink: 0;
  background: #FFF6F7;
  padding: 14px 16px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--red-dark);
  border-right: 1px solid #F5EBEC;
}

.confirm-val {
  flex: 1;
  padding: 14px 16px;
  font-size: .9rem;
  color: #222;
  word-break: break-all;
}

/* ---------- 同意チェック ---------- */
.form-terms { margin-bottom: 10px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: .9rem;
  color: #333;
  line-height: 1.65;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

/* ---------- 送信完了 ---------- */
.form-complete {
  background: var(--white);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  border: 1px solid #F5E5E7;
}
.form-complete.hidden { display: none; }

.complete-icon {
  font-size: 3.6rem;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 14px rgba(232,25,44,.25));
}

.form-complete h2 {
  font-family: 'Kaisei Decol', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 18px;
}

.form-complete > p {
  font-size: 1rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 34px;
}

.complete-line {
  background: #FBFAF6;
  border: 1px solid #E9E2CC;
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.complete-qr {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.complete-line p {
  font-size: .89rem;
  color: #6B5E30;
  line-height: 1.75;
}

/* ---- 完了画面：ステップ案内 ---- */
.complete-line-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FAFAFA;
  border-radius: 12px;
  padding: 13px 20px;
  margin-bottom: 10px;
  font-size: .9rem;
  color: #444;
  text-align: left;
}
.complete-line-notice.highlight {
  background: #FFF5F6;
  border: 1.5px solid #FFC2C9;
  color: #222;
}
.complete-line-notice strong { color: var(--red); }

.complete-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-line-open {
  display: inline-block;
  background: #06C755;
  color: var(--white);
  font-size: 1.06rem;
  font-weight: 800;
  padding: 17px 44px;
  border-radius: 99px;
  margin: 24px 0 26px;
  box-shadow: 0 12px 30px rgba(6,199,85,.3);
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: .03em;
}
.btn-line-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(6,199,85,.38);
}

.btn-back-top {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 14px 38px;
  border-radius: 99px;
  font-weight: 800;
  font-size: .95rem;
  transition: background var(--transition), color var(--transition);
}
.btn-back-top:hover {
  background: var(--red);
  color: var(--white);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
  .form-hero { padding: 92px 20px 56px; }
  .form-main { margin-top: -24px; }
  .form-step { padding: 30px 22px 34px; }
  .form-steps { padding: 20px 6px 22px; border-radius: 20px 20px 0 0; }
  .step { width: 62px; }
  .radio-cards { grid-template-columns: 1fr; }
  .step-nav { flex-direction: column-reverse; }
  .btn-next, .btn-submit, .btn-back { width: 100%; text-align: center; }
  .confirm-label { width: 92px; font-size: .78rem; }
  .step-label { display: none; }
  .complete-line { flex-direction: column; text-align: center; }
  .form-complete { padding: 48px 24px; }
}
