/* =========================================================
   相談フォームページ。元画像（幅876px）を基準に 1rem = 約10px で配置。
   画面幅に合わせて同じ比率で拡大縮小します（最大1280px）。
   760px 以下はスマホ用の1カラムに切り替わります。
   ========================================================= */
:root {
  --blue: #0a2cf5;
  --blue-dark: #061fc4;
  --blue-soft: #f1f5ff;
  --text: #1a1d29;
  --gray: #4b5063;
  --placeholder: #9ba0b2;
  --border: #a9afc0;
  --field-line: #cdd2e0;
  --card-line: #e0e4ee;
  --band: #eef1f8;
  --bg: #f4f6fb;
  --error: #d3263f;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

html { font-size: calc(min(100vw, 1280px) / 87.6); scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: .3rem solid var(--blue); outline-offset: .2rem; }

/* ================= Header / Footer ================= */
.logo { font-size: 2.8rem; font-weight: 900; line-height: 1; letter-spacing: .02em; color: #111; white-space: nowrap; }
.logo span { color: var(--blue); font-size: 1.15em; margin-left: .1rem; }
.logo--small { font-size: 2.2rem; }

.header { height: 5.9rem; background: #fff; border-bottom: 1px solid var(--card-line); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 87.6rem; height: 100%; margin: 0 auto; padding: 0 2.6rem 0 3rem;
}

/* サービスのトップへ戻る */
.header__back {
  display: inline-flex; align-items: center; gap: .8rem;
  height: 3.6rem; padding: 0 .8rem 0 1.6rem;
  border-radius: 10rem;
  color: var(--blue); font-size: 1.4rem; font-weight: 700; white-space: nowrap;
  transition: background-color .2s;
}
.header__back:hover { background: var(--blue-soft); text-decoration: none; }

.chev {
  position: relative; flex: none;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--blue);
  transition: transform .2s;
}
.chev::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: .6rem; height: .6rem;
  border-top: .2rem solid #fff; border-right: .2rem solid #fff;
  transform: translate(-65%, -50%) rotate(45deg);
}
.header__back:hover .chev { transform: translateX(.3rem); }

