/* ==========================================================================
   J-NEXTIS — 日本次世代情報システム株式会社
   ※ GSAP が transform を扱う要素では、CSS のホバー効果は個別プロパティ translate で表現する
   ========================================================================== */

:root {
  --g-950: #06221a;
  --g-900: #0b3d2c;
  --g-800: #0f4d38;
  --g-700: #11643f;
  --g-600: #12804f;
  --g-500: #149a64;
  --g-400: #1fb873; /* ロゴの「伸びる柱」 */
  --g-300: #5be3a4;
  --g-100: #dff4ea;
  --g-50:  #f2faf6;

  --ink: #0e1c16;
  --ink-2: #3d4d46;
  --ink-3: #5f6e67;
  --line: #dfe8e3;
  --danger: #b42318;
  --bg: #ffffff;
  --bg-soft: #f5f9f7;

  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-en: "Manrope", var(--font-ja);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 80px;

}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
sup { font-size: .6em; line-height: 0; }
::selection { background: var(--g-500); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 600; padding: 10px 16px; background: var(--g-900); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--g-500); outline-offset: 3px; border-radius: 4px; }

/* 見出しは文節で折り返す（対応ブラウザのみ） */
h1, h2, h3, .statement, .contact__title { word-break: auto-phrase; }
.nowrap { display: inline-block; }

.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } }

/* Lenis（慣性スクロール） */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  height: 58px; padding: 0 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .08em;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), translate .4s var(--ease), box-shadow .4s var(--ease), opacity .3s;
  white-space: nowrap;
}
.btn--sm { height: 46px; padding: 0 22px; font-size: 14px; }
.btn--primary { background: var(--g-600); color: #fff; box-shadow: 0 10px 30px -10px rgba(18,128,79,.6); }
.btn--primary:hover { background: var(--g-800); translate: 0 -2px; box-shadow: 0 16px 40px -12px rgba(11,61,44,.6); }
.btn--ghost { border: 1px solid rgba(14,28,22,.18); background: rgba(255,255,255,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--g-600); color: var(--g-700); }
.btn__arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Loader / Curtain / Progress ---------- */
.loader { display: none; position: fixed; inset: 0; z-index: 400; }
.intro .loader { display: block; }
.loader__panel { position: absolute; inset: 0; }
.loader__panel--green { background: linear-gradient(160deg, var(--g-700), var(--g-900)); }
.loader__panel--white { display: grid; place-items: center; background: linear-gradient(180deg, #fff, var(--g-50)); }
.loader__inner { display: grid; justify-items: center; gap: 18px; }
/* ロゴ（縦組み）と同じ比率：マークの高さ 100 に対し、文字の塊の幅 155.76 */
.loader__mark { width: 101px; height: 132px; overflow: visible; }
.loader__pl { fill: var(--g-900); }
.loader__br { fill: none; stroke: var(--g-600); stroke-width: 4.4; }
.loader__pr { fill: var(--g-400); }
.loader__type { width: 175px; height: auto; margin-top: 15px; overflow: visible; }
.loader__l, .loader__ja { fill: var(--g-900); }
.loader__bar { width: 180px; height: 2px; margin-top: 10px; border-radius: 2px; background: var(--g-100); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--g-500); transform: scaleX(0); transform-origin: left; }

.curtain { position: fixed; inset: 0; z-index: 390; background: linear-gradient(160deg, var(--g-700), var(--g-950)); transform: scaleY(0); transform-origin: 50% 100%; pointer-events: none; }
.curtain-in .curtain { transform: scaleY(1); }

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 160; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--g-500), var(--g-300)); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* motion.js が動く前の初期状態。JS が動かなかった場合は数秒で自動的に表示・解除する */
.motion [data-hero] { opacity: 0; }
html.motion:not(.motion-ready) [data-hero] { animation: nx-in .6s 2.6s forwards; animation-play-state: running !important; }
html.intro:not(.motion-ready) .loader { animation: nx-out .5s 2.6s forwards; animation-play-state: running !important; }
html.curtain-in:not(.motion-ready) .curtain { animation: nx-out .4s 1.2s forwards; animation-play-state: running !important; }
@keyframes nx-in { to { opacity: 1; } }
@keyframes nx-out { to { opacity: 0; visibility: hidden; } }

/* 「動きを止める」ボタンで、自動再生のループをすべて一時停止 */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

