/**
 * 部品（コンポーネント）C01〜C09、C11
 *
 * デザイン：design/top-sections（部品の説明は COMPONENTS.md）。色・文字・余白は確定値。
 * トップの本文（docs/content/top.html）で使っている。料金・流れ・FAQ のページでも使い回せるようにしてある。
 * 問い合わせの帯（C10）は cta-band.css。
 *
 * 1024px 以上：PC ／ 768〜1023px：タブレット ／ 767px 以下：スマホ
 */

/* ---------- セクション（背景の色を交互に変える、全幅の帯） ---------- */

.section {
  padding: 96px var(--sh-gutter);
  background: var(--sh-bg);
}

.section--white {
  background: var(--sh-surface);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1184px;
  margin: 0 auto;
}

.section--tight .section__inner {
  gap: 40px;
}

/* セクションの中の余白と、リストの黒丸を消しておく（:where は優先度 0 なので、部品の指定がそのまま効く） */
:where(.section) :where(h2, h3, h4, p, ul, ol) {
  margin: 0;
}

:where(.section) :where(ul, ol) {
  padding: 0;
  list-style: none;
}

:where(.section) a {
  text-decoration: none;
}

.section__note {
  color: var(--sh-text);
  font-size: 14px;
  line-height: 1.9;
}

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

.arrow {
  flex: none;
}

/* ---------- C01 セクション見出し ---------- */

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

/* 見出しの左のアイコン（A「守る」・1「相談」・2「選ばれる理由」・3「料金」の4か所だけ）。
   アイコンを左の列に置いて、ラベルと見出しを右に並べる。アイコンは、ラベルと見出しのかたまりの上下のまん中にそろえる
   （はるちゃんの指示。デザインは見出しの上）。説明文があるとき（3 料金）は、その下に同じ書き出しの位置で続ける。
   右にリンクがある見出し（--with-link）は、左のかたまり（__main）の中でだけ並べる（> で、すぐ中にアイコンがあるものだけ） */
:is(.section-heading, .section-heading__main):has(> .section-heading__icon) {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  align-items: center;
  /* 5 よくあるご質問は、見出しの箱が右の Q&A の高さまで伸びるので、行を上に詰める（行の間が広がらないように） */
  align-content: start;
}

:is(.section-heading, .section-heading__main):has(> .section-heading__icon) > :not(.section-heading__icon) {
  grid-column: 2;
}

.section-heading__icon {
  display: block;
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
}

/* トップの見出しは、題名として目立つように赤茶のアンダーライン（はるちゃんの指示、2026-10-02）。
   アイコンの付いた見出し（A・1〜6。4〜6 のアイコンは 2026-10-02 に追加）と、class section-heading__title--accent を付けた見出し（アイコンのない見出し用。今は使っていない）。
   診断ページの h1 と同じ。2行になっても各行の下に引けるように、文字の下線にする */
:is(.section-heading, .section-heading__main):has(> .section-heading__icon) .section-heading__title,
.section-heading__title--accent {
  text-decoration: underline;
  text-decoration-color: var(--sh-accent);
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
  text-decoration-skip-ink: none;
}

.section-heading__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.section-heading__label::before {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--sh-accent);
  content: "";
}

.section-heading__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance; /* 2行になるとき、最後の行に1〜2文字だけ残らないようにする */
}

.section-heading__lead {
  color: var(--sh-text);
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

/* 右端の下に「〜を見る →」を置く型 */
.section-heading--with-link {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}

.section-heading__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.text-link {
  display: inline-flex;
  flex: none;
  gap: 12px;
  padding-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- C02 ボタン ---------- */

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-radius: var(--sh-radius);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.button--primary {
  background: var(--sh-accent);
  color: #fff;
}

.button--outline {
  padding: 14.5px 24px;
  border: 1.5px solid var(--sh-black);
  font-size: 15px;
}

/* ---------- 番号つきリスト（A 必要な理由） ---------- */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.numbered-list__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--sh-line);
}

