/* TOP（/）専用: 各セクション（#359。正本は commit 074f668 の preview-top-v61） */
html, body { height: auto; }
body { overflow-x: hidden; overflow-y: visible; background: #fff; }
:root { --deep: #030b1c; --navy: #0b1f3a; --ink: #0b1f3a; --mute: #55637a; --line: #e2e8f0; --paper: #f4f8fc; --blue: #1e65db; --brand: #1f91e3; --cyan: #21bdea; --pad: 112px; --ease: cubic-bezier(.16, 1, .3, 1); }
/* リンクとフォーカスリングの指定は TOP の要素だけに当てる（:where で詳細度は正本と同じ）。共通ヘッダー・フッターは site.css のまま。 */
:where(main, .prail) a { color: inherit; text-decoration: none; }
:where(main, .prail) :focus-visible { outline: 2px solid #1e65db; outline-offset: 3px; }   /* ring follows each element's own shape (pills stay pills) */
:where(.tlink, .nl a, .roles a, .prail a):focus-visible { border-radius: 4px; }   /* square-edged text links get a soft ring */
.kv :focus-visible { outline-color: #fff; } .dark :focus-visible { outline-color: #8fdcf7; }   /* >= 3:1 against each surface (the former cyan ring was ~2.3:1 on white) */
.sec { position: relative; overflow: hidden; padding: 150px 0; scroll-margin-top: 64px; }
.wrap { position: relative; z-index: 5; padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
canvas.mist { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sec .grain { z-index: 2; }
.dark { background: var(--deep); color: #fff; }
/* section heading : the rule draws, then writes the heading (same grammar as FORWARD.) */
.sh { margin-bottom: 72px; }
.sh .no { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--brand); display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.sh .no::before { content: ""; width: 40px; height: 1px; background: currentColor; transform-origin: 0 50%; }
.sh h2 { font-size: 46px; font-weight: 800; line-height: 1.32; letter-spacing: .01em; color: var(--ink); }
.sh .lede { margin-top: 24px; font-size: 15.5px; line-height: 2.05; color: var(--mute); max-width: 640px; }
.dark .sh .no { color: #8fdcf7; } .dark .sh h2 { color: #fff; } .dark .sh .lede { color: rgba(255,255,255,.76); }
.anim .wr .no::before { transform: scaleX(0); transition: transform .6s var(--ease); }
.anim .wr h2 { clip-path: inset(-12% 100% -12% 0); transform: translateX(-14px); transition: clip-path .9s var(--ease) .18s, transform .9s var(--ease) .18s; }
.anim .wr.in .no::before { transform: scaleX(1); }
.anim .wr.in h2 { clip-path: inset(-12% 0 -12% 0); transform: none; }
/* buttons (pill + arrow chip) */
.btn.navy { background: var(--navy); color: #fff; box-shadow: 0 12px 28px -14px rgba(11,31,58,.6); }
.btn.ghost { background: transparent; color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.45); }
.btn, .tlink { transition: transform .3s var(--ease), box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover i, .tlink:hover i { transform: translateX(3px); } .btn i, .tlink i { transition: transform .3s var(--ease); }

/* ---------- KV additions ---------- */
.kv { min-height: 640px; }
.kv .copy { will-change: transform, opacity; }

/* ---------- ABOUT ---------- */
#about { padding: 130px 0 140px; }
#about::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 180px; z-index: 1; background: linear-gradient(180deg, #030b1c, rgba(3,11,28,0)); }
#about .grid { display: grid; }
#about h2 { font-size: 52px; line-height: 1.38; white-space: nowrap; }
#about h2 em { font-style: normal; background: linear-gradient(90deg, #7fd6f7, #d6f6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
#about .who { font-size: 15.5px; line-height: 2.05; color: rgba(255,255,255,.78); }
#about .bridge { margin: 26px 0 36px; padding-left: 20px; border-left: 2px solid; border-image: linear-gradient(180deg, #21bdea, #1e65db) 1; font-size: 17px; font-weight: 700; line-height: 1.9; color: #fff; }

/* ---------- BUSINESS : three forces, one flow ---------- */
#business { background: var(--paper); }
#business::before { content: ""; position: absolute; right: -260px; top: -280px; width: 860px; height: 860px; border-radius: 50%; background: radial-gradient(closest-side, rgba(33,189,234,.2), rgba(31,145,227,.07) 55%, rgba(31,145,227,0)); }
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.flow .rail { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: #d7e2ee; }
.flow .rail i { position: absolute; inset: 0; background: linear-gradient(90deg, #1d4ed8, #1f91e3 50%, #21bdea); transform-origin: 0 50%; }
.anim .flow .rail i { transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.anim .flow.in .rail i { transform: scaleX(1); }
.col { position: relative; padding: 0 44px 0 0; }
.col + .col { padding-left: 44px; border-left: 1px solid var(--line); }
.node { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-bottom: 40px; height: 48px; }
.node b { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #cddcec; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .06em; transition: background .5s, color .5s, border-color .5s; }
.anim .flow.in .node b { background: var(--navy); color: #fff; border-color: var(--navy); }
.flow.in .col:nth-child(3) .node b { transition-delay: .45s; } .flow.in .col:nth-child(4) .node b { transition-delay: .9s; }
.node em { font-style: normal; font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--brand); background: var(--paper); padding: 0 8px; }
.col h3 { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.col h3 small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .3em; color: #8a97a8; font-weight: 700; }
.col .issue { margin-top: 26px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.col .issue b { display: inline-block; font-size: 10px; letter-spacing: .2em; color: #fff; background: var(--navy); padding: 2px 9px; border-radius: 999px; margin-right: 8px; vertical-align: 2px; }
.col .txt { margin-top: 14px; font-size: 14.5px; line-height: 2; color: var(--mute); }
.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 10.5px; letter-spacing: .1em; font-weight: 700; color: var(--blue); border: 1px solid #cfe0f3; background: #fff; padding: 6px 12px; border-radius: 999px; }
.col .more { margin-top: 26px; }
.flowline { margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.flowline p { font-size: 15.5px; color: var(--ink); font-weight: 600; line-height: 1.95; max-width: 760px; }

/* ---------- CASE STUDY ---------- */
#cases { background: #fff; padding-bottom: 130px; }
.feat { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.feat .ph { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; position: relative; } .feat .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat .tag { font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--brand); margin-bottom: 22px; }
.feat blockquote { font-size: 44px; font-weight: 800; line-height: 1.36; color: var(--ink); }
.feat .who { margin-top: 26px; display: flex; gap: 16px; align-items: center; font-size: 15px; font-weight: 700; color: var(--ink); } .feat .who img { height: 22px; width: auto; }
.feat dl { margin-top: 28px; border-top: 1px solid var(--line); } .feat dl div { display: grid; grid-template-columns: 150px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feat dt { font-size: 10.5px; letter-spacing: .22em; font-weight: 700; color: var(--brand); padding-top: 2px; } .feat dd { color: var(--ink); font-weight: 600; }
.results { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-radius: 6px; }
.results > div { padding: 36px 36px 32px; } .results > div + div { border-left: 1px solid var(--line); }
.results small { font-size: 10.5px; letter-spacing: .22em; font-weight: 700; color: var(--brand); }
.results .v { margin: 14px 0 10px; font-size: 54px; font-weight: 800; color: var(--ink); letter-spacing: .01em; line-height: 1; font-variant-numeric: tabular-nums; }
.results .v sub, .results .v sup { font-size: 22px; vertical-align: baseline; margin-left: 4px; font-weight: 700; } .results .v .pre { font-size: 22px; margin-right: 6px; font-weight: 700; }
.results p { font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.7; }
.results .note { margin-top: 8px; font-size: 11px; color: #7a8799; font-weight: 500; line-height: 1.6; }
.foot-note { margin-top: 14px; font-size: 11px; color: #7a8799; line-height: 1.7; }
.case-cta { margin-top: 40px; display: flex; gap: 28px; align-items: center; }
.logos { margin-top: 110px; } .logos h3 { font-size: 12px; letter-spacing: .3em; font-weight: 700; color: #8a97a8; margin-bottom: 26px; display: flex; gap: 14px; align-items: center; } .logos h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logos ul { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line); }
.logos li { height: 112px; display: grid; place-items: center; border-right: 1px solid var(--line); padding: 18px; } .logos img { max-width: 100%; max-height: 50px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- NEWS ---------- */
#news { background: var(--paper); padding: 130px 0; }
#news .grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.nl { list-style: none; } .nl a { display: grid; grid-template-columns: 120px 100px 1fr 40px; align-items: center; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; transition: padding .35s var(--ease), color .3s; }
.nl li:first-child a { border-top: 1px solid var(--line); } .nl a:hover { padding-left: 10px; color: var(--blue); }
.nl time { font-size: 13px; color: var(--mute); font-weight: 600; letter-spacing: .06em; }
.nl .c { font-size: 11px; font-weight: 700; color: var(--blue); border: 1px solid #cfe0f3; border-radius: 999px; text-align: center; padding: 4px 0; background: #fff; }
.nl .ar { justify-self: end; color: var(--brand); }

/* ---------- RECRUIT ---------- */
#recruit .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 96px; align-items: center; }
#recruit .sh { margin: 0; }
.roles { list-style: none; } .roles a { display: grid; grid-template-columns: 56px 1fr 52px; align-items: center; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; transition: padding .35s var(--ease); }
.roles li:first-child a { border-top: 1px solid rgba(255,255,255,.14); } .roles a:hover { padding-left: 10px; }
.roles .n { color: #8fdcf7; font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.roles strong { font-size: 30px; font-weight: 800; letter-spacing: .02em; } .roles small { margin-left: 16px; font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; }
.arrowc { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #cdd8e6; position: relative; display: inline-block; flex: none; }
.arrowc::after { content: ""; position: absolute; left: 17px; top: 25px; width: 17px; height: 1.6px; background: var(--ink); } .arrowc::before { content: ""; position: absolute; left: 25px; top: 21px; width: 8px; height: 8px; border-top: 1.6px solid var(--ink); border-right: 1.6px solid var(--ink); transform: rotate(45deg); }
.roles .arrowc { border-color: rgba(255,255,255,.35); } .roles .arrowc::after { background: #fff; } .roles .arrowc::before { border-color: #fff; }

/* ---------- CONTACT : where "前へ" arrives ---------- */
#contact { background: #eaf4fd; padding: 150px 0 160px; }
#contact .sh { text-align: center; margin-bottom: 56px; } #contact .sh .no { justify-content: center; } #contact .sh h2 { font-size: 50px; } #contact .sh .lede { margin-left: auto; margin-right: auto; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.act { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 30px 30px 36px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -28px rgba(11,31,58,.45); transition: transform .35s var(--ease), box-shadow .35s; }
.act:hover { transform: translateY(-3px); box-shadow: 0 28px 48px -26px rgba(11,31,58,.5); }
.act small { display: block; font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.act strong { font-size: 21px; font-weight: 800; } .act span.d { display: block; margin-top: 6px; font-size: 13px; color: var(--mute); }
.act.primary { background: var(--navy); color: #fff; } .act.primary small { color: #8fdcf7; } .act.primary span.d { color: rgba(255,255,255,.7); }
.act .chip { position: relative; width: 52px; height: 52px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #1d4ed8, #21bdea); }
.act .chip::after { content: ""; position: absolute; left: 17px; top: 25px; width: 17px; height: 1.6px; background: #fff; } .act .chip::before { content: ""; position: absolute; left: 25px; top: 21px; width: 8px; height: 8px; border-top: 1.6px solid #fff; border-right: 1.6px solid #fff; transform: rotate(45deg); }
.act .line { background: #06c755; }


/* ---------- page index rail (same idea as the existing .corp-rail) ---------- */
.prail { position: fixed; z-index: 40; left: 26px; top: 50%; transform: translateY(-50%); list-style: none; opacity: 0; pointer-events: none; transition: opacity .4s, color .4s, visibility 0s .4s; color: #0b1f3a; visibility: hidden; }
.prail.on { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; } .prail.light { color: #fff; }
/* visibility: while the rail is not shown it is out of the Tab order too (Shift+Tab from the top used to land on an invisible link).
   It turns hidden only after the .4s fade-out and visible at the start of the fade-in (.on drops the delay), so the fades look
   exactly as before. .on sets only transition-delay, so the reduced-motion rule below (transition: none) still wins. */
.prail a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 10.5px; letter-spacing: .2em; font-weight: 700; opacity: .5; transition: opacity .3s; }
.prail a::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transition: width .4s var(--ease); }
.prail a[aria-current="true"] { opacity: 1; } .prail a[aria-current="true"]::before { width: 18px; border-radius: 2px; height: 2px; }

.sp-br { display: none; }
@media (max-width: 1240px) { .prail { display: none; } }
@media (max-width: 600px) {
  :root { --pad: 22px; }
  .sec { padding: 88px 0; }
  .sh { margin-bottom: 44px; } .sh .no { font-size: 10px; margin-bottom: 16px; } .sh .no::before { width: 24px; }
  .sh h2 { font-size: 28px; } .sh .lede { font-size: 13.5px; line-height: 1.95; margin-top: 16px; }
  .sp-br { display: inline; }
  #about { padding: 76px 0 88px; } #about h2 { font-size: 27px; white-space: normal; }
  #about .who { font-size: 13.5px; } #about .bridge { font-size: 14.5px; margin: 20px 0 28px; padding-left: 14px; }
  .flow { grid-template-columns: 1fr; } .flow .rail { left: 23px; right: auto; width: 2px; top: 24px; bottom: 24px; height: auto; } .flow .rail i { transform-origin: 50% 0; }
  .anim .flow .rail i { transform: scaleY(0); } .anim .flow.in .rail i { transform: scaleY(1); }
  .col, .col + .col { padding: 0 0 44px 70px; border-left: 0; } .node { position: absolute; left: 0; top: 0; margin: 0; } .node em { display: none; }
  .col h3 { font-size: 23px; padding-top: 8px; } .col .issue { margin-top: 16px; font-size: 13px; } .col .txt { font-size: 13px; }
  .flowline { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 8px; } .flowline p { font-size: 13.5px; }
  .feat { grid-template-columns: 1fr; gap: 28px; } .feat blockquote { font-size: 28px; } .feat dl div { grid-template-columns: 112px 1fr; font-size: 12.5px; }
  .results { grid-template-columns: 1fr; margin-top: 44px; } .results > div { padding: 24px 22px; } .results > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .results .v { font-size: 42px; } .case-cta { flex-direction: column; align-items: flex-start; gap: 18px; } .case-cta .tlink { align-self: flex-start; }
  .logos { margin-top: 64px; } .logos ul { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); } .logos li { height: 84px; border-bottom: 1px solid var(--line); } .logos li:last-child { grid-column: 1 / -1; }
  #news { padding: 88px 0; } #news .grid { grid-template-columns: 1fr; gap: 0; } .nl a { grid-template-columns: 92px 1fr 20px; gap: 6px 12px; padding: 20px 0; font-size: 14px; }
  .nl .c { grid-column: 2; grid-row: 1; justify-self: start; padding: 3px 10px; font-size: 10px; } .nl .t { grid-column: 1 / -1; } .nl .ar { grid-column: 3; grid-row: 1; }
  #recruit .grid { grid-template-columns: 1fr; gap: 36px; } .roles a { padding: 22px 0; grid-template-columns: 40px 1fr 42px; } .roles strong { font-size: 22px; } .roles small { display: block; margin: 4px 0 0; font-size: 11.5px; }
  .roles .arrowc { width: 42px; height: 42px; } .roles .arrowc::after { left: 13px; top: 20px; width: 15px; } .roles .arrowc::before { left: 20px; top: 16.5px; }
  #contact { padding: 96px 0 104px; } #contact .sh { text-align: left; } #contact .sh .no { justify-content: flex-start; } #contact .sh h2 { font-size: 28px; }
  .actions { grid-template-columns: 1fr; gap: 14px; } .act { padding: 22px 20px 22px 24px; } .act strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .tlink, .act, .nl a, .roles a, .logos img { transition: none; } }


/* contrast: small labels on light surfaces use the deeper brand blue / darker gray (WCAG AA 4.5:1) */
.sec:not(.dark) .sh .no, .feat .tag, .feat dt, .results small, .act:not(.primary) small, .node em { color: #1e65db; }
.results .note, .foot-note, .logos h3, .col h3 small { color: #5b6879; }

/* ===== v5 ===== */
/* KV → ABOUT : same mechanism as the live site (.corp-kv__beat sticky + .corp-rise margin-top:-100vh).
   The KV is pinned for one viewport while ABOUT slides up over it at scroll speed, then both move on. */
.kv-stage { position: relative; height: 200vh; }
.kv-stage > .kv { position: sticky; top: 0; height: 100vh; z-index: 1; }
.rise { position: relative; z-index: 6; margin-top: -100vh; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 -40px 80px -20px rgba(3, 11, 28, .55); }
#about.rise::before { display: none; }
#about { padding: 120px 0; }
#about h2 { font-size: 56px; }
#about .who { max-width: 420px; }
#about .handoff { margin-top: 112px; display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: .3em; font-weight: 700; color: rgba(255,255,255,.55); }
#about .handoff::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(143,220,247,.5), rgba(143,220,247,0)); order: 2; }
/* client logos : original colours, optically unified size */
.logos img { filter: none; opacity: 1; max-height: 46px; max-width: 76%; }
.logos li { background: #fff; }
@media (max-width: 600px) {
  .kv-stage { height: 200svh; height: 200dvh; } .kv-stage > .kv { height: 100svh; height: 100dvh; }
  .rise { margin-top: -100svh; margin-top: -100dvh; min-height: 100svh; min-height: 100dvh; }
  #about { padding: 88px 0; } #about h2 { font-size: 28px; } #about .handoff { margin-top: 56px; }
  .logos img { max-height: 40px; max-width: 70%; }
}
@media (max-width: 600px) {
  #about h2 { white-space: normal; }
}
.rise > .wrap { width: 100%; min-width: 0; }
@media (max-width: 1280px) { #about h2 { white-space: normal; font-size: 48px; } }
@media (max-width: 1100px) and (min-width: 601px) {
  :root { --pad: 56px; }
  .flow { grid-template-columns: 1fr; } .flow .rail { left: 23px; right: auto; width: 2px; top: 24px; bottom: 24px; height: auto; } .flow .rail i { transform-origin: 50% 0; }
  .anim .flow .rail i { transform: scaleY(0); } .anim .flow.in .rail i { transform: scaleY(1); }
  .col, .col + .col { padding: 0 0 48px 76px; border-left: 0; } .node { position: absolute; left: 0; top: 0; margin: 0; } .node em { display: none; }
  .feat { grid-template-columns: 1fr; } .results .v { font-size: 42px; } .results > div { padding: 28px 24px; }
  #news .grid, #recruit .grid { grid-template-columns: 1fr; gap: 40px; }
  .logos ul { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); } .logos li { border-bottom: 1px solid var(--line); }
}
.flowline .btn { flex: none; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 601px) { .flowline { flex-direction: column; align-items: flex-start; gap: 24px; } }
/* ABOUT heading: three explicit lines that always fit their column (no nowrap overflow under clip-path) */
#about h2 { white-space: normal; font-size: 52px; }
@media (max-width: 1280px) { #about h2 { font-size: 46px; } }
@media (max-width: 600px) { #about h2 { font-size: 28px; } }
/* page index rail: dots only; labels appear on hover / keyboard focus so they never sit on the content */
.prail { left: 20px; }
.prail a { position: relative; width: 22px; height: 22px; padding: 0; font-size: 0; justify-content: flex-start; }
.prail a::after { content: attr(data-label); position: absolute; left: 30px; top: 50%; transform: translate(-6px, -50%); opacity: 0; white-space: nowrap; font-size: 10.5px; letter-spacing: .2em; font-weight: 700;
  background: currentColor; padding: 5px 9px; border-radius: 999px; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.prail a:hover::after, .prail a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.prail a::after { background: #fff; color: #0b1f3a; box-shadow: 0 6px 18px -10px rgba(11,31,58,.5); }

/* ===== v6 : ABOUT layout — single source of truth (declared last on purpose) =====
   > 1100px : heading | body (2 columns, body aligned to the heading's baseline area)
   <= 1100px: one column, read in order heading -> body -> bridge -> CTA            */
#about .grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 96px; align-items: end; }
@media (max-width: 1100px) {
  #about .grid { grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
  #about .who { max-width: 620px; }
  #about .bridge { max-width: 620px; }
}
@media (max-width: 600px) {
  #about .grid { gap: 24px; }
  #about .who { max-width: none; }
  #about .btn.ghost { align-self: flex-start; }
}
/* v6: break Japanese only at phrase boundaries; avoid one-character last lines */
.nw { display: inline-block; }
.sh .lede, .lead, #about .who, .col .txt, .flowline p, .feat blockquote { text-wrap: pretty; }
@media (max-width: 360px) { #about h2 { font-size: 26px; } }
/* ===== v6.1 ===== */
/* client logos: transparent padding trimmed, each logo sized to a similar optical area (--w per logo, aspect ratio kept) */
.logos img { width: var(--w); height: auto; max-width: 100%; max-height: none; }
@media (max-width: 600px) { .logos img { width: calc(var(--w) * .92); } }
/* KV: the SCROLL cue sits at bottom:36px while the copy is vertically centred. Below ~860px of height the
   CTA reaches the cue and its 1px line shows under the button. Hide the cue only where it would collide. */
@media (min-width: 601px) and (max-height: 860px) { .kv .scrollcue { display: none; } }

/* ===== Preview (v6.1 + DYNAC-baseline logo sizing) =====
   --w per logo = optical size matched to DYNAC (bbox area x ink coverage). Cells give the wide logos room. */
.logos li { padding: 14px 10px; }
@media (max-width: 600px) { .logos li { padding: 14px 12px; } .logos img { width: calc(var(--w) * .9); } }

/* =====================================================================
   CASE STUDY (r2) — figures band removed; trust comes from the case itself.
   ===================================================================== */
.feat { align-items: center; }
.feat__lead { margin-top: 22px; font-size: 15px; line-height: 1.95; color: #55637a; text-wrap: pretty; max-width: 30em; }
.feat dl { margin-top: 26px; }
.feat .case-cta { margin-top: 36px; }
.logos { margin-top: 128px; }
@media (max-width: 1100px) { .logos { margin-top: 96px; } }
@media (max-width: 600px) {
  .feat__lead { font-size: 13.5px; margin-top: 16px; }
  #cases { padding-bottom: 88px; }   /* SP rhythm: every section breathes 88px top and bottom (130px was a PC value leaking through) */
  .feat .case-cta { margin-top: 28px; }
  .logos { margin-top: 72px; }
}

/* r2: the rising ABOUT casts its shadow only once it is actually moving over the KV
   (at rest the shadow leaked above the fold as a grey band on the white intro sheet) */
.rise { box-shadow: none; transition: box-shadow .5s ease; }
.rise.is-lifting { box-shadow: 0 -40px 80px -20px rgba(3, 11, 28, .55); }

/* section posters (static fallback for the one-frame WebGL mist) */
#about { background: #030b1c url(img/poster-about-pc.webp) center / cover no-repeat; }
#recruit { background: #030b1c url(img/poster-recruit-pc.webp) center / cover no-repeat; }
#contact { background: #eaf4fd url(img/poster-contact-pc.webp) center / cover no-repeat; }
@media (max-width: 600px) {
  #about { background-image: url(img/poster-about-sp.webp); }
  #recruit { background-image: url(img/poster-recruit-sp.webp); }
  #contact { background-image: url(img/poster-contact-sp.webp); }
}
/* RECRUIT on very narrow screens: keep 「飲食 × WEB × SaaS。」 on one line */
@media (max-width: 360px) { #rec-h { font-size: 25px; } }

/* =====================================================================
   r9 — section titles / OUR PRODUCTS / client logos (8)
   ===================================================================== */
/* section titles: number + rule + English, one rule for all six sections (wording unchanged) */
.sh .no { font-size: 22px; letter-spacing: .14em; gap: 0; margin-bottom: 30px; line-height: 1; font-weight: 700; }
.sh .no::before { width: 56px; height: 1.5px; margin-right: 20px; }
.sh .no .no-n { font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.sh .no .no-d { padding: 0 .5em; font-weight: 300; opacity: .55; letter-spacing: 0; }
.sh .no .no-t { letter-spacing: .2em; }
.sec:not(.dark) .sh .no .no-n { color: #0b1f3a; }
.dark .sh .no .no-n { color: #fff; }
@media (max-width: 1100px) and (min-width: 601px) { .sh .no { font-size: 20px; } .sh .no::before { width: 44px; margin-right: 16px; } }
@media (max-width: 600px) {
  .sh .no { font-size: 17px; margin-bottom: 20px; letter-spacing: .1em; } .sh .no::before { width: 28px; margin-right: 12px; }
  .sh .no .no-t { letter-spacing: .14em; }
}
@media (max-width: 360px) { .sh .no { font-size: 16px; } .sh .no .no-t { letter-spacing: .1em; } }

/* OUR PRODUCTS — a sub-section of BUSINESS: visuals lead, editorial rules, equal weight for both */
.prods { margin-top: 120px; }
.prods-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.prods-en { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: #1e65db; display: flex; align-items: center; gap: 12px; }
.prods-en::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.prods-head h3 { margin-top: 16px; font-size: 32px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.prods-lead { font-size: 14.5px; line-height: 2; color: var(--mute); max-width: 34em; justify-self: end; text-wrap: pretty; }
.prods-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.prods-list > li { padding: 48px 0 8px; min-width: 0; }
.prods-list > li:first-child { padding-right: 44px; } .prods-list > li + li { padding-left: 44px; border-left: 1px solid var(--line); }
.prod { display: flex; flex-direction: column; height: 100%; }
.prod-media { display: block; overflow: hidden; border-radius: 4px; outline: 1px solid rgba(11,31,58,.06); outline-offset: -1px; background: #fff; }
.prod-media img { display: block; width: 100%; height: auto; aspect-ratio: 2400 / 1260; transition: transform 1.2s var(--ease); }
.prod-media:hover img { transform: scale(1.025); }
.prod-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding-top: 30px; }
.prod-cat span { display: inline-block; font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: var(--blue); border: 1px solid #cfe0f3; background: #fff; padding: 6px 12px; border-radius: 999px; }
.prod h4 { margin-top: 16px; font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: .01em; color: var(--ink); }
.prod-txt { margin-top: 14px; font-size: 14.5px; line-height: 2; color: var(--mute); text-wrap: pretty; flex: 1; }
.prod .btn { margin-top: 28px; }
.btn.ext i::before { transform: rotate(0deg); left: 18px; top: 14px; }   /* arrow points up-right: opens the service site */
.btn.ext i::after { transform: rotate(-45deg); transform-origin: 50% 50%; left: 12.5px; top: 19.5px; width: 14px; }
.anim .prod { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.anim .prods-list > li + li .prod { transition-delay: .12s; }
.anim .prod.in { opacity: 1; transform: none; }
@media (max-width: 1100px) and (min-width: 601px) {
  .prods { margin-top: 96px; } .prods-head { grid-template-columns: 1fr; gap: 16px; } .prods-lead { justify-self: start; }
  .prods-list > li:first-child { padding-right: 28px; } .prods-list > li + li { padding-left: 28px; }
  .prod h4 { font-size: 24px; } .prod-txt { font-size: 13.5px; }
}
@media (max-width: 600px) {
  .prods { margin-top: 72px; } .prods-head { grid-template-columns: 1fr; gap: 14px; padding-bottom: 24px; }
  .prods-head h3 { margin-top: 12px; font-size: 24px; } .prods-lead { justify-self: start; font-size: 13.5px; line-height: 1.95; }
  .prods-list { grid-template-columns: 1fr; }
  .prods-list > li, .prods-list > li:first-child, .prods-list > li + li { padding: 32px 0 36px; border-left: 0; }
  .prods-list > li + li { border-top: 1px solid var(--line); }
  .prod-body { padding-top: 22px; } .prod h4 { margin-top: 12px; font-size: 24px; } .prod-txt { font-size: 13.5px; line-height: 1.95; }
  .prod .btn { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .prod-media img { transition: none; } .prod-media:hover img { transform: none; } }

/* client logos: 8 companies. 8 across from 1360px (the widest logo keeps >= 86% of its DYNAC-based size);
   otherwise 4 x 2 (PC / tablet) and 2 x 4 (SP). */
.logos ul { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.logos li { border-bottom: 1px solid var(--line); }
@media (min-width: 1360px) { .logos ul { grid-template-columns: repeat(8, 1fr); } .logos li { padding: 14px 4px; } }
@media (max-width: 600px) { .logos ul { grid-template-columns: repeat(2, 1fr); } .logos li:last-child { grid-column: auto; } }
/* narrow tablets (601-819px): two columns would shrink the product visuals below ~300px, so stack them as on SP */
@media (max-width: 819px) and (min-width: 601px) {
  .prods-list { grid-template-columns: 1fr; }
  .prods-list > li, .prods-list > li:first-child, .prods-list > li + li { padding: 40px 0 40px; border-left: 0; }
  .prods-list > li + li { border-top: 1px solid var(--line); }
}
/* client logos, PC/tablet (601px+) only: alternate wide and compact logos so two wide marks never sit side by side.
   DYNAC and OIZUMI FOODS stay first; the HTML (and SP) order is unchanged.
   DOM order: 1 DYNAC, 2 OIZUMI, 3 養老乃瀧, 4 中央フードサービス, 5 つぼ八, 6 RIKIMARU, 7 AQUA PLANNET, 8 BALNIBARBI */
@media (min-width: 601px) {
  .logos li:nth-child(1) { order: 1; } .logos li:nth-child(2) { order: 2; } .logos li:nth-child(3) { order: 3; }
  .logos li:nth-child(6) { order: 4; } .logos li:nth-child(4) { order: 5; } .logos li:nth-child(7) { order: 6; }
  .logos li:nth-child(5) { order: 7; } .logos li:nth-child(8) { order: 8; }
}

/* =====================================================================
   r15 — KV scroll cue. Not an appendage of the CTA: it stands on the KV's centre axis and its hairline runs off the
   bottom edge, continuing into ABOUT, which rises from exactly there. A soft light travels down the line and out of
   the frame. It is a real link to #about (keyboard / tap), fades as soon as the page moves, and stops animating
   when it is gone, under reduced motion and when hidden.
   ===================================================================== */
.kv .scrollcue { --scf: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; left: 0; right: 0; bottom: 0; margin: 0 auto; width: max-content;
  padding: 12px 18px 0; color: #fff; text-decoration: none; opacity: 1; font-size: 10.5px; letter-spacing: .46em; font-weight: 600; line-height: 1; transform: none; -webkit-tap-highlight-color: transparent; }
.kv .scrollcue span { width: auto; height: auto; background: none; }   /* reset of the former cue (a bare 1px span) */
.kv .scrollcue > * { opacity: var(--scf); }
.kv .scrollcue .sc-t { display: block; padding-left: .46em; color: rgba(255,255,255,.8); transition: color .5s var(--ease); }
.kv .scrollcue .sc-l { position: relative; display: block; width: 1px; height: 76px; overflow: hidden;
  background: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.12)); transition: background .5s var(--ease); }
.kv .scrollcue .sc-l i { position: absolute; left: 0; top: 0; width: 1px;
  height: 50%; background: linear-gradient(rgba(127,214,247,0), rgba(214,248,255,.95) 62%, rgba(255,255,255,0)); transform: translateY(-100%);
  animation: sc-flow 3s cubic-bezier(.65,0,.35,1) 1s infinite; }
@keyframes sc-flow { 0% { transform: translateY(-100%); } 72%, 100% { transform: translateY(200%); } }   /* % of the light = half the line: works for every line length */
.kv .scrollcue:hover .sc-t, .kv .scrollcue:focus-visible .sc-t { color: #fff; }
.kv .scrollcue:hover .sc-l { background: linear-gradient(rgba(255,255,255,.62), rgba(255,255,255,.18)); }
.kv .scrollcue:focus-visible { outline: 1px solid rgba(255,255,255,.75); outline-offset: 4px; border-radius: 2px; }
.kv .scrollcue.is-gone, .kv .scrollcue.is-tight { visibility: hidden; } .kv .scrollcue.is-gone .sc-l i, .kv .scrollcue.is-tight .sc-l i, .rm .kv .scrollcue .sc-l i { animation: none; }
.rm .kv .scrollcue .sc-l i { transform: translateY(30%); }   /* reduced motion: the light rests on the line */
@media (min-width: 601px) and (max-height: 860px) { .kv .scrollcue { display: flex; } }   /* the former cue was hidden here */
@media (min-width: 601px) and (max-height: 800px) { .kv .scrollcue .sc-l { height: 44px; } }
@media (min-width: 601px) and (max-width: 1100px) and (max-height: 800px) { .kv .scrollcue .sc-l { height: 30px; } }
/* SP: same idea, own proportions; the line ends in the safe area so it still reaches the visible bottom edge */
@media (max-width: 600px) {
  .kv .scrollcue { display: flex; gap: 12px; padding: 12px 24px 0; font-size: 10px; letter-spacing: .42em; }
  .kv .scrollcue .sc-t { padding-left: .42em; }
  .kv .scrollcue .sc-l { height: calc(52px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) and (max-height: 700px) { .kv .scrollcue .sc-l { height: calc(32px + env(safe-area-inset-bottom)); } }
@media (max-width: 600px) and (max-height: 660px) { .kv .scrollcue { gap: 10px; } .kv .scrollcue .sc-l { height: calc(24px + env(safe-area-inset-bottom)); } }
@media (max-width: 600px) and (max-height: 620px) { .kv .scrollcue { display: none; } }   /* 320x568 class: the CTAs need the space */
@media (prefers-reduced-motion: reduce) { .kv .scrollcue .sc-l i { animation: none; transform: translateY(30%); } }

/* =====================================================================
   r16 — final brush-up (each block below is one verified fix)
   ===================================================================== */
/* list hovers (NEWS / RECRUIT): same 10px nudge, done with transform instead of animating padding (no layout per frame);
   the arrow stays at the edge as before. The logos' filter transition is gone: nothing changes on hover any more. */
.nl a, .roles a { transition: color .3s var(--ease); } .nl a:hover, .roles a:hover { padding-left: 0; }
.nl a > :not(.ar), .roles a > :not(.arrowc) { transition: transform .35s var(--ease); }
.nl a:hover > :not(.ar), .roles a:hover > :not(.arrowc) { transform: translateX(10px); }
.logos img { transition: none; }
@media (prefers-reduced-motion: reduce) { .nl a > *, .roles a > * { transition: none; } }
/* SP CTA width: every pill CTA keeps its natural width (text + arrow), on SP as on PC. The former "next concrete page
   spans the column" rule (KV, case, product sites) was dropped by the business side's decision (#362 / STEP 02-B). */
/* reduced motion: the remaining UI transitions (page rail, ABOUT's lift shadow, BUSINESS nodes). The shared header has its own. */
@media (prefers-reduced-motion: reduce) {
  .prail, .prail a, .prail a::before, .prail a::after, .rise, .node b, .flow .rail i { transition: none; }
  .btn:hover, .act:hover { transform: none; }
}

/* =====================================================================
   本番構成（#359）で足したもの。正本の見た目は変えない。
   ===================================================================== */
/* 旧TOPのページ内リンク /#clients（導入企業）を、外部からのリンクのために残す。id は導入企業ロゴの枠に付けてある。
   固定ヘッダーの下に隠れないよう、各セクション（.sec）と同じだけ余白を取る。 */
#clients { scroll-margin-top: 64px; }
/* site.css は html に scroll-behavior: smooth と scroll-padding-top: 5rem を当てている。TOP の各セクションは自分で
   scroll-margin-top（固定ヘッダーの高さ）を持っているので、そのままだと /#news などの着地点が 80px 下にずれる。
   また正本はページ内ナビ（.prail）で即座に移動する（SCROLL の誘導は top.js が自前でスクロールする）。TOP では両方を既定に戻す。 */
html { scroll-behavior: auto; scroll-padding-top: 0; }
/* ⚠️ site.css は html に overflow-x: hidden を当てている。TOP は正本どおり body 側に overflow-x: hidden を持つが、html が
   visible 以外だと body の overflow がビューポートへ伝わらず、body 自身がスクロールの箱になる。すると KV の
   position: sticky が効かず、ABOUT が KV の上に重なってくる演出が崩れる（KV がそのまま流れていく）。
   TOP では html を visible に戻し、横方向のはみ出しは正本と同じく body の overflow-x: hidden で抑える。 */
html { overflow-x: visible; }
/* CASE STUDY の余白（公開前の最終調整・#359。正本 074f668 からの意図的な変更）。PC の2カラム（1100px より広い幅）だけ。
   見出しと写真の間が 125px（1440）〜156px（1280）と間延びしていた。原因は見出しの下の 72px に加えて、
   .feat の align-items: center で、右の事例テキスト（約546px）より低い写真が上下中央へ下がっていたこと。
   写真の上端を右の「FEATURED CASE」の行にそろえ（上端合わせ）、見出しの下を 72px → 64px にする
   （見出しから写真まで 64px。1440 で約49%・1280 で約59% 縮む）。1100px 以下（1カラム）と SP は変えない。
   「min-width: 1101px」ではなく max-width: 1100px の否定で書く（ズームなどで幅が 1100.5px のような端数になると、
   どちらの条件にも当たらず元の余白に戻るため。2カラムに切り替わる max-width: 1100px の規則とちょうど補い合う）。 */
/* リード文の追加（同 #359）: 見出し・リード文は BUSINESS と同じ .sh .lede（文字・行間・最大幅・見出しとの間隔 24px）。
   リード文の下は 64px → 56px（CONTACT の .sh と同じ値）。BUSINESS（72px）より詰めるのは、下に来るのが細い線と小さな丸ではなく
   重い写真のため。1100px 以下（タブレット 72px・SP 44px）は BUSINESS と同じ既定値のまま。 */
@media not all and (max-width: 1100px) { #cases .sh { margin-bottom: 56px; } #cases .feat { align-items: start; } }
