/* RANAX 公式サイト（E3 案。D-056。見せ方の正本は docs/DESIGN.md）
   生成りの地 / 墨と青の 2 色 / 画面いっぱいの極太の欧文 / 大きな番号と太い罫線のスイス・スタイルのグリッド。
   寸法は 1440px 幅のモックに合わせ、1024〜1600px は vw で伸び縮みさせる。書体はすべて同梱（site/fonts.py）。 */

/* ---------- 書体（OFL。使用許諾は fonts/LICENSES.md） ---------- */
@font-face {
  font-family: "RX Display";
  src: url("fonts/anton.woff2?v=bcec2bd559") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "RX Sans";
  src: url("fonts/noto-sans-jp.woff2?v=d3e5d63b7c") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "RX Latin";
  src: url("fonts/inter.woff2?v=63223e172f") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "RX Hand";
  src: url("fonts/klee-one.woff2?v=a57eb80012") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- 色と寸法 ---------- */
:root {
  --paper: #f9f8f1;       /* 生成りの地 */
  --paper-hi: #fffdf7;    /* 入力欄・キャラクターの中の白 */
  --ink: #141412;         /* 墨 */
  --ink-2: #3a3a36;       /* 本文の副 */
  --ink-3: #6d6c66;       /* 注記・placeholder */
  --hair: #c9c7bd;        /* 表と入力欄の細い線 */
  --blue: #0b57e8;        /* 青（ウルトラマリン寄り） */
  --blue-deep: #0843b8;

  --gutter: 40px;
  --rule: 3px;            /* 節を区切る太い罫線 */
  --num-col: 180px;       /* 番号の列（縦の罫線まで） */
  --body-pad: 24px;       /* 縦の罫線から本文まで */

  --f-display: "RX Display", "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-sans: "RX Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --f-latin: "RX Latin", "Helvetica Neue", Arial, sans-serif;
  --f-hand: "RX Hand", "Klee One", "Hiragino Maru Gothic ProN", var(--f-sans);
}

/* ---------- 下地 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* 見やすさ（D-084）: 和文は文節で折り返し（対応ブラウザだけ）、行末の 1〜2 字の取り残しを減らす */
  word-break: auto-phrase;
  line-break: strict;
}
h1, h2, h3 { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
h1, h2, h3, p, ul, ol, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
[lang="en"] { font-family: var(--f-latin); }
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: .12em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.honeypot { position: absolute; left: -9999px; }

/* 慣性スクロール（Lenis の推奨 CSS） */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- ヘッダー ---------- */
.hd {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: start;
  gap: 0 40px;
  padding: 22px var(--gutter) 0;
}
.hd__logo, .ft__logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-latin);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: .5em;
  margin-right: -.5em;
  text-decoration: none;
}
/* ロゴの箱（D-057）。文字の大文字の高さより少しだけ大きく、上下の中央にそろえる */
.logo-mark { height: .84em; width: auto; margin-right: .36em; transform: translateY(-.02em); }
/* ロゴ脇の名乗り（D-081） */
.hd__name {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
}
.hd__tag {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .24em;
}
.hd__nav { display: flex; gap: 30px; padding-top: 11px; }
.hd__nav a, .ft__nav a {
  font-family: var(--f-latin);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s ease;
}
.hd__nav a:hover, .ft__nav a:hover { background-size: 100% 1px; }

