/* =========================================================
   KAGARIO Industries — site exploration (review prototype)
   外部フォント・外部画像なし。立体物はすべてCSSで描画。
   ========================================================= */

:root {
  /* color tokens */
  --paper: #FBF7EE;      /* 暖かいアイボリー（基調） */
  --white: #FFFFFF;
  --ink: #2A2420;        /* 真っ黒ではない、暖かい墨色 */
  --ink-soft: #6E6359;
  --line: #E6DCCB;
  --sun: #FFCB52;        /* やわらかい黄色 */
  --amber: #FF9F45;      /* オレンジ */
  --ember: #B8461A;      /* 文字用の濃いオレンジ（コントラスト確保） */
  --mint: #BFE6D1;       /* 差し色（ごく少量） */
  --peach: #FFE3CC;

  /* type */
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-latin: "Helvetica Neue", "Segoe UI", Arial, var(--font);

  /* layout */
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html:has(.motion-ok) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-feature-settings: "palt";
  letter-spacing: .02em;
  overflow-x: hidden;
  transition: background-color .9s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.proto-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  font-size: 11px; letter-spacing: .08em; font-weight: 700;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(42, 36, 32, .82); color: #fff; pointer-events: none;
}

/* ---------- shared type ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink-soft);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.kicker span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-family: var(--font-latin); font-size: 12px; letter-spacing: 0;
}
.display {
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: 1.22; font-weight: 800; letter-spacing: -.02em;
}
.display--sm { font-size: clamp(32px, 4.4vw, 60px); }
.nw { display: inline-block; }
/* 日本語の改行：文節（HTML内の <wbr>）と句読点でだけ折り返し、単語の途中で切らない。
   1行に収まらない長い文節だけは overflow-wrap で最終的に折り返す（はみ出し防止）。 */
