@charset "UTF-8";

/* ==========================================================
   M&A転職 トップ
   画面幅：767px以下＝スマホ、768px以上＝タブレット、1024px以上＝PC
   ほかの切り替え：560px以上（中間の幅）、389px以下（小さいスマホ）、359px以下（とても狭い画面）、299px以下（とても狭い表示。ページを拡大したときも当たる）
   色：紺は構造（見出し・罫・濃い面）、薄い青灰は面。赤は申込のボタンと「全件面談」の1語だけ
   ========================================================== */

/* ---------- 基本 ---------- */
:root {
  /* 色は役割で持つ（見出しの文字・濃い面・強調・申込・薄い面）。共通の配色はここで持つ。FV だけは IFA転職に合わせた色を FV の節に直接書く */
  --c-ink: #1d232b;
  --c-sub: #556070;
  --c-heading: #0f2747;
  --c-accent: #c0141c;
  --c-cta: #c0141c;
  --c-cta-dark: #9c1016;
  --c-surface: #0f2747;
  --c-surface-deep: #0a1b33;
  --c-panel: #eef2f6;
  --c-panel-strong: #e1e7ef;
  --c-line: #d9dfe7;
  --c-white: #fff;
  /* 図とアイコン：アイコンの線、要の線と主の棒、比べる相手の棒 */
  --c-icon: #0f2747;
  --c-figure: #2c64ad;
  --c-figure-sub: #8796ab;
  --c-icon-accent: var(--c-figure);
  /* 段の間の矢印と、目次の下向きの矢印（アイコンと同じ線の形を mask で描く） */
  --mask-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --mask-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v13M6.5 12.5 12 18l5.5-5.5'/%3E%3C/svg%3E");
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:
    "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  --latin: "EB Garamond", "Noto Serif JP", serif;
  /* 書体の役割：明朝は主に、最初の画面の主文・節の見出し（h2）・見せ場の見出し（「もっと稼ぎたい」・紺の帯・お約束・最後の申込）・「もっと稼ぎたい」の引用文・フッターの名前に使う。ほかの小見出し（h3）・名前・表の数字はゴシック */
  --font-display: var(--serif);
  --fw-display: 600;
  --font-title: var(--serif);
  --fw-title: 600;
  --font-heading: var(--sans);
  --fw-heading: 700;
  --fs-display: 1.875rem;
  --fs-hero: var(--fs-display); /* FV の見出し（1024px 以上は 48px） */
  --fs-h2: 1.5rem;
  --fs-h3: 1.25rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-fig: 2.25rem;
  --fs-mark: 1.25rem; /* Q・A・番号・フッターの名前 */
  --gutter: 20px;
  --sec-space: 64px;
  --radius-btn: 4px;
  --radius-tag: 2px;
}

@media (min-width: 768px) {
  :root {
    --fs-display: 2.625rem;
    --fs-h2: 2rem;
    --fs-h3: 1.375rem;
    --fs-fig: 2.75rem;
    --gutter: 32px;
    --sec-space: 96px;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-hero: 3rem;
    --fs-h2: 2.25rem;
    --fs-fig: 3.25rem;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  background: var(--c-white);
  line-break: strict;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
dt,
.target__who {
  text-wrap: balance;
}

/* 見出しと札・ボタンは約物と仮名を詰める（本文はベタ組み） */
h1,
h2,
h3,
dt,
.target__who,
.fv__copy,
.worry__quote,
.promise__lead,
.closing__eyebrow,
.guide-toc a,
.job__row dd,
.cta__btn a,
.job__btn a {
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--c-heading);
  outline-offset: 3px;
}

strong {
  font-weight: 700;
}

em {
  font-style: normal;
}

table {
  border-collapse: collapse;
}

[id] {
  scroll-margin-top: 16px;
}

/* 見出し・ラベルは原則として文節（<wbr>）で折る（収まらないときだけ任意の位置で折る） */
.ph,
.cta__lead,
.cta__label,
.cta__sub,
.cta__note,
.job__btn a,
.qa-defs dt {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 文字を大きく拡大して、ページの幅が文字18字ぶんより狭いとき（100% では最も狭い 298px でも 18.6em）は、見出し・ラベルの文節で折る指定をやめて約物の決まりで折る。
   文節が行より長いと任意の位置で折られ、行頭の「？」「。」や1字だけの行ができるため。
   申込ボタンの部品と、まとめて送る .keep・肩書き（.promise__prof-sub）は、文節のままのほうが崩れないので除く */
.adlp-c-container {
  container: page / inline-size;
}

@container page (max-width: 18em) {
  .ph:not(.keep, .promise__prof-sub),
  .qa-defs dt {
    word-break: normal;
  }
}

.nowrap {
  white-space: nowrap;
}

/* まとめて次の行へ送る。行の幅より長いとき（文字の拡大など）だけ、中の文節（wbr）で折る */
.keep {
  display: inline-block;
}

/* 画面には出さず、読み上げと検索にだけ渡す文字 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

kana-w {
  display: contents;
  white-space: nowrap;
}

/* 線画のアイコン（24の格子・角を丸める。強調する線だけ --c-icon-accent）。画面上の線は 1.75px にそろえる（28px は線1.5、24px は 1.75）。sprite は本文の先頭に1つだけ置き、<use> で呼ぶ */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--c-icon);
}