/* 相談の入口（D-084）。青い面は送信ボタンと同じ扱い（角丸 2px・影なし） */
.hd__cta, .cta-float, .sec__cta a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
}
.hd__cta svg, .cta-float svg, .sec__cta svg { width: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
.hd__cta:hover svg, .cta-float:hover svg, .sec__cta a:hover svg { transform: translateX(4px); }
.hd__cta {
  height: 44px;
  padding: 0 18px 0 20px;
  margin-top: 1px;
  background: var(--blue);
  color: #fff;
  border-radius: 2px;
  font-size: 14.5px;
  transition: background-color .2s ease;
}
.hd__cta:hover { background: var(--blue-deep); }
/* 画面の右下に常に出す入口。ヒーローと 07 が見えている間は site.js が隠す（JS が無ければ出たまま） */
.cta-float {
  position: fixed;
  right: var(--gutter);
  bottom: 20px;
  z-index: 30;
  height: 52px;
  padding: 0 20px 0 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 2px;
  font-size: 15px;
  transition: background-color .2s ease, opacity .25s ease, transform .25s ease;
}
.cta-float:hover { background: var(--blue-deep); }
.cta-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
/* 節の終わりの小さな入口（02・03・05）。青い文字と細い下線だけ */
.sec__cta { grid-column: 2 / -1; justify-self: end; margin-top: 22px; }
.sec__cta a { color: var(--blue); font-size: 15px; padding: 6px 0; border-bottom: 1px solid currentColor; }
.sec__cta a:hover { color: var(--blue-deep); }
.menu { position: relative; }
.menu__btn {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 11px;
  width: 58px;
  padding: 6px 0;
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn span { display: block; height: 3px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.menu[open] .menu__btn span:nth-child(1) { transform: translateY(14px) rotate(20deg); }
.menu[open] .menu__btn span:nth-child(2) { opacity: 0; }
.menu[open] .menu__btn span:nth-child(3) { transform: translateY(-14px) rotate(-20deg); }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 18px);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  display: grid;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  padding: 8px 22px 18px;
}
.menu__panel > a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.menu__panel b { font-family: var(--f-display); font-weight: 400; font-size: 22px; letter-spacing: 0; }
.menu__panel > a:hover { color: var(--blue); }
.menu__sub { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 14px; font-size: 12.5px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding: 20px var(--gutter) 53px;
}
.hero__word {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: min(31.5vw, 520px);
  line-height: .86;
  letter-spacing: 0;
  margin-left: -.036em;
}
.hero__clip { display: flex; overflow: hidden; padding-top: .01em; }
.hero__clip > span { display: block; }
.hero__side {
  position: absolute;
  top: 7px;
  right: var(--gutter);
  width: 100px;
  display: grid;
  justify-items: center;
}
.hero__catch {
  writing-mode: vertical-rl;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .16em;
  height: 258px;
  white-space: nowrap;
}
.hero__for {
  justify-self: stretch;
  margin-top: 24px;
  padding: 26px 0 0 22px;
  border-top: 1px solid #9b9a92;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .28em;
}
.hero__char::after {
  content: "";
  position: absolute;
  left: 4%; right: -10%; bottom: -2px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  z-index: -1;
}
.hero__char {
  position: absolute;
  z-index: 1;
  left: 74.6vw;
  bottom: 27px;
  width: 13.4vw;
  max-width: 230px;
}

/* ---------- 節の共通 ---------- */
.sec {
  position: relative;
  display: grid;
  grid-template-columns: var(--num-col) 1fr;
  margin: 0 var(--gutter);
  padding: 22px 0 44px;
}
.sec__rule {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--rule);
  background: var(--ink);
  transform-origin: 0 50%;
}
.sec__num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 220px;
  line-height: .86;
  letter-spacing: 0;
  overflow: hidden;
  padding-top: .01em;
  margin-left: -.02em;
}
.sec__num span { display: inline-block; transform: scaleX(.85); transform-origin: 0 50%; }
.sec__body {
  position: relative;
  padding-left: var(--body-pad);
  display: grid;
  align-items: start;
}
.sec__vline {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--ink);
  transform-origin: 50% 0;
}
.sec__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  padding-top: 11px;
}
.sec__head h2 {
  margin-top: 20px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
}
.sec__lead {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.8;
  letter-spacing: .06em;
  color: var(--ink-2);
}

/* 01 わたしたちについて */
.sec--about .sec__body { grid-template-columns: 272px 1fr 158px; column-gap: 34px; }
.sec--about .sec__lead { margin-top: 30px; }
.about__scene { position: relative; aspect-ratio: 664 / 320; overflow: hidden; background: #1a7ef0; }
.about__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 58%; }
.about__hand {
  position: absolute;
  left: 5%;
  top: 12%;
  color: #fff;
  font-size: clamp(15px, 1.6vw, 23px);
  line-height: 1.75;
  transform: rotate(-12deg);
  transform-origin: 0 0;
  text-shadow: 0 0 2px rgba(0, 40, 140, .55), 0 0 14px rgba(0, 40, 140, .45);
}
.about__aside { align-self: center; font-size: 16.5px; line-height: 1.85; letter-spacing: .08em; }