:where(p, h1, h2, h3, li, dt, dd, small) { word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.display { text-wrap: balance; }
.muted { color: #B9AC9C; }
.lead { font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; line-height: 2; }
.note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; margin-top: 20px; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 11px; border-radius: 99px; border: 1.5px solid currentColor; color: var(--ink-soft);
  vertical-align: middle;
}
.tag--tbd { color: var(--ember); background: #FFF3E6; }
.text-link { color: var(--ember); font-weight: 700; text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  height: 76px; padding: 0 var(--gutter);
  transition: background-color .4s, box-shadow .4s, height .4s;
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(251, 247, 238, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(42, 36, 32, .08);
}
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand__text { font-family: var(--font-latin); font-weight: 900; font-size: 24px; letter-spacing: -.04em; }
.brand__logo { display: block; height: 40px; width: auto; transition: height .4s; }
.site-header.is-scrolled .brand__logo { height: 34px; }
.status-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 99px; background: var(--sun); color: var(--ink);
}
.gnav { margin-left: auto; display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; font-weight: 700; }
.gnav a { text-decoration: none; position: relative; padding: 6px 0; }
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gnav__notice { padding: 6px 14px !important; border: 1.5px solid var(--ink); border-radius: 99px; }
.gnav__notice::after { display: none; }
.gnav__notice:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px var(--gutter) 90px; overflow: hidden;
}
.hero::before { /* やわらかい光だまり */
  content: ""; position: absolute; width: 80vw; height: 80vw; right: -20vw; top: -20vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 203, 82, .35), rgba(255, 203, 82, 0));
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 920px; flex: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ink-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 159, 69, .2); }
.hero__title {
  margin: 28px 0 32px;
  font-size: clamp(44px, 7.4vw, 124px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; }
.swap { color: var(--ember); transition: transform .5s var(--ease), opacity .5s; }
.swap.is-out { transform: translateY(-70%); opacity: 0; }
.swap.is-pre { transform: translateY(70%); opacity: 0; transition: none; }
.hero__lead { font-size: clamp(15px, 1.35vw, 19px); font-weight: 600; line-height: 2.05; max-width: 36em; }
.round-link {
  display: inline-grid; place-items: center; margin-top: 36px;
  width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink);
  text-decoration: none; font-size: 22px; transition: background .3s, color .3s, transform .4s var(--ease);
}
.round-link:hover { background: var(--ink); color: var(--paper); transform: translateY(4px); }
.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-latin); font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--ink-soft);
}
.scroll-hint span { width: 44px; height: 1.5px; background: currentColor; transform-origin: left; }
.motion-ok .scroll-hint span { animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* hero / 02 : Three.js canvas */
.hero__visual {
  position: absolute; z-index: 1; right: max(-3vw, -40px); top: 50%;
  width: min(60vw, 860px); aspect-ratio: 1; transform: translateY(-46%);
}
.hero__visual::before { /* WebGLが使えないときも、やわらかい光だけは見せる */
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 203, 82, .35), rgba(255, 203, 82, 0));
}
.scene { position: relative; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.day-caption {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 2; margin: 0;
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; pointer-events: none;
  padding: 8px 16px 8px 8px; border-radius: 99px; background: rgba(255, 255, 255, .88);
  font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px -18px rgba(120, 70, 20, .5);
  transition: background .6s, color .6s;
}
.day-caption b { font-family: var(--font-latin); font-size: 13px; min-width: 4.2em; text-align: center; padding: 4px 10px; border-radius: 99px; background: var(--sun); }
.day-caption.is-night { background: rgba(62, 52, 84, .88); color: #FFF6E2; }
.day-caption.is-night b { background: #CFC6EE; color: var(--ink); }
@media (max-width: 640px) { .day-caption { font-size: 12px; bottom: 6%; } }
.hero .scene { cursor: pointer; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 78%, transparent 100%); }

/* ---------- reveal ---------- */
.motion-ok .reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion-ok .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 01 worries ---------- */
.worries { padding: clamp(110px, 16vw, 200px) 0; }
.bubbles {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 26px);
  margin: clamp(48px, 7vw, 90px) 0 clamp(56px, 8vw, 110px);
}
.bubble {
  position: relative;
  font-size: clamp(16px, 1.9vw, 26px); font-weight: 700; line-height: 1.5;
  padding: .9em 1.4em; border-radius: 2em;
  background: var(--paper); border: 1.5px solid var(--line);
  rotate: var(--r, 0deg);
  translate: 0 calc(var(--o, 0) * .4px + (var(--p, .5) - .5) * var(--o, 0) * -1.2px);
  transition: rotate .4s var(--ease);
}
.bubble::after { /* 吹き出しのしっぽ */
  content: ""; position: absolute; left: 2em; bottom: -9px; width: 18px; height: 18px;
  background: inherit; border-right: inherit; border-bottom: inherit;
  transform: rotate(45deg) skew(8deg, 8deg); border-radius: 0 0 4px 0;
}
.bubble--sun { background: #FFF0BF; border-color: #FFE08A; }
.bubble--peach { background: var(--peach); border-color: #FFCFA6; }
.bubble:hover { rotate: 0deg; }
.motion-ok .bubble.reveal { transform: translateY(40px) scale(.85); }
.motion-ok .bubble.reveal.is-in { transform: none; transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.answer { font-size: clamp(18px, 2.2vw, 30px); line-height: 1.9; font-weight: 600; }
.answer strong { font-weight: 800; }

/* ---------- 02 what (sticky 3D stack) ---------- */
.what { position: relative; }
.what__sticky {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw;
  max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter);
}
.motion-ok .what { height: 360vh; }
.motion-ok .what__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 80px; padding-bottom: 40px; }
.what__steps { margin-top: clamp(28px, 4vw, 52px); display: grid; gap: 22px; }
.what__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; transition: opacity .5s; }
.motion-ok .what__steps li { opacity: .32; }
.motion-ok .what__steps li.is-active { opacity: 1; }
.what__steps .num {
  grid-row: span 2; font-family: var(--font-latin); font-weight: 800; font-size: 14px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white);
}
.what__steps h3 { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.what__steps h3 small { font-size: 13px; font-weight: 700; color: var(--ember); letter-spacing: .06em; }
.what__steps p { font-size: 15px; line-height: 1.9; margin-top: 4px; max-width: 30em; }

.what__stage { position: relative; height: min(72vh, 680px); }
.stage__captions { position: absolute; left: 0; right: 0; bottom: 4%; display: grid; justify-items: center; pointer-events: none; }
.stage__captions li {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, .85);
  font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px -18px rgba(120, 70, 20, .5);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.stage__captions b { font-family: var(--font-latin); font-size: 11px; letter-spacing: .2em; color: var(--ember); }
.what[data-active="0"] [data-cap="0"], .what[data-active="1"] [data-cap="1"], .what[data-active="2"] [data-cap="2"],
html:not(.motion-ok) [data-cap="2"] { opacity: 1; transform: none; }

/* ---------- 03 how ---------- */
.how { padding: clamp(110px, 14vw, 190px) 0; }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.how__head { position: sticky; top: 120px; }
.how__head .display { font-size: clamp(36px, 5vw, 76px); }
.how__head .lead { margin-top: 28px; }
.how__line { position: relative; padding-left: 52px; display: grid; gap: clamp(56px, 8vw, 110px); padding-top: 12px; }
.how__line::before, .how__line::after {
  content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--line);
}
.how__line::after {
  background: linear-gradient(var(--sun), var(--amber));
  transform-origin: top; transform: scaleY(var(--lp, 1));
}
.how__line li { position: relative; transition: opacity .5s; }
.motion-ok .how__line li { opacity: .35; }
.motion-ok .how__line li.is-on { opacity: 1; }
.how__dot {
  position: absolute; left: -52px; top: 2px; width: 33px; height: 33px; border-radius: 50%; z-index: 1;
  background: var(--paper); border: 3px solid var(--line); transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.how__line li.is-on .how__dot, html:not(.motion-ok) .how__dot { background: var(--sun); border-color: var(--amber); transform: scale(1.1); }
.how__line b { font-family: var(--font-latin); font-size: 12px; letter-spacing: .2em; color: var(--ember); }
.how__line h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.4; margin: 6px 0 10px; }
.how__line p { font-size: 15px; line-height: 1.95; max-width: 26em; }

