/* ==========================================================================
   Edge Hub — トップページ
   ========================================================================== */

/* ---------- Hero ---------- */
/* ヒーロー下端と帯の斜め境界で共有する高さ。帯をヒーローに重ね、斜めの隙間からグラデーションを見せる。 */
.hero, .band { --cut: clamp(16px, 4vw, 64px); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #5E9EFE;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
}

/* Flow（Duotone・Grain）背景。WebGL で 2 色の流体グラデーションを描き、上に SVG ノイズを重ねる。
   WebGL が使えない環境では、下地の radial-gradient の静的版がそのまま見える。 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: #5E9EFE;
  background-image:
    radial-gradient(at 6% 93%, #5E9EFE 0px, transparent 62%),
    radial-gradient(at 90% 9%, #66E8F7 0px, transparent 62%);
  pointer-events: none;
}
.hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-flow.is-ready { opacity: 1; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px;
  opacity: .22;
  mix-blend-mode: overlay;
}
/* コピーは左下に大きく置き、CTA と NEXT EVENT は右下に積む */
.hero-main {
  flex: 1;
  padding: clamp(96px, 12vw, 168px) var(--gutter) clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
}
.hero-copy { min-width: 0; }
/* コピーは縁に黒いグローを付けた画像（2000×1125、文字部分は x76–1778 / y271–893）。
   font-size を基準に em で寸法を決め、文字部分の幅を従来のテキスト（6.52em）とそろえる。
   余白は負のマージンで打ち消し、グローははみ出して見せる。 */
.hero-title {
  display: flow-root;
  margin: 0;
  font-size: clamp(40px, 9vw, 144px);
  line-height: 0;
}
.hero-title-img {
  display: block;
  width: 7.662em;
  max-width: none;
  height: auto;
  margin: -1.038em -.851em -.889em -.291em;
}
.hero-side { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.hero-ctas .btn--outline { height: 60px; padding: 0 30px; }
@media (min-width: 960px) {
  .hero-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 32px; }
  .hero-title { font-size: clamp(40px, 7.4vw, 136px); }
}
.hero-foot {
  padding: 0 var(--gutter) calc(clamp(20px, 2.4vw, 32px) + var(--cut));
  display: flex;
  align-items: flex-end;
}
.scroll-cue { display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-size: 11px; font-weight: 500; letter-spacing: .3em; color: #fff; }
.scroll-cue-line { position: relative; width: 1.5px; height: 40px; overflow: hidden; background: var(--border-2); }
.scroll-cue-line span { position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--blue); }
.next-event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 16px 16px 16px 24px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .3s;
}
.next-event:hover { border-color: var(--blue); color: var(--ink); }
.ne-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--blue); }
.ne-label .dia { --s: 8px; }
.ne-date { font-family: var(--font-en); font-size: 20px; font-weight: 500; letter-spacing: .02em; }
.ne-date small { font-size: 12px; color: var(--muted-2); }
.ne-title { font-size: 14px; font-weight: 900; }
.ne-arrow { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--cyan); }
.ne-arrow .chev { --s: 6px; }

@media (max-width: 600px) {
  .hero-title { font-size: clamp(36px, 11vw, 64px); }
  .hero-side { align-items: stretch; }
  .hero-ctas { justify-content: flex-start; }
  .next-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 12px;
    padding: 16px;
  }
  .ne-label { grid-column: 1; grid-row: 1; }
  .ne-date { grid-column: 2 / -1; grid-row: 1; justify-self: end; white-space: nowrap; }
  .ne-title { grid-column: 1 / 3; grid-row: 2; justify-self: end; text-align: right; }
  .ne-arrow { grid-column: 3; grid-row: 2; justify-self: end; }
}
@media (max-width: 360px) {
  .ne-label { font-size: 10px; letter-spacing: .14em; }
  .ne-date { font-size: 18px; }
}