.inner {
  width: 100%;
  max-width: calc(1040px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.inner--narrow {
  max-width: calc(640px + var(--gutter) * 2);
}

/* ---------- 節の見出し ---------- */
.sec-head {
  margin-bottom: 32px;
  text-align: center;
}

.sec-head__label {
  font-family: var(--latin);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-sub);
}

/* 節の見出し（明朝）：節の見出し・「もっと稼ぎたい」・紺の帯・最後の申込で共通 */
.sec-head__ttl,
.worry__ttl,
.service__ttl,
.closing__ttl {
  font-family: var(--font-title);
  font-size: var(--fs-h2);
  font-weight: var(--fw-title);
  line-height: 1.5;
}

.sec-head__ttl {
  margin-top: 8px;
  color: var(--c-heading);
}

.sec-head__lead {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: left;
}

.sec-head__note {
  max-width: 640px;
  margin: 4px auto 0;
  font-size: var(--fs-small);
  color: var(--c-sub);
  text-align: left;
}

@media (min-width: 768px) {
  .sec-head {
    margin-bottom: 48px;
  }

  .sec13 .sec-head__lead,
  .sec13 .sec-head__note {
    max-width: 720px;
    text-align: center;
  }
}

/* ---------- 申込欄（上に1行・ボタン・下に2行） ---------- */
.cta {
  margin-top: 32px;
  text-align: center;
}

.cta__lead {
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-heading);
}

.cta__btn {
  max-width: 480px;
  margin: 8px auto 0;
  container: cta-button / inline-size;
}

.cta__btn a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px 12px;
  min-height: 64px;
  padding: 12px 40px;
  border-radius: var(--radius-btn);
  background: var(--c-cta);
  color: var(--c-white);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta__btn a::after,
.job__btn a::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) {
  .cta__btn a:hover {
    background: var(--c-cta-dark);
  }
}

.cta__tag {
  flex: none;
  padding: 1px 8px;
  border-radius: var(--radius-tag);
  background: var(--c-white);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-cta);
}

.cta__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

/* 字間は em なので、親のリンク（16px）からの継承ではなく文言の大きさで付け直す */
.cta__label {
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.cta__sub {
  margin-top: 2px;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.cta__note {
  margin-top: 12px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--c-sub);
}

.cta--dark .cta__lead,
.cta--dark .cta__note {
  color: var(--c-white);
}

.cta--dark .cta__btn a:focus-visible {
  outline-color: var(--c-white);
}

@media (min-width: 768px) {
  .cta__btn a {
    min-height: 72px;
    padding: 12px 48px;
  }

  .cta__btn a::after {
    right: 22px;
  }

  .cta__label {
    font-size: var(--fs-h3);
  }
}

/* ---------- 運営の帯 ---------- */
.site-head {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-white);
}

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-head__logo img {
  width: auto;
  height: 28px;
}

.site-head__by {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-sub);
}

@media (min-width: 768px) {
  .site-head__inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-head__logo img {
    height: 34px;
  }
}

/* ---------- 最初の画面 ---------- */
/* IFA転職（ifa-tenshoku.com）の FV と同じ組み方：紺のグラデーションに斜めの光の帯、右に松岡の写真（足もとを紺に沈め、経歴を重ねる）、
   左に明朝の見出しと、角に鉤の付いた枠の打ち出し。申込欄は白の地で、吹き出しの付いた札の下に赤のボタン */
.fv {
  background: var(--c-white);
}

.fv__hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #1c3a68 0%, #13294b 42%, #0b1b33 100%);
  color: var(--c-white);
}

.fv__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent 0 58%,
      rgba(255, 255, 255, 0.05) 58% 70%,
      transparent 70%
    ),
    linear-gradient(
      105deg,
      transparent 0 66%,
      rgba(159, 187, 224, 0.08) 66% 74%,
      transparent 74%
    );
  pointer-events: none;
}

.fv__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  grid-template-areas:
    "lead lead"
    "title title"
    "badge person"
    "prof prof";
  gap: 0 8px;
}

.fv__copy {
  display: contents;
}

.fv__lead {
  grid-area: lead;
  padding-top: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: #d3dbe6;
}

/* 前は半角の空き（行頭に来たときは消える）、後ろは 4px */
.fv__lead strong {
  margin: 0 4px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-white);
  white-space: nowrap;
}

.fv__ttl {
  grid-area: title;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: 1;
}

.fv__ttl-text {
  display: block;
  font-size: var(--fs-display);
  line-height: 1.38;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* 打ち出し：角に鉤の付いた枠 */
.fv__badge {
  grid-area: badge;
  position: relative;
  align-self: center;
  margin: 14px 0;
  padding: 14px 10px 16px;
  border: 1px solid rgba(159, 187, 224, 0.45);
  background: rgba(11, 27, 51, 0.55);
  font-family: var(--font-display);
  text-align: center;
}

.fv__badge::before,
.fv__badge::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #9fbbe0;
}

.fv__badge::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}

.fv__badge::after {
  right: -2px;
  bottom: -2px;
  border-top: 0;
  border-left: 0;
}

.fv__badge-label {
  display: inline-block;
  padding: 3px 8px;
  background: #e9f0f8;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #13294b;
}

.fv__badge-main {
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

/* 札の大きな字は .ph（keep-all）で語を保つ。文字を拡大して札の幅を超えるときだけ「テレアポ」も折って、欠けを防ぐ */
.fv__badge-main kana-w {
  white-space: normal;
}

.fv__badge-sub {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.6;
}

.fv__person {
  display: contents;
}

.fv__person picture {
  grid-area: person;
  margin-top: 10px;
}

.fv__person img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: 50% 0;
}

/* 経歴：スマホは写真の下の帯に置き、まとまりごとに折り返す */
.fv__prof {
  grid-area: prof;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter);
  background: rgba(11, 27, 51, 0.6);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.fv__prof br {
  display: none;
}

.fv__prof > span {
  margin-right: 0.5em;
}

.fv__name {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-heading);
  white-space: nowrap;
}

/* 申込欄：白の地。上の1行は吹き出しの付いた札 */
.fv__cta {
  margin-top: 0;
  padding: 18px var(--gutter) 40px;
}

.fv__cta .cta__lead {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 18px;
  background: #e9f0f8;
  letter-spacing: 0.06em;
  color: #13294b;
}

.fv__cta .cta__lead::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #e9f0f8;
  border-bottom: 0;
}

