/*
Theme Name:   Novion (GeneratePress Child)
Theme URI:    https://novion.example.com
Description:  GeneratePress child theme for Novion corporate site
Author:       Novion
Template:     generatepress
Version:      2.0.0
*/

/* =====================================================================
   Google Fonts: Inter
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;750&display=swap');

/* =====================================================================
   CSS カスタムプロパティ（GenSpark デザイントークン）
   ===================================================================== */
:root {
  --bg:      #05070b;
  --bg-2:    #0a0f17;
  --panel:   rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.025);
  --line:    rgba(255, 255, 255, 0.08);
  --text:    #f4f7ff;
  --muted:   #9aa6c0;
  --muted-2: #7b86a0;
  --blue:    #8a9dff;
  --cyan:    #69eaff;
  --max:     1200px;
  --radius:  30px;
  --shadow:  0 26px 90px rgba(0, 0, 0, 0.42);
}

/* =====================================================================
   グローバル・ベース
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* html にも背景色を敷き、固定背景の下端に白地が覗かないようにする */
html { scroll-behavior: smooth; background-color: #05070b; }

/* body: flex column でフッターを必ず最下部に + GenSpark の背景 */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%,  rgba(138, 157, 255, 0.10), transparent 20%),
    radial-gradient(circle at 82% 8%,  rgba(105, 234, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #03050a 0%, #05070b 35%, #060910 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* 微細なグリッドオーバーレイ（GenSpark body::before） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at center, black 26%, transparent 86%);
  mask-image: radial-gradient(circle at center, black 26%, transparent 86%);
  opacity: 0.42;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =====================================================================
   ヘッダー（GeneratePress マークアップを GenSpark 風に）
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.88), rgba(5, 7, 11, 0.55)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding-top: 0;
  padding-bottom: 0;
  gap: 18px;
}

/* ロゴ */
.site-logo,
.site-branding {
  margin: 0;
  display: flex;
  align-items: center;
}
.header-image.is-logo-image,
.custom-logo,
.site-logo img {
  height: 68px !important;
  width: auto !important;
  max-width: none;
  filter: drop-shadow(0 0 10px rgba(105, 234, 255, 0.10));
}
/* テキストのサイトタイトルはロゴと重複するため非表示 */
.site-header .site-title,
.site-header .main-title { display: none !important; }