/* 02 頼めること（開発が主役、運用代行はその下の小節。D-081） */
.sec--works .sec__body { grid-template-columns: 234px minmax(0, 1fr); }
.sec--works .sec__head { grid-row: 1 / span 3; }
.svcs { grid-column: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 26px; }
.svc { border-left: 1px solid var(--ink); padding: 4px 16px 6px 20px; }
/* 分野ごとの小さな絵（D-085。透過の webp、320px = 表示の 2 倍） */
.svc__pic { display: block; width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; margin: 0 0 12px -6px; }
.svc__no { font-family: var(--f-display); font-size: 30px; line-height: 1; letter-spacing: 0; transform: scaleX(.85); transform-origin: 0 50%; }
.svc h3 { margin-top: 14px; font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: .03em; }
.svc p { margin-top: 10px; font-size: 15px; line-height: 1.85; letter-spacing: .04em; color: var(--ink-2); }
.more { grid-column: 2; margin-top: 30px; padding: 16px 0 0 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.more__h { font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.more__list { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; color: var(--ink-2); }
.more__list li:not(:last-child)::after { content: "／"; margin: 0 .6em; color: var(--ink-3); }
.ops { grid-column: 2; margin-top: 26px; border-top: 1px solid var(--ink); padding: 18px 0 4px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: center; }
.ops__pics { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.ops__pic { height: 100%; }
.ops__pic img { height: 100%; width: auto; }
.ops__label { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--blue); }
.ops h3 { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: .03em; }
.ops p:last-child { margin-top: 8px; font-size: 15px; line-height: 1.85; letter-spacing: .04em; color: var(--ink-2); max-width: 640px; }

/* 03 選ばれる理由 */
.sec--strong .sec__body { grid-template-columns: 234px repeat(4, minmax(0, 1fr)); }
.strongs { display: contents; }
.strong { border-left: 1px solid var(--ink); padding: 4px 16px 6px 20px; align-self: stretch; }
.strong h3 { font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; padding-top: 14px; border-top: 3px solid var(--blue); display: inline-block; }
.strong p { margin-top: 12px; font-size: 15.5px; line-height: 1.85; letter-spacing: .04em; color: var(--ink-2); }

/* 04 代表の開発実績 */
.sec--record .sec__body { grid-template-columns: 234px minmax(0, 1fr) 220px; }
.records { border-top: 1px solid var(--hair); margin-top: 10px; }
.record { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline; padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.record p { font-size: 16px; line-height: 1.75; letter-spacing: .04em; }
.record span { font-size: 13px; letter-spacing: .08em; color: var(--ink-3); white-space: nowrap; }
.record__pic { align-self: end; justify-self: center; width: 78%; max-width: 190px; }

/* 03 進め方 */
.sec--flow .sec__body { grid-template-columns: 212px repeat(5, minmax(0, 1fr)); }
.steps { display: contents; counter-reset: step; }
.step {
  position: relative;
  border-left: 1px solid var(--ink);
  padding: 0 14px 0 20px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-self: stretch;
}
.step .step__no { font-family: var(--f-display); font-size: 36px; line-height: 1; margin-top: 6px; color: var(--ink); letter-spacing: 0; transform: scaleX(.85); transform-origin: 0 50%; }
.step h3 { margin-top: 14px; font-size: 18.5px; font-weight: 700; line-height: 1.55; letter-spacing: .03em; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.85; letter-spacing: .04em; color: var(--ink-2); }
.step__pic { height: 140px; margin-top: 16px; display: flex; justify-content: center; align-items: flex-end; }
.step__pic img { height: 100%; width: auto; }
/* 段と段のあいだの点線の矢印 */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: 48px;
  width: 38px;
  border-top: 2px dotted var(--ink);
  z-index: 2;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -26px;
  bottom: 45px;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid var(--ink);
  z-index: 2;
}

/* 04 会社概要 */
.sec--company .sec__body { grid-template-columns: 234px minmax(0, 1fr) 274px; }
.profile { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.75; letter-spacing: .04em; margin-top: 10px; }
.profile th, .profile td { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 11px 16px; text-align: left; vertical-align: top; }
.profile th { width: 156px; font-weight: 400; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.profile a { text-underline-offset: 3px; }
.company__side { position: relative; align-self: stretch; min-height: 260px; }
.company__hand { position: absolute; left: 14%; top: -8px; font-size: 22px; line-height: 1.75; transform: rotate(-15deg); transform-origin: 0 100%; white-space: nowrap; padding-top: 26px; }
.company__pic { position: absolute; right: 0; bottom: -4px; width: 78%; max-width: 250px; }

/* 05 お問い合わせ */
.sec--contact .sec__body { grid-template-columns: 372px 1fr; }
.contact__left { padding-right: 24px; }
.contact__art { position: relative; height: 224px; margin-top: 18px; }
.contact__hand { position: absolute; left: -200px; top: 66px; font-size: 18px; line-height: 1.8; transform: rotate(-14deg); white-space: nowrap; }
.contact__pic { position: absolute; left: -12px; top: 18px; width: 230px; }
.contact__trail { position: absolute; left: 214px; top: 4px; width: 150px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.contact__right { position: relative; border-left: 1px solid var(--ink); padding: 8px 0 0 24px; max-width: 730px; }
.contact__mail { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }
.contact__mail a { color: var(--ink); text-underline-offset: 3px; }
.sec--contact .sec__body > .contact__right:first-child { border: 0; }

/* ---------- フッター ---------- */
.ft {
  position: relative;
  margin: 0 var(--gutter);
  padding: 38px 0 34px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px 40px;
}
.ft__logo { font-size: 36px; }
.ft__tag { font-size: 12.5px; font-weight: 500; letter-spacing: .16em; }
.ft__nav { display: flex; gap: 28px; }
.ft__copy { display: flex; align-items: center; gap: 28px; font-family: var(--f-latin); font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.ft__dash { width: 46px; height: 1px; background: var(--ink); }
.ft__legal { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 24px; font-size: 13px; color: var(--ink-2); margin-top: -4px; }
.ft__legal a { text-decoration: none; }
.ft__legal a:hover { text-decoration: underline; }

/* ---------- プライバシーポリシー・404（本文は一段組み） ---------- */
.page {
  position: relative;
  display: grid;
  grid-template-columns: var(--num-col) 1fr;
  margin: 48px var(--gutter) 0;
  padding: 22px 0 72px;
}
.page .sec__num { font-size: 150px; }
.page__body { position: relative; padding-left: var(--body-pad); max-width: calc(760px + var(--body-pad)); }
.page__body h1 { margin-top: 20px; font-size: 34px; font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
.page__body > p, .page__body section p, .page__body li { font-size: 16px; line-height: 1.9; letter-spacing: .04em; color: var(--ink-2); }
.page__body > p { margin-top: 18px; }
.page__body > .sec__label { margin-top: 0; font-size: 12.5px; line-height: 1; letter-spacing: .16em; color: var(--ink); font-weight: 700; }
.page__body section { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--hair); }
.page__body h2 { font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.page__body ul { list-style: disc; padding-left: 1.3em; }
.page__body li + li { margin-top: 4px; }
.page__body a { text-underline-offset: 3px; }
.page__body a:hover { color: var(--blue); }
.page__body .updated { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.page__back { margin-top: 28px; }
.page__back a { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 28px; background: var(--blue); color: #fff; text-decoration: none; letter-spacing: .12em; }
.page__back a:hover { background: var(--blue-deep); color: #fff; }

/* ---------- 1024〜1439px: 寸法を幅に合わせて縮める ---------- */
@media (max-width: 1439px) {
  /* フッターのナビは 1440px 未満では 1 行に入りきらないので、ロゴの下の段に折り返して出す（D-084） */
  .ft { grid-template-columns: auto 1fr auto; }
  .ft__nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 10px 28px; padding-top: 4px; }
  .sec__num { font-size: 15.3vw; }
  .sec__head h2 { font-size: clamp(28px, 2.5vw, 36px); }
  .sec__lead { font-size: clamp(15.5px, 1.15vw, 16.5px); }
  .about__aside { font-size: clamp(13.5px, 1.1vw, 16.5px); }
  .step p br { display: none; }
  .sec--about .sec__body { grid-template-columns: 18.9vw 1fr 11vw; column-gap: 2.4vw; }
  .sec--flow .sec__body { grid-template-columns: 14.7vw repeat(5, minmax(0, 1fr)); }
  .sec--works .sec__body { grid-template-columns: 16.3vw minmax(0, 1fr); }
  .sec--strong .sec__body { grid-template-columns: 16.3vw repeat(4, minmax(0, 1fr)); }
  .sec--record .sec__body { grid-template-columns: 16.3vw minmax(0, 1fr) 15vw; }
  .sec--company .sec__body { grid-template-columns: 16.3vw minmax(0, 1fr) 19vw; }
  .sec--contact .sec__body { grid-template-columns: 25.8vw 1fr; }
  .hero__catch { font-size: 2.15vw; height: 17.9vw; }
  .hero__side { width: 6.9vw; }
  .hero__for { padding-left: 1.5vw; font-size: max(11px, .87vw); }
  .step__pic { height: 9.7vw; }
}

/* ---------- 〜1279px: ナビは線のメニューだけにする ---------- */
@media (max-width: 1279px) {
  .hd__nav { display: none; }
  .hd { grid-template-columns: 1fr auto auto; gap: 0 28px; }
  .contact__hand { left: -150px; }
}

/* ---------- 〜1279px: 節は「見出し → 中身」の縦積み ---------- */
@media (max-width: 1279px) {
  :root { --num-col: 120px; --body-pad: 20px; }
  .sec__num { font-size: 124px; }
  .sec__body { grid-template-columns: 1fr !important; row-gap: 28px; }
  .strongs, .steps { display: grid; }
  .sec--works .sec__head { grid-row: auto; }
  .svcs, .more, .ops, .sec__cta { grid-column: 1; }
  /* 4 列だと 1 行 10 字前後で詰まるので 2 列に（D-084） */
  .svcs, .strongs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(5, 1fr); row-gap: 28px; }
  .record__pic { display: none; }
  .step__pic { height: 110px; }
  .about__aside { font-size: 15px; line-height: 2; }
  .about__aside br { display: none; }
  .company__side { min-height: 230px; }
  .company__hand { left: 4%; }
  .company__pic { right: 8%; width: 210px; }
  .contact__left { padding-right: 0; }
  .contact__art { margin-left: 180px; max-width: 420px; }
  .contact__right { border-left: 0; padding-left: 0; max-width: none; }
  .page .sec__num { font-size: 110px; }
}

/* ---------- 〜1023px: タブレット ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 28px; }
  .hero__word { font-size: calc((100vw - 2 * var(--gutter)) * .4205); margin-left: -.036em; }
  .hero { padding-bottom: 40px; display: grid; grid-template-columns: 1fr auto; column-gap: 20px; }
  .hero__word { grid-column: 1 / -1; }
  .hero__side { position: static; width: auto; display: flex; flex-direction: column; align-items: flex-start; margin-top: 28px; }
  .hero__catch { writing-mode: horizontal-tb; height: auto; text-align: left; margin: 0; font-size: 26px; line-height: 1.55; letter-spacing: .14em; }
  .hero__for { display: inline-block; margin-top: 18px; padding: 16px 0 0; font-size: 11px; }
  .hero__for br:nth-of-type(odd) { display: none; }
  .hero__char { position: relative; left: auto; bottom: auto; width: 190px; max-width: none; margin-top: -60px; align-self: end; }
  .svcs, .strongs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n)::after, .step:nth-child(2n)::before { display: none; }
}

/* ---------- 〜767px: スマホ ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; --rule: 2.5px; --body-pad: 0px; }
  body { font-size: 15px; }
  .hd { grid-template-columns: 1fr auto auto; padding-top: 16px; gap: 0 14px; }
  .hd__cta { height: 38px; padding: 0 12px; font-size: 13.5px; letter-spacing: .08em; gap: 8px; margin-top: -4px; }
  .hd__cta svg { width: 18px; }
  .cta-float { right: 16px; bottom: 16px; height: 48px; font-size: 14.5px; }
  .sec__cta { justify-self: start; margin-top: 18px; }
  .hd__logo, .ft__logo { font-size: 24px; letter-spacing: .42em; margin-right: -.42em; }
  .hd__name { margin-top: 10px; font-size: 12px; letter-spacing: .08em; }
  .hd__tag { margin-top: 8px; font-size: 10px; letter-spacing: .16em; }
  .menu__btn { width: 38px; gap: 7px; padding: 4px 0; }
  .menu__btn span { height: 2px; }
  .menu[open] .menu__btn span:nth-child(1) { transform: translateY(9px) rotate(20deg); }
  .menu[open] .menu__btn span:nth-child(3) { transform: translateY(-9px) rotate(-20deg); }
  .hero { padding-top: 14px; padding-bottom: 28px; column-gap: 8px; }
  .hero__side { margin-top: 18px; }
  .hero__catch { font-size: 20px; letter-spacing: .12em; }
  .hero__for { margin-top: 14px; padding-top: 12px; font-size: 10.5px; }
  .hero__char { width: 138px; margin-top: -42px; }

  .sec, .page { grid-template-columns: 1fr; padding: 18px 0 40px; }
  .sec__num { font-size: 104px; }
  .sec__vline { display: none; }
  .sec__body { padding-left: 0; margin-top: 14px; row-gap: 24px; }
  .sec__head h2 { font-size: 26px; margin-top: 12px; }
  .sec__lead { margin-top: 12px; font-size: 15px; }
  .sec--about .sec__lead { margin-top: 14px; }
  .about__scene { aspect-ratio: 4 / 3; }
  .about__scene img { object-position: 76% 60%; }
  .about__hand { font-size: 16px; top: 9%; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .svcs, .strongs { grid-template-columns: 1fr; row-gap: 0; }
  .svc, .strong { border-left: 0; border-top: 1px solid var(--hair); padding: 16px 0; }
  .svc { display: grid; grid-template-columns: 44px minmax(0, 1fr) 80px; column-gap: 12px; }
  .svc__no { grid-column: 1; grid-row: 1 / span 2; font-size: 26px; padding-top: 2px; }
  .svc h3 { grid-column: 2; grid-row: 1; }
  .svc h3 + p { grid-column: 2; grid-row: 2; }
  .svc__pic { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 80px; margin: 0; }
  .svc h3 { margin-top: 0; font-size: 17px; }
  .svc p { margin-top: 4px; font-size: 14.5px; }
  .strong h3 { font-size: 18px; padding-top: 10px; }
  .strong p { margin-top: 8px; font-size: 14.5px; }
  .more { margin-top: 6px; padding: 16px 0 0; display: block; }
  .more__list { margin-top: 8px; font-size: 14.5px; }
  .ops { margin-top: 20px; padding: 16px 0 0; grid-template-columns: 1fr; row-gap: 12px; }
  .ops__pics { height: 84px; }
  .ops h3 { font-size: 17px; }
  .ops p:last-child { font-size: 14.5px; }
  .record { grid-template-columns: 1fr; padding: 12px 4px; }
  .record p { font-size: 15px; }
  .record span { margin-top: 2px; }
  .step {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding: 18px 0;
    display: grid;
    grid-template-columns: 128px 1fr;
    grid-template-rows: auto;
    column-gap: 18px;
    align-items: center;
  }
  .step__pic { grid-row: 1 / span 3; grid-column: 1; height: 104px; margin: 0; justify-content: center; }
  .step h3, .step p, .step__no { grid-column: 2; }
  .step { grid-template-columns: 110px 1fr; }
  .step .step__no { font-size: 28px; margin-top: 0; }
  .step h3 { margin-top: 6px; font-size: 16px; }
  .step p { margin-top: 4px; }
  .step::after, .step::before { display: none; }

  .profile, .profile tbody, .profile tr { display: block; width: 100%; }
  .profile { font-size: 15px; margin-top: 0; }
  .profile tr { display: grid; grid-template-columns: 112px 1fr; border-bottom: 1px solid var(--hair); }
  .profile tr:first-child { border-top: 1px solid var(--hair); }
  .profile th, .profile td { border: 0; padding: 10px 10px; }
  .profile th { width: auto; border-right: 1px solid var(--hair); font-size: 13.5px; white-space: nowrap; }
  .company__side { min-height: 200px; }
  .company__hand { left: 8%; font-size: 17px; }
  .about__aside { font-size: 14.5px; }
  .company__pic { width: 170px; right: 2%; }

  .contact__art { margin: 8px 0 0; height: 190px; max-width: none; }
  .contact__hand { left: 4px; top: 128px; font-size: 14.5px; }
  .contact__pic { left: auto; right: 4px; top: 0; width: 176px; }
  .contact__trail { display: none; }

  /* 右下の相談ボタンに下段が隠れないよう、下を空ける */
  .ft { grid-template-columns: auto 1fr; gap: 12px 16px; padding: 26px 0 88px; }
  .ft__tag { font-size: 10px; }
  .ft__nav { gap: 10px 20px; }
  .ft__copy { grid-column: 1 / -1; justify-content: space-between; font-size: 12px; }
  .ft__legal { justify-content: flex-start; }

  .page { margin-top: 24px; }
  .page .sec__num { font-size: 84px; }
  .page__body { margin-top: 10px; }
  .page__body h1 { font-size: 25px; }
}

/* ---------- 動きを減らす設定: CSS の動きも止める ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