/* タブレット・PC：左に文字、右に写真。経歴は写真の左下に重ね、足もとを紺に沈める */
@media (min-width: 768px) {
  .fv__grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-areas: none;
    align-items: end;
    gap: 32px;
    min-height: 460px;
  }

  .fv__copy {
    display: block;
    padding: 48px 0;
  }

  .fv__lead {
    padding-top: 0;
    font-size: var(--fs-lead);
  }

  .fv__lead strong {
    font-size: 1.75rem;
  }

  .fv__ttl {
    margin: 10px 0 32px;
  }

  .fv__ttl-text {
    font-size: var(--fs-hero);
  }

  .fv__badge {
    display: inline-block;
    margin: 0;
    padding: 22px 32px 24px;
  }

  .fv__badge-label {
    padding: 4px 16px;
  }

  .fv__badge-main {
    margin-top: 12px;
    font-size: 2.25rem;
  }

  .fv__badge-sub {
    font-size: var(--fs-lead);
  }

  .fv__person {
    position: relative;
    display: block;
    align-self: end;
    padding-top: 32px;
  }

  .fv__person picture {
    display: block;
    margin-top: 0;
  }

  .fv__person img {
    max-width: 320px;
    height: auto;
    margin-left: auto;
    object-fit: initial;
  }

  .fv__person::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(rgba(11, 27, 51, 0), rgba(11, 27, 51, 0.9));
    pointer-events: none;
  }

  .fv__prof {
    position: absolute;
    left: 0;
    bottom: 22px;
    z-index: 1;
    margin: 0;
    padding: 0;
    background: none;
  }

  .fv__prof br {
    display: inline;
  }

  .fv__prof > span {
    margin-right: 0;
  }

  .fv__name {
    font-size: var(--fs-lead);
  }

  .fv__cta {
    padding: 40px var(--gutter) 48px;
  }

  .fv__cta .cta__note {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .fv__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

/* 画面の高さが低い PC：申込ボタンを最初の画面に入れる */
@media (min-width: 768px) and (max-height: 820px) {
  .fv__grid {
    min-height: 0;
  }

  .fv__copy {
    padding: 24px 0;
  }

  .fv__ttl {
    margin-bottom: 20px;
  }

  .fv__person {
    padding-top: 12px;
  }

  .fv__person img {
    width: auto;
    max-height: 380px;
  }

  .fv__cta {
    padding-top: 24px;
  }
}

/* ---------- 動画の帯 ---------- */
/* YouTube の取材動画：紺の FV のすぐ下の薄い面の帯 */
.video {
  padding: 40px 0 32px;
  background: var(--c-panel);
  color: var(--c-heading);
}

.video__label {
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-sub);
  text-align: center;
}

.video__ttl {
  margin-top: 4px;
  font-family: var(--font-title);
  font-size: var(--fs-h3);
  font-weight: var(--fw-title);
  line-height: 1.6;
  text-align: center;
}

.video__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 648px;
  margin: 24px auto 0;
}

.video__list a {
  display: block;
  overflow: hidden;
}

.video__list img {
  width: 100%;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .video__list a:hover img {
    opacity: 0.85;
  }
}

.video__more {
  margin-top: 12px;
  text-align: center;
}

.video__more a {
  display: inline-block;
  padding: 12px 8px;
  font-weight: 700;
  color: var(--c-heading);
  text-underline-offset: 4px;
}

@media (min-width: 768px) {
  .video__list {
    max-width: 656px;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .video__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1040px;
  }
}

/* ---------- こんな方 ---------- */
.sec05 {
  padding-top: var(--sec-space);
}

/* 6つを薄い面の1枚にまとめ、罫で区切る（1行目の上の罫は面の外に出して見せない） */
.target {
  overflow: hidden;
  padding: 0 16px;
  background: var(--c-panel);
}

.target__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: start;
  column-gap: 12px;
  margin-top: -1px;
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
}

.target__icon,
.flow__icon {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
}

.target__who {
  grid-column: 2;
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-heading);
}

.target__what {
  grid-column: 2;
  margin-top: 4px;
}

@media not all and (min-width: 560px) {
  .target__icon {
    grid-row: 1;
  }

  .target__what {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
}

@media (min-width: 560px) {
  .target {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    padding: 0 24px;
  }

  .target__item {
    padding: 24px 0;
  }
}

@media (min-width: 1024px) {
  .target {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
    padding: 0 32px;
  }
}

/* 「もっと稼ぎたい」への答えと、よくある不安 */
.worry {
  margin-top: var(--sec-space);
  padding: var(--sec-space) 0;
  background: var(--c-panel);
}

.worry__ttl {
  color: var(--c-heading);
  text-align: center;
}

.worry__ttl-key {
  display: inline-block;
}

.worry__txt {
  max-width: 640px;
  margin: 24px auto 0;
}

.worry__txt > p + p {
  margin-top: 16px;
}

/* 段落の中の要の一文だけを、上下の罫で挟んだ明朝の引用にする */
.worry__txt .worry__quote {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-title);
  font-size: var(--fs-h3);
  font-weight: var(--fw-title);
  line-height: 1.6;
  color: var(--c-heading);
}

/* 給与の決まり方のちがい（イメージ）：左右に小さな棒の図。金額の目盛りは持たない */
.paycmp {
  container-type: inline-size;
  margin-top: 24px;
  padding: 16px;
  background: var(--c-white);
}

.paycmp__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

/* 左右の札・棒・横軸・説明・凡例の高さをそろえる（subgrid の無い環境では、札の行数が違うときだけ棒の位置がずれる） */
.paycmp__col {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  min-width: 0;
}

.paycmp__who {
  margin-bottom: 8px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-sub);
}

.paycmp__chart {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--c-line);
}

.paycmp__base {
  fill: var(--c-figure-sub);
}

.paycmp__inc {
  fill: var(--c-figure);
}

