html {
  font-size: 62.5%;
  overflow-x: hidden;
  width: 100%;
}
.sp {
  display: none;
}
.pc {
  display: block;
}

@media screen and (max-width: 768px) {
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
}
/* ============================================================
   custum.css — Bデザイン準拠リニューアル版
   ============================================================ */

/* ---------- 基本リセット・ベース ---------- */
body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family:
    'Noto Sans JP', 'Yu Gothic Medium', YuGothic, 'Hiragino Kaku Gothic Pro',
    'Meiryo', 'MS PGothic', sans-serif;
  letter-spacing: 0.05em;
  box-sizing: border-box;
}

img {
  width: 100%;
  vertical-align: bottom;
}

/* ---------- ヘッダー ---------- */
header {
}

h1 {
  max-width: 180px;
  margin: 0;
}

/* ---------- ページタイトル ---------- */
.form_title {
  text-align: center;
  padding: 30px 20px 0;
  background: #fff;
  position: static;
}

.form_title h3 {
  font-size: 22px;
  font-weight: 700;
  color: #32473c;
  margin: 0 0 20px;
  letter-spacing: 0.15em;
}
p {
  font-size: 14px;
}

/* ---------- ステップナビゲーション ---------- */
.step_nav {
  display: flex;
  align-items: stretch;
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 13px;
  font-weight: 700;
  gap: 20px;
}

.step_nav .step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  background: #e0e0e0;
  color: #999;
  position: relative;
  text-align: center;
  line-height: 1.4;
  font-size: 16px;
}

.step_nav .step.active {
  background: #32473c;
  color: #fff;
}

/* 矢印（右向き） */
.step_nav .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -14px;
  width: 14px;
  height: 100%;
  background: #e0e0e0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  z-index: 1;
}

.step_nav .step.active:not(:last-child)::after {
  background: #32473c;
}
@media (max-width: 767px) {
  .step_nav .step:not(:last-child)::after {
    border-width: 30px 0 30px 14px;
  }
}

/* ---------- フォームエリア全体 ---------- */
.form_area {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* 左カラム（説明エリア）は非表示 */
.form_left {
  display: none;
}

/* ---------- フォームラッパー ---------- */
#formWrap {
  width: 100%;
  margin: 0 auto;
  background: #fff;
}

/* ---------- 案内テキスト ---------- */
.form_guide {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.8;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  .form_guide {
    padding: 12px 0px;
    font-size: 14px;
  }
}

/* ---------- テーブル ---------- */
table.formTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

table.formTable tr {
  border-bottom: 1px solid #797979;
}

table.formTable tr:first-child {
  border-top: 1px solid #797979;
}

table.formTable td,
table.formTable th {
  display: table-cell;
  width: auto;
  padding: 16px 14px;
  border: none;
  vertical-align: middle;
  box-sizing: border-box;
}

table.formTable th {
  width: 32%;
  background: #fff;
  color: #242424;
  font-size: 16px;
  text-align: left;
  vertical-align: top;
  padding-top: 20px;
  font-weight: bold;
}
table.formTable th small {
  padding-left: 2em;
  color: #666;
  font-size: 13px;
}

table.formTable td {
  width: 68%;
  font-weight: bold;
  font-size: 18px;
}
@media screen and (max-width: 768px) {
  table.formTable td {
    font-size: 15px;
  }
}

/* ---------- 必須マーク ---------- */
th.req::after {
  content: none;
}

th.req span {
  position: relative;
}

th.req span::after {
  content: '*';
  font-size: 18px;
  color: #e05555;
  line-height: 1em;
  position: absolute;
  top: -2px;
  right: -1em;
}

/* ---------- 入力欄共通 ---------- */
input[type='text'],
input[type='email'],
input[type='tel'] {
  width: 80%;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fde8e8;
  font-size: 14px;
  color: #333;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus {
  border-color: #32473c;
  background: #fff;
}
form .input-middle {
  width: 340px;
}
form .input-long {
  width: 525px;
}
form .input-harf {
  width: 255px;
}
@media screen and (max-width: 768px) {
}
/* ---------- セレクトボックス ---------- */
select {
  padding: 10px 32px 10px 12px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fde8e8;
  font-size: 14px;
  color: #333;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

select:focus {
  border-color: #32473c;
  background: #fff;
}

.select-box {
  position: relative;
}

/* ---------- テキストエリア ---------- */
form textarea {
  width: 525px;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  color: #333;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  height: 200px;
}

textarea:focus {
  border-color: #32473c;
  background: #fff;
}
@media screen and (max-width: 768px) {
  form textarea {
    width: 100%;
    font-size: 100%;
    height: 300px;
  }
}

/* ---------- 店舗住所表示 ---------- */
.shop-message {
  display: inline-block;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #f5f5f5;
  width: 100%;
  font-size: 14px;
  color: #555;
}

/* ---------- 人数入力（短い） ---------- */
.NoP input[type='text'] {
  width: 5em;
  display: inline-block;
}

/* ---------- 住所入力グループ ---------- */
.place input {
  margin-top: 6px;
}

.address-label {
  color: #242424;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  font-size: 15px;
}

@media screen and (max-width: 979px) {
  form input[type='text'],
  form textarea {
    width: 100%;
    font-size: 100%;
  }
  .NoP input[type='text'] {
    width: 5em;
  }
}

/* ---------- チェックボックスエリア ---------- */
.checkbox-area td div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-area td div + div {
  margin-top: 10px;
}

.checkbox-area label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-area td div input[type='checkbox'],
.privacy input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #32473c;
  cursor: pointer;
}

