@charset "UTF-8";
/* =============================================================
   KotoUchi（コト打ち）お問い合わせフォーム
   style.css のトークン（--navy 等）と .btn を再利用する
   ============================================================= */

.page-form {
  background: var(--bg-light);
  color: var(--ink);
}
.page-form .pc { display: inline; }
.page-form .sp { display: none; }

/* =============================================================
   ヘッダー（ロゴのみ）
   ============================================================= */
.fhead {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
}
.fhead__inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fhead__logo { display: flex; align-items: baseline; gap: 5px; }
.fhead__logo-en { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .04em; }
.fhead__logo-ja { font-size: 12px; color: #cfdcf2; letter-spacing: .08em; }
.fhead__back {
  font-size: 13px; letter-spacing: .06em; color: #cfdcf2;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.fhead__back::before { content: "←"; margin-right: 6px; }
.fhead__back:hover { color: var(--white); border-color: rgba(255, 255, 255, .5); }

/* =============================================================
   本体レイアウト
   ============================================================= */
.fmain { padding: 56px 0 80px; }
.fmain__inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 56px;
  align-items: start;
}

/* =============================================================
   左：価値の再訴求
   ============================================================= */
.fintro__eyebrow { font-size: 12.5px; letter-spacing: .18em; color: var(--blue); margin-bottom: 12px; }
.fintro__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.fintro__lead { font-size: 15.5px; line-height: 2; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 34px; }

/* 資料イメージ（紙を重ねた表現） */
.fdoc { position: relative; width: min(360px, 100%); margin: 0 0 40px; aspect-ratio: 16 / 11; }
.fdoc__sheet {
  position: absolute; inset: 0;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(27, 42, 74, .22);
}
.fdoc__sheet--back {
  background: #dfe7f2;
  transform: rotate(-5deg) translate(-10px, 6px);
}
.fdoc__sheet--mid {
  background: #eef3fa;
  transform: rotate(-2.4deg) translate(-4px, 3px);
}
.fdoc__sheet--front {
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px 32px;
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 80% at 78% 22%, rgba(59, 130, 246, .5) 0%, transparent 62%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deepest) 100%);
  overflow: hidden;
}
.fdoc__label {
  position: relative; z-index: 1;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 11px; letter-spacing: .28em; color: var(--blue-light);
  margin-bottom: 10px;
}
.fdoc__logo {
  position: relative; z-index: 1;
  font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 8px;
}
.fdoc__tagline {
  position: relative; z-index: 1;
  font-size: 13px; line-height: 1.9; letter-spacing: .06em; color: #dbe5f5;
}
.fdoc__note {
  position: relative; z-index: 1;
  margin-top: 18px; padding-top: 12px;
  border-top: 1px solid rgba(158, 190, 235, .35);
  font-size: 11px; letter-spacing: .14em; color: #9db8e0;
}

/* この資料でわかること */
.fpoints {
  background: var(--white);
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(27, 42, 74, .07);
  margin-bottom: 28px;
}
.fpoints__title {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  letter-spacing: .06em; text-align: center;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.fpoints__list { display: grid; gap: 14px; }
.fpoints__list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.fpoints__num {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), #1d4ed8);
  color: var(--white); font-size: 13px; font-weight: 700;
}
.fpoints__text { font-size: 14.5px; line-height: 1.8; letter-spacing: .02em; }

.fintro__desc { font-size: 14px; line-height: 2; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 14px; }

/* 安心材料 */
.ftrust { display: grid; gap: 10px; margin-top: 26px; }
.ftrust li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; letter-spacing: .02em; color: var(--ink-soft);
}
.ftrust .icon { width: 18px; height: 18px; color: var(--blue); }

/* =============================================================
   右：フォームカード
   ============================================================= */
.fform-col { position: sticky; top: 24px; }
.fcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 32px;
  box-shadow: 0 20px 50px rgba(27, 42, 74, .1);
}

.fform__req-note {
  font-size: 12.5px; color: var(--ink-soft);
  padding-bottom: 20px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

/* --- 共通フィールド --- */
.field { border: 0; padding: 0; margin: 0 0 22px; }
.field__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 0;
}
.field__help { font-size: 12px; line-height: 1.7; color: var(--ink-soft); margin: -2px 0 8px; }