.paycmp__axis {
  margin-top: 4px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-sub);
}

.paycmp__ttl {
  margin-top: 8px;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-heading);
}

.paycmp__legend {
  display: flex;
  align-self: start;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--c-sub);
}

.paycmp__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.paycmp__key {
  width: 12px;
  height: 12px;
  background: var(--c-figure-sub);
}

.paycmp__key--inc {
  background: var(--c-figure);
}

@container (max-width: 15em) {
  .paycmp__cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.worry__illust {
  display: block;
  max-width: 280px;
  margin: 24px auto 0;
}

.worry__note {
  margin-top: 16px;
  font-weight: 700;
  color: var(--c-heading);
  text-align: center;
}

@media (min-width: 768px) {
  .worry__txt {
    margin-top: 32px;
  }

  .worry__illust {
    max-width: 360px;
  }
}

/* 面談でお伝えすること（紺の帯） */
.service {
  --c-icon: var(--c-white);
  --c-icon-accent: var(--c-white);
  padding: var(--sec-space) 0;
  background: var(--c-surface);
  color: var(--c-white);
}

.service__ttl {
  text-align: center;
}

.service__list {
  max-width: 640px;
  margin: 24px auto 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.service__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.service__icon {
  width: 28px;
  height: 28px;
  margin-top: -1px;
}

.service__txt {
  line-height: 1.6;
}

.service__free {
  max-width: 640px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

@media (min-width: 768px) {
  .service__list {
    margin-top: 32px;
  }
}

/* ---------- 選ばれる理由 ---------- */
.sec06 {
  padding: var(--sec-space) 0;
}

.reason {
  display: grid;
  gap: var(--sec-space);
  container: reason / inline-size;
}

/* 一覧が文字10字ぶんより狭いとき（大きな文字の拡大）は、長いカタカナの語も、行の幅を超えるときだけ折る */
@container reason (max-width: 10em) {
  .reason kana-w {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* スマホの写真は左右を画面の端まで出す */
.reason__photo {
  display: block;
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
}

.reason__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
}

.reason__body {
  margin-top: 24px;
}

.reason__num {
  font-family: var(--latin);
  font-size: var(--fs-fig);
  font-weight: 500;
  line-height: 1;
  color: var(--c-heading);
}

.reason__ttl {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: 1.5;
  color: var(--c-heading);
}

.reason__txt {
  margin-top: 16px;
}

.reason__point {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-heading);
}

@media (min-width: 768px) {
  .reason__item {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 48px;
  }

  .reason__item:nth-child(even) {
    grid-template-columns: 7fr 5fr;
  }

  .reason__item:nth-child(even) .reason__photo {
    order: 2;
  }

  .reason__photo {
    margin: 0;
  }

  .reason__photo img {
    aspect-ratio: 4 / 3;
  }

  .reason__body {
    margin-top: 0;
  }

  .reason__ttl {
    margin-top: 16px;
  }
}

/* ---------- お約束 ---------- */
.sec07 {
  overflow: hidden;
  padding-top: var(--sec-space);
  background: var(--c-panel);
}

/* スマホは「見出し｜写真」を上の段、約束文を全幅の下の段に。名前は写真の下端にそろえる */
.promise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  grid-template-areas:
    "label photo"
    "ttl photo"
    "prof photo"
    "lead lead";
  grid-template-rows: auto auto 1fr auto;
  column-gap: 16px;
}

.promise__body {
  display: contents;
}

.promise .sec-head__label {
  grid-area: label;
  align-self: end;
}

.promise__ttl {
  grid-area: ttl;
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: var(--fs-display);
  font-weight: var(--fw-title);
  line-height: 1.3;
  color: var(--c-heading);
  word-break: keep-all;
}

.promise__prof {
  grid-area: prof;
  align-self: end;
  padding-bottom: 12px;
  line-height: 1.4;
}

.promise__prof-sub {
  display: block;
  font-size: var(--fs-small);
  color: var(--c-sub);
}

.promise__prof-name {
  display: block;
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: var(--fs-lead);
  font-weight: var(--fw-heading);
  color: var(--c-heading);
}

.promise__lead {
  grid-area: lead;
  margin-top: 24px;
  font-family: var(--font-title);
  font-size: var(--fs-h3);
  font-weight: var(--fw-title);
  line-height: 1.7;
}

.promise__lead em {
  color: var(--c-accent);
}

/* 写真の後ろの薄い面（スマホは右の画面の端まで、PC は本文の右端まで） */
.promise__photo {
  grid-area: photo;
  position: relative;
  display: block;
  align-self: end;
  margin-right: calc(var(--gutter) * -1);
}

.promise__photo::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 0;
  bottom: 0;
  height: 58%;
  background: var(--c-panel-strong);
}

.promise__photo img {
  position: relative;
}

/* 本文の末尾にある元の <style> の .timerex-area（margin: 2em auto）の上下の余白を消すための詳細度。max-width: 800px と左右の auto は元のまま効く */
.adlp-c-main .sec07 .timerex-area {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 var(--gutter) var(--sec-space);
}

@media (min-width: 768px) {
  .promise {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "label photo"
      "ttl photo"
      "lead photo"
      "prof photo";
    grid-template-rows: auto auto auto 1fr;
    column-gap: 40px;
  }

  .promise::after {
    content: "";
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 0;
    height: 1px;
    background: var(--c-line);
  }

  .promise__ttl {
    font-size: var(--fs-h2);
  }

  .promise__lead {
    margin-top: 16px;
  }

  .promise__prof {
    padding-top: 24px;
    padding-bottom: 48px;
    align-self: start;
  }

  .promise__photo {
    margin-right: 0;
  }

  .promise__photo::before {
    left: 12%;
    height: 62%;
  }

  .sec07 .cta {
    margin-top: 48px;
  }
}

/* ---------- 求人例 ---------- */
.sec13 {
  padding: var(--sec-space) 0;
}

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

.job__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-white);
}

