/*
 * 下層ページ (Gain・受託開発・ブログ記事) だけで使う CSS。style.css のあとに読む。
 * 色・書体・余白・ヘッダー・フッター・ボタン・表・メーター・料金・流れの作りは style.css のものをそのまま使い、
 * ここには「先頭の帯」と、各ページで足りない部品だけを書く。
 * 3D と常時の動きは使わない。動くのは、ボタンや枠にふれたときの色の変化だけ。
 */

/* 画面が 900px より低いぶん (最大 180px)。ノート PC のように低い画面で、最初の画面に冒頭のボタンまで入るように、
   帯と冒頭の上下のあきを、この量に応じて詰める (180px 低いときに詰める量を、下の calc にそれぞれ書く)。
   高さ 900px 以上の画面と、スマホの幅 (767px 以下) では 0 なので、見た目は変わらない */

:root {
  --low: 0px;
}

@media (min-width: 768px) {
  :root {
    --low: clamp(0px, 900px - 100svh, 180px);
  }
}

/* 先頭の帯: 現在地 (パンくず)、ページ名、右の端に小さな棒 1 列 */

.page-head {
  padding: calc(var(--header-h) + 36px - var(--low) * 20 / 180) var(--pad-x) 0;
  border-bottom: 1px solid var(--line);
}

/* 棒は帯の下の罫に立たせる。文字の列には下の余白を付け、棒の列には付けない */
.page-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 48px;
  max-width: var(--content-w);
}

.page-head__text {
  padding-bottom: calc(48px - var(--low) * 24 / 180);
}