/* 文字分割（motion.js） */
.char { display: inline; }
.split--rise { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.split--rise .char, .split--fade .char, .hero__title .char { display: inline-block; }
.hero__title em.is-split { background: none; color: inherit; }
.hero__title em .char {
  background: linear-gradient(100deg, var(--g-600) 10%, var(--g-500) 50%, #2cc584 90%);
  background-size: var(--bgs, 100%) 100%; background-position: var(--bgp, 0%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* カーソル（マウス操作時のみ motion.js が生成） */
.cursor { position: fixed; left: 0; top: 0; z-index: 500; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor i { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(18,128,79,.5); transition: transform .4s var(--ease), background-color .4s, border-color .4s; }
.cursor.is-link i { transform: scale(1.75); background: rgba(20,154,100,.1); border-color: transparent; }
.cursor.is-dark i { border-color: rgba(91,227,164,.6); }
.cursor.is-dark.is-link i { background: rgba(91,227,164,.16); border-color: transparent; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header.is-scrolled {
  height: 72px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  height: 100%; max-width: calc(1360px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* ロゴ（brand/README.md のガイドラインに従う。社名入りの横組みはマークの高さ 48px 以上） */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: auto; height: 56px; translate: 0 -3px; /* 右の柱が上に出る分、見た目の中心を合わせる */ }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; }
.nav__list a {
  position: relative; font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--ink);
  padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--g-500);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__list a.is-active { color: var(--g-700); }

.menu { display: none; width: 48px; height: 48px; position: relative; border-radius: 50%; background: var(--g-900); }
.menu span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu span:nth-child(1) { top: 20px; }
.menu span:nth-child(2) { top: 27px; }
.menu[aria-expanded="true"] span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .menu { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px;
    padding: 100px var(--gutter) 40px;
    background: #fff;
    opacity: 0; visibility: hidden;
    clip-path: circle(0% at calc(100% - var(--gutter) - 24px) 40px);
    transition: clip-path .8s var(--ease), opacity .4s, visibility .8s;
  }
  .nav.is-open { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 40px); }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a { color: var(--ink); font-size: 26px; font-weight: 700; }
  .nav__list a.is-active { color: var(--g-600); }
  .nav__cta { height: 56px; padding: 0 28px; font-size: 15px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .brand { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 48px) 0 36px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(91,227,164,.16), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--g-50) 100%);
}
.hero__structure { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 設計図の方眼 */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(17,100,63,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,100,63,.09) 1px, transparent 1px),
    linear-gradient(rgba(17,100,63,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,100,63,.04) 1px, transparent 1px);
  background-size: 112px 112px, 112px 112px, 28px 28px, 28px 28px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 52% 62% at 78% 48%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 52% 62% at 78% 48%, #000 0%, transparent 72%);
}
.hero__glow {
  position: absolute; right: -10vw; top: 50%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(20,154,100,.12) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; margin-block: auto; display: grid; align-items: center; gap: 48px; }
@media (min-width: 1200px) { .hero__inner { grid-template-columns: minmax(0, 1fr) 380px; } }
.hero__copy { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--g-700);
  padding: 8px 16px 8px 12px; border: 1px solid rgba(17,100,63,.2); border-radius: 999px; background: rgba(255,255,255,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.eyebrow__text { white-space: nowrap; }
@media (max-width: 479px) {
  .eyebrow { font-size: 11px; letter-spacing: .14em; }
  .eyebrow__jp { display: none; }
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-500); box-shadow: 0 0 0 4px rgba(20,154,100,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(20,154,100,.18); } 50% { box-shadow: 0 0 0 8px rgba(20,154,100,0); } }

.hero__title {
  margin-top: 28px;
  font-size: clamp(36px, min(10.6vw, 12vh), 112px);
  font-weight: 700; line-height: 1.18; letter-spacing: .02em;
  color: var(--g-950);
}
@media (min-width: 1200px) { .hero__title { font-size: min(6.3vw, 11vh, 92px); } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--g-600) 10%, var(--g-500) 50%, #2cc584 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 28px; max-width: 640px; font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-2); line-height: 2.1; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta {
  position: relative; z-index: 1;
  margin-top: 56px;
  display: flex; align-items: flex-end; gap: 16px 24px;
}
.meta { display: flex; flex-wrap: wrap; gap: 16px 56px; }
.meta div { border-left: 1px solid rgba(17,100,63,.25); padding-left: 16px; }
.meta dt { font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--g-600); font-weight: 600; }
.meta dd { margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--ink); }

.motion-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 56px;
  padding: 7px 14px; border: 1px solid rgba(17,100,63,.22); border-radius: 999px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--g-800);
  transition: border-color .3s, background-color .3s;
}
.motion-toggle:hover { border-color: var(--g-500); background: #fff; }
.motion-toggle__icon { display: inline-flex; align-items: center; gap: 2px; width: 10px; height: 10px; }
.motion-toggle__icon i { width: 3px; height: 10px; border-radius: 1px; background: currentColor; }
.motion-toggle[data-paused="true"] .motion-toggle__icon i:first-child { width: 0; height: 0; border-radius: 0; background: none; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.motion-toggle[data-paused="true"] .motion-toggle__icon i:last-child { display: none; }

/* 行の高さに影響しないよう絶対配置（右下） */
.scroll { position: absolute; right: var(--gutter); bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-en); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--g-700); }
.scroll span { writing-mode: vertical-rl; }
.scroll i { position: relative; width: 1px; height: 48px; background: rgba(17,100,63,.2); overflow: hidden; }
.scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--g-600); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }
@media (max-height: 760px) { .scroll { display: none; } .motion-toggle { margin-right: 0; } }

@media (max-width: 767px) {
  .scroll { display: none; }
  .hero__actions .btn { width: 100%; }
  .meta { gap: 14px 28px; }
  .hero__meta { flex-wrap: wrap; }
  .motion-toggle { margin: 0; }
}