.job__for {
  padding: 12px 24px;
  background: var(--c-surface);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-white);
}

.job__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.job__ttl {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: 1.6;
  color: var(--c-heading);
}

.job__spec {
  margin-top: 16px;
  border-top: 1px solid var(--c-line);
}

.job__row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.6;
}

.job__row dt {
  flex: 0 0 5.5em;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-sub);
}

.job__row dd {
  flex: 1 1 8em;
  min-width: 0;
  font-weight: 700;
  text-wrap: wrap;
}

.job__btn {
  margin-top: auto;
  padding-top: 24px;
}

.job__btn a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 40px;
  border: 2px solid var(--c-cta);
  border-radius: var(--radius-btn);
  background: var(--c-white);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-cta);
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

@media (hover: hover) {
  .job__btn a:hover {
    background: var(--c-cta);
    color: var(--c-white);
  }
}

@media (min-width: 768px) {
  .job {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job__ttl {
    min-height: 3.2em;
  }
}

/* ---------- ご利用の流れ ---------- */
.sec08 {
  padding: var(--sec-space) 0;
  background: var(--c-panel);
}

.flow {
  display: grid;
  gap: 48px;
}

.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  column-gap: 12px;
}

/* 次の段への矢印（スマホはアイコンの軸に下向き、PCは右向き） */
.flow__item + .flow__item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -32px;
  width: 16px;
  height: 16px;
  background: var(--c-icon);
  -webkit-mask: var(--mask-chevron-down) center / contain no-repeat;
  mask: var(--mask-chevron-down) center / contain no-repeat;
  transform: translateX(-50%);
}

.flow__step,
.flow__ttl {
  grid-column: 2;
}

.flow__step {
  font-family: var(--latin);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-heading);
}

.flow__ttl {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: 1.5;
  color: var(--c-heading);
}

.flow__txt {
  grid-column: 2;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .flow {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px;
    max-width: none;
    margin: 0;
  }

  .flow__item + .flow__item::before {
    left: -40px;
    top: 18px;
    transform: rotate(-90deg);
  }
}

/* ---------- 最後の申込欄 ---------- */
.closing {
  background: var(--c-surface);
}

.closing__photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
}

.closing__panel {
  padding: 32px var(--gutter) var(--sec-space);
}

.closing__eyebrow {
  margin-bottom: 8px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.closing__ttl {
  color: var(--c-white);
}

.closing__lead {
  margin-top: 24px;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: var(--fs-lead);
  font-weight: var(--fw-heading);
  line-height: 1.6;
  color: var(--c-white);
}

.closing__txt {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
}

/* 申込欄は紺の面の中に置く（白地に切り離さない） */
@media (min-width: 768px) {
  /* 写真の列は幅の5/12、690px で止める */
  .closing {
    display: grid;
    grid-template-columns: min(41.667%, 690px) minmax(0, 1fr);
    align-items: stretch;
  }

  .closing__photo img {
    height: 100%;
    min-height: 360px;
    object-position: 25% 20%;
  }

  .closing__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 32px;
  }

  .closing-cta .cta {
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .closing__photo img {
    object-position: center 20%;
  }

  .closing__panel {
    padding: 64px 48px;
  }
}

/* ---------- よくある質問 ---------- */
.sec10 {
  padding: var(--sec-space) 0;
  background: var(--c-panel);
}

.faq {
  border: 1px solid var(--c-line);
  background: var(--c-white);
}

.faq__item {
  cursor: pointer;
}

/* 問いの button は見た目を持たない。押すと外側の .js-acc-trigger（index.js）が開閉する */
.faq__btn {
  all: unset;
  display: block;
  cursor: pointer;
}

.faq__btn:focus-visible {
  outline: 3px solid var(--c-heading);
  outline-offset: 4px;
}

/* 開いている間は矢印を上向きに（index.js の slideToggle は、閉じると style に display: none を書く） */
.faq__item:has(> .faq__a:not([style*="none"])) .faq__q::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__item + .faq__item {
  border-top: 1px solid var(--c-line);
}

.faq__q {
  position: relative;
  padding: 16px 48px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-heading);
}

.faq__q::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--latin);
  font-size: var(--fs-mark);
  font-weight: 500;
  line-height: calc(var(--fs-body) * 1.6);
  color: var(--c-heading);
}

.faq__q::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-heading);
  border-bottom: 2px solid var(--c-heading);
  transform: translateY(-70%) rotate(45deg);
}

.faq__a {
  position: relative;
  padding: 0 24px 24px 48px;
}

.faq__a::before {
  content: "A";
  position: absolute;
  left: 18px;
  top: 2px;
  font-family: var(--latin);
  font-size: var(--fs-mark);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-sub);
}

@media (min-width: 768px) {
  .faq__q {
    padding: 24px 56px 24px 64px;
  }

  .faq__q::before {
    left: 24px;
    top: 24px;
  }

  .faq__q::after {
    right: 26px;
  }

  .faq__a {
    padding: 0 32px 24px 64px;
  }

  .faq__a::before {
    left: 24px;
  }
}

/* ---------- 転職する前に知っておきたい7つのこと ---------- */
.guide {
  padding: var(--sec-space) 0;
}

.guide-toc {
  padding: 8px 24px;
  background: var(--c-panel);
  counter-reset: toc;
}

.guide-toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  align-items: baseline;
}

.guide-toc li + li {
  border-top: 1px solid var(--c-line);
}

.guide-toc li::before {
  content: "Q" counter(toc);
  font-family: var(--latin);
  font-weight: 500;
  color: var(--c-heading);
}

.guide-toc a {
  position: relative;
  display: block;
  padding: 12px 24px 12px 0;
  line-height: 1.6;
  color: var(--c-heading);
  text-decoration: none;
}

