/* =========================================================
   SysNavi — site.css
   ========================================================= */
:root {
  --ink: #06121f;
  --navy: #0b2545;
  --navy-2: #12325a;
  --blue: #5c91c4;
  --blue-d: #1b6a92;
  --sky: #a9d3f0;
  --paper: #f4f2ed;
  --paper-2: #e9e5dc;
  --white: #ffffff;
  --text: #17263a;
  --muted: #56657a;
  --line: rgba(11, 37, 69, 0.14);
  --line-l: rgba(255, 255, 255, 0.16);
  --accent: #ffc93c;

  --f-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-en: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --hd-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4, p, dd, li, figcaption { word-break: auto-phrase; overflow-wrap: anywhere; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1.6; }
.en { font-family: var(--f-en); font-style: italic; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- theme blocks ---------- */
[data-theme="dark"] { background: var(--ink); color: #dfe8f2; }
:is([data-theme="dark"], [data-theme="navy"]) { --is-dark: 1; }
[data-theme="navy"] { background: var(--navy); color: #dfe8f2; }
.bg-white { background: var(--white); }
.sec { position: relative; padding-block: clamp(96px, 13vw, 200px); }
.sec--tight { padding-block: clamp(72px, 9vw, 140px); }

/* ---------- section head ---------- */
.sh { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 96px); }
.sh__idx { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-d); }
:is([data-theme="dark"],[data-theme="navy"]) .sh__idx { color: var(--sky); }
.sh__idx::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.sh__en { font-family: var(--f-en); font-style: italic; font-weight: 900; font-size: clamp(56px, 11vw, 184px); line-height: 0.86; letter-spacing: -0.045em; color: var(--navy); margin-left: -0.04em; }
:is([data-theme="dark"],[data-theme="navy"]) .sh__en { color: #fff; }
.sh__ttl { font-size: clamp(28px, 3.4vw, 50px); font-weight: 900; line-height: 1.38; letter-spacing: 0.01em; color: var(--navy); }
:is([data-theme="dark"],[data-theme="navy"]) .sh__ttl { color: #fff; }
.sh__lead { max-width: 640px; font-size: clamp(15px, 1.2vw, 17px); color: var(--muted); }
:is([data-theme="dark"],[data-theme="navy"]) .sh__lead { color: #a8b8cb; }
.sh--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) {
  .sh--split { grid-template-columns: 1.15fr 1fr; column-gap: 64px; }
  .sh--split .sh__en, .sh--split .sh__idx { grid-column: 1 / -1; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 34px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: 0.04em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease), transform .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--blue); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn > span { position: relative; }
.btn .arr { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: -14px; border-radius: 50%; background: rgba(255,255,255,.14); transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--ghost:hover { --fg: #fff; }
.btn--ghost .arr { background: rgba(11,37,69,.08); }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--light .arr { background: rgba(11,37,69,.08); }
.btn--light:hover { --fg: #fff; }
.btn--line-l { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn--pill { padding: 14px 24px; font-size: 14px; }
.btn--lg { padding: 26px 44px; font-size: 18px; }

.tlink { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); position: relative; padding-bottom: 6px; }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.tlink:hover::after { transform: scaleX(0); }
.tlink .arr { transition: transform .5s var(--ease); }
.tlink:hover .arr { transform: translateX(6px); }
:is([data-theme="dark"],[data-theme="navy"]) .tlink { color: #fff; }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hd-h); color: var(--navy); transition: transform .6s var(--ease), color .4s, background-color .4s; }
.hd::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .4s; }
.hd.is-scrolled::before { border-color: var(--line); }
.hd.is-hidden { transform: translateY(-100%); }
.hd__in { position: relative; height: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 32px; }
.hd__logo { position: relative; display: block; margin-right: auto; }
.hd__logo img { height: 36px; width: auto; transition: opacity .3s; }
.hd__nav { display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.hd__nav a { position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding-block: 8px; }
.hd__nav a > span { position: relative; display: inline-block; overflow: hidden; line-height: 1.5; vertical-align: top; }
.hd__nav a > span b { position: relative; display: block; font-weight: inherit; transition: transform .55s var(--ease); }
.hd__nav a > span b::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--blue); }
.hd__nav a:hover > span b { transform: translateY(-100%); }
.hd__nav a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue); }
.hd__nav .ext { font-style: normal; font-size: 11px; opacity: .6; }
.hd__burger { display: none; width: 48px; height: 48px; border-radius: 50%; position: relative; }
.hd__burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.hd__burger span:first-child { top: 19px; }
.hd__burger span:last-child { top: 27px; }
.is-drawer .hd__burger span:first-child { top: 23px; transform: rotate(45deg); }
.is-drawer .hd__burger span:last-child { top: 23px; transform: rotate(-45deg); }
@media (max-width: 1239px) {
  .hd__nav, .hd__cta { display: none; }
  .hd__burger { display: block; }
  :root { --hd-h: 72px; }
  .hd__logo img { height: 30px; }
}

.drawer { position: fixed; inset: 0; z-index: 90; background: var(--white); color: var(--navy); padding: calc(var(--hd-h) + 32px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden; }
.is-drawer .drawer { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__nav { display: grid; }
.drawer__nav a { display: flex; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: clamp(21px, 5.6vw, 30px); font-weight: 900; transform: translateY(30px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.drawer__nav em { font-family: var(--f-mono); font-style: normal; font-size: 12px; color: var(--blue-d); font-weight: 400; }
.is-drawer .drawer__nav a { transform: none; opacity: 1; }
.drawer__nav a:nth-child(2) { transition-delay: .04s; } .drawer__nav a:nth-child(3) { transition-delay: .08s; } .drawer__nav a:nth-child(4) { transition-delay: .12s; } .drawer__nav a:nth-child(5) { transition-delay: .16s; } .drawer__nav a:nth-child(6) { transition-delay: .2s; } .drawer__nav a:nth-child(7) { transition-delay: .24s; } .drawer__nav a:nth-child(8) { transition-delay: .28s; } .drawer__nav a:nth-child(9) { transition-delay: .32s; }
.drawer__foot { display: grid; gap: 16px; justify-items: start; color: var(--muted); }
body.is-drawer { overflow: hidden; }

/* ---------- curtain (page transition) ---------- */
.curtain { position: fixed; inset: 0; z-index: 500; pointer-events: none; background: var(--ink); transform: translateY(0); display: grid; place-items: center; }
.curtain__mark { width: 64px; height: 64px; background: url(/assets/img/favicon.png) center/contain no-repeat; animation: spin 1.6s linear infinite; opacity: .9; }
.js .curtain { transition: transform .9s var(--ease-io); }
.is-loaded .curtain { transform: translateY(-100%); }
.is-leaving .curtain { transform: translateY(0); transition: transform .6s var(--ease-io); }
.is-leaving .curtain { animation: curtain-in .6s var(--ease-io) both; }
@keyframes curtain-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
html:not(.js) .curtain { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.7); transition: width .4s var(--ease), height .4s var(--ease), background-color .4s; }
.cursor.is-hover .cursor__ring { width: 76px; height: 76px; background: rgba(255,255,255,.95); border-color: transparent; }
.cursor.is-hover .cursor__dot { opacity: 0; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"] img { transform: scale(1.25); transition: transform 2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }

.split .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split .ch { display: inline-block; white-space: pre; }
.js .split .ch { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 0.028s + var(--d, 0s)); }
.js .split.is-in .ch { transform: none; }

.line-x { height: 1px; background: var(--line); transform-origin: left; }
.js .line-x[data-reveal] { opacity: 1; transform: scaleX(0); transition: transform 1.4s var(--ease-io); }
.js .line-x[data-reveal].is-in { transform: scaleX(1); }
:is([data-theme="dark"],[data-theme="navy"]) .line-x { background: var(--line-l); }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--hd-h) + 40px); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 72% 45%, rgba(92,145,196,.28), transparent 70%), radial-gradient(40% 40% at 15% 100%, rgba(92,145,196,.14), transparent 70%); }
.hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(80% 80% at 60% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(80% 80% at 60% 40%, #000 30%, transparent 80%); }
.hero__body { position: relative; z-index: 2; padding-bottom: clamp(32px, 5vw, 64px); pointer-events: none; }
.hero__body a, .hero__body button { pointer-events: auto; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3vw, 36px); color: var(--sky); }
.hero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,201,60,.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,201,60,.6); } 80%,100% { box-shadow: 0 0 0 14px rgba(255,201,60,0); } }
.hero__ttl { font-size: clamp(44px, 8.2vw, 132px); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; color: #fff; }
.hero__ttl .q { color: var(--sky); }
.hero__row { display: grid; gap: 32px; margin-top: clamp(28px, 4vw, 56px); }
.hero__lead { max-width: 560px; font-size: clamp(14px, 1.15vw, 16px); line-height: 2.1; color: #b8c7d8; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__ctas .btn--light .arr { background: var(--navy); color: #fff; }
.trio { display: flex; flex-wrap: wrap; gap: 8px; }
.trio button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; border: 1px solid var(--line-l); color: #dfe8f2; font-size: 13px; font-weight: 700; letter-spacing: .06em; transition: background-color .4s, border-color .4s, color .4s; }
.trio button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.trio button:hover, .trio button.is-on { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }
.hero__meta { position: relative; z-index: 2; border-top: 1px solid var(--line-l); }
.hero__meta .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-block: 18px; color: #8ea2b9; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; width: 1px; height: 28px; background: rgba(255,255,255,.2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
@media (min-width: 960px) {
  .hero__row { grid-template-columns: minmax(0, 560px) auto; justify-content: space-between; align-items: end; }
  .hero__right { display: grid; gap: 20px; justify-items: end; }
}
@media (max-width: 959px) {
  .hero__canvas { opacity: .55; }
  .hero__right { display: grid; gap: 20px; }
}

/* ---------- marquee ---------- */

/* =========================================================
   SERVICE cards (home)
   ========================================================= */
.svc { display: grid; gap: 16px; counter-reset: svc; }
.svc__card {
  position: relative; display: grid; gap: 28px; padding: clamp(28px, 3.4vw, 48px); border-radius: 28px;
  background: var(--white); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .8s var(--ease), color .6s var(--ease), border-color .6s;
}
.svc__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .9s var(--ease); }
.svc__card:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.svc__card:hover { color: #fff; border-color: var(--navy); }
.svc__no { display: flex; justify-content: space-between; align-items: center; }
.svc__no .en { font-size: 15px; color: var(--blue-d); }
.svc__card:hover .svc__no .en { color: var(--sky); }
.svc__q { font-size: clamp(21px, 1.85vw, 27px); font-weight: 900; line-height: 1.55; color: var(--navy); transition: color .6s; }
.svc__card:hover .svc__q { color: #fff; }
.svc__name { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--paper); color: var(--navy); width: fit-content; transition: background-color .6s, color .6s; }
.svc__card:hover .svc__name { background: rgba(255,255,255,.12); color: #fff; }
.svc__txt { margin-top: -14px; font-size: 15px; color: var(--muted); transition: color .6s; }
.svc__card:hover .svc__txt { color: #c3d1e0; }
.svc__go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .6s var(--ease), background-color .6s, border-color .6s; }
.svc__card:hover .svc__go { background: var(--accent); border-color: var(--accent); color: var(--navy); transform: rotate(-45deg); }
.svc__ill { height: 120px; margin-inline: -8px; }
@media (min-width: 960px) {
  /* 3枚で「番号・問いかけ・余白・ラベル・説明文」の行をそろえ、ラベルの高さを揃える */
  .svc { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto minmax(48px, 1fr) auto auto; column-gap: 16px; row-gap: 0; }
  .svc__card { grid-row: span 5; grid-template-rows: subgrid; row-gap: 28px; }
}

/* =========================================================
   AI section
   ========================================================= */
.ai { overflow: hidden; }
.ai__head { display: grid; gap: 40px; }
.ai__ttl { font-size: clamp(36px, 5.6vw, 88px); font-weight: 900; line-height: 1.22; color: #fff; }
.ai__ttl .hl { color: var(--sky); }
.ai__ttl .hl--hu { color: var(--accent); }
.ai::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(70% 50% at 70% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 50% at 70% 20%, #000 20%, transparent 75%); }
.ai > .wrap { position: relative; }
.ai__side { display: grid; gap: 28px; }
.ai__ph { aspect-ratio: 16 / 10; border-radius: 22px; background: #0d1a2a; }
.ai__ph img { filter: saturate(.85) brightness(.92); }
.ai__txt { max-width: 560px; color: #c9d6e4; font-size: 16px; line-height: 2; }
.ai__txt strong { color: #fff; font-weight: 700; }
@media (min-width: 960px) { .ai__head { grid-template-columns: 1.15fr 1fr; align-items: center; } }

.pipe { margin-top: clamp(64px, 8vw, 120px); border: 1px solid var(--line-l); border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.02); }
.pipe__bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line-l); color: #8ea2b9; }
.pipe__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.pipe__bar span { margin-left: auto; }
.pipe__flow { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.pipe__step { position: relative; padding: 20px 20px 24px; border-right: 1px solid var(--line-l); display: grid; gap: 12px; align-content: start; }
.pipe__step:last-child { border-right: 0; }
.pipe__step > .mono { color: #6f86a0; margin-top: 6px; }
.pipe__step h4 { font-size: 17px; font-weight: 900; color: #fff; }
.pipe__desc { font-size: 13px; line-height: 1.9; color: #a8b8cb; }
@media (min-width: 960px) { .pipe__step { grid-template-rows: auto auto auto auto 1fr auto auto; align-content: stretch; } }
.pipe__ph { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #0d1a2a; }
.pipe__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.75); transform: scale(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.pipe__step:hover .pipe__ph img { filter: none; transform: scale(1); }
/* 作業ログ風: 枠が画面に入ると1行ずつ打ち出される */
.pipe__log { display: grid; gap: 8px; min-height: 64px; font-size: 12px; line-height: 1.5; color: #c9d6e4; }
.pipe__ln { display: flex; gap: 8px; align-items: baseline; clip-path: inset(0 100% 0 0); }
.pipe__ln b { flex: none; font-weight: 400; }
.pipe__ln--ai b { color: var(--sky); }
.pipe__ln--hu b { color: var(--accent); }
.pipe.is-in .pipe__ln { animation: pipe-type .9s steps(18, end) forwards; animation-delay: calc(.5s + var(--i) * .35s); }
.pipe__step:last-child .pipe__ln:last-child::after { content: ""; display: inline-block; width: 7px; height: 1.1em; margin-left: 4px; background: var(--accent); vertical-align: text-bottom; animation: pipe-caret 1s steps(1) infinite; }
@keyframes pipe-type { to { clip-path: inset(0 0 0 0); } }
@keyframes pipe-caret { 50% { opacity: 0; } }
/* AI と人の分担を2色の積み上げで */
.pipe__split { display: flex; height: 8px; gap: 3px; margin-top: 6px; }
.pipe__split b { display: block; height: 100%; border-radius: 4px; transform: scaleX(0); transition: transform 1.4s var(--ease); transition-delay: calc(.4s + var(--d, 0s)); }
.pipe__split-ai { width: calc(100% - var(--hu)); background: var(--sky); transform-origin: left; }
.pipe__split-hu { flex: 1; background: var(--accent); transform-origin: right; }
.pipe.is-in .pipe__split b { transform: scaleX(1); }
.pipe__pct { display: flex; justify-content: space-between; font-size: 11px; color: #6f86a0; }
.pipe__pct span:first-child { color: var(--sky); }
.pipe__pct span:last-child { color: var(--accent); }
.pipe__pulse { position: absolute; top: 0; left: 0; width: 20%; height: 2px; background: linear-gradient(90deg, transparent, var(--sky), transparent); animation: pulse-x 4s linear infinite; z-index: 1; }
@keyframes pulse-x { from { transform: translateX(-100%); } to { transform: translateX(500%); } }
.pipe__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 20px; border-top: 1px solid var(--line-l); color: #8ea2b9; }
.pipe__key { display: inline-flex; align-items: center; gap: 8px; }
.pipe__key::before { content: ""; width: 16px; height: 6px; border-radius: 3px; }
.pipe__key--ai::before { background: var(--sky); }
.pipe__key--hu::before { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .pipe__ln { clip-path: none; }
  .pipe.is-in .pipe__ln, .pipe__step:last-child .pipe__ln:last-child::after { animation: none; }
}
@media (max-width: 959px) {
  .pipe__flow { grid-template-columns: 1fr; }
  .pipe__step { border-right: 0; border-bottom: 1px solid var(--line-l); grid-template-columns: 88px 1fr; column-gap: 16px; }
  .pipe__desc { font-size: 14px; }
  .pipe__step > * { grid-column: 2; }
  .pipe__step > .pipe__ph { grid-column: 1; grid-row: 1 / span 6; align-self: start; aspect-ratio: 1; }
  .pipe__ph img { filter: grayscale(.25) brightness(.9); }
  .pipe__log { min-height: 0; }
  .pipe__pulse { display: none; }
}
@media (max-width: 599px) {
  .pipe__step { grid-template-columns: 72px 1fr; }
  .pipe__step > .pipe__ph { grid-row: 1 / span 2; }
  .pipe__step > :is(.pipe__desc, .pipe__log, .pipe__split, .pipe__pct) { grid-column: 1 / -1; }
  .pipe__step > .mono:not(.pipe__log, .pipe__pct) { align-self: end; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .pipe__step { grid-template-columns: 200px 1fr; column-gap: 28px; padding: 28px; }
  .pipe__step > .pipe__ph { aspect-ratio: 4 / 3; }
}

.pts { display: grid; gap: 0; margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-l); }
.pts li { display: grid; gap: 14px; padding: 36px 0; border-bottom: 1px solid var(--line-l); }
.pts .en { font-size: 14px; color: var(--sky); }
.pts h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 900; color: #fff; line-height: 1.5; }
.pts p { color: #a8b8cb; font-size: 15px; }
@media (min-width: 960px) {
  .pts { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .pts li { padding: 36px 36px 36px 0; border-bottom: 0; border-top: 1px solid var(--line-l); margin-right: 36px; }
  .pts li:last-child { margin-right: 0; }
}

.posts { margin-top: clamp(64px, 8vw, 120px); }
.posts__hd { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.posts__hd h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 900; color: #fff; }
.posts__list { display: grid; gap: 16px; }
@media (min-width: 960px) { .posts__list { grid-template-columns: 1.4fr 1fr 1fr; } }
.post { display: grid; gap: 18px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line-l); transition: background-color .5s, transform .6s var(--ease); }
.post:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.post__thumb { aspect-ratio: 1200/630; border-radius: 12px; overflow: hidden; position: relative; }
.post__thumb > * { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__thumb > * { transform: scale(1.05); }
.post__meta { display: flex; gap: 12px; color: #8ea2b9; }
.post__meta b { color: var(--sky); font-weight: 500; }
.post h4 { font-size: 16px; line-height: 1.7; font-weight: 700; color: #fff; padding: 0 4px 6px; }
.post .post__meta { padding: 0 4px; }

/* generated thumbs */
.gth { background: var(--navy-2); display: grid; place-items: center; color: rgba(255,255,255,.9); }
.gth svg { width: 100%; height: 100%; }

/* =========================================================
   WHY
   ========================================================= */
.why { display: grid; border-top: 1px solid var(--line); }
.why__item { position: relative; display: grid; gap: 16px; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.why__no { font-family: var(--f-en); font-style: italic; font-weight: 900; font-size: clamp(56px, 7vw, 112px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--navy); transition: color .6s var(--ease); }
.why__item:hover .why__no { color: var(--navy); }
.why__item h3 { font-size: clamp(22px, 2.4vw, 36px); font-weight: 900; line-height: 1.45; color: var(--navy); }
.why__item p { color: var(--muted); max-width: 560px; }
.why__fill { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.why__item:hover .why__fill { transform: scaleX(1); }
@media (min-width: 960px) {
  .why__item { grid-template-columns: 200px 1fr 1fr; align-items: start; column-gap: 48px; }
  .why__item p { padding-top: 10px; }
}

/* =========================================================
   WORKS
   ========================================================= */
.wk { display: grid; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) {
  .wk { grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .wk .wcard:nth-child(1) { grid-column: 1 / span 7; }
  .wk .wcard:nth-child(2) { grid-column: 9 / span 4; margin-top: 160px; }
  .wk .wcard:nth-child(3) { grid-column: 3 / span 6; }
}
.wcard { display: grid; gap: 22px; }
.wcard__img { position: relative; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; background: var(--navy); }
.wcard__img > * { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.wcard:hover .wcard__img > * { transform: scale(1.04); }
.wcard__view { position: absolute; right: 20px; bottom: 20px; z-index: 2; width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; place-items: center; font-family: var(--f-en); font-style: italic; font-weight: 900; font-size: 15px; transform: scale(0) rotate(-30deg); transition: transform .7s var(--ease); }
.wcard:hover .wcard__view { transform: scale(1) rotate(0); }
.wcard__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.chip--fill { background: var(--navy); color: #fff; border-color: var(--navy); }
.wcard h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 900; line-height: 1.45; color: var(--navy); }
.wcard p { color: var(--muted); }

/* screen illustration (generated mock UIs) */
.scr { background: linear-gradient(160deg, var(--navy-2), var(--ink)); }
.scr svg { width: 100%; height: 100%; }

/* =========================================================
   PHILOSOPHY
   ========================================================= */
.phi { text-align: left; overflow: hidden; }
.phi__big { font-size: clamp(44px, 8.6vw, 148px); font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
.phi__big .ch { color: rgba(11,37,69,.12); transition: color .3s; }
.phi__big .ch.on { color: var(--navy); }
.phi__big .ch.on.q { color: var(--blue); }
.phi__body { display: grid; gap: 40px; margin-top: clamp(48px, 6vw, 96px); }
.phi__lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 2.2; max-width: 620px; }
.phi__vv { display: grid; gap: 16px; }
.vv { padding: 28px 32px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; }
.vv .mono { color: var(--blue-d); text-transform: uppercase; letter-spacing: .12em; }
.vv strong { font-size: clamp(18px, 1.6vw, 22px); font-weight: 900; color: var(--navy); line-height: 1.6; }
@media (min-width: 960px) { .phi__body { grid-template-columns: 1fr 1fr; align-items: start; gap: 80px; } }

/* =========================================================
   CULTURE (home)
   ========================================================= */
.cul { display: grid; gap: 48px; }
.cul__ttl { font-size: clamp(40px, 6vw, 96px); font-weight: 900; line-height: 1.18; color: var(--navy); }
.cul__txt { max-width: 520px; font-size: 16px; line-height: 2.1; color: var(--muted); }
.cul__photos { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.ph { position: relative; overflow: hidden; border-radius: 22px; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(6,18,31,.7); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.cul__photos .ph:nth-child(1) { grid-column: 1 / span 7; aspect-ratio: 16/10; }
.cul__photos .ph:nth-child(2) { grid-column: 8 / span 5; aspect-ratio: 4/5; margin-top: 18%; }
.cul__photos .ph:nth-child(3) { grid-column: 3 / span 5; aspect-ratio: 4/3; margin-top: -10%; }
.cul__photos .ph:nth-child(4) { grid-column: 8 / span 4; aspect-ratio: 1; }
[data-parallax] { will-change: transform; }
@media (min-width: 960px) { .cul { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .cul__side { position: sticky; top: 140px; display: grid; gap: 32px; } }
@media (max-width: 959px) { .cul__side { display: grid; gap: 28px; } }

/* ---------- lists (blog / news) ---------- */
.feeds { display: grid; gap: 64px; }
@media (min-width: 960px) { .feeds { grid-template-columns: 1fr 1fr; gap: 80px; } }
.feed__hd { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 20px; }
.feed__hd h3 { font-size: 22px; font-weight: 900; color: var(--navy); }
.feed__hd h3 .en { font-size: 14px; color: var(--blue-d); margin-left: 12px; }
.feed a { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.feed li:last-child a { border-bottom: 1px solid var(--line); }
.feed a:hover { padding-left: 12px; color: var(--blue-d); }
.feed time { color: var(--muted); }
.feed .t { font-weight: 700; line-height: 1.7; }
.feed .arr { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease); }
.feed a:hover .arr { opacity: 1; transform: none; }

/* =========================================================
   CTA (doors)
   ========================================================= */
.cta { position: relative; overflow: hidden; }
.cta__ttl { font-size: clamp(40px, 7.4vw, 128px); font-weight: 900; line-height: 1.16; color: #fff; }
.cta__ttl .q { color: var(--sky); }
.doors { display: grid; gap: 1px; margin-top: clamp(48px, 6vw, 96px); background: var(--line-l); border-block: 1px solid var(--line-l); }
.door { position: relative; display: grid; gap: 16px; padding: 40px 32px 40px 0; background: var(--ink); overflow: hidden; isolation: isolate; transition: padding .7s var(--ease); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.door:hover::before { transform: scaleY(1); }
.door:hover { padding-left: 28px; }
.door .mono { color: var(--sky); }
.door:hover .mono { color: #fff; }
.door h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.door h3 .arr { font-family: var(--f-en); font-style: normal; font-weight: 400; font-size: 28px; transition: transform .6s var(--ease); }
.door:hover h3 .arr { transform: translateX(8px) rotate(-45deg); }
.door p { color: #a8b8cb; font-size: 15px; max-width: 420px; }
.door:hover p { color: #fff; }
@media (min-width: 960px) { .doors { grid-template-columns: repeat(3, 1fr); } .door { padding: 48px 40px; } .door:hover { padding-left: 48px; } }
.cta__tel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-top: 40px; color: #8ea2b9; }
.cta__tel a { font-family: var(--f-en); font-style: italic; font-weight: 800; font-size: clamp(28px, 3.4vw, 48px); color: #fff; letter-spacing: -0.01em; }

/* =========================================================
   FOOTER
   ========================================================= */
.ft { position: relative; overflow: hidden; padding-top: clamp(72px, 9vw, 120px); background: var(--white); color: var(--text); border-top: 1px solid var(--line); }
.ft__top { display: grid; gap: 56px; }
.ft__co img { height: 34px; width: auto; margin-bottom: 24px; }
.ft__co p { color: var(--muted); font-size: 14px; line-height: 2; }
.ft__tel { margin-top: 16px; display: grid; }
.ft__tel a { font-size: 20px; color: var(--navy); }
.ft__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.ft__nav div { display: grid; gap: 10px; align-content: start; }
.ft__nav a { font-size: 14px; color: var(--text); width: fit-content; transition: color .3s; }
.ft__nav a:hover { color: var(--blue-d); }
.ft__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
@media (min-width: 960px) { .ft__top { grid-template-columns: 1fr 1.4fr; } .ft__nav { grid-template-columns: repeat(3, 1fr); } }
.ft__giant { font-family: var(--f-en); font-style: italic; font-weight: 900; font-size: 21vw; line-height: .78; letter-spacing: -0.06em; text-align: center; margin-top: clamp(48px, 6vw, 96px); white-space: nowrap; user-select: none; }
/* 文字の形に背景を切り抜く指定は、動かす span 側に持たせる（親に置くと transform した子の文字に効かない） */
.ft__giant span { display: inline-block; transform: translateY(var(--ty, 30%)); color: transparent; background: linear-gradient(180deg, #cbd8e6, #f1f5f9 80%); -webkit-background-clip: text; background-clip: text; }
.ft__giant b { position: relative; font-weight: 900; }
.ft__giant b::after { content: ""; position: absolute; left: 58%; top: -0.06em; width: .2em; height: .2em; border-radius: 50%; background: var(--blue); transform: translateX(-50%); }
.ft__bottom { position: relative; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); background: var(--white); }
.ft__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; }
.ft__legal a:hover { color: var(--navy); }
.ft__totop { margin-left: auto; color: var(--muted); }
.ft__totop:hover { color: var(--navy); }
/* 一番上に戻るボタン（全ページ右下に常時表示）。暗いセクションの上でも見えるよう白い縁を付ける */
.totop { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 80; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 8px 24px rgba(6,18,31,.25); display: grid; place-items: center; font-size: 20px; font-weight: 700; transition: background-color .3s, transform .4s var(--ease); }
.totop:hover { background: var(--blue); transform: translateY(-3px); }
.is-drawer .totop { opacity: 0; pointer-events: none; }

/* =========================================================
   SUBPAGES — page hero
   ========================================================= */
.ph-hero { position: relative; padding-top: calc(var(--hd-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(56px, 7vw, 100px); overflow: hidden; }
.crumb { display: flex; gap: 10px; color: var(--muted); margin-bottom: clamp(32px, 4vw, 56px); }
.crumb a:hover { color: var(--blue-d); }
:is([data-theme="dark"],[data-theme="navy"]) .crumb { color: #8ea2b9; }
.ph-hero__en { font-family: var(--f-en); font-style: italic; font-weight: 900; font-size: clamp(72px, 16vw, 272px); line-height: .82; letter-spacing: -0.05em; color: var(--navy); margin-left: -0.05em; }
:is([data-theme="dark"],[data-theme="navy"]) .ph-hero__en { color: #fff; }
.ph-hero__row { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.ph-hero__ttl { font-size: clamp(26px, 3.2vw, 48px); font-weight: 900; line-height: 1.45; color: var(--navy); }
:is([data-theme="dark"],[data-theme="navy"]) .ph-hero__ttl { color: #fff; }
.ph-hero__lead { max-width: 600px; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 2.1; }
:is([data-theme="dark"],[data-theme="navy"]) .ph-hero__lead { color: #a8b8cb; }
@media (min-width: 960px) { .ph-hero__row { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.ph-hero__knot { position: absolute; right: -6vw; top: 8vh; width: min(52vw, 720px); aspect-ratio: 1; pointer-events: none; opacity: .9; }

/* ---------- tech list ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font-family: var(--f-mono); font-size: 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-l); color: #c6d3e1; }

/* ---------- 3 principle cards (service AI) ---------- */
.prin { display: grid; gap: 16px; margin-top: 64px; }
.prin li { padding: 36px 32px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line-l); display: grid; gap: 14px; align-content: start; }
.prin .en { font-size: 40px; color: var(--sky); line-height: 1; }
.prin h3 { font-size: 22px; font-weight: 900; color: #fff; }
.prin p { color: #a8b8cb; font-size: 15px; }
@media (min-width: 960px) { .prin { grid-template-columns: repeat(3, 1fr); } }
.note { margin-top: 32px; padding: 20px 24px; border-left: 2px solid var(--sky); color: #a8b8cb; font-size: 14px; background: rgba(255,255,255,.03); border-radius: 0 12px 12px 0; }
.note--light { border-color: var(--blue); color: var(--muted); background: var(--white); }

/* ---------- compare table ---------- */
.cmp-wrap { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cmp { width: 100%; min-width: 880px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cmp th, .cmp td { padding: 22px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.8; }
.cmp thead th { position: sticky; top: 0; font-size: 17px; font-weight: 900; color: var(--navy); background: var(--paper); border-bottom: 2px solid var(--navy); }
.cmp thead th small { display: block; font-family: var(--f-en); font-style: italic; font-weight: 800; font-size: 13px; color: var(--blue-d); }
.cmp tbody th { width: 170px; font-weight: 700; color: var(--muted); font-size: 14px; }
.cmp td small { display: block; color: var(--muted); font-size: 13px; }
.cmp tbody tr { transition: background-color .3s; }
.cmp tbody tr:hover { background: rgba(255,255,255,.6); }

/* ---------- service detail ---------- */
.sd { display: grid; gap: 40px; padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.sd__no { font-family: var(--f-en); font-style: italic; font-weight: 900; font-size: clamp(80px, 12vw, 200px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.sd__name { font-size: 15px; font-weight: 700; color: var(--blue-d); margin-top: 24px; }
.sd h3 { font-size: clamp(26px, 3vw, 44px); font-weight: 900; line-height: 1.45; color: var(--navy); margin-top: 8px; }
.sd__txt { font-size: 16px; line-height: 2.1; }
.sd__pts { display: grid; gap: 0; margin-top: 32px; }
.sd__pts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.sd__pts li::before { content: ""; width: 10px; height: 10px; margin-top: 10px; border-radius: 50%; background: var(--blue); }
.sd__cases { margin-top: 32px; padding: 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 14px; }
.sd__cases .mono { color: var(--blue-d); text-transform: uppercase; letter-spacing: .12em; }
.sd__cases li { font-weight: 700; color: var(--navy); }
.sd__cases li span { font-weight: 400; color: var(--muted); font-size: 14px; margin-right: 8px; }
@media (min-width: 960px) { .sd { grid-template-columns: 5fr 7fr; gap: 80px; } .sd__side { position: sticky; top: 120px; align-self: start; } }

/* ---------- flow ---------- */
.flow { display: grid; gap: 16px; counter-reset: f; }
.flow li { position: relative; padding: 36px 32px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.flow .en { font-size: 56px; line-height: .9; color: var(--blue); }
.flow h3 { font-size: 20px; font-weight: 900; color: var(--navy); }
.flow p { color: var(--muted); font-size: 15px; }
:is([data-theme="dark"],[data-theme="navy"]) .flow li { background: rgba(255,255,255,.04); border-color: var(--line-l); }
:is([data-theme="dark"],[data-theme="navy"]) .flow h3 { color: #fff; }
:is([data-theme="dark"],[data-theme="navy"]) .flow p { color: #a8b8cb; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 44px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 13px; z-index: 2; line-height: 1; }
}

/* ---------- page CTA band ---------- */
.band { position: relative; overflow: hidden; }
.band__in { display: grid; gap: 32px; align-items: end; }
.band__ttl { font-size: clamp(32px, 5.2vw, 84px); font-weight: 900; line-height: 1.25; color: #fff; }
.band p { color: #a8b8cb; }
@media (min-width: 960px) { .band__in { grid-template-columns: 1.4fr auto; } }

/* ---------- works page ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter button { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--navy); transition: background-color .4s, color .4s, border-color .4s; }
.filter button:hover { border-color: var(--navy); }
.filter button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter button sup { font-family: var(--f-mono); font-size: 10px; margin-left: 4px; opacity: .7; }
.case { display: grid; gap: 32px; padding: clamp(28px, 3vw, 48px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); margin-bottom: 20px; transition: opacity .5s, transform .5s var(--ease); }
.case[hidden] { display: none; }
.case__img { aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; position: relative; }
.case__img > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.case__spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 13px; margin-top: 24px; }
.case__spec dt { font-family: var(--f-mono); color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.case__spec dd { font-weight: 700; color: var(--navy); }
.case h3 { font-size: clamp(22px, 2.4vw, 34px); font-weight: 900; color: var(--navy); line-height: 1.45; margin: 14px 0 24px; }
.case__blk { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.case__blk h4 { font-size: 13px; font-weight: 700; color: var(--blue-d); }
.case__blk p { font-size: 15px; }
@media (min-width: 960px) { .case { grid-template-columns: 5fr 7fr; gap: 56px; } }

/* ---------- about ---------- */
.mvv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mvv__item { display: grid; gap: 20px; padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--line); }
.mvv__lbl { display: grid; gap: 4px; align-content: start; }
.mvv__lbl .en { font-size: clamp(32px, 3.4vw, 52px); color: var(--navy); line-height: 1; }
.mvv__lbl span:last-child { font-size: 14px; font-weight: 700; color: var(--blue-d); }
.mvv__item h3 { font-size: clamp(24px, 2.8vw, 42px); font-weight: 900; line-height: 1.5; color: var(--navy); }
.mvv__item p { margin-top: 16px; line-height: 2.1; }
@media (min-width: 960px) { .mvv__item { grid-template-columns: 4fr 8fr; gap: 64px; } }

.msg { display: grid; gap: 48px; }
.msg__photo { position: relative; aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--ink)); display: grid; place-items: end start; padding: 28px; }
.msg__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.msg__photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(6,18,31,.85)); }
.msg__sig { position: relative; z-index: 1; color: #fff; }
.msg__sig .mono { color: var(--sky); }
.msg__sig strong { display: block; font-size: 28px; font-weight: 900; letter-spacing: .1em; }
.msg__ttl { font-size: clamp(30px, 4vw, 60px); font-weight: 900; line-height: 1.35; color: #fff; }
.msg__body { display: grid; gap: 24px; color: #c6d3e1; line-height: 2.2; margin-top: 40px; }
.msg__body .hl { color: #fff; font-weight: 700; font-size: 1.15em; }
@media (min-width: 960px) { .msg { grid-template-columns: 5fr 7fr; gap: 96px; } .msg__photo { position: sticky; top: 120px; } }

.dl { display: grid; border-top: 1px solid var(--line); }
.dl > div { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-weight: 700; color: var(--navy); font-size: 14px; }
.dl dd { line-height: 1.9; }
.dl dd p { margin: 0; }
.dl__sub { font-weight: 700; color: var(--navy); padding-bottom: 6px; margin-bottom: 10px !important; border-bottom: 1px solid var(--line); max-width: 360px; }
.dl__sub:not(:first-child) { margin-top: 28px !important; }
@media (min-width: 760px) { .dl > div { grid-template-columns: 200px 1fr; gap: 32px; } }

.hist { position: relative; display: grid; }
.hist::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.hist__prog { position: absolute; left: 7px; top: 12px; width: 1px; height: calc(var(--p, 0) * (100% - 24px)); background: var(--blue); }
.hist li { position: relative; display: grid; gap: 4px; padding: 18px 0 18px 44px; }
.hist li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); transition: border-color .4s, background-color .4s; }
.hist li.on::before { border-color: var(--blue); background: var(--blue); }
.hist time { font-family: var(--f-en); font-style: italic; font-weight: 800; font-size: 20px; color: var(--navy); }
@media (min-width: 760px) { .hist li { grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline; } }

.access { display: grid; gap: 40px; }
.access__map { aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; background: var(--paper-2); }
.access__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.access__list li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.access__list li::before { content: "→"; color: var(--blue); }
@media (min-width: 960px) { .access { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* ---------- culture page ---------- */
.acts { display: grid; gap: clamp(64px, 8vw, 120px); }
.act { display: grid; gap: 32px; align-items: center; }
.act__img { aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; position: relative; background: var(--navy); }
.act__img img, .act__img > svg { width: 100%; height: 100%; object-fit: cover; }
.act__verb { font-family: var(--f-jp); font-weight: 900; font-size: clamp(64px, 9vw, 140px); line-height: 1; color: var(--navy); }
.act__verb small { font-family: var(--f-en); font-style: italic; font-weight: 800; font-size: 16px; color: var(--blue-d); display: block; margin-bottom: 8px; letter-spacing: 0; }
.act h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 900; color: var(--navy); margin: 20px 0 12px; line-height: 1.5; }
@media (min-width: 960px) { .act { grid-template-columns: 1fr 1fr; gap: 80px; } .act:nth-child(even) .act__img { order: 2; } }

.media { display: grid; gap: 16px; }
.media a { display: grid; gap: 10px; padding: 32px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line-l); transition: background-color .5s, transform .6s var(--ease); }
.media a:hover { background: var(--blue); transform: translateY(-4px); }
.media .mono { color: var(--sky); text-transform: uppercase; letter-spacing: .12em; }
.media a:hover .mono { color: #fff; }
.media strong { font-size: 22px; font-weight: 900; color: #fff; }
.media p { color: #a8b8cb; font-size: 14px; }
.media a:hover p { color: #fff; }
@media (min-width: 760px) { .media { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .media { grid-template-columns: repeat(4, 1fr); } }

/* ---------- partner ---------- */
.cards3 { display: grid; gap: 16px; }
.cards3 li { padding: clamp(28px, 3vw, 44px); border-radius: 26px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.cards3 .en { font-size: 48px; line-height: .9; color: var(--blue); }
.cards3 h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 900; color: var(--navy); line-height: 1.55; }
.cards3 p { color: var(--muted); font-size: 15px; }
:is([data-theme="dark"],[data-theme="navy"]) .cards3 li { background: rgba(255,255,255,.04); border-color: var(--line-l); }
:is([data-theme="dark"],[data-theme="navy"]) .cards3 h3 { color: #fff; }
:is([data-theme="dark"],[data-theme="navy"]) .cards3 p { color: #a8b8cb; }
:is([data-theme="dark"],[data-theme="navy"]) .cards3 .en { color: var(--sky); }
@media (min-width: 960px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.fields { display: grid; border-top: 1px solid var(--line); }
.fields li { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.fields strong { font-size: 22px; font-weight: 900; color: var(--navy); }
@media (min-width: 760px) { .fields li { grid-template-columns: 240px 1fr; gap: 32px; align-items: baseline; } }

/* ---------- contact ---------- */
.form-wrap { display: grid; gap: 56px; }
@media (min-width: 1000px) { .form-wrap { grid-template-columns: 8fr 4fr; gap: 80px; } }
.form { display: grid; gap: 28px; }
.fld { display: grid; gap: 10px; }
.fld > label, .fld > legend { font-weight: 700; font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 10px; padding: 0; }
.req, .opt { font-family: var(--f-mono); font-size: 10px; padding: 3px 7px; border-radius: 4px; line-height: 1.2; letter-spacing: .06em; }
.req { background: var(--navy); color: #fff; }
.opt { background: var(--paper-2); color: var(--muted); }
fieldset.fld { border: 0; margin: 0; padding: 0; min-width: 0; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.types label { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-weight: 700; font-size: 15px; transition: border-color .3s, background-color .3s, color .3s; }
.types input { position: absolute; opacity: 0; pointer-events: none; }
.types label::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; transition: border .3s, background-color .3s; }
.types label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.types label:has(input:checked)::before { border: 5px solid var(--accent); background: var(--navy); }
.types label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.inp { width: 100%; padding: 18px 20px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-size: 16px; color: var(--text); transition: border-color .3s, box-shadow .3s; }
.inp:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(92,145,196,.18); }
textarea.inp { min-height: 200px; resize: vertical; line-height: 1.8; }
.fld.is-err .inp { border-color: #c2412d; }
.err { display: none; color: #b23a26; font-size: 13px; font-weight: 700; }
.fld.is-err .err { display: block; }
.grid2 { display: grid; gap: 28px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.agree { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.agree input { width: 20px; height: 20px; accent-color: var(--navy); }
.agree a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.side-info { display: grid; gap: 16px; align-content: start; }
.side-info > div { padding: 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 6px; }
.side-info .mono { color: var(--blue-d); text-transform: uppercase; letter-spacing: .12em; }
.side-info strong { font-family: var(--f-en); font-style: italic; font-weight: 800; font-size: 30px; color: var(--navy); }
.side-info a.tlink { width: fit-content; margin-top: 6px; font-size: 14px; }
.dialog { border: 0; padding: 0; border-radius: 28px; width: min(720px, calc(100% - 32px)); max-height: calc(100svh - 48px); background: var(--paper); color: var(--text); }
.dialog::backdrop { background: rgba(6,18,31,.7); backdrop-filter: blur(6px); }
.dialog__in { padding: clamp(28px, 4vw, 48px); display: grid; gap: 24px; }
.dialog h2 { font-size: 26px; font-weight: 900; color: var(--navy); }
.dialog dl { display: grid; border-top: 1px solid var(--line); }
.dialog dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dialog dt { font-weight: 700; color: var(--muted); }
.dialog dd { white-space: pre-wrap; word-break: break-word; }
.dialog__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.done { text-align: center; padding: 40px 0; display: grid; gap: 16px; justify-items: center; }

/* ---------- misc ---------- */
.mt-l { margin-top: clamp(48px, 6vw, 96px); }
.center { text-align: center; }
.flex-end { display: flex; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .split .ch { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* =========================================================
   Round 1 additions
   ========================================================= */
[hidden] { display: none !important; }
.types { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ph-hero__knot { opacity: .55; right: -12vw; }

/* ---------- 三方よし pinned story ---------- */
/* 三方よし: 3つを最初から並べて見せる（背景の三つの輪はスクロールに合わせてゆっくり回るだけで、読み進めを止めない） */
.sanpo { position: relative; overflow: hidden; }
.sanpo__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sanpo__in { position: relative; display: grid; gap: clamp(32px, 4vw, 48px); padding-block: clamp(80px, 9vw, 140px) clamp(120px, 12vw, 180px); pointer-events: none; }
.sanpo__ttl { margin-top: 20px; font-size: clamp(28px, 3.2vw, 48px); font-weight: 900; line-height: 1.4; color: #fff; }
.sanpo__steps { display: grid; gap: clamp(28px, 3vw, 40px); max-width: 560px; }
.sanpo__step { display: grid; gap: 10px; }
.sanpo__no { color: var(--c); }
.sanpo__who { white-space: nowrap; font-size: clamp(32px, 4vw, 60px); font-weight: 900; line-height: 1.1; color: #fff; letter-spacing: -0.01em; }
.sanpo__who::after { content: ""; display: inline-block; width: .2em; height: .2em; margin-left: .12em; border-radius: 50%; background: var(--c); box-shadow: 0 0 24px var(--c); vertical-align: .1em; }
.sanpo__txt { font-size: clamp(15px, 1.2vw, 17px); line-height: 2; color: #b8c7d8; max-width: 520px; }
.sanpo__foot { color: #8ea2b9; }
@media (max-width: 959px) { .sanpo__canvas { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sanpo__canvas { display: none; } }

/* ---------- Why: sticky heading variation ---------- */
@media (min-width: 960px) {
  .why-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .why-wrap .sh { position: sticky; top: 120px; margin-bottom: 0; }
  .why-wrap .why__item { grid-template-columns: 120px 1fr; }
  .why-wrap .why__item p { grid-column: 2; padding-top: 0; }
  .why-wrap .why__no { font-size: clamp(48px, 5vw, 80px); }
}

/* =========================================================
   Round 2 additions
   ========================================================= */
.ai, .cta, .band, .sanpo + .sec { position: relative; z-index: 1; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; margin-top: clamp(-56px, -4vw, -28px); }
.sanpo + .sec { background: var(--paper); }
.ft { margin-top: 0; }
.hero__ttl .q .ch { color: var(--sky); }
@media (max-width: 759px) {
  .btn--lg { padding: 20px 28px; font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero__lead { line-height: 2; }
  .trio button { padding: 8px 14px 8px 10px; font-size: 12px; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 見出しは行単位で折り返さず、はみ出す場合は JS (fitLines) で縮小する */
.split .ln, [data-fill] .ln { white-space: nowrap; }
.split, [data-fill] { min-width: 0; max-width: 100%; }
.sd > *, .msg > *, .cul > *, .cul__side > *, .access > *, .form-wrap > *, .act > *, .ph-hero__row > *, .ai__head > *, .band__in > *, .phi__body > *, .sh > *, .sanpo__in > * { min-width: 0; }

/* =========================================================
   Blog / News / 固定ページ（content/ から生成）
   ========================================================= */
.ph-hero--sm .ph-hero__en { font-size: clamp(64px, 12vw, 200px); }

.catnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.catnav .chip { padding: 8px 16px; transition: background-color .3s, color .3s, border-color .3s; }
.catnav .chip:not(.chip--fill):hover { border-color: var(--navy); }
.catnav--group .chip { padding: 10px 20px; font-size: 14px; }
.catnav--group:has(+ .catnav) { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.entries a { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "date cat arr" "t t arr"; gap: 6px 20px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.entries li:last-child a { border-bottom: 1px solid var(--line); }
.entries a:hover { padding-left: 12px; color: var(--blue-d); }
.entries time { grid-area: date; color: var(--muted); }
.entries__cat { grid-area: cat; font-size: 12px; font-weight: 700; color: var(--blue-d); }
.entries__t { grid-area: t; font-weight: 700; line-height: 1.7; font-size: clamp(15px, 1.2vw, 17px); }
.entries .arr { grid-area: arr; transition: transform .5s var(--ease); }
.entries a:hover .arr { transform: translateX(6px); }
@media (min-width: 960px) {
  .entries a { grid-template-columns: 110px 160px 1fr auto; grid-template-areas: "date cat t arr"; }
}

.article { background: var(--white); padding-top: calc(var(--hd-h) + clamp(40px, 6vw, 96px)); padding-bottom: clamp(64px, 8vw, 120px); }
.article__hd { max-width: calc(860px + var(--gutter) * 2); }
.article__meta { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.article__ttl { margin-top: 20px; font-size: clamp(24px, 3vw, 40px); font-weight: 900; line-height: 1.55; color: var(--navy); }
.article__cover { max-width: calc(1040px + var(--gutter) * 2); margin-top: clamp(32px, 4vw, 56px); }
.article__cover img { width: 100%; border-radius: 20px; }
.article__in { max-width: calc(860px + var(--gutter) * 2); margin-top: clamp(40px, 5vw, 72px); }
.article__back { max-width: calc(860px + var(--gutter) * 2); margin-top: 40px; }

.toc { padding: 24px 28px; border-radius: 16px; background: var(--paper); margin-bottom: 48px; }
.toc .mono { color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { font-weight: 700; font-size: 14px; color: var(--navy); }
.toc a:hover { color: var(--blue-d); }
.toc__l3 { padding-left: 1.2em; }
.toc__l3 a { font-weight: 500; }

.prose { font-size: clamp(15px, 1.1vw, 17px); line-height: 2.05; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { margin-top: 2.6em; padding-bottom: .5em; border-bottom: 2px solid var(--navy); font-size: clamp(20px, 2vw, 26px); font-weight: 900; line-height: 1.6; color: var(--navy); }
.prose h3 { margin-top: 2.2em; padding-left: .8em; border-left: 4px solid var(--blue); font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; line-height: 1.6; color: var(--navy); }
.prose h4 { margin-top: 2em; font-size: 1.05em; font-weight: 700; color: var(--navy); }
.prose a { color: var(--blue-d); text-decoration: underline; text-underline-offset: .2em; }
.prose strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(255,201,60,.45) 62%); }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 12px; }
.prose blockquote { padding: 1em 1.4em; border-left: 4px solid var(--line); background: var(--paper); border-radius: 0 12px 12px 0; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 3em; }
.prose code { font-family: var(--f-mono); font-size: .88em; padding: .15em .4em; border-radius: 4px; background: var(--paper); }
.prose pre { padding: 1.2em; border-radius: 12px; background: var(--ink); color: #e6edf5; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose__table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94em; line-height: 1.8; }
.prose th, .prose td { padding: .8em 1em; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-weight: 700; white-space: nowrap; }
.prose--page { max-width: 860px; }

.embed--video { position: relative; aspect-ratio: 16 / 9; }
.embed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.prose .embed--card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); text-decoration: none; transition: border-color .3s, background-color .3s; }
.prose .embed--card:hover { border-color: var(--navy); background: var(--paper); }
.embed__url { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pager { max-width: calc(860px + var(--gutter) * 2); margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 16px; }
.pager a { display: grid; gap: 6px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; font-weight: 700; line-height: 1.7; transition: border-color .3s, background-color .3s; }
.pager a:hover { border-color: var(--navy); background: var(--paper); }
.pager .mono { color: var(--muted); font-weight: 400; }
.pager__next { text-align: right; }
@media (min-width: 768px) { .pager { grid-template-columns: 1fr 1fr; } }
.case__more { padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- 記事カード・一覧 ---------- */
.cards { display: grid; gap: clamp(28px, 3vw, 40px) 24px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: grid; align-content: start; gap: 12px; color: var(--text); }
.card__thumb { display: block; aspect-ratio: 1200 / 630; border-radius: 14px; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 1px var(--line); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.045); }
.card__meta { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.card__cat { color: var(--blue-d); font-family: var(--f-jp); font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.card__t { font-weight: 700; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; color: var(--navy); transition: color .3s; }
.card:hover .card__t { color: var(--blue-d); }

.byline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.byline__av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; }

.feature { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); color: var(--text); }
@media (min-width: 960px) { .feature { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; } }
.feature__thumb { display: block; aspect-ratio: 1200 / 630; border-radius: 20px; overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px -30px rgba(6, 18, 31, .45); }
.feature__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__thumb img { transform: scale(1.035); }
.feature__body { display: grid; gap: 16px; align-content: center; }
.feature__label { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-d); }
.feature__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 201, 60, .25); }
.feature__t { font-size: clamp(22px, 2.3vw, 32px); font-weight: 900; line-height: 1.55; color: var(--navy); }
.feature:hover .feature__t { color: var(--blue-d); }
.feature__ex { color: var(--muted); font-size: 14px; line-height: 2; }

.pg { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.pg__nums { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pg__n { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 999px; font-family: var(--f-mono); font-size: 13px; color: var(--navy); border: 1px solid var(--line); transition: border-color .3s, background-color .3s; }
a.pg__n:hover { border-color: var(--navy); }
.pg__n[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg__step { min-width: 72px; font-weight: 700; font-size: 14px; color: var(--navy); }
.pg__step:last-child { text-align: right; }

.yr + .yr { margin-top: clamp(40px, 5vw, 64px); }
.yr__h { font-family: var(--f-en); font-style: italic; font-weight: 900; font-size: clamp(32px, 4vw, 52px); color: var(--navy); letter-spacing: -.02em; margin-bottom: 8px; }

/* ---------- 記事ページの追加要素 ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress span { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}
.article__meta { flex-wrap: wrap; }
.article__by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.article__by .byline { font-size: 14px; color: var(--navy); }
.article__by .byline__av { width: 30px; height: 30px; font-size: 13px; }
.article__role { font-size: 12px; color: var(--muted); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.share__l { color: var(--muted); margin-right: 8px; }
.share__b { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 700 12px/1 var(--f-jp); color: var(--navy); cursor: pointer; transition: border-color .3s, background-color .3s, color .3s; }
.share__b:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.share__b.is-done { background: var(--navy); color: #fff; }

.author { display: flex; gap: 18px; align-items: center; margin-top: 32px; padding: 24px; border-radius: 18px; background: var(--paper); }
.author__av { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--navy-2), var(--ink)); color: #fff; font-size: 24px; font-weight: 900; box-shadow: inset 0 0 0 2px rgba(169, 211, 240, .35); }
.author__body { display: grid; gap: 2px; }
.author__body .mono { color: var(--muted); }
.author__body strong { font-size: 18px; color: var(--navy); }
.author__body span:last-child:not(.mono) { font-size: 13px; color: var(--muted); }

.related { max-width: calc(1240px + var(--gutter) * 2); margin-top: clamp(72px, 9vw, 120px); }
.related__h { display: grid; gap: 4px; margin-bottom: 28px; font-size: clamp(20px, 2vw, 26px); font-weight: 900; color: var(--navy); }
.related__h .mono { color: var(--blue-d); font-weight: 400; }
@media (min-width: 960px) {
  .yr { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
  .yr__h { position: sticky; top: calc(var(--hd-h) + 24px); margin: 0; padding-top: 14px; }
  .yr .entries a { grid-template-columns: 110px 120px 1fr auto; }
}

/* 文字の続くページを区切る横長の写真 */
.photo-band { margin-block: clamp(-40px, -3vw, -16px) 0; }
.photo-band__ph { aspect-ratio: 21 / 9; border-radius: 28px; }
@media (max-width: 720px) { .photo-band__ph { aspect-ratio: 4 / 3; border-radius: 20px; } }

/* 3つの支援のかたち（誰が・どこで・どう進めるか）の図 */
.forms { margin: clamp(40px, 5vw, 64px) 0 0; border: 1px solid var(--line); border-radius: 24px; background: var(--white); overflow: hidden; }
.forms__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.forms__key { display: inline-flex; align-items: center; gap: 8px; }
.forms__key .pp { margin-left: 8px; }
.forms__grid { display: grid; }
.forms__col { display: grid; gap: 16px; align-content: start; padding: 28px 24px 32px; border-top: 1px solid var(--line); }
.forms__col:first-child { border-top: 0; }
.forms__no { font-family: var(--f-en); font-style: italic; font-weight: 800; font-size: 13px; color: var(--blue-d); }
.forms__scene { display: grid; place-items: center; padding: 14px 10px; border-radius: 16px; background: var(--paper); }
/* アイソメ図（tools/forms-iso.mjs が src/partials/iso_*.html に書き出す） */
.iso { display: block; width: 100%; height: auto; max-height: 250px; }
.iso-flow { animation: iso-flow 1.2s linear infinite; }
@keyframes iso-flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .iso-flow { animation: none; } }
.pp { position: relative; display: inline-block; width: 14px; height: 22px; flex: none; }
.pp::before, .pp::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: var(--blue); }
.pp::before { top: 0; width: 9px; height: 9px; border-radius: 50%; }
.pp::after { bottom: 0; width: 14px; height: 11px; border-radius: 7px 7px 3px 3px; }
.pp--sn::before, .pp--sn::after { background: var(--accent); box-shadow: inset 0 0 0 1.5px #c99a12; }
.forms__lead { font-size: 14px; line-height: 1.9; color: var(--text); }
.forms__lead b { color: var(--navy); }
.forms__dl { display: grid; gap: 6px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.forms__dl div { display: grid; grid-template-columns: 5.5em 1fr; }
.forms__dl dt { color: var(--muted); }
.forms__dl dd { margin: 0; font-weight: 700; color: var(--navy); }
@media (min-width: 960px) {
  /* 3列で「番号・図・説明文・表」の行をそろえ、区切り線の高さを揃える */
  .forms__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, auto); }
  .forms__col { grid-row: span 4; grid-template-rows: subgrid; border-top: 0; border-left: 1px solid var(--line); }
  .forms__col:first-child { border-left: 0; }
}

/* ミッション「三方よし」の図 */
.mvv__mission { display: grid; gap: 32px; align-items: center; }
/* 「「三方よし」のシステム屋。」を1行に収める: 列の幅（cqi）に合わせて文字を縮める */
.mvv__mission > div { container-type: inline-size; }
.mvv__mission h3 { font-size: min(clamp(24px, 2.8vw, 42px), 7.2cqi); }
.mvv__mission h3 .nw { white-space: nowrap; }
.sanpo-fig { width: min(100%, 360px); margin: 0 auto; }
.sanpo-fig text { font-family: var(--f-jp); font-weight: 700; fill: var(--navy); }
@media (min-width: 1100px) { .mvv__mission { grid-template-columns: 1fr 300px; gap: 48px; } }
.cmp-note { margin: 40px 0 16px; font-size: 12px; color: var(--muted); }

/* 見出しの下に添える写真（選ばれる理由・サービス詳細） */
.side-ph { margin-top: 32px; aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .why-wrap .side-ph { max-width: 360px; } }

/* パートナー: お客様に向き合うひとつのチームの図 */
.pteam { display: grid; justify-items: center; margin: clamp(48px, 6vw, 80px) 0 0; padding: clamp(28px, 4vw, 48px) 20px; border: 1px solid var(--line-l); border-radius: 24px; background: rgba(255,255,255,.02); }
.pteam__client { display: grid; justify-items: center; gap: 2px; padding: 14px 40px; border-radius: 14px; background: var(--white); color: var(--navy); font-weight: 900; font-size: 17px; }
.pteam__client small { font-size: 11px; font-weight: 700; color: var(--muted); }
.pteam__up { display: flex; justify-content: space-between; width: min(60%, 420px); height: 44px; }
.pteam__up i { position: relative; width: 2px; background: linear-gradient(var(--sky), rgba(169,211,240,.2)); }
.pteam__up i::before { content: ""; position: absolute; top: -2px; left: 50%; width: 8px; height: 8px; border-left: 2px solid var(--sky); border-top: 2px solid var(--sky); transform: translateX(-50%) rotate(45deg); }
.pteam__team { position: relative; width: min(100%, 860px); padding: 36px 20px 24px; border: 1.5px dashed rgba(169,211,240,.5); border-radius: 20px; }
.pteam__lbl { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 0 12px; background: #0b1724; font-size: 12px; font-weight: 700; color: var(--sky); white-space: nowrap; }
.pteam__row { display: grid; gap: 16px; align-items: center; }
.pteam__co { padding: 18px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 900; text-align: center; }
.pteam__co--p { background: var(--accent); color: var(--navy); }
.pteam__links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pteam__links li { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 8px 12px; border-top: 1px solid var(--line-l); font-size: 13px; color: #c9d6e4; }
.pteam__links li:first-child { border-top: 0; }
.pteam__links b { font-family: var(--f-en); font-style: italic; color: var(--sky); }
@media (min-width: 760px) { .pteam__row { grid-template-columns: 1fr 1.6fr 1fr; } .pteam__co { padding: 28px 12px; } }
