/* ASGRIT 次世代トップ試作
   色はロゴ原本から採った紺・ティール・ミントと、紙の白、角印の朱だけで組む。 */
:root {
  --abyss: #04192e;      /* 深い水・暗いセクションの地 */
  --navy: #00224a;       /* ロゴの紺。明るい地の文字 */
  --current: #0b6f75;    /* 流線の根元のティール */
  --swoosh: #5bdda3;     /* 流線の先のミント。「道」と操作の状態だけに使う */
  --paper: #eceeea;      /* 紙の地 */
  --paper-2: #e1e6e1;
  --stamp: #c4322a;      /* 角印。紙の場面だけ */
  --ink-soft: #4b5e6f;
  --on-dark: #eef2ef;
  --on-dark-soft: #a9bccb;
  --line-light: rgba(0, 34, 74, .14);
  --line-dark: rgba(238, 242, 239, .16);

  --f-jp: "Murecho", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", system-ui, sans-serif;
  --f-lat: "Unbounded", var(--f-jp);

  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: clamp(1.5rem, 2.6vw, 2.25rem);
  --t-2xl: clamp(2rem, 4.8vw, 3.75rem);
  --t-hero: clamp(3.1rem, 10.4vw, 9.25rem);

  /* 主ボタンの地。文字(--abyss)が左端でも4.5:1を超えるよう、流線より少し明るいティールから始める */
  --cta-grad: linear-gradient(100deg, #2fa58f, var(--swoosh));

  --gutter: clamp(16px, 5vw, 72px);
  --radius-s: 8px;
  --radius-m: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-jp);
  font-size: var(--t-m);
  line-height: 1.9;
  color: var(--navy);
  background: var(--abyss);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--swoosh); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-feature-settings: "palt"; font-weight: 500; }
.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--swoosh); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-s);
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* 見出しの改行位置は span 単位で制御する */
.hero__title span, .hero__statement span, .philosophy__title span { display: inline-block; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background-color .4s, color .4s, box-shadow .4s;
  color: var(--on-dark);
}
.site-header.is-solid { backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.site-header[data-tone="dark"].is-solid { background: rgba(4, 25, 46, .72); box-shadow: 0 1px 0 var(--line-dark); }
.site-header[data-tone="light"] { color: var(--navy); }
.site-header[data-tone="light"].is-solid { background: rgba(236, 238, 234, .78); box-shadow: 0 1px 0 var(--line-light); }
.site-header__brand { display: grid; height: 28px; }
.site-header__brand .logo { grid-area: 1 / 1; height: 28px; width: auto; transition: opacity .4s; }
.site-header[data-tone="dark"] .logo--original,
.site-header[data-tone="light"] .logo--reverse { opacity: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); font-size: var(--t-s); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.4; text-decoration: none; position: relative; transition: text-shadow .4s; }
.site-nav a:not(.site-nav__cta):not(.site-nav__login)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.site-nav a:not(.site-nav__cta):not(.site-nav__login):hover::after { transform: scaleX(1); }
/* ログインは控えめに(細い枠)、アカウント作成は主ボタン。地の色(data-tone)に合わせて組み替える */
.site-nav__login {
  margin-left: clamp(0px, .8vw, 12px); padding: 0 18px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent); transition: border-color .3s, background-color .4s, text-shadow .4s;
}
.site-nav__login:hover { border-color: currentColor; }
.site-nav__cta {
  padding: 0 22px; border-radius: 999px; font-weight: 500;
  background: var(--cta-grad); color: var(--abyss); transition: box-shadow .3s, background-color .3s;
}
.site-nav__cta:hover { box-shadow: 0 10px 26px -12px rgba(91, 221, 163, .75); }
@media (min-width: 901px) {
  /* 水面の上(地が透けている間)は、流線や地図の線が文字の裏を通っても読めるよう、文字の周りに地の色をにじませる */
  .site-header:not(.is-solid) .site-nav a:not(.site-nav__cta) { text-shadow: 0 0 6px var(--abyss), 0 0 14px var(--abyss); }
  .site-header[data-tone="light"]:not(.is-solid) .site-nav a:not(.site-nav__cta) { text-shadow: 0 0 5px var(--paper), 0 0 10px var(--paper), 0 0 18px var(--paper); }
  .site-header:not(.is-solid) .site-nav__login { background: rgba(4, 25, 46, .45); }
  .site-header[data-tone="light"]:not(.is-solid) .site-nav__login { background: rgba(236, 238, 234, .8); }
  .site-header[data-tone="light"] .site-nav__cta { background: var(--navy); color: var(--paper); }
  .site-header[data-tone="light"] .site-nav__cta:hover { box-shadow: 0 10px 26px -12px rgba(0, 34, 74, .6); }
  .site-header[data-tone="light"] .site-nav a:focus-visible { outline-color: var(--navy); }
}
.site-header[data-tone="light"] .site-header__brand:focus-visible,
.site-header[data-tone="light"] .site-header__cta:focus-visible,
.site-header[data-tone="light"] .site-header__toggle:focus-visible { outline-color: var(--navy); }
.site-header__toggle {
  display: none; background: none; border: 1px solid currentColor; border-radius: 999px;
  padding: 6px 16px; min-height: 44px; cursor: pointer; font-size: var(--t-s);
}

/* ---------- A. 水面 ---------- */
.hero { position: relative; background: var(--abyss); }
.js .hero { height: 440vh; }
.hero__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.js .hero__stage { position: sticky; top: 0; }
.hero__water { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__copy {
  position: absolute; left: var(--gutter); bottom: clamp(96px, 17vh, 190px);
  color: var(--on-dark); max-width: min(920px, 100% - var(--gutter) * 2);
  opacity: calc(1 - var(--copy-out, 0)); transform: translateY(calc(var(--copy-out, 0) * -40px));
  pointer-events: none;
}
.hero__title {
  font-size: var(--t-hero); font-weight: 300; line-height: 1.06; letter-spacing: .01em;
  text-shadow: 0 2px 40px rgba(4, 25, 46, .6);
}
.hero__title span { overflow: hidden; padding-bottom: .06em; }
.hero__lead {
  margin-top: clamp(20px, 3vh, 32px); max-width: 27em; word-break: auto-phrase; text-wrap: pretty; font-size: var(--t-m); line-height: 1.95;
  color: var(--on-dark-soft); font-weight: 300;
}
.gauge {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%;
  display: grid; justify-items: center; gap: 14px; font-size: var(--t-xs); line-height: 1;
  color: var(--on-dark-soft); opacity: calc(1 - var(--after, 0));
}
.gauge__label { writing-mode: vertical-rl; letter-spacing: .3em; }
.gauge__track { width: 2px; height: 26vh; background: var(--line-dark); position: relative; }
.gauge__fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--drain, 0) * 100%);
  background: linear-gradient(to top, var(--current), var(--swoosh));
}
.hero__hint {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; white-space: nowrap;
  font-size: var(--t-xs); color: var(--on-dark-soft); opacity: calc(.9 - var(--copy-out, 0));
  pointer-events: none;
}
.hero__after {
  position: absolute; inset: auto 0 clamp(64px, 13vh, 140px); text-align: center; padding-inline: var(--gutter);
  opacity: var(--after, 0); transform: translateY(calc((1 - var(--after, 0)) * 24px));
  pointer-events: none;
}
.hero__statement {
  display: inline-block; font-size: var(--t-xl); font-weight: 400; color: var(--navy); line-height: 1.6;
  padding: .5em 1.4em; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(238, 241, 236, .94) 60%, rgba(238, 241, 236, 0));
}

