/* =====================================================
   SIMPIT Store 予約フォーム（reserve.html 専用）
   style.css のトークン・ヘッダー・フッター・見出しを共用
   ===================================================== */

.demo-bar { background: var(--yellow); color: var(--navy); text-align: center; font-size: 12.5px; font-weight: 700; padding: 6px 16px; line-height: 1.6; }

/* ---------- ページ見出し ---------- */
.rv-hero {
  background: var(--navy) url("assets/bg_navy_diagonal.webp") center / cover no-repeat;
  color: var(--white);
  padding-block: 56px 88px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.6vw), 0 100%);
}
.rv-hero .eyebrow { color: var(--yellow); }
.rv-hero .sec-title { margin-bottom: 18px; }
.rv-hero__lead { font-size: 15.5px; color: rgba(255,255,255,.85); }
.rv-flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.rv-flow li {
  font-size: 13px; font-weight: 700; line-height: 1.4;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px 6px 10px; transition: opacity .2s;
}
.rv-flow li b { color: var(--yellow); margin-right: 6px; }
.rv-flow li.is-off { opacity: .3; }

/* ---------- レイアウト ---------- */
.rv-main { background: var(--blue-pale) url("assets/bg_light_diagonal.webp") center / cover no-repeat; padding-block: 40px 96px; margin-top: -2.6vw; }
.rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.rv-layout > * { min-width: 0; }

