/* 38NEXT 統一ご予約・お申し込みフォーム（/reserve）
   トップページと同じ明るいクリーム×ゴールドの世界観 */
:root {
  --gold: #b8922a;
  --gold-light: #d4ac48;
  --gold-btn: #c9a84c;
  --champagne: #f5e6c8;
  --cream: #fdf8f2;
  --pink: #fbeef0;
  --text-dark: #2e1f10;
  --text-mid: #5c3d20;
  --text-light: #8a6540;
  --line: rgba(184,146,42,.22);
  --err: #b4443a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif; color: var(--text-dark);
  background: linear-gradient(180deg, var(--cream) 0%, #fbf3f0 100%) fixed, var(--cream);
  font-size: 16px; line-height: 1.8; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
.nb { display: inline-block; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ---------- header / footer ---------- */
.rv-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; background: rgba(253,248,242,.95);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.rv-logo img { height: 36px; width: auto; display: block; }
.rv-back { font-size: 13px; color: var(--text-mid); text-decoration: none; }
.rv-back:hover { color: var(--gold); }
.rv-footer {
  text-align: center; font-size: 12px; color: var(--text-light);
  padding: 32px 16px 40px; line-height: 2;
}

/* ---------- layout ---------- */
.rv-main { max-width: 760px; margin: 0 auto; padding: 40px 24px 20px; }
.rv-hero { text-align: center; margin-bottom: 28px; }
.rv-eyebrow {
  display: block; font-family: 'Cormorant Garamond', serif; font-size: 12px;
  letter-spacing: 3px; color: var(--gold); margin-bottom: 6px;
}
.rv-title {
  font-family: 'Noto Serif JP', serif; font-weight: 500;
  font-size: clamp(22px, 4.5vw, 30px); letter-spacing: 1px; line-height: 1.6; margin-bottom: 10px;
}
.rv-lead { font-size: 14px; color: var(--text-mid); line-height: 1.9; }
.rv-card {
  background: white; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px; margin-bottom: 20px; box-shadow: 0 8px 30px rgba(184,146,42,.07);
}
.rv-step {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 500; margin-bottom: 18px;
}
.rv-step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-btn), var(--gold-light));
  color: white; font-family: 'Cormorant Garamond', serif; font-size: 16px;
}

