/* トップページ専用（body.top-rinen）。合意したモックは design-plans/top-rinen-2026-11/rinen.html。
   ほかのページの見た目は styles.css にある。
   理念から始める：夜明け前の暗さから、赤・紫・青（愛・挑戦・研鑽）を通って、春の明るさへ進む1ページ */
@font-face { font-family: "Geist"; src: url("../fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: "Geist", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --red: #931f21; --violet: #4a3186; --indigo: #3c3e8a; --blue: #2757c3;
  --red-l: #ff5964; --violet-l: #9b7bff; --blue-l: #5b8dff;
  --night: #0a0b11; --deep: #0f1030; --paper: #f6f3ec; --ink: #14151c; --muted: #5d6070; --line: #dcd7ca;
  --tri: linear-gradient(90deg, var(--red), var(--indigo) 55%, var(--blue));
  --tri-l: linear-gradient(90deg, var(--red-l), var(--violet-l) 55%, var(--blue-l));
  --pad: max(24px, calc((100vw - 1200px) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: clip; background: var(--night); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-feature-settings: "palt"; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; text-wrap: balance; word-break: auto-phrase; }
p, li, dd { text-wrap: pretty; word-break: auto-phrase; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
.ic { width: 1em; height: 1em; flex: none; fill: currentColor; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nb { display: inline-block; }
.num { font-family: "Geist", var(--sans); letter-spacing: -0.03em; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 8px 16px; border-radius: 8px; background: #fff; color: var(--ink); }
.skip:focus { top: 16px; }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--tri-l); }
.on-light .eyebrow::before { background: var(--tri); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 28px; border: 1px solid transparent; border-radius: 9999px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.btn .ic { transition: transform 0.5s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.55); }
.btn:hover .ic { transform: translateX(4px); }
.btn--tri:hover .ic { transform: translate(3px, -3px); }
.btn:active { transform: scale(0.97); }
.btn--tri { background: var(--tri); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { border-color: currentColor; background: transparent; color: inherit; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; text-underline-offset: 6px; }
.link .ic { transition: transform 0.5s var(--ease); }
.link:hover .ic { transform: translateX(4px); }

/* ページ全体の進み具合：上端に三色の線 */
.prog { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 3px; background: var(--tri-l); transform: scaleX(var(--sp, 0)); transform-origin: left; }

/* ヘッダー */
.hd { position: fixed; inset: 20px 0 auto 0; z-index: 60; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.hd__bar { pointer-events: auto; display: flex; align-items: center; gap: 28px; padding: 8px 8px 8px 24px; border-radius: 9999px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.5); }
.hd__logo { display: flex; flex: none; align-items: center; }
.hd__logo img { width: auto; height: 32px; }
.hd__links { display: flex; align-items: center; gap: 22px; }
.hd__links a:not(.btn) { position: relative; padding: 8px 0; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hd__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--tri); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.hd__links a:not(.btn):hover::after { transform: scaleX(1); }
.hd__links .btn { min-height: 40px; margin-left: 6px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.hd__toggle { display: none; }

/* 表示の動き */
.js [data-rv] { opacity: 0; filter: blur(10px); transform: translateY(48px); transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-rv].is-in { opacity: 1; filter: none; transform: none; }
.calm [data-rv] { opacity: 1; filter: none; transform: none; transition: none; }

/* 1 トップビュー：伴走する2本の線 */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding: 176px 0 40px; overflow: hidden; background: var(--night); color: #fff; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__in { position: relative; z-index: 1; pointer-events: none; }
.hero__in a { pointer-events: auto; }
.hero__top { position: absolute; inset: 120px var(--pad) auto var(--pad); z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; pointer-events: none; }
.hero__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: rgba(255, 255, 255, 0.7); font-size: 12px; font-weight: 600; }
.hero__hint i { display: inline-block; width: 20px; height: 3px; margin-right: 6px; border-radius: 3px; background: #fff; vertical-align: middle; }
.hero__hint i.is-haru { background: var(--tri-l); }
/* 動きを止めているときは線が動かないので、動かし方の説明を出さない */
.calm .hero__hint span:last-child { display: none; }
.hero h1 { font-size: clamp(40px, 7.4vw, 128px); line-height: 1.16; letter-spacing: 0; }
.ln { display: block; overflow: hidden; padding-block: 0.05em; }
.ph { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transform: translateY(115%); animation: chup 1.2s var(--ease) forwards; animation-delay: calc(0.3s + var(--n) * 42ms); }
@keyframes chup { to { transform: none; } }
.calm .ch { transform: none; animation: none; }
/* スクリプトが見出しを1文字ずつに分けるまでは見出しを出さない（分ける前の文字が一瞬見えて消えるのを防ぐ）。
   site.js が届かないときは、4秒後に html へ calm が付いて表示される */
.js:not(.calm):not(.rinen-ready) .hero h1 > span { visibility: hidden; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.hero__sub { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; line-height: 1.6; }
.hero__sub small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.6); font-family: "Geist", var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; }
.hero [data-in] { animation: rise 1.2s var(--ease) both; animation-delay: calc(1.1s + var(--i, 0) * 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }
.calm .hero [data-in] { animation: none; }

/* 2 理念の一文：スクロールに合わせて言葉が灯る */
.creed { padding: clamp(112px, 20vh, 240px) 0; background: var(--night); color: #fff; }
.creed .eyebrow { margin-bottom: 40px; color: rgba(255, 255, 255, 0.7); }
.creed p { max-width: 1040px; font-size: clamp(26px, 3.7vw, 56px); font-weight: 700; line-height: 1.6; font-feature-settings: "palt"; }
.w { opacity: 0.16; transition: opacity 0.6s var(--ease); }
.w.on { opacity: 1; }
.calm .w { opacity: 1; transition: none; }

/* 3 価値観：画面を留めたまま、赤 → 紫 → 青 → 春の明るさへ */
.values { position: relative; height: 480vh; background: var(--red); }
.values__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--vbg, var(--red)); color: var(--vfg, #fff); }
.values__label { position: absolute; inset: 120px auto auto var(--pad); z-index: 2; }
.values__label::before { background: currentColor; }
.values__idx { position: absolute; inset: 120px var(--pad) auto auto; z-index: 2; display: flex; gap: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.values__idx li { opacity: 0.4; transition: opacity 0.5s var(--ease); }
.values__idx li.is-on { opacity: 1; }
.values__idx b { margin-right: 6px; font-family: "Geist", var(--sans); font-weight: 500; }
/* The two-character values (挑戦, 研鑽, 伴走) are about 1.9em wide. The third term of the font size keeps
   them inside the left column, so they never run under the text on the right. */
.val { --val-text: min(440px, 34vw); --val-gap: 48px; position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--val-text)); align-items: end; gap: var(--val-gap); padding: 168px var(--pad) 88px; opacity: 0; }
.val__kanji { margin-left: -0.05em; font-family: var(--serif); font-size: min(30vw, 54vh, calc((100vw - 2 * var(--pad) - var(--val-gap) - var(--val-text)) / 1.9)); font-weight: 600; line-height: 0.92; letter-spacing: -0.04em; white-space: nowrap; transform: translateY(var(--ky, 0)); }
.val__no { display: block; margin-bottom: 16px; font-family: "Geist", var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; opacity: 0.8; }
.val__text { padding-bottom: 12px; font-size: clamp(18px, 1.9vw, 26px); font-weight: 700; line-height: 1.75; transform: translateY(var(--ty, 0)); }
.val__lines { position: absolute; inset: 18% 0 auto 0; width: 100%; height: 34%; overflow: visible; }
.val__lines path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); vector-effect: non-scaling-stroke; }
.calm .values { height: auto; background: none; }
.calm .values__stage { position: static; height: auto; background: none; }
.calm .values__idx { display: none; }
.calm .values__label { color: #fff; }
.calm .val { position: relative; min-height: 76vh; background: var(--bg); color: var(--fg); opacity: 1; }
.calm .val__lines path { stroke-dashoffset: 0; }

/* 4 理念の実践 01：AI経営伴走 */
.prac { padding: clamp(96px, 16vh, 184px) 0; background: var(--paper); }
.prac__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 40px 80px; margin-top: 32px; }
.prac h2 { font-size: clamp(34px, 5.2vw, 76px); line-height: 1.22; }
.prac__head p { font-size: 18px; }
.prac__mid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 80px; margin-top: clamp(80px, 12vh, 144px); }
.cycle { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.cycle svg { width: 100%; height: 100%; overflow: visible; }
.cycle__spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.calm .cycle__spin { animation: none; }
.cycle b { position: absolute; left: 50%; padding: 10px 24px; border-radius: 9999px; background: var(--ink); color: #fff; font-size: 18px; white-space: nowrap; transform: translate(-50%, -50%); }
.cycle b:first-of-type { top: 12.5%; }
.cycle b:last-of-type { top: 87.5%; }
.cycle p { position: absolute; inset: 50% 18% auto 18%; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.7; text-align: center; transform: translateY(-50%); }
.shift h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; }
.shift ul { margin-top: 32px; border-bottom: 1px solid var(--line); }
.shift li { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: baseline; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.shift b { font-family: var(--serif); font-size: 24px; }
.shift li span { font-size: 18px; font-weight: 600; }
.proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(80px, 12vh, 144px); border-top: 2px solid var(--ink); }
.proof li { padding: 24px 24px 0; }
.proof li:first-child { padding-left: 0; }
.proof li + li { border-left: 1px solid var(--line); }
.proof small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.proof b { display: block; margin-top: 12px; font-size: clamp(48px, 6vw, 88px); font-weight: 600; line-height: 1; white-space: nowrap; }
.proof b i { font-family: var(--sans); font-size: 0.26em; font-style: normal; font-weight: 700; letter-spacing: 0; }
.proof b .from { color: #b9b5aa; font-size: 0.45em; }
.proof li > span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }
.prac__links { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 48px; }

/* 5 SPRING診断：6つの観点の図 */
.spring { position: relative; padding: clamp(96px, 16vh, 184px) 0; overflow: hidden; background: var(--deep); color: #fff; }
.spring__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 64px; }
.spring .eyebrow { color: rgba(255, 255, 255, 0.8); }
.spring h2 { margin-top: 32px; font-size: clamp(30px, 4vw, 56px); line-height: 1.3; }
.spring__lead { margin-top: 24px; color: rgba(255, 255, 255, 0.8); font-size: 18px; }
.spring__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.spring__meta li { padding: 4px 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 9999px; font-size: 13px; font-weight: 600; }
.spring__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.spring__act .btn { min-height: 64px; padding-inline: 36px; font-size: 18px; }
.radar { position: relative; width: min(100%, 520px); margin-inline: auto; }
.radar svg { width: 100%; height: auto; overflow: visible; }
/* 六角形はスクリプトで描く。スクリプトが動かないときは図ごと出さない */
html:not(.js) .radar { display: none; }
.radar__ring { fill: none; stroke: rgba(255, 255, 255, 0.14); }
.radar__axis { stroke: rgba(255, 255, 255, 0.14); }
.radar__shape { fill: url(#tri-fill); fill-opacity: 0.5; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.radar__dot { fill: #fff; }
.radar__v circle { fill: var(--deep); stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; transition: fill 0.4s var(--ease), stroke 0.4s var(--ease); }
.radar__v text { fill: #fff; font-family: "Geist", var(--sans); font-size: 22px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.radar__v.is-hot circle { fill: #fff; stroke: #fff; }
.radar__v.is-hot text { fill: var(--deep); }
.radar figcaption { margin-top: 8px; color: rgba(255, 255, 255, 0.5); font-size: 12px; text-align: center; }
.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 64px; }
.six li { padding: 20px 24px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; outline-offset: 2px; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.six li.is-hot { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.six b { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.six b i { font-family: "Geist", var(--sans); font-size: 36px; font-style: normal; font-weight: 600; line-height: 1; background: var(--tri-l); -webkit-background-clip: text; background-clip: text; color: transparent; }
.six strong { display: block; margin-top: 8px; font-size: 18px; }
.six span { display: block; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.gets b { display: block; font-size: 18px; }
.gets b i { margin-right: 12px; font-family: "Geist", var(--sans); font-style: normal; opacity: 0.6; }
.gets span { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

/* 6 理念の実践 02：Shiharu PJ */
.pj { position: relative; padding: clamp(96px, 16vh, 184px) 0; overflow: hidden; background: var(--night); color: #fff; }
.pj__age { position: absolute; right: -0.04em; bottom: -0.12em; font-size: min(52vw, 86vh); font-weight: 700; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16); transform: translateY(var(--ay, 0)); pointer-events: none; }
.pj__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 80px; }
.pj__fig { overflow: hidden; border-radius: 24px; clip-path: inset(var(--ci, 0%) round 24px); }
.pj__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 60% 30%; transform: scale(var(--cs, 1)); }
.pj .eyebrow { color: rgba(255, 255, 255, 0.8); }
.pj h2 { margin-top: 32px; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.3; }
.pj__lead { margin-top: 24px; font-size: 18px; color: rgba(255, 255, 255, 0.85); }
.pj__facts { margin-top: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.pj__facts li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-weight: 600; }
.pj__facts small { color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 600; line-height: 2.4; }
.pj__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }

/* 7 代表メッセージ */
.msg { padding: clamp(96px, 16vh, 184px) 0; background: var(--paper); }
.msg__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: 80px; }
.msg__fig img { width: 100%; aspect-ratio: 4 / 5; border-radius: 240px 240px 24px 24px; object-fit: cover; object-position: 62% 12%; }
.msg blockquote { margin-top: 32px; font-family: var(--serif); font-size: clamp(22px, 2.7vw, 38px); font-weight: 600; line-height: 1.9; letter-spacing: 0.03em; }
.msg__sign { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 40px; }
.msg__sign b { font-family: var(--serif); font-size: 28px; letter-spacing: 0.16em; }
.msg__sign span { color: var(--muted); font-size: 13px; }

/* 8 結び */
.fin { padding-top: clamp(96px, 14vh, 160px); overflow: hidden; background: var(--night); color: #fff; }
.mq { display: flex; width: max-content; font-family: "Geist", var(--sans); font-size: min(15vw, 208px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3); animation: mq 36s linear infinite; }
.mq span { padding-right: 0.5em; }
@keyframes mq { to { transform: translateX(-50%); } }
.calm .mq { animation: none; }
.fin__in { padding: clamp(64px, 10vh, 120px) 0 clamp(96px, 14vh, 160px); text-align: center; }
.fin h2 { font-size: clamp(30px, 4.6vw, 68px); line-height: 1.35; }
.fin__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
.fin__act .btn { min-height: 64px; padding-inline: 36px; font-size: 18px; }
.fin__note { margin-top: 16px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.ft { padding: 32px 0 48px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ft__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ft__logo { display: inline-flex; padding: 8px 16px; border-radius: 12px; background: #fff; }
.ft__logo img { width: auto; height: 32px; }
.ft p { margin-top: 8px; color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.ft nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.ft nav a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.ft nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }


@media (max-width: 1100px) {
  .hd__links { gap: 16px; }
  .prac__mid, .pj__grid, .msg__grid { gap: 48px; }
}
@media (max-width: 900px) {
  .nav-open body { overflow: hidden; }
  .hd { inset: 12px 0 auto 0; }
  .hd__bar { width: 100%; justify-content: space-between; padding: 8px 8px 8px 16px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hd__logo { position: relative; z-index: 2; }
  .hd__toggle { position: relative; z-index: 2; display: block; width: 44px; height: 44px; border: 0; border-radius: 9999px; background: transparent; color: var(--ink); cursor: pointer; }
  .hd__toggle span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; transition: transform 0.5s var(--ease); }
  .hd__toggle span:first-child { transform: translateY(-4px); }
  .hd__toggle span:last-child { transform: translateY(4px); }
  .nav-open .hd__toggle span:first-child { transform: rotate(45deg); }
  .nav-open .hd__toggle span:last-child { transform: rotate(-45deg); }
  .hd__links { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 20px; background: rgba(255, 255, 255, 0.96); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.5s; }
  .nav-open .hd__links { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
  .hd__links a:not(.btn) { font-size: 24px; }
  .hd__links > * { opacity: 0; transform: translateY(48px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .nav-open .hd__links > * { opacity: 1; transform: none; transition-delay: calc(100ms + var(--n, 0) * 50ms); }
  .hd__links > :nth-child(2) { --n: 1; } .hd__links > :nth-child(3) { --n: 2; } .hd__links > :nth-child(4) { --n: 3; } .hd__links > :nth-child(5) { --n: 4; } .hd__links > :nth-child(6) { --n: 5; }
  .hd__links .btn { min-height: 56px; margin: 16px 0 0; padding: 14px 28px; font-size: 16px; }
  .calm .hd__links, .calm .hd__links > *, .calm .hd__toggle span { transition: none; }

  .hero { padding-top: 144px; }
  .hero__top { top: 96px; }
  .hero__foot { grid-template-columns: 1fr; }
  .val { grid-template-columns: 1fr; align-content: end; gap: 24px; padding: 152px var(--pad) 64px; }
  .val__kanji { font-size: min(44vw, 34vh); }
  .values__label { top: 96px; }
  .values__idx { top: 128px; right: auto; left: var(--pad); gap: 16px; }
  .prac__head, .prac__mid, .spring__grid, .pj__grid, .msg__grid { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof li { padding: 24px 16px 24px 0; }
  .proof li + li { border-left: 0; }
  .proof li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .six { grid-template-columns: 1fr 1fr; }
  .gets { grid-template-columns: 1fr; gap: 20px; }
  .pj__fig { max-width: 440px; }
  .msg__fig { max-width: 320px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  :root { --pad: 16px; }
  .hero__act .btn, .spring__act .btn, .fin__act .btn, .pj__act .btn { width: 100%; }
  /* 320px幅でも「無料相談（30分）を予約」が1行に収まるよう、左右の余白を詰める */
  .spring__act .btn, .fin__act .btn { padding-inline: 20px; }
  .hero__hint span:last-child { display: none; }
  .shift li { grid-template-columns: 1fr; gap: 4px; }
  .six { gap: 8px; }
  .six li { padding: 16px; }
  .six b i { font-size: 30px; }
  .mq { -webkit-text-stroke-width: 1px; }
}
/* 印刷：動きを止めた状態（.calm）と同じ見た目で、まだ表示していない要素も含めてすべて出す */
@media print {
  .prog, .hd { display: none; }
  [data-rv] { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .ch { transform: none !important; animation: none !important; }
  .hero [data-in] { animation: none !important; }
  .hero h1 > span { visibility: visible !important; }
  .w { opacity: 1 !important; }
  .values { height: auto !important; background: none; }
  .values__stage { position: static; height: auto; background: none; }
  .values__idx { display: none; }
  .values__label { color: #fff; }
  .val { position: relative; min-height: 76vh; background: var(--bg); color: var(--fg); opacity: 1 !important; visibility: visible !important; }
  .val__lines path { stroke-dashoffset: 0 !important; }
  .cycle__spin, .mq { animation: none; }
  .pj__fig { clip-path: none; }
  .pj__fig img { transform: none; }
}