/* ---------- Hero visual（装飾） ---------- */
.hero__visual { display: none; position: relative; }
@media (min-width: 1200px) { .hero__visual { display: block; } }
.hero__tilt { position: relative; }

.scan {
  position: relative; padding: 22px; border-radius: 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 50px 100px -40px rgba(11,61,44,.38), 0 20px 40px -24px rgba(11,61,44,.18);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  animation: floatY 9s ease-in-out infinite;
}
.scan__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.scan__title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--g-900); }
.scan__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--g-500); }
.scan__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--g-700); background: var(--g-100); padding: 3px 10px; border-radius: 999px; }
.scan__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--g-500); animation: blink 1.6s infinite; }

.scan__query { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.scan__query svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.scan__typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 8.16em; letter-spacing: .02em; animation: typing 7s steps(8, end) infinite; }
.scan__caret { width: 1.5px; height: 18px; margin-left: -8px; background: var(--g-600); animation: blink 1s steps(1) infinite; }

.scan__rows { margin-top: 20px; display: grid; gap: 14px; }
.scan__rows li { display: grid; grid-template-columns: 104px 1fr 20px; align-items: center; gap: 12px; font-size: 13px; }
.scan__name { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.scan__bar { height: 6px; border-radius: 99px; background: var(--g-100); overflow: hidden; }
.scan__bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g-500), #2cc584); transform-origin: left; }
.scan__ok { width: 20px; height: 20px; }
.scan__ok circle { fill: var(--g-500); }
.scan__ok path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scan__rows li:nth-child(1) b { animation: bar1 7s var(--ease) infinite; }
.scan__rows li:nth-child(2) b { animation: bar2 7s var(--ease) infinite; }
.scan__rows li:nth-child(3) b { animation: bar3 7s var(--ease) infinite; }
.scan__rows li:nth-child(1) .scan__ok { animation: ok1 7s var(--ease) infinite; }
.scan__rows li:nth-child(2) .scan__ok { animation: ok2 7s var(--ease) infinite; }
.scan__rows li:nth-child(3) .scan__ok { animation: ok3 7s var(--ease) infinite; }

.scan__foot { position: relative; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; min-height: 46px; }
.scan__state { position: absolute; left: 0; top: 16px; height: 28px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.scan__state--run { color: var(--ink-3); opacity: 0; animation: stRun 7s infinite; }
.scan__state--done { color: var(--g-700); animation: stDone 7s var(--ease) infinite; }
.scan__state--done svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--g-600); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scan__spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--g-100); border-top-color: var(--g-500); animation: spin .8s linear infinite; }
.scan__src { margin-left: auto; font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 20px 40px -20px rgba(11,61,44,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-en); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; color: var(--g-900); white-space: nowrap;
}
.float svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--g-500); fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.float i { width: 8px; height: 8px; border-radius: 50%; background: var(--g-300); box-shadow: 0 0 0 4px rgba(91,227,164,.28); }
.float--a { top: -22px; left: -32px; animation: floatY 6s ease-in-out -2s infinite; }
.float--b { bottom: -22px; right: -14px; animation: floatY 7s ease-in-out -4s infinite; }

