@charset "UTF-8";
/* =================================
  application-form/form.css（完全版）
  修正点
  ・PC：入力サイズを固定（伸び縮みさせない）
  ・「都道府県」select を他と同じサイズ（幅/高さ感）に統一
  ・SP：郵便番号ボタンは改行、入力は可変
  ・SP：生年月日/人数/電話は1行維持（はみ出し防止）
  ・フォーム内フォント：すべて14px
  ・placeholder：#b3b3b3
  ・同意チェック：14px×14px
================================= */
/* =================================
  外側（濃紺）
================================= */
.form-block {
  background: #2f3146;
  padding: 60px 0 80px;
}
/* タイトル */
.form-block .form_title {
  margin: 0 0 32px;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-size: 38px;
  letter-spacing: .10em;
  color: #c39c55;
  font-weight: 400;
}
/* confirm / thanks 背景 */
body.confirm, body.thanks {
  background-color: #2f3146;
}
/* confirm：th の左余白を無効 */
body.confirm section.form th {
  padding-left: 0;
}
/* =================================
  フォーム白箱
================================= */
section.form {
  max-width: 810px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 50px;
}
/* フォーム内は全部14px */
section.form, section.form * {
  font-size: 14px;
}
/* placeholder 色 */
section.form ::placeholder {
  color: #b3b3b3;
  opacity: 1;
}
/* 注意文 */
section.form .form_note {
  margin: 0 0 22px;
  line-height: 1.9;
  color: #333;
}
section.form .form_note .required {
  color: #960000;
}
/* =================================
  テーブル
================================= */
section.form table {
  width: 100%;
  border-collapse: collapse;
}
section.form th, section.form td {
  padding: 10px 0 8px 0;
  vertical-align: middle;
}
/* 左ラベル */
section.form th {
  width: 300px;
  padding-right: 40px;
  text-align: left;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  white-space: nowrap;
  position: relative;
  padding-left: 55px;
  line-height: 1.2;
}
/* [必須]（th内固定） */
section.form th .required {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  width: 60px;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  color: #960000;
  white-space: nowrap;
}
/* =================================
  入力：共通
================================= */
section.form input, section.form select, section.form textarea, section.form button {
  font: inherit;
  box-sizing: border-box;
}
section.form input[type="text"], section.form input[type="email"], section.form input[type="tel"], section.form textarea {
  border: 1px solid #1f2338;
  border-radius: 0;
  background: #fff;
  outline: none;
}
section.form select {
  border: 1px solid #1f2338;
  border-radius: 0;
  background: #e9e6de;
  outline: none;
}
section.form input:focus, section.form select:focus, section.form textarea:focus {
  border-color: #6b6f86;
  box-shadow: 0 0 0 3px rgba(47, 49, 70, .12);
}
/* =================================
  PC：通常入力は 360px 固定（伸び縮みさせない）
  ※ .input-xs / .input-zip は除外
================================= */
section.form td > input[type="text"]:not(.input-xs):not(.input-zip), section.form td > input[type="email"]:not(.input-xs):not(.input-zip), section.form td > input[type="tel"]:not(.input-xs):not(.input-zip), section.form td > textarea, section.form td > select, section.form td .addr-row > input[type="text"] {
  width: 100%;
  max-width: 420px;
  padding: 6px 8px; /* 高さ感を統一 */
}
/* ✅ 重要：都道府県(select)が.addr-row内なので個別に同サイズ指定 */
section.form td .addr-row > select {
  width: 100%;
  max-width: 100px;
  padding: 6px 8px; /* 他の入力と高さ合わせ */
}
/* textarea */
section.form td > textarea {
  min-height: 160px;
  resize: vertical;
}
/* =================================
  横並びブロック（PC）
================================= */
.inline-fields, .zip-row, .tel-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}
/* ✅ PCで「伸びない」ように固定（これが“PCと同じ大きさ”の芯） */
.inline-fields > *, .zip-row > *, .tel-row > * {
  flex: 0 0 auto;
  min-width: 0;
}
/* ラベル */
.inline-label {
  font-family: "Noto Serif JP", serif;
  white-space: nowrap;
  line-height: 1;
}
/* 小枠 */
.input-xs {
  padding: 6px 6px;
  border: 1px solid #1f2338;
  border-radius: 0;
  background: #fff;
  outline: none;
}
/* 生年月日（PC） */
.inline-fields input[name="birth_y"] {
  width: 80px;
  max-width: 80px;
}
.inline-fields input[name="birth_m"], .inline-fields input[name="birth_d"] {
  width: 52px;
  max-width: 52px;
}
/* 入居予定者数（PC） */
.inline-fields input[name="res_adult"], .inline-fields input[name="res_child"] {
  width: 70px;
  max-width: 70px;
}
/* 郵便・電話（PC） */
.input-zip {
  padding: 6px 6px;
  border: 1px solid #1f2338;
  border-radius: 0;
  background: #fff;
  outline: none;
}
/* 郵便番号（PC） */
.zip-row input[name="zip1"] {
  width: 60px;
  max-width: 60px;
}
.zip-row input[name="zip2"] {
  width: 80px;
  max-width: 80px;
}
/* 電話番号（PC） */
.tel-row input[name="tel1"], .tel-row input[name="tel2"], .tel-row input[name="tel3"] {
  width: 90px;
  max-width: 90px;
}
/* 住所行 */
.addr-row {
  margin-top: 10px;
}
/* 郵便番号から住所取得ボタン（PC） */
.zip-btn {
  appearance: none;
  background: #2f3146;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .05em;
  white-space: nowrap;
  min-width: 180px;
  text-align: center;
  cursor: pointer;
}
.zip-btn:hover {
  opacity: .85;
}
.zip-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
/* =================================
  同意エリア
================================= */
section.form tr.agree-row td {
  padding-top: 18px;
}
section.form .agree_box {
  width: 100%;
  border: 1px solid #960000;
  padding: 18px;
  margin: 10px 0 10px;
}
section.form .agree_box--full {
  width: 100%;
  max-width: none;
}
section.form .agree_text {
  margin: 0 0 14px;
  line-height: 1.8;
  color: #960000;
}
section.form .agree_check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 18px;
  height: 30px
}
section.form .agree_check input[type="checkbox"] {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  accent-color: #2f3146;
}
section.form .agree_note {
  margin: 0;
  line-height: 1.8;
  color: #333;
}
/* =================================
  送信ボタン（submit / 戻る / thanks 共通）
================================= */
section.form .input_btn {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  gap: 20px;
}

