/* Contact page — form styles (uses main site CSS variables) */

.contact-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 7vw 120px;
}

/* ── フォーム上のリード文 */
.contact-lead {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2;
  color: var(--ink);
  margin: 0 0 56px;
  text-align: center;
  font-weight: 500;
}
@media (max-width: 900px) {
  .contact-lead {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 40px;
    text-align: left;
  }
  .contact-lead br { display: none; }
}

/* ── セクションヘッダー */
.contact-block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-block-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--green);
  margin: 0;
}

/* ── 電話 */
.contact-phone {
  margin-bottom: 72px;
  padding: 40px 40px;
  background: var(--bg-2);
}
.contact-phone-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.contact-phone-number > svg { width: 24px; height: 24px; stroke: var(--green); fill: none; flex-shrink: 0; }
.contact-access {
  margin-left: 48px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--green); color: var(--white);
  text-decoration: none; flex-shrink: 0;
  transition: opacity .2s;
}
.contact-access:hover { opacity: .85; }
.contact-access svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.contact-access span { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--white); }
.contact-phone-number > span {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--green);
}
.contact-phone-hours {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
  margin: 0;
}

/* ── フォーム */
.form-rows { display: flex; flex-direction: column; }
.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.form-row--top { align-items: start; }
.form-row--no-border { border-bottom: none; }

.form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.form-head--col { flex-direction: column; align-items: flex-start; gap: 4px; }

.form-required span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--white);
  background: var(--red);
  padding: 2px 8px;
  display: inline-block;
}
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.form-note { font-size: 11px; color: var(--muted); letter-spacing: .02em; }

/* ── inputs */
.form-input input,
.form-textarea textarea,
.form-input select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input input:focus,
.form-textarea textarea:focus {
  border-color: var(--green);
}
.form-input input::placeholder,
.form-textarea textarea::placeholder { color: rgba(34,34,34,.3); font-size: 13px; }
.form-textarea textarea { min-height: 140px; resize: vertical; }
.form-input--fixed-300 input { max-width: 300px; }

/* ── radio */
.form-radio-group { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.form-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.form-radio-item input[type="radio"] { accent-color: var(--green); width: 16px; height: 16px; }

/* ── select wrapper */
.datetime-wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.datetime-date { position: relative; }
.datetime-date input[type="date"] {
  padding: 12px 40px 12px 14px;
  min-width: 170px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}
/* カレンダーアイコン（常時表示で日付欄だと分かるように） */
.datetime-date::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230F2A23' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M3 9h18M8 2v4M16 2v4'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
/* 未選択時は「日付を選択」プレースホルダを表示 */
.datetime-date:not(.has-value)::before {
  content: "日付を選択";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(34, 34, 34, .4);
  pointer-events: none;
}
/* ネイティブのカレンダーアイコンは透明化（自作アイコンと二重表示を防ぐ／クリックは有効） */
.datetime-date input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
/* 未選択時はネイティブの年/月/日表示を隠してプレースホルダだけ見せる */
.datetime-date:not(.has-value) input[type="date"]::-webkit-datetime-edit { color: transparent; }
.datetime-date:not(.has-value) input[type="date"] { color: transparent; }
.datetime-time { position: relative; }
.datetime-time select {
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.datetime-time__arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ── email fields */
.email-fields { display: flex; flex-direction: column; gap: 10px; }

/* ── hidden row */
.row-company, .row-url { display: none; }
.row-company.visible, .row-url.visible { display: grid; }

/* ── checkbox + submit */
.form-checkbox-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.form-checkbox-label input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 60px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .25s, transform .25s;
}
.btn-submit:hover { opacity: .82; transform: translateY(-2px); }

@media(max-width:900px) {
  .contact-wrap { padding: 60px 22px 80px; }
  .form-row { grid-template-columns: 1fr; gap: 12px 0; padding: 18px 0; }
  .contact-phone { padding: 28px 22px; }
  .contact-phone-number { flex-wrap: nowrap; gap: 8px; }
  .contact-access { margin-left: 14px; width: 66px; height: 66px; }
  .contact-access svg { width: 24px; height: 24px; }
  .contact-access span { display: none; }
  .datetime-wrap { flex-direction: column; align-items: flex-start; }

  /* iOS Safariの入力時オートズーム防止（16px未満だと拡大されるため） */
  .form-input input,
  .form-textarea textarea,
  .form-input select,
  .datetime-date input[type="date"],
  .datetime-time select { font-size: 16px; }
}

/* main.cssのlabel非表示を上書き */
.contact-block-header .label { display: block; }

/* ════════════════════════════════════════════════════
   確認(confirm.php) / 完了(thanks.php) ページ ── 装飾のみ
   サイトのデザイントークンに合わせたスタイル
   （これらのページは contact.css 単体で読み込むため
    変数をここで定義しておく）
   ════════════════════════════════════════════════════ */
.contact-page {
  --bg: #f4f1ea;
  --bg-2: #eee8dc;
  --ink: #222;
  --muted: #726e68;
  --line: rgba(15,42,35,.18);
  --red: #C83A2A;
  --green: #0F2A23;
  --white: #fffaf0;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.contact-page .content-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 7vw 100px;
}

/* 見出し（CONTACT / ご予約・お問い合わせ） */
.contact-page .section-title { text-align: center; margin-bottom: 18px; }
.contact-page .section-title__en {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin: 0 0 10px;
  font-family: "Roboto", sans-serif;
}
.contact-page .section-title__ja {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--green);
  margin: 0;
}