/* 読み込み時の一度きりの演出(見出しが下からせり上がる) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title span > *, .js .hero__title span { animation: rise 1.6s var(--ease-out) both; }
  .js .hero__title span:nth-child(2) { animation-delay: .14s; }
  .js .hero__lead { animation: fade 1.6s .5s var(--ease-out) both; }
}
@keyframes rise { from { transform: translateY(70%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- 理念 ---------- */
.philosophy { background: var(--paper); padding: clamp(88px, 11vw, 150px) 0 clamp(80px, 10vw, 136px); position: relative; z-index: 1; }
.philosophy__title { font-size: var(--t-2xl); line-height: 1.35; font-weight: 400; letter-spacing: .01em; }
.acronym {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 8px 20px;
  border-top: 1px solid var(--line-light); padding-top: 28px;
}
.acronym li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 2px; }
.acronym b {
  font-family: var(--f-lat); font-weight: 300; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1; color: var(--navy);
}
.acronym span { font-family: var(--f-lat); font-size: var(--t-xs); font-weight: 400; color: var(--ink-soft); letter-spacing: .02em; }
.acronym small { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--current); margin-top: 6px; }
.philosophy__grid {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center;
}
/* img の height 属性はCSSの縦横比より強いので、height:auto で写真本来の3:2にする */
.philosophy__photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-m); }
.philosophy__photo figcaption { font-size: var(--t-xs); color: var(--ink-soft); margin-top: 10px; }
.philosophy__text { display: grid; gap: 1.4em; max-width: 34em; color: #1b2f45; font-size: var(--t-m); line-height: 2.05; }
.philosophy__text p:first-child { font-size: var(--t-l); line-height: 1.85; color: var(--navy); }

/* ---------- C. 端末と実画面 ---------- */
.showcase {
  position: relative; color: var(--on-dark);
  background:
    radial-gradient(60% 50% at 70% 55%, rgba(11, 111, 117, .32), transparent 70%),
    radial-gradient(40% 40% at 20% 90%, rgba(91, 221, 163, .08), transparent 70%),
    var(--abyss);
}
.js .showcase { height: 480vh; }
.showcase__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.js .showcase__stage { position: sticky; top: 0; }
.showcase__intro { position: absolute; left: var(--gutter); top: clamp(88px, 13vh, 130px); z-index: 2; max-width: 26em; }
.showcase__title { font-size: var(--t-xl); line-height: 1.5; font-weight: 500; }
.showcase__note { margin-top: 12px; font-size: var(--t-xs); line-height: 1.8; color: var(--on-dark-soft); max-width: 30em; }

.rig { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 50% 40%; }
.device {
  --dw: 270px; --dh: 560px; --dr: 44px; --bz: 10px;
  position: absolute; left: 50%; top: 56%;
  transform: translate(-50%, -50%) translateY(var(--dy, 0px)) translateX(var(--dx, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--ds, 1));
  transform-style: preserve-3d;
}
.device__body {
  position: relative; width: var(--dw); height: var(--dh); border-radius: var(--dr);
  background: linear-gradient(145deg, #1c2c3c, #0a1520 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 0 0 3px #0a1520,
    0 50px 100px -30px rgba(0, 0, 0, .7),
    0 0 140px rgba(91, 221, 163, .1);
}
.device__screen {
  position: absolute; inset: var(--bz); border-radius: calc(var(--dr) - var(--bz));
  overflow: hidden; background: #f6f8fa; isolation: isolate;
}
.scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; }
.scr--phone { opacity: 1; }
.device__notch {
  position: absolute; top: calc(var(--bz) + 8px); left: 50%; translate: -50% 0;
  width: 76px; height: 20px; border-radius: 999px; background: #0a1520; opacity: var(--notch, 1);
}
.device__deck {
  position: absolute; left: 50%; top: 100%; width: calc(var(--dw) * 1.16); height: 16px; translate: -50% -2px;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(#2a3b4c, #101c28 70%);
  box-shadow: 0 24px 40px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: var(--deck, 0); transform: scaleX(var(--deck, 0));
}
.device__deck::after {
  content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 18%; height: 6px;
  border-radius: 0 0 8px 8px; background: #0b1622;
}
.handset {
  position: absolute; left: 50%; top: 57%; width: clamp(160px, 17vw, 236px); aspect-ratio: 375 / 760;
  border-radius: 34px; padding: 8px;
  background: linear-gradient(145deg, #1c2c3c, #0a1520 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -24px rgba(0, 0, 0, .75);
  transform: translate(-50%, -50%) translateX(var(--hx, 60vw)) rotateY(var(--hry, -24deg)) rotateZ(var(--hrz, 4deg));
  opacity: var(--ho, 0);
}
.handset__screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; }
.handset__screen img { width: 100%; height: auto; }

.showcase__panel {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 48px); z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px;
}
.showcase__caption { display: grid; gap: 2px; font-size: var(--t-s); line-height: 1.6; }
.showcase__product { font-weight: 600; color: var(--swoosh); }
.showcase__screen { color: var(--on-dark-soft); }
.rail { display: flex; align-items: center; font-size: var(--t-s); }
.rail__node {
  padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-soft);
  transition: background-color .4s, color .4s, border-color .4s;
}
.rail__node.is-active { background: var(--swoosh); border-color: var(--swoosh); color: var(--abyss); font-weight: 600; }
.rail__node.is-done { color: var(--on-dark); border-color: rgba(91, 221, 163, .5); }
.rail__edge { width: clamp(44px, 6vw, 84px); position: relative; height: 22px; display: grid; place-items: center; }
.rail__edge::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 1.5px dashed rgba(238, 242, 239, .45); }
.rail__edge span { position: relative; font-size: 11px; line-height: 1; padding: 2px 6px; background: var(--abyss); color: var(--on-dark-soft); border-radius: 4px; translate: 0 -12px; }
.rail__aside { grid-column: 1 / -1; font-size: var(--t-xs); line-height: 1.8; color: var(--on-dark-soft); max-width: 52em; }

