/* ==========================================================================
   三友協栄株式会社 — site styles
   Dark stage for storytelling, light zone for company information.
   One warm accent (champagne → amber → coral). Quiet, slow motion.
   ========================================================================== */

:root {
  /* dark stage */
  --black: #000;
  --tile: #141416;
  --tile-2: #1c1c1f;
  --tile-3: #26262a;
  --glass: rgba(60, 60, 64, .62);
  --on-dark: #f5f5f7;
  --on-dark-2: #a8a8ad;
  --on-dark-3: #86868b;
  --dark-line: rgba(255, 255, 255, .12);

  /* light zone */
  --white: #fff;
  --alt: #f5f5f7;
  --alt-2: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;

  /* accent */
  --amber: #ffb869;
  --amber-ink: #a9501a;
  --c1: #ffd99a;
  --c2: #ff9f5a;
  --c3: #ff6b6b;
  --grad: linear-gradient(90deg, #ffe1a6 0%, #ffb061 45%, #ff6f61 100%);
  --ok: #7fd99a;
  --warn: #ffd166;
  --risk: #ff9f45;
  --bad: #ff6b6b;

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --r: 18px;
  --r-lg: 28px;
  --gutter: max(16px, calc((100vw - 1200px) / 2));
  --gutter-wide: max(16px, calc((100vw - 1440px) / 2));
  --nav-h: 52px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .10);
}

/* ---------- base ---------- */
/* the page commits to its own look: a dark stage above, a light zone below */
:root { color-scheme: dark; }
.light-zone, .footer { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--black); color: var(--on-dark);
  font: 400 16px/1.8 var(--font-text); letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; line-break: strict;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