/* 学生採用ページへのバッジ（採用LPのポップな配色に合わせて、ここだけ丸いステッカー風）
   外周に回る英字と、中央の「学生採用ページ」が重ならないよう、中央の文字はバッジ幅の約12%に抑える。 */
.hero-recruit {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 2.4vw, 36px);
  right: var(--gutter);
  --badge: clamp(88px, 8vw, 120px);
  width: var(--badge);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #151515;
  border-radius: 50%;
  background: #FFC928;
  color: #151515;
  box-shadow: 0 5px 0 #151515;
  text-decoration: none;
  rotate: -8deg;
  transition: rotate .35s cubic-bezier(.34, 1.56, .64, 1), scale .35s cubic-bezier(.34, 1.56, .64, 1), translate .15s, box-shadow .15s;
}
.hero-recruit:hover { color: #151515; rotate: 4deg; scale: 1.06; }
.hero-recruit:active { translate: 0 4px; box-shadow: 0 2px 0 #151515; }
.hero-recruit:focus-visible { outline: 3px solid #FF6A2B; outline-offset: 4px; }
.hero-recruit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-recruit-ring text {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  fill: #151515;
}
.hero-recruit-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: max(12px, calc(var(--badge) * .114));
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
}
.hero-recruit-line { display: inline-flex; align-items: center; gap: .2em; }
.hero-recruit-arrow {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #FF6A2B;
  color: #fff;
  font-size: .7em;
  font-weight: 700;
  line-height: 1;
  transition: translate .25s;
}
.hero-recruit:hover .hero-recruit-arrow { translate: 2px 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-recruit { animation: hero-recruit-pop .7s cubic-bezier(.34, 1.56, .64, 1) 1.1s backwards; }
  .hero-recruit-ring { animation: hero-recruit-spin 18s linear infinite; }
  .hero.is-offscreen .hero-recruit-ring { animation-play-state: paused; }
}
/* PC */
@media (min-width: 1000px) {
  .hero-recruit { --badge: clamp(128px, 11.5vw, 170px); box-shadow: 0 6px 0 #151515; }
  .hero-recruit:active { translate: 0 5px; box-shadow: 0 3px 0 #151515; }
}
/* スマホは見出しと重なるので、右寄せのまま見出しの上に積む */
@media (max-width: 600px) {
  .hero-recruit {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    margin: 16px var(--gutter) 0;
  }
  .hero-recruit + .hero-main { padding-top: 32px; }
}
@keyframes hero-recruit-pop {
  from { opacity: 0; scale: .4; rotate: -40deg; }
}
@keyframes hero-recruit-spin {
  to { rotate: 360deg; }
}

/* ---------- Marquee band ---------- */
/* 斜めの境界は背景で描き、動く子要素を含むセクション全体の clip-path を避ける。 */
.band {
  position: relative;
  margin-top: calc(-1 * var(--cut));
  overflow: hidden;
  background:
    linear-gradient(to bottom right, transparent calc(50% - .5px), var(--navy) calc(50% + .5px)) top / 100% var(--cut) no-repeat,
    linear-gradient(var(--navy), var(--navy)) 0 var(--cut) / 100% 100% no-repeat;
  padding: calc(22px + var(--cut)) 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.band-track {
  display: flex;
  width: max-content;
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.band-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.band-group .dia { --s: 12px; --c: var(--cyan); }

/* ---------- Mission / Vision ---------- */
.mv { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
/* 背景のループ動画。上半分に MISSION、下半分に VISION を敷き、上下の端は濃紺へ溶かす。
   文字側（左）は濃紺のグラデーションで沈め、粒子は右側に見せる。 */
.mv-scenes { position: absolute; inset: 0; pointer-events: none; }
.mv-scene {
  position: absolute;
  left: 0;
  right: 0;
  height: 56%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
.mv-scene--mission { top: 0; }
.mv-scene--vision { bottom: 0; }
.mv-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(14, 31, 77, .7) 32%, rgba(14, 31, 77, 0) 66%);
}
.mv-video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.mv-scene--mission .mv-video { object-position: 82% 50%; }
@media (max-width: 859px) {
  .mv-scene::after { background: rgba(14, 31, 77, .5); }
  .mv-scene--vision .mv-video { object-position: 86% 50%; }
}
.mv-bg {
  position: absolute;
  font-family: var(--font-en);
  font-size: clamp(120px, 22vw, 340px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.02em;
  color: transparent;
  white-space: nowrap;
  pointer-events: none;
}
.mv-bg--a { right: -4%; top: 6%; -webkit-text-stroke: 1px rgba(94, 225, 242, .18); }
.mv-bg--b { left: -4%; bottom: 4%; -webkit-text-stroke: 1px rgba(94, 225, 242, .14); }
.mv-inner {
  position: relative;
  padding: clamp(96px, 12vw, 176px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 160px);
}
.mv-block { display: grid; gap: 32px 80px; align-items: start; }
.mv-title { display: flex; flex-direction: column; gap: 14px; }
.mv-en { font-family: var(--font-en); font-size: clamp(44px, 5vw, 72px); font-weight: 500; letter-spacing: .02em; line-height: 1; }
.mv-ja { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--on-dark-3); }
.mv-body { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.mv-head { margin: 0; font-size: clamp(28px, 3.8vw, 52px); font-weight: 900; line-height: 1.45; }
.mv-text { margin: 0; max-width: none; font-size: 20px; line-height: 2.1; color: var(--on-dark); text-wrap: wrap; }
.mv-rule { height: 1px; background: linear-gradient(90deg, #5EE1F2, rgba(255, 255, 255, .08)); }
@media (min-width: 860px) {
  .mv-block { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  /* 英字見出しの位置を保ち、日本語見出し全体の縦中央を合わせる。 */
  .mv-body { transform: translateY(var(--mv-body-offset, 0px)); }
}

/* ---------- Results ---------- */
.results { background: #fff; }
.results-inner { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.stats-big { display: grid; border-top: 1px solid var(--navy); }
.stat-big { padding: 32px 0 36px; display: flex; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--border); min-width: 0; }
.stat-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
.stat-head span { font-family: var(--font-en); font-size: 12px; letter-spacing: .16em; color: var(--blue); }
.stat-val { display: flex; align-items: baseline; gap: 8px; color: var(--navy); }
.stat-num { font-family: var(--font-en); font-size: clamp(80px, 9vw, 136px); font-weight: 400; line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 20px; font-weight: 900; white-space: nowrap; }
@media (max-width: 600px) {
  .stat-big .stat-val { justify-content: center; }
}
@media (min-width: 900px) {
  .stats-big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-big { padding: 36px 32px 40px; }
  .stat-big:first-child { padding-left: 0; }
  .stat-big:last-child { padding-right: 0; }
  .stat-big + .stat-big { border-left: 1px solid var(--border); }
}
.stats-small {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-small { min-width: 0; padding: clamp(28px, 3vw, 44px) clamp(12px, 2vw, 32px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.stat-small > span:first-child { font-size: clamp(13px, 1vw, 15px); font-weight: 700; color: var(--muted); }
.stat-small .stat-val { justify-content: center; gap: 4px; white-space: nowrap; }
.stat-small .stat-val--blue { color: var(--blue); }
.stat-small .stat-num { font-size: clamp(40px, 3.4vw, 68px); line-height: 1; letter-spacing: 0; }
.stat-small .stat-unit { font-size: clamp(14px, 1.1vw, 18px); font-weight: 700; }
@media (min-width: 600px) {
  .stats-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .stats-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.result-gallery { display: flex; flex-direction: column; gap: 16px; }
/* 実績の写真：同じ4:5の写真を隙間なく並べ、左から右へ流す（PC・スマホ共通）。左右のガターを越えて画面幅いっぱいに出す */
.result-strip { margin-inline: calc(-1 * var(--gutter)); overflow: hidden; }
.result-track { display: flex; width: max-content; }
.result-list { display: flex; margin: 0; padding: 0; list-style: none; }
.result-list li { flex: none; width: clamp(180px, 22vw, 320px); aspect-ratio: 4 / 5; background: var(--photo); }
.result-list img { display: block; width: 100%; height: 100%; object-fit: cover; }
.result-strip:hover .result-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .result-strip { overflow-x: auto; }
}

/* ---------- Services（インタラクティブ） ---------- */
.services { position: relative; overflow-x: clip; background: var(--surface-2); }
.services-inner { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: clamp(24px, 4vw, 48px); }
.stage { position: relative; width: min(100%, 900px); aspect-ratio: 1; margin: 0 auto; }
.ring { position: absolute; left: 45.4%; top: 50.8%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.ring--a { width: 128%; }
.ring--b { width: 104%; }
.ring > div { width: 100%; height: 100%; border-radius: 50%; }
.ring--a > div { border: 1.5px solid transparent; border-top-color: #D3DCE8; border-left-color: #DFE6EF; }
.ring--b > div { border: 1px dashed #D3DCE8; }
.tri { position: absolute; inset: 18%; pointer-events: none; }
.tri-inner { position: relative; width: 100%; height: 100%; opacity: .6; transition: opacity .6s; }
.tri img { width: 100%; height: 100%; opacity: .3; filter: saturate(.15) brightness(1.6) blur(.3px); }
.tri-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .75),
    rgba(222, 230, 240, .3) 24%,
    rgba(255, 255, 255, .85) 43%,
    rgba(196, 210, 226, .32) 62%,
    rgba(255, 255, 255, .6));
  -webkit-mask: url('/assets/penrose.webp') center / contain no-repeat;
  mask: url('/assets/penrose.webp') center / contain no-repeat;
}
.stage-center {
  position: absolute;
  left: 45.4%; top: 50.8%;
  z-index: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stage-center > div { display: flex; align-items: center; justify-content: center; text-align: center; transition: opacity .6s; }
.stage-center .en { font-family: var(--font-en); font-size: clamp(16px, 2.4vw, 30px); font-weight: 500; letter-spacing: .08em; color: var(--navy); white-space: nowrap; }
.node-pos { position: absolute; left: var(--node-x); top: var(--node-y); z-index: 2; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.node-pos > div, .node-pos > div > div { width: 100%; height: 100%; }
.node {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, .8vw, 10px);
  cursor: pointer;
  color: var(--ink);
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .7), rgba(222, 230, 240, .5) 62%, rgba(196, 210, 226, .55));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 48px rgba(150, 172, 200, .35), 0 30px 60px -30px rgba(14, 31, 77, .25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .8s var(--ease), opacity .6s, box-shadow .6s;
}
.node:hover { transform: scale(1.05); box-shadow: inset 0 0 48px rgba(94, 225, 242, .35), 0 30px 60px -30px rgba(14, 31, 77, .25); }
.node-no { font-family: var(--font-en); font-size: clamp(10px, 1.1vw, 13px); font-weight: 500; letter-spacing: .2em; color: var(--blue); }
.node-title { font-size: clamp(12px, 1.9vw, 22px); font-weight: 900; line-height: 1.4; letter-spacing: .06em; text-align: center; }
.node-en { font-family: var(--font-en); font-size: clamp(9px, 1vw, 13px); font-weight: 500; letter-spacing: .06em; color: var(--blue); }
.node-mark {
  margin-top: clamp(4px, 1vw, 14px);
  width: clamp(20px, 2.4vw, 28px);
  height: clamp(20px, 2.4vw, 28px);
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* モバイルは中央を囲む3つの円にまとめ、文字とボタンを円の内側に収める。 */
@media (max-width: 600px) {
  .stage { width: min(100%, 380px); }
  .ring { left: 50%; top: 50%; }
  .ring--a { width: 106%; }
  .ring--b { width: 92%; }
  .tri { inset: 19%; transform: rotate(-90deg); }
  .stage-center { left: 50%; top: 49%; }
  .stage-center .en { font-size: clamp(11px, 3vw, 13px); letter-spacing: .04em; }
  .node-pos { width: 42%; }
  .node-pos:has([data-node="0"]) { left: 50%; top: 21.5%; }
  .node-pos:has([data-node="1"]) { left: 75%; top: 72%; }
  .node-pos:has([data-node="2"]) { left: 25%; top: 72%; }
  .node { padding: 12% 6%; gap: 3px; }
  .node-no { font-size: 8px; line-height: 1; letter-spacing: .14em; }
  .node-title { max-width: 100%; font-size: clamp(10px, 3vw, 12px); font-weight: 700; line-height: 1.3; letter-spacing: .02em; }
  .node-en { max-width: 100%; font-size: clamp(8px, 2.2vw, 9px); font-weight: 400; line-height: 1.15; letter-spacing: .01em; text-wrap: balance; }
  .node-mark { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-width: 1px; }
  .node-mark .dia { --s: 5px; }
}
.stage.is-active .node,
.stage.is-active .stage-center > div { opacity: .12; }
.stage.is-active .tri-inner { opacity: .08; }

.detail-wrap { position: absolute; left: 0; right: 0; top: 50%; z-index: 5; display: flex; justify-content: center; transform: translateY(-50%); }
.stage.is-tall .detail-wrap { top: 0; transform: none; }
.detail {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  padding: 12% 15%;
  overflow: hidden;
  background: #F7F8FA;
  box-shadow: 0 60px 120px -40px rgba(14, 31, 77, .4), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.detail-body { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2vw, 22px); text-align: center; }
.detail-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.d-no { font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--blue); }
.d-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; letter-spacing: .1em; color: #1E2A48; }
.d-title:focus { outline: none; }
.badge { padding: 4px 10px; border: 1px solid #1E2A48; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.d-en { font-family: var(--font-en); font-size: 14px; letter-spacing: .06em; color: var(--blue); }
.d-lead { margin: 0; font-size: clamp(20px, 2.6vw, 32px); font-weight: 900; line-height: 1.6; letter-spacing: .06em; color: #1E2A48; text-wrap: balance; }
.d-desc { margin: 0; font-size: 14px; line-height: 2.1; color: var(--muted); text-align: left; text-wrap: pretty; }
.d-features {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  border-top: 1px solid #D9E0EA;
}
.d-features li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px;
  border-bottom: 1px solid #D9E0EA;
  font-size: 14px;
  font-weight: 700;
  color: #1E2A48;
  text-align: left;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 24px 0 32px;
  border: 1.5px solid var(--blue);
  overflow: hidden;
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .4s, color .4s;
}
.btn-more:hover { background: var(--blue); color: #fff; }
.btn-more-label { flex-shrink: 0; white-space: nowrap; }
.btn-more-arrow {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  opacity: 1;
  transition: flex-basis .24s ease, width .24s ease, opacity .2s ease, transform .24s ease;
}
.btn-more-arrow--left {
  flex-basis: 0;
  width: 0;
  opacity: 0;
  transform: translateX(-12px);
}
.btn-more:is(:hover, :focus-visible) .btn-more-arrow--left {
  flex-basis: 25px;
  width: 25px;
  opacity: 1;
  transform: translateX(0);
}
.btn-more:is(:hover, :focus-visible) .btn-more-arrow--right {
  flex-basis: 0;
  width: 0;
  opacity: 0;
  transform: translateX(12px);
}
.btn-more:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.btn-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--blue);
}
.btn-close:hover { color: var(--navy); }
/* 円の中に収まらない幅では、角なしの矩形パネルで表示する */
@media (max-width: 1099px) {
  .detail { aspect-ratio: auto; border-radius: 0; padding: 48px clamp(20px, 5vw, 56px); }
}
@media (max-width: 600px) {
  /* ヘッダー下と画面下に8pxずつ残し、ブラウザの表示領域に高さを合わせる。 */
  .detail {
    height: calc(100vh - var(--service-header-height, var(--header-h)) - 16px - env(safe-area-inset-bottom, 0px));
    height: calc(100dvh - var(--service-header-height, var(--header-h)) - 16px - env(safe-area-inset-bottom, 0px));
    padding: 44px 20px 12px;
  }
  .detail-body {
    flex: 1;
    min-height: 0;
    justify-content: space-between;
    gap: clamp(6px, calc(3dvh - 16px), 12px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .detail-body > * { flex-shrink: 0; }
  .detail-head { gap: 4px; }
  .d-lead { line-height: 1.5; }
  .d-desc { line-height: 1.85; }
  .d-features li { padding-block: clamp(7px, calc(3dvh - 14px), 12px); }
  .detail .btn-more { height: 44px; }
  .detail > .btn-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .btn-close-label { display: none; }
  .btn-close .x-icon { width: 16px; height: 16px; }
}

/* ---------- Companies ---------- */
.companies { overflow: hidden; background: #fff; }
.companies-head {
  padding: var(--section-y) var(--gutter) 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.companies-head .note { font-size: 13px; }
.companies .co-rows { padding-bottom: var(--section-y); }
.companies .co-row { border: 0; }

/* ---------- Members ---------- */
.members { background: var(--ink); color: #fff; }
.members-inner { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.members-title { margin: 0; font-family: var(--font-en); font-size: clamp(28px, 7vw, 104px); font-weight: 500; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.members-title .marker-text {
  color: var(--ink);
  -webkit-text-stroke: 0;
  background-color: var(--cyan);
  padding: 0.02em 0.12em 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.member { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.member .photo { --notch: var(--ink); aspect-ratio: 4 / 5; background: var(--photo-dark); }
.member .photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(18, 20, 24, .45);
  opacity: 0;
  pointer-events: none;
}
.member .photo img { object-position: center top; transition: transform 1.2s var(--ease); }
.member:hover .photo img { transform: scale(1.07); }
.member:hover .photo::before { opacity: 1; }
.member-text { display: flex; flex-direction: column; gap: 8px; }
.member-role { font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--cyan); }
.member-role:empty { min-height: 1lh; }
.member h3 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: .08em; }
.member-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.member-open::after { content: ""; position: absolute; inset: 0; }
.member:hover .member-open { color: var(--cyan); }
.member-open:focus-visible { outline: none; }
.member:has(.member-open:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 6px; }
.member-title { font-size: 12px; font-weight: 700; color: var(--on-dark-3); }

/* メンバー詳細（クリックで開く） */
.member-dialog {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: auto;
  padding: var(--gutter);
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
}
.member-dialog::backdrop { background: rgba(11, 18, 36, .72); }
.member-dialog[open] { display: flex; align-items: center; justify-content: center; }
.member-dialog-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  height: auto;
  max-height: 100%;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  color: var(--ink);
  clip-path: var(--chamfer);
}
.member-dialog-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.member-dialog-close {
  position: absolute;
  top: 18px;
  right: 8px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.member-dialog-close:hover { color: var(--blue); }
.member-dialog-head {
  display: grid;
  grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--border);
}
.member-dialog-photo { --notch: #fff; aspect-ratio: 4 / 5; background: var(--photo); perspective: 1000px; touch-action: manipulation; user-select: none; }
.member-dialog-photo img { filter: none; transform-origin: center center; }
.member-dialog-photo img.is-turning { backface-visibility: hidden; }
.member-dialog-id { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-bottom: 4px; }
.member-dialog-role {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--blue);
}
.member-dialog-role:empty { min-height: 1lh; }
.member-dialog-name {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.25;
  color: var(--navy);
}
.member-dialog-name:focus { outline: none; }
.member-dialog-name:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.member-dialog-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.member-dialog-bio {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 0;
  padding-top: clamp(24px, 3vw, 36px);
  font-size: 15px;
  line-height: 2;
  color: var(--text-sub);
}
.member-dialog-bio p {
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  .member-dialog-head { grid-template-columns: 1fr; align-items: start; }
  .member-dialog-photo { width: min(220px, 72%); }
}
/* 短い画面では余白と行間を詰め、収まらない本文は写真と一緒にスクロールする */
@media (max-height: 760px) {
  .member-dialog { padding-block: 8px; }
  .member-dialog-panel { padding: 32px clamp(20px, 4vw, 36px); }
  .member-dialog-head { gap: 8px; padding-bottom: 8px; }
  .member-dialog-id { gap: 4px; }
  .member-dialog-bio { gap: 0.55em; padding-top: 8px; line-height: 1.6; }
}
@media (max-height: 760px) and (max-width: 640px) {
  .member-dialog-photo { width: min(148px, 52%); }
}
@media (prefers-reduced-motion: no-preference) {
  .member .photo::before { transition: opacity .45s var(--ease); }
  .member-dialog[open] .member-dialog-panel { animation: member-dialog-in .4s var(--ease); }
}
@keyframes member-dialog-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-inner { padding: var(--section-y) var(--gutter); display: grid; gap: 40px 80px; align-items: start; }
.faq-head { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) {
  .faq-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .faq-head { position: sticky; top: 120px; }
}
.faq-list { min-width: 0; border-top: 1px solid var(--navy); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 24px);
  padding: 28px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.faq-q:hover { color: var(--blue); }
.faq-no { flex-shrink: 0; font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: .1em; color: var(--blue); }
.faq-text { flex: 1; font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; line-height: 1.6; }
.faq-sign {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-3);
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--navy);
}
.faq-a { margin: 0; padding: 0 68px 32px 46px; font-size: 14px; line-height: 2.1; color: var(--text-sub); text-wrap: pretty; }
.faq-a.is-animating { overflow: hidden; }
@media (max-width: 600px) {
  .faq-a { padding: 0 0 28px 38px; }
}

/* ---------- Contact ---------- */
.contact {
  --cut: clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to top right, var(--navy) calc(50% - .5px), transparent calc(50% + .5px)) top / 100% var(--cut) no-repeat,
    linear-gradient(var(--navy), var(--navy)) 0 var(--cut) / 100% 100% no-repeat;
  color: #fff;
  padding-top: var(--cut);
}
.contact-inner { padding: calc(clamp(72px, 9vw, 120px) - 40px) var(--gutter) var(--section-y); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.contact-top { display: flex; flex-direction: column; gap: 24px; }
.contact-big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px clamp(24px, 3vw, 48px);
  font-family: var(--font-en);
  font-size: clamp(64px, 12vw, 184px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  transition: color .5s;
}
.contact-big:hover { color: var(--cyan); }
.contact-box {
  width: clamp(64px, 9vw, 128px);
  height: clamp(64px, 9vw, 128px);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: var(--notch-8);
  background: var(--cyan);
}
.contact-box span {
  width: 22%;
  height: 22%;
  border-top: 3px solid var(--navy);
  border-right: 3px solid var(--navy);
  transform: translateX(-12%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.contact-big:is(:hover, :focus-visible) .contact-box span { transform: translateX(-12%) rotate(0deg); }
.contact-lead { margin: 0; max-width: 40em; font-size: clamp(15px, 1.4vw, 18px); line-height: 2; color: var(--on-dark-2); text-wrap: pretty; }
.contact-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid rgba(255, 255, 255, .2); }
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 24px 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
  transition: padding .5s var(--ease), color .3s;
}
.contact-row:hover { padding-left: 20px; color: var(--cyan); }
.contact-row > span:first-child { display: flex; flex-direction: column; gap: 8px; }
.contact-row .en { font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: .22em; color: var(--cyan); }
.contact-row .t { font-size: 18px; font-weight: 900; }
.contact-row .s { font-size: 13px; color: var(--on-dark); }
.contact-row .chev { --s: 9px; transform: rotate(45deg); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13px; color: var(--on-dark); }
.contact-meta a { color: #fff; font-weight: 700; }
.contact-meta a:hover { color: var(--cyan); }
