/* ==========================================================================
   Edge Hub — 共通デザインシステム（全ページ）
   原則: 角丸なし（border-radius: 0）。エッジは clip-path の面取りで表現する。
   ========================================================================== */

:root {
  --navy: #0E1F4D;
  --ink: #0B1224;
  --blue: #2A55E5;
  --cyan: #5EE1F2;
  --sky: #3FB7EE;
  --text-sub: #3D4763;
  --muted: #4A5470;
  --muted-2: #6B7A99;
  --muted-3: #9AA6BF;
  --on-dark: #C9D4EA;
  --on-dark-2: #DCE6FA;
  --on-dark-3: #9FB2D9;
  --border: #E3E9F3;
  --border-2: #D9E2F0;
  --border-3: #C9D4EA;
  --surface: #F3F7FC;
  --surface-2: #EEF1F5;
  --photo: #E4ECF7;
  --photo-dark: #1A2544;
  --footer: #0B1838;

  --font-ja: 'Noto Sans JP', system-ui, sans-serif;
  --font-en: 'Jost', 'Noto Sans JP', sans-serif;
  --font-size-section-heading: clamp(30px, 4vw, 54px);

  --ease: cubic-bezier(.19, 1, .22, 1);
  --gutter: clamp(24px, 4vw, 72px);
  --section-y: clamp(96px, 12vw, 160px);
  --header-h: 72px;
  --page-hero-top: clamp(24px, 3vw, 48px);

  --chamfer: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --chamfer-10: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --notch-8: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  --grad-text: linear-gradient(90deg, #2A55E5, #3FB7EE);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ja);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
button { font: inherit; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- レイアウト ---------- */
.wrap { padding-inline: var(--gutter); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* ---------- タイポ ---------- */
.label {
  display: block;
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.3;
  color: var(--blue);
}
.on-dark .label, .label--cyan { color: var(--cyan); }

/* 通常のセクション見出しは .h2 を使い、ページ側で文字サイズを上書きしない。 */
.h2 { margin: 0; font-size: var(--font-size-section-heading); font-weight: 900; line-height: 1.35; }

/* 行ごとにせり上がる見出し: <span class="rl"><span data-reveal="rise">…</span></span> */
.rl { display: block; overflow: hidden; padding: .04em 0 .12em; margin-bottom: -.08em; }
.rl > span { display: block; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent { color: var(--cyan); }
.accent-blue { color: var(--blue); }
.outline-text { color: transparent; -webkit-text-stroke: 1px var(--cyan); }

.lead { margin: 0; font-size: 15px; line-height: 2.1; color: var(--text-sub); text-wrap: pretty; }
.on-dark .lead { color: var(--on-dark); }
.note { margin: 0; font-size: 12px; color: var(--muted-2); }

/* 見出しブロック（左: ラベル＋見出し / 右: リード） */
.head-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px 80px;
  align-items: end;
}
.head-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- 部品 ---------- */
.chev {
  flex-shrink: 0;
  width: var(--s, 7px);
  height: var(--s, 7px);
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
}
.chev--back { transform: translateX(1px) rotate(-135deg); }
.dia {
  flex-shrink: 0;
  width: var(--s, 6px);
  height: var(--s, 6px);
  transform: rotate(45deg);
  background: var(--c, var(--blue));
}

.x-icon { position: relative; width: 14px; height: 14px; }
.x-icon::before, .x-icon::after { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 100%; background: currentColor; transform: rotate(45deg); }
.x-icon::after { transform: rotate(-45deg); }

/* 塗りCTA（左上・右下を面取り） */
.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 56px;
  padding: 0 28px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .4s, color .4s, border-color .4s, padding .4s;
}
.btn--fill { clip-path: var(--chamfer); background: var(--navy); color: #fff; }
.btn--fill:hover { background: var(--blue); color: #fff; }
.btn--fill .chev { color: var(--cyan); }
.btn--outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--white { clip-path: var(--chamfer); background: #fff; color: var(--navy); font-weight: 900; }
.btn--white:hover { background: var(--cyan); color: var(--navy); }
.btn--white .chev { color: var(--blue); }
.btn--lg { height: 60px; padding: 0 32px; font-size: 16px; }

/* 矢印ボックス付き（Hero） */
.btn--arrow { height: 60px; padding: 0 10px 0 30px; gap: 16px; }
.btn--arrow:hover { padding: 0 14px 0 34px; }
.arrow-box {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan);
  color: var(--navy);
}
.btn--fill .arrow-box .chev { color: var(--navy); }

/* 写真：右上を背景色の三角で切り欠く */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--photo);
}
.photo::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  z-index: 2;
  width: 0; height: 0;
  border-top: 36px solid var(--notch, #fff);
  border-left: 36px solid transparent;
  pointer-events: none;
}
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- スクロール進捗 ---------- */
.progress {
  position: fixed;
  left: 0; top: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, #2A55E5, #5EE1F2);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 36px; margin-left: -10px; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.main-nav > a:not(.header-contact) {
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s;
}
.main-nav > a:not(.header-contact):hover { color: var(--blue); }
.main-nav > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, #2A55E5, #5EE1F2);
}
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  clip-path: var(--chamfer-10);
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .4s;
}
.header-contact:hover { background: var(--blue); color: #fff; }
.header-contact .chev { --s: 6px; color: var(--cyan); transform: rotate(45deg); }

.menu-btn {
  display: none;
  width: 48px; height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--border-2);
  background: #fff;
  cursor: pointer;
}
/* 同じSVG内のストロークで描き、拡大時に別々の矩形の高さが丸められる差を防ぐ。 */
.menu-icon { width: 24px; height: 24px; flex-shrink: 0; }
.menu-icon path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  shape-rendering: geometricPrecision;
  transition: transform .24s var(--ease);
}
.menu-icon path:first-child { transform-origin: 12px 8px; }
.menu-icon path:last-child { transform-origin: 12px 16px; }
.menu-btn[aria-expanded="true"] path:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] path:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu-open { overflow: hidden; }
.mobile-menu-open .site-header { position: fixed; inset-inline: 0; }
.mobile-menu-open .page { padding-top: calc(var(--header-h) + 1px); }
.mobile-menu-open body {
  position: fixed;
  inset-inline: 0;
  top: var(--menu-scroll-top);
  width: 100%;
  overflow: hidden;
}
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 12px var(--gutter) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav > a { flex-shrink: 0; }
.mobile-nav > a:not(.mobile-contact) {
  padding: 16px 0;
  border-bottom: 1px solid #EEF2F8;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav > a[aria-current="page"] { color: var(--blue); }
.mobile-contact {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  clip-path: var(--chamfer-10);
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-contact:hover { background: var(--blue); color: #fff; }

@media (max-width: 1099px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
}
@media (min-width: 1100px) {
  .mobile-nav { display: none !important; }
}

/* ---------- フッター ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--footer); color: #fff; }
.footer-inner {
  padding: 72px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 48px 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.footer-brand img { width: auto; height: 40px; margin-left: -11px; filter: brightness(0) invert(1); }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--on-dark); }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--cyan); }
.footer-col a:not(.footer-form) { font-size: 14px; color: #fff; text-decoration: none; transition: color .3s; }
.footer-col a:not(.footer-form):hover { color: var(--cyan); }
.footer-col p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--on-dark); }
.footer-form {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .4s, color .4s;
}
.footer-form:hover { background: var(--cyan); color: var(--footer); }
.footer-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer-offices div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.8; color: var(--on-dark); }
.footer-offices strong { font-weight: 700; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: #8E9CBC; }
.footer-bottom small { font-family: var(--font-en); font-size: 12px; letter-spacing: .06em; }
.footer-bottom a { color: #8E9CBC; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 下層ページ共通ヒーロー ---------- */
.page-hero { position: relative; overflow: hidden; background: #fff; }
.page-hero--line { border-bottom: 1px solid var(--border); }
.page-hero-inner {
  padding: var(--page-hero-top) var(--gutter) clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted-2); }
.crumbs li { display: flex; gap: 10px; }
.crumbs li + li::before { content: "/"; }
.crumbs a { color: var(--muted-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.on-dark .crumbs, .on-dark .crumbs a { color: var(--on-dark-3); }
.on-dark .crumbs a:hover { color: var(--cyan); }
.on-dark .crumbs [aria-current="page"] { color: #fff; }
.page-hero-en {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
}
.page-hero-en > span > span {
  display: inline-block;
  background: linear-gradient(90deg, #0E1F4D, #2A55E5 60%, #3FB7EE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero-title { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; line-height: 1.5; }
.page-hero .lead { max-width: 40em; }

/* ---------- 参加企業ロゴカルーセル ---------- */
.co-rows { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.co-row { overflow: hidden; border-bottom: 1px solid var(--border); }
.co-row:first-child { border-top: 1px solid var(--border); }
.co-track { display: flex; width: max-content; }
.co-list { display: flex; margin: 0; padding: 0; list-style: none; }
.co-list li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 32px;
  padding: 14px 0 14px 32px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: #1E2A48;
  white-space: nowrap;
}
.co-list img {
  display: block;
  height: clamp(64px, 8vw, 96px);
  width: auto;
  max-width: min(240px, 32vw);
  object-fit: contain;
}
.co-list .dia { --c: var(--cyan); }
.co-row--b .co-list li { color: #8A97B3; }
.co-row--b .co-list .dia { --c: var(--blue); }

/* ---------- スクロールリビール ----------
   html.motion は <head> 内のスクリプトが prefers-reduced-motion でない場合のみ付与する。
   初期状態だけを CSS で持ち、js/site.js が画面に入った要素へ .is-in を付けて再生する。
   up は位置をずらすと判定がずれるので、初期状態は透明だけにして移動はアニメーション側で付ける。 */
.motion [data-reveal="up"]:not(.is-in) { opacity: 0; }
.motion [data-reveal="rise"]:not(.is-in) { transform: translateY(110%) rotate(2deg); }
.motion [data-reveal="fade"]:not(.is-in) { opacity: 0; }
.motion [data-reveal="line"]:not(.is-in) { transform: scaleX(0); }
.motion [data-reveal="mask"]:not(.is-in) { clip-path: inset(100% 0 0 0); }
.motion [data-reveal="zoom"]:not(.is-in) { transform: scale(1.35); }
[data-reveal="line"] { transform-origin: 0 50%; }

/* ---------- ループアニメーション（reduced-motion では停止） ---------- */
@keyframes eh-marquee { to { transform: translateX(-50%); } }
@keyframes eh-spin { to { transform: rotate(360deg); } }
@keyframes eh-float { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
@keyframes eh-drop { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
@keyframes eh-pulse { from { box-shadow: 0 0 0 0 rgba(42, 85, 229, .5); } to { box-shadow: 0 0 0 10px rgba(42, 85, 229, 0); } }

@media (prefers-reduced-motion: no-preference) {
  [data-marquee] { animation: eh-marquee var(--dur, 38s) linear infinite; }
  [data-marquee][data-dir="-1"] { animation-direction: reverse; }
  [data-spin] { animation: eh-spin var(--dur, 160s) linear infinite; }
  [data-spin][data-dir="-1"] { animation-direction: reverse; }
  [data-float] { animation: eh-float var(--dur, 8s) ease-in-out infinite alternate; }
  [data-loop="drop"] { animation: eh-drop 2s cubic-bezier(.65, 0, .35, 1) infinite; }
  [data-loop="pulse"] { animation: eh-pulse 1.6s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