/* プライマリナビ */
.main-navigation,
.main-navigation ul ul,
.main-navigation .main-nav ul {
  background: transparent !important;
}
.main-navigation {
  margin-left: auto;
}
.main-navigation .main-nav > ul {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-navigation .main-nav ul li a {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 28px 0 !important;
  line-height: 1;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: #ffffff !important;
}

/* Polylang 言語スイッチャーをピル風トグルに */
.pll-parent-menu-item { display: inline-flex !important; align-items: center; width: auto !important; }
/* GeneratePress はネストした <ul> をドロップダウン扱いで画面外へ飛ばすので、静的配置に戻す */
.main-navigation .pll-parent-menu-item > ul.pll-switcher {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* GP はドロップダウンを pointer-events:none + height:0 で隠し hover 時のみ解除する。
     タッチ端末には hover が無くタップが親 li に落ちるため、常時解除する */
  pointer-events: auto !important;
  height: auto !important;
  overflow: visible !important;
  transform: none !important;
  box-shadow: none !important;
  width: auto !important;
  list-style: none;
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pll-parent-menu-item li {
  list-style: none;
  width: auto !important;
  border: 0 !important;
}
/* ナビ共通の a ルール（.main-navigation .main-nav ul li a = (0,2,3)）に
   詳細度で勝つよう (0,3,1) にする。負けると padding 28px 0 で縦長ピルに崩れる */
.main-navigation .main-nav .pll-parent-menu-item a {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  padding: 8px 14px !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.main-navigation .main-nav .pll-parent-menu-item .current-lang a,
.main-navigation .main-nav .pll-parent-menu-item .current-lang > a {
  background: linear-gradient(135deg, rgba(138, 157, 255, 0.24), rgba(105, 234, 255, 0.14));
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(138, 157, 255, 0.18) inset;
}

/* =====================================================================
   コンテンツエリア
   ===================================================================== */
/* body を flex 列にした副作用で #page(.site.grid-container) が交差軸に shrink-to-fit し、
   本文幅が中身（H1 の長さ＝言語）依存で変わっていた（JA が特に狭くなる）。
   GP の .grid-container{width:auto} に勝つよう #page 指定で width:100% を付与し、
   max-width(1200) の範囲で常にフル幅へ広げる。margin:auto の中央寄せは維持。
   ヘッダ/フッタは #page の外（body 直下）なので影響しない。 */
#page { width: 100%; }

.site-content {
  flex: 1 0 auto;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* 内部ページ（Company / Contact）の白背景を透明に */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header,
.entry-content { background: transparent !important; }

/* =====================================================================
   フッター（GeneratePress マークアップを GenSpark 風に）
   ===================================================================== */
.site-footer {
  flex-shrink: 0;
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-info {
  background: transparent !important;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 28px 0 46px;
}
.site-info .inside-site-info {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.site-info .copyright-bar { color: var(--muted-2); }
.site-info a { color: var(--muted-2); }
.site-info a:hover { color: #e8efff; }

/* =====================================================================
   GenSpark コンポーネント（.gs スコープで隔離）
   ===================================================================== */
.gs { position: relative; z-index: 1; }
.gs .container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* --- ヒーロー --- */
.gs .hero { padding: 24px 0 34px; }
.gs .hero-frame {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  background: #090c13;
  isolation: isolate;
}
.gs .hero-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  filter: saturate(0.95) brightness(0.48);
}
.gs .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 10, 0.36), rgba(3, 5, 10, 0.16) 22%, rgba(3, 5, 10, 0.66) 70%, rgba(3, 5, 10, 0.88) 100%),
    radial-gradient(circle at 18% 22%, rgba(138, 157, 255, 0.18), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(105, 234, 255, 0.10), transparent 18%);
  z-index: 1;
}
.gs .hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 82%);
  opacity: 0.28;
  z-index: 1;
}
.gs .hero-line {
  position: absolute;
  left: 7%;
  right: 7%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(138, 157, 255, 0.24), rgba(105, 234, 255, 0.95), rgba(138, 157, 255, 0.24), transparent);
  box-shadow: 0 0 20px rgba(105, 234, 255, 0.3);
  z-index: 2;
  transform: scaleX(0.16);
  animation: laneGrow 1.9s ease 0.2s forwards, lanePulse 2.6s ease-in-out 2.3s infinite;
}
.gs .hero-line.line-a { top: 20%; opacity: 0.44; }
.gs .hero-line.line-b { top: 62%; opacity: 0.22; }
.gs .hero-copy {
  position: relative;
  z-index: 3;
  padding: clamp(34px, 5vw, 56px);
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
}
.gs .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #d7e1ff;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.gs .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  flex-shrink: 0;
}
.gs .hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 650;
  color: var(--text);
}
.gs .hero h1 .soft { color: #adbcff; display: block; }
.gs .hero-sub {
  max-width: 720px;
  margin: 18px 0 0;
  color: #c6d0e8;
  font-size: 17px;
  line-height: 1.85;
}
.gs .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.gs .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, rgba(138, 157, 255, 0.95), rgba(105, 234, 255, 0.76));
  box-shadow: 0 14px 36px rgba(74, 97, 175, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gs .button:hover { transform: translateY(-1px); box-shadow: 0 18px 44px rgba(74, 97, 175, 0.36); }
.gs .button.secondary {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}
.gs .button.secondary:hover { background: rgba(255, 255, 255, 0.07); }

/* --- セクション共通 --- */
.gs .section { padding: 28px 0; }
.gs .section-block {
  padding: 34px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.gs .section-head { margin-bottom: 28px; }
.gs .section-title {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}
.gs .section-intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin-top: 18px;
}

/* --- ビジョン --- */
.gs .vision-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 16px;
  align-items: stretch;
}
.gs .card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(12, 16, 26, 0.84), rgba(7, 9, 14, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}
.gs .card::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(138, 157, 255, 0.12), transparent 62%);
}
.gs .quote {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--text);
}
.gs .quote span { color: #aebdff; display: block; }
.gs .muted { color: var(--muted); }
.gs .vision-points { display: grid; gap: 12px; }
.gs .point {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.gs .point strong {
  display: block;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #f2f6ff;
}
.gs .point > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* --- チームマーキー --- */
.gs .team-marquee-stack { display: grid; gap: 24px; margin-top: 10px; }
.gs .logo-row {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.gs .logo-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: teamMarquee 40s linear infinite;
  will-change: transform;
}
.gs .logo-row.reverse .logo-track {
  animation-duration: 48s;
  animation-direction: reverse;
}
.gs .logo-row:hover .logo-track { animation-play-state: paused; }
.gs .logo-chip {
  flex: 0 0 auto;
  width: 282px;
  height: 138px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.gs .logo-row.reverse .logo-chip { background: rgba(255, 255, 255, 0.014); }
.gs .logo-chip:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}
.gs .logo-chip img {
  display: block;
  width: 194px;
  height: 58px;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.35s ease;
}
.gs .logo-chip.university img { width: 202px; height: 60px; }
.gs .logo-chip.emblem img { width: 118px; height: 92px; }
.gs .logo-chip:hover img { transform: scale(1.02); }

/* =====================================================================
   内部ページ（Company / Contact）の GenSpark パネル
   ===================================================================== */
/* ページタイトル（大見出し） */
.page-template-template-home .entry-header,
.page .entry-header { margin-bottom: 0; }
.page:not(.page-template-template-home) .entry-title {
  margin: 0 0 14px;
  font-size: clamp(42px, 6vw, 92px) !important;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: var(--text) !important;
}
/* 固定ページ（会社概要・お問い合わせ）の本文カラムは読みやすい幅に統一。
   #page は 1200 まで広がるが、横いっぱいだと間延びするため約840pxに抑える。 */
.page:not(.page-template-template-home) .inside-article {
  width: min(calc(100% - 40px), 840px);
  margin: 0 auto;
  padding: 56px 0 80px;
}
/* お問い合わせページ（フォームカードを含む）はフォーム下〜フッタの余白を詰める */
.page:not(.page-template-template-home) .inside-article:has(.gs-form-card) {
  padding-bottom: 28px;
}
.entry-content > *:first-child { margin-top: 0; }

/* GenSpark パネル（Company / Contact 共通） */
.gs-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 28px;
}
.gs-panel {
  margin-top: 10px;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.96) 0%, rgba(17, 21, 30, 0.98) 100%);
  color: #dfe7f8;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}
