/* M&A Lead 売主向けLP — Design 05（2026-12）
   色・書体は Figma「LP02 Design04 / Tokens」に合わせている */
:root {
  --ink: #0b3461;
  --navy: #3d6181;
  --slate: #718ba2;
  --mist: #a5b5c4;
  --panel: #d9e0e5;
  --surface: #f3f5f6;
  --red: #d50e50;
  --red-hover: #e52761;
  --gold: #b6921e;
  --gold-tint: #fff7de;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --latin: "Lexend", var(--sans);
  --w: 1166px;
  --pad: 57px;
  --r: 12px;
  --shadow: 0 12px 32px rgb(11, 52, 97, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

br.sp {
  display: none;
}

.wrap {
  max-width: calc(var(--w) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sec {
  padding: 120px 0;
}

.bg-surface {
  background: var(--surface);
}

.bg-panel {
  background: var(--panel);
}

.bg-ink {
  background: var(--ink);
  color: #fff;
}

.note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--navy);
}

.bg-ink .note {
  color: var(--mist);
}

.notes {
  display: grid;
  gap: 4px;
  margin-top: 32px;
}

.notes--flush {
  margin-top: 0;
}

.note.note--inv {
  margin-top: 16px;
  color: #fff;
}

.lead {
  font-size: 21px;
  line-height: 1.9;
  margin-top: 20px;
}

.nb {
  white-space: nowrap;
}

/* 見出し：1行ずつ背景色 */
.hd {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 61px;
  letter-spacing: 0.04em;
}

.hl {
  background: var(--ink);
  color: #fff;
  padding: 4px 18px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hl em {
  font-style: normal;
  color: var(--gold);
}

.hd--inv .hl {
  background: #fff;
  color: var(--ink);
}

.hd--center {
  text-align: center;
}

/* ボタン・電話 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px 40px;
  border: 0;
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--red-hover);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--s {
  min-height: 56px;
  font-size: 18px;
  padding: 12px 24px;
}

.tel-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px 14px 16px;
  border-radius: 999px;
  background: rgb(255, 255, 255, 0.94);
  color: var(--ink);
  text-decoration: none;
}

.tel-pill img {
  width: 44px;
  height: 44px;
}

.tel-pill__label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.tel-pill__num {
  border-left: 1px solid var(--mist);
  padding-left: 14px;
  display: grid;
}

.tel-pill__hours {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.tel-pill__no {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--panel);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.header__logo img {
  width: 213px;
}

.header__nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-weight: 700;
  font-size: 16px;
}

.header__nav a {
  text-decoration: none;
}

.header__tel {
  display: grid;
  text-decoration: none;
  text-align: right;
  line-height: 1.3;
}

.header__tel b {
  font-family: var(--latin);
  font-size: 25px;
  font-weight: 600;
}

.header__tel span {
  font-size: 14px;
  white-space: nowrap;
}

.header .btn {
  min-height: 56px;
  font-size: 18px;
  padding: 12px 32px;
}

/* アイキャッチ */
.hero {
  position: relative;
  background: #cfe1f3 url("../assets/hero.jpg") center/cover no-repeat;
}

.hero__in {
  max-width: calc(var(--w) + var(--pad) * 2);
  margin: 0 auto;
  padding: 96px var(--pad);
  display: grid;
  gap: 28px;
  justify-items: start;
}

.hero__eyebrow {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 4px 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 52px;
  line-height: 76px;
  letter-spacing: 0.04em;
}

.hero h1 .hl {
  background: #fff;
  color: var(--ink);
}

.hero__lead {
  font-size: 18px;
  line-height: 52px;
}

.hero__lead .hl {
  padding: 6px 16px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* 実績 */
.sec--track {
  padding: 60px 0 120px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat {
  background: #fff;
  border: 1px solid var(--panel);
  border-radius: var(--r);
  padding: 32px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.stat b {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.3;
}

.stat strong {
  font-size: 18px;
}

.stat span {
  font-size: 14px;
  color: var(--navy);
}

/* 試算 */
.est {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 20px 0;
}

.steps .n {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--gold);
}

.steps b {
  display: block;
  font-size: 18px;
}

.steps span {
  font-size: 16px;
}

.steps--line li {
  border-top: 1px solid var(--panel);
}

.steps--line li:last-child {
  border-bottom: 1px solid var(--panel);
}

/* フォーム */
.form {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  gap: 24px;
  box-shadow: var(--shadow);
}

.form__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
}

.form__title span {
  margin-left: auto;
}

.chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-tint);
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 8px;
}

.field > label,
.field > .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.req,
.opt {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  padding: 0 8px;
  border: 1px solid var(--red);
  color: var(--red);
  white-space: nowrap;
}

.opt {
  border-color: var(--slate);
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--slate);
  border-radius: var(--r);
  background: #fff;
  font-size: 18px;
  line-height: 1.6;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%230b3461'/%3E%3C/svg%3E")
    right 16px center no-repeat;
  padding-right: 40px;
}

.field :focus-visible,
.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.field .err {
  display: none;
  font-size: 14px;
  color: var(--red);
}

.field.is-err .err {
  display: block;
}

.field.is-err input,
.field.is-err select,
.field.is-err textarea {
  border-color: var(--red);
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 18px;
}

.consent input {
  width: 24px;
  height: 24px;
  margin: 5px 0 0;
  flex: none;
  accent-color: var(--ink);
}

.consent-note {
  font-size: 14px;
  line-height: 1.8;
}

.consent-note a,
.link {
  font-weight: 700;
  text-underline-offset: 3px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips label {
  cursor: pointer;
}

.chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
}

.chips span {
  display: block;
  padding: 12px 20px;
  border: 1px solid var(--mist);
  border-radius: 999px;
  font-weight: 700;
  background: #fff;
}

.chips input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chips input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.center {
  text-align: center;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__msg {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fdecef;
  color: var(--red);
  font-size: 16px;
}

.form__msg.is-on {
  display: block;
}

/* ステップ式フォーム（PCは末尾セクションに常設、SPは入力画面として開く） */
.stepper {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.stepper__head {
  display: grid;
  gap: 12px;
}

.stepper__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper__top h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
  margin-right: auto;
}

.stepper__step {
  font-family: var(--latin);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--gold);
  white-space: nowrap;
}

.stepper__close {
  display: none;
  background: none;
  border: 0;
  font-size: 14px;
  color: inherit;
}

.stepper__bar {
  height: 4px;
  border-radius: 2px;
  background: rgb(255, 255, 255, 0.25);
}

.stepper__bar i {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.2s;
}

.stepper__q {
  font-weight: 700;
  font-size: 20px;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.choice {
  background: #fff;
  color: var(--ink);
  border-radius: var(--r);
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: space-between;
}

.choice h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
}

.choice .sub {
  font-weight: 700;
  color: var(--gold);
}

.choice p {
  font-size: 18px;
  color: var(--navy);
}

.stepper:focus {
  outline: none;
}

.stepper .panel {
  display: none;
}

.stepper .panel.is-on {
  display: grid;
  gap: 24px;
}

/* 左右は24px：ご検討状況の4択がPCで1行に収まる幅（647px以上）を確保する */
.stepper .form {
  border: 0;
  box-shadow: none;
  padding: 32px 24px;
  color: var(--ink);
}

.stepper__back {
  background: none;
  border: 0;
  color: #fff;
  font-weight: 700;
  justify-self: start;
  padding: 8px 0;
}

.stepper__back:disabled {
  opacity: 0.5;
  cursor: wait;
}

.stepper__foot {
  font-size: 14px;
}

.thanks {
  background: #fff;
  color: var(--ink);
  border-radius: var(--r);
  padding: 40px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.thanks h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.thanks--framed {
  border: 2px solid var(--ink);
}

.entry {
  display: none;
}

/* 理由 */
.reason {
  padding-top: 48px;
  margin-top: 72px;
  border-top: 1px solid var(--panel);
  display: grid;
  gap: 32px;
}

.reason__head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.reason__no {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.3;
  color: var(--gold);
}

.reason__head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.5;
}

.reason__strong {
  font-weight: 700;
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.topic {
  border-top: 1px solid var(--panel);
  padding: 24px 24px 24px 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.topic .n {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 26px;
  color: var(--gold);
  line-height: 1.2;
}

.topic h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--panel);
  border-radius: var(--r);
  padding: 32px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.card h4 {
  font-size: 20px;
  line-height: 1.6;
}

.fig img {
  width: 100%;
}

.more > summary {
  display: none;
}

.more__body {
  display: grid;
  gap: 32px;
}

/* CTAユニット */
.cta-unit {
  max-width: 880px;
  margin: 72px auto 0;
  border: 1px solid var(--panel);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}

.cta-unit__band {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
}

.cta-unit__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 40px;
}

.cta-unit__tel {
  display: grid;
  text-decoration: none;
  line-height: 1.5;
  flex: 1;
}

.cta-unit__tel b {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.3;
}

.cta-unit__tel small {
  font-size: 14px;
}

.cta-unit .btn {
  flex: 1;
}

.cta-unit--tel .cta-unit__tel {
  text-align: center;
}

/* 人物 */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.person {
  background: #fff;
  border: 1px solid var(--panel);
  border-radius: var(--r);
  padding: 32px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.person img {
  width: 100%;
  aspect-ratio: 307/280;
  object-fit: cover;
  border-radius: var(--r);
  background: #fff;
}

.person .en {
  font-family: var(--latin);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.person h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
}

.person .role {
  font-weight: 700;
  color: var(--navy);
}

.person .catch {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
}

.swipe {
  display: none;
}

/* 比較（SP用の表） */
.cmp-sp {
  display: none;
}

.figs {
  display: grid;
  gap: 35px;
  margin-top: 35px;
}

/* 流れ */
.proc-pc {
  margin-top: 16px;
}

.proc-sp {
  display: none;
}

/* 事例 */
.feature {
  display: grid;
  grid-template-columns: 340px 1fr;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  margin-top: 40px;
}

.feature > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__body {
  padding: 40px;
  display: grid;
  gap: 24px;
}

.tag {
  display: inline-block;
  justify-self: start;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.tag--sub {
  background: var(--surface);
  color: var(--ink);
  font-weight: 400;
  font-size: 14px;
  padding: 2px 12px;
}

.tag--s {
  font-size: 14px;
  padding: 2px 12px;
}

.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
}

.sides {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 12px;
  align-items: center;
}

.side {
  background: var(--surface);
  border-radius: var(--r);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-self: stretch;
  align-content: start;
}

.side h4 {
  font-size: 18px;
}

.kv {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 6px 12px;
  font-size: 16px;
}

.kv dt {
  font-weight: 700;
  color: var(--navy);
}

.arrow {
  display: grid;
  justify-items: center;
  font-size: 14px;
  color: var(--navy);
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.case {
  background: #fff;
  border: 1px solid var(--panel);
  border-radius: var(--r);
  overflow: hidden;
  display: grid;
  align-content: start;
}

.case img {
  width: 100%;
  aspect-ratio: 371/190;
  object-fit: cover;
}

.case__body {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.case h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
}

.case .kv {
  grid-template-columns: 80px 1fr;
  font-size: 16px;
  gap: 0;
}

.case .kv dt,
.case .kv dd {
  padding: 10px 0;
  border-top: 1px solid var(--panel);
}

.case .kv dt {
  font-weight: 400;
  font-size: 14px;
  line-height: 2;
}

.case .kv dd {
  font-weight: 700;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* FAQ */
.faq {
  max-width: 960px;
  margin: 48px auto 0;
  background: #fff;
  border-top: 1px solid var(--panel);
}

.faq details {
  border-bottom: 1px solid var(--panel);
}

.faq summary {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  gap: 12px;
  padding: 26px 28px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "Q";
  font-family: var(--latin);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--gold);
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-top: 8px;
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 14px;
}

.faq .a {
  padding: 0 76px 30px;
  white-space: pre-line;
}

.faq-more {
  display: none;
}

/* 末尾 */
.contact__list {
  max-width: 800px;
  margin: 48px auto 0;
}

.contact__list h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 16px;
}

.contact__list p {
  margin-top: 16px;
  font-size: 16px;
}

.contact__form {
  margin-top: 56px;
}

/* フッター */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 40px;
}

.footer__logo {
  width: 202px;
}

.footer dl {
  margin-top: 32px;
  border-top: 1px solid rgb(255, 255, 255, 0.3);
}

.footer dl > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255, 255, 255, 0.3);
}

