.cm-wrap { max-width: 1000px; }

.cm-result h1 { text-wrap: balance; }
.cm-result .cm-copy { text-wrap: pretty; }

.cm-result { padding-block: clamp(48px, 7vw, 96px) clamp(44px, 6vw, 80px); }

.cm-intro {
  padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3.2vw, 42px);
}

.cm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.cm-hero-text .h-display { font-size: clamp(30px, 3.2vw, 46px); }
.cm-hero-text .cm-copy { margin-top: 20px; }

.cm-photo {
  position: relative;
  isolation: isolate;
}

.cm-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: clamp(-86px, -6vw, -53px);
  inset-inline-start: -3%;
  width: 108%;
  aspect-ratio: 1000 / 333;
  transform: rotate(9deg);
  background: url("../img/brush/spectrum-arc-1000.webp") center / contain no-repeat;
  pointer-events: none;
}

.cm-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 10% center;
}

@media (max-width: 760px) {
  .cm-hero-grid { display: block; }
  .cm-hero-text .h-display { font-size: 31px; }

  .cm-photo {
    --cm-brush-rise: clamp(44px, 15vw, 72px);
    margin-block-start: calc(var(--cm-brush-rise) + 14px);
    margin-inline-end: -8px;
  }

  .cm-photo::before {
    inset-block-start: calc(-1 * var(--cm-brush-rise));
    inset-inline-start: 0;
    width: 100%;
  }

  .cm-photo img {
    aspect-ratio: 2 / 1;
    object-position: center 10%;
  }
}

.cm-copy {
  max-width: 44em;
  margin-top: clamp(20px, 3vw, 32px);
  color: var(--body);
}

.cm-intro .subpage-prose {
  text-align: start;
  word-break: auto-phrase;
}

.cm-copy p + p { margin-top: .85em; }

.cm-apply {
  --cm-form-width: 760px;
  position: relative;
  isolation: isolate;
  padding-block-end: clamp(56px, 8vw, 104px);
}

.cm-apply::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: calc(var(--heading-h2-size) * .7) 0;
  inset-inline: 0 clamp(8px, calc((100% - var(--cm-form-width)) / 2 - 12px), 72px);
  border-start-end-radius: clamp(24px, 5vw, 64px);
  background: var(--paper);
}

.cm-apply h2,
.cm-form-lead,
.cm-privacy { text-align: center; }

.cm-form-lead { margin-top: clamp(14px, 2vw, 24px); color: var(--body); }

.cm-form {
  display: grid;
  gap: clamp(24px, 3vw, 34px);
  max-width: var(--cm-form-width);
  margin-top: clamp(16px, 2.5vw, 28px);
  margin-inline: auto;
}

.cm-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cm-fieldset legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
}

.cm-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 24px);
}

.cm-field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.cm-field label { font-weight: 700; }
.cm-fieldset .cm-field label { font-weight: 500; }

.cm-field :is(input, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #718096;
  border-radius: 6px;
  background: var(--white);
  color: var(--body);
  font: inherit;
  line-height: 1.55;
}

.cm-field textarea { resize: vertical; }

.cm-help {
  word-break: auto-phrase;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.cm-help a { color: var(--navy); text-underline-offset: .18em; }

.cm-form :is(input, textarea, a):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.cm-result .btn-primary { margin-top: 20px; }

.cm-submit {
  display: grid;
  gap: 20px;
}

.cm-submit .btn-primary {
  justify-self: end;
  width: auto;
  max-width: 100%;
  border: 0;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
}

/* ===== Intro：面談の概要（形式・所要時間・日程） ===== */
.cm-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: clamp(14px, 2vw, 22px);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

.cm-jump:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.cm-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(36px, 4.5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.cm-spec__item {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 30px);
}

.cm-spec__item + .cm-spec__item { border-inline-start: 1px solid var(--line); }

.cm-spec dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
}

.cm-spec dd { display: grid; gap: 4px; }

.cm-spec dd strong {
  color: var(--ink);
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.4;
}

.cm-spec dd span {
  word-break: auto-phrase;
  color: var(--body);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== 本文Section ===== */
.cm-sec {
  --cm-sec-pad: clamp(56px, 7vw, 96px);
  padding-block: var(--cm-sec-pad);
}

.cm-sec--line .cm-wrap { position: relative; }

.cm-sec--line .cm-wrap::before {
  content: "";
  position: absolute;
  inset-block-start: calc(-1 * var(--cm-sec-pad));
  inset-inline: var(--pad);
  border-top: 1px solid var(--line);
}

.cm-h {
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

.cm-h3 {
  margin-top: clamp(40px, 4.5vw, 56px);
  color: var(--ink);
  font-size: var(--heading-h4-size);
  line-height: 1.5;
  text-align: center;
}

.cm-premise {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(28px, 3.5vw, 44px);
}

.cm-premise li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 32px);
  border-top: 3px solid var(--gold);
  background: var(--paper);
}