::selection { background: #ffcf99; color: #1d1d1f; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; padding: 0; }
.wrap { width: 100%; padding: 0 var(--gutter); }
.br-sp, .show-s { display: none; }
.nw { white-space: nowrap; }

/* ---------- type ---------- */
.t-hero, .t-headline, .t-title, .t-sub, .t-eyebrow { font-family: var(--font); font-feature-settings: "palt" 1; word-break: auto-phrase; text-wrap: balance; margin: 0; }
.t-hero { font-weight: 700; font-size: clamp(40px, 6.4vw, 88px); line-height: 1.16; letter-spacing: .01em; }
.t-headline { font-weight: 700; font-size: clamp(34px, 4.9vw, 70px); line-height: 1.22; letter-spacing: .01em; }
.t-title { font-weight: 700; font-size: clamp(28px, 3.5vw, 50px); line-height: 1.28; letter-spacing: .01em; }
.t-sub { font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.42; letter-spacing: .02em; }
.t-eyebrow { font-weight: 700; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.4; letter-spacing: .06em; color: var(--amber); }
.t-body-lg { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.9; letter-spacing: .03em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 24px; border-radius: 980px; border: 1px solid transparent;
  background: var(--on-dark); color: var(--ink); font: 500 16px/1.2 var(--font-text); letter-spacing: .04em;
  white-space: nowrap; transition: background .25s, color .25s, transform .3s var(--ease), opacity .2s;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 30px; padding: 5px 15px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 14px 34px; font-size: 17px; }
.is-light .btn, .light-zone .btn { background: var(--ink); color: #fff; }
.is-light .btn:hover, .light-zone .btn:hover { background: #000; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link { color: var(--amber); display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.light-zone .link { color: var(--amber-ink); }
.link .chev { transition: transform .3s var(--ease); }
.link:hover .chev { transform: translateX(3px); }

/* ---------- brand mark (three rings) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--font); letter-spacing: .08em; }
.mark { width: 22px; height: 22px; flex: none; }
.mark circle { mix-blend-mode: screen; }
.is-light .mark circle, .light-zone .mark circle, .footer .mark circle { mix-blend-mode: multiply; }

/* ---------- global nav ---------- */
.gnav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  background: rgba(18, 18, 20, .78); color: var(--on-dark);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  transition: background .4s, color .4s;
}
.gnav-in { height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter-wide); }
.gnav-links { display: flex; gap: 28px; margin-left: 18px; }
.gnav-links a { font-size: 12.5px; letter-spacing: .06em; opacity: .78; transition: opacity .2s; }
.gnav-links a:hover { opacity: 1; }
.gnav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.gnav-burger { display: none; width: 36px; height: 36px; border: 0; background: transparent; position: relative; padding: 0; }
.gnav-burger span { position: absolute; left: 9px; right: 9px; height: 1.2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.gnav-burger span:nth-child(1) { top: 14px; }
.gnav-burger span:nth-child(2) { top: 21px; }
.nav-open .gnav-burger span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-open .gnav-burger span:nth-child(2) { top: 18px; transform: rotate(-45deg); }
.gnav.is-light { background: rgba(251, 251, 253, .82); color: var(--ink); }
.mobile-menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 59; background: rgba(14, 14, 16, .97); color: var(--on-dark);
  padding: 28px 32px calc(44px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.nav-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu { background: #0e0e10; }
.gnav.is-light + .mobile-menu { background: #fbfbfd; color: var(--ink); }
.gnav.is-light + .mobile-menu .btn { background: var(--ink); color: #fff; }
.mobile-menu a { font: 700 26px/1.9 var(--font); letter-spacing: .04em; }
.mobile-menu .btn { margin-top: auto; align-self: flex-start; font-size: 16px; line-height: 1.2; }

/* local sticky sub-nav */
.lnav {
  position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 50; height: 52px; color: var(--on-dark);
  background: rgba(18, 18, 20, .66); border-bottom: 1px solid var(--dark-line);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  transition: background .4s, color .4s, border-color .4s;
}
.lnav-in { height: 100%; display: flex; align-items: center; gap: 22px; padding: 0 var(--gutter-wide); }
.lnav-title { font: 700 19px/1 var(--font); letter-spacing: .06em; }
.lnav-links { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.lnav-links a:not(.btn) { font-size: 12.5px; letter-spacing: .06em; opacity: .78; position: relative; }
.lnav-links a:not(.btn):hover, .lnav-links a.is-on { opacity: 1; }
.lnav-links a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 1px; background: currentColor; }
.lnav.is-light { background: rgba(251, 251, 253, .78); color: var(--ink); border-color: rgba(0, 0, 0, .08); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.headline-block { text-align: center; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.headline-block .t-eyebrow { margin-bottom: 14px; }
.headline-block p.t-body-lg { max-width: 700px; margin: 26px auto 0; color: var(--on-dark-2); }
.headline-block p.t-body-lg b { color: var(--on-dark); font-weight: 700; }
.light-zone .headline-block p.t-body-lg { color: var(--muted); }
.light-zone .headline-block p.t-body-lg b { color: var(--ink); }
.light-zone .t-eyebrow { color: var(--amber-ink); }

/* ---------- hero ---------- */
/* the local nav sits in flow above the hero, so only the fixed global nav needs clearing here */
.hero { position: relative; padding-top: calc(var(--nav-h) + 60px); text-align: center; overflow: hidden; }
.hero-kicker { color: var(--on-dark); margin-bottom: 10px; }
.hero-lead { max-width: 680px; margin: 22px auto 0; padding: 0 16px; color: var(--on-dark-2); }
/* the photo's upper half is pure black, so the stage slides up under the copy */
.hero-copy { position: relative; z-index: 2; }
.hero-stage { position: relative; z-index: 1; max-width: 1240px; aspect-ratio: 16 / 8.6; margin: clamp(-150px, -9vw, -60px) auto 0; }
.hero-img {
  position: absolute; top: 0; bottom: 0; left: -10%; width: 86%; overflow: hidden;
  -webkit-mask-image: radial-gradient(68% 70% at 50% 58%, #000 50%, transparent 86%);
  mask-image: radial-gradient(68% 70% at 50% 58%, #000 50%, transparent 86%);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; will-change: transform; }

/* glass "flow" card */
.flow-card {
  position: absolute; right: 2%; bottom: 7%; width: min(500px, 43%); border-radius: 22px; overflow: hidden; text-align: left;
  background: rgba(14, 14, 18, .58); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: saturate(1.6) blur(26px); -webkit-backdrop-filter: saturate(1.6) blur(26px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55); will-change: transform;
}
.fc-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 12px; font: 700 13.5px/1 var(--font-text); letter-spacing: .06em; }
.fc-top span { display: inline-flex; align-items: center; gap: 8px; }
.fc-top .fc-step { color: var(--on-dark-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.fc-row { position: relative; display: grid; grid-template-columns: 34px 1.05fr 1.6fr 56px; gap: 10px; align-items: center; padding: 12px 22px; border-top: 1px solid rgba(255, 255, 255, .07); font: 500 13px/1.3 var(--font-text); color: var(--on-dark-3); transition: color .5s, background .5s; }
.fc-row.hd { padding-top: 6px; padding-bottom: 8px; font-size: 11px; letter-spacing: .08em; border-top: 0; color: #6e6e73; }
.fc-row .no { font-variant-numeric: tabular-nums; }
.fc-row b { color: var(--on-dark-2); font-weight: 700; transition: color .5s; }
.fc-row .st { justify-self: end; font-size: 11.5px; letter-spacing: .04em; }
.fc-row .bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.fc-row.is-on { background: rgba(255, 255, 255, .05); color: var(--on-dark-2); }
.fc-row.is-on b { color: var(--on-dark); }
.fc-row.is-on .st { color: var(--amber); }
.fc-row.is-done .st { color: var(--ok); }
.fc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px; background: linear-gradient(90deg, rgba(255, 176, 97, .26), rgba(255, 111, 97, .22)); font: 700 13px/1.3 var(--font-text); letter-spacing: .04em; color: #fff; }
.fc-bar span:last-child { white-space: nowrap; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c2); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(255, 159, 90, .55); animation: pulse 1.9s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 159, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 159, 90, 0); } }

/* bottom ribbon (visible while the hero is on screen) */
.ribbon {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(24, 24, 27, .74); border-top: 1px solid var(--dark-line);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  transition: transform .55s var(--ease), opacity .4s;
}
.ribbon.is-away { transform: translateY(110%); opacity: 0; }
.ribbon-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter-wide) calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--on-dark-2); }
.ribbon-in > span { display: inline-flex; align-items: center; gap: 10px; }
.ribbon-in b { color: var(--on-dark); font-weight: 700; }

/* ---------- highlights gallery ---------- */
.gallery { position: relative; margin-top: 60px; }
.gallery-track { position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); }
.gallery-track::-webkit-scrollbar { display: none; }
.g-card {
  position: relative; flex: none; width: min(1080px, 84vw); height: min(660px, 74vh); min-height: 480px;
  border-radius: var(--r-lg); background: var(--tile); overflow: hidden; scroll-snap-align: center; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}
.g-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 85% 60%, var(--glow, rgba(255, 159, 90, .22)), transparent 70%); }
.g-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; z-index: 1; }
.g-kicker { font: 700 14px/1.2 var(--font-text); letter-spacing: .08em; color: var(--amber); }
.g-copy .t-sub { max-width: 440px; }
.g-copy p.g-desc { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--on-dark-2); max-width: 440px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { font: 500 12.5px/1 var(--font-text); letter-spacing: .04em; padding: 9px 13px; border-radius: 980px; background: rgba(255, 255, 255, .08); color: var(--on-dark-2); }
.g-info { margin-top: auto; display: flex; gap: 32px; flex-wrap: wrap; }
.g-info small { display: block; font-size: 12px; letter-spacing: .06em; color: var(--on-dark-3); margin-bottom: 6px; }
.g-info strong { font: 700 17px/1.4 var(--font); letter-spacing: .03em; }
.g-art { position: relative; padding: 28px 28px 28px 0; }
.g-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; transition: transform 1.2s var(--ease-out); }
.g-card:hover .g-art img { transform: scale(1.03); }
.g-num { position: absolute; right: clamp(44px, 4vw, 60px); top: clamp(44px, 4vw, 60px); z-index: 2; text-align: right; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.g-num b { display: block; font: 700 clamp(46px, 5vw, 72px)/1 var(--font); letter-spacing: -.02em; }
.g-num span { font-size: 13px; color: var(--on-dark-2); letter-spacing: .08em; }
.gallery-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.dots { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px; border-radius: 980px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.dots button { width: 8px; height: 8px; border-radius: 980px; border: 0; padding: 0; background: rgba(255, 255, 255, .42); position: relative; overflow: hidden; transition: width .5s var(--ease); }
.dots button.is-on { width: 48px; }
.dots button i { position: absolute; inset: 0; background: var(--on-dark); transform-origin: left; transform: scaleX(0); }
.dots button.is-on i { transform: scaleX(var(--p, 0)); }
.round-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--glass); color: var(--on-dark); display: grid; place-items: center; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: background .3s; }
.round-btn:hover { background: rgba(90, 90, 96, .8); }
.round-btn svg { width: 18px; height: 18px; }

/* ---------- product viewer ---------- */
.viewer { margin-top: 60px; padding: 0 var(--gutter-wide); }
.viewer-stage { position: relative; height: min(80vh, 760px); min-height: 640px; border-radius: var(--r-lg); background: var(--tile); overflow: hidden; }
.viewer-pills { position: absolute; left: clamp(16px, 3vw, 44px); top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-height: calc(100% - 48px); overflow-y: auto; scrollbar-width: none; padding: 4px; }
.viewer-pills::-webkit-scrollbar { display: none; }
.pill {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 48px; max-width: min(380px, 72vw);
  padding: 11px 20px 11px 12px; border: 0; border-radius: 26px; text-align: left;
  background: var(--glass); color: var(--on-dark); font: 700 15.5px/1.3 var(--font-text); letter-spacing: .04em;
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  transition: background .35s, color .35s;
}
.pill:hover { background: rgba(84, 84, 90, .82); }
.pill.is-on:hover { background: var(--on-dark); }
.pill { cursor: pointer; }
.pill .row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; white-space: nowrap; }
.pill .row:focus-visible { outline-offset: 6px; border-radius: 980px; }
.pill .plus { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; transition: transform .45s var(--ease); }
.pill .plus::before { content: "+"; font: 500 17px/1 var(--font-text); margin-top: -2px; }
.pill .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.pill .more > div { overflow: hidden; }
.pill .more p { margin: 10px 0 2px 36px; font: 400 14px/1.75 var(--font-text); color: var(--ink-2); }
.pill .more a { display: inline-flex; gap: 4px; margin: 6px 0 2px 36px; font: 500 14px/1.4 var(--font-text); color: var(--amber-ink); }
.pill.is-on { background: var(--on-dark); color: var(--ink); border-radius: 22px; }
.pill.is-on .plus { transform: rotate(45deg); }
.pill.is-on .more { grid-template-rows: 1fr; }
.viewer-art { position: absolute; inset: 0; left: 24%; }
.va { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease-out); }
.va.is-on { opacity: 1; transform: none; }
.va img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%); mask-image: linear-gradient(to right, transparent 0%, #000 34%); }
.va-label { position: absolute; right: 4%; bottom: 5%; z-index: 1; text-align: right; text-shadow: 0 4px 30px rgba(0, 0, 0, .75); }
.va-label b { display: block; font: 700 clamp(30px, 3.8vw, 54px)/1.15 var(--font); letter-spacing: .02em; }
.va-label span { font-size: 14px; letter-spacing: .08em; color: var(--on-dark-2); }

/* ---------- scroll-zoom: inspection sheet ---------- */
.zoom { position: relative; height: 260vh; }
.zoom-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; padding-top: 72px; }
.zoom-frame { width: min(1100px, 92vw, calc((100vh - 210px) * 1.7)); aspect-ratio: 16 / 9.4; border-radius: 22px; border: 10px solid #2a2a2e; background: #0b0b0d; overflow: hidden; will-change: transform; box-shadow: 0 40px 120px rgba(255, 159, 90, .14); }
.zf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 700 14px/1 var(--font-text); letter-spacing: .06em; }
.zf-head span { color: var(--on-dark-3); font-weight: 400; font-size: 12.5px; }
.zoom-frame table { width: 100%; border-collapse: collapse; font: 500 clamp(9px, 1vw, 13px)/1.2 var(--font-text); letter-spacing: .02em; }
.zoom-frame th { text-align: left; color: #6e6e73; font-weight: 500; padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; }
.zoom-frame td { padding: clamp(6px, .8vw, 10.5px) 16px; color: #c7c7cc; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.zoom-frame td.mono { font-family: var(--font-mono); letter-spacing: 0; color: var(--on-dark-3); }
.zoom-frame td[class^="rk-"] { font-weight: 700; }
.zoom-frame td.rk-S { color: var(--c1); } .zoom-frame td.rk-A { color: var(--ok); } .zoom-frame td.rk-B { color: var(--warn); } .zoom-frame td.rk-C { color: var(--risk); } .zoom-frame td.rk-J { color: var(--bad); }
.zoom-copy { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; padding: 0 16px; pointer-events: none; }
.zoom-copy .t-sub { text-shadow: 0 4px 40px rgba(0, 0, 0, .85); }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 32px; max-width: 980px; margin: 72px auto 0; padding: 0 16px; text-align: center; }
.nb small { display: block; font: 700 14px/1.4 var(--font-text); letter-spacing: .08em; color: var(--on-dark-2); margin-bottom: 6px; }
.nb b { display: block; font: 700 clamp(40px, 4.8vw, 64px)/1.1 var(--font); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.nb b em { font-style: normal; font-size: .5em; letter-spacing: .04em; margin-left: .08em; }
.nb > span { display: block; font-size: 14px; line-height: 1.6; color: var(--on-dark-3); margin-top: 8px; }

/* ---------- grade tiles ---------- */
.grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 64px; padding: 0 var(--gutter); }
.grade { position: relative; border-radius: var(--r-lg); background: var(--tile); padding: 28px 24px; min-height: 330px; display: flex; flex-direction: column; color: var(--on-dark); transition: transform .5s var(--ease), background .4s; }
.grade:hover { transform: translateY(-6px); background: var(--tile-2); }
.grade .gl { font: 700 clamp(64px, 6.4vw, 96px)/1 var(--font); letter-spacing: -.02em; }
.grade .gl.grad-text { display: inline-block; align-self: flex-start; }
.grade .gn { font: 700 18px/1.3 var(--font); letter-spacing: .06em; margin-top: 10px; }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin-top: 18px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease-out); }
.grades.is-in .meter i { transform: scaleX(1); }
.grade dl { margin: 18px 0 0; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--on-dark-3); }
.grade dl div { display: flex; gap: 8px; }
.grade dt { flex: none; }
.grade dd { margin: 0; color: var(--on-dark-2); font-weight: 500; }
.grade p { margin: auto 0 0; padding-top: 18px; font-size: 14px; line-height: 1.8; color: var(--on-dark-2); }
.grade-note { text-align: center; margin: 28px 16px 0; font-size: 13px; color: var(--on-dark-3); }