.footer { margin-top: 2.3rem; height: 5.1rem; background: #fff; border-top: 1px solid var(--card-line); }
.footer__inner {
  display: flex; align-items: center;
  max-width: 87.6rem; height: 100%; margin: 0 auto; padding: 0 5rem 0 3rem;
  font-size: 1.45rem;
}

/* --- フッター会社ロゴ用スタイル追加 --- */
.footer__company-logo {
  display: flex;
  align-items: center;
  margin-left: 3.5rem;
  padding-left: 3.2rem;
  border-left: 1px solid var(--border);
}
.footer__logo-img {
  height: 2rem; /* 文字サイズに合わせた高さ */
  width: auto;
  display: block;
}
/* --------------------------------- */

.footer__link { margin-left: auto; color: var(--blue); text-decoration: underline; }
.footer__link:hover { opacity: .7; }

/* ================= Intro ================= */
.intro { max-width: 87.6rem; margin: 0 auto; padding: 3.7rem 1.4rem 0; text-align: center; }
.intro__eyebrow { font-size: 1.8rem; font-weight: 700; color: var(--blue); line-height: 2.2rem; }
.intro__title { margin-top: 1.6rem; font-size: 4rem; font-weight: 900; line-height: 1.4; letter-spacing: .02em; }
.intro__lead { margin-top: .4rem; font-size: 1.7rem; line-height: 3.3rem; }

/* ステップバー */
.steps { display: flex; align-items: center; justify-content: center; margin: 2.7rem 0 4.6rem; }
.step { display: flex; align-items: center; color: #9b9fae; }
.step + .step::before { content: ""; width: 8rem; height: .1rem; background: #b4b7c3; margin: 0 2.4rem; }
.step__no {
  display: grid; place-items: center; min-width: 4.4rem; height: 2.9rem; padding: 0 .4rem;
  border-radius: .8rem; background: #b4b7c3; color: #fff;
  font-size: 1.7rem; font-weight: 700; line-height: 1;
}
.step__label { margin-left: 1.2rem; font-size: 1.75rem; font-weight: 700; white-space: nowrap; }
.step.is-current, .step.is-done { color: var(--blue); }
.step.is-current .step__no, .step.is-done .step__no { background: var(--blue); }

/* ================= Layout ================= */
.layout {
  display: grid; grid-template-columns: 55.9rem 27.3rem; gap: 1.6rem; align-items: start;
  max-width: 87.6rem; margin: 0 auto; padding: 0 1.4rem;
}

/* ================= Card / form ================= */
.card {
  padding: 0 2rem 2.4rem;
  background: #fff; border: 1px solid var(--card-line); border-radius: 1.4rem;
  box-shadow: 0 .2rem 1.2rem rgba(26, 40, 110, .04);
}
.card--pad { padding-top: 2.4rem; }
.card__note { margin: 0 .7rem; padding: 1.7rem 0 1.3rem; border-bottom: 1px solid #dfe2ea; font-size: 1.4rem; line-height: 2.2rem; color: var(--gray); }

/* セクション見出し */
.band {
  position: relative; margin: 2.8rem .2rem 0; height: 4.8rem;
  display: flex; align-items: center; padding-left: 2.4rem;
  background: linear-gradient(90deg, #e9eeff 0%, #f6f8ff 100%);
  border-radius: .8rem;
  font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--text);
}
.band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .6rem;
  background: var(--blue); border-radius: .8rem 0 0 .8rem;
}
.band--contact { margin-top: 3.6rem; }
.band--first { margin-top: 0; }

.field { margin: 2.6rem .5rem 0 .8rem; }
.band + .field { margin-top: 2.4rem; }
.band--contact + .field { margin-top: 2.2rem; }
.field--tight { margin-top: 2rem; }
.field--contact { margin-top: 2.2rem; }

.label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 1.7rem; font-weight: 700; line-height: 2.4rem; }
.badge { display: inline-flex; align-items: center; height: 2rem; padding: 0 .9rem; border-radius: 10rem; color: #fff; font-size: 1.1rem; font-weight: 700; line-height: 1; letter-spacing: .06em; }
.badge--req { background: var(--blue); }
.badge--opt { background: #9a9eaa; }

/* ご相談の種類（2×2のカード型ラジオ） */
.field:has(.choices) .label { margin-bottom: 1.2rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.1rem; margin: 0 -.4rem 0 -.3rem; }
.choice {
  display: flex; align-items: center; gap: .9rem;
  min-height: 5.8rem; padding: 0 1.4rem;
  background: #fff; border: .15rem solid var(--field-line); border-radius: 1.2rem;
  font-size: 1.5rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.choice:hover { border-color: #97a4e6; background: #fafbff; transform: translateY(-.1rem); }
.choice:has(input:checked) {
  background: var(--blue-soft); border-color: var(--blue); font-weight: 700;
  box-shadow: 0 0 0 .1rem var(--blue), 0 .4rem 1.4rem rgba(10, 44, 245, .14);
}

/* 横並びラジオ（ピル型のチップ） */
.radios { display: flex; flex-wrap: wrap; gap: 1rem 1rem; margin-top: 1.2rem; margin-left: 0; }
.radio {
  display: inline-flex; align-items: center; gap: .9rem;
  height: 4.4rem; padding: 0 1.8rem 0 1.4rem;
  background: #fff; border: .15rem solid var(--field-line); border-radius: 10rem;
  font-size: 1.6rem; cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.radio:hover { border-color: #97a4e6; background: #fafbff; }
.radio:has(input:checked) {
  background: var(--blue-soft); border-color: var(--blue); font-weight: 700;
  box-shadow: 0 0 0 .1rem var(--blue);
}

input[type="radio"], input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; margin: 0; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
input[type="radio"] { width: 2.2rem; height: 2.2rem; border: .15rem solid #8b91a5; border-radius: 50%; }
input[type="radio"]:checked { border: .2rem solid var(--blue); background: radial-gradient(circle, var(--blue) 0 .55rem, #fff .6rem); }
input[type="checkbox"] { width: 2.2rem; height: 2.2rem; border: .15rem solid #8b91a5; border-radius: .5rem; }
input[type="checkbox"]:checked {
  border-color: var(--blue); background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

/* 入力欄 */
.input {
  display: block; width: 100%; height: 4.8rem; padding: 0 1.6rem;
  background: #fbfcfe; border: .15rem solid var(--field-line); border-radius: .9rem;
  font: inherit; font-size: 1.65rem; color: var(--text);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: #aab3d4; }
.input:focus {
  outline: none; background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 .35rem rgba(10, 44, 245, .14);
}
.input--select {
  padding-right: 4.4rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7.5l6 6 6-6' fill='none' stroke='%230a2cf5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.6rem center; background-size: 1.6rem 1.6rem;
}
.input--area { height: 14rem; padding: 1.4rem 1.6rem; line-height: 2.5rem; resize: vertical; }
.help { margin-top: .8rem; font-size: 1.4rem; line-height: 2rem; color: var(--gray); }
.help--lead { margin: 1.4rem .8rem 0; }

.field.has-error .input { border-color: var(--error); background: #fffafb; }
.field.has-error .input:focus { box-shadow: 0 0 0 .35rem rgba(211, 38, 63, .12); }
.error { margin-top: .7rem; font-size: 1.35rem; font-weight: 700; color: var(--error); line-height: 1.5; }

/* 同意 */
.agree {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  margin: 3rem .5rem 0 .8rem; padding: 1.6rem 1.8rem;
  background: #f6f8fd; border: .1rem solid #e3e8f4; border-radius: 1.2rem;
  font-size: 1.6rem;
}
.agree .error { flex-basis: 100%; margin-top: 0; }
.check { display: inline-flex; align-items: center; gap: 1.2rem; cursor: pointer; }
.check a { color: var(--blue); text-decoration: underline; text-underline-offset: .3rem; }
.check a:hover { opacity: .75; }

/* 送信ボタン */
.submit {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  width: 100%; height: 6rem; margin-top: 2.4rem; padding: 0 2rem;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #2a4bff 0%, #0a2cf5 50%, #061fc4 100%);
  color: #fff; border: 0; border-radius: 1.4rem;
  font: inherit; font-size: 2rem; font-weight: 700; letter-spacing: .06em; cursor: pointer;
  box-shadow:
    0 .1rem 0 rgba(255,255,255,.35) inset,
    0 .6rem 1.6rem rgba(10, 44, 245, .30),
    0 1.6rem 3rem -1rem rgba(10, 44, 245, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}

/* 光の筋（ホバーで左から右へ流れる） */
.submit::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: -40%;
  width: 28%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  transform: skewX(-25deg);
  transition: left .7s var(--ease);
}

/* 矢印（丸い枠の中） */
.submit span {
  display: grid; place-items: center; flex: none;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: rgba(255,255,255,.2);
  box-shadow: 0 0 0 .1rem rgba(255,255,255,.35) inset;
  font-size: 1.8rem; line-height: 1;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}

.submit:hover {
  transform: translateY(-.3rem);
  filter: saturate(1.08);
  box-shadow:
    0 .1rem 0 rgba(255,255,255,.4) inset,
    0 1rem 2.2rem rgba(10, 44, 245, .36),
    0 2rem 3.6rem -1rem rgba(10, 44, 245, .42);
}
.submit:hover::before { left: 120%; }
.submit:hover span { transform: translateX(.4rem); background: #fff; color: var(--blue); }

.submit:active {
  transform: translateY(0);
  box-shadow:
    0 .1rem 0 rgba(255,255,255,.25) inset,
    0 .3rem .8rem rgba(10, 44, 245, .3);
}
.submit:focus-visible { outline: .3rem solid rgba(10, 44, 245, .45); outline-offset: .4rem; }

.submit__note { margin-top: 1.2rem; font-size: 1.4rem; line-height: 2rem; text-align: center; color: var(--gray); }

/* ================= Confirm / Done ================= */
.summary { margin: 1.2rem .8rem 0; }
.summary > div { display: grid; grid-template-columns: 17rem 1fr; gap: 1.6rem; padding: 1.8rem 0; border-bottom: 1px solid #e4e7f0; font-size: 1.55rem; }
.summary dt { font-weight: 700; color: var(--gray); }
.summary dd { white-space: pre-wrap; word-break: break-word; }
.summary dd.is-empty { color: var(--placeholder); }
.actions { display: flex; gap: 1.2rem; margin-top: 2.8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 5.6rem; padding: 0 2.4rem; border-radius: 1.2rem;
  font: inherit; font-size: 1.8rem; font-weight: 700; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s;
}
.btn--primary {
  flex: 1; border: 0; color: #fff;
  background: linear-gradient(135deg, #1a3cff 0%, var(--blue-dark) 100%);
  box-shadow: 0 .5rem 1.4rem rgba(10, 44, 245, .28);
}
.btn--primary:hover { transform: translateY(-.2rem); box-shadow: 0 .9rem 2rem rgba(10, 44, 245, .36); }
.btn--primary:disabled { opacity: .5; cursor: default; transform: none; }
.btn--ghost { background: #fff; color: var(--blue); border: .15rem solid var(--field-line); }
.btn--ghost:hover { background: var(--blue-soft); border-color: var(--blue); }

.done { text-align: center; padding-bottom: 3.2rem; }
.done__icon {
  display: grid; place-items: center; width: 6.4rem; height: 6.4rem; margin: 1.6rem auto 0;
  border-radius: 50%; background: linear-gradient(135deg, #1a3cff 0%, var(--blue-dark) 100%);
  color: #fff; font-size: 3rem; font-weight: 700;
  box-shadow: 0 .5rem 1.5rem rgba(10, 44, 245, .3);
}
.done__title { margin-top: 1.8rem; font-size: 2.8rem; font-weight: 900; }
.done__text { margin: 1.2rem 0 2.6rem; font-size: 1.6rem; line-height: 1.9; color: var(--gray); }
.done .btn { padding: 0 3.2rem; }

/* ================= Side ================= */
.flowcard {
  padding: 2.8rem 2rem 2.8rem 2.6rem;
  background: #fff; border: 1px solid var(--card-line); border-radius: 1.4rem;
  box-shadow: 0 .2rem 1.2rem rgba(26, 40, 110, .04);
}
.flowcard__title { padding-bottom: 1.9rem; border-bottom: 1px solid #dfe2ea; font-size: 2.4rem; font-weight: 700; line-height: 1.4; }
.flowcard__list { margin-left: -.7rem; }
.flowcard__list li { display: flex; gap: 1.2rem; padding: 1.9rem 0 1.8rem; border-bottom: 1px solid #dfe2ea; }
.flowcard__list li:last-child { border-bottom: none; padding-bottom: 0; }
.flowcard__no {
  display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; margin-top: .1rem;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.6rem; font-weight: 900; line-height: 1;
}
.flowcard__list h3 { font-size: 1.8rem; font-weight: 700; line-height: 2.4rem; }
.flowcard__list p { margin-top: .3rem; font-size: 1.4rem; line-height: 2.2rem; color: var(--gray); }

/* --- 初回利用特典（パーク）のおしゃれデザイン --- */
.perk {
  position: relative;
  margin-top: 2rem;
  padding: 2.8rem 2.4rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e8ff 100%);
  border: 1px solid rgba(10, 44, 245, 0.15);
  border-radius: 1.6rem;
  box-shadow: 0 8px 24px rgba(10, 44, 245, 0.06);
  overflow: hidden;
}

/* 背景に薄い円形の装飾を追加してリッチに */
.perk::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.perk__label {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: #fff;
  border-radius: 10rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 6px rgba(10, 44, 245, 0.1);
}

.perk__title {
  position: relative;
  margin-top: 0;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* HTML側の<br>タグを活かしつつ、自然な折り返しに */
.perk__title br {
  display: none;
}

.perk__text {
  position: relative;
  margin-top: 1.6rem;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--gray);
  font-weight: 500;
}

/* 注釈のデザイン調整（枠で囲んで整理） */
.side__note {
  margin-top: 1.6rem;
  padding: 1.2rem 1.6rem;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 0.8rem;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--gray);
  text-align: center;
}

/* ================= Mobile ================= */
@media (max-width: 760px) {
  html { font-size: calc(100vw / 39); }

  .header { height: 5.6rem; }
  .header__inner { padding: 0 1.2rem 0 1.6rem; }
  .logo { font-size: 2.6rem; }
  .header__back { font-size: 1.3rem; height: 3.4rem; padding: 0 .6rem 0 1.2rem; gap: .6rem; }
  .chev { width: 2rem; height: 2rem; }

  .intro { padding: 3rem 1.6rem 0; }
  .intro__eyebrow { font-size: 1.5rem; }
  .intro__title { font-size: 2.6rem; line-height: 1.4; margin-top: 1.2rem; }
  .intro__lead { font-size: 1.4rem; line-height: 2.4rem; margin-top: 1.2rem; }
  .intro__lead br { display: none; }
  .steps { margin: 2.4rem 0 3rem; }
  .step + .step::before { width: 2.4rem; margin: 0 .8rem; }
  .step__no { min-width: 3.6rem; height: 2.6rem; font-size: 1.4rem; }
  .step__label { display: none; }
  .step.is-current .step__label { display: inline; margin-left: .8rem; font-size: 1.4rem; }

  .layout { grid-template-columns: 1fr; padding: 0 1.2rem; gap: 2rem; }
  .card { padding: 0 1.6rem 2.4rem; }
  .card__note { margin: 0; font-size: 1.3rem; }
  .band { margin-left: 0; margin-right: 0; font-size: 2.1rem; height: 4.6rem; padding-left: 2rem; }
  .field, .agree { margin-left: 0; margin-right: 0; }
  .label { font-size: 1.6rem; }

  .choices { grid-template-columns: 1fr 1fr; margin: 0; gap: 1rem; }
  .choice { min-height: 5.6rem; font-size: 1.35rem; padding: 0 1rem; gap: .7rem; }

  .radios { gap: .8rem; }
  .radio { height: 4.4rem; padding: 0 1.4rem 0 1.1rem; font-size: 1.45rem; gap: .7rem; }
  .input { font-size: 1.6rem; height: 4.8rem; }
  .input--area { height: 16rem; }
  .help, .submit__note { font-size: 1.3rem; }
  .agree { font-size: 1.45rem; padding: 1.4rem 1.4rem; margin-top: 2.6rem; }
  .submit { height: 5.8rem; font-size: 1.8rem; gap: 1.2rem; }
  .submit span { width: 3.2rem; height: 3.2rem; font-size: 1.7rem; }
  .summary { margin-left: 0; margin-right: 0; }
  .summary > div { grid-template-columns: 1fr; gap: .4rem; font-size: 1.45rem; padding: 1.4rem 0; }
  .actions { flex-direction: column-reverse; }
  .btn { height: 5.4rem; }

  .flowcard__title { font-size: 2.2rem; }
  
  /* スマホ用のパーク調整 */
  .perk { padding: 2.4rem 1.8rem; }
  .perk__title { font-size: 2.1rem; }
  .perk__text { font-size: 1.35rem; }

  .footer { height: auto; }
  .footer__inner { flex-wrap: wrap; height: auto; padding: 1.4rem 1.6rem; gap: .6rem 1.2rem; font-size: 1.2rem; }
  
  /* モバイル用の会社ロゴ調整 */
  .footer__company-logo { margin-left: 0; padding-left: 1.2rem; }
  .footer__logo-img { height: 1.8rem; }

  .footer__link { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}