/* ---------- D. 製品一覧 ---------- */
.catalog { background: var(--paper); padding: clamp(96px, 12vw, 168px) 0 clamp(72px, 9vw, 120px); position: relative; z-index: 1; }
.catalog__head { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.catalog__logo { width: 100%; height: auto; max-width: 240px; margin-top: 10px; }
.catalog__title { font-size: var(--t-2xl); line-height: 1.32; font-weight: 400; }
.catalog__lead { margin-top: 24px; max-width: 36em; color: #1b2f45; }
.catalog__body {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: clamp(24px, 3.5vw, 48px); align-items: start;
}
.catalog__controls { position: sticky; top: 96px; display: grid; gap: 22px; }
.search { display: grid; gap: 8px; }
.search__label { font-size: var(--t-xs); color: var(--ink-soft); }
.search__input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-s);
  border: 1px solid rgba(0, 34, 74, .28); background: #f8faf8; font-size: var(--t-m);
}
.search__input:focus-visible { outline-offset: 0; border-color: var(--current); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(0, 34, 74, .24); background: transparent; font-size: var(--t-s); line-height: 1.2;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.chip__n { font-family: var(--f-lat); font-size: 11px; margin-left: 6px; opacity: .7; }
.catalog__count { font-size: var(--t-xs); color: var(--ink-soft); }
.plist { border-top: 1px solid var(--line-light); }
.plist li { border-bottom: 1px solid var(--line-light); }
.prow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name cats" "sum sum" "status status";
  gap: 4px 20px; align-items: baseline;
  padding: 20px 4px; text-decoration: none; position: relative;
  transition: padding-left .35s var(--ease-out);
}
.prow::before {
  content: ""; position: absolute; left: -16px; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--current); translate: 0 -50%; scale: 0; transition: scale .3s var(--ease-out);
}
.prow:hover, .prow:focus-visible, .prow.is-current { padding-left: 16px; }
.prow:hover::before, .prow:focus-visible::before, .prow.is-current::before { scale: 1; }
.prow__name { grid-area: name; font-size: var(--t-l); font-weight: 500; line-height: 1.5; }
.prow__tag { font-size: 11px; font-weight: 400; vertical-align: .25em; margin-left: 8px; padding: 2px 7px; border-radius: 4px; border: 1px solid rgba(0, 34, 74, .3); color: var(--ink-soft); white-space: nowrap; }
.prow__cats { grid-area: cats; font-size: var(--t-xs); color: var(--current); text-align: right; white-space: nowrap; }
.prow__summary { grid-area: sum; font-size: var(--t-s); color: #2a3e54; line-height: 1.8; max-width: 40em; }
.prow__status { grid-area: status; font-size: 12px; color: var(--ink-soft); }
.prow__thumb {
  display: none; grid-area: thumb; align-self: start; margin-top: 6px;
  width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; object-position: top center;
  background: linear-gradient(135deg, var(--paper-2), #cfd9d4);
}
.ppreview { position: sticky; top: 96px; }
.ppreview__media { aspect-ratio: 16 / 10; border-radius: var(--radius-m); overflow: hidden; background: var(--paper-2); }
.ppreview__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .35s; }
.ppreview__media img.is-loading { opacity: 0; }
.ppreview__headline { margin-top: 16px; font-size: var(--t-l); line-height: 1.6; font-weight: 500; }
.ppreview__kind { margin-top: 6px; font-size: var(--t-xs); color: var(--ink-soft); }
.catalog__empty { margin-top: 24px; padding: 24px; border-radius: var(--radius-m); background: var(--paper-2); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.catalog__reset { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--navy); background: none; cursor: pointer; }
.fine { margin-top: 32px; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.8; }

/* ---------- D2. 連携図 ---------- */
.links { background: var(--abyss); color: var(--on-dark); padding: clamp(96px, 12vw, 160px) 0; position: relative; z-index: 1; }
.links__title { font-size: var(--t-2xl); line-height: 1.32; font-weight: 400; }
.links__lead { margin-top: 24px; max-width: 34em; color: var(--on-dark-soft); }
.links__body { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.graph { position: relative; aspect-ratio: 1000 / 640; }
.graph__edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.graph__edges path { fill: none; transition: opacity .35s, stroke-width .35s; }
.edge--built { stroke: var(--swoosh); stroke-width: 1.6; opacity: .55; }
.edge--planned { stroke: rgba(238, 242, 239, .55); stroke-width: 1.3; stroke-dasharray: 5 6; opacity: .5; }
.edge-flow { stroke: #d9fff0; stroke-width: 2.2; stroke-dasharray: 2 26; opacity: 0; }
.graph[data-selected] .edge--built, .graph[data-selected] .edge--planned { opacity: .1; }
.graph[data-selected] .is-related.edge--built { opacity: 1; stroke-width: 2.4; }
.graph[data-selected] .is-related.edge--planned { opacity: .95; stroke-width: 1.8; }
.graph[data-selected] .is-related.edge-flow { opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .edge-flow { animation: flow 1.6s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -28; } }
.graph__nodes { position: absolute; inset: 0; }
.gnode {
  position: absolute; translate: -50% -50%; white-space: nowrap;
  min-height: 34px; padding: 4px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-dark); background: #08243f; color: var(--on-dark); font-size: var(--t-xs);
  transition: background-color .3s, color .3s, opacity .3s, border-color .3s, box-shadow .3s;
}
.gnode::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gc, var(--on-dark-soft)); margin-right: 7px; vertical-align: .1em; }
.gnode:hover { border-color: rgba(91, 221, 163, .7); }
.graph[data-selected] .gnode { opacity: .38; }
.graph[data-selected] .gnode.is-related { opacity: 1; border-color: rgba(91, 221, 163, .6); }
.graph[data-selected] .gnode[aria-pressed="true"] { opacity: 1; background: var(--swoosh); color: var(--abyss); border-color: var(--swoosh); box-shadow: 0 0 0 6px rgba(91, 221, 163, .16); font-weight: 600; }
.links__panel { border-top: 1px solid var(--line-dark); padding-top: 20px; min-height: 280px; }
.links__panel h3 { font-size: var(--t-l); font-weight: 500; line-height: 1.5; }
.links__panel .p-sum { margin-top: 8px; font-size: var(--t-s); color: var(--on-dark-soft); line-height: 1.8; }
.links__panel h4 { margin: 22px 0 8px; font-size: var(--t-xs); font-weight: 500; color: var(--on-dark-soft); }
.links__panel ul { display: grid; gap: 10px; }
.links__panel li { font-size: var(--t-s); line-height: 1.6; padding-left: 26px; position: relative; }
.links__panel li::before { content: ""; position: absolute; left: 0; top: .8em; width: 16px; border-top: 2px solid var(--swoosh); }
.links__panel li.is-planned::before { border-top: 2px dashed rgba(238, 242, 239, .7); }
.links__panel li small { display: block; color: var(--on-dark-soft); font-size: var(--t-xs); }
.links__panel .p-link { display: inline-block; margin-top: 22px; font-size: var(--t-s); color: var(--swoosh); }
.legend { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: var(--t-xs); color: var(--on-dark-soft); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend li::before { content: ""; width: 28px; border-top: 2px solid var(--swoosh); }
.legend .legend__planned::before { border-top: 2px dashed rgba(238, 242, 239, .7); }

/* ---------- 事業 ---------- */
.business { background: var(--paper); padding: clamp(96px, 12vw, 168px) 0; position: relative; z-index: 1; }
.business__title { font-size: var(--t-2xl); line-height: 1.32; font-weight: 400; }
.blist { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line-light); }
.blist li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px clamp(24px, 5vw, 80px);
  padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line-light); align-items: baseline;
}
.blist h3 { font-size: var(--t-xl); line-height: 1.45; font-weight: 400; }
.blist p { color: #2a3e54; max-width: 32em; }

/* ---------- 問い合わせ ---------- */
.contact {
  background:
    radial-gradient(70% 90% at 85% 100%, rgba(11, 111, 117, .45), transparent 70%),
    var(--abyss);
  color: var(--on-dark); padding: clamp(104px, 14vw, 190px) 0; position: relative; z-index: 1; overflow: hidden;
}
.contact__title { font-size: var(--t-2xl); line-height: 1.35; font-weight: 400; max-width: 14em; }
.contact__lead { margin-top: 24px; max-width: 32em; color: var(--on-dark-soft); }
.contact__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px;
  border-radius: 999px; text-decoration: none; font-weight: 500; transition: transform .3s var(--ease-out), box-shadow .3s;
}
.btn--primary { background: var(--cta-grad); color: var(--abyss); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(91, 221, 163, .6); }
/* 紙色の地では、ミントの地だと境界が背景に溶ける(1.5:1前後)ので、紺の地に紙色の文字にする */
main > [data-tone="light"] .btn--primary, .page-light main .btn--primary, .policy-page main .btn--primary { background: var(--navy); color: var(--paper); }
main > [data-tone="light"] .btn--primary:hover, .page-light main .btn--primary:hover, .policy-page main .btn--primary:hover { box-shadow: 0 14px 30px -12px rgba(0, 34, 74, .55); }
main > [data-tone="light"] :focus-visible, .page-light main :focus-visible, .policy-page main :focus-visible { outline-color: var(--navy); }
.btn--ghost { border: 1px solid rgba(238, 242, 239, .42); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); }
.contact__sub { margin-top: 28px; font-size: var(--t-s); }
.contact__sub a { color: var(--on-dark-soft); }