.rv-step { background: var(--white); border-left: 5px solid var(--navy); padding: 32px 32px 34px; margin-bottom: 20px; }
.rv-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.rv-step__num {
  flex: none; background: var(--navy); color: var(--yellow);
  font-weight: 800; font-size: 18px; line-height: 1; letter-spacing: .04em;
  padding: 9px 16px 8px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.rv-step__title { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.rv-step__lead { font-size: 14px; color: var(--text-sub); margin-bottom: 22px; }

/* ---------- 選択肢の共通 ---------- */
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
/* その時間がない機種：選べない状態（2026-10-19） */
.opt.is-na { cursor: not-allowed; }
.opt.is-na .opt__box { opacity: .45; filter: grayscale(1); box-shadow: none; }
.opt__box { position: relative; height: 100%; background: var(--white); border: 2px solid var(--line); transition: border-color .15s, background .15s; }
.opt:hover .opt__box { border-color: #9fb0cc; }
.opt input:checked + .opt__box { border-color: var(--navy); background: var(--blue-pale); box-shadow: 5px 5px 0 var(--yellow); }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.opt__check {
  position: absolute; right: 0; top: 0; z-index: 2;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--line); color: var(--white); font-size: 15px; font-weight: 800; line-height: 1;
}
.opt__check::after { content: "✓"; }
.opt input:checked + .opt__box .opt__check { background: var(--navy); color: var(--yellow); }

/* 予約の種類 */
.rv-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rv-modes .opt__box { padding: 20px 44px 20px 22px; }
.rv-mode__name { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.5; }
.rv-mode__sub { font-size: 13.5px; color: var(--text-sub); margin-top: 2px; line-height: 1.6; }
.rv-free {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; line-height: 1.5;
  padding: 1px 12px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* 時間（LPの料金カードと同じ見た目） */
.rv-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 6px; }
.rv-times .opt__box { border: 2px solid var(--navy); text-align: center; display: flex; flex-direction: column; }
.rv-time__min { background: var(--navy); color: var(--white); font-size: 36px; font-weight: 800; line-height: 1; padding: 18px 8px 14px; white-space: nowrap; }
.rv-time__min span { font-size: 16px; margin-left: 2px; }
.rv-time__body { padding: 16px 8px 18px; }
.rv-time__for { font-size: 13px; font-weight: 700; color: var(--blue); line-height: 1.5; }
.rv-time__price { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.3; margin-top: 4px; white-space: nowrap; }
.rv-time__price span { font-size: 14px; margin-left: 2px; }
.rv-times .opt input:checked + .opt__box .rv-time__min { background: var(--blue); }
.rv-times .opt input:checked + .opt__box .rv-time__for { color: var(--navy); background: var(--yellow); display: inline-block; padding: 0 12px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.rv-times .opt__check { top: 0; }
/* 60分（おすすめ）：カード自体は他と同じ見た目。上に吹き出しを付けて目立たせる（選択状態と混ざらないように） */
.rv-times { padding-top: 26px; }
.rv-time__badge {
  position: absolute; left: 50%; top: -14px; transform: translate(-50%, -100%); z-index: 3;
  background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 800; line-height: 1.4; white-space: nowrap;
  padding: 5px 14px; border-radius: 99px;
  box-shadow: 0 2px 6px rgba(2,17,50,.18);
}
.rv-time__badge::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid var(--yellow);
}

/* 体験者 */
.rv-person + .rv-person { margin-top: 32px; padding-top: 28px; border-top: 2px solid var(--line); }
.rv-person__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rv-person__who { font-size: 18px; font-weight: 800; color: var(--navy); padding-left: 12px; border-left: 5px solid var(--yellow); line-height: 1.3; }
.rv-disc { font-size: 12.5px; font-weight: 800; color: var(--white); background: var(--blue); padding: 3px 12px; line-height: 1.5; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.rv-remove { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text-sub); font: inherit; font-size: 12.5px; padding: 3px 12px; cursor: pointer; }
.rv-remove:hover { border-color: var(--navy); color: var(--navy); }

.rv-label { font-size: 14px; font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.rv-label::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--yellow); margin-right: 8px; vertical-align: 1px; transform: skewX(-20deg); }

.rv-machines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rv-machines + .rv-machines { margin-top: 12px; }
.rv-machines .opt__box { display: flex; flex-direction: column; }
.rv-m__photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.rv-m__photo img { width: 100%; height: 100%; object-fit: cover; }
.rv-m__num {
  position: absolute; left: 0; top: 0;
  background: var(--navy); color: var(--yellow); font-size: 13px; font-weight: 800; line-height: 1;
  padding: 6px 12px 5px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.rv-m__badge {
  position: absolute; left: 0; top: 0;
  background: var(--yellow); color: var(--navy); font-size: 12.5px; font-weight: 800; line-height: 1.4;
  padding: 5px 16px 4px 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.rv-m__body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.rv-m__name { font-size: 14px; font-weight: 800; color: var(--navy); line-height: 1.45; }
.rv-m__add { margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 800; color: var(--blue); line-height: 1.4; }
.rv-m__add.is-zero { font-size: 12.5px; color: var(--text-sub); font-weight: 700; }

/* 体験者ごとの小見出し（1 年齢 → 2 シミュレーター） */
.rv-sub { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 12px; line-height: 1.4; }
.rv-sub__no { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--navy); color: var(--yellow); font-size: 13px; flex: none; }
.rv-sub .rv-req { margin-left: 2px; }
.rv-agebox { margin-bottom: 26px; }
.rv-ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rv-ages .opt__box { padding: 12px 8px; text-align: center; color: var(--navy); line-height: 1.4; }
.rv-age__label { display: block; font-size: 16px; font-weight: 800; }
.rv-ages small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: var(--blue); }
.rv-ages small.is-none { color: var(--text-sub); font-weight: 700; }
.rv-warn { display: none; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: #9a3412; background: #fff4e5; border-left: 4px solid #f59e0b; padding: 10px 14px; line-height: 1.6; }

.rv-add {
  width: 100%; margin-top: 28px; cursor: pointer; font: inherit;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--white); border: 2px dashed var(--navy); color: var(--navy);
  font-size: 17px; font-weight: 800; padding: 18px 16px;
}
.rv-add:hover { background: var(--blue-pale); }
.rv-tel { display: none; margin-top: 28px; text-align: center; background: var(--navy); color: var(--white); padding: 22px 16px; font-size: 14px; line-height: 1.7; }
.rv-tel b { display: block; font-size: 28px; color: var(--yellow); letter-spacing: .04em; margin: 4px 0; }

/* 見学選択時のロック */
.rv-lock { position: relative; }
.rv-lock__msg { display: none; }
.rv-lock.is-locked .rv-step { opacity: .3; filter: grayscale(1); pointer-events: none; }
.rv-lock.is-locked .rv-lock__msg {
  display: block; position: absolute; top: 90px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: var(--navy); color: var(--white); font-size: 15px; font-weight: 800; text-align: center; line-height: 1.6;
  padding: 16px 28px; width: max-content; max-width: 90%;
  box-shadow: 6px 6px 0 var(--yellow);
}

.rv-group-tel { background: var(--navy); color: var(--white); text-align: center; font-size: 15px; font-weight: 700; line-height: 1.7; padding: 22px 16px; border-left: 5px solid var(--yellow); }
.rv-group-tel a { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; color: var(--yellow); text-decoration: none; letter-spacing: .04em; }

/* 入力欄 */
.rv-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rv-fields label { display: block; font-size: 14px; font-weight: 800; color: var(--navy); }
.rv-fields .is-full { grid-column: 1 / -1; }
.rv-fields input, .rv-fields select, .rv-fields textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--text); line-height: 1.5;
  padding: 12px 14px; background: var(--white); border: 2px solid var(--line); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.rv-fields select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23021132' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.rv-fields input:focus, .rv-fields select:focus, .rv-fields textarea:focus { outline: none; border-color: var(--blue); }