.numbered-list__no {
  padding-top: 4px;
  color: var(--sh-accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
}

.numbered-list__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.numbered-list__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.numbered-list__body p {
  color: var(--sh-text);
  font-size: 15px;
  line-height: 1.9;
  text-wrap: pretty;
}

/* ---------- C05 サイクル図（文字はすべてテキスト。枠と矢印は罫線と文字で描く） ---------- */
/* 見つける（セキュリティ診断）→ 守る（コンサルティング）→ 育てる（トレーニング）。
   デザインは「守る」だけ黒い箱だが、はるちゃんの判断で3つとも同じ白い箱にした。
   箱はそれぞれのサービスのページへのリンク（.cycle__link）。下の端に「詳しく見る →」 */

.cycle {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 36px;
  border: 1px solid var(--sh-line-header);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}

.cycle__title {
  font-size: 14px;
  font-weight: 700;
}

.cycle__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 28px;
  text-align: center;
}

.cycle__step {
  position: relative;
  display: flex;
}

/* 箱そのものがリンク。マウスを乗せると、枠と「詳しく見る」が赤茶になる */
.cycle__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 20px 8px 16px;
  border: 1.5px solid var(--sh-black);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
  color: inherit;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.15s;
}

.cycle__link:hover {
  border-color: var(--sh-accent);
}

.cycle__more {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 700;
}

.cycle__link:hover .cycle__more {
  color: var(--sh-accent);
}

/* 箱と箱のあいだの矢印。読み上げでは読まない（/ "" は代わりのテキストが空という意味） */
.cycle__step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -28px;
  width: 28px;
  transform: translateY(-50%);
  font-size: 18px;
  content: "→" / "";
}