.gs-panel-head { text-align: center; margin-bottom: 34px; }
.gs-panel-head h3 {
  margin: 0;
  color: #edf2ff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.gs-table { max-width: 980px; margin: 0 auto; }
.gs-row {
  display: grid;
  /* ラベル列は両言語とも約30%固定。これで内容列の頭出しが言語に依らず揃う。 */
  grid-template-columns: 30% 1fr;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gs-row:last-child { border-bottom: 0; }
.gs-label {
  color: #8fa0bd;
  font-size: 14px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}
/* JA の項目名は文字数が少なく（社名/本社=2字, 資本金/連絡先=3字）左端に置くと
   値まで間延びする。均等割り付け（等幅）にしたうえで値側（右）へ寄せる。
   EN は左寄せのままでバランス良好なので触らない（:lang(ja) で JA だけ対象）。 */
.gs-label:lang(ja) {
  width: 4em;                /* 均等割りの基準幅（最長3字＋余裕） */
  margin-left: 4em;          /* 左インデント。小さいほど左・大きいほど右に寄る（auto で右端） */
  letter-spacing: normal;    /* 0.2em を解除し、justify で字間を均等配分 */
  text-align: justify;
  text-align-last: justify;  /* 単一行でも両端揃え＝均等割り付け */
}
.gs-value {
  color: #e5ecfb;
  font-size: 17px;
  line-height: 1.9;
  word-break: break-word;
}
.gs-value a { color: var(--cyan); }

/* =====================================================================
   Contact Form 7（GenSpark 白カード風）
   ===================================================================== */
.gs-form-card {
  margin-top: 10px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 30px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f5fa 100%);
  color: #162235;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.18);
}
.gs-form-card .wpcf7-form { display: grid; gap: 18px; }
/* 2カラム行 */
.gs-form-card .cf7-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.gs-form-card label {
  display: grid;
  gap: 8px;
  color: #1e2b3e;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.gs-form-card input[type="text"],
.gs-form-card input[type="email"],
.gs-form-card input[type="tel"],
.gs-form-card select,
.gs-form-card textarea {
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid rgba(22, 34, 53, 0.26) !important;
  background: transparent !important;
  color: #162235 !important;
  border-radius: 0 !important;
  padding: 10px 0 12px;
  font: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.gs-form-card select {
  cursor: pointer;
  /* 共有ルールの background: transparent !important に負けないよう !important を付ける */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%23162235' d='M7 10 0 0h14z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
  background-size: 12px 9px !important;
  padding-right: 28px;
}
.gs-form-card input::placeholder,
.gs-form-card textarea::placeholder { color: #74839a; }
.gs-form-card input:focus,
.gs-form-card select:focus,
.gs-form-card textarea:focus {
  border-bottom-color: rgba(74, 97, 175, 0.7) !important;
}
.gs-form-card textarea { min-height: 148px; resize: vertical; line-height: 1.7; }
.gs-form-card .cf7-full { grid-column: 1 / -1; }
/* 送信ボタン：通常時からグラデーション＋白文字で目立たせ、
   ホバーはホームのヒーローボタン（.gs .button）と同じ浮き上がり＋影強調 */
.gs-form-card input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, rgba(138, 157, 255, 0.95), rgba(105, 234, 255, 0.76));
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 14px 36px rgba(74, 97, 175, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gs-form-card input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(74, 97, 175, 0.36);
}
.gs-form-note {
  margin-top: 18px;
  color: #6d7d95;
  font-size: 13px;
  line-height: 1.7;
}

/* =====================================================================
   キーフレーム
   ===================================================================== */
@keyframes laneGrow {
  from { transform: scaleX(0.16); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes lanePulse {
  0%, 100% { opacity: 0.88; }
  50%      { opacity: 0.5; }
}
@keyframes teamMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 12px)); }
}

/* =====================================================================
   レスポンシブ
   ===================================================================== */
@media (max-width: 980px) {
  .gs .vision-grid { grid-template-columns: 1fr; }
  .gs .hero-frame,
  .gs .hero-copy { min-height: 64vh; }
  .gs-row { grid-template-columns: 30% 1fr; gap: 24px; }
}
@media (max-width: 780px) {
  .main-navigation .main-nav > ul { gap: 14px; }
  .gs .logo-track { gap: 18px; }
  .gs .logo-chip { width: 232px; height: 112px; padding: 0 20px; }
  .gs .logo-chip img { width: 160px; height: 50px; }
  .gs .logo-chip.university img { width: 170px; height: 52px; }
  .gs .logo-chip.emblem img { width: 98px; height: 76px; }
  .gs-form-card .cf7-row { grid-template-columns: 1fr; }
  .gs-row { grid-template-columns: 1fr; gap: 8px; }
  /* 1カラム（縦積み）では JA の均等割り＋右寄せを解除して通常の左寄せに */
  .gs-label:lang(ja) { width: auto; margin-left: 0; text-align-last: auto; letter-spacing: 0.2em; }
}

/* =====================================================================
   モバイルメニュー（GP のモバイルブレークポイント 768px に合わせる）
   GP は 768px 以下で .mobile-menu-control-wrapper 側のトグルボタンを表示し、
   #site-navigation に .toggled を付けてメニューを開閉する。
   ===================================================================== */
@media (max-width: 768px) {
  /* ハンバーガーボタン：白く・右端に（既定は --contrast=#222 で暗背景に溶けて見えない） */
  .mobile-menu-control-wrapper .menu-toggle {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 22px;
    line-height: 1;
    padding: 14px 4px;
  }
  /* ハンバーガー⇔× の切替アニメーション。
     GP は2つのSVGを display:none/block で切り替えるため遷移できない。
     両方を常時描画して重ね、opacity＋回転のクロスフェードに置き換える。
     .toggled は menu.js がボタン側の wrapper にも付与する */
  .mobile-menu-control-wrapper .menu-toggle .icon-menu-bars {
    position: relative;
    display: inline-flex;
    width: 1em;
    height: 1em;
  }
  .mobile-menu-control-wrapper .menu-toggle .icon-menu-bars svg {
    display: block !important;
    position: absolute;
    inset: 0;
    transition: opacity 0.25s ease, transform 0.3s ease;
  }
  /* 閉時: 三本線を表示、×は逆回転で待機 */
  .mobile-menu-control-wrapper .menu-toggle .icon-menu-bars svg:first-child {
    opacity: 1;
    transform: rotate(0deg);
  }
  .mobile-menu-control-wrapper .menu-toggle .icon-menu-bars svg:nth-child(2) {
    opacity: 0;
    transform: rotate(-90deg);
  }
  /* 開時: 三本線が回転しながら消え、×が回転しながら現れる */
  .mobile-menu-control-wrapper.toggled .menu-toggle .icon-menu-bars svg:first-child {
    opacity: 0;
    transform: rotate(90deg);
  }
  .mobile-menu-control-wrapper.toggled .menu-toggle .icon-menu-bars svg:nth-child(2) {
    opacity: 1;
    transform: rotate(0deg);
  }

  /* メニューはヘッダー直下にオーバーレイ表示（コンテンツを押し下げない）。
     GP は ul を display:none/block で開閉するため遷移できない。
     ul は常時 display:block にし、パネル全体を opacity＋translateY でフェード/スライドさせる。
     項目スタイルは .toggled でなくナビ自体に紐付け、閉アニメーション中も崩れないようにする */
  .has-inline-mobile-toggle #site-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0.99), rgba(5, 7, 11, 0.96)) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.32s ease, visibility 0s linear 0.32s;
  }
  .has-inline-mobile-toggle #site-navigation.toggled {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.28s ease, transform 0.32s ease;
    /* GP はフロー内で開く前提で toggled 時に margin-top:1.5em を足す。
       オーバーレイではヘッダーとの隙間になるだけなので打ち消す */
    margin-top: 0;
  }
  .has-inline-mobile-toggle #site-navigation .main-nav > ul {
    display: block !important;
    padding: 8px 0 6px;
  }
  /* 言語スイッチャーの常時 visible/pointer-events 解除（デスクトップ用）が
     閉状態でも効いてしまい、不可視のまま当たり判定が残るのを防ぐ。
     visibility はパネルのフェードアウト完了まで遅延させる */
  .has-inline-mobile-toggle #site-navigation:not(.toggled) .pll-parent-menu-item > ul.pll-switcher {
    visibility: hidden !important;
    pointer-events: none !important;
    transition: visibility 0s linear 0.32s;
  }

  /* メニュー項目：文字を大きく・左に余白（暗背景でもメニューの存在がわかるように）
     （直下の a のみ。言語スイッチャーの a は対象外） */
  .has-inline-mobile-toggle #site-navigation .main-nav > ul > li > a {
    font-size: 15px !important;
    padding: 18px 32px !important;
  }

  /* 言語スイッチャー：GP の toggled li{display:block} で縦に潰れるのを防ぎ、
     デスクトップ同様のピル型（EN|JA 横並び）に戻す */
  .has-inline-mobile-toggle #site-navigation .pll-parent-menu-item {
    padding: 14px 32px 22px;
  }
  .has-inline-mobile-toggle #site-navigation .pll-parent-menu-item li {
    display: inline-flex !important;
    clear: none;
  }
  .has-inline-mobile-toggle #site-navigation .main-nav .pll-parent-menu-item a {
    padding: 10px 18px !important; /* タップしやすいよう少し大きめ */
  }
}