/* ページ内の答えへ下がる印 */
.guide-toc a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--c-heading);
  -webkit-mask: var(--mask-arrow-down) center / contain no-repeat;
  mask: var(--mask-arrow-down) center / contain no-repeat;
  transform: translateY(-50%);
}

@media (hover: hover) {
  .guide-toc a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.qa {
  margin-top: var(--sec-space);
  padding-top: 24px;
  border-top: 2px solid var(--c-heading);
}

.qa__num {
  font-family: var(--latin);
  font-size: var(--fs-mark);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-heading);
}

.qa__q {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: 1.6;
  color: var(--c-heading);
}

.qa > p:not(.qa__num) {
  margin-top: 16px;
}

.qa a {
  color: var(--c-heading);
  text-underline-offset: 3px;
}

.qa__more {
  margin-top: 16px;
  border-top: 1px solid var(--c-line);
}

.qa-defs + .qa__more {
  margin-top: 0;
  border-top: 0;
}

.qa__more a {
  position: relative;
  display: block;
  padding: 12px 32px 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-small);
  line-height: 1.6;
  text-decoration: none;
}

.qa__more a::after,
.column__list a::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--c-heading);
  border-right: 2px solid var(--c-heading);
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) {
  .qa__more a:hover {
    text-decoration: underline;
  }
}

.qa-defs {
  margin-top: 16px;
  border-top: 1px solid var(--c-line);
}

.qa-defs__row {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}

.qa-defs dt {
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-heading);
}

.qa-defs dd {
  margin-top: 4px;
}

/* 番号つきの定義（Q6 の比べる4項目）：番号は見出しの左、説明は見出しの文字の位置から */
.qa-defs--num {
  counter-reset: def;
}

.qa-defs--num .qa-defs__row {
  counter-increment: def;
  position: relative;
  padding-left: 32px;
}

.qa-defs--num .qa-defs__row::before {
  content: counter(def);
  position: absolute;
  left: 4px;
  top: 16px;
  font-family: var(--latin);
  font-size: var(--fs-mark);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-heading);
}

.qa-list {
  margin-top: 16px;
  container: qa-list / inline-size;
}

/* 欄が文字10字ぶんより狭いとき（大きな文字の拡大）は、長いカタカナの語（コミュニケーション）も折って、はみ出しを防ぐ */
@container qa-list (max-width: 10em) {
  .qa-list kana-w {
    white-space: normal;
  }
}

.qa-list li {
  position: relative;
  padding-left: 1.2em;
}

.qa-list li + li {
  margin-top: 8px;
}

.qa-list li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.72em;
  width: 0.45em;
  height: 0.45em;
  background: var(--c-surface);
}

.qa-steps {
  margin-top: 16px;
  border-top: 1px solid var(--c-line);
  counter-reset: step;
}

.qa-steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 64px;
  border-bottom: 1px solid var(--c-line);
}

.qa-steps li:last-child {
  border-bottom: 0;
}

.qa-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 17px;
  font-family: var(--latin);
  font-size: var(--fs-mark);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-heading);
}

.qa-steps[start="2"] {
  counter-reset: step 1;
}

/* 02〜04：「面談のあと一緒に進められます」を見出しにして、薄い面でまとめる */
.qa-steps__with {
  background: var(--c-panel);
}

.qa-steps__with .qa-steps {
  margin-top: 0;
  border-top: 0;
}

.qa-steps__with .qa-steps li {
  border-bottom-color: var(--c-white);
}

.qa-steps__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 4px;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-figure);
}

/* 24px のアイコンは stroke-width 1.75 で、28px のアイコン（1.5）と画面上の線の太さ（1.75px）をそろえる */
.qa-steps__icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.qa-steps__ttl {
  display: block;
  font-weight: 700;
  color: var(--c-heading);
}

/* M&A業界の4つの仕事の図：当事者（売り手・買い手）は薄い面、仕事は白地の文字。当社が紹介する仕事の名前だけ青（凡例は図の上） */
.roles {
  container-type: inline-size;
  margin-top: 24px;
}

.paycmp__cap,
.roles__cap,
.bars__cap {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-heading);
}

.roles__map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "sell mid buy"
    "fasell . fabuy";
  row-gap: 16px;
  margin-top: 8px;
}

.roles__party {
  grid-area: sell;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px;
  background: var(--c-panel);
  text-align: center;
}

.roles__party--buy {
  grid-area: buy;
}

.roles__side,
.roles__name {
  display: block;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-heading);
}

.roles__who,
.roles__how {
  display: block;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-sub);
}

/* 仲介の名前は線の上、「間に立つ」は線の下 */
.roles__mid {
  grid-area: mid;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4px;
  background: linear-gradient(var(--c-figure), var(--c-figure)) center / 100%
    2px no-repeat;
  text-align: center;
}

.roles__mid .roles__name {
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  white-space: nowrap;
}

.roles__mid .roles__how {
  flex: 1 1 0;
  padding-top: 10px;
}

.roles__fa {
  grid-area: fasell;
  position: relative;
  padding-top: 4px;
  text-align: center;
}

.roles__fa--buy {
  grid-area: fabuy;
}

.roles__fa::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 16px;
  border-left: 2px solid var(--c-figure-sub);
}

/* 下の段：自ら買う・売る側（事業会社と投資ファンド）を2つの箱に */
.roles__own {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  margin-top: 8px;
}

/* 仕事は白地、当事者（売り手・買い手）だけ薄い面にして、仕事と当事者を見分けられるようにする */
.roles__own-item {
  padding: 12px 8px;
  border: 1px solid var(--c-line);
  text-align: center;
}

.roles__sub {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-sub);
}

.roles__mid--ours .roles__name,
.roles__own-item--ours .roles__name {
  color: var(--c-figure);
}

.roles__legend {
  margin-top: 2px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-sub);
}

.roles__ours {
  font-weight: 700;
  color: var(--c-figure);
}