.cm-premise strong {
  color: var(--ink);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.45;
}

.cm-premise span { color: var(--body); line-height: 1.85; }

.cm-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px clamp(16px, 2.4vw, 28px);
  max-width: 840px;
  margin: clamp(18px, 2.4vw, 26px) auto 0;
}

.cm-topics li {
  position: relative;
  padding: 14px 18px 14px 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--body);
  line-height: 1.7;
}

.cm-topics li::before {
  content: "";
  position: absolute;
  inset-block-start: calc(14px + .85em - 7px);
  inset-inline-start: 19px;
  width: 15px;
  height: 8px;
  border-inline-start: 2.5px solid var(--gold);
  border-block-end: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* 当日の相手と進み方：見出し左・本文右 */
.cm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.cm-split__h { text-align: start; }
.cm-split__body { color: var(--body); }
.cm-split__body p + p { margin-top: .85em; }

/* お申し込み後の流れ（entry #flow と同じ番号付きステップ） */
.cm-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin: clamp(36px, 4.4vw, 56px) auto 0;
}

.cm-steps::before {
  content: "";
  position: absolute;
  inset-block-start: 36px;
  inset-inline: calc(100% / 6);
  height: 2px;
  background: var(--line);
}

.cm-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(10px, 1.6vw, 20px);
  text-align: center;
}

.cm-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block-start: 31px;
  inset-inline-end: -6px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  transform: rotate(45deg);
}

.cm-steps__no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  box-shadow: 0 0 0 8px var(--white);
}

.cm-steps li:last-child .cm-steps__no { background: var(--gold); color: var(--navy); }

.cm-steps h3 {
  margin-top: 22px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.5;
}

.cm-steps p {
  margin-top: 8px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.8;
}

main .cm-steps p.subpage-prose { text-align: center; text-align-last: center; }

.cm-steps strong {
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(216, 180, 106, .45) 62%);
}

/* よくある質問（開閉式） */
.cm-faq {
  max-width: 840px;
  margin: clamp(28px, 3.5vw, 44px) auto 0;
}

.cm-faq__item { border-bottom: 1px solid var(--line); }
.cm-faq__item:first-child { border-top: 1px solid var(--line); }

.cm-faq__item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  word-break: auto-phrase;
  list-style: none;
  cursor: pointer;
}

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

.cm-faq__item summary::after {
  content: "";
  justify-self: center;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}

.cm-faq__item[open] summary::after { transform: translateY(3px) rotate(225deg); }
.cm-faq__item summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.cm-faq__q {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
}

.cm-faq__a {
  padding: 0 36px 22px 52px;
  color: var(--body);
  line-height: 1.85;
}

/* ===== フォームの記入例・送信後の見通し ===== */
.cm-help p + p { margin-top: 6px; }

.cm-example {
  padding: 10px 14px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
  color: var(--body);
}

.cm-example__label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.cm-submit__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.cm-after {
  flex: 1 1 280px;
  word-break: auto-phrase;
  max-width: 380px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.75;
}

.cm-after__label {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

@media (max-width: 760px) {
  .cm-spec { grid-template-columns: minmax(0, 1fr); margin-top: 32px; border-radius: 12px; }

  .cm-spec__item {
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .cm-spec__item + .cm-spec__item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .cm-spec dt { padding-top: .25em; }
  .cm-spec dd strong { font-size: 18px; }
  .cm-spec dd span { font-size: 13.5px; }

  .cm-premise,
  .cm-topics { grid-template-columns: minmax(0, 1fr); }
  .cm-h3 { font-size: 17px; }

  .cm-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cm-split__h { text-align: center; }

  .cm-steps { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-top: 32px; }
  .cm-steps::before { inset: 30px auto 60px 29px; width: 2px; height: auto; }

  .cm-steps li {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    justify-items: start;
    padding: 0 0 26px;
    text-align: start;
  }

  .cm-steps li:last-child { padding-bottom: 0; }
  .cm-steps li > :not(.cm-steps__no) { grid-column: 2; }
  .cm-steps li:not(:last-child)::after { display: none; }

  .cm-steps__no {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 60px;
    height: 60px;
    font-size: 12px;
    box-shadow: 0 0 0 6px var(--white);
  }

  .cm-steps h3 { margin-top: 6px; font-size: 17px; }
  .cm-steps p { margin-top: 4px; font-size: 14.5px; }
  main .cm-steps p.subpage-prose { text-align: justify; text-align-last: start; }

  .cm-faq__item summary { gap: 12px; padding: 14px 0; font-size: 16px; }
  .cm-faq__q { width: 28px; height: 28px; font-size: 13px; }
  .cm-faq__a { padding: 0 0 20px 40px; font-size: 15px; }

  .cm-submit__row { flex-direction: column; align-items: stretch; }
  .cm-after { flex-basis: auto; max-width: none; }
  .cm-submit .btn-primary { min-width: 0; width: 100%; }
}