.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 3px;
  line-height: 1.4;
}
.badge--req { color: #c0392b; background: rgba(192, 57, 43, .1); }
.badge--opt { color: #6b7686; background: rgba(107, 118, 134, .1); }

.input {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-lighter);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input::placeholder { color: #a7b1c2; }
.input:hover { border-color: #b9c8dd; }
.input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.input--area { resize: vertical; min-height: 108px; }

/* セレクト */
.select { position: relative; }
.select::after {
  content: "";
  position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select {
  appearance: none;
  display: block; width: 100%;
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  color: var(--ink);
  background: var(--bg-lighter);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 38px 13px 14px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.select select:hover { border-color: #b9c8dd; }
.select select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.select select:invalid, .select select option[value=""] { color: #a7b1c2; }

/* ラジオ */
.radios { display: grid; gap: 10px; }
.radio {
  position: relative;
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px;
  background: var(--bg-lighter);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.radio:hover { border-color: #b9c8dd; }
.radio input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}
.radio__box {
  width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid #b0bccd;
  border-radius: 50%;
  background: var(--white);
  transition: border-color .2s ease;
  position: relative;
}
.radio__box::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.radio__text strong { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: .03em; }
.radio__text small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 3px; letter-spacing: .02em; }
/* 選択時 */
.radio:has(input:checked) {
  background: rgba(37, 99, 235, .05);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue) inset;
}
.radio:has(input:checked) .radio__box { border-color: var(--blue); }
.radio:has(input:checked) .radio__box::after { transform: scale(1); }
/* キーボード操作時のフォーカス可視化 */
.radio:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }

/* --- エラー --- */
.field__error {
  display: none;
  font-size: 12.5px; font-weight: 500; color: #c0392b;
  margin-top: 7px;
  letter-spacing: .02em;
}
.field__error::before { content: "⚠"; margin-right: 5px; }
.field.is-error .field__error { display: block; }
.field.is-error .input,
.field.is-error .select select {
  border-color: #c0392b;
  background: rgba(192, 57, 43, .04);
}
.field.is-error .input:focus,
.field.is-error .select select:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.field.is-error .radio { border-color: #e0a49c; }

.fform__summary {
  font-size: 13px; line-height: 1.8; font-weight: 500; color: #c0392b;
  background: rgba(192, 57, 43, .07);
  border: 1px solid rgba(192, 57, 43, .3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.fform__submit { margin-top: 4px; font-size: 16px; padding: 18px 32px; }
.fform__submit:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.fform__privacy {
  font-size: 12px; line-height: 1.8; color: var(--ink-soft);
  text-align: center;
  margin-top: 16px;
}
.fform__privacy-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue); text-decoration: underline; text-underline-offset: 2px;
}
.fform__privacy-link:hover { text-decoration: none; }
/* 別タブで開くことを示す */
.fform__ext {
  width: 8px; height: 8px;
  border: 1px solid currentColor;
  border-left: 0; border-bottom: 0;
  position: relative;
  flex: none;
}
.fform__ext::after {
  content: "";
  position: absolute; right: -1px; top: 0;
  width: 10px; height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right top;
}

/* =============================================================
   送信完了
   ============================================================= */
.fdone { text-align: center; padding: 26px 0; }
.fdone__icon {
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  margin: 0 auto 22px;
  background: rgba(37, 99, 235, .1);
  animation: doneIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.fdone__icon svg { width: 38px; height: 38px; fill: var(--blue); }
@keyframes doneIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fdone__title { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: .06em; margin-bottom: 16px; }
.fdone__text { font-size: 14.5px; line-height: 2; color: var(--ink-soft); }
.fdone__note {
  font-size: 13px; line-height: 1.8; color: var(--ink-soft);
  background: var(--bg-lighter);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 20px;
}
.fdone__note:empty { display: none; }
.fdone__back { margin-top: 26px; color: var(--ink); border-color: var(--line); background: var(--white); }
.fdone__back:hover { background: var(--bg-lighter); }

/* =============================================================
   フッター
   ============================================================= */
.ffoot { background: var(--navy-deepest); color: #8fa3c4; padding: 26px 0; }
.ffoot__inner {
  max-width: 1160px; margin-inline: auto; padding-inline: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px 28px;
}
.ffoot__logo { font-family: var(--serif); font-size: 17px; color: var(--white); }
.ffoot__logo span { font-size: 11px; color: #8fa3c4; margin-left: 4px; }
.ffoot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ffoot__links a {
  font-size: 12.5px; letter-spacing: .04em; color: #cfdcf2;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.ffoot__links a:hover { color: var(--gold-light); border-color: rgba(232, 205, 128, .5); }
.ffoot__copy { font-size: 11.5px; letter-spacing: .06em; }

/* =============================================================
   レスポンシブ
   ============================================================= */
@media (max-width: 960px) {
  .fmain { padding: 40px 0 64px; }
  .fmain__inner { grid-template-columns: 1fr; gap: 40px; }
  .fform-col { position: static; }
  .fdoc { margin-inline: auto; }
}

@media (max-width: 640px) {
  .page-form .pc { display: none; }
  .page-form .sp { display: inline; }
  .fhead__inner { padding: 14px 20px; }
  .fhead__logo-en { font-size: 21px; }
  .fhead__logo-ja { display: none; }
  .fhead__back { font-size: 12px; }
  .fmain__inner { padding-inline: 16px; }
  .fcard { padding: 24px 18px; border-radius: 12px; }
  .fpoints { padding: 22px 18px; }
  .fintro__lead br { display: none; }
  .radio { padding: 12px 13px; gap: 10px; }
  .radio__text strong { font-size: 14px; }
  /* iOS で入力時に拡大されないよう 16px を確保する */
  .input, .select select { font-size: 16px; }
  .ffoot__inner { justify-content: center; text-align: center; }
}