/* フッターは共通部品(site/shared/asgrit/footer.*) */

/* ---------- 狭い画面 ---------- */
@media (max-width: 1100px) {
  .catalog__body { grid-template-columns: 220px minmax(0, 1fr); }
  .ppreview { display: none; }
  .prow { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "thumb name cats" "thumb sum sum" "thumb status status"; column-gap: 18px; }
  .prow__thumb { display: block; }
  .prow::before { display: none; }
  .prow:hover, .prow:focus-visible, .prow.is-current { padding-left: 4px; }
}
@media (max-width: 900px) {
  .site-header__toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: fixed; inset: 64px 12px auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px; border-radius: var(--radius-m); background: var(--abyss); color: var(--on-dark);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .25s, translate .25s, visibility .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; translate: 0 0; }
  .site-nav a { display: block; padding: 12px; font-size: var(--t-m); }
  .site-nav a::after { display: none; }
  .site-nav .site-nav__login, .site-nav .site-nav__cta { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 8px 0 0; text-align: center; }
  .site-nav .site-nav__login { margin-top: 12px; border-color: rgba(238, 242, 239, .55); }
  .philosophy__grid, .catalog__head, .links__body, .blist li { grid-template-columns: 1fr; }
  .acronym { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .catalog__body { grid-template-columns: 1fr; }
  .catalog__controls { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chip { flex: none; }
  .graph { aspect-ratio: 360 / 560; }
  .links__panel { min-height: 0; }
  .gauge { display: none; }
  .showcase__panel { grid-template-columns: 1fr; }
  .device { top: 45%; }
  .handset { top: 47%; }
}
@media (max-width: 600px) {
  .catalog__logo { max-width: 170px; }
  .prow { grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "thumb name" "thumb cats" "thumb sum" "thumb status"; column-gap: 14px; padding-block: 16px; }
  .prow__cats { text-align: left; }
  .prow__name { font-size: 1.125rem; }
  .hero__hint-touch { display: none; }
  .acronym { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .hero__hint { bottom: 40px; }
  .acronym span { overflow-wrap: anywhere; }
  .rail { font-size: var(--t-xs); }
  .rail__node { padding: 5px 11px; }
  .rail__edge { width: 40px; }
  .gnode { font-size: 11px; min-height: 30px; padding: 3px 9px; }
  .gnode::before { display: none; }
  .showcase__intro { top: 76px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .handset { width: 40vw; }
}

/* 動きを減らす設定:スクロール連動の大きな動きを止め、内容をそのまま読める形にする */
.reduce-motion .hero { height: auto; }
.reduce-motion .showcase { height: auto; }
.reduce-motion .hero__stage, .reduce-motion .showcase__stage { position: relative; }

/* ---------- 物語(第1〜5幕) ---------- */
.act { position: relative; background: var(--abyss); color: var(--on-dark); }
.js .act1 { height: 720vh; }
.js .act2 { height: 760vh; }
/* 第2・第3幕は前の幕の最後の100vhに重ね、流線のワイプで現す(main.js) */
.js .act1, .js .act2, .js .act3 { margin-top: -100vh; margin-top: -100svh; background: transparent; }
.act1 .act__stage { background: var(--abyss); }
.wipe-glow.act-join { position: fixed; top: 0; height: 100vh; height: 100svh; z-index: 40; }
.js .act3 { height: 820vh; }
.js .act5 { height: 560vh; }
.act__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); isolation: isolate; }
.js .act__stage { position: sticky; top: 0; }
.act__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 14; pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 25, 46, .5), rgba(4, 25, 46, 0) 20%, rgba(4, 25, 46, 0) 56%, rgba(4, 25, 46, .72));
}
.act__night { position: absolute; inset: 0; background: radial-gradient(90% 80% at 60% 50%, #0b2a45, var(--abyss)); opacity: var(--dark, 0); }
.act__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.act__fade { position: absolute; inset: 0; z-index: 20; background: var(--abyss); opacity: 0; pointer-events: none; }
.act__label {
  position: absolute; left: var(--gutter); top: 84px; z-index: 15; display: flex; gap: 12px; align-items: baseline;
  font-size: var(--t-xs); color: rgba(238, 242, 239, .86); text-shadow: 0 1px 12px rgba(4, 25, 46, .6);
}
.act__label span { font-weight: 600; color: var(--swoosh); }
.act__label--static { position: static; margin-bottom: 18px; text-shadow: none; color: var(--on-dark-soft); }
.act__caption {
  position: absolute; left: var(--gutter); bottom: clamp(76px, 14vh, 150px); z-index: 15; max-width: 18em;
  font-size: var(--t-xl); line-height: 1.5; font-weight: 500; color: #fff; text-shadow: 0 2px 24px rgba(4, 25, 46, .55); word-break: auto-phrase;
  opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); pointer-events: none;
}
.act__caption.is-on { opacity: 1; translate: 0 0; }
.act__caption--hint { font-size: var(--t-m); color: var(--swoosh); }
.tag {
  position: absolute; right: var(--gutter); bottom: 16px; z-index: 15; max-width: min(540px, calc(100vw - var(--gutter) * 2 - 150px));
  margin: 0; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; line-height: 1.65;
  background: rgba(4, 25, 46, .78); color: var(--on-dark-soft); opacity: 0; transition: opacity .45s; pointer-events: none;
}
.tag.is-on { opacity: 1; }
.tag--concept { box-shadow: inset 0 0 0 1px rgba(238, 242, 239, .35); }
.tag--real { box-shadow: inset 3px 0 0 var(--swoosh); padding-left: 14px; }
.wipe-glow, .act5__glow {
  position: absolute; left: 0; top: 0; height: 100%; z-index: 6; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 0 8px rgba(91, 221, 163, .9)) drop-shadow(0 0 26px rgba(91, 221, 163, .5));
}
.wipe-glow svg, .act5__glow svg { width: 100%; height: 100%; display: block; }
.wipe-glow path, .act5__glow path { stroke-width: 5px; }

/* 第1幕 */
.ai-app {
  position: absolute; left: 0; top: 0; z-index: 3; margin: 0; transform-origin: 0 0; opacity: 0; overflow: hidden; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(91, 221, 163, .55), 0 0 50px rgba(91, 221, 163, .25);
}
.ai-app img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.dialog { position: absolute; left: var(--gutter); top: 50%; translate: 0 -46%; z-index: 15; width: min(380px, 31vw); display: grid; gap: 12px; }
.dialog li {
  padding: 12px 16px; border-radius: 16px; font-size: var(--t-s); line-height: 1.7; color: var(--on-dark);
  background: rgba(8, 36, 63, .88); border: 1px solid var(--line-dark);
  opacity: 0; translate: 0 12px; transition: opacity .5s var(--ease-out), translate .5s var(--ease-out);
}
.dialog li.is-on { opacity: 1; translate: 0 0; }
.dialog small { display: block; font-size: 12px; color: var(--swoosh); margin-bottom: 2px; }
.dialog__caller { border-radius: 16px 16px 16px 4px !important; }
.dialog__ai, .dialog__handoff { margin-left: 28px; border-color: rgba(91, 221, 163, .45) !important; }
.dialog__intent { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 28px; padding: 0 !important; background: none !important; border: 0 !important; }
.dialog__intent span { padding: 4px 12px; border-radius: 999px; background: rgba(91, 221, 163, .16); color: var(--swoosh); font-size: 12px; }