/* ---------- menu select ---------- */
.rv-group {
  font-size: 13px; font-weight: 500; color: var(--gold); letter-spacing: 1px;
  margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.rv-group:first-of-type { margin-top: 0; }
.rv-group::before { content: '［'; } .rv-group::after { content: '］'; }
.rv-group-note { font-size: 12.5px; color: var(--text-light); margin-bottom: 10px; line-height: 1.8; }
.rv-menus { display: flex; flex-direction: column; gap: 10px; }
.rv-menu {
  position: relative; display: block; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 48px;
  background: #fffdfa; transition: border-color .2s, box-shadow .2s, background .2s;
}
.rv-menu:hover { border-color: rgba(184,146,42,.5); }
.rv-menu input {
  position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; accent-color: var(--gold);
}
.rv-menu:has(input:checked) {
  border-color: var(--gold); background: #fffaf0; box-shadow: 0 6px 20px rgba(184,146,42,.16);
}
.rv-menu-name { display: block; font-size: 15px; font-weight: 500; line-height: 1.6; }
.rv-menu-price { display: block; font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--gold); line-height: 1.4; }
.rv-menu-price small { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; color: var(--text-light); margin-left: 8px; }
.rv-menu-note { display: block; font-size: 12.5px; color: var(--text-light); line-height: 1.75; margin-top: 2px; }
.rv-menu.is-featured {
  border: 2px solid var(--gold-light); padding-top: 34px; padding-bottom: 18px;
  background: linear-gradient(135deg, #fffaf0 0%, #fdf0f2 100%);
}
.rv-menu.is-featured input { top: 37px; }
.rv-menu.is-featured .rv-menu-name { font-size: 16.5px; }
.rv-menu.is-featured .rv-menu-price { font-size: 28px; }
.rv-badge {
  position: absolute; top: 0; left: 0; padding: 4px 14px; border-radius: 12px 0 12px 0;
  background: linear-gradient(135deg, var(--gold-btn), var(--gold-light));
  color: white; font-size: 11.5px; font-weight: 500; letter-spacing: .5px;
}

/* ---------- fields ---------- */
.rv-selected {
  font-size: 13.5px; color: var(--text-mid); background: var(--pink);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 18px;
}
.rv-block { border: none; min-width: 0; }
.rv-block[disabled] { display: none; }
.rv-field { border: none; min-width: 0; margin-bottom: 18px; }
.rv-field > label, .rv-field > legend, .rv-legend {
  display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-dark);
}
.rv-legend span { font-weight: 400; font-size: 12.5px; color: var(--text-light); }
.rv-field em, .rv-date-no em {
  font-style: normal; font-size: 11px; font-weight: 500; color: white;
  background: var(--gold); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 1px;
}
.rv-field em.is-opt { background: #d9cbb4; }
.rv-rec {
  display: inline-block; font-size: 11px; font-weight: 500; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 4px; padding: 0 6px; margin-left: 8px;
}
input[type=text], input[type=email], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text-dark);
  background: #fffdfa; border: 1.5px solid #e8dccb; border-radius: 10px; padding: 11px 12px;
}
input[type=text], input[type=email], select, textarea { -webkit-appearance: none; appearance: none; }
/* 2026-11-16：日付欄（ご希望日時）はブラウザ標準の見た目に戻す（appearance: none だと iPhone で幅・文字位置が崩れる） */
input[type=date] { display: block; min-width: 0; min-height: 48px; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
/* 生年月日：年・月・日を横に並べる（見た目は他の選択欄と同じ） */
.rv-birth { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
textarea { resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.is-invalid, .is-invalid input[type=text] { border-color: var(--err) !important; }
.rv-choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.rv-choices label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1.5px solid #e8dccb; border-radius: 100px; padding: 8px 16px; font-size: 14px; background: #fffdfa;
}
.rv-choices label:has(input:checked) { border-color: var(--gold); background: #fffaf0; }
.rv-choices input { accent-color: var(--gold); width: 16px; height: 16px; }
.rv-choices.is-invalid label { border-color: var(--err); }
.rv-lineonly {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #f3faf4; border: 1px solid #cfe8d4;
}
.rv-lineonly p { font-size: 12.5px; color: var(--text-mid); line-height: 1.7; flex: 1 1 240px; }
.rv-lineonly strong { color: var(--text-dark); font-weight: 500; }
.rv-line-btn {
  flex-shrink: 0; display: inline-block; padding: 8px 18px; border-radius: 100px; text-decoration: none;
  background: #06c755; color: white; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.rv-line-btn:hover { opacity: .9; }
.rv-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; line-height: 1.7; }
.rv-note {
  font-size: 12.5px; color: var(--text-mid); background: var(--pink); border-radius: 8px;
  padding: 8px 12px; margin-top: 10px; line-height: 1.7;
}
.rv-dates { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.rv-date-row { display: grid; grid-template-columns: 96px 1fr 150px; gap: 8px; align-items: center; }
.rv-date-no { font-size: 13px; color: var(--text-mid); }
.rv-item {
  display: flex; gap: 14px; align-items: center; margin-top: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.rv-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.rv-item-name { font-size: 15px; font-weight: 500; }
.rv-item-price { font-size: 13px; color: var(--gold); }

/* ---------- confirm & submit ---------- */
.rv-checks { display: flex; flex-direction: column; gap: 10px; }
.rv-check {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: 14px; line-height: 1.7; padding: 10px 12px; border-radius: 10px; background: #fffaf3;
}
.rv-check input { accent-color: var(--gold); width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.rv-check.is-invalid { outline: 1.5px solid var(--err); }
.rv-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-error {
  color: var(--err); background: #fdf0ee; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; margin-bottom: 14px; line-height: 1.7;
}
.rv-submit { text-align: center; margin: 8px 0 20px; }
.rv-btn {
  display: inline-block; min-width: 260px; padding: 15px 36px; border-radius: 100px; border: none;
  background: linear-gradient(135deg, var(--gold-btn), var(--gold-light)); color: white;
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 1px; text-decoration: none;
  cursor: pointer; box-shadow: 0 5px 24px rgba(184,146,42,.35); transition: transform .25s, box-shadow .25s;
}
.rv-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(184,146,42,.42); }
.rv-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.rv-btn.is-sub { background: white; color: var(--text-mid); border: 1.5px solid rgba(184,146,42,.45); box-shadow: none; }

/* ---------- done ---------- */
.rv-done { text-align: center; padding: 44px 28px; }
.rv-done-menu { font-size: 15px; font-weight: 500; margin: 6px 0 14px; }
.rv-done-deadline { font-size: 17px; margin-bottom: 12px; }
.rv-done-deadline strong { color: var(--gold); font-size: 22px; font-family: 'Noto Serif JP', serif; font-weight: 500; }
.rv-done-receipt { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.rv-done-text { font-size: 13.5px; color: var(--text-mid); line-height: 1.9; margin-bottom: 12px; }
.rv-done-line { margin: 18px 0 22px; font-size: 13.5px; color: var(--text-mid); }
.rv-done-line .rv-btn { margin-top: 8px; }
.rv-done > .rv-btn { margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .rv-header { padding: 8px 16px; }
  .rv-main { padding: 28px 16px 12px; }
  .rv-card { padding: 24px 18px; border-radius: 16px; }
  .rv-menu { padding-left: 44px; }
  .rv-menu input { left: 14px; }
  .rv-date-row { grid-template-columns: 1fr 1fr; }
  .rv-date-no { grid-column: 1 / -1; }
  .rv-btn { min-width: 0; width: 100%; max-width: 340px; }
  .rv-item img { width: 80px; height: 80px; }
}
