/* =========================================
   基本設定（変数）
========================================= */
:root{
  --bg: #f1f8e9;
  --text: #4d4d4d;
  --muted: #b3b3b3;
  --brand-navy: #1a237e;
  --brand-navy-dark: #0d1140;
  --accent-green: #9ac9cf;
  --danger: crimson;
  --white: #ffffff;
  --input-border: #ccc;
  --radius: 4px;
  --max-width: 1020px;
  --container-padding: 20px;
  --btn-width: 200px;
  --btn-height: 45px;
}

/* =========================================
   リセット
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* =========================================
   レイアウト
========================================= */
#contact {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: var(--container-padding);
}

#contact h1 {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  margin: 30px 0 20px;
}

.intro {
  text-align: center;
  line-height: 1.6;
}

/* =========================================
   ステップナビ
========================================= */
.flow {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 40px 0 30px;
  gap: 8px;
}

.flow li {
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 6px 0;
  border-bottom: 2px solid var(--muted);
  color: var(--muted);
  font-size: 15px;
}

.flow .spot {
  border-bottom-color: var(--accent-green);
  color: #333;
  font-weight: 700;
}

/* =========================================
   フォーム
========================================= */
#contact form {
  width: 80%;
  margin: 40px auto;
  max-width: 900px;
}

.formbox {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.formbox label {
  width: 30%;
  padding-right: 20px;
  text-align: right;
  margin-top: 12px;
  font-size: 15px;
}

.inputText {
  width: 70%;
}

/* =========================================
   フォーム要素の完全統一
========================================= */
.formbox input[type="text"],
.formbox input[type="tel"],
.formbox input[type="email"],
.formbox input[type="date"],
.formbox input[type="time"],
.formbox input[type="number"],
.formbox select,
.formbox textarea {
  width: 100%;
  min-height: 40px;
  border-radius: 3px;
  border: 1px solid var(--input-border);
  padding: 8px 10px;
  font-size: 16px;
  color: var(--text);
  background-color: var(--white);
  box-sizing: border-box;
}

/* number の矢印完全除去（競合なし） */
input[type="number"] {
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* select の矢印統一（number に干渉しない） */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%234d4d4d' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* エラーメッセージ */
.error-msg {
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

/* =========================================
   人数入力
========================================= */
.person-row {
  display: flex;
  gap: 12px;
}

.person-item {
  flex: 1;
}

.person-item.total label {
  font-weight: 700;
  color: var(--brand-navy);
}

/* =========================================
   ボタン
========================================= */
.confi {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 20px;
}

.confi input[type="submit"],
.btn-send {
  width: var(--btn-width);
  height: var(--btn-height);
  line-height: var(--btn-height);
  background: var(--brand-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.confi input[type="submit"]:hover,
.btn-send:hover {
  background: var(--brand-navy-dark);
}

.btn-back {
  display: inline-flex;   /* ← これが最適 */
  justify-content: center;
  align-items: center;
  width: var(--btn-width);
  height: var(--btn-height);
  background: #ccc;
  color: #333;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}


.btn-back:hover {
  background: #b3b3b3;
}

/* =========================================
   汎用テキスト中央揃え
========================================= */
.textCenter {
  text-align: center;
}

/* =========================================
   ポリシー領域
========================================= */
#telBottom {
  width: 100%;
  border-top: 1px solid #b3b3b3;
  padding-top: 35px;
  margin: 40px 0;
}

.policy-box {
  background: var(--white);
  border: 1px solid #dcedc8;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.policy-box h4 {
  font-size: 15px;
  color: #2e7d32;
  margin-bottom: 12px;
  border-bottom: dashed 1px #ccc;
  padding-bottom: 6px;
}

.warning-text {
  color: var(--danger);
  font-weight: 700;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 14px;
}

.policy-table th,
.policy-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.policy-table th {
  width: 40%;
  color: #666;
  font-weight: 400;
}

.policy-table td strong {
  color: var(--danger);
}

/* =========================================
   スマホ最適化
========================================= */
@media only screen and (max-width: 768px) {

  .formbox {
    flex-direction: column;
    margin-bottom: 15px;
  }

  .formbox label {
    width: 100%;
    padding: 0;
    text-align: left;
    margin-bottom: 6px;
    font-weight: 700;
  }

  .inputText { width: 100%; }

  .person-row {
    flex-direction: column;
    gap: 12px;
  }

  .person-item {
    width: 100%;
  }

  .confi {
    flex-direction: column;
    gap: 15px;
  }

  .confi input[type="submit"],
  .btn-back {
    width: 100%;
    max-width: 300px;
    font-size: 18px;
  }

  .policy-box { padding: 15px; }

  .policy-table th,
  .policy-table td {
    display: block;
    width: 100%;
    padding: 4px 0;
  }

  .policy-table th {
    border-bottom: none;
    color: #333;
    font-weight: 700;
    margin-top: 8px;
  }
}
/* ★ 必須マーク（赤字・太字） */
.need {
  color: var(--danger);   /* crimson */
  font-weight: 700;
  font-size: 14px;
  margin-left: 6px;
  display: inline-block;
}