/* ---------- 任意項目セパレーター ---------- */
table.formTable .question_ttl td {
  font-size: 13px;
  font-weight: 700;
  padding: 20px 14px;
  text-align: center;
  color: #888;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: table-cell;
}

/* ---------- プライバシーポリシー行 ---------- */
.privacy_section {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #555;
  line-height: 1.9;
}

.privacy_section p {
  margin: 0 0 14px;
}

.privacy_section strong {
  font-size: 14px;
  color: #333;
}

table.formTable .privacy td {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 14px;
  font-size: 14px;
}

.privacy a {
  color: #32473c;
  text-decoration: underline;
}

.privacy img {
  width: 14px;
  margin: 0 3px;
  vertical-align: baseline;
}

/* ---------- エラーメッセージ ---------- */
.parsley-errors-list {
  padding: 0 !important;
  margin: 0 !important;
}

.parsley-custom-error-message {
  margin: 0 !important;
  padding: 6px 0 0;
  font-size: 12px;
  color: #e05555;
  list-style: none;
}

#form-global-error {
  display: none;
  color: #e05555;
  text-align: center;
  margin-bottom: 12px;
  font-size: 13px;
}

/* ---------- 送信ボタン ---------- */
.confirmation_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.confirmation_btn input[type='submit'] {
  width: 200px;
  padding: 14px 0;
  background: #32473c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.confirmation_btn input[type='submit']:hover {
  background: #2da8a8;
}

.confirmation_btn input[type='reset'] {
  width: 120px;
  padding: 14px 0;
  background: #f0f0f0;
  color: #666;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.confirmation_btn input[type='reset']:hover {
  background: #e0e0e0;
}

/* ---------- フッター ---------- */
footer {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.copyright {
  padding: 16px 0;
  font-size: 12px;
  text-align: center;
  color: #888;
  margin: 0;
}

/* ---------- 確認画面 ---------- */
.entry #formWrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 30px;
}
.confirmation_btn input.backBtn {
  width: 120px;
  padding: 14px 0;
  background: #f0f0f0;
  color: #666;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
@media screen and (max-width: 768px) {
  .confirmation_btn input.backBtn {
    width: 100%;
    line-height: 1;
    height: 60px;
  }
}

/* ---------- 完了画面 ---------- */
.thanks main {
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.thanks div {
  font-size: 16px;
}

/* ---------- レスポンシブ ---------- */
@media screen and (max-width: 768px) {
  .entry #formWrap {
    max-width: 100%;
    padding: 0;
  }
  .form_title h3 {
    font-size: 18px;
  }

  .step_nav {
    font-size: 11px;
    flex-wrap: wrap; /* 折り返しを許可 */
  }

  .step_nav .step {
    padding: 10px 0px;
    font-size: 13px;
  }

  .step_nav .step:nth-of-type(3) {
    order: 99; /* 常に最後尾に配置 */
    width: 100%; /* 幅いっぱいに表示 */
    flex: none;
    margin-top: 4px; /* 上の行との余白 */
  }

  table.formTable th,
  table.formTable td {
    display: block;
    width: 100% !important;
  }

  table.formTable th {
    padding: 14px 14px 4px;
    background: #fff;
  }

  table.formTable td {
    padding: 6px 14px 14px;
  }

  .form_area {
    padding: 0 12px 40px;
  }

  .confirmation_btn {
    flex-direction: column;
    gap: 10px;
  }

  .confirmation_btn input[type='submit'],
  .confirmation_btn input[type='reset'] {
    width: 100%;
    line-height: 1;
    height: 60px;
  }
}

/* ---------- 姓名・ふりがな 2分割レイアウト ---------- */
.name-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* 旧バージョン（上ラベル） */
.name-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.date-inline-item {
  border-top: 1px solid #ccc;
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap; /* ← エラーを次段に折り返す */
  align-items: center;
}
.date-inline-item span {
  width: 20%;
}
.date-inline-item .date-input-wrap {
  width: 78%;
}
.date-inline-item .parsley-errors-list {
  width: 100%;
  padding-left: 20%; /* ← ラベル幅分インデント */
}

/* 新バージョン（左インラインラベル） */
.name-inline-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name-inline-item input {
  flex: 1;
}

.name-label-inline {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
@media screen and (max-width: 768px) {
  .name-inline-item {
    align-items: start;
    flex-direction: row;
  }
  .date-inline-item .date-input-wrap {
    width: 100%;
  }
  .date-inline-item span {
    width: 100%;
  }
  .date-inline-item .date-input-wrap {
    width: 100%;
  }
}

/* ---------- 生年月日 横並びレイアウト ---------- */
.birthday-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.birthday-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.birthday-item select {
  width: auto;
  min-width: 90px;
  max-width: 110px;
}

.birthday-unit {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

/* ---------- レスポンシブ（追加分） ---------- */
@media screen and (max-width: 768px) {
  .name-group {
    gap: 10px;
    align-items: start;
    flex-direction: column;
  }

  .birthday-group {
    gap: 6px;
  }

  .birthday-item select {
    min-width: 70px;
  }
}