/* 第2幕 */
.act2__photo { position: absolute; inset: 0; z-index: 2; opacity: var(--photo, 0); filter: brightness(calc(1 - var(--after, 0) * .55)); }
.act2__shot { width: 100%; height: 100%; object-fit: cover; }
.tap-ui {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column; gap: 12px;
  padding: 30px 18px 22px; border-radius: 14px; overflow: hidden; background: #f4f7f5; color: var(--navy); font-size: 16px; line-height: 1.4;
}
.tap-ui__head { font-weight: 700; font-size: 21px; }
.tap-ui__list { display: grid; gap: 10px; }
.tap-ui__list li { display: flex; justify-content: space-between; padding: 15px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(0, 34, 74, .08); font-size: 15px; }
.tap-ui__list li::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background: var(--current); margin-right: 10px; flex: none; }
.tap-ui__list b { margin-left: auto; font-weight: 600; }
.tap-ui__done { margin-top: 6px; font-weight: 700; color: var(--current); opacity: 0; transition: opacity .4s; }
.tap-ui__btn {
  margin-top: auto; min-height: 72px; border: 0; border-radius: 36px; cursor: pointer;
  background: linear-gradient(100deg, var(--current), var(--swoosh)); color: var(--abyss); font-size: 19px; font-weight: 700;
  transition: background .3s, color .3s, transform .2s;
}
.tap-ui__btn:active { transform: scale(.97); }
.act2.is-tapped .tap-ui__btn { background: var(--navy); color: #fff; }
.act2.is-tapped .tap-ui__done { opacity: 1; }
.act2__finger { position: absolute; z-index: 3; pointer-events: none; }
.act2__doc {
  --t: 0; position: absolute; left: 50%; top: 50%; z-index: 13; width: min(360px, 62vw); margin: 0;
  background: #fff; border-radius: 4px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 34, 74, .06);
  opacity: calc(var(--t) * 3);
  transform: translate(-50%, -50%) translate(calc(var(--from-x, 0px) * (1 - var(--t))), calc(var(--from-y, 0px) * (1 - var(--t)))) scale(calc(.14 + .86 * var(--t))) rotate(calc((1 - var(--t)) * -8deg));
}
.act2__doc img { width: 100%; height: auto; }
.act2__done { position: absolute; inset: 0; z-index: 14; margin: 0; overflow: hidden; visibility: hidden; }
.act2__done img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; transform-origin: 40% 40%; }
.act2__glow { z-index: 14; }

/* 第1幕:着信の合図(ヘッドセットの位置) */
.ring { position: absolute; left: 0; top: 0; z-index: 6; width: 0; height: 0; opacity: 0; pointer-events: none; }
.ring::before, .ring::after {
  content: ""; position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--swoosh); box-shadow: 0 0 18px rgba(91, 221, 163, .6);
}
@media (prefers-reduced-motion: no-preference) {
  .ring::before, .ring::after { animation: ring 1.4s var(--ease-out) infinite; }
  .ring::after { animation-delay: .7s; }
}
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* 第3幕 */
.act3 .act__stage, .act5 .act__stage { background: var(--abyss); }
.act3__film { position: absolute; inset: 0; z-index: 2; overflow: hidden; transform-origin: 50% 50%; }
.act3__city { position: absolute; inset: 0; width: 100%; height: 100%; }
.act3__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act3.no-webgl .act3__city { display: none; }
.act3.no-webgl .act3__fallback { display: block; }
/* 写真の中の「実行」ボタンに重ねる、本物のボタン(見た目は画面側に描く) */
.send-ui__btn {
  position: absolute; left: 0; top: 0; z-index: 9; transform-origin: 0 0; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: transparent; font-size: 1px; cursor: pointer; visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .send-ui__btn { animation: beckon 1.8s ease-in-out infinite; }
}
@keyframes beckon { 50% { box-shadow: 0 0 0 12px rgba(91, 221, 163, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 221, 163, .6); } }
.send-ui__btn:focus-visible { outline: 3px solid var(--swoosh); outline-offset: 2px; }
.act3.is-sent .send-ui__btn { animation: none; }
.cursor {
  position: absolute; left: -3px; top: -2px; z-index: 10; width: 24px; height: 32px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M2 2v24l6.5-6 4.5 10 4-2-4.5-10H22z' fill='%23fff' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
}
.portal__toast {
  position: absolute; left: 0; top: 0; z-index: 12; margin: 0; padding: 14px 24px; border-radius: 14px; font-size: var(--t-l); font-weight: 700; white-space: nowrap;
  background: var(--navy); color: #fff; box-shadow: 0 16px 40px -12px rgba(0, 34, 74, .6), 0 0 0 1px rgba(91, 221, 163, .35);
  opacity: 0; translate: -50% calc(-100% - 4px); transition: opacity .5s var(--ease-out), translate .5s var(--ease-out);
}
.act3.is-arrived .portal__toast { opacity: 1; translate: -50% calc(-100% - 18px); }
.portal__toast::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--swoosh); margin-right: 10px; box-shadow: 0 0 12px var(--swoosh); }
.act3__dot, .graph__origin {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: #e2fff4; box-shadow: 0 0 0 6px rgba(91, 221, 163, .22), 0 0 44px 12px rgba(91, 221, 163, .55);
}
.act3__dot { z-index: 13; }