/* 図の幅が狭いとき：「M&A仲介」を文節で折る（さらに狭いときは下で縦に組む） */
@container (max-width: 20em) {
  .roles__mid .roles__name {
    white-space: normal;
    word-break: keep-all;
  }
}

@container (max-width: 17em) {
  .roles__map {
    grid-template-columns: minmax(0, 1fr) 5.5em;
    grid-template-areas:
      "sell fasell"
      "mid ."
      "buy fabuy";
    column-gap: 12px;
    row-gap: 0;
  }

  .roles__party {
    padding: 8px 12px;
    text-align: left;
  }

  .roles__fa {
    align-self: center;
    padding: 4px 0;
    text-align: left;
  }

  .roles__fa::before {
    left: -12px;
    top: 50%;
    bottom: auto;
    width: 12px;
    height: 0;
    border-left: 0;
    border-top: 2px solid var(--c-figure-sub);
  }

  .roles__mid {
    margin-left: 16px;
    padding: 8px 0 8px 12px;
    background: linear-gradient(var(--c-figure), var(--c-figure)) left / 2px
      100% no-repeat;
    text-align: left;
  }

  .roles__mid .roles__name,
  .roles__mid .roles__how {
    display: block;
    flex: none;
    padding: 0;
    white-space: normal;
  }
}

/* 数字の棒：項目名（dt）と値（dd）の組。1行目に「名前…値」、2行目に全幅の棒。
   棒の長さは style の --v（値）÷ --max（既定は100%。金額の図は一覧の最大）。0〜100% の図は全長の帯を敷く */
.bars {
  margin-top: 24px;
}

.bars__capsub {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--c-ink);
}

.bars__list {
  --max: 100;
  margin-top: 8px;
  border-top: 1px solid var(--c-line);
  container: bars / inline-size;
}

.bars__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}

.bars__row dt {
  font-weight: 700;
  line-height: 1.5;
}

.bars__row dd {
  display: contents;
}

/* 給与の図：欄の内幅が狭いとき（文字の拡大を含む）は、社名を金額の上の行に置く */
.bars__list--money {
  container: salary / inline-size;
}

@container salary (max-width: 20em) {
  .bars__list--money .bars__row dt {
    grid-column: 1 / -1;
  }
}

/* 内訳の行（金融機関のうち銀行）：上の行の続きとして見出しだけを字下げし、区切りの罫を外す */
.bars__row--sub {
  padding-top: 0;
}

.bars__row:has(+ .bars__row--sub) {
  border-bottom: 0;
}

.bars__row--sub dt {
  padding-left: 1em;
  font-weight: 400;
  color: var(--c-sub);
}

/* 欄が狭いとき（文字の拡大）は、内訳の見出しと説明を全幅に置き、割合を次の行に */
@container bars (max-width: 15em) {
  .bars__row--sub dt {
    grid-column: 1 / -1;
  }
}

.bars__track {
  grid-column: 1 / -1;
  display: block;
  height: 12px;
  margin-top: 8px;
  background: var(--c-panel);
}

.bars__list--money .bars__track {
  background: none;
}

.bars__bar {
  display: block;
  width: calc(var(--v) / var(--max) * 100%);
  height: 100%;
  background: var(--c-figure);
}

.bars__val {
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-heading);
  text-align: right;
  white-space: nowrap;
}

/* 年収の変化：時点ごとに「上がった」「下がった」の2本。どちらもほかの図と同じ「名前…値／全幅の棒」 */
.bars--pair .bars__row {
  grid-template-columns: minmax(0, 1fr);
}

.bars--pair .bars__row dd {
  display: block;
}

.bars__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 12px;
  margin-top: 8px;
}

.bars__line + .bars__line {
  margin-top: 10px;
}

.bars__line .bars__track {
  margin-top: 4px;
}

.bars__label {
  font-size: var(--fs-small);
  line-height: 1.5;
}

.bars__line--sub .bars__bar {
  background: var(--c-figure-sub);
  box-shadow: inset 0 0 0 1px var(--c-heading);
}

.bars__line--sub .bars__val {
  font-weight: 400;
  color: var(--c-sub);
}

.reason__point-label,
.bars__term {
  display: block;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-sub);
}

.bars__note {
  margin-top: 8px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--c-sub);
}

/* アンケートの数字3つ（スマホは縦に積み、560px 以上は横に並べる） */
.qa-stats {
  margin-top: 8px;
  border-top: 1px solid var(--c-line);
  container: stats / inline-size;
}

.qa-stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  container: stat / inline-size;
}

@container stats (max-width: 15em) {
  .qa-stats li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* 3列の1つの欄が文字7字ぶんより狭いとき（大きな文字の拡大）は、ラベルのカタカナの語（エージェント）も折る */
@container stat (max-width: 7em) {
  .qa-stats kana-w {
    white-space: normal;
  }
}

.qa-stats__label {
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-heading);
}

.qa-stats__fig {
  font-family: var(--latin);
  font-size: var(--fs-fig);
  font-weight: 500;
  line-height: 1;
  color: var(--c-heading);
  white-space: nowrap;
}

.qa-stats__unit {
  margin-left: 2px;
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 700;
}

@media (min-width: 560px) {
  .qa-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qa-stats li {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 16px 16px 0;
  }

  .qa-stats li + li {
    padding-left: 16px;
    border-left: 1px solid var(--c-line);
  }

  /* 欄が文字30字ぶんより狭いとき（文字の拡大）は、3列をやめてスマホと同じ並び（左にラベル、右に数字）に */
  @container stats (min-width: 15em) and (max-width: 30em) {
    .qa-stats li,
    .qa-stats li + li {
      grid-column: 1 / -1;
      flex-direction: row;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 0;
      border-left: 0;
    }
  }

  /* 欄が文字15字ぶんより狭いときも1列にし、ラベルと数字を縦に積む（3列のまま重なるのを防ぐ） */
  @container stats (max-width: 15em) {
    .qa-stats li,
    .qa-stats li + li {
      grid-column: 1 / -1;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 4px;
      padding: 12px 0;
      border-left: 0;
    }
  }
}

