/* ==========================================================================
   GRiT Corporate Site — style.css
   1. Design tokens
   2. Base / Reset
   3. Utilities & shared components (eyebrow, heading, button, badge, tag)
   4. Header / Navigation
   5. Sections (hero → change → business → how → projects → purpose → about → contact)
   6. Footer
   7. Project detail page
   8. Motion (reveal) & reduced motion
   9. Responsive
   ※ SWELL移植時は全セレクタを .grit-lp 配下にスコープする想定（README参照）
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --c-white: #ffffff;
  --c-gray: #f5f7fa;
  --c-gray-2: #eef2f7;
  --c-line: #e3e8ef;
  --c-navy: #14253d;
  --c-navy-2: #1b3253;
  --c-blue: #1265b0;      /* GRiT Blue — ロゴのブルーに合わせる */
  --c-blue-dark: #0e4f8b;
  --c-bright: #009dff;    /* アクセント（装飾・線のみ。本文テキストには使わない） */
  --c-text: #344054;
  --c-muted: #5d6b82;     /* 白背景でコントラスト比 5.4:1 */

  --f-en: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(96px, 12vw, 176px);
  --radius: 4px;
  --line: 1px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 1px 2px rgba(20, 37, 61, .04), 0 12px 32px -12px rgba(20, 37, 61, .14);
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-bright); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(0, 157, 255, .18); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--c-navy); color: #fff; padding: 8px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-only { display: none; }
.u-blue { color: var(--c-blue); }

/* 3. Shared components --------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-en); font-weight: 700; font-size: 13px; letter-spacing: .2em;
  color: var(--c-blue); line-height: 1;
}
.eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--c-blue); }
.eyebrow__num { order: -1; color: var(--c-navy); font-weight: 800; letter-spacing: .08em; }
.eyebrow--invert { color: #7cc7ff; }
.eyebrow--invert::before { background: var(--c-bright); }
.eyebrow--invert .eyebrow__num { color: #fff; }

.heading-xl, .heading-lg {
  color: var(--c-navy); font-weight: 700; letter-spacing: .02em;
  font-feature-settings: "palt"; word-break: keep-all; overflow-wrap: anywhere;
}
.heading-xl { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.45; margin-top: 28px; }
.heading-lg { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.5; margin-top: 28px; }

.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px 80px; align-items: end; }
.section-head__lead { color: var(--c-text); max-width: 34em; }

/* Buttons */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-navy); --btn-bd: var(--c-navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 56px; padding: 0 28px;
  background: var(--btn-bg); color: var(--btn-fg); border: var(--line) solid var(--btn-bd); border-radius: var(--radius);
  font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1.4;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn__arrow { position: relative; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); flex: none; }