.footer dt {
  font-weight: 700;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.footer__nav {
  display: flex;
  gap: 32px;
  font-weight: 700;
}

.footer__nav a {
  text-decoration: none;
}

.footer__cert {
  display: grid;
  gap: 12px;
}

.footer__cert span {
  font-size: 14px;
  border: 1px solid var(--gold);
  padding: 2px 12px;
  justify-self: start;
}

.footer__cert div {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.footer__cert img {
  height: 38px;
  width: auto;
}

.footer small {
  display: block;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgb(255, 255, 255, 0.3);
  font-family: var(--latin);
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* 追従CTA */
.sticky {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 660px;
  max-width: calc(100vw - 48px);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 32px rgb(11, 52, 97, 0.28);
  transform: translateY(140%);
  transition: transform 0.25s;
  visibility: hidden;
}

.sticky.is-on {
  transform: none;
  visibility: visible;
}

.sticky__band {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 6px 20px;
}

.sticky__body {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}

.sticky .tel-pill {
  background: var(--surface);
  flex: none;
}

/* ボタン文言は1行で見せる（カンプどおり。左右の余白を詰めて21px・10文字を収める） */
.sticky .btn {
  flex: 1;
  min-height: 76px;
  padding: 12px 8px;
  white-space: nowrap;
}

/* ============ SP・タブレット縦（1023px以下） ============ */
@media (max-width: 1023px) {
  body {
    font-size: 16px;
  }

  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  br.pc {
    display: none;
  }

  br.sp {
    display: inline;
  }

  :root {
    --pad: 16px;
  }

  .sec {
    padding: 56px 0;
  }

  .lead {
    font-size: 18px;
  }

  .hd {
    font-size: 26px;
    line-height: 44px;
  }

  .hl {
    padding: 4px 12px;
  }

  .btn {
    min-height: 56px;
    font-size: 18px;
    padding: 12px 16px;
  }

  /* ヘッダー */
  .header {
    position: static;
  }

  .header__in {
    padding: 12px 16px;
  }

  .header__logo img {
    width: 168px;
  }

  .header__nav,
  .header__tel,
  .header .btn {
    display: none;
  }

  /* アイキャッチ */
  .hero__in {
    padding: 40px 16px;
    gap: 20px;
  }

  .hero__eyebrow {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 48px;
  }

  .hero__lead {
    font-size: 16px;
    line-height: 1.8;
    background: var(--ink);
    color: #fff;
    padding: 10px 12px;
  }

  .hero__lead .hl {
    background: none;
    padding: 0;
  }

  .hero__cta {
    display: grid;
    width: 100%;
    gap: 16px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .tel-pill {
    padding: 14px 16px 14px 12px;
    gap: 10px;
    justify-content: center;
  }

  .tel-pill__label {
    font-size: 14px;
  }

  .tel-pill__no {
    font-size: 22px;
  }

  /* 実績 */
  .sec--track {
    padding: 40px 0 56px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--panel);
    border-radius: var(--r);
    overflow: hidden;
  }

  .stat {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--panel);
    padding: 14px 16px;
    grid-template-columns: 140px 1fr;
    gap: 2px 12px;
    align-items: center;
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .stat b {
    font-size: 22px;
    grid-row: span 2;
  }

  .stat strong {
    font-size: 16px;
  }

  /* 試算（SPはフォームの代わりに入口カード） */
  .est {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
  }

  .est .form {
    display: none;
  }

  .steps b {
    font-size: 16px;
  }

  .steps span {
    font-size: 14px;
  }

  .entry {
    display: grid;
    gap: 12px;
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: var(--shadow);
  }

  .entry__top {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .entry__top h3 {
    font-size: 18px;
    line-height: 1.5;
    margin-right: auto;
  }

  .entry .stepper__q {
    font-size: 16px;
  }

  .entry .choices,
  .stepper .choices {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .choice {
    padding: 18px 16px;
    gap: 6px;
  }

  .choice h4 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 16px;
  }

  .choice .sub {
    font-weight: 400;
    font-size: 14px;
  }

  .choice p {
    font-size: 14px;
  }

  .choice .btn {
    min-height: 48px;
  }

  .entry__note {
    font-size: 14px;
  }

  /* フォーム */
  .form {
    padding: 20px;
    gap: 16px;
  }

  .form__title {
    font-size: 22px;
  }

  .field > label,
  .field > .label {
    font-size: 16px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .row2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .consent {
    font-size: 16px;
  }

  .chips {
    gap: 8px;
  }

  .chips span {
    padding: 10px 16px;
  }

  /* 入力画面（シート） */
  .contact__form {
    margin: 0;
  }

  .stepper {
    position: fixed;
    inset: 0;
    z-index: 100;
    border-radius: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--ink);
    overflow: auto;
    display: none;
    gap: 0;
    box-shadow: none;
    align-content: start;
  }

  .stepper.is-open {
    display: grid;
  }

  .stepper__head {
    padding: 14px 16px 0;
    gap: 12px;
  }

  .stepper__top h3 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 18px;
  }

  .stepper__close {
    display: block;
  }

  .stepper__bar {
    background: var(--panel);
  }

  .stepper .panel.is-on {
    padding: 20px 20px 32px;
    gap: 20px;
  }

  .stepper .form {
    padding: 0;
  }

  .stepper .choice {
    border: 1px solid var(--mist);
  }

  .stepper__back {
    color: var(--slate);
    justify-self: center;
    font-weight: 400;
    font-size: 14px;
  }

  .stepper__foot {
    color: var(--navy);
  }

  body.is-locked {
    overflow: hidden;
  }

  /* 理由 */
  .reason {
    padding-top: 32px;
    margin-top: 48px;
    gap: 20px;
  }

  .reason__head {
    display: grid;
    gap: 8px;
  }

  .reason__no {
    font-size: 32px;
  }

  .reason__head h3 {
    font-size: 22px;
  }

  .topics,
  .cards3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic h4 {
    font-size: 22px;
  }

  .card {
    padding: 20px;
  }

  .card h4 {
    font-size: 18px;
  }

  .more > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--surface);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .more > summary::-webkit-details-marker {
    display: none;
  }

  .more > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
    margin: -4px 4px 0 0;
  }

  .more[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  .more > .more__body {
    display: grid;
    gap: 16px;
    margin-top: 16px;
  }

  .r1-sp {
    display: grid;
    gap: 16px;
  }

  .r1-sp h4 {
    font-size: 18px;
  }

  .channel {
    background: #fff;
    border: 1px solid var(--panel);
    border-radius: var(--r);
    padding: 16px;
    display: grid;
    gap: 8px;
  }

  .channel b {
    font-size: 16px;
  }

  .channel .big {
    font-family: var(--latin);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.3;
    color: var(--gold);
  }

  .channel small {
    font-size: 14px;
    color: var(--slate);
  }

  /* CTAユニット */
  .cta-unit {
    margin-top: 48px;
  }

  .cta-unit__body {
    display: grid;
    padding: 20px 16px;
    gap: 16px;
    justify-content: stretch;
  }

  .cta-unit__tel b {
    font-size: 32px;
  }

  /* 人物・事例（横スクロール） */
  .people,
  .cases {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 28px -16px 0;
    padding: 0 16px 8px;
    -webkit-overflow-scrolling: touch;
  }

  .person {
    flex: 0 0 300px;
    scroll-snap-align: center;
    padding: 20px;
  }

  .person h3 {
    font-size: 22px;
  }

  .person .catch {
    font-size: 18px;
  }

  .case {
    flex: 0 0 280px;
    scroll-snap-align: center;
  }

  .case h3 {
    font-size: 22px;
  }

  .swipe {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--navy);
    margin-top: 12px;
  }

  /* 比較（図の代わりに表） */
  .figs {
    display: none;
  }

  .cmp-sp {
    display: grid;
    gap: 12px;
    margin-top: 24px;
  }

  .quote {
    background: #fff;
    border: 1px solid var(--panel);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    gap: 6px;
  }

  .quote__top {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--slate);
  }

  .quote__top i {
    font-style: normal;
    color: #fff;
    background: var(--slate);
    border-radius: 999px;
    padding: 2px 10px;
  }

  .quote--us .quote__top i {
    background: var(--ink);
  }

  .quote b {
    color: var(--red);
  }

  .quote--us b {
    color: var(--ink);
  }

  .tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--panel);
    border-radius: var(--r);
    overflow: hidden;
    font-size: 14px;
    line-height: 1.8;
  }

  .tbl th,
  .tbl td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--panel);
    font-weight: 400;
  }

  .tbl tr:last-child > * {
    border-bottom: 0;
  }

  .tbl thead th:nth-child(1),
  .tbl tbody th {
    background: var(--surface);
    width: 100px;
  }

  .tbl thead th:nth-child(2) {
    background: var(--slate);
    color: #fff;
  }

  .tbl thead th:nth-child(3) {
    background: var(--ink);
    color: #fff;
  }

  .tbl td:nth-child(3) {
    background: var(--gold-tint);
  }

  .tbl .ng {
    color: var(--red);
  }

  .concl {
    font-weight: 700;
  }

  .concl--ng {
    color: var(--red);
  }

  .points {
    background: #fff;
    border-radius: var(--r);
    padding: 16px;
    display: grid;
    gap: 10px;
  }

  .points li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    font-size: 14px;
  }

  .points .points__head {
    grid-template-columns: 1fr;
  }

  .points li i {
    font-style: normal;
    font-family: var(--latin);
    letter-spacing: 0.06em;
    color: var(--gold);
  }

  /* 流れ（図の代わりにカード） */
  .proc-pc {
    display: none;
  }

  .proc-sp {
    display: grid;
    gap: 16px;
    margin-top: 20px;
  }

  .bar-us {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: var(--gold-tint);
    color: var(--ink);
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
  }

  .phase {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--panel);
    border-radius: var(--r);
    overflow: hidden;
  }

  .phase__head {
    background: var(--surface);
    padding: 12px 16px;
    display: grid;
    gap: 2px;
  }

  .phase__top {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--slate);
  }

  .phase__top i {
    font-style: normal;
    font-family: var(--latin);
    letter-spacing: 0.06em;
    color: var(--gold);
  }

  .phase__head b {
    font-size: 18px;
  }

  .phase__body {
    padding: 16px;
    display: grid;
    gap: 10px;
  }

  .fee {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: var(--gold-tint);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    align-items: center;
  }

  .fee b {
    font-size: 16px;
  }

  .fee--all {
    background: var(--ink);
    color: #fff;
  }

  .fee--all b {
    color: var(--gold);
  }

  .phase ul {
    display: grid;
    gap: 10px;
    margin-top: 10px;
  }

  .phase li {
    padding-left: 18px;
    position: relative;
  }

  .phase li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
  }

  .feetbl {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--panel);
    border-radius: var(--r);
    overflow: hidden;
  }

  .feetbl div {
    padding: 12px 16px;
    border-bottom: 1px solid var(--panel);
    display: grid;
    gap: 4px;
  }

  .feetbl div:last-child {
    border-bottom: 0;
  }

  .feetbl div:first-child {
    background: var(--gold-tint);
  }

  .feetbl small {
    font-size: 14px;
    color: var(--slate);
  }

  .feetbl b {
    font-size: 16px;
  }

  /* 事例 */
  .feature {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .feature > img {
    height: 220px;
  }

  .feature__body {
    padding: 20px;
    gap: 16px;
  }

  .feature h3 {
    font-size: 22px;
  }

  .sides {
    grid-template-columns: 1fr;
  }

  .arrow {
    grid-auto-flow: column;
    justify-content: center;
    gap: 8px;
  }

  /* FAQ（最初の5問だけ表示） */
  .faq {
    margin-top: 28px;
  }

  .faq summary {
    padding: 18px 16px;
  }

  .faq .a {
    padding: 0 16px 20px;
  }

  .faq[data-collapsed] details:nth-of-type(n + 6) {
    display: none;
  }

  .faq-more {
    display: flex;
    width: 100%;
    margin-top: 24px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: var(--r);
    background: #fff;
    font-weight: 700;
  }

  /* 末尾 */
  .contact__list {
    margin-top: 28px;
  }

  .contact__list h3 {
    font-size: 22px;
  }

  /* SPは番号と見出しだけ表示する（説明文のみ隠す。番号の span.n は残す） */
  .steps--line div > span {
    display: none;
  }

  .steps li {
    padding: 12px 0;
  }

  /* フッター */
  .footer {
    padding: 48px 0 130px;
  } /* 末尾で追従CTA（約106px）に隠れないよう下を空ける */
  .footer dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .footer__bottom {
    display: grid;
    gap: 24px;
  }

  .footer__nav {
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer__cert img {
    height: 34px;
  }

  /* 追従CTA */
  .sticky {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-radius: 0;
  }

  .sticky__band {
    font-size: 14px;
    padding: 4px 12px;
  }

  .sticky__body {
    padding: 8px 16px;
    gap: 8px;
  }

  .sticky .tel-pill {
    padding: 4px 14px 4px 8px;
    gap: 8px;
  }

  .sticky .tel-pill img {
    width: 36px;
    height: 36px;
  }

  .sticky .tel-pill__num {
    display: none;
  }

  .sticky .btn {
    min-height: 56px;
    font-size: 16px;
    padding: 8px;
    white-space: normal; /* 360px以下の端末では2行に折り返す */
  }
}

/* ヘッダー：1279px以下ではナビを畳む（電話とボタンを優先。1100〜1279pxで文字が折り返していた） */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__nav {
    display: none;
  }

  .header__tel {
    margin-left: auto;
  }

  .header .btn {
    padding: 12px 20px;
    white-space: nowrap;
  }

  .header__in {
    gap: 20px;
    padding: 16px 24px;
  }
}

/* ============ 狭いPC・タブレット横（1024〜1100px） ============ */
@media (min-width: 1024px) and (max-width: 1100px) {
  :root {
    --pad: 32px;
  }

  .header__nav {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 60px;
  }

  .hd {
    font-size: 30px;
    line-height: 50px;
  }

  .est {
    grid-template-columns: 1fr;
  }

  .people,
  .cases,
  .cards3,
  .topics,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .feature {
    grid-template-columns: 240px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