/* submit・戻る・サンクスボタンを完全統一 */
section.form input[type="submit"],
section.form a.back,
section.form a.thanks_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 360px;
  max-width: 100%;
  padding: 10px 10px;

  border: none;
  border-radius: 0;
  background: #c7a35a;
  color: #1f2338;

  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .08em;

  text-decoration: none;
  cursor: pointer;

  transition: opacity .25s ease, transform .25s ease;
}
section.form a.back,
section.form a.thanks_btn {
  display: flex;      /* aタグは必須 */
  margin-left: auto;
  margin-right: auto;
}

/* hover 共通 */
section.form input[type="submit"]:hover,
section.form a.back:hover,
section.form a.thanks_btn:hover {
  opacity: .88;
}

/* active 共通 */
section.form input[type="submit"]:active,
section.form a.back:active,
section.form a.thanks_btn:active {
  opacity: .78;
}

@media (max-width:768px) {
  .form-block {
    padding: 40px 16px 60px;
  }
  .form-block .form_title {
    font-size: 22px;
    margin-bottom: 22px;
  }
  section.form {
    padding: 32px 18px 40px;
  }
  /* ラベルを縦に */
  section.form th {
    display: block;
    width: 100%;
    padding: 8px 0 8px;
    padding-left: 0;
    white-space: normal;
  }
  section.form th .required {
    position: static;
    transform: none;
    width: auto;
    margin-right: 8px;
  }
  section.form td {
    display: block;
    padding: 0 0 15px 0;
  }
  section.form td > input[type="text"]:not(.input-xs):not(.input-zip), section.form td > input[type="email"]:not(.input-xs):not(.input-zip), section.form td > input[type="tel"]:not(.input-xs):not(.input-zip), section.form td > textarea, section.form td > select, section.form td .addr-row > input[type="text"], section.form td .addr-row > select {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
  }
	section.form .agree_text br{
display: none
}
  /* -------------- 生年月日 / 人数 / 電話：1行固定 -------------- */
  .inline-fields, .tel-row {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .inline-fields > *, .tel-row > * {
    min-width: 0;
  }
  .inline-fields input, .tel-row input {
    flex: 0 1 auto;
  }
  /* 生年月日 */
  .inline-fields input[name="birth_y"] {
    width: 42%;
    max-width: none;
    padding: 8px 8px;
  }
  .inline-fields input[name="birth_m"], .inline-fields input[name="birth_d"] {
    width: 20%;
    max-width: none;
    padding: 8px 8px;
  }
  /* 入居予定者数 */
  .inline-fields input[name="res_adult"], .inline-fields input[name="res_child"] {
    width: 26%;
    max-width: none;
    padding: 8px 8px;
  }
  /* 電話番号 */
  .tel-row input[name="tel1"], .tel-row input[name="tel2"], .tel-row input[name="tel3"] {
    width: 30%;
    max-width: none;
    padding: 8px 8px;
  }
  /* -------------- 郵便番号：ボタンは改行 -------------- */
  .zip-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .zip-row input[name="zip1"] {
    width: 30%;
    max-width: none;
    padding: 10px 12px;
  }
  .zip-row input[name="zip2"] {
    width: 40%;
    max-width: none;
    padding: 10px 12px;
  }
  .zip-btn {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
  }
}
@media (max-width:375px) {
  .inline-fields, .tel-row {
    gap: 5px;
  }
  .inline-fields input[name="birth_y"] {
    width: 44%;
  }
  .inline-fields input[name="birth_m"], .inline-fields input[name="birth_d"] {
    width: 19%;
  }
  .inline-fields input[name="res_adult"], .inline-fields input[name="res_child"] {
    width: 25%;
  }
}
/* =================================
  確認画面（confirm.php）
  行ごとに下線を表示
================================= */
body.confirm section.form table tr {
  border-bottom: 1px solid #E3E3E3;
}

/* 最後の行だけは線を消す（ボタン直前） */
body.confirm section.form table tr:last-child {
  border-bottom: none;
}
@media (max-width: 768px) {
  body.confirm section.form td {
    padding-bottom: 4px;
  }
}
/* =================================
  確認画面：スマホ時のボタンはみ出し対策
================================= */
@media (max-width: 768px) {

  /* ボタンを縦並びに */
  section.form .input_btn {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  /* submit / 戻る / 送信 / 修正 すべて同じ扱い */
  section.form input[type="submit"],
  section.form a.back,
  section.form a.thanks_btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
.form_attention{background-color: #F8F8F8;border: 1px solid #E3E3E3;margin: 20px 0;padding: 20px}
.form h3{font-size: 20px;text-align: center} 
/* ================================
  高さを揃える（SP）追記：これを一番下に置く
================================ */
@media (max-width:768px){

  /* 生年月日 / 入居予定者数 / 電話 も、他の入力と同じ padding に揃える */
  .inline-fields input[name="birth_y"],
  .inline-fields input[name="birth_m"],
  .inline-fields input[name="birth_d"],
  .inline-fields input[name="res_adult"],
  .inline-fields input[name="res_child"],
  .tel-row input[name="tel1"],
  .tel-row input[name="tel2"],
  .tel-row input[name="tel3"]{
    padding: 6px 8px;
  }

  /* 郵便番号も揃えたい場合（zip1/zip2 が大きいのを統一） */
  .zip-row input[name="zip1"],
  .zip-row input[name="zip2"]{
    padding: 6px 8px;
  }
}