@keyframes floatY { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes typing { 0% { width: 0; } 9%, 90% { width: 8.16em; } 96%, 100% { width: 0; } }
@keyframes bar1 { 0%, 10% { transform: scaleX(0); } 22%, 90% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes bar2 { 0%, 22% { transform: scaleX(0); } 34%, 90% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes bar3 { 0%, 34% { transform: scaleX(0); } 46%, 90% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes ok1 { 0%, 21% { opacity: 0; transform: scale(.4); } 24%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes ok2 { 0%, 33% { opacity: 0; transform: scale(.4); } 36%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes ok3 { 0%, 45% { opacity: 0; transform: scale(.4); } 48%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes stRun { 0%, 9% { opacity: 0; } 11%, 46% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes stDone { 0%, 47% { opacity: 0; transform: translateY(4px); } 50%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 20px 0; background: #fff; color: var(--g-900); border-block: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.motion-ready .marquee__track { animation: none; }
.marquee span { display: inline-block; font-family: var(--font-en); font-weight: 700; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .06em; white-space: nowrap; }
.marquee .is-outline { color: transparent; -webkit-text-stroke: 1px var(--g-600); }
.marquee b { color: var(--g-500); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; overflow: clip; }
.section > .container { position: relative; z-index: 1; }
.section__head { margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--split { display: grid; gap: 24px 64px; align-items: end; }
@media (min-width: 900px) { .section__head--split { grid-template-columns: 1fr 1fr; } }

.bgword {
  position: absolute; top: clamp(28px, 5vw, 72px); right: -2vw; z-index: 0;
  font-family: var(--font-en); font-weight: 800; font-size: clamp(96px, 16vw, 260px); line-height: 1; letter-spacing: -.03em;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(17,100,63,.1);
  pointer-events: none; user-select: none;
}

.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--g-600);
}
.label span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; letter-spacing: 0; }
.label--light { color: var(--g-300); }

.section__title { margin-top: 18px; font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.section__title sup { font-size: .4em; vertical-align: super; }
.section__desc { color: var(--ink-2); font-size: 15.5px; line-height: 2.1; max-width: 520px; }
.section__head--stack .section__desc { margin-top: 24px; max-width: 640px; }

/* ---------- Philosophy ---------- */
.philosophy__body { display: grid; gap: 40px 80px; align-items: start; }
@media (min-width: 900px) { .philosophy__body { grid-template-columns: 1.15fr 1fr; } }
.statement { font-size: clamp(30px, 4.6vw, 60px); font-weight: 700; line-height: 1.45; letter-spacing: .03em; color: var(--g-950); }
.statement .accent { position: relative; z-index: 0; color: var(--g-600); white-space: nowrap; }
.statement .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; z-index: -1; height: .14em; background: var(--g-100);
  transform: scaleX(var(--u, 1)); transform-origin: left;
}
.philosophy__text { display: grid; gap: 1.4em; color: var(--ink-2); font-size: 16px; line-height: 2.2; padding-top: .6em; }

.values { position: relative; margin-top: clamp(64px, 9vw, 120px); display: grid; }
.values::before, .values::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.values::before { top: 0; }
.values::after { bottom: 0; }
.value { padding: 44px 36px 48px 0; }
.value + .value { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .value { padding: 52px 40px 56px; }
  .value:first-child { padding-left: 0; }
  .value + .value { border-top: 0; border-left: 1px solid var(--line); }
}
.value__en { display: inline-block; font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--g-600); white-space: nowrap; }
.value h3 { margin-top: 14px; font-size: 21px; font-weight: 700; line-height: 1.6; }
.value p { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; line-height: 2; }

/* ---------- Business ---------- */
.business { background: var(--bg-soft); }
.cards { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card--feature { grid-column: span 4; }
}

.card {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px 44px;
  display: flex; flex-direction: column;
  transition: translate .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(20,154,100,.1), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { translate: 0 -6px; border-color: rgba(20,154,100,.4); box-shadow: 0 30px 60px -30px rgba(11,61,44,.28); }
.card:hover::after { opacity: 1; }
.card__num { position: absolute; top: 30px; right: 34px; font-family: var(--font-en); font-weight: 800; font-size: 14px; color: var(--ink-3); letter-spacing: .1em; }
.card__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--g-50); display: grid; place-items: center; transition: background-color .5s var(--ease); }
.card__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--g-600); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease); }
.card:hover .card__icon { background: var(--g-600); }
.card:hover .card__icon svg { stroke: #fff; }
.card__title { margin-top: 28px; font-size: 21px; font-weight: 700; line-height: 1.55; }
.card__text { margin-top: 16px; color: var(--ink-2); font-size: 14.5px; line-height: 2; }
.card__link { margin-top: auto; padding-top: 28px; display: inline-flex; gap: 10px; align-items: center; align-self: flex-start; font-weight: 700; font-size: 14px; color: var(--g-700); }
.card__link span { transition: transform .4s var(--ease); }
.card__link:hover span { transform: translateX(4px); }

.card--feature { background: linear-gradient(140deg, var(--g-900) 0%, var(--g-700) 100%); border-color: transparent; color: #fff; }
.card--feature::after { background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(91,227,164,.16), transparent 45%); }
.card--feature .card__num { color: rgba(255,255,255,.5); }
.card--feature .card__icon { background: rgba(255,255,255,.1); }
.card--feature .card__icon svg { stroke: var(--g-300); }
.card--feature:hover .card__icon { background: var(--g-300); }
.card--feature:hover .card__icon svg { stroke: var(--g-900); }
.card--feature .card__title { font-size: clamp(22px, 2.4vw, 28px); }
.card--feature .card__text { color: rgba(255,255,255,.78); max-width: 560px; }
.card--feature .card__link { color: var(--g-300); }

/* レーダー（反社チェックの「検知」を表す装飾） */
.radar { position: absolute; right: -96px; bottom: -120px; z-index: -1; width: 440px; height: 440px; border-radius: 50%; pointer-events: none; }
.radar__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.radar__ring:nth-child(2) { inset: 17%; }
.radar__ring:nth-child(3) { inset: 34%; border-color: rgba(91,227,164,.28); }
.radar__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(91,227,164,.3), rgba(91,227,164,0) 24%, transparent 100%); animation: spin 5s linear infinite; }
.radar__blip { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--g-300); opacity: 0; animation: blip 5s var(--t, 0s) infinite; }
@keyframes blip {
  0% { opacity: 0; transform: scale(.4); box-shadow: 0 0 0 0 rgba(91,227,164,.6); }
  6% { opacity: 1; transform: scale(1); }
  30% { box-shadow: 0 0 0 16px rgba(91,227,164,0); }
  60%, 100% { opacity: 0; }
}