/* ---------- bento (flow) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 64px; padding: 0 var(--gutter); }
.bento > article { position: relative; border-radius: var(--r-lg); background: var(--tile); padding: clamp(26px, 3vw, 40px); min-height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.b-4 { grid-column: span 4; } .b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; }
.bento .step { font: 700 13.5px/1 var(--font-text); letter-spacing: .08em; color: var(--on-dark-3); }
.bento h3 { font: 700 clamp(24px, 2.4vw, 32px)/1.35 var(--font); letter-spacing: .02em; margin: 16px 0 12px; font-feature-settings: "palt" 1; word-break: auto-phrase; }
.bento p { margin: 0; max-width: 470px; font-size: 15.5px; line-height: 1.9; color: var(--on-dark-2); }
.bento p b { color: var(--on-dark); font-weight: 700; }
.bento .chips { margin-top: auto; padding-top: 24px; }
.b-big { margin-top: auto; font: 700 clamp(64px, 7vw, 112px)/1 var(--font); letter-spacing: -.02em; }

/* ---------- light zone ---------- */
.light-zone { background: var(--alt); color: var(--ink); }
.light-zone .section { padding: clamp(96px, 11vw, 150px) 0; }
.light-zone .section + .section { padding-top: 0; }

/* efforts */
.efforts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 60px; padding: 0 var(--gutter); }
.effort { background: var(--white); border-radius: var(--r-lg); padding: 30px 28px; min-height: 300px; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.effort:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.effort h3 { margin: 0; font: 700 21px/1.4 var(--font); letter-spacing: .04em; }
.effort .en { font: 700 clamp(48px, 4.6vw, 64px)/1 var(--font); letter-spacing: -.02em; margin: auto 0 14px; background: linear-gradient(90deg, #f0a25a, #e8664f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.effort p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--muted); min-height: 5.55em; }

/* company profile */
.company { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; margin-top: 60px; padding: 0 var(--gutter); }
.profile { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 48px); }
.profile dl { margin: 0; }
.profile dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--alt-2); }
.profile dl > div:first-child { padding-top: 4px; }
.profile dl > div:last-child { border-bottom: 0; padding-bottom: 4px; }
.profile dt { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.profile dd { margin: 0; font-size: 16px; line-height: 1.8; }
.profile dd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.profile dd li { position: relative; padding-left: 16px; }
.profile dd li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--c2); }
.profile .num { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.access { background: var(--white); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.map { position: relative; aspect-ratio: 4 / 3; background: #ecebe6; overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: absolute; left: 52%; top: 46%; transform: translate(-50%, -100%); }
.map .pin i { display: block; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #ffb061, #ff6f61); box-shadow: 0 6px 16px rgba(232, 102, 79, .45); }
.map .pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 34px; height: 12px; margin: 4px 0 0 -17px; border-radius: 50%; background: rgba(232, 102, 79, .22); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.map-tag { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 980px; background: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.access-body { padding: 28px clamp(24px, 3vw, 36px) 32px; display: flex; flex-direction: column; gap: 10px; }
.access-body h3 { margin: 0; font: 700 20px/1.4 var(--font); letter-spacing: .06em; }
.access-body p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.8; }
.access-body .link { font-size: 15px; }

/* CTA + contact */
.cta { text-align: center; }
.cta > p { max-width: 600px; margin: 22px auto 0; padding: 0 16px; font-size: 17px; color: var(--muted); }
.contact-card { max-width: 860px; margin: 52px auto 0; background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 52px); text-align: left; }
.contact-card fieldset { border: 0; margin: 0 0 24px; padding: 0; }
.contact-card legend, .field label { display: block; font-size: 14px; font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.req, .opt { font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-left: 8px; padding: 2px 8px; border-radius: 980px; vertical-align: 1px; }
.req { background: #fde8e1; color: #b3401f; }
.opt { background: var(--alt); color: var(--muted); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 980px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.topics input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.topics input:focus-visible + span { outline: 2px solid var(--amber-ink); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 13px 15px; font-size: 16px; line-height: 1.6; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber-ink); box-shadow: 0 0 0 4px rgba(255, 159, 90, .18); }
.field.has-error input, .field.has-error textarea { border-color: #d7462b; }
.field .err { font-size: 12.5px; color: #c23a20; margin-top: 6px; min-height: 0; }
.form-foot { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.form-foot small { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.form-notice { width: 100%; padding: 14px 18px; border-radius: 14px; background: #fff4e5; color: #8a4a12; font-size: 14px; line-height: 1.7; text-align: center; }
.form-sent { width: 100%; padding: 14px 18px; border-radius: 14px; background: #eaf7ee; color: #1d6b3a; font-size: 14px; line-height: 1.7; text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--alt); color: var(--muted); font-size: 12px; line-height: 1.7; padding: 0 var(--gutter); }
.footer-in { border-top: 1px solid var(--line); }
.footer-note { padding: 18px 0; border-bottom: 1px solid var(--line); }
.footer-note p { margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 24px 0 12px; }
.footer-cols h5 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.footer-cols a { display: block; padding: 3px 0; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-cols address { font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 26px; border-top: 1px solid var(--line); margin-top: 12px; }
.footer-bottom .brand { font-size: 14px; color: var(--ink); gap: 8px; }
.footer-bottom .brand .mark { width: 18px; height: 18px; }

/* no scroll scrubbing (reduced motion or scripts unavailable): lay the sheet out statically */
.no-scrub .zoom { height: auto; }
.no-scrub .zoom-pin { position: relative; height: auto; padding: 72px 0 96px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.no-scrub .zoom-copy { position: static; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
.js .rv.rv-in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .1s; } .js .rv-d2 { transition-delay: .2s; } .js .rv-d3 { transition-delay: .3s; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .grades { grid-template-columns: repeat(5, minmax(210px, 1fr)); overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 10px; }
  .grades::-webkit-scrollbar { display: none; }
}
@media (max-width: 1024px) {
  .gnav-links { display: none; }
  .gnav-burger { display: block; }
  .gnav-actions .btn { display: none; }
  .lnav-links a:not(.btn) { display: none; }
  .g-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(220px, 1fr); height: auto; min-height: 620px; }
  .g-art { padding: 0 24px 24px; }
  .g-num { top: 28px; right: 28px; }
  .g-num b { font-size: 40px; }
  .viewer-pills { top: 24px; left: 16px; right: 16px; transform: none; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; max-height: none; padding: 2px; }
  .pill { flex: none; min-height: 42px; padding: 8px 15px 8px 10px; font-size: 14.5px; }
  .pill .plus { width: 22px; height: 22px; }
  .pill .more { display: none; }
  .viewer-art { left: 0; top: 0; }
  .va img { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%); mask-image: linear-gradient(to bottom, transparent 0%, #000 38%); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-4, .b-2, .b-3 { grid-column: span 6; }
  .bento > article { min-height: 290px; }
  .efforts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .br-sp, .show-s { display: inline; }
  .br-pc, .hide-s { display: none; }
  .lnav-title { font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-stage { aspect-ratio: auto; margin-top: -40px; }
  .hero-img { position: relative; left: auto; width: 100%; aspect-ratio: 4 / 2.8; -webkit-mask-image: radial-gradient(80% 70% at 50% 56%, #000 50%, transparent 88%); mask-image: radial-gradient(80% 70% at 50% 56%, #000 50%, transparent 88%); }
  .hero-img img { object-position: 50% 82%; }
  .flow-card { position: relative; right: auto; bottom: auto; width: calc(100% - 32px); margin: -40px auto 0; }
  .fc-row { grid-template-columns: 26px 1fr 52px; padding: 11px 16px; }
  .fc-row > span:nth-child(3) { display: none; }
  .fc-top, .fc-bar { padding-left: 16px; padding-right: 16px; }
  .ribbon-in { font-size: 12.5px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .ribbon .hide-s { display: none; }
  .g-card { width: 88vw; min-height: 600px; }
  .g-num { display: none; }
  .g-copy { padding: 26px 22px 18px; gap: 12px; }
  .g-art { padding: 0 16px 16px; }
  .g-info { gap: 22px; }
  .viewer-stage { min-height: 540px; height: 560px; }
  .va-label { right: 6%; bottom: 6%; }
  .numbers { gap: 44px 16px; }
  .zoom { height: 200vh; }
  .zoom-frame { aspect-ratio: 4 / 5; }
  .zoom-frame th:nth-child(3), .zoom-frame td:nth-child(3), .zoom-frame th:nth-child(5), .zoom-frame td:nth-child(5), .zoom-frame th:nth-child(7), .zoom-frame td:nth-child(7) { display: none; }
  .zoom-frame th, .zoom-frame td { padding-left: 10px; padding-right: 10px; }
  .zoom-frame table { font-size: 11px; }
  .efforts { grid-template-columns: minmax(0, 1fr); }
  .effort { min-height: 0; }
  .effort .en { margin: 22px 0 10px; }
  .profile dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
