/*
  案 A の見た目。トップは「分解図」（.xv：作るものを 5 つの層に分けた技術図面）、
  記事 notes/php2shell-wordpress/ は「船の隔壁」（.ship：製図の線で描いた船の縦断面図）。
  色は霧の白・墨・青緑（--accent）の 3 つ。穴だけ小さく朱（--breach）。
  共通の部品と動きは site.css（先に読む）。図の段の切り替えは assets/js/ship.js。

  第 4 版（2026-10-22「AI っぽさを消す」）の決まり —— brief.md の「AI っぽさを消す決まり」に合わせた:
  - 中央の 1 本の軸。見出し・導入・ボタンは中央、一覧・表・フォームは中央に置いた列（--col）の中で左
  - 字の大きさは 6 段（--t-xs〜--t-xxl）だけ。ほかの大きさを書かない。大きな和文の見出しは細く（300）
  - 節の間は 1 つの値（--sec-gap）。節の中は詰める（見出しから中身まで --gap-head）
  - 箱・影・グラデーション・背景の格子を使わない。角は 0 と、押すボタンの完全な丸（ピル）の 2 つだけ。区切りは余白と 1px の罫
  - ボタンは「相談する」の 1 種だけ（ピル形。LP と同じ寸法）。途中の節は文字のリンク（.text-link）
*/
/*
  ↓ の「lp-studio:tokens」の中は、案の配色と書体から自動で書き出される
  （`variant.yml` の palette / font）。**手で書き換えても build のたびに戻る**。
*/
:root {
  /* lp-studio:tokens:start */
  --bg: #eef1ef;
  --surface: #e2e8e5;
  --ink: #0f1a1e;
  --ink-dim: #4f5d63;
  --accent: #0b6474;
  --accent-ink: #ffffff;
  --line: #c7d1cc;
  --font: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-display: "IBM Plex Sans JP", "Hiragino Sans", sans-serif;
  /* lp-studio:tokens:end */

  /* 字の大きさは 6 段だけ（広い画面）。ページのどこもここから引く */
  --t-xs: 13px; /* 札・日付・図の説明・注記 */
  --t-s: 15px; /* ナビ・一覧の説明・フォーム */
  --t-m: 17px; /* 本文・導入・小さな見出し */
  --t-l: 24px; /* 一覧の見出し */
  --t-xl: 40px; /* 節の見出し・料金の数字 */
  --t-xxl: 64px; /* ページの題（1 ページに 1 つ） */

  /* 寸法 */
  --maxw: 1200px;
  --col: 760px; /* 一覧・表・フォームを置く中央の列 */
  --text: 36em; /* 導入文の幅（30〜40 字） */
  --gutter: clamp(20px, 6vw, 96px);
  --sec-gap: 144px; /* 節と節の間（同じ値で繰り返す）。上質なサイトの実測で PC 96〜160px。176 は広すぎた */
  --gap-head: 40px; /* 節の見出しから中身まで */
  --radius: 0;
  --header-h: 64px;
  /* 罫で区切った行（強み・3 人・進め方）の 2 つ目の列の左端。節をまたいでそろえる */
  --key-w: 188px;
  --key-gap: 32px;

  --head-font: var(--font-display);
  --head-weight: 300;
  --head-tracking: 0.06em;
  --mono: "IBM Plex Mono", "IBM Plex Sans JP", ui-monospace, Menlo, monospace;
  --breach: #c2412d;
  --rule: color-mix(in srgb, var(--ink) 78%, var(--bg));
  /* レイアウトの出し方（控えめに 1 回だけ） */
  --ease-l: cubic-bezier(0.25, 1, 0.33, 1);
}

@media (max-width: 1099px) {
  :root {
    --t-xl: 34px;
    --t-xxl: 48px;
    --sec-gap: 120px;
  }
}

@media (max-width: 767px) {
  :root {
    --t-s: 14px;
    --t-m: 16px;
    --t-l: 20px;
    --t-xl: 26px;
    --t-xxl: 32px;
    --sec-gap: 80px; /* スマホは 56〜100px */
    --gap-head: 28px;
    --gutter: 20px;
    --header-h: 56px;
  }
}

/* ---------------------------------------------------------- 字 */

body {
  font-size: var(--t-m);
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: normal;
}

h1,
h2,
h3 {
  font-feature-settings: "palt";
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: var(--head-tracking);
}

h3 {
  font-weight: 500;
  letter-spacing: 0.04em;
}

strong,
b {
  font-weight: 500;
}