/* 第4幕(連携図):光の点から製品の点が広がる */
.graph__origin { z-index: 2; transition: opacity .7s .8s; }
.graph.is-intro .graph__origin { opacity: 1; transition: none; }
.gnode { transition: left .9s var(--ease-out) var(--d, 0ms), top .9s var(--ease-out) var(--d, 0ms), scale .6s var(--ease-out) var(--d, 0ms), opacity .45s var(--d, 0ms), background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.graph.is-intro .gnode { left: 50% !important; top: 50% !important; scale: 0; opacity: 0 !important; }
.graph.is-ready .gnode { --d: 0ms; }
.graph:not(.is-ready) .graph__edges path { transition: opacity .9s 1s; }
.graph.is-intro .graph__edges path { opacity: 0 !important; }

/* 第5幕 */
.frame { position: absolute; inset: 0; margin: 0; overflow: hidden; visibility: hidden; }
.frame img, .frame__seq { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.act5__copy {
  position: absolute; left: var(--gutter); bottom: clamp(76px, 13vh, 140px); z-index: 15; max-width: min(44em, calc(100vw - var(--gutter) * 2)); color: #fff; word-break: auto-phrase;
  text-shadow: 0 2px 24px rgba(4, 25, 46, .6); opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
}
.act5__copy.is-on { opacity: 1; translate: 0 0; }
.act5__line { font-size: var(--t-xl); font-weight: 500; line-height: 1.5; }
.act5__sub { margin-top: 10px; font-size: var(--t-s); line-height: 1.9; color: rgba(238, 242, 239, .9); max-width: 28em; }
.act5__final {
  position: absolute; inset: 0; z-index: 15; display: grid; place-items: center; padding: var(--gutter); text-align: center; pointer-events: none;
  opacity: var(--final, 0); background: radial-gradient(60% 55% at 50% 50%, rgba(4, 25, 46, .58), rgba(4, 25, 46, .12));
}
.act5__message {
  font-size: clamp(2rem, 6vw, 5.4rem); font-weight: 300; line-height: 1.35; color: #fff; letter-spacing: .02em;
  text-shadow: 0 4px 44px rgba(4, 25, 46, .65); transform: translateY(calc((1 - var(--final, 0)) * 24px));
}
.act5__message span { display: inline-block; }
.act5__note { opacity: 1; }

.no-webgl .act1 .act__stage { background: center / cover url("../story/act1-look.webp"); }
.no-webgl .act2 .act__stage { background: center / cover url("../story/act2-paper.webp"); }

@media (max-width: 900px) {
  .act__label { top: 76px; }
  .act__caption, .act5__copy { bottom: 132px; right: var(--gutter); }
  .act__caption { font-size: 1.375rem; }
  .tag { font-size: 11.5px; }
  .tag { left: var(--gutter); right: var(--gutter); max-width: none; bottom: 14px; }
  .dialog { top: auto; bottom: 96px; translate: none; width: auto; right: var(--gutter); gap: 8px; }
  .dialog li { font-size: 13px; padding: 9px 12px; }
  .dialog__handoff { display: none; }
  .portal__toast { font-size: 15px; padding: 10px 16px; }
}

/* ===== 公式HP(新構成) ===== */
.js .work { height: 620vh; }
.js .flowcity { height: 680vh; }
.js .cocreate { height: 780vh; }
.work .act__stage, .cocreate .act__stage { background: var(--abyss); }
.contact__sub { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* 章のはじめ(GRITAS) */
.chapter { position: relative; z-index: 1; background: var(--abyss); color: var(--on-dark); padding: clamp(96px, 9vw, 140px) 0 clamp(88px, 10vw, 140px); overflow: hidden; }
.chapter::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, rgba(11, 111, 117, .35), transparent); pointer-events: none; }
.chapter__inner { position: relative; }
.chapter__logo { width: clamp(150px, 18vw, 230px); height: auto; }
.chapter__title { margin-top: clamp(24px, 3vw, 36px); font-size: var(--t-2xl); line-height: 1.3; font-weight: 400; }
.chapter__lead { margin-top: 24px; max-width: 38em; color: var(--on-dark-soft); }

/* 業務の場面 → 一覧 */
.work__solo { position: absolute; inset: 0; z-index: 3; overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
/* 縦長の画面では左右が切れるので、写真ごとに手元の動作(スマートフォン・読み取り機・レジ)が入る位置を指定する */
.work__solo .frame img, .act5 .frame img, .act5 .frame__seq { object-position: var(--fx, 50%) 50%; }
.work__grid {
  position: absolute; inset: 104px var(--gutter) 236px; z-index: 2; opacity: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px);
}
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-dark); background: #0b2238; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5;
  background: rgba(4, 25, 46, .78); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(91, 221, 163, .35);
}
.work__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.work__lines path { fill: none; stroke: var(--swoosh); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(91, 221, 163, .9)); }
@media (prefers-reduced-motion: no-preference) {
  .work__grid.is-linked .work__lines path { stroke-dasharray: 3 9 !important; animation: flowdash 1.1s linear infinite; }
}
@keyframes flowdash { to { stroke-dashoffset: -12; } }

/* 情報の光に添える名前 */
.flow-labels { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.flow-label {
  position: absolute; left: 0; top: 0; padding: 4px 10px; border-radius: 999px; white-space: nowrap; opacity: 0;
  font-size: 13px; font-weight: 600; color: var(--on-dark); background: rgba(4, 25, 46, .72); box-shadow: inset 0 0 0 1px rgba(91, 221, 163, .45);
}

/* これからの製品(連携図) */
.graph__future span {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px dashed rgba(91, 221, 163, .75); color: var(--swoosh); font-size: 20px; line-height: 1; opacity: 0; transform: scale(.4);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.graph__future span:nth-child(1) { left: 6%; top: 14%; }
.graph__future span:nth-child(2) { left: 94%; top: 18%; }
.graph__future span:nth-child(3) { left: 97%; top: 78%; }
.graph__future span:nth-child(4) { left: 4%; top: 86%; }
.graph__future span:nth-child(5) { left: 52%; top: 97%; }
.graph.is-ready .graph__future span { opacity: 1; transform: scale(1); }
.graph.is-ready .graph__future span:nth-child(2) { transition-delay: .25s; }
.graph.is-ready .graph__future span:nth-child(3) { transition-delay: .5s; }
.graph.is-ready .graph__future span:nth-child(4) { transition-delay: .75s; }
.graph.is-ready .graph__future span:nth-child(5) { transition-delay: 1s; }
@media (prefers-reduced-motion: no-preference) {
  .graph.is-ready .graph__future span { animation: beckon 2.6s ease-in-out 1.6s infinite; }
}
.legend .legend__future::before { width: 14px; height: 14px; border: 1.5px dashed var(--swoosh); border-radius: 50%; border-top-style: dashed; }

/* 提供状況 */
.chips--status { margin-top: 2px; }
.chip--available[aria-pressed="false"] { box-shadow: inset 0 0 0 1px var(--current); }
.prow__status--available { color: var(--current); font-weight: 600; }
.status-legend { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line-light); padding-top: 20px; }
.status-legend__item dt { font-weight: 600; font-size: var(--t-s); }
.status-legend__item dt span { margin-left: 8px; font-weight: 400; color: var(--ink-soft); font-size: var(--t-xs); }
.status-legend__item dd { margin: 4px 0 0; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.7; }
.status-legend__item--available dt { color: var(--current); }

/* 共同開発の式 */
.formula {
  position: absolute; left: 50%; bottom: clamp(96px, 13vh, 150px); z-index: 15; margin: 0; display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  padding: 18px clamp(20px, 3vw, 40px); border-radius: 999px; background: rgba(4, 25, 46, .78); box-shadow: inset 0 0 0 1px rgba(91, 221, 163, .3);
  translate: -50% 0; opacity: var(--f, 0); pointer-events: none; color: var(--on-dark); text-align: center; white-space: nowrap;
}
.formula__term { font-size: clamp(1.05rem, 2.1vw, 1.7rem); line-height: 1.35; font-weight: 500; transform: translateY(calc((1 - var(--f, 0)) * 18px)); text-shadow: 0 2px 24px rgba(4, 25, 46, .9); }
.formula__x { font-family: var(--f-lat); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--swoosh); }

/* 共同開発の進め方 */
.costeps { position: relative; z-index: 1; background: var(--paper); padding: clamp(96px, 12vw, 168px) 0; }
.costeps__title { font-size: var(--t-2xl); line-height: 1.32; font-weight: 400; }
.costeps__lead { margin-top: 20px; max-width: 40em; color: #2a3e54; }
.costeps__list { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; list-style: none; border-top: 2px solid var(--current); counter-reset: step; }
.costeps__list li { position: relative; padding: 28px 24px 0 0; counter-increment: step; }
.costeps__list li::before { content: counter(step); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--f-lat); background: var(--current); color: var(--paper); }
.costeps__list b { display: block; font-size: var(--t-l); font-weight: 500; line-height: 1.4; }
.costeps__list span { display: block; margin-top: 10px; font-size: var(--t-s); color: #2a3e54; }
/* 共同開発の写真は1枚(img の height 属性に負けないよう height:auto) */
.costeps__photo { margin: clamp(48px, 7vw, 88px) 0 0; }
.costeps__photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-m); }
.costeps__photo figcaption { margin-top: 10px; font-size: var(--t-xs); color: var(--ink-soft); }