.breadcrumb {
  margin: 0 0 calc(28px - var(--low) * 12 / 180);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

/* 区切りは記号の文字ではなく、短い横線。折り返したとき線が次の行の頭に来ないよう、前の項目の後ろに付ける */
.breadcrumb li:not(:last-child)::after {
  content: "";
  width: 16px;
  height: 1px;
  margin: 0 12px;
  background: var(--text-sub);
}

.breadcrumb a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb [aria-current] {
  color: var(--text);
}

.page-head__title {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* 「Gain」と「by AmpTech」の間は、見出しの中の半角スペース 1 つぶんだけにする */
.page-head__by {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.page-head__sub {
  margin: 12px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* トップの「棒の図」と同じ作りの棒 (入力 5 本・増幅 5 本・出力 5 本を 1 列につなげたもの)。
   高さは main.js の STEP_BARS と同じ。0.45 以上の棒 (8 本目から) だけが黄緑 */
.bars--head {
  --bar-max: 72px;
  gap: 5px;
}

.bars--head .bar {
  width: 8px;
}

.bars--head .bar:nth-child(n + 8) {
  background: var(--signal);
}

.bars--head .bar:nth-child(1) { --h: 0.22; }
.bars--head .bar:nth-child(2) { --h: 0.13; }
.bars--head .bar:nth-child(3) { --h: 0.28; }
.bars--head .bar:nth-child(4) { --h: 0.17; }
.bars--head .bar:nth-child(5) { --h: 0.24; }
.bars--head .bar:nth-child(6) { --h: 0.3; }
.bars--head .bar:nth-child(7) { --h: 0.4; }
.bars--head .bar:nth-child(8) { --h: 0.52; }
.bars--head .bar:nth-child(9) { --h: 0.64; }
.bars--head .bar:nth-child(10) { --h: 0.76; }
.bars--head .bar:nth-child(11) { --h: 0.86; }
.bars--head .bar:nth-child(12) { --h: 0.96; }
.bars--head .bar:nth-child(13) { --h: 1; }
.bars--head .bar:nth-child(14) { --h: 0.96; }
.bars--head .bar:nth-child(15) { --h: 0.86; }

/* セクション (トップと同じ .section。中身は 1360px まで) */

.page-head + .section {
  border-top: 0;
}

.section > * {
  max-width: var(--content-w);
}

.section__title {
  text-wrap: balance;
}

/* 見出しの直後の表・列は、見出しの下のあきだけにする */
.section__title + .columns {
  margin-top: 0;
}

/* 冒頭 (見出しと本文とボタン) */

.sub-lead {
  padding-top: calc(96px - var(--low) * 48 / 180);
  padding-bottom: 112px;
}

.sub-lead__preface {
  margin: 0;
  color: var(--text-sub);
  font-size: 18px;
  line-height: 1.9;
}

.sub-lead__catch {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sub-lead__preface + .sub-lead__catch {
  margin-top: calc(20px - var(--low) * 8 / 180);
}

.sub-lead__catch span {
  display: block;
}

.sub-lead__text {
  max-width: 40em;
  margin: calc(28px - var(--low) * 8 / 180) 0 0;
  color: var(--text-sub);
  font-size: 18px;
  line-height: 1.9;
  text-wrap: balance;
}

.columns .column__text,
.columns .column__title {
  text-wrap: balance;
}

.sub-lead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: calc(44px - var(--low) * 16 / 180);
}

/* 節の中の小見出しと、1 段落の本文 */

.sub-title {
  margin: 80px 0 28px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.4;
}

.sub-title:first-child {
  margin-top: 0;
}

.lead-text {
  max-width: 40em;
  margin: 0;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

.sub-title + .lead-text {
  margin-top: -8px;
}

.lead-text + .columns,
.lead-text + .plans,
.lead-text + .process,
.lead-text + .others,
.lead-text + .team {
  margin-top: 40px;
}

/* 小見出しの直後の列は、小見出しの下のあきだけにする */
.sub-title + .columns {
  margin-top: 0;
}

.section__action {
  margin: 40px 0 0;
}

/* 節の終わりにボタンを 2 つ以上並べるとき */
.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* 進め方: トップの 3 段の棒を、列の幅いっぱいの角柱にしたもの。
   棒の太さが 3 列でそろうように列を同じ幅にし、縦罫とブレースは列の間のあきに置く */

.bars--wide {
  --bar-max: 160px;
  gap: 8px;
  margin-bottom: 36px;
}

.bars--wide .bar {
  flex: 1 1 0;
  width: auto;
}

@media (min-width: 768px) {
  .steps--wide {
    column-gap: 96px;
  }

  .steps--wide .step,
  .steps--wide .step:first-child,
  .steps--wide .step:last-child {
    padding: 0;
  }

  .steps--wide .step + .step {
    border-left: 0;
  }

  .steps--wide .step + .step::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -48px;
    width: 1px;
    background: var(--line);
  }

  .steps--wide .step__brace--open {
    left: -34px;
  }

  .steps--wide .step__brace--close {
    right: -34px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .steps--wide {
    column-gap: 72px;
  }

  .steps--wide .step + .step::before {
    left: -36px;
  }

  .steps--wide .step__brace--open {
    left: -28px;
  }

  .steps--wide .step__brace--close {
    right: -28px;
  }

  .bars--wide {
    --bar-max: 120px;
    gap: 4px;
  }
}

/* 表: トップの「頼み方は 3 つ」の表 (.plans) と同じ作りで、3 列のとき */

.plans--3 thead :is(th, td):nth-child(1) {
  width: 24%;
}

.plans--3 thead :is(th, td):nth-child(2),
.plans--3 thead :is(th, td):nth-child(3) {
  width: 38%;
}

/* 見出し行の左上が空のセル (td) も、ほかの見出しのセルと同じ余白にする */
.plans thead td {
  padding-top: 0;
  padding-bottom: 16px;
}

.plans--3 .plans__way {
  font-size: 18px;
}

/* 表: 4 列で、2〜4 列目を同じ幅に並べて比べるとき (ソースコード全件チェックの比較) */

.plans--4 thead :is(th, td):nth-child(1) {
  width: 16%;
}

.plans--4 thead :is(th, td):nth-child(n + 2) {
  width: 28%;
}

.plans--4 .plans__way {
  font-size: 18px;
}

.plans__both {
  font-size: 16px;
  line-height: 1.8;
}

.plans__note {
  max-width: 40em;
  margin: 32px 0 0;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
}

.plans__note a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Gain: できること (トップの Gain のブロックのレベルメーターを大きくしたもの) */

.features__num {
  margin: 0 0 20px;
  font-family: var(--font-num);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
}

.features .column__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.3;
}

.features .column__text {
  margin-top: 24px;
  font-size: 16px;
}

.meter--large {
  gap: 6px;
  margin-top: 24px;
}

.meter--large .meter__cell {
  width: clamp(22px, 3vw, 44px);
  height: 16px;
}

/* Gain: 伴走。上下を白の罫で挟んだ行 */

.rules {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  list-style: none;
}

.rules__item {
  padding: 28px 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.9;
}

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

/* Gain: ご利用開始まで・料金 (トップの .flow と .prices を大きくしたもの) */

.flow__note {
  margin: 48px 0 0;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
}

.prices--large .prices__num {
  font-size: clamp(56px, 8vw, 120px);
}

.prices--large .prices__unit {
  font-size: clamp(18px, 1.8vw, 26px);
}

.prices--large .prices__name {
  font-size: 16px;
}

.prices--large .prices__note {
  font-size: 15px;
}

@media (min-width: 768px) {
  .flow--large .flow__num {
    font-size: 40px;
    line-height: 40px;
  }

  .flow--large .flow__step:not(:last-child)::after {
    top: 20px;
    left: 56px;
  }

  .flow--large .flow__text {
    margin-top: 20px;
    font-size: clamp(16px, 1.4vw, 18px);
  }
}

/* Gain: 課題を送るフォーム (見た目だけ。送信の処理は作らない) */

.form-block__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.form-block__title span {
  display: block;
}

.form-block .product__sub {
  margin: 48px 0 16px;
}

/* 連絡先の列は狭いので、項目名の幅を詰めて、1024px でもメールアドレスが入るようにする */
@media (min-width: 768px) {
  .form-block .company__row {
    grid-template-columns: 5em minmax(0, 1fr);
  }
}

.form {
  display: grid;
  gap: 28px;
}

.form__field {
  display: grid;
  gap: 10px;
}

.form__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.form__req {
  padding: 1px 8px;
  border: 1px solid var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.form__control {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.12s;
}

.form__control:hover {
  border-color: var(--text-sub);
}

textarea.form__control {
  min-height: 176px;
  resize: vertical;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 4px;
}

.form__note {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* button 要素のボタンと入力欄にも、リンクと同じフォーカスの枠を付ける */
button.btn {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.form__control:focus-visible {
  border-color: var(--text);
}

/* 受託開発: 作るもの (3 つの区分、件数、棒、実績 3 件) */

.categories .column__title {
  min-height: 2.8em;
}

/* 3 列を同じ幅にする。列の左右のあきが列ごとに違うと、棒の基準の幅がずれて、
   件数に比例した長さに見えなくなる。縦罫は列の間のあきの真ん中に引く */
@media (min-width: 768px) {
  .categories {
    column-gap: 80px;
  }

  .categories .column,
  .categories .column:first-child,
  .categories .column:last-child {
    padding: 0;
  }

  .categories .column + .column {
    position: relative;
    border-left: 0;
  }

  .categories .column + .column::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40px;
    width: 1px;
    background: var(--line);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .categories {
    column-gap: 48px;
  }

  .categories .column + .column::before {
    left: -24px;
  }
}

.category__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 20px 0 0;
}

.category__num {
  font-family: var(--font-num);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
}

.category__unit {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

/* 長さは件数に比例させる。いちばん多い 33 件が列の幅いっぱい */
.category__bar {
  display: block;
  width: calc(var(--n) / 33 * 100%);
  height: 12px;
  margin-top: 20px;
  background: var(--signal);
}

.category__works {
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.category__works li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.7;
}

/* 区分ごとに「対応できる内容」と「実績の例」を重ねるときの小見出しと、実績へのリンク */
.category__label {
  margin: 36px 0 12px;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.category__label + .category__works {
  margin-top: 0;
}

.category__more {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.category__more a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* 3 つの区分で、項目の数が違っても「実績の例」の高さをそろえる */
@media (min-width: 768px) {
  .categories--full .column {
    display: grid;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr); /* 長い項目で列が広がらないようにする */
    grid-row: span 8;
    align-items: start;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .categories--full .lines li,
  .categories--full .category__works li,
  .categories--full .category__more {
    font-size: 14px;
  }
}

.products__note {
  margin: 40px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* 罫で区切った項目の一覧 (順番の無いもの。対応できる内容など) */

.lines {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.lines li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

/* 内容の一覧を 2 列に並べるとき (撮影と編集、民間企業向けと行政・自治体向け など) */

.pair {
  --cols: 2;
}

.pair .column__title {
  margin-bottom: 20px;
}

.lines--large li {
  padding: 17px 0;
  font-size: 18px;
}

/* 行の一覧 (トップの「そのほかの事業」と同じ .others) を、下層ページの見出しと本文の大きさで組んだもの。
   サービスの「そのほかの事業」と、AI 導入・運用の支援の「支援の内容」で使う */

.others--large .other {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 56px;
  padding: 40px 0 44px;
}

.others--large .other__name {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.5;
}

.others--large .other__text {
  max-width: 40em;
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

.others--large .lines {
  margin-top: 24px;
}

.other__note {
  margin: 20px 0 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.other__note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.other__more {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.other__more a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* 工程の一覧 (番号、名前、短い説明を 1 行ずつ) */

.stages-pair,
.estimates {
  --cols: 2;
}

.stages__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.stages {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: stage;
}

.stage {
  display: grid;
  grid-template-columns: 32px 8em minmax(0, 1fr);
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: stage;
}

.stage::before {
  content: counter(stage);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
}

.stage__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.stage__text {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.7;
}

/* 受託開発: 相談から、動かし続けるまで (5 段。1024px 以上は横、それより狭いと縦) */

.process {
  display: grid;
  grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__step {
  position: relative;
  padding-right: 32px;
}

.process__num {
  display: block;
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}

.process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 16px;
  left: 32px;
  height: 1px;
  background: var(--line);
}

.process__title {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.process__text {
  margin: 10px 0 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

/* サービスの 3 ページの流れ。番号と名前を、Gain の「ご利用開始まで」と同じ大きさにする */
@media (min-width: 1024px) {
  .process--large .process__num {
    font-size: 40px;
    line-height: 40px;
  }

  .process--large .process__step:not(:last-child)::after {
    top: 20px;
    left: 56px;
  }

  .process--large .process__title {
    margin-top: 24px;
    font-size: 22px;
  }

  .process--large .process__text {
    font-size: 16px;
  }
}

/* 受託開発: 体制 (ラベルと値を 1 行ずつ) */

.team {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.team__row {
  display: grid;
  grid-template-columns: 12em minmax(0, 1fr);
  align-items: baseline;
  column-gap: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.team dt {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.team dd {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8;
}

.team__num {
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.team__line {
  display: block;
}

/* 受託開発: 費用と期間の目安。2 列に並べ、対象と数字を 1 行ずつ */

.estimates .column__title {
  margin-bottom: 20px;
}

.team--estimate .team__row {
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
  column-gap: 24px;
}

.team--estimate dt {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.team--estimate dd {
  white-space: nowrap;
}

/* 2 列のまま幅が狭いときは、対象の下に数字を置く */
@media (min-width: 768px) and (max-width: 1023px) {
  .team--estimate .team__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 数字の間の「〜」。本文の大きさのままだと、大きな数字の間で読み落とす */
.team__to {
  margin: 0 2px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.estimates__note {
  margin: 20px 0 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.estimates + .plans__note {
  margin-top: 56px;
}

/* 受託開発: よくある質問 (質問を左、答えを右) */

.faq {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.faq__item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.faq dt {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.faq dd {
  margin: 0;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
}

.faq dd a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* 受託開発・記事の終わり: 相談の導線 */

.cta__title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cta__title span {
  display: block;
}

.cta__text {
  max-width: 40em;
  margin: 28px 0 0;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
}

.cta__button {
  margin-top: 40px;
}

/* ブログ記事: 読みやすさ優先。1 行は最大 42 字ぶん (17px で 714px)、行送りは 2.05。
   文節の途中で折らない (style.css の auto-phrase) ので、行は 35〜42 字ほどになる。
   本文では palt を切り、字の幅をそろえて 1 行の字数が文章によって揺れないようにする */

.page-head--article .page-head__title {
  max-width: 24em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.35;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
}

.article-meta__type {
  padding: 1px 10px;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.article-meta time {
  font-family: var(--font-num);
}

.article-note {
  display: inline-block;
  margin: 16px 0 0;
  padding: 1px 8px;
  border: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.5;
}

.article {
  padding: 72px var(--pad-x) 0;
  font-size: 17px;
  font-feature-settings: normal;
}

.article__column {
  max-width: 42em;
}

/* リードは本文と同じ大きさ (同じ 1 行の字数で測れる) で、太さだけを変える */
.article__lead {
  margin: 0 0 56px;
  font-weight: 700;
  line-height: 1.95;
}

.article p {
  margin: 0 0 1.5em;
  line-height: 2.05;
}

.article h2 {
  margin: 80px 0 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
}

.article a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.sources {
  margin: 0;
  padding: 0 0 0 2em;
  font-size: 15px;
  line-height: 1.9;
}

.sources li {
  margin: 0 0 14px;
  padding-left: 0.5em;
}

.sources li::marker {
  color: var(--text-sub);
  font-family: var(--font-num);
}

/* 本文 (.article) の外にあるので、文字の大きさを本文と同じにして、1 行の幅 (42em) をそろえる */
.article-end {
  margin-top: 96px;
  font-size: 17px;
}

.article-end .article__column > h2 {
  margin: 0 0 24px;
  padding-top: 0;
  border-top: 0;
  font-size: 20px;
}

.related {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.related li {
  border-bottom: 1px solid var(--line);
}

.related a {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.article-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .form__control {
    transition: none;
  }
}

/* タブレット: 列の左右のあきを詰め、流れは縦に積む */
@media (max-width: 1023px) {
  .column {
    padding: 0 24px;
  }

  .column:first-child {
    padding-left: 0;
  }

  .column:last-child {
    padding-right: 0;
  }

  /* 名前・連絡先 (左) とフォーム (右) は 1 列に積む */
  .form-block .product__head {
    row-gap: var(--block-gap);
  }

  .process {
    grid-template-columns: minmax(0, 1fr);
  }

  .process__step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 0 0 28px;
  }

  .process__step:not(:last-child)::after {
    top: 30px;
    right: auto;
    bottom: 6px;
    left: 6px;
    width: 1px;
    height: auto;
  }

  .process__title,
  .process__text {
    grid-column: 2;
  }

  .process__title {
    margin-top: 0;
  }

  .process__text {
    margin-top: 8px;
  }

  .faq__item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }
}

/* スマホ: 帯の棒は文字の下に置く。列は 1 列に積む */
@media (max-width: 767px) {
  .page-head {
    padding-top: calc(var(--header-h) + 24px);
  }

  .page-head__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .page-head__text {
    padding-bottom: 36px;
  }

  .breadcrumb {
    margin-bottom: 20px;
  }

  .page-head__title {
    font-size: 40px;
  }

  .page-head--article .page-head__title {
    font-size: 26px;
  }

  .article-meta {
    margin-top: 20px;
  }

  .bars--head {
    --bar-max: 48px;
    gap: 4px;
  }

  .bars--head .bar {
    width: 6px;
  }

  .sub-lead {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .sub-lead__preface,
  .sub-lead__text {
    font-size: 16px;
  }

  /* 見出しは 2 行固定。1 行目 (約 12 文字分) が画面の内側に収まる大きさまで、画面幅に合わせて縮める */
  .sub-lead__catch {
    font-size: min(34px, (100vw - 40px) / 12.5);
  }

  /* 1 行目が約 13 文字分ある見出し */
  .sub-lead__catch--long {
    font-size: min(34px, (100vw - 40px) / 13.4);
  }

  .sub-lead__actions {
    margin-top: 32px;
  }

  .bars--wide {
    --bar-max: 96px;
    gap: 6px;
    margin-bottom: 28px;
  }

  .sub-title {
    margin-top: 56px;
  }

  /* 左右のあきだけを消す (style.css が縦に積むときの上のあきを付けているので、padding を丸ごと消さない) */
  .column,
  .column:first-child,
  .column:last-child {
    padding-right: 0;
    padding-left: 0;
  }

  .categories .column__title {
    min-height: 0;
  }

  .meter--large .meter__cell {
    width: 32px;
    height: 14px;
  }

  .rules__item {
    padding: 22px 0;
  }

  .flow__note {
    margin-top: 32px;
  }

  .team__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    padding: 18px 0;
  }

  .team dd {
    font-size: 18px;
  }

  .others--large .other {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
    padding: 30px 0 34px;
  }

  .lines--large li {
    padding: 14px 0;
    font-size: 17px;
  }

  /* 中の一覧に上下の罫があるので、列の間の罫は引かない */
  .pair .column + .column,
  .stages-pair .column + .column,
  .estimates .column + .column {
    margin-top: 48px;
    padding-top: 0;
    border-top: 0;
  }

  .stage {
    grid-template-columns: 28px 7em minmax(0, 1fr);
  }

  .team--estimate .team__row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
  }

  .faq__item {
    padding: 22px 0;
  }

  .faq dt {
    font-size: 18px;
  }

  /* 見出しは 2 行固定。2 行目 (10 文字) が画面の内側に収まる大きさまで、画面幅に合わせて縮める */
  .cta__title {
    font-size: min(32px, (100vw - 40px) / 10.5);
  }

  .form-block .product__sub {
    margin-top: 36px;
  }

  .article {
    padding-top: 48px;
    font-size: 16px;
  }

  .article__lead {
    margin-bottom: 40px;
  }

  .article h2 {
    margin-top: 56px;
    padding-top: 24px;
    font-size: 21px;
  }

  .article-end {
    margin-top: 72px;
  }

  .article-end__actions {
    margin-top: 36px;
  }
}

/* 360px 前後より狭い画面では、対象と数字を 1 行に並べられない */
@media (max-width: 379px) {
  .team--estimate .team__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