.cycle__no {
  color: var(--sh-accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

.cycle__name {
  font-size: 18px;
  font-weight: 700;
}

.cycle__desc {
  color: var(--sh-muted);
  font-size: 12px;
}

/* PC は、番号・動詞・サービス名・説明を1つずつ縦に並べる（入れ物はスマホで横に並べるためのもの） */
.cycle__head,
.cycle__sub {
  display: contents;
}

.cycle__service {
  font-size: 12px;
  font-weight: 500;
}

/* 戻りの線：上の辺がない「コ」の字。1つめと3つめの箱のまん中をつなぐ */
.cycle__loop {
  position: relative;
  height: 36px;
  margin: -24px 16.5% 0;
  border: 1.5px solid var(--sh-accent);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.cycle__loop::before {
  position: absolute;
  top: -9px;
  left: -7px;
  color: var(--sh-accent);
  font-size: 11px;
  line-height: 1;
  content: "▲" / "";
}

.cycle__loop-text {
  position: absolute;
  bottom: -11px;
  left: 50%;
  padding: 0 12px;
  transform: translateX(-50%);
  background: var(--sh-surface);
  color: var(--sh-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.cycle__note {
  margin-top: 8px;
  color: var(--sh-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* 右の列：図と、その下のレッドチームへの1行の案内 */
.why__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why__more {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  color: var(--sh-text);
  font-size: 14px;
  line-height: 1.6;
}

.why__more .text-link {
  padding: 0;
}

/* ---------- C04 チェックリスト（1 こんなときにご相談ください） ---------- */

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.checklist__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--sh-line);
  font-size: 16px;
  line-height: 1.7;
}

.checklist__item::before {
  flex: none;
  width: 8px;
  height: 8px;
  transform: translateY(-2px);
  background: var(--sh-accent);
  content: "";
}

.checklist__item--link::before {
  display: none;
}

.checklist__item--link a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  color: var(--sh-accent);
  font-weight: 700;
}

/* ---------- C03 カード ---------- */

.card {
  border-radius: var(--sh-radius);
}

.card__no {
  display: flex;
  justify-content: space-between;
  color: var(--sh-accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
}

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

.card__body {
  color: var(--sh-text);
  text-wrap: pretty;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* --service（1 サービス） */
.services {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.services__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

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

.card--service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
  border: 1px solid var(--sh-line-header);
  background: var(--sh-bg);
}

.card--service .card__title {
  font-size: 20px;
}

.card--service .card__body {
  font-size: 14px;
  line-height: 1.85;
}

/* 「セキュリティ診断」だけ大きいカード */
.card--service-main {
  grid-row: span 3;
  gap: 20px;
  padding: 36px;
}

.card--service-main .card__title {
  font-size: 24px;
}

.card--service-main .card__body {
  font-size: 15px;
  line-height: 1.9;
}

.link-list {
  border-top: 1px solid var(--sh-line);
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sh-line);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

/* --reason（2 選ばれる理由） */
.card-grid--reasons {
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
}

.card--reason {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 2px solid var(--sh-black);
  border-radius: 0;
}

.card--reason .card__no {
  font-size: 14px;
}

.card--reason .card__title {
  font-size: 22px;
}

.card--reason .card__body {
  font-size: 15px;
  line-height: 1.95;
}

/* --post（6 コラム・お知らせ）。記事のカードは templates/content/node--news--teaser.html.twig
   サムネイルは出さず、日付・カテゴリ・タイトルを1行にして、線で区切ったリストにする（2026-10-08。はるちゃんの指示） */
.news-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--sh-line-header);
  list-style: none;
}

.card--post .card__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 24px 4px;
  border-top: 1px solid var(--sh-line-header);
  text-decoration: none;
}

.card--post .card__link:hover .card__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.tag {
  padding: 3px 8px;
  border: 1px solid var(--sh-black);
  border-radius: var(--sh-radius);
  font-weight: 500;
}

/* カテゴリの枠の幅をそろえる（お知らせ・コラムで文字数がちがう） */
.card--post .tag {
  box-sizing: border-box;
  width: 6.5em; /* 「お知らせ」が入る幅。タイトルの頭がそろうように、どのカテゴリも同じ幅 */
  text-align: center;
}

.card__date {
  color: var(--sh-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.card--post .card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- 2 選ばれる理由の下の「20年以上」の四角（2026-10-08。はるちゃんの指示：見出しの下のリード文だと目立たないので） ---------- */

.since-box {
  margin-top: 56px;
  padding: 28px 36px;
  border: 1px solid var(--sh-line-header);
  border-left: 4px solid var(--sh-accent);
  border-radius: var(--sh-radius);
  background: var(--sh-bg);
}

/* 見出しの頭の「20年以上」だけ赤茶（2026-10-08。はるちゃん：大きい数字を左に置くと浮いていたので） */
.since-box__accent {
  color: var(--sh-accent);
}

.since-box__title {
  margin: 0 0 8px;
  color: var(--sh-black);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.since-box__body {
  margin: 0;
  color: var(--sh-text);
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 767px) {
  .since-box {
    margin-top: 40px;
    padding: 24px 20px;
  }

  .since-box__title {
    font-size: 17px;
  }

  .since-box__body {
    font-size: 14px;
  }
}

/* ---------- C09 要確認メモ（公開の前に、中身を差し替えるか部品ごと消す） ---------- */

.note-tbd {
  padding: 20px 24px;
  border: 1.5px dashed var(--sh-accent);
  border-radius: var(--sh-radius);
  background: #fdf6f3;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- C11 お知らせの囲み（制度の案内。中身はカスタムブロックで書き換える） ---------- */

/* セクションAのすぐ下に、同じ背景のまま続ける（セクションA と囲みは別のブロック） */
.section--why {
  padding-bottom: 48px;
}

.section--notice {
  padding-top: 0;
}

.notice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 32px 40px;
  border: 1px solid var(--sh-line-header);
  border-left: 4px solid var(--sh-accent);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}

.notice__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sh-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.notice__label::before {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--sh-accent);
  content: "";
}

.notice__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
}

.notice__body {
  max-width: 760px;
  color: var(--sh-text);
  font-size: 14px;
  line-height: 1.9;
  text-wrap: pretty;
}

.notice .button {
  gap: 24px;
  min-height: 52px;
  padding: 16px 24px;
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- C06 料金の表 ---------- */

.price-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-table table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--sh-line);
  border-radius: var(--sh-radius);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--sh-surface);
  line-height: 1.5;
}

.price-table :is(th, td) {
  padding: 18px 16px;
  border-top: 1px solid var(--sh-line-header);
  text-align: left;
  vertical-align: middle;
}

.price-table thead th {
  padding-block: 14px;
  border-top: 0;
  background: var(--sh-black);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* 列の幅は、表として見せる PC のときだけ */
@media (min-width: 1024px) {
  .price-table :is(th, td):first-child {
    width: 260px;
    padding-left: 24px;
  }

  .price-table :is(th, td):nth-child(2),
  .price-table :is(th, td):nth-child(3) {
    width: 160px;
  }

  .price-table :is(th, td):last-child {
    padding-right: 24px;
  }
}

.price-table tbody th {
  font-size: 15px;
  font-weight: 700;
}

.price-table__cost {
  color: var(--sh-accent);
  font-size: 16px;
  font-weight: 700;
}

.price-table__term {
  font-size: 15px;
}

.price-table__cond {
  color: var(--sh-text);
  font-size: 13px;
  line-height: 1.7;
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--sh-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- C07 ステップ ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px 0 0;
  border-top: 2px solid var(--sh-black);
}

.steps__item::before {
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--sh-accent);
  content: "";
}

.steps__no {
  color: var(--sh-accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.steps__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.steps__sub {
  color: var(--sh-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- C08 Q&A（<details> で開け閉め。回答はいつも HTML の中にある） ---------- */

.section__inner.faq-section {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
}

.faq-section .section-heading {
  max-width: none;
}

/* 見出しの左にアイコンを付けたので（2026-10-02）、PC の狭いほうでは左の列を少し広げる
   （4:8 のままだと、1024px で見出しが2行になり、「すべて見る」の「る」だけが次の行に落ちる） */
@media (min-width: 1024px) and (max-width: 1279px) {
  .section__inner.faq-section {
    grid-template-columns: 5fr 7fr;
  }
}

.faq-section .text-link {
  align-self: flex-start;
  margin-top: 8px;
}

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

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

.faq__q {
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  align-items: start;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

/* Safari の三角の印を消す */
.faq__q::-webkit-details-marker {
  display: none;
}

.faq__mark {
  color: var(--sh-accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.faq__question {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq__cat {
  color: var(--sh-muted);
  font-size: 12px;
  line-height: 1.5;
}

.faq__text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

/* 閉じているとき ＋、開いているとき − */
.faq__icon {
  font-size: 22px;
  line-height: 1.2;
  text-align: right;
}

.faq__icon::before {
  content: "＋";
}

.faq__item[open] .faq__icon::before {
  content: "−";
}

.faq__a {
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  padding: 0 0 28px;
}

.faq__a .faq__mark {
  color: var(--sh-black);
  line-height: 1.6;
}

.faq__a p {
  color: var(--sh-text);
  font-size: 15px;
  line-height: 1.95;
  text-wrap: pretty;
}

.faq__a a {
  color: var(--sh-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =================== 1023px 以下：タブレット =================== */

@media (max-width: 1023px) {
  .why {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  /* 料金の表は横スクロールにしないで、1メニューを1ブロックにする */
  .price-table table,
  .price-table tbody,
  .price-table tr,
  .price-table :is(th, td) {
    display: block;
  }

  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .price-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    padding: 18px 16px;
    border-top: 1px solid var(--sh-line-header);
  }

  .price-table tbody tr:first-child {
    border-top: 0;
  }

  .price-table tbody :is(th, td) {
    padding: 0;
    border: 0;
  }

  .price-table tbody th,
  .price-table__cond {
    grid-column: 1 / -1;
  }

  .price-table td.price-table__cost,
  .price-table td.price-table__term {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .price-table__cost {
    font-size: 15px;
  }

  .price-table__term {
    font-size: 14px;
  }

  .price-table__cost::before,
  .price-table__term::before {
    color: var(--sh-muted);
    font-size: 13px;
    font-weight: 400;
    content: attr(data-label);
  }

  .price-table__cond {
    color: var(--sh-muted);
    font-size: 12px;
  }

  /* ステップは縦に並べて、左に番号の四角 */
  .steps {
    grid-template-columns: 1fr;
  }

  .steps__item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 0 0 20px;
    border-top: 0;
  }

  .steps__item::before {
    display: none;
  }

  .steps__no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--sh-radius);
    background: var(--sh-black);
    color: #fff;
    font-size: 12px;
  }

  .steps__body {
    gap: 2px;
    padding-top: 3px;
  }

  .steps__title {
    font-size: 15px;
    line-height: 1.5;
  }

  .steps__sub {
    line-height: 1.6;
  }

  .section__inner.faq-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =================== 767px 以下：スマホ =================== */

@media (max-width: 767px) {
  .section {
    padding: 56px 20px;
  }

  .section__inner {
    gap: 28px;
  }

  .section--tight .section__inner,
  .section__inner.faq-section {
    gap: 24px;
  }

  .section__note {
    font-size: 13px;
  }

  /* C01 */
  .section-heading,
  .section-heading__main {
    gap: 12px;
  }

  .section-heading__label {
    gap: 8px;
    font-size: 12px;
  }

  .section-heading__label::before {
    width: 6px;
    height: 6px;
  }

  :is(.section-heading, .section-heading__main):has(> .section-heading__icon) {
    column-gap: 12px;
  }

  .section-heading__icon {
    width: 40px;
    height: 40px;
  }

  .section-heading__title {
    font-size: 24px;
    line-height: 1.5;
  }

  :is(.section-heading, .section-heading__main):has(> .section-heading__icon) .section-heading__title,
  .section-heading__title--accent {
    line-height: 1.7;
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
  }

  .section-heading__lead {
    font-size: 14px;
  }

  .text-link {
    padding: 12px 0 6px;
    font-size: 13px;
  }

  /* C02：幅いっぱい、左右に分けて置く */
  .button-row {
    flex-direction: column;
    gap: 8px;
  }

  .button {
    min-height: 52px;
    padding: 14px 18px;
    font-size: 15px;
  }

  .button--primary {
    padding-block: 16px;
  }

  /* A */
  .numbered-list__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
  }

  .numbered-list__no {
    padding-top: 0;
    font-size: 12px;
  }

  .numbered-list__title {
    font-size: 17px;
  }

  .numbered-list__body p {
    font-size: 14px;
  }

  /* C05：縦に積んで ↓ でつなぐ */
  .cycle {
    gap: 10px;
    padding: 24px 20px;
    text-align: center;
  }

  .cycle__title {
    margin-bottom: 6px;
    font-size: 13px;
    text-align: left;
  }

  .cycle__steps {
    grid-template-columns: 1fr;
    row-gap: 44px;
  }

  /* 「番号＋動詞」の下に「サービス名｜説明」を1行で */
  .cycle__link {
    align-items: center;
    gap: 2px;
    padding: 12px;
  }

  .cycle__more {
    padding-top: 6px;
  }

  .why__more {
    font-size: 13px;
  }

  .cycle__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .cycle__sub {
    display: block;
    color: var(--sh-muted);
    font-size: 12px;
  }

  .cycle__service {
    font-weight: 400;
  }

  .cycle__service::after {
    content: "｜";
  }

  .cycle__step:not(:last-child)::after {
    top: 100%;
    right: 0;
    left: 0;
    width: auto;
    transform: none;
    font-size: 16px;
    line-height: 44px;
    content: "↓" / "";
  }

  .cycle__name {
    font-size: 16px;
  }

  .cycle__loop {
    height: auto;
    margin: 0;
    padding-top: 6px;
    border: 0;
  }

  .cycle__loop::before {
    display: none;
  }

  .cycle__loop-text {
    position: static;
    padding: 0;
    transform: none;
    background: none;
    white-space: normal;
  }

  .cycle__note {
    margin-top: 4px;
    text-align: left;
  }

  /* C04：最後の「状況をお聞かせください」は赤茶のボタンにする */
  .checklist {
    grid-template-columns: 1fr;
  }

  .checklist__item {
    gap: 12px;
    padding: 16px 0;
    font-size: 15px;
  }

  .checklist__item::before {
    width: 6px;
    height: 6px;
  }

  .checklist__item:nth-last-child(2) {
    border-bottom: 1px solid var(--sh-line);
  }

  .checklist__item--link {
    margin-top: 28px;
    padding: 0;
    border-top: 0;
  }

  .checklist__item--link a {
    align-items: center;
    min-height: 52px;
    padding: 16px 18px;
    border-radius: var(--sh-radius);
    background: var(--sh-accent);
    color: #fff;
    font-size: 15px;
  }

  /* C03 --service */
  .services {
    gap: 28px;
    margin-top: 16px;
  }

  .services__title {
    font-size: 19px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card--service {
    gap: 8px;
    padding: 20px;
  }

  .card--service .card__no {
    font-size: 12px;
  }

  .card--service .card__title {
    font-size: 17px;
  }

  .card--service-main {
    gap: 12px;
    padding: 24px 20px;
  }

  .card--service-main .card__title {
    font-size: 19px;
  }

  .card--service-main .card__body {
    font-size: 14px;
    line-height: 1.85;
  }

  .link-list a {
    min-height: 44px;
    padding: 13px 0;
    font-size: 14px;
  }

  /* C03 カードの並び（料金のページの費用の決まり方など） */
  .card-grid {
    gap: 10px;
  }

  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  /* C03 --reason */
  .card-grid--reasons {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card--reason {
    gap: 10px;
    padding-top: 20px;
  }

  .card--reason .card__no {
    font-size: 12px;
  }

  .card--reason .card__title {
    font-size: 18px;
  }

  .card--reason .card__body {
    font-size: 14px;
    line-height: 1.9;
  }

  /* C03 --post：日付とカテゴリの下にタイトル */
  .card--post .card__link {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 16px 0;
  }

  .card--post .card__title {
    grid-column: 1;
    font-size: 14px;
  }

  .card--post .arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .card__meta {
    gap: 8px;
    font-size: 11px;
  }

  .tag {
    padding: 1px 6px;
  }

  /* C09 */
  .note-tbd {
    padding: 16px;
    font-size: 13px;
  }

  /* C11：縦に並べて、ボタンは幅いっぱい。上の .section（56px 20px）より後に書いて、余白を詰める */
  .section--why {
    padding-bottom: 28px;
  }

  .section--notice {
    padding-top: 0;
  }

  .notice {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .notice__label {
    gap: 6px;
    font-size: 11px;
  }

  .notice__title {
    font-size: 17px;
  }

  .notice__body {
    font-size: 13px;
  }

  .notice .button {
    margin-top: 4px;
    padding: 14px 18px;
    white-space: normal;
  }

  /* C06 */
  .notes {
    font-size: 12px;
  }

  /* C08：カテゴリは出さない */
  .faq__q {
    grid-template-columns: 28px 1fr 24px;
    min-height: 44px;
    padding: 18px 0;
  }

  .faq__mark {
    font-size: 16px;
  }

  .faq__cat {
    display: none;
  }

  .faq__text {
    font-size: 15px;
  }

  .faq__icon {
    font-size: 20px;
  }

  .faq__a {
    grid-template-columns: 28px 1fr;
    padding-bottom: 20px;
  }

  .faq__a p {
    font-size: 14px;
    line-height: 1.9;
  }
}

/* =================== 全幅のページ用（料金・流れ・FAQ など） =================== */

/*
 * トップ以外で、本文を Full HTML で書いたページ（securehatters_demo.theme の wide）。
 * ページタイトルの帯のすぐ下に、トップと同じ部品のセクションを並べる。
 */
.page-header {
  padding: 72px var(--sh-gutter) 0;
  background: var(--sh-bg);
}

.page-header__inner {
  max-width: 1184px;
  margin: 0 auto;
}

.page-header h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
}

/* タイトルのすぐ下のセクション（リード文）は、上の余白を詰めてタイトルとつなげる */
.section--intro {
  padding-top: 32px;
}

.section--intro .section__inner {
  gap: 24px;
}

.lead {
  max-width: 760px;
  color: var(--sh-text);
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

/* C07 ステップの列の数ちがい */
.steps--3 {
  grid-template-columns: repeat(3, 1fr);
}

.steps--8 {
  grid-template-columns: repeat(8, 1fr);
}

/* 項目と値の一覧（費用の例、ステップの期間の目安など） */
.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.spec-list dt {
  color: var(--sh-muted);
  font-weight: 500;
}

.spec-list dd {
  margin: 0;
  color: var(--sh-text);
}

/* 費用の例のカード（C03 --service の形で、リンクにしないもの） */
.card--example .spec-list {
  margin-top: 6px;
}

/*
 * ステップの詳しい説明（/flow）
 * C07 のスマホの形（黒い四角に番号）を大きくして、ステップごとに説明・期間・お願いすることを書く。
 */
.step-detail__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--sh-line);
}

.step-detail__item:last-child {
  border-bottom: 1px solid var(--sh-line);
}

.step-detail__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--sh-radius);
  background: var(--sh-black);
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
}

/* ステップのあとに続くもの（アフターサポート・オプション）は、枠線だけの四角 */
.step-detail__item--extra .step-detail__no {
  border: 1.5px solid var(--sh-black);
  background: transparent;
  color: var(--sh-black);
}

.step-detail__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.step-detail__text {
  color: var(--sh-text);
  font-size: 15px;
  line-height: 1.9;
  text-wrap: pretty;
}

.step-detail .spec-list {
  margin-top: 4px;
  padding: 16px 20px;
  border: 1px solid var(--sh-line-header);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}

.step-detail__note {
  color: var(--sh-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* 短い見出し・質問は、2行になるとき最後の行に1〜2文字だけ残らないようにする */
.card__title,
.steps__title,
.step-detail__title,
.faq__text {
  text-wrap: balance;
}

/* 文章の中のリンクは、赤茶の下線でリンクだとわかるようにする */
:is(.lead, .section-heading__lead, .step-detail__text, .spec-list dd) a {
  color: var(--sh-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* C08 の回答のあとの、問い合わせへのリンク（各回答の最後に問い合わせへの導線を置く） */
.faq__a p.faq__more {
  margin-top: 12px;
}

.faq__more a {
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .steps--3,
  .steps--8 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-header {
    padding: 40px 20px 0;
  }

  .page-header h1 {
    font-size: 28px;
    line-height: 1.45;
  }

  .section--intro {
    padding-top: 20px;
  }

  .lead {
    font-size: 14px;
  }

  .spec-list {
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 13px;
  }

  .spec-list dd + dt {
    margin-top: 8px;
  }

  .step-detail__item {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .step-detail__no {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-detail__title {
    font-size: 17px;
  }

  .step-detail__text {
    font-size: 14px;
  }

  .step-detail .spec-list {
    padding: 12px 14px;
  }
}

/* ---------- 会社概要の表（運営会社のページ） ---------- */

.company-table {
  width: 100%;
  border-top: 1px solid var(--sh-line);
  border-collapse: collapse;
  line-height: 1.8;
}

.company-table :is(th, td) {
  padding: 24px 16px;
  border-bottom: 1px solid var(--sh-line);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 200px;
  font-size: 15px;
  font-weight: 700;
}

.company-table td {
  color: var(--sh-text);
  font-size: 16px;
}

/* 表の中のリンク（提供サービス・Webサイト）は、ふつうの文字と見分けがつくように下線 */
.company-table td a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* スマホは項目名の下に中身 */
@media (max-width: 767px) {
  .company-table :is(tr, th, td) {
    display: block;
    width: auto;
  }

  .company-table th {
    padding: 20px 0 4px;
  }

  .company-table td {
    padding: 0 0 20px;
    border-bottom: 1px solid var(--sh-line);
  }

  .company-table th {
    border-bottom: 0;
  }
}

/* ---------- お知らせ・コラムの記事のページ（templates/content/node--news--full.html.twig） ---------- */

/* タイトルの下の日付とカテゴリ。h1 の下の余白（32px）を詰めて、タイトルに寄せる */
.news-article__meta {
  margin: -16px 0 40px;
}

/* 本文の dl（登録の内容など）は、会社概要の表と同じく、左に項目・右に中身の表にする */
.news-article dl {
  display: grid;
  grid-template-columns: 11em 1fr;
  margin: 0;
  border-top: 1px solid var(--sh-line-header);
}

.news-article dt,
.news-article dd {
  margin: 0;
  padding: 14px 4px;
  border-bottom: 1px solid var(--sh-line-header);
}

.news-article dt {
  font-weight: 700;
}

@media (max-width: 767px) {
  .news-article dl {
    grid-template-columns: 1fr;
  }

  .news-article dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .news-article dd {
    padding-top: 4px;
  }
}

/* 記事の最後の「監修」の囲み（2026-10-08。docs/briefs/llm-security-column-brief.md のプロフィール）。
   本文が Full HTML の記事で <aside class="supervisor"> と書く（scripts/create_news.php の「書式：full_html」） */
.news-article .supervisor {
  margin: 56px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--sh-line-header);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}

.news-article .supervisor__label {
  margin: 0 0 8px;
  color: var(--sh-accent);
  font-size: 13px;
  font-weight: 700;
}

.news-article .supervisor__name {
  margin: 0 0 8px;
  color: var(--sh-black);
  font-size: 17px;
  font-weight: 700;
}

.news-article .supervisor__name small {
  margin-left: 8px;
  color: var(--sh-muted);
  font-size: 13px;
  font-weight: 400;
}

.news-article .supervisor__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 767px) {
  .news-article .supervisor {
    margin-top: 40px;
    padding: 20px;
  }
}