/* 事業紹介:3つの柱 */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin: clamp(40px, 6vw, 64px) 0 clamp(48px, 6vw, 72px); padding: 0; list-style: none; }
.pillars a { display: grid; gap: 10px; height: 100%; padding: 28px 26px 30px; border-top: 3px solid var(--current); background: rgba(255, 255, 255, .55); color: inherit; text-decoration: none; transition: background-color .3s; }
.pillars a:hover { background: #fff; }
.pillars b { font-family: var(--f-lat); font-weight: 400; font-size: var(--t-s); letter-spacing: .04em; color: var(--current); }
.pillars__head { font-size: var(--t-l); line-height: 1.5; font-weight: 500; }
.pillars__body { font-size: var(--t-s); color: #2a3e54; }

@media (max-width: 900px) {
  .work__grid { inset: 92px var(--gutter) 210px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tile { border-radius: 10px; }
  .tile figcaption { left: 6px; bottom: 6px; padding: 3px 9px; font-size: 11px; }
  .status-legend { grid-template-columns: 1fr 1fr; }
  .formula { flex-direction: column; gap: 4px; white-space: normal; bottom: 150px; border-radius: 20px; width: calc(100% - var(--gutter) * 2); }
  .formula__term br { display: none; }
  .costeps__list { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--current); padding-left: 28px; gap: 28px; }
  .costeps__list li { padding: 0; }
  .costeps__list li::before { top: 0; left: -43px; }
  .pillars { grid-template-columns: 1fr; }
  .costeps__photo img { aspect-ratio: 3 / 2; }
  .flow-label { font-size: 10px; padding: 3px 8px; }
}

/* 見出しは文節で折り返す(対応ブラウザのみ) */
h1, h2, h3, .chapter__title, .links__title, .costeps__title { word-break: auto-phrase; }

/* ---------- 目的から探す(ファーストビュー・メニュー・フッター) ---------- */
.site-nav small { display: none; }
.routes {
  margin-top: clamp(24px, 4vh, 40px); max-width: 880px; pointer-events: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px);
}
.routes__item { position: relative; display: grid; gap: 2px; padding: 14px 0 6px; border-top: 1px solid rgba(238, 242, 239, .32); text-decoration: none; }
.routes__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--current), var(--swoosh));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.routes__item:hover::before, .routes__item:focus-visible::before { transform: scaleX(1); }
.routes__item b { font-weight: 500; font-size: var(--t-m); line-height: 1.6; color: var(--on-dark); }
.routes__item span { font-size: var(--t-xs); line-height: 1.6; color: var(--on-dark-soft); }
@media (prefers-reduced-motion: no-preference) {
  .js .routes { animation: fade 1.6s .8s var(--ease-out) both; }
}

/* 遠い場所へ移るときの短い暗転(ヘッダーは上に残す) */
.jump-veil { position: fixed; inset: 0; z-index: 45; background: var(--abyss); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.jump-veil.is-on { opacity: 1; transition-duration: .2s; }

/* 入口から着いた場所の名前 */
.section-name { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: var(--t-s); font-weight: 500; color: var(--current); }
.section-name::before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg, var(--current), var(--swoosh)); }

.costeps__cta {
  margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line-light);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: center;
}
.costeps__cta p { max-width: 34em; color: #2a3e54; }
.costeps__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.costeps__film { font-size: var(--t-s); color: var(--navy); }

/* 製品一覧:GRITASと別のサービスを分けて数える */
.plist .plist__sep { padding: 28px 0 10px; font-size: var(--t-xs); font-weight: 600; color: var(--ink-soft); }
.status-legend__title { margin-top: 36px; font-size: var(--t-s); font-weight: 600; }
.status-legend__title + .status-legend { margin-top: 12px; }
.status-legend__other { margin-top: 14px; font-size: var(--t-xs); color: var(--ink-soft); }

/* 会社概要(company.html) */
.company__list { margin: 0; border-top: 1px solid var(--line-light); }
.company__list > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.company__list dt { font-size: var(--t-s); color: var(--ink-soft); }
.company__list dd { margin: 0; }
.company__purpose dd > p { margin-bottom: 8px; font-size: var(--t-xs); color: var(--ink-soft); }
.company__purpose ol { counter-reset: purpose; display: grid; gap: 6px; font-size: var(--t-s); line-height: 1.75; }
.company__purpose li { counter-increment: purpose; display: grid; grid-template-columns: 2.8em minmax(0, 1fr); }
.company__purpose li::before { content: "(" counter(purpose) ")"; color: var(--ink-soft); font-variant-numeric: tabular-nums; }


@media (max-width: 900px) {
  .site-nav small { display: block; margin-top: 2px; font-size: var(--t-xs); line-height: 1.5; color: var(--on-dark-soft); }
  .costeps__cta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .routes { grid-template-columns: 1fr; margin-top: 18px; }
  .routes__item { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 2px 10px 0; }
  .routes__item span { display: none; }
  .routes__item::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--swoosh); border-right: 1.5px solid var(--swoosh); rotate: 45deg; flex: none; }
  .company__list > div { grid-template-columns: 1fr; padding: 14px 0; }
  .company__purpose li { grid-template-columns: 2.6em minmax(0, 1fr); }
}