/* ---------- 04 values ---------- */
.values { padding: clamp(110px, 14vw, 190px) 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 80px); }
.card {
  background: var(--white); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px);
  box-shadow: 0 30px 60px -40px rgba(140, 70, 20, .45);
}
.card.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), opacity .9s var(--ease); }
.motion-ok .card.reveal:not(.is-in) { transform: translateY(40px); }
.motion-ok .card.tilt.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card h3 { font-size: clamp(22px, 2vw, 28px); margin: 28px 0 10px; }
.card p { font-size: 15px; line-height: 1.95; }
.card__obj { height: 110px; position: relative; }
.card__obj--sphere::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFFDF2 0 4%, #FFE59A 18%, #FFB548 55%, #F07A33 100%);
  box-shadow: inset -10px -14px 24px rgba(190, 70, 20, .3), 0 20px 30px -14px rgba(240, 120, 40, .6);
}
.card__obj--steps i {
  position: absolute; bottom: 0; width: 50px; border-radius: 12px;
  background: linear-gradient(#FFE7A8, #FFC24A); box-shadow: inset 0 6px 8px rgba(255, 255, 255, .6), 0 14px 20px -10px rgba(180, 110, 20, .5);
}
.card__obj--steps i:nth-child(1) { left: 0; height: 40px; }
.card__obj--steps i:nth-child(2) { left: 58px; height: 70px; background: linear-gradient(#FFD08A, #FF9F45); }
.card__obj--steps i:nth-child(3) { left: 116px; height: 104px; background: linear-gradient(#FFB77A, #F27631); }
.card__obj--shield::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 92px; height: 100px;
  border-radius: 46px 46px 46px 46px / 36px 36px 64px 64px;
  background: linear-gradient(160deg, #E4F5EB, var(--mint) 50%, #8FCBAE);
  box-shadow: inset 0 8px 12px rgba(255, 255, 255, .8), inset 0 -12px 18px rgba(50, 110, 80, .25), 0 20px 30px -14px rgba(60, 120, 95, .5);
}
.card__obj--shield::after {
  content: "✓"; position: absolute; left: 0; top: 4px; width: 92px; height: 100px; display: grid; place-items: center;
  font-size: 40px; font-weight: 900; color: #fff;
}

/* ---------- 05 future ---------- */
.future { padding: clamp(110px, 14vw, 190px) 0; }
.future__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 6vw; align-items: end; }
.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 24px); row-gap: 0; margin-top: clamp(48px, 6vw, 80px); }
.field {
  position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
  margin-bottom: clamp(14px, 2vw, 24px); align-content: start;
  padding: clamp(26px, 2.8vw, 40px); border-radius: var(--radius); background: var(--paper);
  transition: transform .5s var(--ease), background .4s;
}
.field:hover { transform: translateY(-6px); background: #FFF3D6; }
.field__no { display: flex; align-items: center; gap: 14px; min-height: 52px; font-family: var(--font-latin); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--ink-soft); }
.field h3 { font-size: clamp(21px, 1.75vw, 26px); line-height: 1.4; margin-top: 20px; align-self: start; }
.field p { font-size: 14.5px; line-height: 1.9; }
.field p { margin-top: 12px; }
.field .tag { justify-self: start; align-self: end; margin-top: 22px; }
.field--next { background: transparent; border: 2px dashed var(--line); }
.field--next:hover { background: transparent; border-color: var(--amber); }
.field__plus {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); font-size: 26px; font-weight: 700; transition: transform .6s var(--ease);
}
.field--next:hover .field__plus { transform: rotate(90deg); }

/* ---------- 06 company ---------- */
.company { padding: clamp(110px, 14vw, 180px) 0 clamp(90px, 12vw, 150px); }
.company__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 6vw; }
.profile { border-top: 1.5px solid var(--ink); }
.profile > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.profile dd { font-size: 16px; font-weight: 600; line-height: 1.8; }
.profile dd small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-top: 6px; }
.notice-card {
  position: relative; display: grid; gap: 4px; margin-top: 36px; text-decoration: none;
  padding: 28px 100px 28px 32px; border-radius: var(--radius); background: var(--white);
  border: 1.5px solid var(--ink); overflow: hidden; isolation: isolate;
}
.notice-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sun);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.notice-card:hover::before, .notice-card:focus-visible::before { transform: none; }
.notice-card__label { font-family: var(--font-latin); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--ink-soft); }
.notice-card__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; }
.notice-card__path { font-family: var(--font-latin); font-size: 14px; color: var(--ink-soft); }
.notice-card__arrow {
  position: absolute; right: 28px; top: 50%; translate: 0 -50%;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 22px; transition: transform .4s var(--ease);
}
.notice-card:hover .notice-card__arrow { transform: translateX(6px); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(70px, 9vw, 110px) 0 28px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-brand img { display: block; height: 50px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14px; font-weight: 700; align-items: center; }
.footer-nav a { text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; color: var(--sun); }
/* pause / play for all animations (sits in the corner of the top visual) */
.motion-toggle {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 64px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px;
  border: 1.5px solid var(--ink); border-radius: 99px; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: background .3s, color .3s;
}
.motion-toggle:hover { background: var(--ink); color: var(--paper); }
.motion-toggle[hidden] { display: none; }
.motion-toggle__icon { position: relative; width: 11px; height: 12px; }
.motion-toggle__icon::before, .motion-toggle__icon::after {
  content: ""; position: absolute; top: 0; width: 3.5px; height: 12px; border-radius: 1px; background: currentColor;
}
.motion-toggle__icon::before { left: 0; }
.motion-toggle__icon::after { right: 0; }
.motion-toggle[data-paused] .motion-toggle__icon::after { display: none; }
.motion-toggle[data-paused] .motion-toggle__icon::before {
  width: 0; height: 0; left: 1px; border-radius: 0; background: none;
  border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor;
}
.footer-small { margin-top: clamp(56px, 7vw, 96px); display: flex; justify-content: space-between; font-size: 12px; opacity: .7; letter-spacing: .06em; }

/* ---------- cursor (desktop, fine pointer only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--amber); mix-blend-mode: multiply; opacity: .55;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
}
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: .3; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1180px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .gnav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 8px; padding: 0 var(--gutter); background: var(--paper); font-size: 32px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .gnav a { padding: 10px 0; }
  .gnav__notice { margin-top: 16px; font-size: 20px; padding: 10px 22px !important; }
  .site-header.is-open .gnav { opacity: 1; visibility: visible; }
  .site-header.is-open { background: var(--paper); }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    border: 1.5px solid var(--ink); background: var(--paper); border-radius: 99px; padding: 8px 14px; cursor: pointer;
    font-size: 13px; font-weight: 700;
  }
  .menu-btn__bars { width: 16px; height: 8px; border-top: 2px solid; border-bottom: 2px solid; transition: transform .3s; }
  .site-header.is-open .menu-btn__bars { transform: scaleY(0); }
  .what__sticky { grid-template-columns: 1fr; gap: 0; }
  .what__stage { height: 380px; order: -1; }
  .stage__captions li { font-size: 12px; padding: 6px 12px; }
  .motion-ok .what__sticky { grid-template-rows: minmax(0, 40%) auto; align-content: center; padding-top: 70px; padding-bottom: 24px; }
  .motion-ok .what__stage { height: 100%; }
  .motion-ok .what .display { font-size: clamp(30px, 8vw, 46px); }
  .motion-ok .what__steps { grid-template-areas: "s"; margin-top: 18px; }
  .motion-ok .what__steps li { grid-area: s; opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s var(--ease); }
  .motion-ok .what__steps li.is-active { opacity: 1; transform: none; }
  .motion-ok .what .note { margin-top: 10px; }
  .motion-ok .what .kicker { margin-bottom: 12px; }
  .how__grid, .future__head, .company__grid { grid-template-columns: 1fr; }
  .how__head { position: static; margin-bottom: 56px; }
  .cards { grid-template-columns: 1fr; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { gap: 10px; }
  .status-pill { font-size: 10px; padding: 3px 8px; white-space: nowrap; }
  .brand__logo, .site-header.is-scrolled .brand__logo { height: 32px; }
  .menu-btn { white-space: nowrap; padding: 8px 12px; }
  .brand__text { font-size: 21px; }
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: 104px; padding-bottom: 60px; }
  .hero__visual { position: relative; right: auto; top: auto; transform: none; width: calc(100% + 2 * var(--gutter)); max-width: none; margin: 8px calc(-1 * var(--gutter)) 0; }
  .hero__lead br { display: none; }
  .round-link { width: 54px; height: 54px; margin-top: 24px; }
  .scroll-hint { display: none; }
  .motion-toggle { bottom: 20px; font-size: 12px; }
  .bubbles { flex-direction: column; align-items: flex-start; }
  .bubble { translate: calc(var(--o, 0) * .6px) 0; }
  .bubble:nth-child(even) { align-self: flex-end; }
  .bubble:nth-child(even)::after { left: auto; right: 2em; }
  .profile > div { grid-template-columns: 1fr; gap: 4px; }
  .notice-card { padding: 24px 90px 24px 24px; }
  .footer-small { flex-direction: column; gap: 4px; }
  .fields { grid-template-columns: 1fr; }
  .proto-badge { font-size: 10px; }
}

/* reduced motion: OS設定またはフッターの「動きをへらす」で .motion-ok が外れる */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
html:not(.motion-ok) .bubble { translate: 0 calc(var(--o, 0) * .4px); }
html:not(.motion-ok) .cursor { display: none; }
@media (max-width: 640px) { html:not(.motion-ok) .bubble { translate: calc(var(--o, 0) * .6px) 0; } }