/* ---------- Use cases ---------- */
.usecases__list { display: grid; column-gap: 40px; }
@media (min-width: 700px) { .usecases__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .usecases__list { grid-template-columns: repeat(3, 1fr); column-gap: 48px; } }
.usecase { position: relative; padding: 36px 0 44px; border-top: 1px solid var(--line); }
.usecase::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--g-500), var(--g-300)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.usecase:hover::before { transform: scaleX(1); }
.usecase__num { position: absolute; top: 38px; right: 0; font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--ink-3); }
.usecase__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--g-50); transition: background-color .5s var(--ease); }
.usecase__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--g-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease); }
.usecase:hover .usecase__icon { background: var(--g-600); }
.usecase:hover .usecase__icon svg { stroke: #fff; }
.usecase h3 { margin-top: 22px; font-size: 18px; font-weight: 700; line-height: 1.65; }
.usecase p { margin-top: 10px; font-size: 14px; line-height: 2; color: var(--ink-2); }

/* ---------- Solution ---------- */
.solution { background: linear-gradient(180deg, #eaf7f0 0%, #f5fbf8 55%, #fff 100%); color: var(--ink); }
.solution__bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(91,227,164,.24), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(20,154,100,.07), transparent 60%);
}
.solution__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(18,128,79,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(18,128,79,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 25%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 25%, #000 0%, transparent 70%);
}
.solution__sweep { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(20,154,100,.06), transparent); translate: 0 -100%; animation: sweep 11s linear infinite; }
@keyframes sweep { to { translate: 0 260%; } }

.stat {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px;
  padding: 0 0 48px; margin-bottom: 56px; border-bottom: 1px solid #d5e5dc;
}
.stat__num { display: flex; align-items: baseline; font-family: var(--font-en); font-weight: 800; font-size: clamp(72px, 12vw, 160px); line-height: .9; letter-spacing: -.03em; color: var(--g-900); font-variant-numeric: tabular-nums; }
.stat__num small { font-family: var(--font-ja); font-size: .2em; font-weight: 700; letter-spacing: .04em; margin-left: .3em; color: var(--g-600); }
.stat__label { font-size: 16px; font-weight: 700; padding-bottom: .6em; color: var(--ink); }
.stat__label span { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.stat__note { flex: 1 1 300px; max-width: 440px; margin-left: auto; padding-bottom: .5em; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.stat__note span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 899px) { .stat__note { margin-left: 0; } }

/* 数字のロール表示（motion.js） */
.roller { display: inline-flex; }
.roller__digit { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.roller__strip { display: block; }
.roller__strip span { display: block; height: 1em; line-height: 1; }

/* 仕組み図 */
.dataflow { margin: 0 0 64px; padding: clamp(20px, 4vw, 48px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -45px rgba(11,61,44,.3); }
.dataflow__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: clamp(16px, 3vw, 32px); font-size: 15px; font-weight: 700; color: var(--ink); }
.dataflow__cap span { font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--g-600); }
.dataflow__svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-ja); }
.dataflow__svg--v { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 767px) { .dataflow__svg--h { display: none; } .dataflow__svg--v { display: block; } }
.df-path { fill: none; stroke: rgba(18,128,79,.2); stroke-width: 1.5; }
.df-flow path { fill: none; stroke: var(--g-500); stroke-width: 1.5; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .85; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.df-particle { fill: var(--g-500); filter: drop-shadow(0 0 3px rgba(20,154,100,.6)); }
.df-src rect, .df-step rect { fill: #fff; stroke: #cbdcd3; }
.df-src circle { fill: var(--g-500); }
.df-t { fill: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.df-s { fill: var(--ink-3); font-family: var(--font-en); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; }
.df-cap { fill: var(--ink-3); font-size: 12px; letter-spacing: .04em; }
.df-core__body { fill: var(--g-900); stroke: var(--g-500); stroke-width: 1.5; }
.df-core__ring { fill: none; stroke: rgba(18,128,79,.35); stroke-width: 1; stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
.df-core__pulse { fill: none; stroke: rgba(20,154,100,.45); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulseRing 2.8s var(--ease) infinite; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
.df-core__t { fill: #fff; font-family: var(--font-en); font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.df-core__s { fill: var(--g-300); font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.df-step--result rect { fill: rgba(20,154,100,.08); stroke: var(--g-500); }
.df-step--result circle { fill: var(--g-500); }
.df-check { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.features { display: grid; gap: 20px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative; padding: 40px 34px 44px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), translate .6s var(--ease);
}
.feature:hover { border-color: rgba(20,154,100,.45); translate: 0 -4px; box-shadow: 0 30px 60px -32px rgba(11,61,44,.25); }
.feature__num { font-family: var(--font-en); font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--g-500); }
.feature h3 { margin-top: 24px; font-size: 20px; font-weight: 700; line-height: 1.6; }
.feature p { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; line-height: 2; }

.delivery {
  margin-top: 56px; padding: 36px 40px; border-radius: var(--radius);
  background: var(--g-50); border: 1px solid var(--g-100);
  display: grid; gap: 24px 48px; align-items: center;
}
@media (min-width: 1000px) { .delivery { grid-template-columns: auto 1fr auto; } }
.delivery__title { font-weight: 700; font-size: 15px; color: var(--g-700); letter-spacing: .1em; }
.delivery__list { display: grid; gap: 18px 32px; }
@media (min-width: 720px) { .delivery__list { grid-template-columns: repeat(3, 1fr); } }
.delivery__list li { display: flex; flex-direction: column; gap: 4px; }
.delivery__list strong { font-size: 16px; color: var(--ink); }
.delivery__list span { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.delivery__src { font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: 6px; border-bottom: 1px solid rgba(14,28,22,.25); padding-bottom: 2px; justify-self: start; transition: color .3s, border-color .3s; }
.delivery__src:hover { color: var(--g-700); border-color: var(--g-700); }

/* ---------- Flow ---------- */
.flow__container { position: relative; }
.steps { position: relative; display: grid; gap: 16px; }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.step__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.step__no { font-family: var(--font-en); font-weight: 800; font-size: 11px; letter-spacing: .2em; color: var(--g-600); }
.step__num { font-family: var(--font-en); font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(17,100,63,.35); transition: color .5s var(--ease), -webkit-text-stroke-color .5s var(--ease); }
.step__icon { width: 56px; height: 56px; margin-top: 18px; border-radius: 16px; background: var(--g-50); display: grid; place-items: center; transition: background-color .5s var(--ease); }
.step__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--g-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease); }
.step h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }
.step.is-active { border-color: rgba(20,154,100,.45); box-shadow: 0 24px 50px -30px rgba(11,61,44,.35); }
.step.is-active .step__num { color: var(--g-500); -webkit-text-stroke-color: var(--g-500); }
.step.is-active .step__icon { background: var(--g-600); }
.step.is-active .step__icon svg { stroke: #fff; }
.flow__progress { display: none; }

/* 縦並び（タブレット以下）：左側に進行ライン */
@media (max-width: 999px) {
  .steps { padding-left: 36px; gap: 14px; }
  .flow__progress { display: block; position: absolute; left: calc(var(--gutter) + 10px); top: 10px; bottom: 10px; width: 2px; background: var(--line); }
  .flow__progress i { position: absolute; inset: 0; background: var(--g-500); transform: scaleY(var(--fp, 1)); transform-origin: top; }
  .step::before { content: ""; position: absolute; left: -31px; top: 34px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--g-500); transition: background-color .4s; }
  .step.is-active::before { background: var(--g-500); }
}

/* 横スクロール（PC・motion.js） */
.flow--h .flow__container { max-width: none; padding-inline: 0; }
.flow--h .steps { display: flex; gap: 24px; width: max-content; padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.flow--h .step { width: clamp(300px, 27vw, 370px); min-height: 330px; padding: 34px 32px 38px; }
.flow--h .step__num { font-size: 72px; }
.flow--h .step h3 { margin-top: auto; padding-top: 28px; font-size: 22px; }
.flow--h .flow__progress {
  display: block; position: relative; height: 2px; margin: 48px max(var(--gutter), calc((100vw - var(--container)) / 2)) 0;
  background: var(--line);
}
.flow--h .flow__progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--g-500), var(--g-300)); transform: scaleX(var(--fp, 0)); transform-origin: left; }

/* ---------- Company ---------- */
.company { background: var(--bg-soft); }
.company__grid { display: grid; gap: 0 80px; }
@media (min-width: 1000px) { .company__grid { grid-template-columns: 320px 1fr; } }
.company__note { margin-top: 24px; font-family: var(--font-en); font-weight: 800; font-size: 18px; line-height: 1.6; color: var(--g-900); letter-spacing: .12em; }
.company__note span { display: block; font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--ink-3); }