.guide-source {
  margin-top: 48px;
  padding: 24px;
  background: var(--c-panel);
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--c-sub);
  container: source / inline-size;
}

/* 出典の欄が文字12字ぶんより狭いとき（大きな文字の拡大）は、長いカタカナの語も、行の幅を超えるときだけ折る */
@container source (max-width: 12em) {
  .guide-source kana-w {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  /* 日付の改行の禁止も外す（後ろの「）」だけが次の行に残らないように） */
  .guide-source .nowrap {
    white-space: normal;
  }
}

.guide-source__ttl {
  font-weight: 700;
  color: var(--c-ink);
}

.guide-source li {
  position: relative;
  margin-top: 8px;
  padding-left: 1em;
}

.guide-source li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.guide-source a {
  color: var(--c-heading);
  text-underline-offset: 3px;
}

.guide__next {
  margin-top: 48px;
  font-weight: 700;
  color: var(--c-heading);
  text-align: center;
}

.guide__next a {
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .guide-toc {
    padding: 12px 32px;
  }

  .qa {
    padding-top: 32px;
  }

  .guide-source {
    padding: 32px;
  }
}

/* ---------- コラム ---------- */
/* すぐ上のガイドの下の余白と重ならないよう、上の余白は持たない */
.column {
  padding-bottom: var(--sec-space);
}

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

.column__ttl {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-heading);
}

.column__list {
  margin-top: 8px;
  border-top: 1px solid var(--c-line);
}

.column__list a {
  position: relative;
  display: block;
  padding: 16px 32px 16px 0;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.6;
  color: var(--c-ink);
  text-decoration: none;
}

@media (hover: hover) {
  .column__list a:hover {
    color: var(--c-heading);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.column__all {
  margin-top: 32px;
  text-align: center;
}

.column__all a {
  display: inline-block;
  padding: 12px 8px;
  font-weight: 700;
  color: var(--c-heading);
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .column__groups {
    display: block;
    columns: 2;
    column-gap: 48px;
  }

  .column__groups > div {
    break-inside: avoid;
    margin-bottom: 48px;
  }
}

/* 会社情報（外の loader が差し込む部品）の容器 */
.company-overview {
  max-width: 700px;
  margin: 20px auto 0;
  line-height: normal;
}

/* ---------- フッター ---------- */
.footer {
  padding: 48px 0;
  background: var(--c-surface-deep);
  color: var(--c-white);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-title);
  font-size: var(--fs-mark);
  font-weight: var(--fw-title);
  letter-spacing: 0.06em;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
  margin-top: 16px;
}

.footer__links a {
  display: inline-block;
  padding: 12px 8px;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--c-white);
  text-decoration: none;
}

@media (hover: hover) {
  .footer__links a:hover {
    text-decoration: underline;
  }
}

.footer__links a:focus-visible {
  outline-color: var(--c-white);
}

.footer__company,
.footer__copy {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.footer__company {
  margin-top: 16px;
}

.footer__copy {
  margin-top: 12px;
}

/* ---------- 小さいスマホ（389px 以下）：ロゴを小さくし、申込ボタンの中の余白を詰める ---------- */
@media (max-width: 389px) {
  .site-head__logo img {
    height: 24px;
  }

  .cta__btn a {
    padding: 12px 32px;
  }
}

/* ---------- とても狭い画面 ---------- */
@media (max-width: 359px) {
  :root {
    --fs-fig: 1.75rem;
  }

  .promise {
    grid-template-columns: minmax(0, 1fr) 120px;
    column-gap: 12px;
  }

  .cta__btn a {
    gap: 2px 6px;
    padding: 12px 28px 12px 8px;
  }

  .cta__btn a::after {
    right: 12px;
  }

  .cta__tag {
    padding: 1px 4px;
  }

  .job__for {
    padding: 12px 16px;
  }

  .job__body {
    padding: 16px;
  }

  .job__ttl {
    font-size: var(--fs-lead);
  }

  .job__btn a {
    padding: 10px 28px 10px 12px;
    letter-spacing: 0;
  }

  .job__btn a::after {
    right: 12px;
  }

  .bars__list--money .bars__row dt {
    grid-column: 1 / -1;
  }

  .cta__note {
    letter-spacing: 0;
  }
}

/* ---------- 表示幅 299px 以下（ページの拡大を含む）は1列に組み替える ---------- */
@media (max-width: 299px) {
  .target__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .target__icon {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .target__who,
  .target__what {
    grid-column: auto;
  }

  .promise {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "ttl"
      "photo"
      "prof"
      "lead";
  }

  .promise__photo {
    width: 140px;
    justify-self: end;
    margin-right: 0;
  }

  .job__row dt {
    flex-basis: 100%;
  }

  .job__ttl {
    font-size: var(--fs-body);
  }

  .faq__q {
    padding: 16px 32px 16px 38px;
    word-break: normal;
  }

  .faq__q::before,
  .faq__a::before {
    left: 10px;
  }

  .faq__q::after {
    right: 12px;
  }

  .faq__a {
    padding: 0 12px 16px 38px;
  }

  .nowrap {
    white-space: normal;
  }
}

/* 申込ボタンの内幅が狭いとき（文字の拡大を含む）：左の余白と札の余白を詰め、補助文の行数を抑える */
@container cta-button (max-width: 20em) {
  .cta__btn a {
    gap: 2px 6px;
    padding: 12px 28px 12px 8px;
  }

  .cta__btn a::after {
    right: 12px;
  }

  .cta__tag {
    padding: 1px 4px;
  }
}

/* 動きを減らす設定（先に書いた transition を打ち消すため、最後に置く） */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta__btn a,
  .job__btn a,
  .video__list img {
    transition: none;
  }
}