.rv-req { display: inline-block; margin-left: 8px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 800; line-height: 1.5; padding: 0 7px; vertical-align: 1px; }

/* 見積り */
.rv-aside { position: sticky; top: 20px; }
.rv-sum { background: var(--navy); color: var(--white); padding: 26px 24px 24px; border-top: 5px solid var(--yellow); }
.rv-sum__title { font-size: 13px; font-weight: 800; letter-spacing: .24em; color: var(--yellow); margin-bottom: 8px; }
.rv-sum__block { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.rv-sum__who { font-size: 14px; font-weight: 800; line-height: 1.5; margin-bottom: 4px; }
.rv-sum__row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.8; }
.rv-sum__row span:last-child { color: var(--white); font-weight: 700; white-space: nowrap; }
.rv-sum__row.is-minus span:last-child { color: var(--yellow); }
.rv-sum__row.is-sub span:last-child { font-size: 16px; font-weight: 800; }
.rv-sum__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.rv-sum__total > span { font-size: 14px; font-weight: 700; }
.rv-sum__total b { font-size: 40px; font-weight: 800; line-height: 1; color: var(--yellow); letter-spacing: .01em; }
.rv-sum__total b small { font-size: 16px; margin-left: 2px; color: var(--white); }
.rv-sum__tax { text-align: right; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px; }
.rv-sum .btn-cta { width: 100%; margin-top: 20px; font-size: 18px; padding: 16px 20px; min-height: 62px; border: 0; cursor: pointer; font-family: inherit; }
.rv-sum .btn-cta:hover { background: var(--white); }
.rv-rule { margin-top: 16px; background: var(--white); border-left: 5px solid var(--blue); padding: 18px 20px; font-size: 13.5px; line-height: 1.9; }
.rv-rule__title { font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.rv-rule em { font-style: normal; font-weight: 800; color: var(--blue); }

/* 完了 */
.rv-done { display: none; background: var(--blue-pale); padding-block: 80px; }
.rv-done__box { max-width: 640px; margin-inline: auto; background: var(--white); border-top: 5px solid var(--navy); padding: 44px 28px; text-align: center; }
.rv-done__box .sec-title { font-size: 26px; display: inline-block; }
.rv-done__box .sec-title::after { left: 50%; transform: translateX(-50%) skewX(-30deg); }
.rv-done__box p { font-size: 15px; color: var(--text-sub); }

/* SP固定の合計バー */
.rv-bar { display: none; }

/* =====================================================
   Tablet / Smartphone
   ===================================================== */
@media (max-width: 1023px) {
  .rv-layout { grid-template-columns: minmax(0, 1fr); }
  .rv-aside { position: static; }
  .rv-machines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.rv-page { padding-bottom: 76px; }
  .rv-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: rgba(2,17,50,.97); color: var(--white);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  }
  .rv-bar small { display: block; font-size: 11px; color: rgba(255,255,255,.65); line-height: 1.4; }
  .rv-bar b { font-size: 26px; font-weight: 800; color: var(--yellow); line-height: 1.1; }
  .rv-bar b small { display: inline; font-size: 13px; color: var(--white); margin-left: 2px; }
  .rv-bar .btn-cta { width: auto; min-height: 50px; font-size: 15px; padding: 10px 16px; }
}