.profile { position: relative; }
.profile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--g-900); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.profile > div { position: relative; display: grid; grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
.profile > div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(var(--line, 1)); transform-origin: left; }
@media (min-width: 640px) { .profile > div { grid-template-columns: 160px 1fr; gap: 24px; } }
.profile dt { font-weight: 700; font-size: 14.5px; color: var(--g-800); }
.profile dd { font-size: 15.5px; line-height: 1.9; }
.profile__list { display: grid; gap: 6px; }
.profile__list li { position: relative; padding-left: 20px; }
.profile__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.profile__links a { color: var(--g-700); text-decoration: underline; text-decoration-color: rgba(18,128,79,.35); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.profile__links a:hover { text-decoration-color: currentColor; }
.profile__list li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 8px; height: 2px; background: var(--g-500); }

.map { position: relative; z-index: 1; margin-top: 72px; border-radius: var(--radius); overflow: hidden; height: 420px; background: var(--g-100); filter: grayscale(.5) contrast(1.05); transition: filter .6s var(--ease); }
.map:hover { filter: none; }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .map { height: 320px; margin-top: 48px; } }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden;
  padding: clamp(96px, 13vw, 160px) 0;
  background: linear-gradient(160deg, #eaf7f0 0%, #f6fbf8 45%, #fff 100%);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.contact__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.contact__blobs i { position: absolute; width: 52vw; height: 52vw; max-width: 820px; max-height: 820px; border-radius: 50%; background: radial-gradient(circle, rgba(91,227,164,.26), transparent 62%); }
.contact__blobs i:nth-child(1) { right: -14%; top: -40%; animation: blobA 24s ease-in-out infinite; }
.contact__blobs i:nth-child(2) { left: -18%; bottom: -45%; background: radial-gradient(circle, rgba(20,154,100,.12), transparent 62%); animation: blobB 28s ease-in-out infinite; }
.contact__blobs i:nth-child(3) { left: 32%; top: 20%; width: 30vw; height: 30vw; background: radial-gradient(circle, rgba(91,227,164,.16), transparent 62%); animation: blobC 32s ease-in-out infinite; }
@keyframes blobA { 50% { translate: -16vw 18vh; } }
@keyframes blobB { 50% { translate: 20vw -14vh; } }
@keyframes blobC { 50% { translate: -12vw 12vh; scale: 1.3; } }

.contact__inner { position: relative; z-index: 1; display: grid; gap: 48px 80px; align-items: end; grid-template-areas: "text" "mail"; }
@media (min-width: 1000px) { .contact__inner { grid-template-columns: 1.1fr 1fr; grid-template-areas: "text mail"; } }
.contact__text { grid-area: text; }
.contact__mailbox { grid-area: mail; }
.contact__form { grid-area: form; }
.contact__inner.has-form { align-items: start; grid-template-areas: "text" "form" "mail"; }
@media (min-width: 1000px) {
  .contact__inner.has-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "text form" "mail form";
  }
}

