/* ****************************** */
/* 予約フォーム　共通コンポーネント */
/* ****************************** */

.section-reservation .heading-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(1.4px);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--white-color);
  font-weight: bold;
  font-size: 1.4rem;
}

.step-bar {
  display: flex;
  justify-content: space-between;
  list-style: none;
  counter-reset: step;
  margin: 3rem auto 0;
  padding: 0;
  position: relative;
  max-width: 80rem;
}

.step-bar::before {
  content: '';
  position: absolute;
  top: 1.3rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ddd;
  z-index: 1;
}

.step-bar::after {
  content: '';
  position: absolute;
  top: 1.3rem;
  left: 0;
  width: 33%; /*進捗幅（1/3完了なら33%）*/
  height: 3px;
  background: linear-gradient(90deg, #f4a251, #f7c27e);
  z-index: 2;
}

.step-bar[data-step='1']::after {
  width: 33%;
}

.step-bar[data-step='2']::after {
  width: 66%;
}

.step-bar[data-step='3']::after {
  width: 100%;
}

.step {
  flex: 1;
  text-align: center;
  color: #999;
  font-size: 1.4rem;
  position: relative;
  z-index: 3;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin: 0 auto 0.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #ccc;
  color: var(--white-color);
  font-weight: bold;
  font-size: 1.6rem;
  line-height: 2.6rem;
  z-index: 3;
}

.step.completed::before {
  content: '✓';
  background-color: var(--accent-color, #f4a251);
  color: #fff;
  font-weight: bold;
}

.step.active {
  color: var(--accent-color, #f4a251);
  font-weight: bold;
}

.step.active::before {
  background-color: var(--accent-color, #f4a251);
}

/* ****************************** */
/* About Visit Reservation 来場予約セクション */
/* ****************************** */
.section-reservation {
  padding: 9.6rem 0;
  background-color: var(--white-color);
}

.section-thanks {
  padding: 4.8rem 0 9.6rem;
  background-color: var(--white-color);
}

.section-reservation .container,
.section-thanks .container {
  max-width: 80rem;
}

form.reservation-form {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  background: var(--white-color);
  padding: 2.4rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.06);
}

.reservation-block {
  margin-bottom: 3rem;
}

/* エラースタイル */
.reservation-form input.error,
.reservation-form select.error,
.reservation-form textarea.error {
  border: 1px solid #e53935;
  background-color: #fff5f5;
  border-radius: 4px;
}



.reservation-nav {
  position: relative;
  padding-top: 3rem;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reservation-nav .btn-link {
  position: absolute;
  left: 0;
}

.btn-nav {
  background: var(--accent-color);
  border: none;
  color: var(--white-color);
  font-weight: 600;
  padding: 1.2rem 4.4rem;
  border-radius: 0.8rem;
  font-size: 1.7rem;
  border: 1px solid #ffb199; /* 淡いオレンジ */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s;
}

.btn-nav:hover,
.btn-nav:focus {
  background-color: var(--accent-color-shade-1);
}

/* ボタン無効化用 */
.btn-next {
  position: relative;
}

.btn-next .tooltip {
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 1.4rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.btn-next .tooltip::after {
  content: '';
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  background: rgba(0, 0, 0, 0.85);
  transform: translateX(-50%) rotate(45deg);
  bottom: -0.4rem;
  left: 50%;
}

.btn-next.disabled:hover .tooltip,
.btn-next .tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.btn-next.disabled {
  background: #ccc;
  cursor: not-allowed;
  color: #666;
}

.btn-link,
.btn-link:link,
.btn-link:visited {
  display: inline-block;        /* buttonのdisplay補正 */
  background: none;             /* デフォルトのグレー背景を無効化 */
  border: none;                 /* デフォルト枠線を消す */
  color: var(--text-color);     /* 通常文字色 */
  cursor: pointer;              /* リンク風に */
  padding-left: 0.4rem;
  font-size: 1.5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid transparent;
  text-decoration: none;        /* a用の下線も無効化 */
  transition: all .6s;
}

.btn-link:hover,
.btn-link:active {
  color: var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}

/*　入力内容の確認画面　*/
.confirm-block .heading-tertiary {
  margin: 4rem 0;
}

.check-table {
  width: 100%;
  max-width: 65rem;
  border-collapse: collapse;
  margin: 0 auto;
  margin-bottom: 3.2rem;
  background-color: var(--white-color);
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.check-table th,
.check-table td {
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid #d8d4d4;
  text-align: left;
  font-size: 1.6rem;

  white-space: normal;
  word-break: keep-all;
}

.check-table th {
  width: 30%;
  background-color: #ffe8d1;
  letter-spacing: 0.05em;
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  border-left: 3px solid var(--primary-color-tint-5);
}

/* ****************************** */
/* Thanks page サンクスページ */
/* ****************************** */

.thanks-icon {
  font-size: 6rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
}

.highlight {
  color: #333;
  font-weight: 500;
  padding: 0.1em 0.4em;
  background-color: var(--accent-color-tint-7);
  border-radius: 0.8rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.thanks-message {
  font-size: 1.6rem;
  line-height: 1.8;
  margin: 0 0 1.5rem;
  color: #444;
}

.note-small {
  font-size: 1.4rem;
  color: #777;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 544px) {
   html {
    font-size: 58%; /* 基準フォント上げ（PCが62.5%なら少し大きめ） */
  }

  .step-bar {
    margin: 2.4rem auto 0;
    gap: .4rem;
  }

  .step-bar::before, 
  .step-bar::after {
    top: 1.8rem;
    height: 3.5px;
  }

  .step {
    font-size: 1.6rem;
  }

  .step::before {
    width: 3rem;
    height: 3rem;
    font-size: 1.6rem;
    line-height: 3rem;
  }

  .step-number {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.5rem;
  }

  .step.completed::before {
    font-size: 1.8rem;
  }

  form.reservation-form {
    padding: 1.8rem;
  }

  .form-group label {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1.4rem 1.6rem;
    font-size: 1.8rem;
  }

  .form-hint {
    font-size: 1.6rem;
  }

  .form-group select {
    height: auto;
  }

  

}