@media (max-width: 767px) {
  .rv-hero { padding-block: 40px 64px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%); }
  .rv-hero__lead { font-size: 14.5px; }
  .rv-main { padding-block: 28px 64px; margin-top: -4vw; }
  .rv-step { padding: 22px 16px 24px; border-left-width: 4px; }
  .rv-step__title { font-size: 19px; }
  .rv-step__num { font-size: 15px; padding: 8px 13px 7px 10px; }
  .rv-step__lead { font-size: 13.5px; margin-bottom: 18px; }

  .rv-modes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rv-modes .opt__box { padding: 16px 44px 16px 16px; }
  .rv-mode__name { font-size: 16.5px; }

  .rv-times { gap: 8px; }
  .rv-time__min { font-size: 28px; padding: 14px 4px 10px; }
  .rv-time__min span { font-size: 13px; }
  .rv-time__body { padding: 10px 4px 12px; }
  .rv-time__for { font-size: 11px; }
  .rv-times .opt input:checked + .opt__box .rv-time__for { padding: 0 8px; }
  .rv-time__price { font-size: 17px; letter-spacing: 0; }
  .rv-time__price span { font-size: 10px; margin-left: 1px; }
  .rv-times .opt__check { width: 24px; height: 24px; font-size: 12px; }

  .rv-machines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rv-m__name { font-size: 13px; }
  .rv-m__add { font-size: 15px; }
  .rv-ages { gap: 6px; }
  .rv-ages .opt__box { padding: 10px 4px; }
  .rv-age__label { font-size: 14px; }
  .rv-ages small { font-size: 11px; }

  .rv-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rv-lock.is-locked .rv-lock__msg { font-size: 14px; padding: 14px 18px; top: 70px; }
  .rv-sum__total b { font-size: 36px; }
}

@media (max-width: 380px) {
  .rv-time__price { font-size: 15px; }
  .rv-time__for { font-size: 10.5px; }
}

@media (max-width: 767px) {
  .rv-time__badge { font-size: 11.5px; padding: 4px 10px; }
  .rv-m__badge { font-size: 11.5px; padding: 4px 12px 3px 8px; }
}

/* ---------- 進行状況（上が決まるまで下を薄く） ---------- */
.rv-step { transition: opacity .25s; }
.rv-step.is-waiting { opacity: .38; }
.rv-step.is-waiting:hover { opacity: .6; }

/* ---------- 記入漏れの表示 ---------- */
:root { --err: #D93025; }
.rv-step__err, .rv-need { display: none; font-size: 14px; font-weight: 800; color: var(--err); line-height: 1.6; margin: -8px 0 16px; }
.rv-step__err::before, .rv-need::before, .rv-sum__err:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; background: var(--err); color: var(--white); font-size: 12px; border-radius: 50%; vertical-align: 1px; }
.rv-step.is-error { border-left-color: var(--err); box-shadow: 0 0 0 2px var(--err); opacity: 1; }
.rv-step.is-error .rv-step__err { display: block; }
.rv-need { margin: 0 0 14px; background: #FDECEA; padding: 8px 12px; }
.rv-fields label.is-error { color: var(--err); }
.rv-fields label.is-error input, .rv-fields label.is-error select { border-color: var(--err); background-color: #FFF6F5; }
.rv-fields label.is-error::after { content: attr(data-err); display: block; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--err); }
.rv-sum__err { margin-top: 14px; font-size: 13px; font-weight: 700; line-height: 1.6; color: #FFB4AB; }
.rv-sum__err:empty { display: none; }