.btn__arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--primary { --btn-bg: var(--c-blue); --btn-fg: #fff; --btn-bd: var(--c-blue); }
.btn--primary:hover { --btn-bg: var(--c-navy); --btn-bd: var(--c-navy); }
.btn--ghost:hover { --btn-bg: var(--c-navy); --btn-fg: #fff; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--c-navy); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--c-bright); --btn-fg: #fff; --btn-bd: var(--c-bright); }
.btn--sm { min-height: 44px; padding: 0 22px; font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; }
.btn--lg { min-height: 72px; padding: 0 40px; font-size: 17px; }

/* Badge / Tag */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; border-radius: 2px; white-space: nowrap;
  font-family: var(--f-ja);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--active { background: var(--c-blue); color: #fff; }
.badge--concept { background: #fff; color: var(--c-navy); box-shadow: inset 0 0 0 1px var(--c-navy); }
.badge--concept::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { font-size: 13px; line-height: 1.6; padding: 5px 12px; border: var(--line) solid var(--c-line); border-radius: 2px; color: var(--c-navy); background: #fff; }

/* 4. Header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: var(--line) solid transparent;
  transition: height .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled { --header-h: 68px; border-color: var(--c-line); box-shadow: 0 6px 24px -18px rgba(20, 37, 61, .35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(1400px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.site-logo { position: relative; z-index: 2; }
.site-logo img { width: auto; height: 36px; transition: height .4s var(--ease); }
.site-header.is-scrolled .site-logo img { height: 30px; }
.global-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.global-nav a:not(.btn) {
  position: relative; font-family: var(--f-en); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--c-navy); padding-block: 8px;
}
.global-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--c-blue); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.global-nav a:not(.btn):hover::after, .global-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 48px; height: 48px; position: relative; margin-right: -10px; }
.menu-toggle__bar { position: absolute; left: 12px; width: 24px; height: 2px; background: var(--c-navy); transition: transform .4s var(--ease); }
.menu-toggle__bar:nth-child(1) { top: 19px; }
.menu-toggle__bar:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* 5-1. Hero -------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--header-h) + clamp(32px, 6vh, 72px)); padding-bottom: 32px; display: flex; flex-direction: column; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 0%, transparent 75%);
  opacity: .7;
}
.hero__inner { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-en); font-weight: 600; font-size: 14px; letter-spacing: .12em; color: var(--c-blue); }
.hero__eyebrow .dot { width: 8px; height: 8px; background: var(--c-bright); transform: rotate(45deg); }
.hero__title { margin-top: 28px; color: var(--c-navy); }
.hero__en { display: block; font-family: var(--f-en); font-weight: 800; font-size: clamp(52px, 8.4vw, 124px); line-height: .96; letter-spacing: -.035em; }
.hero__ja { display: block; margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.5; letter-spacing: .06em; font-feature-settings: "palt"; }
.hero__lead { margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--c-blue); font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; color: var(--c-navy); line-height: 1.7; }
.hero__text { margin-top: 24px; max-width: 37em; font-size: 15px; line-height: 2.1; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; align-self: center; }
.hex-visual { width: 100%; max-width: 600px; margin-left: auto; overflow: visible; }
.hero__foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 32px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-en); font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--c-navy); }
.scroll-cue__line { position: relative; width: 64px; height: 1px; background: var(--c-line); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--c-blue); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.hero__domains { font-family: var(--f-en); font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--c-muted); }
.hero__domains .sep { margin-inline: 10px; color: var(--c-line); }

/* hero svg */
.hv-guide { fill: none; stroke: var(--c-line); stroke-width: 1.5; stroke-dasharray: 1; }
.hv-edge { fill: none; stroke: var(--c-navy); stroke-width: 2; stroke-linejoin: round; }
.hv-edge--inner { stroke: #fff; stroke-width: 2.5; }
.hv-thin { fill: none; stroke: rgba(18, 101, 176, .25); stroke-width: 1; }
.hv-link { fill: none; stroke: var(--c-blue); stroke-width: 1.5; }
.hv-arrow { fill: none; stroke: url(#hvArrow); stroke-width: 14; stroke-linecap: butt; }
.hv-arrow--thin { stroke-width: 2; stroke: var(--c-bright); }
.hv-nodes circle { fill: #fff; stroke: var(--c-blue); stroke-width: 2; }
.hv-nodes .hv-node--fill { fill: var(--c-bright); stroke: #fff; stroke-width: 3; }
.hv-labels text { font-family: var(--f-en); font-size: 12px; font-weight: 700; letter-spacing: .2em; fill: var(--c-navy); }
.hv-pulse { fill: var(--c-bright); }

/* hero animations (initial) */
.hv-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; animation-delay: .3s; }
.hv-edge { animation-delay: .2s; }
.hv-edge--inner { animation-delay: .7s; }
.hv-link { animation-delay: 1.1s; animation-duration: 1s; }
.hv-arrow { animation-delay: 1.2s; animation-duration: 1.1s; }
.hv-arrow--thin { animation-delay: 1.35s; }
.hv-guide { stroke-dasharray: 1; animation-duration: 2.4s; animation-delay: 0s; }
.hv-face { opacity: 0; animation: fadeIn 1s var(--ease) forwards; animation-delay: var(--d, 1s); }
.hv-arrowhead { opacity: 0; transform-origin: 590px 130px; animation: pop .6s var(--ease) forwards 2.1s; }
.hv-nodes circle, .hv-labels text { opacity: 0; animation: fadeIn .8s var(--ease) forwards; animation-delay: var(--d, 1.4s); }
.hv-pulse { opacity: 0; animation: fadeIn 1s forwards 2.4s; }
.hv-float { animation: float 9s ease-in-out infinite 2.5s; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.anim-up { opacity: 0; transform: translateY(24px); animation: up 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes up { to { opacity: 1; transform: none; } }

/* 5-2. WHAT WE CHANGE ---------------------------------------------------- */
.change__intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px 80px; align-items: start; }
.change__intro .heading-xl { margin-top: 0; }
.change__body p + p { margin-top: 1.3em; }
.change__body { padding-top: 12px; }

.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(64px, 8vw, 120px); counter-reset: flow; }
.flow::before { /* base line */
  content: ""; position: absolute; top: 40px; left: 40px; right: 40px; height: 1px; background: var(--c-line);
}
.flow::after { /* progress line */
  content: ""; position: absolute; top: 40px; left: 40px; right: 40px; height: 2px; margin-top: -.5px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-bright)); transform: scaleX(0); transform-origin: left;
  transition: transform 1.8s var(--ease) .3s;
}
.flow.is-in::after { transform: scaleX(1); }
.flow__item { position: relative; padding-right: 32px; }
.flow__icon { position: relative; z-index: 1; width: 80px; height: 80px; padding: 6px; background: #fff; }
.flow__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--c-navy); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.flow__icon svg path:first-child { stroke: var(--c-blue); stroke-width: 2; }
.flow__item--goal .flow__icon svg path:first-child { fill: var(--c-blue); }
.flow__item--goal .flow__icon svg path:not(:first-child) { stroke: #fff; stroke-width: 2.2; }
.flow__en { margin-top: 28px; font-family: var(--f-en); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .04em; color: var(--c-navy); line-height: 1.1; }
.flow__item--goal .flow__en { color: var(--c-blue); }
.flow__title { margin-top: 12px; font-size: 17px; font-weight: 700; color: var(--c-navy); line-height: 1.6; }
.flow__text { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--c-text); }

.statement { margin-top: clamp(80px, 10vw, 140px); padding: clamp(40px, 5vw, 64px) clamp(28px, 5vw, 72px); background: var(--c-gray); border-left: 4px solid var(--c-blue); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.statement__en { font-family: var(--f-en); font-weight: 800; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.01em; color: var(--c-navy); }
.statement__ja { font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; color: var(--c-blue); }

/* 5-3. OUR BUSINESS ------------------------------------------------------ */
.business { background: var(--c-gray); }
.domain + .domain { margin-top: clamp(96px, 11vw, 160px); }
.domain__hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.domain--reverse .domain__media { order: 2; }
.domain__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: #fff; }
.domain__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.domain:hover .domain__media img { transform: scale(1.03); }
.domain__num { font-family: var(--f-en); font-weight: 800; font-size: clamp(72px, 9vw, 128px); line-height: .85; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--c-blue); }
.domain__en { margin-top: 24px; font-family: var(--f-en); font-weight: 800; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: .02em; line-height: 1.2; color: var(--c-blue); }
.domain__title { margin-top: 18px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: var(--c-navy); line-height: 1.55; font-feature-settings: "palt"; letter-spacing: .04em; }
.domain__text { margin-top: 20px; max-width: 30em; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.service {
  position: relative; background: #fff; padding: clamp(32px, 3.6vw, 52px); border-radius: var(--radius);
  border: var(--line) solid var(--c-line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.service::before { content: ""; position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: 3px; background: var(--c-blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); border-radius: var(--radius) var(--radius) 0 0; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__num { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--f-en); font-weight: 800; font-size: 14px; letter-spacing: .14em; color: var(--c-blue); line-height: 1.4; }
.service__num > span:first-child { font-family: var(--f-ja); font-size: 18px; color: var(--c-navy); letter-spacing: 0; }
.service__title { margin-top: 18px; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.6; font-weight: 700; color: var(--c-navy); font-feature-settings: "palt"; }
.service__text { margin-top: 16px; font-size: 15px; }

/* 5-4. HOW WE TRANSFORM -------------------------------------------------- */
.how { background: var(--c-navy); color: #c9d4e3; overflow: hidden; }
.how::before { /* geometric decoration: hexagon outlines */
  content: ""; position: absolute; right: -12vw; top: -10vw; width: 62vw; max-width: 900px; aspect-ratio: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23ffffff' stroke-width='.35'%3E%3Cpath d='M100 6 181 53v94l-81 47-81-47V53z' stroke-opacity='.14'/%3E%3Cpath d='M100 36 155 68v64l-55 32-55-32V68z' stroke-opacity='.09'/%3E%3Cpath d='M100 66 129 83v34l-29 17-29-17V83z' stroke-opacity='.06'/%3E%3C/svg%3E") center / contain no-repeat;
}
.how .heading-xl { color: #fff; }
.how__layout { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: center; }
.how__lead { margin-top: 32px; max-width: 32em; }
.cycle svg { width: 100%; max-width: 440px; margin-inline: auto; overflow: visible; }
.cycle__ring { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.cycle__arc { fill: none; stroke: var(--c-bright); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.6s var(--ease); }
.cycle.is-in .cycle__arc { stroke-dashoffset: 0; }
.cycle.is-in .cycle__arc:nth-of-type(2) { transition-delay: .5s; }
.cycle.is-in .cycle__arc:nth-of-type(3) { transition-delay: 1s; }
.cycle__hex { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.cycle__center { font-family: var(--f-en); font-weight: 700; font-size: 11px; letter-spacing: .2em; fill: #fff; text-anchor: middle; }
.cycle__node circle { fill: var(--c-navy); stroke: #fff; stroke-width: 1.5; }
.cycle__node--accent circle { fill: var(--c-blue); stroke: var(--c-blue); }
.cycle__node text { font-family: var(--f-en); font-weight: 800; font-size: 10px; letter-spacing: .08em; fill: #fff; text-anchor: middle; }
.cycle__pulse { fill: #fff; }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid rgba(255, 255, 255, .16); }
.step { position: relative; padding: 40px 36px 8px 0; }
.step + .step { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .16); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--c-bright); }
.step + .step::before { left: 36px; }
.step__no { font-family: var(--f-en); font-weight: 700; font-size: 12px; letter-spacing: .24em; color: #7cc7ff; }
.step__en { margin-top: 10px; font-family: var(--f-en); font-weight: 800; font-size: clamp(19px, 1.8vw, 24px); color: #fff; letter-spacing: .02em; line-height: 1.25; }
.step__title { margin-top: 16px; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.6; }
.step__text { margin-top: 12px; font-size: 14px; line-height: 1.95; }
.step__list { margin-top: 20px; display: grid; gap: 6px; }
.step__list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #e4ebf4; }
.step__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border: 1.5px solid var(--c-bright); transform: rotate(45deg); }
.steps__loop { margin-top: 48px; display: flex; align-items: center; gap: 16px; font-size: 15px; color: #fff; }
.steps__loop-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; font-size: 20px; color: var(--c-bright); flex: none; line-height: 1; }

/* 5-5. OUR PROJECTS ------------------------------------------------------ */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter__btn { min-height: 44px; padding: 0 20px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--c-navy); background: #fff; transition: all .3s var(--ease); }
.filter__btn:hover { border-color: var(--c-navy); }
.filter__btn.is-active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.card[hidden] { display: none; }
.card__link { display: flex; flex-direction: column; height: 100%; background: #fff; }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--c-gray); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 24px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.card__cat { font-family: var(--f-en); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--c-blue); line-height: 1.5; }
.card__title { margin-top: 16px; font-size: 20px; font-weight: 700; line-height: 1.6; color: var(--c-navy); font-feature-settings: "palt"; transition: color .3s; }
.card__link:hover .card__title { color: var(--c-blue); }
.card__text { margin-top: 12px; font-size: 14px; line-height: 1.9; }
.card__note { margin-top: 12px; font-size: 12px; color: var(--c-muted); letter-spacing: .04em; line-height: 1.6; }
.card__note::before { content: "※ "; }
.card__more { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; color: var(--c-navy); }
.card__link:hover .btn__arrow { transform: translateX(5px); }
.card--cta .card__link { justify-content: center; padding: clamp(32px, 3vw, 44px); background: var(--c-gray); border: 1px dashed #c3ccd8; border-radius: var(--radius); transition: background-color .4s var(--ease), border-color .4s; }
.card--cta .card__body { padding-top: 0; flex: 0; }
.card--cta .card__link:hover { background: #fff; border-color: var(--c-blue); }
.projects__empty { text-align: center; color: var(--c-muted); padding: 40px 0; }

/* 5-6. OUR PURPOSE ------------------------------------------------------- */
.purpose { overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f3f8fd 100%); padding-bottom: clamp(220px, 30vw, 420px); }
.purpose__bg { position: absolute; inset: auto 0 0 0; height: clamp(240px, 32vw, 460px); opacity: .6; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%); mask-image: linear-gradient(to bottom, transparent, #000 60%); }
.purpose__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.purpose .container { position: relative; }
.purpose__head { text-align: center; }
.purpose__title { margin-top: 32px; font-size: clamp(36px, 5.6vw, 76px); font-weight: 700; line-height: 1.4; letter-spacing: .04em; color: var(--c-navy); font-feature-settings: "palt"; }
.purpose__en { margin-top: 20px; font-family: var(--f-en); font-weight: 800; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .24em; color: var(--c-blue); }
.purpose__layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px 80px; align-items: center; margin-top: clamp(64px, 8vw, 112px); }
.purpose__body p + p, .purpose__body ul + p, .purpose__body p + ul { margin-top: 1.4em; }
.purpose__body strong { color: var(--c-navy); }
.purpose__chain { display: grid; gap: 0; border-left: 2px solid var(--c-blue); padding-left: 24px; }
.purpose__chain li { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; color: var(--c-navy); line-height: 2.1; }
.loop svg { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.loop__half { fill: none; stroke-width: 34; opacity: .08; }
.loop__half--bt { stroke: var(--c-blue); opacity: .12; }
.loop__half--ri { stroke: var(--c-bright); }
.loop__domain { font-family: var(--f-en); font-weight: 700; font-size: 11px; letter-spacing: .18em; fill: var(--c-blue); }
.loop__arc { fill: none; stroke: var(--c-blue); stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.2s var(--ease); }
.loop.is-in .loop__arc { stroke-dashoffset: 0; }
.loop.is-in .loop__arc:nth-of-type(2) { transition-delay: .35s; }
.loop.is-in .loop__arc:nth-of-type(3) { transition-delay: .7s; }
.loop.is-in .loop__arc:nth-of-type(4) { transition-delay: 1.05s; }
.loop__hex { fill: #fff; stroke: var(--c-blue); stroke-width: 1.5; }
.loop__center-en { font-family: var(--f-en); font-weight: 800; font-size: 12px; letter-spacing: .1em; fill: var(--c-navy); text-anchor: middle; }
.loop__center-ja { font-family: var(--f-ja); font-weight: 700; font-size: 12px; fill: var(--c-blue); text-anchor: middle; letter-spacing: .2em; }
.loop__node circle { fill: var(--c-blue); }
.loop__node text { font-family: var(--f-ja); font-weight: 700; font-size: 14px; fill: #fff; text-anchor: middle; }
.loop__node--light circle { fill: #fff; stroke: var(--c-blue); stroke-width: 2; }
.loop__node--light text { fill: var(--c-navy); }
.loop__flow { font-family: var(--f-ja); font-size: 12px; font-weight: 700; fill: var(--c-blue); letter-spacing: .08em; }

/* 5-7. ABOUT US ---------------------------------------------------------- */
.about__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px 96px; align-items: start; }
.about__concept { display: block; margin-bottom: 16px; font-family: var(--f-en); font-weight: 600; font-size: 15px; letter-spacing: .1em; color: var(--c-blue); }
.about__body { padding-top: 8px; }
.about__body p + p { margin-top: 1.3em; }
.about__facts { margin-top: 48px; border-top: 1px solid var(--c-line); }
.about__facts > div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; line-height: 1.8; }
.about__facts dt { font-weight: 700; color: var(--c-navy); }

.meaning { margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--c-line); display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px 80px; align-items: start; }
.meaning__label { font-family: var(--f-en); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--c-blue); }
.meaning__title { margin-top: 20px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.55; color: var(--c-navy); font-feature-settings: "palt"; }
.meaning__text { margin-top: 20px; font-size: 15px; }
.meaning__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.meaning__item { position: relative; padding: 28px 20px 24px; background: var(--c-gray); border-radius: var(--radius); border-top: 3px solid var(--c-navy); }
.meaning__item--accent { border-top-color: var(--c-blue); }
.meaning__letter { display: block; font-family: var(--f-en); font-weight: 800; font-size: clamp(56px, 6vw, 80px); line-height: 1; letter-spacing: -.02em; color: var(--c-navy); }
.meaning__item--accent .meaning__letter { color: var(--c-blue); }
.meaning__en { margin-top: 20px; font-family: var(--f-en); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--c-navy); line-height: 1.4; }
.meaning__ja { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--c-text); }

/* Contact page form */
.cf { display: grid; gap: 28px; max-width: 760px; }
.cf__row { display: grid; gap: 10px; }
.cf__label { font-weight: 700; color: var(--c-navy); font-size: 15px; line-height: 1.6; }
.cf__req { margin-left: 8px; padding: 1px 8px; font-size: 11px; background: var(--c-blue); color: #fff; border-radius: 2px; vertical-align: 2px; }
.cf__opt { margin-left: 8px; padding: 1px 8px; font-size: 11px; background: var(--c-gray-2); color: var(--c-muted); border-radius: 2px; vertical-align: 2px; }
.cf input[type="text"], .cf input[type="email"], .cf input[type="tel"], .cf select, .cf textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--c-navy);
  background: #fff; border: 1px solid #c9d2de; border-radius: var(--radius); transition: border-color .3s, box-shadow .3s;
}
.cf textarea { min-height: 200px; resize: vertical; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(18, 101, 176, .15); }
.cf__radios { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.cf__radios legend { padding: 0; margin-bottom: 10px; }
.cf__radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.cf__radios input { accent-color: var(--c-blue); }
.cf__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.8; }
.cf__agree input { margin-top: 6px; accent-color: var(--c-blue); }
.cf__note { padding: 20px 24px; background: var(--c-gray); border-left: 3px solid var(--c-blue); font-size: 14px; line-height: 1.9; }
.cf__msg { padding: 20px 24px; border: 1px solid var(--c-blue); border-radius: var(--radius); color: var(--c-navy); font-size: 14px; line-height: 1.9; }

.contact-page { padding-bottom: var(--section-y); }
.cf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__msg--error { border-color: #b42318; color: #b42318; background: #fff6f5; }
.cf [aria-invalid="true"] { border-color: #b42318; }
.cf button[disabled] { opacity: .6; cursor: wait; }
.thanks { padding-bottom: var(--section-y); }

/* 5-8. CONTACT ----------------------------------------------------------- */
.contact { position: relative; background: var(--c-navy); color: #c9d4e3; padding-block: clamp(80px, 10vw, 140px); overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 420px; aspect-ratio: .866; border: 1px solid rgba(0, 157, 255, .35); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(135deg, rgba(18, 101, 176, .35), transparent 70%); }
.contact__inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.contact__title { margin-top: 28px; font-size: clamp(30px, 4vw, 52px); line-height: 1.5; font-weight: 700; color: #fff; font-feature-settings: "palt"; }
.contact__text { margin-top: 20px; }

/* 6. Footer -------------------------------------------------------------- */
.site-footer { background: var(--c-gray); padding-top: 80px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; }
.footer__logo img { height: 40px; width: auto; }
.footer__msg { margin-top: 24px; font-family: var(--f-en); font-weight: 700; font-size: 12px; letter-spacing: .2em; line-height: 2; color: var(--c-navy); }
.footer__nav { display: flex; gap: clamp(40px, 6vw, 96px); }
.footer__nav ul { display: grid; gap: 10px; }
.footer__nav a { font-family: var(--f-en); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--c-navy); transition: color .3s; }
.footer__nav a:hover { color: var(--c-blue); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; border-top: 1px solid var(--c-line); font-family: var(--f-en); font-size: 12px; letter-spacing: .1em; color: var(--c-muted); }
.to-top { display: inline-flex; gap: 8px; font-weight: 700; color: var(--c-navy); }

/* 7. Project detail page ------------------------------------------------- */
.pj-hero { padding-top: calc(var(--header-h) + 72px); padding-bottom: 56px; }
.pj-back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--c-navy); }
.pj-back .btn__arrow { transform: rotate(180deg); }
.pj-back:hover .btn__arrow { transform: rotate(180deg) translateX(5px); }
.pj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 48px; }
.pj-title { margin-top: 20px; font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; line-height: 1.45; color: var(--c-navy); font-feature-settings: "palt"; }
.pj-lead { margin-top: 24px; max-width: 42em; font-size: 17px; }
.pj-media { aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius); background: var(--c-gray); }
.pj-media img { width: 100%; height: 100%; object-fit: cover; }
.pj-body { display: grid; grid-template-columns: 1fr 2fr; gap: 40px 80px; padding-block: 80px var(--section-y); }
.pj-body h2 { font-family: var(--f-en); font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--c-blue); }
.pj-block + .pj-block { margin-top: 56px; }
.pj-block h3 { font-size: 22px; color: var(--c-navy); line-height: 1.6; margin-bottom: 16px; }
.pj-block ul { display: grid; gap: 8px; }
.pj-block li { position: relative; padding-left: 20px; }
.pj-block li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 2px; background: var(--c-blue); }
.pj-notice { padding: 24px 28px; background: var(--c-gray); border-left: 3px solid var(--c-navy); font-size: 14px; line-height: 1.9; }
.pj-aside dl { display: grid; gap: 20px; margin-top: 24px; }
.pj-aside dt { font-family: var(--f-en); font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--c-muted); }
.pj-aside dd { margin-top: 4px; font-weight: 700; color: var(--c-navy); line-height: 1.7; }

.pj-updates__list { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.pj-updates__list li { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 18px 0 18px 0; border-bottom: 1px solid var(--c-line); }
.pj-updates__list li::before { display: none; }
.pj-updates__list time { font-family: var(--f-en); font-weight: 700; font-size: 14px; color: var(--c-blue); letter-spacing: .06em; }

/* 8. Reveal motion ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-img, .anim-up { opacity: 1; transform: none; clip-path: none; }
  .hv-pulse, .cycle__pulse, .scroll-cue__line::after { display: none; }
}

/* 9. Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .global-nav ul { gap: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; width: 70%; margin: 0 auto -8px; }
  .hex-visual { margin-inline: auto; }
  .hero { min-height: auto; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .site-header.is-scrolled { --header-h: 60px; }
  .site-logo img, .site-header.is-scrolled .site-logo img { height: 28px; }
  .menu-toggle { display: block; z-index: 2; }
  .global-nav {
    position: fixed; inset: 0; z-index: 1; padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav li { border-bottom: 1px solid var(--c-line); }
  .global-nav li:last-child { border: 0; margin-top: 32px; }
  .global-nav a:not(.btn) { display: block; padding: 20px 0; font-size: 20px; letter-spacing: .1em; }
  .global-nav a:not(.btn)::after { display: none; }
  .global-nav .btn { width: 100%; min-height: 56px; font-size: 15px; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  body.is-menu-open { overflow: hidden; }

  .section-head--split, .change__intro, .domain__hero, .how__layout, .purpose__layout, .about__layout, .pj-body { grid-template-columns: 1fr; }
  .domain--reverse .domain__media { order: 0; }
  .services { grid-template-columns: 1fr; }
  .meaning { grid-template-columns: 1fr; }

  .flow { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .flow::before, .flow::after { display: none; }

  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 32px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .step + .step::before { left: 0; }
  .cycle { max-width: 380px; margin-inline: auto; width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .hero { padding-top: calc(var(--header-h) + 16px); }
  .hero__visual { width: 56%; max-width: 240px; margin-bottom: -4px; }
  .hero__eyebrow { font-size: 12px; }
  .hero__title { margin-top: 18px; }
  .hero__en { font-size: clamp(48px, 15vw, 72px); }
  .hero__actions .btn { width: 100%; }
  .hero__foot { display: none; }
  .flow { grid-template-columns: 1fr; position: relative; row-gap: 0; }
  .flow__item { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 0 0 36px; }
  .flow__item:not(:last-child)::before { content: ""; position: absolute; left: 32px; top: 64px; bottom: 0; width: 1px; background: linear-gradient(var(--c-blue), var(--c-line)); }
  .flow__icon { grid-row: span 3; width: 64px; height: 64px; padding: 4px; }
  .flow__en { margin-top: 4px; font-size: 22px; }
  .flow__title { margin-top: 6px; }
  .statement { flex-direction: column; align-items: flex-start; }
  .cards { grid-template-columns: 1fr; }
  .tags li { font-size: 12px; }
  .about__facts > div { grid-template-columns: 1fr; gap: 4px; }
  .meaning__list { grid-template-columns: 1fr 1fr; }
  .contact__actions, .contact__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
  .pj-media { aspect-ratio: 3 / 2; }
}