.contact__title { margin-top: 20px; font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; line-height: 1.4; color: var(--g-950); }
.has-form .contact__title { font-size: clamp(30px, 3.4vw, 46px); }
.contact__text p:last-child { margin-top: 24px; color: var(--ink-2); max-width: 520px; line-height: 2.1; }

.contact__mail {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px;
  padding: 32px 36px; border-radius: var(--radius);
  background: #fff; color: var(--g-950); border: 1px solid var(--line);
  box-shadow: 0 20px 50px -32px rgba(11,61,44,.28);
  transition: translate .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.contact__mail:hover { translate: 0 -4px; border-color: rgba(20,154,100,.45); box-shadow: 0 30px 60px -30px rgba(11,61,44,.32); }
.contact__mail-label { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--g-600); }
.contact__mail-addr { grid-column: 1; font-family: var(--font-en); font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: .01em; word-break: break-all; }
.contact__mail-arrow {
  grid-column: 2; grid-row: 1 / span 2;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-600); color: #fff; font-size: 20px;
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.contact__mail:hover .contact__mail-arrow { transform: rotate(-45deg); background: var(--g-900); }
.contact__sub { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

.has-form .contact__mail { padding: 26px 28px; }
.has-form .contact__mail-addr { font-size: clamp(19px, 2vw, 24px); }
.has-form .contact__mail-arrow { width: 48px; height: 48px; font-size: 17px; }

/* ---------- Form ---------- */
.contact__form {
  background: #fff; color: var(--ink);
  border-radius: 28px; padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -45px rgba(11,61,44,.35);
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.contact__form.is-in { opacity: 1; transform: none; }

.form { display: grid; gap: 22px; }
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
legend.form__label { float: left; width: 100%; }
.tag { padding: 1px 8px; border-radius: 4px; background: var(--bg-soft); color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.7; }
.tag--req { background: var(--g-600); color: #fff; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field input:not([type="checkbox"]), .field textarea {
  display: block; width: 100%; padding: 13px 16px;
  font: inherit; font-size: 16px; letter-spacing: .02em; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.8; }
.field input:not([type="checkbox"]):hover, .field textarea:hover { border-color: #c5d4cc; }
.field input:not([type="checkbox"]):focus, .field textarea:focus { background: #fff; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(20,154,100,.14); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; background: #fff8f7 !important; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.12) !important; }
.field__error { margin-top: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.6; color: var(--danger); }
.field__error:empty { display: none; }
.field__foot { display: flex; align-items: flex-start; gap: 12px; }
.field__count { margin-left: auto; margin-top: 6px; font-family: var(--font-en); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.field__count.is-over { color: var(--danger); }

.choices { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13.5px; font-weight: 500;
  transition: background-color .25s, border-color .25s, color .25s;
}
.choice:hover span { border-color: var(--g-500); }
.choice input:checked + span { background: var(--g-900); border-color: var(--g-900); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--g-500); outline-offset: 2px; }

.agree { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--g-600); }
.agree a { color: var(--g-700); text-decoration: underline; text-underline-offset: 3px; }

.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__turnstile { min-height: 65px; }
.form__submit { width: 100%; height: 60px; font-size: 16px; }
.form__submit[disabled] { opacity: .65; cursor: progress; translate: none; }
.form__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: -8px; font-size: 12.5px; color: var(--ink-3); }
.form__secure svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.form__status { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.8; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--danger); background: #fff4f2; border: 1px solid #f6d3cd; }

.form__done { padding: 56px 8px; text-align: center; outline: none; }
.form__done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; background: var(--g-600); box-shadow: 0 0 0 10px var(--g-100); }
.form__done-icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form__done:not([hidden]) .form__done-icon { animation: pop .7s var(--ease) both; }
.form__done:not([hidden]) .form__done-icon path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .6s .35s var(--ease) forwards; }
.form__done h3 { font-size: 22px; font-weight: 700; }
.form__done p { margin-top: 12px; color: var(--ink-2); line-height: 2; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; box-shadow: 0 0 0 0 var(--g-100); } 100% { transform: none; opacity: 1; box-shadow: 0 0 0 10px var(--g-100); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--bg-soft); color: var(--ink-2); padding-top: 72px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 40px; justify-content: space-between; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto auto; align-items: start; } }
.footer address { margin-top: 20px; font-size: 13px; color: var(--ink-3); }
.footer__nav { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 900px) { .footer__nav { justify-items: end; } }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13.5px; color: var(--ink); }
.footer__links--sub { font-size: 12.5px; color: var(--ink-3); }
.footer__nav a { transition: color .3s; }
.footer__nav a:hover { color: var(--g-600); }
.footer__bottom { position: relative; margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer__bottom small { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
/* ロゴタイプと同じ字形の大きなワードマーク（下端を少し切って、地面から生えるように） */
.footer__mark {
  max-width: calc(1360px + var(--gutter) * 2); margin: clamp(32px, 5vw, 64px) auto 0; padding-inline: var(--gutter);
  user-select: none; pointer-events: none;
}
.footer__mark svg { display: block; width: 100%; height: auto; }

/* ページ先頭へ（スクロール量をリングで表示） */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 12px 30px -12px rgba(11,61,44,.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; translate: 0 12px;
  transition: opacity .4s, visibility .4s, translate .5s var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
body.nav-open .totop { opacity: 0; visibility: hidden; }
.totop svg { width: 48px; height: 48px; }
.totop__track { fill: none; stroke: var(--g-100); stroke-width: 2; }
.totop__bar { fill: none; stroke: var(--g-500); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 138.23; stroke-dashoffset: calc(138.23 * (1 - var(--p, 0))); transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.totop__arrow { fill: none; stroke: var(--g-900); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--ease); }
.totop:hover .totop__arrow { translate: 0 -2px; }

/* ---------- Subpage ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 80px) 0 64px; background: linear-gradient(180deg, #fff, var(--g-50)); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 16px; font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; line-height: 1.35; }
.prose { max-width: 820px; padding-block: 72px 120px; }
.prose > p:first-child { margin-top: 0; }
.prose h2 { margin-top: 56px; padding-left: 16px; border-left: 3px solid var(--g-500); font-size: 20px; line-height: 1.6; }
.prose p, .prose ul { margin-top: 16px; color: var(--ink-2); font-size: 15px; line-height: 2.05; }
.prose ul { padding-left: 1.4em; list-style: disc; }
.prose .sign { margin-top: 56px; text-align: right; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.related { margin-top: 72px; padding: 28px 32px; border-radius: var(--radius); background: var(--bg-soft); }
.related__title { margin: 0 !important; font-size: 13px !important; font-weight: 700; letter-spacing: .1em; color: var(--g-700) !important; }
.related ul { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 10px !important; padding: 0 !important; list-style: none !important; }
.related a { color: var(--g-800); text-decoration: underline; text-decoration-color: rgba(18,128,79,.35); text-underline-offset: 4px; }
.related a:hover { text-decoration-color: currentColor; }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); background: linear-gradient(180deg, #fff, var(--g-50)); }
.notfound__code { font-family: var(--font-en); font-weight: 800; font-size: clamp(96px, 20vw, 200px); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--g-500); }
.notfound h1 { margin-top: 16px; font-size: 22px; }
.notfound p:not(.notfound__code) { margin-top: 12px; color: var(--ink-2); }
.notfound__brand { margin-bottom: 48px; text-align: left; }
.notfound .btn { margin-top: 36px; }

/* ---------- Scroll reveal（汎用・CSS） ---------- */
/* 初期状態は .js（<head> のインラインスクリプトで付与）があるときだけ。JS が動かない環境でも内容は見える */
.reveal { transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* 高さの低いノートPC（1366×768 / 1536×864 の125%表示など）でファーストビューに収める */
@media (max-height: 760px) and (min-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 24px; }
  .hero__lead { margin-top: 22px; }
  .hero__actions { margin-top: 30px; }
  .hero__meta { margin-top: 40px; }
}

/* ---------- Print（稟議資料などで印刷される場合に備えて） ---------- */
@media print {
  .header, .loader, .curtain, .progress, .totop, .skip, .hero__structure, .hero__grid, .hero__glow, .hero__visual,
  .hero__meta .motion-toggle, .scroll, .marquee, .bgword, .radar, .contact__blobs, .contact__form, .map, .footer__mark, .solution__bg,
  .dataflow__svg--v { display: none !important; }
  * { opacity: 1 !important; transform: none !important; translate: none !important; clip-path: none !important; filter: none !important; animation: none !important; transition: none !important; }
  body { color: #000; }
  .hero { min-height: 0; padding: 24px 0; }
  .section, .contact { padding: 32px 0; }
  .solution, .contact, .footer, .card--feature { background: #fff !important; color: #000 !important; }
  .solution *, .contact *, .footer *, .card--feature * { color: #000 !important; -webkit-text-stroke-color: #000 !important; }
  .dataflow__svg--h { display: block !important; }
  .df-t, .df-core__t { fill: #000 !important; }
  .card, .feature, .step, .usecase, .profile > div { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .contact__form { opacity: 1 !important; transform: none !important; }
  .motion-toggle { display: none; }
}