/* =====================================================================
   イントロ スプラッシュ（GenSpark モック .intro 移植・4.1秒で自動消滅）
   laneGrow / lanePulse は上の既存 @keyframes を流用する
   ===================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(9,14,26,.98), rgba(1,2,5,.995));
  animation: introFade 1.05s ease 4.1s forwards;
}
.intro-wrap {
  position: relative;
  width: min(84vw, 760px);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}
.intro-wrap::before {
  content: "";
  position: absolute;
  inset: 14% 10%;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(138,157,255,.06) inset;
}
.intro-logo {
  width: min(62vw, 500px);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  filter: drop-shadow(0 0 20px rgba(105,234,255,.18));
  animation: logoReveal 1.3s cubic-bezier(.19,1,.22,1) .9s forwards;
}
.intro-lane {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 28%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(138,157,255,.18), rgba(105,234,255,1), rgba(138,157,255,.18), transparent);
  box-shadow: 0 0 24px rgba(105,234,255,.38), 0 0 72px rgba(138,157,255,.24);
  animation: laneGrow 1.9s ease .2s forwards, lanePulse 2.6s ease-in-out 2.3s infinite;
}
.intro-lane::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  filter: blur(1.8px);
  animation: sweep 1.7s linear .2s 2;
}
.intro-copy {
  position: absolute;
  bottom: 11%;
  width: 100%;
  text-align: center;
  opacity: 0;
  color: rgba(225,232,255,.62);
  font-size: 14px;
  letter-spacing: .38em;
  text-transform: uppercase;
  animation: copyReveal .85s ease 2s forwards;
}
@keyframes introFade {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* スプラッシュはヘッダより低いスタッキング（.site-content 内）にあるため、
   スプラッシュ表示中はヘッダを隠し、スプラッシュが消えるのに合わせてフェードインする。
   home（/en/ /ja/）のみに適用。introFade は 4.1s 開始・約 1.05s で完了。 */
body.home .site-header {
  opacity: 0;
  animation: headerReveal 0.7s ease 4.4s forwards;
}
@keyframes headerReveal {
  to { opacity: 1; }
}
@keyframes logoReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sweep {
  from { transform: translate(-28%, -50%); opacity: 0; }
  10%  { opacity: 1; }
  to   { transform: translate(28%, -50%); opacity: 0; }
}
@keyframes copyReveal {
  to { opacity: 1; transform: translateY(0); }
}
