@charset "utf-8";
/* ==========================================================================
   contact.html / thanks.html — 資料請求・見学予約フォーム

   デザインファイルは未提供のため、参考画面（1785573611.png）の構成
   （用件の切替 / 氏名2分割 / 住所3分割 / 第1〜第3希望日＋時間帯 / 同意 /
   「この内容で送信する」）を、LPのデザイントークンで実装しています。
   クライアントの最優先要件が「ラグジュアリーな世界観を崩さない」ことのため、
   配色・書体・余白はLP（styles.css）と共通です。

   参考画面はラベル左置きですが、375px幅では入力欄が狭くなりすぎるため
   ラベルは項目の上に置いています。
   ========================================================================== */

.page-form .page { padding-bottom: 0; }

/* ------------------------------------------------------------------ header */
.fhead {
  position: relative;
  padding: 6.6rem 0 4.6rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.fhead__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fhead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 34, 30, .58);
}
.fhead__inner { position: relative; z-index: 1; }

.fhead__back {
  position: absolute;
  z-index: 1;
  top: 2rem;
  left: 1.6rem;
  font-size: .95rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .8);
  transition: color .4s var(--ease);
}
.fhead__title {
  margin-top: 1.1rem;
  font-size: 2.3rem;
  line-height: 3.25rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-indent: .12em;
}
.fhead__lead {
  margin-top: 1.4rem;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: .08em;
  text-indent: .08em;
  color: rgba(255, 255, 255, .86);
}

/* -------------------------------------------------------------------- main */
.fmain { padding: 4rem 1.3rem 5.6rem; }

.notice {
  margin-bottom: 2.4rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid #c0392b;
  background: #fdf3f2;
  color: #8c2c20;
  font-size: 1.2rem;
  line-height: 1.9rem;
}
.notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

/* -------------------------------------------------------- 用件の切り替え */
.switch { display: flex; gap: .8rem; }
.switch__opt { flex: 1 1 0; cursor: pointer; }
.switch__box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  height: 6rem;
  padding: 0 .6rem;
  background: var(--ink);
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.switch__dot {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.switch__box { position: relative; }
.switch__txt {
  display: block;
  font-size: 1.36rem;
  line-height: 1;
  letter-spacing: .05em;
  text-align: center;
}
.switch__txt em {
  display: block;
  margin-top: .55rem;
  font-style: normal;
  font-size: .74em;
  letter-spacing: .02em;
  opacity: .82;
}

.switch__opt input:checked + .switch__box {
  background: var(--accent);
  color: var(--ink);
}
.switch__opt input:checked + .switch__box .switch__dot {
  background: currentColor;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.switch__opt input:focus-visible + .switch__box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ fields */
.field {
  margin-top: 2.8rem;
  padding: 0;
  border: 0;
}
.field__label {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: .06em;
}
.req, .opt {
  display: inline-block;
  margin-left: .8rem;
  padding: .25rem .55rem;
  font-style: normal;
  font-size: .88rem;
  letter-spacing: .06em;
  vertical-align: .12em;
}
.req { background: var(--ink); color: #fff; }
.opt { border: 1px solid var(--rule); color: #8a8a8a; }

.sub { display: block; margin-top: 1rem; }
.sub > span {
  display: block;
  margin-bottom: .5rem;
  font-size: 1rem;
  letter-spacing: .04em;
  color: #8a8a8a;
}
.field__row--2 { display: flex; gap: 1rem; }
.field__row--2 .sub { flex: 1 1 0; }
.sub--zip { max-width: 16rem; }

input[type="text"], input[type="tel"], input[type="email"],
input[type="date"], select, textarea {
  width: 100%;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.4rem;
  line-height: 1.5;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field > input { margin-top: 1rem; }
textarea { margin-top: 1rem; resize: vertical; }

::placeholder { color: #b4b4b4; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #c0392b; }

select {
  padding-right: 3rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.6rem) 55%, calc(100% - 1.1rem) 55%;
  background-size: .55rem .55rem, .55rem .55rem;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------ 第1〜第3希望日時 */
.field--visit { margin-top: 3rem; }
.field--visit[hidden] { display: none; }
.wish {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.1rem;
}
.wish__no {
  flex: none;
  width: 5.4rem;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.wish input[type="date"] { flex: 1 1 auto; min-width: 0; }
.wish select { flex: 0 0 12.4rem; }
.note {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.7rem;
  color: #8a8a8a;
  text-align: right;
}

/* ----------------------------------------------------------------- consent */
.consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .9rem;
  margin-top: 3.4rem;
  font-size: 1.2rem;
  line-height: 1.8rem;
  cursor: pointer;
}
/* 視覚的に隠すだけで、フォーカスもラベルクリックも生きる標準パターン。
   position:absolute のままだと入力欄が静的位置に居座り、隣のプライバシー
   ポリシーのリンクと重なってクリックを奪い合う（実際に踏んだ）。 */
.consent input,
.switch__opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.consent__box {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: .1rem;
  border: 1px solid var(--ink);
  background: #fff;
}
.consent input:checked + .consent__box {
  background: var(--ink);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--ink);
}
.consent input:focus-visible + .consent__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent a { text-decoration: underline; text-underline-offset: .25em; }

/* ------------------------------------------------------------------ submit */
.submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 5rem;
  margin-top: 3.2rem;
  background: var(--ink);
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: .1em;
  text-indent: .1em;
  transition: opacity .4s var(--ease);
}
.submit .chev { position: absolute; right: 1.6rem; width: .8rem; height: 1.4rem; }
.submit[disabled] { opacity: .55; cursor: progress; }

/* ------------------------------------------------------------------ errors */
.err {
  margin-top: .7rem;
  font-size: 1.1rem;
  line-height: 1.7rem;
  color: #c0392b;
}
.err--center { text-align: center; }
.err[hidden] { display: none; }

/* ------------------------------------------------------------------ thanks */
.thanks {
  padding: 6.4rem 2.4rem 7.2rem;
  text-align: center;
}
.thanks__title {
  font-size: 2.3rem;
  line-height: 3.4rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-indent: .1em;
}
.thanks__body {
  margin-top: 2.6rem;
  font-size: 1.4rem;
  line-height: 2.6rem;
}
.thanks__pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24rem;
  height: 4.6rem;
  margin-top: 3rem;
  padding: 0 2rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.4rem;
  letter-spacing: .08em;
  transition: opacity .4s var(--ease);
}
.thanks__back {
  display: inline-block;
  margin-top: 3.6rem;
  font-size: 1.25rem;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .5rem;
  transition: border-color .4s var(--ease);
}

@media (hover: hover) {
  .fhead__back:hover { color: #fff; }
  .submit:hover, .thanks__pdf:hover { opacity: .82; }
  .thanks__back:hover { border-color: var(--ink); }
  .switch__opt:hover input:not(:checked) + .switch__box { background: #5c5c5c; }
}