/* パンくず */
.contact-page .breadcrumb {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 56px;
}
.contact-page .breadcrumb__item { color: var(--muted); text-decoration: none; transition: color .2s; }
.contact-page a.breadcrumb__item:hover { color: var(--green); }
.contact-page .breadcrumb__item--current { color: var(--ink); font-weight: 700; }
.contact-page .breadcrumb__arrow {
  display: inline-block;
  width: 5px; height: 5px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: rotate(45deg);
}

/* 確認タイトル */
.contact-page .confirm-title {
  text-align: center;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .02em;
  margin: 0 0 40px;
}

.contact-page .confirm-wrap,
.contact-page .form-wrap { max-width: 720px; margin: 0 auto; }

/* 確認テーブル */
.contact-page .confirm-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.contact-page .confirm-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.contact-page .confirm-row--no-border { border-bottom: none; }
.contact-page .confirm-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .02em;
}
.contact-page .confirm-value {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  word-break: break-word;
}

/* ボタン（修正する / この内容で送信） */
.contact-page .confirm-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.contact-page .confirm-actions form { margin: 0; }
.contact-page .btn-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 44px;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  font-family: inherit;
  transition: background .25s, color .25s, transform .25s;
}
.contact-page .btn-edit:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }
.contact-page .confirm-actions .btn-submit { padding: 18px 44px; }

/* 完了ページ */
.contact-page .complete-wrap {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 0 32px;
}
.contact-page .complete-title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
  color: var(--green);
  letter-spacing: -.02em;
  margin: 0 0 28px;
}
.contact-page .complete-text {
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
  margin: 0;
}

.contact-page .page-bottom { height: 40px; }

@media (max-width: 900px) {
  .contact-page .content-wrap { padding: 56px 22px 72px; }
  .contact-page .confirm-row { grid-template-columns: 1fr; gap: 6px 0; padding: 16px 2px; }
  .contact-page .confirm-label { font-size: 12px; }
  .contact-page .confirm-actions { flex-direction: column-reverse; align-items: stretch; }
  .contact-page .confirm-actions form { width: 100%; }
  .contact-page .btn-edit,
  .contact-page .confirm-actions .btn-submit { width: 100%; padding: 16px; }
}