.num {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* 英字の大きな名前（Notes）。欧文は字間を詰める */
.latin-title {
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* 手で切る：広い画面だけで改行 */
.br-pc {
  display: none;
}

@media (min-width: 768px) {
  .br-pc {
    display: inline;
  }
}

/* 文節で折る（「アプ/リ」「ホー/ムページ」のように語の途中で割れないように） */
p,
li,
dd,
dt,
summary,
figcaption,
.feature-h,
.feature-sum,
.nidx-name,
.nidx-sum {
  word-break: auto-phrase;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------- ヘッダー */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  width: 22px;
  height: 22px;
  flex: none;
}

.lm-a {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.lm-b,
.lm-c {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
}

/* ヘッダーの「相談する」：ページ全体で 1 種のボタンと同じピル形を小さく（高さ 40・左右 20・字 13） */
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease);
}

.header-cta:hover {
  background: var(--ink);
}

/* フッターが見えている間は引っ込める（フッターに「お問い合わせ」がある。ship.js が .is-foot を付ける） */
.header-cta {
  transition:
    background-color 0.18s var(--ease),
    opacity 0.2s var(--ease),
    visibility 0.2s;
}

.site-header.is-foot .header-cta {
  opacity: 0;
  visibility: hidden;
}

.nav-toggle {
  display: grid;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  place-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/*
  狭い画面：三本線を押すと、ヘッダーのすぐ下から画面いっぱいに開く（一般的な形。以前は下から上がるシートで
  「メニューが下に出る」と言われた）。項目は中央、最後に「相談する」。罫はヘッダーの下の 1 本だけ
  （一覧の上には引かない＝2 本重ならない）。ヘッダーに transform・backdrop-filter を付けると、
  この fixed がヘッダーの高さに閉じ込められるので付けない
*/
@media (max-width: 1199px) {
  .nav-toggle {
    position: relative;
    z-index: 2;
  }

  .site-nav {
    position: fixed;
    z-index: 1;
    inset: var(--header-h) 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s var(--ease),
      visibility 0.2s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
  }

  /* 開いている間は、ヘッダーの下の罫を出す（一覧との境はこの 1 本だけ） */
  .site-header:has(.site-nav[data-open]) {
    border-bottom-color: var(--line);
  }

  /* 開いている間、ヘッダーの小さな「相談する」は隠す（一覧の最後に同じものがある） */
  .site-header:has(.site-nav[data-open]) .header-cta {
    visibility: hidden;
  }

  .site-nav ul {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .site-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    font-size: var(--t-m);
  }

  .site-nav li:nth-last-child(2) a {
    border-bottom: 0;
  }

  .site-nav .nav-cta {
    padding-top: 24px;
  }

  .site-nav .nav-cta a.button {
    display: flex;
    width: 100%;
    max-width: 420px;
    min-height: 52px;
    margin-inline: auto;
    border-bottom: 0;
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  /* 広い画面（1200px 以上）のヘッダーは 6 項目＋右端の「お問い合わせ」。節名を長くしたので、1 段に入りきらない 1199px 以下は三本線へ畳む。会社の紹介（.nav-sp）は狭い画面のメニューとフッターにだけ */
  .nav-toggle,
  .site-nav .nav-cta,
  .site-nav .nav-sp {
    display: none;
  }

  .header-inner {
    gap: 40px;
  }

  .site-nav ul {
    display: flex;
    gap: 32px;
  }

  .site-nav li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    font-size: var(--t-xs);
    letter-spacing: 0.08em;
    transition: color 0.18s var(--ease);
  }

  .site-nav li a:hover,
  .site-nav li a[aria-current="true"] {
    color: var(--accent);
  }
}

/* ---------------------------------------------------------- 節（中央の 1 本の軸） */

.sec {
  padding-top: var(--sec-gap);
}

main > .sec:last-child,
main > .sec-contact {
  padding-bottom: var(--sec-gap);
}

/* メニューで飛んだとき、節の見出しが固定ヘッダーのすぐ下（48px）に来るように */
.sec[id] {
  scroll-margin-top: calc(var(--header-h) + 48px - var(--sec-gap));
}

.sec-head {
  text-align: center;
}

.sec-head h2 {
  margin: 0;
  font-size: var(--t-xl);
}

/*
  節の名前（和文。メニュー・フッターと同じ言葉）。コピーだけが見出しだと「問い合わせがどこか分からない」と
  言われたので、何の節かを見出しの上に置く。英字の飾りラベルにはしない
*/
.sec-kicker {
  margin: 0 0 12px;
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.sec-intro {
  max-width: var(--text);
  text-wrap: balance;
  margin: 16px auto 0;
  color: var(--ink-dim);
}

.sec-action {
  margin: 32px 0 0;
}

/* 一覧・表・フォームを置く中央の列。中の文は左揃え */
.col {
  width: min(100% - var(--gutter) * 2, var(--col));
  margin-inline: auto;
}

.container.col {
  width: min(100% - var(--gutter) * 2, var(--col));
}

/* 余白を引いた .container の中の列は、もう一度余白を引かない（記事の進め方・読みもの一覧が、
   狭い画面でほかの列より 40px 細くなり、左端がそろわなかった） */
.container .col {
  width: min(100%, var(--col));
}

.sec-head + .col,
.sec-head + .ship-stage,
.sec-head + .ship-steps {
  margin-top: var(--gap-head);
}

.col-note {
  max-width: 38em;
  margin: 24px 0 0;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  color: var(--ink-dim);
}

.col-more {
  margin: 24px 0 0;
  text-align: center;
}

/*
  ボタンは 1 種（相談する・送信する・移行を相談する）。LP と同じ寸法のピル形：高さ 52・左右 32・字 15・太さ 500・
  字間 0.06em・青緑の地、hover は墨。浮かせない（影なし）。角ばった四角は「美しくない」と言われた
*/
.button {
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: #0b6474;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  transition: background-color 0.18s var(--ease);
}

.button:hover {
  background: #0f1a1e;
  color: #ffffff;
}

/* スマホ：高さ 52・左右の余白の内側で幅いっぱい（最大 420px）。縦に積む */
@media (max-width: 767px) {
  .button {
    display: flex;
    width: 100%;
    max-width: 420px;
    min-height: 52px;
    margin-inline: auto;
  }

  .form .button {
    justify-self: stretch;
    min-width: 0;
  }
}

/* 焦点の輪はピルに沿わせ、地から少し離す */
.button:focus-visible,
.header-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.button::after,
.text-link::after {
  content: "→";
  display: inline-block;
  font-family: var(--mono);
  font-weight: 400;
  transition: transform 0.18s var(--ease);
}

.text-link::after {
  margin-left: 10px;
}

/*
  文字のリンク（途中の節の行き先）。下線は字だけに引き、矢印には引かない
  （inline-flex だと矢印にも別の下線が付き、字と矢印の間で線が切れて見えた）
*/
.text-link {
  display: inline-block;
  padding: 10px 0;
  line-height: 24px;
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

@media (hover: hover) {
  .button:hover::after,
  a:hover > .text-link::after,
  .text-link:hover::after {
    transform: translateX(4px);
  }
}

/* 一覧の行（罫で区切る）。強み・3 人・料金・進め方・質問・詳しい技術の説明で共通 */
.rows {
  list-style: none;
  margin-block: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.rows > li,
.rows > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.rows h3 {
  margin: 0;
  font-size: var(--t-m);
  line-height: 1.6;
}

.rows p {
  margin: 0;
}

.tag {
  color: var(--accent);
  font-weight: 500;
}

/* ---------------------------------------------------------- FV */

.hero {
  padding-top: calc(var(--header-h) + 112px);
}

.hero-copy {
  text-align: center;
}

.hero-kicker {
  margin: 0 0 24px;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}

.hero-title {
  margin: 0;
  font-size: var(--t-xxl);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.hero-lead {
  max-width: 40em;
  margin: 32px auto 0;
  color: var(--ink-dim);
  text-wrap: balance;
}

.hero-actions {
  margin-top: 40px;
}

.hero-xv-figure {
  width: min(100% - var(--gutter) * 2, 520px);
  margin: 88px auto 0;
}

/* 図の札（右）があるぶん、板の中心が左に寄る。板を軸へ寄せる
   （6% では板の中心が軸から 60px 左だった。札の右端が図の枠に収まる 12% まで） */
.hero-xv-figure .xv {
  translate: 12% 0;
}

/* 右へずらした板が狭い画面で 1px はみ出すので、図の枠で切る */
.hero-xv-figure {
  overflow-x: clip;
}

.hero-cap {
  margin-top: 8px;
  font-size: var(--t-xs);
  color: var(--ink-dim);
  text-align: center;
}

@media (max-width: 767px) {
  .hero {
    padding-top: calc(var(--header-h) + 56px);
  }

  .hero-kicker {
    margin-bottom: 16px;
    letter-spacing: 0.1em;
  }

  .hero-lead {
    margin-top: 24px;
  }

  .hero-actions {
    margin-top: 32px;
  }

  .hero-xv-figure {
    margin-top: 56px;
  }
}
/* ---------------------------------------------------------- 固定した図の節（トップの「できること」・記事の船） */

/*
  止まった形（JS が無い・動かさない設定）：段を縦に並べ、段ごとに止まった図（.ship-mini）を文の上に出す。
  動く形：図を画面に固定し、文（.step-body）は図の下の決まった位置に止まって、段ごとに入れ替わる。
*/
.ship-stage {
  display: none;
}

.ship-steps {
  list-style: none;
  width: min(100% - var(--gutter) * 2, var(--col));
  margin: var(--gap-head) auto 0;
  padding: 0;
}

.ship-step {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.ship-step:first-child {
  border-top: 1px solid var(--rule);
}

.ship-mini {
  margin: 0 auto 24px;
}

.ship-mini .xv {
  max-width: 400px;
  margin-inline: auto;
}

.ship-mini .ship .t {
  font-size: 22px;
}

.ship-mini .ship .t-chip {
  font-size: 20px;
}

.ship-mini .ship .mono {
  font-size: 15px;
}

.ship-mini .ship .rn5,
.ship-mini .ship .tb {
  display: none;
}

.step-body {
  max-width: 30em;
  margin-inline: auto;
}

.step-label {
  margin: 0 0 4px;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.ship-step h3 {
  margin: 0 0 8px;
  font-size: var(--t-l);
  font-weight: 400;
  line-height: 1.5;
}

.ship-step p:not(.step-label) {
  margin: 0;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  color: var(--ink-dim);
}

.note .ship-step .num {
  font-size: var(--t-m);
  font-weight: 400;
  color: var(--accent);
}

.stage-cap {
  margin: 0 0 8px;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink-dim);
}

.ship-stage .nm-new,
.ship-stage:is([data-state="3"], [data-state="4"]) .nm-old {
  display: none;
}

.ship-stage:is([data-state="3"], [data-state="4"]) .nm-new {
  display: inline;
  color: var(--accent);
}

.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px 24px;
  margin: 8px 0 0;
  padding: 0;
  font-size: var(--t-xs);
  color: var(--ink-dim);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  display: inline-block;
}

.lg-water {
  width: 18px;
  height: 10px;
  background: color-mix(in srgb, var(--accent) 15%, var(--bg));
  border-top: 1.5px solid var(--accent);
}

.lg-hole {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--breach);
}

.lg-bh {
  width: 4px;
  height: 14px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  /*
    図の下に文を置く。--cap-h は文 4 行ぶんの高さ、--fig-h は図の高さ（幅と画面の高さの小さいほうで決まる）、
    --cap-top は文が止まる位置（図の下端のすぐ下）。どれも図の縦横比から CSS だけで出す
  */
  .js .ship-scrolly {
    --cap-h: 220px;
  }

  /*
    --fig-pad：図と文のひと組を画面の縦の中ほどに置くための上の余白。狭い画面は図が幅で決まって低くなり、
    図と文が上に寄って画面の下 1/4 が空いた（文は 3〜4 行＝およそ 160px として、残りを上下に分ける）
  */
  .js .xv-scrolly {
    --fig-h: min((100vw - var(--gutter) * 2) / 0.857, 100svh - var(--header-h) - var(--cap-h) - 32px);
    --fig-pad: max(0px, (100svh - var(--header-h) - 32px - var(--fig-h) - 160px) / 2);
    --cap-top: calc(var(--header-h) + 16px + var(--fig-pad) + var(--fig-h) + 16px);
  }

  .js .note-scrolly {
    /* 船の図は横 2.02：縦 1。上に「いまの WordPress」、下に凡例（それぞれ 33px） */
    --fig-w: min(100vw - var(--gutter) * 2, 1000px, (100svh - var(--header-h) - var(--cap-h) - 120px) * 2.02);
    --fig-pad: max(0px, (100svh - var(--header-h) - 106px - var(--fig-w) / 2.02 - 160px) / 2);
    --cap-top: calc(var(--header-h) + 16px + var(--fig-pad) + 66px + var(--fig-w) / 2.02 + 24px);
  }

  .js .ship-stage {
    position: sticky;
    top: var(--header-h);
    z-index: 0;
    display: block;
    height: calc(100svh - var(--header-h));
    margin-top: var(--gap-head);
    padding-top: calc(16px + var(--fig-pad, 0px));
    overflow: hidden;
  }

  .js .stage-inner {
    width: min(100% - var(--gutter) * 2, var(--maxw));
    margin-inline: auto;
  }

  .js .ship-mini {
    display: none;
  }

  /* 段は図の上に重ねる（見えるのは文だけ）。最初の文が図の下に来るところから始める */
  .js .ship-steps {
    position: relative;
    z-index: 1;
    width: min(100% - var(--gutter) * 2, var(--col));
    margin: calc(var(--header-h) - 100svh) auto 0;
    padding: calc(var(--cap-top) - var(--header-h)) 0 0;
    pointer-events: none;
  }

  /*
    段の高さは 80svh。次の段を文の高さぶん前の段に重ねるので、次の文が上がってきた時点では前の文は
    まだ同じ位置に止まっている（押し上げられて図に重ならない）。替わるのは透明度だけ
  */
  .js .ship-step {
    height: 80svh;
    margin-bottom: calc(var(--cap-h) * -1);
    padding: 0;
    border: 0;
  }

  .js .ship-step:last-child {
    height: calc(100svh - var(--cap-top));
    margin-bottom: 0;
  }

  /*
    札の文と図は同じ時間で入れ替える（--swap：消える時間、--swap-delay：出る側の遅れ）。
    分解図は上の画面と札の言葉が透けて重ならないよう、消えきってから出す。船の図は図の透明度（0.5s）に合わせる
  */
  .js .xv-scrolly {
    --swap: 0.25s;
    --swap-delay: 0.2s;
  }

  .js .note-scrolly {
    --swap: 0.5s;
    --swap-delay: 0s;
  }

  .js .step-body {
    position: sticky;
    top: var(--cap-top);
    pointer-events: auto;
    opacity: 0;
    transition: opacity var(--swap, 0.3s) var(--ease);
  }

  .js .ship-step[data-active] .step-body {
    transition-delay: var(--swap-delay, 0s);
  }

  /* 最後の段は止めない。図と同じときに一緒に流れ出す（止めると図が去ったあとも文だけ残った） */
  .js .ship-step:last-child .step-body {
    position: relative;
    top: auto;
  }

  .js .ship-step[data-active] .step-body,
  .js .ship-scrolly:not(.is-live) .ship-step:first-child .step-body {
    opacity: 1;
  }

  .js .xv-scrolly .stage-inner .xv {
    width: calc(var(--fig-h) * 0.857);
    max-width: 100%;
    margin-inline: auto;
    translate: 6% 0;
  }

  .js .note-scrolly .stage-inner {
    width: var(--fig-w);
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .js .ship-scrolly {
    --cap-h: 250px;
  }

  .js .ship-step h3 {
    margin-bottom: 4px;
  }
}

/* ---------------------------------------------------------- 強み */

.craft > li {
  display: grid;
  gap: 6px;
}

.row-label {
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.craft h3 {
  font-size: var(--t-l);
  font-weight: 400;
  line-height: 1.5;
}

.craft h3 + p {
  margin-top: 8px;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  color: var(--ink-dim);
}

/*
  広い画面：札（セキュリティ など）を見出しの上に置き、行ごと中央に（以前は左に札・右に見出しと文の
  2 段組みで、中身が右へ寄り、左の札の列が空いて偏って見えた。文は 2 行なので中央でよい）
*/
@media (min-width: 768px) {
  .craft > li {
    justify-items: center;
    gap: 4px;
    padding: 36px 0;
    text-align: center;
  }

  .craft .row-label {
    font-size: var(--t-xs);
    letter-spacing: 0.12em;
    color: var(--accent);
  }

  /* balance にすると「一次 / 回答」のように語の途中で割れたので、折り返しは既定（pretty）のまま */
  .craft h3 + p {
    max-width: 36em;
  }

  .sec-craft .col-note {
    max-width: 40em;
    margin-inline: auto;
    text-align: center;
  }
}

/* ---------------------------------------------------------- 3 人・詳しい説明（項目と値の行） */

.spec > div {
  display: grid;
  gap: 2px;
  padding: 18px 0;
}

.spec dt {
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.spec dd {
  margin: 0;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  overflow-wrap: anywhere;
}

/* 添える 1 行（学歴の研究分野の例など）。小さく薄く */
.spec dd small {
  display: block;
  margin-top: 4px;
  font-size: var(--t-xs);
  color: var(--ink-dim);
}

@media (min-width: 768px) {
  .spec > div {
    grid-template-columns: var(--key-w) minmax(0, 1fr);
    column-gap: var(--key-gap);
    align-items: baseline;
  }
}

/*
  3 人の事実は 2 行だけの短いもの。左に項目・右に値の表にすると、値が左に寄って右が空いた。
  項目を値の上に小さく置いて、行ごと中央に
*/
.team-spec > div {
  display: grid;
  grid-template-columns: none;
  justify-items: center;
  gap: 2px;
  padding: 20px 0;
  text-align: center;
}

.team-spec dd {
  font-size: var(--t-m);
}

/* 学歴は添える程度：表の外に小さな 1 行で（目立たせすぎない） */
.team-edu {
  max-width: 40em;
  margin: 20px auto 0;
  font-size: var(--t-xs);
  line-height: 1.8;
  color: var(--ink-dim);
  text-align: center;
}

.team-pod {
  margin: 24px 0 0;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  color: var(--ink-dim);
  text-align: center;
}

.team-pod a {
  display: inline-block;
  padding: 10px 0;
  color: var(--accent);
  text-underline-offset: 5px;
}

/* ---------------------------------------------------------- 読みもの（トップの注目 1 本） */

.latin-title {
  font-size: var(--t-xl);
}

.sec-notes .sec-intro {
  margin-top: 4px;
}

/* 注目の 1 本：罫で上下を区切った 1 つの面。全体が記事への入口（ボタンは置かない） */
.feature {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 0 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
}

.feature-figure {
  display: block;
  width: min(100%, 300px);
  margin-bottom: 12px;
}

.feature-meta,
.nidx-meta,
.note-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.feature-h {
  font-size: var(--t-l);
  line-height: 1.5;
  text-wrap: balance;
  transition: color 0.18s var(--ease);
}

.feature-sum {
  max-width: 34em;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  color: var(--ink-dim);
  text-align: left;
}

/* 広い画面は 3 行に収まるので中央（狭い画面は 4 行を超えるので左） */
@media (min-width: 768px) {
  .feature-sum {
    text-align: center;
    text-wrap: balance;
  }
}

@media (hover: hover) {
  .feature:hover .feature-h {
    color: var(--accent);
  }
}

.mship {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------- 料金 */

.price > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 28px 0;
}

.price dt {
  font-weight: 500;
}

.price dt small {
  display: block;
  margin-top: 4px;
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--ink-dim);
}

.price dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.price dd .num {
  display: inline-block;
  min-width: 1.2ch;
  margin-right: 4px;
  font-size: var(--t-xl);
  line-height: 1;
  text-align: right;
}

@media (max-width: 559px) {
  .price > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .price dd .num {
    min-width: 0;
  }

  .price dd {
    margin-top: 8px;
    text-align: left;
  }
}

/* ---------------------------------------------------------- 進め方（番号を付けるのはここだけ） */

.process > li {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  column-gap: 16px;
  align-items: baseline;
}

.pr-no {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--accent);
}

.process h3 {
  font-size: var(--t-m);
}

.process p {
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  color: var(--ink-dim);
}

@media (min-width: 768px) {
  /* 番号＋見出しで、強み・3 人の項目と同じ幅（3 つ目の列の左端をそろえる） */
  .process > li {
    grid-template-columns: 2.5em calc(var(--key-w) - 2.5em) minmax(0, 1fr);
    column-gap: 16px;
  }

  .pr-no {
    grid-row: auto;
  }
}

/* ---------------------------------------------------------- よくある質問 */

.faq {
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  padding: 22px 40px 22px 0;
  font-size: var(--t-m);
  font-weight: 400;
  line-height: 1.7;
}

.faq summary::before {
  content: none;
}

.faq summary::after {
  width: 8px;
  height: 8px;
  border-width: 0 1px 1px 0;
  color: var(--ink-dim);
}

.faq details > div {
  padding: 0 0 24px;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
}

.faq details > div p {
  max-width: 38em;
  margin: 0;
}

.faq a {
  color: var(--accent);
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------- 相談 */

.col-form {
  --col: 600px;
}

.form {
  max-width: none;
  gap: 24px;
}

.form label {
  font-size: var(--t-s);
  font-weight: 500;
}

.form .req,
.form .opt {
  padding: 0;
  background: none;
  font-size: var(--t-xs);
  font-weight: 400;
}

.form .req {
  color: var(--accent);
}

.form .opt {
  color: var(--ink-dim);
}

.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  border-color: color-mix(in srgb, var(--ink) 28%, var(--bg));
  border-radius: 0;
  background: transparent;
}

.form input::placeholder {
  color: var(--ink-dim);
}

.form-purpose {
  margin: 0;
  font-size: var(--t-xs);
  color: var(--ink-dim);
}

.form .button {
  justify-self: center;
  min-width: 14em;
  justify-content: center;
}

.form-status {
  font-size: var(--t-s);
  text-align: center;
}

/* ---------------------------------------------------------- フッター */

.site-footer {
  margin-top: 0;
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.footer-inner .logo {
  margin-right: 0;
}

.footer-tag {
  margin: 0;
  font-size: var(--t-xs);
  color: var(--ink-dim);
}

.footer-nav {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 28px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* 運営情報：事業名と連絡先（メールは文字のまま見せる） */
.footer-info {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  font-size: var(--t-xs);
}

.footer-info > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 12px;
}

.footer-info dt {
  color: var(--ink-dim);
}

.footer-info dd {
  margin: 0;
}

.footer-info a,
.form-mail a {
  color: var(--accent);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.form-mail {
  margin: 0;
  font-size: var(--t-xs);
  color: var(--ink-dim);
  text-align: center;
}

.copyright {
  margin: 12px 0 0;
  font-size: var(--t-xs);
  color: var(--ink-dim);
}

/* ---------------------------------------------------------- 読みもの：パンくず（一覧・記事） */

.breadcrumb {
  justify-content: center;
  align-items: center;
  margin: 0 0 32px;
  font-size: var(--t-xs);
}

.breadcrumb a {
  display: inline-block;
  padding: 10px 0;
}

/* ---------------------------------------------------------- 読みもの：一覧 */

.notes-hero {
  text-align: center;
}

.notes-h1 {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--t-m);
  line-height: 1.4;
}

.notes-h1 .latin-title {
  font-size: var(--t-xxl);
  line-height: 1.1;
}

.notes-sub {
  font-weight: 400;
  color: var(--ink-dim);
}

.notes-hero .hero-lead {
  margin-top: 24px;
}

.notes-list {
  padding-bottom: var(--sec-gap);
}

/* 一覧は題の続き（別の節ではない）。節の間の広い余白を空けると、題と一覧が離れて画面が間延びした */
.sec.notes-list {
  padding-top: 88px;
}

@media (max-width: 767px) {
  .sec.notes-list {
    padding-top: 56px;
  }
}

/* 読み上げだけの見出しも字の段から外さない */
.notes-list h2.visually-hidden {
  font-size: var(--t-m);
}

.nidx-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.notes-list .filters {
  justify-content: center;
  gap: 4px 24px;
  margin: 0;
}

/* 札の絞り込み：箱にしない。文字と下線だけ */
.notes-list .filters button {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ink-dim);
  font-size: var(--t-s);
}

.notes-list .filters button[aria-pressed="true"] {
  background: none;
  color: var(--ink);
  border-bottom-color: var(--ink);
}

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

.nidx-row {
  border-bottom: 1px solid var(--line);
}

.nidx-row a {
  display: grid;
  gap: 24px;
  padding: 40px 0;
  text-decoration: none;
}

.nidx-main {
  display: grid;
  gap: 8px;
}

.nidx-meta {
  justify-content: flex-start;
}

.nidx-name {
  font-size: var(--t-l);
  line-height: 1.5;
  text-wrap: balance;
  transition: color 0.18s var(--ease);
}

.nidx-sum {
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  color: var(--ink-dim);
}

.nidx-fig {
  display: block;
  width: min(100%, 260px);
}

@media (hover: hover) {
  .nidx-row a:hover .nidx-name {
    color: var(--accent);
  }
}

@media (min-width: 768px) {
  .nidx-row a {
    grid-template-columns: minmax(0, 1fr) 220px;
    column-gap: 48px;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .nidx-fig {
    order: -1;
    margin-inline: auto;
  }
}

.nidx-row.is-empty {
  padding: 24px 0;
  border-bottom: 0;
  text-align: center;
}

.nidx-next {
  font-size: var(--t-xs);
  color: var(--ink-dim);
}

/* ---------------------------------------------------------- 読みもの：記事 */

.note-hero {
  text-align: center;
}

.note-meta {
  margin: 0 0 16px;
}

.note-title {
  margin: 0;
  font-size: var(--t-xxl);
  line-height: 1.35;
}

/* 狭い画面は 1 段下げる（「PHP2ShellとWordPress」を 1 行に収める） */
@media (max-width: 767px) {
  .note-title {
    font-size: var(--t-xl);
  }
}

/* 3 コマ：箱にしない。図・何の話か・見出し 1 行を並べ、間に矢印 */
.strip {
  list-style: none;
  display: grid;
  gap: 40px;
  width: min(100%, 400px);
  margin: 72px auto 0;
  padding: 0;
}

.strip li {
  position: relative;
  display: grid;
  /* 段の高さが揃うときに、図・札・見出しを上から詰める（見出しが 2 行のコマに引っぱられて札の高さがずれた） */
  align-content: start;
  justify-items: center;
  gap: 4px;
}

.strip-fig {
  width: 100%;
  margin-bottom: 16px;
}

.strip-no {
  margin: 0;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.strip li:last-child .strip-no {
  color: var(--accent);
}

.strip-h {
  margin: 0;
  font-size: var(--t-m);
  line-height: 1.6;
}

.strip li + li::before {
  content: "↓";
  position: absolute;
  top: -36px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--mono);
  font-size: var(--t-s);
  color: var(--accent);
}

/* コマの間の矢印（li の外に出る ::before）が、出す動きの clip-path: inset(0) で切られて見えなかった。
   このコマは透明度だけで出すので、切り抜きを外す */
.js .strip li[data-anim="fade"] {
  clip-path: none;
}

/* 狭い画面：図を縦に 3 つ重ねると 1 画面目に 1 コマしか入らなかった。図（左）と文（右）の行にして 3 コマを近づける */
@media (max-width: 899px) {
  .strip {
    width: min(100%, 560px);
    gap: 32px;
    margin-top: 48px;
  }

  .strip li {
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    align-content: center;
    column-gap: 20px;
    row-gap: 2px;
    justify-items: start;
    text-align: left;
  }

  .strip-fig {
    grid-row: 1 / -1;
    align-self: center;
    margin: 0;
  }

  .strip-no {
    grid-column: 2;
    grid-row: 2;
  }

  .strip-h {
    grid-column: 2;
    grid-row: 3;
    text-wrap: balance;
  }

  .strip li + li::before {
    top: -31px;
    left: 22%;
    font-size: var(--t-m);
    line-height: 1.6;
  }
}

@media (min-width: 900px) {
  .strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px;
    width: auto;
  }

  /* 矢印は図の高さの真ん中に、図に負けない大きさで（15px では大きな図の間で点に見えた） */
  .strip li + li::before {
    content: "→";
    top: 28%;
    left: -46px;
    translate: 0 -50%;
    font-size: var(--t-l);
    line-height: 1;
  }
}

.note .ship .dim {
  opacity: 0.35;
}

/* 前 → 後の対の図：2 つずつ並べ、文は中央 */
.pairs {
  list-style: none;
  display: grid;
  gap: 72px;
  margin: var(--gap-head) auto 0;
  padding: 0;
}

.pair {
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.pair-fig {
  width: min(100%, 440px);
}

.pair-cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 440px);
  margin: 4px 0 16px;
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.pair-cap span + span {
  color: var(--accent);
}

.pair h3 {
  margin: 0 0 6px;
  font-size: var(--t-m);
}

.pair p {
  max-width: 26em;
  margin: 0;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  color: var(--ink-dim);
}

@media (min-width: 900px) {
  .pairs {
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 96px;
  }
}

.note-close .sec-head h2 {
  font-size: var(--t-xl);
}

/* 詳しく（技術的な詳細と出典）：罫で上下を区切った開閉だけ */
.note-detail {
  padding: var(--sec-gap) 0;
}

.detail {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--line);
}

.detail summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  font-size: var(--t-s);
  cursor: pointer;
  list-style: none;
}

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

.detail summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.detail[open] summary::after {
  transform: rotate(45deg);
}

.detail-body {
  padding: 8px 0 40px;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
}

.detail-body h3 {
  margin: 40px 0 12px;
  font-size: var(--t-m);
}

.detail-body h3:first-child {
  margin-top: 16px;
}

.detail-body p {
  margin: 0;
  color: var(--ink-dim);
}

.sources {
  margin: 0;
  padding-left: 1.2em;
}

.sources a {
  display: inline-block;
  padding: 8px 0;
  color: var(--accent);
  text-underline-offset: 4px;
}
/* ---------------------------------------------------------- 船の図（FV・隔壁の節・札の中で共通） */

.ship-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ship {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ship .hull-fill {
  fill: var(--bg);
}

.ship .dwl {
  stroke: var(--accent);
  stroke-width: 1.2;
}

.ship .wm {
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.7;
}

.ship .pt {
  stroke: color-mix(in srgb, var(--ink) 22%, var(--bg));
  stroke-width: 0.8;
}

.ship .cr-box {
  fill: color-mix(in srgb, var(--ink) 3%, var(--bg));
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.ship .cr-rail {
  stroke: var(--ink);
  stroke-width: 0.8;
}

.ship .cr-rib {
  stroke: var(--ink);
  stroke-width: 0.5;
  opacity: 0.32;
}

.ship .cr-plate {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 0.8;
}

.ship .water {
  fill: var(--accent);
  fill-opacity: 0.15;
}

.ship .pw {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.55;
}

.ship .water-top {
  stroke: var(--accent);
  stroke-width: 1.5;
}

.ship .tt-open {
  stroke: var(--ink-dim);
  stroke-width: 1.2;
  stroke-dasharray: 7 6;
}

.ship .tt-shut {
  stroke: var(--accent);
  stroke-width: 3;
}

.ship .tank-div {
  stroke: var(--ink);
  stroke-width: 0.9;
}

.ship .bh {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.ship .hs {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.ship .hs-win {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.7;
}

.ship .hs-rail {
  stroke: var(--ink);
  stroke-width: 0.6;
}

.ship .hull-old {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.ship .hull-new-a {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linejoin: round;
}

.ship .hull-new-b {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.6;
  stroke-linejoin: round;
}

.ship .perp {
  stroke: var(--ink-dim);
  stroke-width: 0.7;
  stroke-dasharray: 12 3 2 3;
}

.ship .bl {
  stroke: var(--ink-dim);
  stroke-width: 0.7;
  stroke-dasharray: 4 3;
}

.ship .ruler {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 0.8;
}

.ship .tb rect,
.ship .tb path {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 0.7;
}

.ship text {
  font-family: var(--font);
}

.ship .mono {
  font-family: var(--mono);
  fill: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.ship .tb text {
  font-size: 10.5px;
}

.ship .t {
  font-size: 17px;
  font-weight: 500;
  fill: var(--ink);
  letter-spacing: 0.02em;
}

.ship .t-tank,
.ship .t-admin,
.ship .t-php,
.ship .t-accent {
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.ship .t-accent {
  fill: var(--accent);
  font-weight: 700;
}

.ship .chip rect {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.2;
}

.ship .t-chip {
  font-size: 15px;
  font-weight: 700;
  fill: var(--accent);
}

.ship .chip.is-upd rect {
  stroke: var(--ink-dim);
  stroke-dasharray: 3 2;
}

.ship .chip.is-upd .t-chip {
  fill: var(--ink-dim);
}

.ship .lead {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.8;
}

.ship .hole {
  fill: var(--breach);
}

.ship .crack {
  stroke: var(--breach);
  stroke-width: 1.3;
  stroke-linecap: round;
}

.ship .flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
  marker-end: url(#mArrow);
}

.ship-defs .ma {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 段で出し入れするもの（.k）。水は下から満ちる（.rise）。隔壁は線が引かれる（.bh） */
.ship .k {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.ship .rise {
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transform-box: fill-box;
  transition: transform 1.2s var(--ease-out);
}

.ship .bh {
  transition: stroke-dashoffset 0.9s var(--ease-out) 0.1s;
}

.ship .st-old {
  opacity: 1;
}

.ship:is([data-state="3"], [data-state="4"], [data-state="h"]) .st-old {
  opacity: 0;
}

.ship:is([data-state="3"], [data-state="h"]) :is(.st-new, .st-one, .st-hole),
.ship:is([data-state="4"], [data-state="h"]) .st-hull-new,
.ship[data-state="3"] .st-perm,
.ship[data-state="4"] .st-nophp,
.ship:is([data-state="1"], [data-state="2"]) .st-flood-all,
.ship[data-state="1"] :is(.st-flow, .st-hole),
.ship[data-state="2"] :is(.st-breach, .st-upd) {
  opacity: 1;
}

.ship:is([data-state="1"], [data-state="2"]) .st-flood-all .rise,
.ship:is([data-state="3"], [data-state="h"]) .st-one .rise {
  transform: none;
}

.ship:is([data-state="3"], [data-state="h"]) .bh {
  stroke-dashoffset: 0;
}

/* 3 段目は船体の線を少し太く（話しているのは船体の板） */
.ship[data-state="2"] .hull-old {
  stroke-width: 2.6;
}

/* FV：開いたときに線から描かれる（見せ場 2）。最後に水と穴 */
.ship[data-state="h"] .draw {
  stroke-dasharray: 1;
  animation: ship-draw 1.6s var(--ease-out) both;
}

.ship[data-state="h"] .hull-new-a {
  animation-duration: 2s;
}

.ship[data-state="h"] .crate .draw {
  animation-delay: 0.35s;
}

.ship[data-state="h"] .hs {
  animation-delay: 0.2s;
}

.ship[data-state="h"] .tt-shut {
  animation-delay: 0.6s;
}

.ship[data-state="h"] .bh {
  animation: ship-draw 1s var(--ease-out) both;
  animation-delay: 0.9s;
}

.ship[data-state="h"] .st-one .rise {
  animation: ship-rise 1.2s var(--ease-out) 1.6s both;
}

.ship[data-state="h"] .st-hole {
  animation: ship-fade 0.4s var(--ease) 1.5s both;
}

@keyframes ship-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ship-rise {
  from {
    transform: scaleY(0);
  }

  to {
    transform: none;
  }
}

@keyframes ship-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 字の大きさ：図は幅に合わせて縮むので、狭いほど図の単位で大きく書く */
@media (max-width: 1279px) {
  .ship .t {
    font-size: 22px;
  }

  .ship .t-chip {
    font-size: 20px;
  }

  .ship .mono {
    font-size: 15px;
  }
}

/* 狭い画面と札の中の小さな図：線を太く（図は 0.4 倍ほどに縮む） */
@media (max-width: 599px) {
  .ship .hull-old {
    stroke-width: 2.8;
  }

  .ship[data-state="2"] .hull-old {
    stroke-width: 3.6;
  }

  .ship .hull-new-a {
    stroke-width: 10;
  }

  .ship .hull-new-b {
    stroke-width: 3.6;
  }

  .ship :is(.cr-box, .hs, .tank-div) {
    stroke-width: 2;
  }

  .ship .cr-rail,
  .ship .cr-plate {
    stroke-width: 1.3;
  }

  .ship .flow,
  .ship-defs .ma {
    stroke-width: 3;
  }

  .ship .flow {
    stroke-dasharray: 9 6;
  }

  .ship .water-top {
    stroke-width: 2.6;
  }

  .ship .bh {
    stroke-width: 7;
  }

  .ship .tt-shut {
    stroke-width: 4.5;
  }

  .ship .tt-open {
    stroke-width: 2;
    stroke-dasharray: 10 8;
  }

  .ship :is(.dwl, .wm, .lead, .chip rect) {
    stroke-width: 2;
  }

  .ship :is(.ruler, .perp, .bl) {
    stroke-width: 1.3;
  }

  .ship .st-hole circle {
    transform: scale(1.5);
    transform-box: fill-box;
    transform-origin: center;
  }

  .ship .t {
    font-size: 28px;
  }

  .ship .t-chip {
    font-size: 26px;
  }

  .ship .mono {
    font-size: 20px;
  }

  .ship .rn5,
  .ship .tb {
    display: none;
  }
}
/* ---------------------------------------------------------- 分解図（.xv） */

@property --gap {
  syntax: "<length>";
  inherits: true;
  initial-value: 100px;
}

.xv {
  --gap: 100px;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* 層 k の位置：真ん中（k=2）を動かさず、間を --gap で開く */
.xv .ly {
  transform: translateY(calc(200px + (var(--k) - 2) * var(--gap)));
}

.xv .pl-top {
  fill: var(--bg);
  fill-opacity: 0.94;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.xv .pl-side {
  fill: color-mix(in srgb, var(--ink) 9%, var(--bg));
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linejoin: round;
}

.xv .pl-side-r {
  fill: color-mix(in srgb, var(--ink) 17%, var(--bg));
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linejoin: round;
}

.xv .trace path {
  stroke: var(--ink-dim);
  stroke-width: 0.7;
  stroke-dasharray: 3 4;
}

/* いちばん上の画面（見た目）：作るものの画面を青緑の線で */
.xv .w-bar {
  fill: color-mix(in srgb, var(--accent) 18%, var(--bg));
  stroke: var(--accent);
  stroke-width: 0.9;
}

.xv .w-blk {
  fill: color-mix(in srgb, var(--accent) 9%, var(--bg));
  stroke: var(--accent);
  stroke-width: 0.9;
}

.xv .w-btn,
.xv .w-dot {
  fill: var(--accent);
}

.xv .w-col {
  fill: color-mix(in srgb, var(--accent) 55%, var(--bg));
}

.xv .w-dev {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
}

.xv .w-txt {
  stroke: var(--ink-dim);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.xv .w-row {
  stroke: var(--line);
  stroke-width: 0.8;
}

/* 下の層の模様 */
.xv .p-ln {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 1;
  stroke-linecap: round;
}

.xv .p-img {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 1;
}

.xv .p-node {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1.1;
}

.xv .p-node.is-on {
  fill: var(--accent);
  stroke: var(--accent);
}

.xv .p-dot {
  fill: var(--ink-dim);
}

.xv .p-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.xv .p-ring2 {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.8;
  stroke-dasharray: 4 3;
}

.xv .p-tick {
  stroke: var(--accent);
  stroke-width: 0.9;
}

/* 札 */
.xv .lead {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 0.8;
}

.xv .lead-dot {
  fill: var(--ink);
}

.xv text {
  font-family: var(--font);
}

.xv .t-name {
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
}

.xv .t-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  fill: var(--accent);
}

.xv .t-note {
  font-size: 13px;
  fill: var(--ink-dim);
}

.xv .tb rect,
.xv .tb path {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 0.7;
}

.xv .t-tb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  fill: var(--ink-dim);
}

/* 段：いちばん上の画面と、各層の札（作るものごとの言葉）を替える */
.xv .face,
.xv .t-note {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.xv[data-state="g"] .face-g,
.xv[data-state="0"] :is(.face-0, .n-0),
.xv[data-state="1"] :is(.face-1, .n-1),
.xv[data-state="2"] :is(.face-2, .n-2),
.xv[data-state="3"] :is(.face-3, .n-3) {
  opacity: 1;
}
/* FV：重なった状態から層に分かれる（見せ場 2）。札と組み立ての線はそのあと */
@keyframes xv-open {
  from {
    --gap: 14px;
  }

  to {
    --gap: 100px;
  }
}

@keyframes xv-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-xv .xv {
  animation: xv-open 1.5s var(--ease-out) 0.6s both;
}

.hero-xv .xv :is(.pl-lbl, .trace) {
  animation: xv-fade 0.6s var(--ease) 1.7s both;
}

.hero-xv .xv .tb {
  animation: xv-fade 0.6s var(--ease) 2s both;
}

/* 狭い画面と札の中の小さな図：字を大きく（図は 0.7 倍ほどに縮む） */
@media (max-width: 599px) {
  .xv .t-name {
    font-size: 21px;
  }

  .xv .t-num {
    font-size: 16px;
  }

  .xv .t-note {
    font-size: 18px;
  }

  .xv .tb {
    display: none;
  }

  .xv .pl-top {
    stroke-width: 1.6;
  }
}
.mship {
  display: block;
  width: 100%;
  height: auto;
}

.ms-fill {
  fill: var(--bg);
}

.ms-hull {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.ms-bh {
  stroke: var(--accent);
  stroke-width: 2.6;
}

.ms-tt {
  stroke: var(--accent);
  stroke-width: 1.4;
}

.ms-water {
  fill: var(--accent);
  fill-opacity: 0.18;
}

.ms-sea {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
}

.ms-hole {
  fill: var(--breach);
}
/* 3 コマの絵 */
.pnl {
  display: block;
  width: 100%;
  height: auto;
}

.pn-fill {
  fill: var(--bg);
}

.pn-sea {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.7;
}

.pn-water {
  fill: var(--accent);
  fill-opacity: 0.18;
}

.pn-wtop {
  stroke: var(--accent);
  stroke-width: 1.4;
}

.pn-tt {
  stroke: var(--ink-dim);
  stroke-width: 1;
}

.pn-crate {
  fill: color-mix(in srgb, var(--ink) 4%, var(--bg));
  stroke: var(--ink);
  stroke-width: 1.2;
}

.pn-bh {
  stroke: var(--accent);
  stroke-width: 3.2;
}

.pn-hull {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.pn-hull2a {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linejoin: round;
}

.pn-hull2b {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.pn-hole {
  fill: var(--breach);
}

.pn-in {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dasharray: 4 3;
}

.pn-check {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 記事の船の図：読み手の読めない記号（AP・FP・目盛り・表題欄）は薄い線だけ残す */
.note .ship .dim {
  opacity: 0.35;
}

.note .ship .dim text,
.note .ship .tb {
  display: none;
}
.pr-split {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.pr-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-box {
  fill: color-mix(in srgb, var(--ink) 3%, var(--bg));
  stroke: var(--ink);
  stroke-width: 1.3;
}

.pr-box2 {
  fill: color-mix(in srgb, var(--accent) 8%, var(--bg));
  stroke: var(--accent);
  stroke-width: 1.6;
}

.pr-dev {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.8;
}

.pr-ghost {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
}

.pr-ink {
  fill: var(--ink);
}

.pr-ln {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 1.3;
  stroke-linecap: round;
}

.pr-try {
  fill: none;
  stroke: var(--breach);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-ok {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-link {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 3 3;
}

.pr-loop {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-user {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.pr-node {
  fill: var(--accent);
}

.pr-doc {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1.1;
}

.pr-t {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink);
}
/* ---------------------------------------------------------- 動き：レイアウトの出し方は控えめに
   opacity 0→1 と 20px の移動、500ms、1 回だけ。動きの主役は図の中（下の「図の動き」） */

.js [data-anim] {
  transition:
    opacity 0.5s var(--ease-l) var(--delay, 0ms),
    transform 0.5s var(--ease-l) var(--delay, 0ms);
}

.js [data-anim="up"] {
  transform: translateY(20px);
}

.js [data-anim="lines"] .m-line {
  transition: transform 0.8s var(--ease-l);
  transition-delay: calc(var(--delay, 0ms) + var(--i, 0) * 120ms);
}

.button:active,
.header-cta:active {
  transform: translateY(1px);
}

/* ---------------------------------------------------------- 図の動き */
/* ---------------------------------------------------------- 動き（3 ページ共通）
   transform と opacity と線の描き（stroke-dashoffset）だけ。動かさない設定では全部止めて完成形 */

@keyframes draw-in {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  70% {
    opacity: 1;
    transform: scale(1.25);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes ring-out {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }

  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

@keyframes rise-in {
  from {
    transform: scaleY(0);
  }

  to {
    transform: none;
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -18;
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: none;
  }

  50% {
    transform: translateX(-6px);
  }
}
/* トップ FV：板の輪郭が描かれてから、層に分かれる */
.hero-xv .xv .pl-top {
  stroke-dasharray: 1;
  animation: draw-in 0.9s var(--ease-out) both;
}

.hero-xv .xv .ly-4 .pl-top { animation-delay: 0s; }
.hero-xv .xv .ly-3 .pl-top { animation-delay: 0.08s; }
.hero-xv .xv .ly-2 .pl-top { animation-delay: 0.16s; }
.hero-xv .xv .ly-1 .pl-top { animation-delay: 0.24s; }
.hero-xv .xv .ly-0 .pl-top { animation-delay: 0.32s; }

.hero-xv .xv .face-g,
.hero-xv .xv .pl-face {
  animation: xv-fade 0.6s var(--ease) 1.2s both;
}

/*
  できること：作るものが替わるとき、層の図は動かさず、いちばん上の画面と札の言葉だけを入れ替える。
  以前は替わるたびに層を寄せて開き直していて（--gap 100→70→100）、板と札が上下に跳ねて見えた。
  古い面が消えきってから新しい面が出るよう、出る側だけ少し遅らせる（重なって 2 枚が透けない）
*/
.xv-scrolly .xv .face,
.xv-scrolly .xv .t-note {
  transition: opacity var(--swap, 0.25s) var(--ease);
}

.xv-scrolly .xv[data-state="0"] :is(.face-0, .n-0),
.xv-scrolly .xv[data-state="1"] :is(.face-1, .n-1),
.xv-scrolly .xv[data-state="2"] :is(.face-2, .n-2),
.xv-scrolly .xv[data-state="3"] :is(.face-3, .n-3) {
  transition-delay: var(--swap-delay, 0.2s);
}
/* 記事：3 コマ。①穴が開いて水が満ちる ②更新の印が付いても水は引かない ③仕切りが立ち、船体が描き替わる */
.js .strip li[data-anim] .pn-water,
.js .strip li[data-anim] .pn-wtop {
  transform-box: view-box;
  transform-origin: 50% 98px;
  transform: scaleY(0);
}

.js .strip li.is-in .pn-water,
.js .strip li.is-in .pn-wtop {
  animation: rise-in 1.2s var(--ease-out) calc(var(--delay, 0ms) + 0.5s) both;
}

.js .strip li[data-anim] .pn-hole {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

.js .strip li.is-in .pn-hole {
  animation: pop-in 0.5s var(--ease-out) calc(var(--delay, 0ms) + 0.2s) both;
}

.pn-ring {
  fill: none;
  stroke: var(--breach);
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.js .strip li.is-in .pn-ring {
  animation: ring-out 1.2s var(--ease-out) calc(var(--delay, 0ms) + 0.5s) 2 both;
}

.js .strip li[data-anim] :is(.pn-check, .pn-bh, .pn-hull2a) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .strip li.is-in .pn-check {
  animation: draw-in 0.5s var(--ease-out) calc(var(--delay, 0ms) + 0.4s) both;
}

.js .strip li.is-in .pn-check:nth-of-type(2) { animation-delay: calc(var(--delay, 0ms) + 0.55s); }
.js .strip li.is-in .pn-check:nth-of-type(3) { animation-delay: calc(var(--delay, 0ms) + 0.7s); }
.js .strip li.is-in .pn-check:nth-of-type(4) { animation-delay: calc(var(--delay, 0ms) + 0.85s); }

.js .strip li.is-in .pn-hull2a {
  animation: draw-in 1.4s var(--ease-out) calc(var(--delay, 0ms) + 0.2s) both;
}

.js .strip li.is-in .pn-bh {
  animation: draw-in 0.6s var(--ease-out) calc(var(--delay, 0ms) + 0.9s) both;
}

/* 記事：船の断面図。穴は開いた瞬間に波紋、水の道は 3 回流れて止まる、新しい船体は描き直す */
.ship .ring {
  fill: none;
  stroke: var(--breach);
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.ship:is([data-state="1"], [data-state="3"]) .st-hole .ring,
.ship[data-state="2"] .st-breach .ring {
  animation: ring-out 1.1s var(--ease-out) 0.2s 3 both;
}

.ship[data-state="1"] .flow {
  animation: dash-flow 0.9s linear 0.4s 4;
}

.ship[data-state="2"] .st-upd {
  transition-delay: 0.1s;
}

.ship[data-state="2"] .chip.is-upd {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop-in 0.45s var(--ease-out) both;
}

.ship[data-state="4"] .hull-new-a {
  stroke-dasharray: 1;
  animation: draw-in 1.4s var(--ease-out) both;
}

.ship[data-state="3"] .st-perm {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop-in 0.45s var(--ease-out) 0.7s both;
}

/* 記事：前 → 後。右側が描かれて、確かめの印が付く */
.js .pair[data-anim] :is(.pr-ok, .pr-arrow) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .pair.is-in .pr-arrow {
  animation: draw-in 0.5s var(--ease-out) calc(var(--delay, 0ms) + 0.3s) both;
}

.js .pair.is-in .pr-ok {
  animation: draw-in 0.6s var(--ease-out) calc(var(--delay, 0ms) + 0.8s) both;
}

.js .pair[data-anim] :is(.pr-node, .pr-doc, .pr-dev, .pr-box2, .pr-ghost) {
  opacity: 0;
}

.js .pair.is-in :is(.pr-node, .pr-doc, .pr-dev, .pr-box2, .pr-ghost) {
  animation: xv-fade 0.5s var(--ease) calc(var(--delay, 0ms) + 0.6s) both;
}

.js .pair.is-in .pr-try {
  animation: nudge 0.5s var(--ease) calc(var(--delay, 0ms) + 0.2s) 3;
}

/* 一覧：図番の行の船が描かれる */
.js .nidx-row .ms-hull,
.js .nidx-row .ms-bh {
  stroke-dasharray: 1;
}

.nidx-row.is-lead[data-anim].is-in .ms-hull {
  animation: draw-in 1.4s var(--ease-out) 0.3s both;
}

.nidx-row.is-lead[data-anim].is-in .ms-bh {
  animation: draw-in 0.6s var(--ease-out) 1s both;
}

/* 動かさない設定：図の動きは全部止める（段ごとの止まった図で読む） */
@media (prefers-reduced-motion: reduce) {
  .ship *,
  .xv,
  .xv *,
  .pnl *,
  .pairsvg *,
  .mship * {
    animation: none !important;
    transition: none !important;
  }

  .pnl *:not(.pn-ring),
  .pairsvg * {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* 迷惑送信よけ（Turnstile）の置き場。設定が無い環境では空のまま場所を取らない */
.ts-slot:empty {
  display: none;
}

.ts-slot {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

/* ---------------------------------------------------------- プライバシーポリシー・サイトのご利用について */

.legal-h1 {
  margin: 0;
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.4;
  text-wrap: balance;
}

.legal-body {
  padding-top: 0;
}

.legal {
  --col: 40em; /* 1 行 40 字まで */
  display: grid;
  gap: 16px;
  font-size: var(--t-m);
  line-height: 1.9;
  text-align: left;
}

.legal h2 {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--t-l);
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.legal p,
.legal ul,
.legal dl {
  margin: 0;
}

.legal ul {
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.legal a {
  color: var(--accent);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.legal-date {
  margin: 12px 0 24px;
  font-size: var(--t-xs);
  color: var(--ink-dim);
  /* 題の真下に置く日付。題と同じ中央の軸に（左に寄ると題から外れて見えた） */
  text-align: center;
}

.legal > .legal-date {
  margin: 12px 0 24px;
}

.legal-table {
  overflow-x: auto;
}

.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-m); /* 本文は 16px 以上（--t-s は注記・操作だけ） */
  line-height: 1.7;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table thead th {
  font-weight: 500;
  color: var(--ink-dim);
  border-bottom-color: var(--ink);
}

/* 狭い画面：表を 1 行 1 枚に畳む（列名は見出しの行から足さず、行の中で縦に並べる） */
@media (max-width: 599px) {
  .legal-table thead {
    display: none;
  }

  .legal-table tr {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-table td {
    padding: 0;
    border: 0;
  }

  .legal-table td:first-child {
    font-weight: 500;
  }
}

/* 表の上端にも罫（ほかの表・一覧と同じく上を濃い罫で閉じる。以前は 1 行目の上だけ開いていた） */
.legal-dl {
  border-top: 1px solid var(--rule);
}

.legal-dl > div {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.legal-dl dt {
  color: var(--ink-dim);
}

.legal-dl dd {
  margin: 0;
}

/* フッターの規約まわりの案内 */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 20px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-xs);
  color: var(--ink-dim);
  text-underline-offset: 4px;
}

.form-purpose a {
  color: var(--accent);
  text-underline-offset: 4px;
}

/* 題は中央の軸に（本文の列は中央に置いて左揃え） */
.legal-hero .container {
  text-align: center;
}

.legal-hero .breadcrumb {
  justify-content: center;
}

/* 料金の「（税込）」は数字に添える小さな字 */
.price .tax {
  margin-left: 2px;
  font-size: var(--t-xs);
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

/* 表記の行：項目名が長いので、狭い画面では上下に積む */
@media (max-width: 599px) {
  .legal-dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/*
  中央に置いた文が 3 行を超えたら、列は中央のまま中を左揃えに（行頭がばらつくと読みにくい）。
  行数は幅で変わるので ship.js が測って .is-long を付ける。2〜3 行の文は中央のまま
*/
.is-long {
  /* 手で折った短い行（FV の導入文）でも塊が中央に来るよう、幅は中身に合わせて中央へ */
  width: fit-content;
  margin-inline: auto;
  text-align: left !important;
  text-wrap: pretty !important;
}

/* Sandbox Worksについて：3 つの専門を罫で区切った行に。見出しは中央、経験の文は列の中で左、できることは青緑 */
.team-areas {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.team-areas li {
  display: grid;
  gap: 10px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.team-areas .ta-name {
  margin: 0;
  font-size: var(--t-l);
  font-weight: 400;
  text-align: center;
}

.team-areas .ta-exp {
  margin: 0;
  font-size: var(--t-m);
  line-height: 1.9;
  color: var(--ink-dim);
  text-align: left;
}

.team-areas .ta-can {
  margin: 0;
  font-size: var(--t-m);
  line-height: 1.8;
  font-weight: 500;
  color: var(--accent);
  text-align: left;
}

.team-edu {
  margin: 24px 0 0;
  font-size: var(--t-xs);
  color: var(--ink-dim);
  text-align: center;
}
