:root {
  --color-main: #93BFEB;
  --color-sub: #FFEB84;
  --color-white: #FFFFFF;
  --color-text: #2c3e50;
  --color-card-bg: #e0f0ff;
  --color-card-shadow: #b0d4f2;
  --font-retro: "M PLUS Rounded 1c", sans-serif;
}

/* ================== ページ全体 ================== */
body {
  font-family: var(--font-retro);
  background: var(--color-white);
  color: var(--color-text);
}

.page {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ================== タイトル ================== */
.section-title {
  font-family: 'Rampart One', cursive;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 32px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-sub);
  margin: 12px auto 0;
  border-radius: 2px;
}

.sub-title {
  font-family: 'Rampart One', cursive;
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.form-note-top {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

/* 予約ページ 冒頭説明文 */
.form-note {
  max-width: 450px;
  margin: 0 auto 48px;
  padding: 0 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: left;
}

.form-note strong {
  color: var(--color-text);
  font-weight: bold;
}

/* ================== レイアウト ================== */
.reservation-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .reservation-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================== カード ================== */
.card {
  background: var(--color-card-bg);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--color-card-shadow);
}

/* ================== フォーム ================== */
.form-area input,
.form-area textarea,
.form-area select {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #b0d4f2;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}

form select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-group {
  width: 100%;
  min-width: 0;
  margin-bottom: 24px;
}

.datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .datetime-row,
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ================== チェックボックス ================== */
.checkbox-group {
  margin: 24px 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

/* ================== 同意エリア ================== */
.agree {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.agree label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  cursor: pointer;
  position: relative;
  padding-right: 1.5em;
}

.agree label:has(input[type="checkbox"][required])::after {
  content: "＊";
  position: absolute;
  right: 0;
  top: 0;
  color: #e74c3c;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1;
  pointer-events: none;
}

/* ================== フォーム内説明文 ================== */
.form-area .form-note {
  max-width: 100%;
  margin: 24px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ================== 送信ボタン ================== */
.form-area button {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  border-radius: 999px;
  border: none;
  background: var(--color-main);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.form-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #6aa9e4;
}

.form-area button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ================== 必須マーク ================== */
.form-group:has(input[required]),
.form-group:has(select[required]),
.form-group:has(textarea[required]) {
  position: relative;
}

.form-group:has(input[required])::after,
.form-group:has(select[required])::after,
.form-group:has(textarea[required])::after {
  content: "＊";
  position: absolute;
  top: 6px;
  right: 8px;
  color: #e74c3c;
  font-size: 0.85rem;
  font-weight: bold;
  pointer-events: none;
}

.field {
  position: relative;
}

.field:has([required])::after {
  content: "＊";
  position: absolute;
  top: 6px;
  right: 8px;
  color: #e74c3c;
  font-size: 0.85rem;
  font-weight: bold;
  pointer-events: none;
}

.form-group.checkbox-group::after {
  content: none;
}

/* ================== カレンダー ================== */
.calendar-area {
  display: flex;
  flex-direction: column;
}

.calendar-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--color-card-shadow);
}

.calendar-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================== スマホ対応 ================== */
@media (max-width: 480px) {
  .page {
    padding: 24px 12px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ================== 利用規約 ================== */
.terms {
  max-width: 900px;
  margin: 80px auto 0;
  padding: 0 20px;
  text-align: left;
  color: var(--color-text);
}

.terms h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--color-main);
}

.terms ul {
  padding-left: 20px;
  margin: 0;
}

.terms li {
  margin-bottom: 8px;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .terms {
    padding: 0 12px;
  }
}

/* ================== キャンセルボタン ================== */
.cancel-link-area {
  margin: 24px 0 40px;
  text-align: center;
}

.cancel-link-btn {
  display: inline-block;
  width: auto;
  min-width: 180px;
  padding: 12px 28px;
  border-radius: 999px;

  background: var(--color-sub);
  color: var(--color-text);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;

  box-shadow: 0 4px 0 #e6d26a;
  transition: 0.2s;
  text-align: center;
}

.cancel-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #e6d26a;
}

.reservation-page .cancel-link-btn {
  display: inline-block;
  width: auto;
  min-width: 180px;
  padding: 12px 28px;
  border-radius: 999px;

  background: var(--color-sub);
  color: var(--color-text);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;

  box-shadow: 0 4px 0 #e6d26a;
  transition: 0.2s;
}

@media (max-width: 480px) {
  .cancel-link-btn,
  .reservation-page .cancel-link-btn {
    width: 90%;
    max-width: 300px;
    padding: 12px 0;
  }
}

/* ================== datetime-row スマホ対応 ================== */
.datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.datetime-row input {
  width: 100%;
  box-sizing: border-box;
}

/* two-col 内のフィールドも必ず100% */
.two-col .field {
  width: 100%;
  box-sizing: border-box;
}

/* スマホ表示（480px以下）で縦並び */
@media (max-width: 480px) {
  .datetime-row,
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .datetime-row input {
    width: 100% !important;
  }

  .page {
    padding: 24px 12px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