/* ---------- プライバシーポリシー ---------- */
.policy-page { background: var(--paper); }
.policy { padding: 128px 0 clamp(72px, 9vw, 120px); color: var(--navy); }
.policy__wrap { width: min(820px, 100% - var(--gutter) * 2); margin-inline: auto; }
.policy__draft { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 14px; border-radius: var(--radius-s); background: var(--paper-2); font-size: var(--t-xs); color: var(--ink-soft); }
.policy__title { margin-top: 28px; font-size: var(--t-2xl); font-weight: 400; line-height: 1.3; }
.policy__intro { margin-top: 24px; }
.policy__toc { margin-top: 40px; padding: 22px 26px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .55); }
.policy__toc ol { columns: 2; column-gap: 32px; font-size: var(--t-s); counter-reset: toc; }
.policy__toc li { counter-increment: toc; break-inside: avoid; padding: 3px 0; }
.policy__toc li::before { content: counter(toc) ". "; color: var(--ink-soft); }
.policy__toc a { text-decoration: none; }
.policy__toc a:hover { text-decoration: underline; }
.policy section { margin-top: 56px; scroll-margin-top: 96px; }
.policy h2 { font-size: var(--t-xl); font-weight: 500; line-height: 1.45; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.policy section p + p { margin-top: 12px; }
.policy__list { margin-top: 12px; display: grid; gap: 10px; }
.policy__list > li { position: relative; padding-left: 1.2em; }
.policy__list > li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--current); }
.policy__list b { display: block; font-weight: 600; }
.policy__list--num { counter-reset: pnum; }
.policy__list--num > li { counter-increment: pnum; padding-left: 2.2em; }
.policy__list--num > li::before { content: "(" counter(pnum) ")"; top: 0; width: auto; height: auto; border-radius: 0; background: none; color: var(--ink-soft); }
.policy__facts { margin: 0; border-top: 1px solid var(--line-light); }
.policy__facts > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.policy__facts dt { font-size: var(--t-s); color: var(--ink-soft); }
.policy__facts dd { margin: 0; }
.policy__table { margin-top: 16px; overflow-x: auto; }
.policy__table table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.policy__table th, .policy__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-light); }
.policy__table th { font-weight: 600; background: var(--paper-2); }
.policy__date { margin-top: 56px; font-size: var(--t-s); color: var(--ink-soft); }
/* 公開前に確認する箇所(草案のあいだだけ表示) */
.todo { display: inline-block; margin: 0 4px; padding: 1px 9px; border-radius: 999px; font-size: 11px; line-height: 1.75; font-weight: 600; color: #7a4300; background: #ffe2b8; vertical-align: .12em; }
@media (max-width: 600px) {
  .policy__toc ol { columns: 1; }
  .policy__facts > div { grid-template-columns: 1fr; }
}

/* ===== 追加改善(独立ページ・導線・写真) ===== */

/* ヘッダー:狭い画面では5項目をメニューに収め、主導線の「アカウント作成」だけを外に出しておく
   (PCの主ボタンと同じ行き先にそろえ、共通アカウントの入口が開いたときもマークアップを変えずに済むため) */
.site-header__cta { display: none; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 900px) {
  .site-header { gap: 10px; padding-block: 12px; }
  .site-header__cta {
    display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 6px 16px; border-radius: 999px;
    font-size: var(--t-s); font-weight: 500; text-decoration: none; background: var(--cta-grad); color: var(--abyss);
  }
  .site-header[data-tone="light"] .site-header__cta { background: var(--navy); color: var(--paper); }
  .site-header__cta, .site-header__toggle { white-space: nowrap; flex-shrink: 0; }
  .site-nav { inset: 72px 12px auto; }
}
/* 375px前後の端末でも、ロゴ・アカウント作成・メニューを1行に収める */
@media (max-width: 420px) {
  .site-header { gap: 8px; }
  .site-header__cta, .site-header__toggle { padding-inline: 12px; }
}

/* 行き先のボタン。資料請求は受付の準備ができるまでリンクにせず「準備中」と示す */
.cta-row { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.cta-row--dark { margin-top: clamp(36px, 5vw, 56px); }
.btn--line { border: 1px solid rgba(0, 34, 74, .56); color: var(--navy); }
.btn--line:hover { border-color: var(--navy); }
.btn--pending { border: 1px dashed currentColor; opacity: .6; cursor: default; font-weight: 400; }
.btn--pending small { margin-left: 10px; padding: 2px 8px; border-radius: 4px; border: 1px solid currentColor; font-size: 11px; line-height: 1.5; }
.contact__pending { margin-top: 14px; font-size: var(--t-xs); color: var(--on-dark-soft); }

/* GRITAS:文章の右に、部門ごとの仕事が同じフロアで進むオフィスの写真。部門の間を光の線でつなぐ */
.chapter__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.chapter__photo { position: relative; margin: 0; }
.chapter__photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px rgba(91, 221, 163, .2), 0 40px 90px -40px rgba(0, 0, 0, .85);
}
.chapter__lines { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 3 / 2; overflow: visible; pointer-events: none; }
.chapter__lines path { fill: none; stroke: #13b48f; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 12 14; filter: drop-shadow(0 0 2px rgba(4, 25, 46, .55)) drop-shadow(0 0 10px rgba(91, 221, 163, .95)); }
.chapter__lines circle { fill: #e9fff6; stroke: #13b48f; stroke-width: 5; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 10px rgba(91, 221, 163, 1)); }
.chapter__photo figcaption { margin-top: 10px; font-size: var(--t-xs); color: var(--on-dark-soft); }
@media (prefers-reduced-motion: no-preference) {
  .chapter__lines path { animation: chapterflow 1.6s linear infinite; }
  .chapter__lines circle { animation: beat 2.6s ease-in-out infinite; }
}
@keyframes chapterflow { to { stroke-dashoffset: -24; } }
@keyframes beat { 50% { opacity: .5; transform: scale(.7); } }

/* 製品群の概要(トップ)。詳しい検索・絞り込みは products.html */
.lineup { background: var(--paper); padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 10vw, 140px); position: relative; z-index: 1; }
.lineup__cats { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.lineup__cat {
  display: grid; grid-template-rows: auto auto 1fr; gap: 6px; height: 100%; padding: 22px 20px 24px;
  border-top: 3px solid var(--current); background: rgba(255, 255, 255, .55); text-decoration: none; transition: background-color .3s;
}
.lineup__cat:hover { background: #fff; }
.lineup__label { font-size: var(--t-m); font-weight: 600; line-height: 1.5; }
.lineup__n { font-family: var(--f-lat); font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 300; line-height: 1.15; color: var(--current); }
.lineup__n small { font-family: var(--f-jp); font-size: var(--t-xs); margin-left: 4px; color: var(--ink-soft); }
.lineup__names { font-size: var(--t-xs); line-height: 1.85; color: #2a3e54; }
.lineup__note { margin-top: 20px; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.8; }

/* ASGRITについて → 会社概要(独立ページ) */
.about-company {
  margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 28px;
  padding: 24px 4px; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); text-decoration: none;
}
.about-company::after { content: ""; width: 9px; height: 9px; border-top: 1.5px solid var(--current); border-right: 1.5px solid var(--current); rotate: 45deg; }
.about-company__title { font-size: var(--t-xl); font-weight: 400; line-height: 1.4; }
.about-company__body { font-size: var(--t-s); color: var(--ink-soft); }
.about-company:hover .about-company__title { text-decoration: underline; text-underline-offset: 5px; }

/* 下層ページ(製品一覧・会社概要) */
.page-light { background: var(--paper); }
.page { padding: 128px 0 clamp(72px, 9vw, 120px); color: var(--navy); }
.page__wrap { width: min(960px, 100% - var(--gutter) * 2); margin-inline: auto; }
.page__title { font-size: var(--t-2xl); font-weight: 400; line-height: 1.3; }
.page__note { margin: 18px 0 36px; font-size: var(--t-s); color: var(--ink-soft); }
.page-cta { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line-light); }
.page-cta p { color: #2a3e54; }
.page-cta .cta-row { margin-top: 20px; }
.catalog--page { padding-top: clamp(120px, 12vw, 160px); }

@media (max-width: 1100px) {
  .lineup__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .chapter__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lineup__cats { grid-template-columns: 1fr; }
  .lineup__cat { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: baseline; padding: 18px 16px 20px; }
  .lineup__names { grid-column: 1 / -1; }
  .about-company { grid-template-columns: minmax(0, 1fr) auto; }
  .about-company__body { grid-row: 2; }
  .catalog__title { font-size: 1.75rem; }
  .btn { padding-inline: 22px; }
}

/* GRITASの章:製品検索(products.html?q= へ送り、検索・絞り込みは製品一覧の仕組みをそのまま使う) */
.psearch { margin-top: clamp(28px, 4vw, 40px); max-width: 30em; }
.psearch__label { display: block; margin-bottom: 8px; font-size: var(--t-xs); color: var(--on-dark-soft); }
.psearch__row { display: flex; gap: 8px; }
.psearch__input {
  flex: 1; min-width: 0; min-height: 52px; padding: 10px 18px; border-radius: 999px; font-size: var(--t-m);
  border: 1px solid rgba(238, 242, 239, .32); background: rgba(238, 242, 239, .07); color: var(--on-dark);
}
.psearch__input::placeholder { color: rgba(169, 188, 203, .75); }
.psearch__input:focus-visible { outline-offset: 0; border-color: var(--swoosh); background: rgba(238, 242, 239, .11); }
.psearch__btn {
  flex: none; min-height: 52px; padding: 10px 26px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 500;
  background: var(--cta-grad); color: var(--abyss); transition: transform .3s var(--ease-out), box-shadow .3s;
}
.psearch__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(91, 221, 163, .6); }
.psearch + .cta-row { margin-top: 18px; }

/* 都市の映像が光の点へ縮んだら、連携図がすぐ下から現れる(暗い空白を長く続けない) */
.js #connections { margin-top: -65vh; margin-top: -65svh; }

/* ---------- 行動導線(販売導線) ---------- */

/* GRITASの章のはじめ:製品検索の下に、次の一歩を3つ。主ボタン(アカウント作成)は横幅いっぱいに置く */
.gacts { margin-top: 18px; max-width: 30em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gacts .btn { min-height: 52px; padding: 0 18px; line-height: 1.5; text-align: center; }
.gacts__primary { grid-column: 1 / -1; }
.gacts__note { margin-top: 10px; font-size: var(--t-xs); color: var(--on-dark-soft); }
@media (max-width: 420px) {
  .gacts { grid-template-columns: 1fr; }
}
