/* ====== Contact  ====== */

/* コンテナ */
.l-contact .container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
}

/* 見出し */
.contact-head {
  text-align: center;
  margin: 20px 0;
}
.contact-head .lead {
  font-size: 14px;
  line-height: 1.9;
  color: #9aa1a9;
}
.contact-head .title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.l-contact .contact-head .overline {
  font-size: 20px;
  letter-spacing: 0.18em;
  color: #98a2b3;
  margin-bottom: 8px;
}
.contact-form {
  margin-top: 24px;
}
.cf-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px 24px;
  align-items: center;
  margin: 16px 0;
}
.cf-label {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  color: #222;
}
.cf-label > span:first-child {
  white-space: nowrap;
}

/* バッジ */
.badge {
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  border-radius: 999px;
}
.badge.req {
  background: #eadca7;
}
.badge.opt {
  background: #111;
  color: #fff;
}

/* 入力スタイル＋フォーカス */
.l-contact .contact-form .cf-control input[type="text"],
.l-contact .contact-form .cf-control input[type="email"],
.l-contact .contact-form .cf-control input[type="tel"],
.l-contact .contact-form .cf-control textarea {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none !important;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  box-sizing: border-box;
}
.l-contact .contact-form .cf-control textarea {
  height: auto;
  min-height: 170px;
  resize: vertical;
}
.l-contact .contact-form .cf-control ::placeholder {
  color: #9aa1a9;
}
.l-contact .contact-form .cf-control input:focus,
.l-contact .contact-form .cf-control textarea:focus,
.l-contact .contact-form .cf-control input:focus-visible,
.l-contact .contact-form .cf-control textarea:focus-visible {
  border-color: #b6c0cb;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

/* お名前（姓・名）は右列の中で2カラム */
.name-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* エラー */
.error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 6px;
}

/* ボタン（塗り・白文字・ホバーでopacity） */
.l-contact .contact-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 11px 28px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #1d3557;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: opacity 0.7s, transform 0.04s, box-shadow 0.15s;
}
.l-contact .contact-form .btn-primary::after {
  content: "›";
  display: inline-block;
  font-size: 30px;
  margin-left: 20px;
  transform: translateY(-1px);
}
.l-contact .contact-form .btn-primary:hover {
  opacity: 0.88;
}
.l-contact .contact-form .btn-primary:active {
  transform: translateY(1px);
}

/* honeypot */
input.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
}
/* PCはボタンをふつうに中央揃え（グリッド指定を無効化） */
@media (min-width: 641px) {
  .l-contact .contact-form .cf-actions {
    display: block !important;
    text-align: center;
    grid-template-columns: unset !important;
    gap: unset !important;
  }
  .l-contact .contact-form .cf-actions > * {
    margin-left: auto;
    margin-right: auto;
    justify-self: unset !important;
    grid-column: auto !important;
  }
}
/* SP */
@media (max-width: 640px) {
  .cf-row {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
  .cf-label {
    justify-content: flex-start;
    gap: 8px;
  }
  .l-contact .contact-form .btn-primary {
    min-width: 100%;
  }
}

/* ==== Confirm buttons（確認画面専用) ==== */
.contact-confirm .cf-actions {
  display: flex !important;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.contact-confirm .cf-actions .cf-form {
  display: inline-block;
}
.contact-confirm .btn-cf {
  min-width: 220px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  border-radius: 10px;
  border: none;
  transition: opacity 0.2s, transform 0.04s;
}
.contact-confirm .btn-cf--send {
  color: #fff;
  background: #1d3557;
}
.contact-confirm .btn-cf--send:hover {
  opacity: 0.9;
}
.contact-confirm .btn-cf--send:active {
  transform: translateY(1px);
}

.contact-confirm .btn-cf--revise {
  color: #fff;
  background: #b3001b;
}
.contact-confirm .btn-cf--revise:hover {
  opacity: 0.9;
}
.contact-confirm .btn-cf--revise:active {
  transform: translateY(1px);
}
@media (min-width: 641px) {
  .contact-confirm .cf-confirm {
    max-width: 600px;
    margin: 26px auto 10px;
    padding: 0 12px;
  }
  .contact-confirm .cf-confirm dd {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .contact-confirm .cf-actions {
    flex-direction: column;
  }
  .contact-confirm .btn-cf {
    min-width: 100%;
  }
}
.contact-wrap.contact-confirm .container {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 24px;
}

.contact-wrap.contact-confirm .cf-confirm {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 14px;
  margin: 26px auto 6px;
  align-items: start;
}
.contact-wrap.contact-confirm .cf-confirm dt {
  justify-self: end;
  white-space: nowrap;
  color: #222;
  font-weight: 600;
}
.contact-wrap.contact-confirm .cf-confirm dd {
  margin: 0;
  width: 100%;
  white-space: normal;
  word-break: break-word;
}
.contact-wrap.contact-confirm .cf-read {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
}

.cf-complete {
  max-width: 720px;
  margin: 10rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  line-height: 1.9;
}
.cf-complete h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0 0 0.75rem;
}
.cf-complete p {
  margin: 0.5rem 0 1.25rem;
  color: #333;
}
.cf-complete .actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.cf-complete .btn {
  display: inline-block;
  padding: 0.4rem 6rem;
  border-radius: 12px;
  text-decoration: none;
  background: #1d3557;
  color: #fff;
}
.cf-complete .btn.outline {
  background: #fff;
  color: #1d3557;
}
.cf-complete .btn:hover {
  opacity: 0.9;
}
@media (max-width: 480px) {
  .cf-complete {
    margin: 40px 16px;
    padding: 20px;
    border-radius: 14px;
  }
  .cf-complete h2 {
    font-size: 1.25rem;
  }
  .cf-complete p {
    font-size: 0.95rem;
  }

  .cf-complete .actions {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .cf-complete .btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    white-space: nowrap;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
  }
}

/*  予約フォーム（一時的） */
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
