/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

:root {
  --blue-primary: #0057b7;
  --blue-dark: #003d8f;
  --blue-light: #e8f2ff;
  --blue-accent: #00d2ff; /* IT・未来感のある明るい青 */
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-mid: #e0e6ed;
  --gray-text: #555f6e;
  --text-dark: #1a2332;
  --font-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 4px 20px rgba(0, 87, 183, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 87, 183, 0.15);
  --glass: rgba(255, 255, 255, 0.8);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===========================
   Container
=========================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Header
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--blue-primary);
  display: flex;
  flex-direction: column;
}

/* 枠線の装飾 */
.stylish-frame {
  position: relative;
  padding: 10px;
}

.stylish-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--blue-primary);
  border-left: 2px solid var(--blue-primary);
}

.stylish-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--blue-accent);
  border-right: 2px solid var(--blue-accent);
}

.logo-text span {
  color: var(--text-dark);
  font-size: 0.65rem;
  font-weight: 500;
  display: block;
  letter-spacing: 0.05em;
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--blue-primary);
  background: var(--blue-light);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active {
  color: var(--blue-primary);
}

.nav-link.active::after {
  width: 60%;
}

.nav-cta {
  background: var(--blue-primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===========================
   Hero
=========================== */
/* ===========================
   Hero（メインビジュアル）
=========================== */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #040d1c 0%, #081428 45%, #0a1e40 100%);
}

/* ドットグリッド背景 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 180, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* 中央右の光彩 */
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.25) 0%, transparent 70%);
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* 左下の補助グロー */
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, transparent 70%);
  left: -100px;
  bottom: -100px;
  pointer-events: none;
}

/* パーティクル */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.5);
  animation: particleRise linear infinite;
}

.hero-particles span:nth-child(1)  { width:4px;  height:4px;  left:8%;   animation-duration:12s; animation-delay:0s;    }
.hero-particles span:nth-child(2)  { width:3px;  height:3px;  left:16%;  animation-duration:9s;  animation-delay:2s;    }
.hero-particles span:nth-child(3)  { width:5px;  height:5px;  left:24%;  animation-duration:14s; animation-delay:4s;    }
.hero-particles span:nth-child(4)  { width:3px;  height:3px;  left:33%;  animation-duration:10s; animation-delay:1s;    }
.hero-particles span:nth-child(5)  { width:4px;  height:4px;  left:42%;  animation-duration:11s; animation-delay:3s;    }
.hero-particles span:nth-child(6)  { width:2px;  height:2px;  left:51%;  animation-duration:8s;  animation-delay:5s;    }
.hero-particles span:nth-child(7)  { width:5px;  height:5px;  left:60%;  animation-duration:13s; animation-delay:0.5s;  }
.hero-particles span:nth-child(8)  { width:3px;  height:3px;  left:68%;  animation-duration:10s; animation-delay:2.5s;  }
.hero-particles span:nth-child(9)  { width:4px;  height:4px;  left:76%;  animation-duration:15s; animation-delay:1.5s;  }
.hero-particles span:nth-child(10) { width:2px;  height:2px;  left:84%;  animation-duration:9s;  animation-delay:3.5s;  }
.hero-particles span:nth-child(11) { width:3px;  height:3px;  left:12%;  animation-duration:11s; animation-delay:6s;    background:rgba(100,180,255,0.4); }
.hero-particles span:nth-child(12) { width:4px;  height:4px;  left:28%;  animation-duration:13s; animation-delay:7s;    background:rgba(100,180,255,0.4); }
.hero-particles span:nth-child(13) { width:3px;  height:3px;  left:55%;  animation-duration:10s; animation-delay:8s;    background:rgba(100,180,255,0.4); }
.hero-particles span:nth-child(14) { width:5px;  height:5px;  left:72%;  animation-duration:12s; animation-delay:4.5s;  background:rgba(100,180,255,0.4); }
.hero-particles span:nth-child(15) { width:2px;  height:2px;  left:90%;  animation-duration:9s;  animation-delay:6.5s;  background:rgba(100,180,255,0.4); }

@keyframes particleRise {
  0%   { transform: translateY(0) scale(0);   opacity: 0; }
  10%  { opacity: 1;                                      }
  85%  { opacity: 0.6;                                    }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* 2カラムレイアウト */
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* ===== 左：テキスト ===== */
.hero-text {
  animation: heroSlideLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
}

/* 背景の大型アウトラインテキスト */
.hero-text::before {
  content: 'GATE';
  position: absolute;
  font-size: clamp(120px, 18vw, 200px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 210, 255, 0.06);
  top: -40px;
  left: -20px;
  pointer-events: none;
  letter-spacing: -0.06em;
  line-height: 1;
  z-index: 0;
  white-space: nowrap;
  user-select: none;
}

@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: rgba(0, 210, 255, 0.85);
  border: none;
  border-bottom: 1px solid rgba(0, 210, 255, 0.25);
  padding: 0 0 10px 0;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #00d2ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00d2ff;
  animation: badgePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1);   }
  50%       { opacity: 0.3; transform: scale(1.6); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero-title em {
  font-style: normal;
  display: inline;
  background: linear-gradient(90deg, #ffffff 0%, #00d2ff 40%, #4a90d9 70%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: titleGradient 5s linear infinite;
  margin-top: 6px;
}

@keyframes titleGradient {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* プライマリボタン：グロースタイル */
.hero-buttons .btn-primary {
  padding: 16px 36px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(0, 87, 183, 0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-buttons .btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 87, 183, 0.8), 0 0 80px rgba(0, 87, 183, 0.3);
  transform: translateY(-3px);
}

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-3px);
}

/* ===== 右：ビジュアル ===== */
.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroSlideRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* オービットリング */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

/* 最外リング：超大、極薄 */
.hero-ring--xouter {
  width: 660px;
  height: 660px;
  border: 1px solid rgba(0, 210, 255, 0.05);
  animation: orbitSpin 40s linear infinite reverse;
}

.hero-ring--outer {
  width: 520px;
  height: 520px;
  border-color: rgba(0, 210, 255, 0.16);
  animation: orbitSpin 24s linear infinite;
}

.hero-ring--mid {
  width: 400px;
  height: 400px;
  border: 1px solid rgba(74, 144, 217, 0.25);
  animation: orbitSpin 16s linear infinite reverse;
}

.hero-ring--inner {
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(0, 210, 255, 0.12);
  animation: orbitSpin 30s linear infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* リング上の光点 */
.hero-ring-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00d2ff;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 16px 5px rgba(0, 210, 255, 0.7);
}

.hero-ring--mid .hero-ring-dot {
  width: 8px;
  height: 8px;
  top: auto;
  bottom: -4px;
  background: #4a90d9;
  box-shadow: 0 0 12px 4px rgba(74, 144, 217, 0.7);
}

.hero-ring-dot--inner {
  width: 6px;
  height: 6px;
  top: auto;
  bottom: -3px;
  left: 30%;
  background: rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 8px 3px rgba(0, 210, 255, 0.4);
}

/* 中央グローブ */
.hero-globe {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0d3080, #050e1e);
  border: 1px solid rgba(0, 210, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(0, 210, 255, 0.08),
    0 0 40px rgba(0, 87, 183, 0.7),
    0 0 100px rgba(0, 87, 183, 0.35),
    0 0 180px rgba(0, 87, 183, 0.15),
    inset 0 0 50px rgba(0, 210, 255, 0.06);
}

/* フローティングタグ — ターミナルスタイル */
.hero-tag {
  position: absolute;
  z-index: 3;
  background: rgba(5, 14, 30, 0.75);
  border: 1px solid rgba(0, 210, 255, 0.2);
  backdrop-filter: blur(16px);
  border-radius: 4px;
  padding: 7px 14px;
  color: rgba(0, 210, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
}

.hero-tag:nth-child(5)  { animation: floatA 3.2s ease-in-out infinite; }
.hero-tag:nth-child(6)  { animation: floatB 2.8s ease-in-out infinite 0.4s; }
.hero-tag:nth-child(7)  { animation: floatA 3.5s ease-in-out infinite 0.8s; }
.hero-tag:nth-child(8)  { animation: floatB 3.0s ease-in-out infinite 1.2s; }
.hero-tag:nth-child(9)  { animation: floatA 2.9s ease-in-out infinite 0.6s; }

@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(10px); }
}

/* ===== 統計バー ===== */
/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 0;
    gap: 32px;
  }

  .hero-visual {
    height: 400px;
  }

  .hero-ring--outer { width: 360px; height: 360px; }
  .hero-ring--mid   { width: 280px; height: 280px; }
  .hero-ring--inner { width: 220px; height: 220px; }
  .hero-globe       { width: 170px; height: 170px; font-size: 3.8rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 87, 183, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 87, 183, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}

.btn-outline:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}


/* ===========================
   Home Mission
=========================== */
/* ラッパー：sticky が正しく動作するよう overflow を設定しない */
.mission_wrapper {
  position: relative;
  /* home_mission と同じグラデーション＋アニメーションを適用して背景のずれをなくす */
  background: linear-gradient(160deg, #050e1e 0%, #0a1e40 20%, #0057b7 50%, #0096d6 65%, #003a8a 85%, #050e1e 100%);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}

.home_mission {
  position: relative;
  /* メインビジュアルより短く設定 */
  min-height: 60vh;
  /* 背景をラッパーに寄せることで、スクロール時の境界線の発生を防ぐ */
  background: transparent;
  display: flex;
  align-items: center;
  overflow: clip;
  /* 上下を等しく確保してセンター配置 */
  padding: 80px 0;
}

/* ドットグリッドオーバーレイ */
.mission-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 210, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 50%, black 30%, transparent 100%);
  z-index: 0;
}

/* is-active 時：グラデーションが流れるように動く */
/* is-active 時の重なりを解消 */
.home_mission.is-active {
  background: transparent;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 浮遊オーブ */
.bg_orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  filter: blur(70px);
  transition: opacity 1.5s ease 0.8s;
}

.orb1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.32), transparent 70%);
  top: -160px;
  left: -100px;
  animation: floatOrb1 14s ease-in-out infinite;
}

.orb2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.22), transparent 70%);
  bottom: -80px;
  right: 5%;
  animation: floatOrb2 18s ease-in-out infinite;
}

.orb3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(80, 180, 255, 0.2), transparent 70%);
  top: 40%;
  left: 45%;
  animation: floatOrb3 12s ease-in-out infinite;
}

.orb4 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.18), transparent 70%);
  top: 10%;
  right: 20%;
  animation: floatOrb1 20s ease-in-out infinite reverse;
}

.orb5 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(100, 200, 255, 0.2), transparent 70%);
  bottom: 15%;
  left: 30%;
  animation: floatOrb2 16s ease-in-out infinite reverse;
}

/* is-active 時：オーブをフェードイン */
.home_mission.is-active .orb {
  opacity: 1;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(70px, 50px); }
  66%       { transform: translate(-30px, 90px); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-90px, -70px); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(60px, -40px); }
  66%      { transform: translate(-50px, 60px); }
}

/* 背景の装飾円 */
.home_mission::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 100px solid rgba(255, 255, 255, 0.03);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

/* ブラインド（カーテン）レイヤー */
.blind {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 10;
  pointer-events: none;
}

.blind span {
  flex: 1;
  background: var(--white);
  transform-origin: top center;
  transform: scaleY(1);
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1),
              opacity 0.5s ease 0.4s;
}

/* ブラインド各帯のディレイ */
.blind span:nth-child(1) { transition-delay: 0s; }
.blind span:nth-child(2) { transition-delay: 0.08s; }
.blind span:nth-child(3) { transition-delay: 0.16s; }
.blind span:nth-child(4) { transition-delay: 0.24s; }
.blind span:nth-child(5) { transition-delay: 0.32s; }

/* アニメーション発火時：帯が上方向に収縮して消える */
.home_mission.is-active .blind span {
  transform: scaleY(0);
  opacity: 0;
}

/* コンテンツレイアウト */
.mission_inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

/* テキストエリア：初期状態（非表示） */
.txtarea {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.txtarea .section-label {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  display: block;
}

/* アニメーション発火時：テキスト表示 */
.home_mission.is-active .txtarea {
  opacity: 1;
  transform: translateY(0);
}

.mission_title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.mission_title em {
  font-style: normal;
  background: linear-gradient(135deg, #ffffff 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission_desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 2;
}

/* Mission内のsection-label：シアンのピルスタイル */
.home_mission .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* 画像グリッド */
.img_area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* 画像カード：初期状態（非表示） */
.img_anime {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 52px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  backdrop-filter: blur(10px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              background 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* カード内シマー */
.img_anime::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.6s ease;
}

.img_anime:hover::before {
  left: 160%;
}

.img_anime:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-6px) !important;
}

.img_anime span {
  display: block;
  font-size: 3.6rem;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.3));
}

.img_anime:hover span {
  transform: scale(1.15);
}

.img_anime p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* irregular：不規則なタイミングで出現 */
.home_mission.is-active .img_anime.irregular:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.home_mission.is-active .img_anime.irregular:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

.home_mission.is-active .img_anime.irregular:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.85s;
}

.home_mission.is-active .img_anime.irregular:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.15s;
}

/* スティッキー演出用ラッパー（JSで制御） */
.home_mission.is-pinned {
  position: sticky;
  top: 72px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .home_mission {
    padding: 60px 0;
    min-height: auto;
  }

  .mission_inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .img_area {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   Section Base
=========================== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt-card {
  background-color: var(--gray-light);
  background-image: radial-gradient(circle, rgba(0, 87, 183, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}

/* サービス詳細の alt-card：section が full-width のため背景は自然に全幅に広がる */
.service-detail.section-alt-card {
  padding-top:    110px;
  padding-bottom: 110px;
}


.service-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ドットパターンの背景装飾 */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--gray-mid) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  color: var(--blue-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--gray-text);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===========================
   Services Section (Top)
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-card-body {
  padding: 32px 28px;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-hover);
  transform: translateY(-10px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* ===========================
   Mission Cards (About Page)
=========================== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 0;
}

.mission-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--blue-light);
  border-radius: 24px;
  border: 1px solid rgba(0, 87, 183, 0.1);
  transition: var(--transition);
  position: relative;
}

.mission-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
  border-color: var(--blue-accent);
}

.mission-card-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: block;
}

.mission-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.mission-card-text {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.8;
}

/* 装飾アクセントライン */
.accent-line-top {
  position: relative;
  padding-top: 20px;
}

.accent-line-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--blue-primary);
}

.accent-line-top-center::before {
  left: 50%;
  transform: translateX(-50%);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.service-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.service-card-desc {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
  transition: var(--transition);
}

.service-card-link:hover {
  gap: 8px;
}

/* ===========================
   Services Home Section
=========================== */
.services-home-section {
  background-color: #ddeeff;
  background-image:
    radial-gradient(circle, rgba(0, 87, 183, 0.1) 1px, transparent 1px),
    linear-gradient(160deg, #d6eaff 0%, #e8f4ff 50%, #cfe3ff 100%);
  background-size: 28px 28px, 100% 100%;
  position: relative;
  overflow: hidden;
}

/* 大きな装飾リング */
.services-home-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 60px solid rgba(0, 87, 183, 0.06);
  top: -250px;
  right: -200px;
  pointer-events: none;
}

.services-home-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 40px solid rgba(0, 87, 183, 0.05);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

/* ===========================
   About Home Section
=========================== */
.about-home-section {
  background-color: #f5f8ff;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 48px,
      rgba(0, 87, 183, 0.025) 48px,
      rgba(0, 87, 183, 0.025) 49px
    ),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 50%, #f5f8ff 100%);
  position: relative;
  overflow: hidden;
}

/* 右上にブルーのグロー */
.about-home-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.07), transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

/* サービスカード：ホバーで上部アクセントライン */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ===========================
   About Preview Section
=========================== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-main {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
  border-radius: 16px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.about-visual-main::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.08);
  top: -100px;
  right: -100px;
}

.about-visual-main::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.06);
  bottom: -80px;
  left: -60px;
}

.about-visual-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: var(--shadow-hover);
  text-align: center;
}

.about-visual-badge strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-primary);
  line-height: 1;
}

.about-visual-badge span {
  font-size: 0.75rem;
  color: var(--gray-text);
}

.about-text .section-header {
  text-align: left;
  margin-bottom: 28px;
}

.about-text .section-desc {
  margin: 0;
  text-align: left;
}

.about-text p {
  color: var(--gray-text);
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
}

.about-feature-item::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.about-link:hover {
  gap: 14px;
}

/* About フローティングバッジ */
.about-float-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 14px;
  padding: 12px 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: floatBadge 4s ease-in-out infinite;
}

.about-float-badge--a {
  top: 16px;
  right: -16px;
  animation-delay: 0s;
}

.about-float-badge--b {
  bottom: 60px;
  left: -16px;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.afb-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.afb-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-text);
  white-space: nowrap;
}

/* ===========================
   CTA Section
=========================== */
.cta-section {
  /* パララックス効果と商用利用可能な画像 */
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.9) 0%, rgba(0, 61, 143, 0.9) 100%), url('../images/cta-bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 80px solid rgba(255,255,255,0.05);
  top: -200px;
  right: -100px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 50px solid rgba(255,255,255,0.04);
  bottom: -150px;
  left: -50px;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-desc {
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  font-size: 1rem;
}

.btn-white {
  background: var(--white);
  color: var(--blue-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* ===========================
   Footer
=========================== */
.footer {
  background: #0d1a2d;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.5);
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-col-title {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ===========================
   Page Hero (inner pages)
=========================== */
.page-hero {
  /* パララックス効果と青みがかった幾何学・ネットワーク画像 */
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.85) 0%, rgba(0, 61, 143, 0.85) 100%), url('../images/page-hero-bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-bottom: 64px;
  padding-top: calc(72px + 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.06);
  top: -150px;
  right: -100px;
}

.page-hero-label {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===========================
   Services Nav
=========================== */
.services-nav {
  background: var(--blue-dark);
  position: sticky;
  top: 72px;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services-nav-grid {
  display: flex;
  align-items: stretch;
}

.services-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}

.services-nav-item:last-child {
  border-right: none;
}

.services-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.services-nav-item:hover,
.services-nav-item.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.services-nav-item:hover::after,
.services-nav-item.is-active::after {
  transform: scaleX(1);
}

.services-nav-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 0.08em;
}

.services-nav-icon {
  font-size: 1.3rem;
}

.services-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .services-nav-label { display: none; }
  .services-nav-item { padding: 14px 8px; }
  .ss-tags {
    flex-direction: column;
    align-items: center;
  }
  .ss-connector { line-height: 1; }
}

/* ===========================
   Services Synergy
=========================== */
.services-synergy {
  position: relative;
  background: linear-gradient(160deg, #0a0c10 0%, #141820 30%, #1a2535 60%, #141820 80%, #0a0c10 100%);
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
  padding: 100px 0;
  overflow: clip;
  text-align: center;
}

.services-synergy-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ss-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ss-orb1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.2), transparent 70%);
  top: -120px;
  left: -60px;
  animation: floatOrb1 15s ease-in-out infinite;
}

.ss-orb2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.1), transparent 70%);
  bottom: -80px;
  right: 5%;
  animation: floatOrb2 18s ease-in-out infinite;
}

.ss-orb3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.12), transparent 70%);
  top: 40%;
  left: 45%;
  animation: floatOrb3 12s ease-in-out infinite;
}

.ss-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.ss-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin: 20px 0 24px;
  letter-spacing: -0.02em;
}

.ss-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 48px;
}

.ss-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.ss-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 10px 22px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 44px;
  box-sizing: border-box;
}

.ss-tag:hover {
  background: rgba(0, 87, 183, 0.35);
  border-color: rgba(0, 210, 255, 0.4);
}

.ss-connector {
  color: rgba(0, 210, 255, 0.7);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 44px;
}

/* ===========================
   Services Page
=========================== */

/* セクション全体：ドットグリッド背景 */
.services-section {
  background-image: radial-gradient(circle, rgba(0, 87, 183, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: var(--white);
}


.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-mid);
  position: relative;
  overflow: hidden;
  /* ヘッダー(72px) + サービスナビ(~90px) + 余白 = 172px */
  scroll-margin-top: 172px;
}

/* 各サービスセクションの上部にグラデーションラインアクセント */
.service-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), var(--blue-accent), transparent);
  opacity: 0.5;
}

/* コーナーの装飾グロー（奇数：右上、偶数：左上） */
.service-detail::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.05), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.service-detail.section-alt-card::after {
  right: auto;
  left: -100px;
}


.service-detail:last-child {
  border-bottom: none;
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.service-detail-inner.reverse {
  direction: rtl;
}

.service-detail-inner.reverse > * {
  direction: ltr;
}

.service-detail-visual {
  background: var(--blue-light);
  border-radius: 16px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.service-detail-visual::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 87, 183, 0.08);
  bottom: -80px;
  right: -60px;
}

.service-detail-label {
  color: var(--blue-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-detail-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.service-detail-desc {
  color: var(--gray-text);
  line-height: 1.9;
  margin-bottom: 24px;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--gray-light);
  border-left: 3px solid var(--blue-primary);
  border-radius: 0 8px 8px 0;
  padding: 9px 16px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.service-feature-item:hover {
  background: var(--blue-light);
  border-color: var(--blue-accent);
}

.service-feature-item::before {
  content: '✓';
  color: var(--blue-primary);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ===========================
   About Philosophy
=========================== */
.about-philosophy {
  position: relative;
  background: linear-gradient(160deg, #0a0c10 0%, #141820 30%, #1e2530 60%, #141820 80%, #0a0c10 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  padding: 110px 0;
  overflow: clip;
  text-align: center;
}

.about-philosophy-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ap-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ap-orb1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.2), transparent 70%);
  top: -160px;
  left: -80px;
  animation: floatOrb1 16s ease-in-out infinite;
}

.ap-orb2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.1), transparent 70%);
  bottom: -100px;
  right: -60px;
  animation: floatOrb2 20s ease-in-out infinite;
}

.ap-orb3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.12), transparent 70%);
  top: 30%;
  left: 42%;
  animation: floatOrb3 14s ease-in-out infinite;
}

.ap-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.ap-quote {
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.55;
  margin: 24px 0 32px;
  letter-spacing: -0.01em;
}

.ap-quote em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
}

.ap-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 2;
}

/* ===========================
   About Stats
=========================== */
.about-stats-section {
  background: var(--gray-light);
  /* Our Mission以降のセクション余白を統一 */
  padding: 80px 0;
}

/* Stats以降の兄弟セクションも余白を揃える */
.about-stats-section ~ .section {
  padding: 80px 0;
}

/* About Stats・Strengths・Overview の section-header 下余白を縮小 */
.about-stats-section .section-header,
.about-stats-section ~ .section .section-header {
  margin-bottom: 48px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.about-stat-item {
  padding: 48px 20px 40px;
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.about-stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 87, 183, 0.12);
  border-color: var(--blue-primary);
}

.about-stat-item:hover::before {
  transform: scaleX(1);
}

.about-stat-num {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.about-stat-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.about-stat-desc {
  font-size: 0.8rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ===========================
   About Strengths
=========================== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.strength-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.strength-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 87, 183, 0.1);
  border-color: var(--blue-primary);
}

.strength-card:hover::after {
  transform: scaleX(1);
}

.strength-icon {
  font-size: 2.6rem;
  margin-bottom: 18px;
  display: block;
}

.strength-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.strength-text {
  color: var(--gray-text);
  font-size: 0.93rem;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .about-philosophy {
    padding: 80px 0;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strengths-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Company Overview Page
=========================== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  overflow: hidden;
}

.overview-row {
  display: contents;
}

.overview-row > dt,
.overview-row > dd {
  padding: 22px 28px;
  border-bottom: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
}

.overview-row > dt {
  background: var(--blue-light);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-dark);
}

.overview-row > dd {
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.95rem;
}

.overview-row:last-child > dt,
.overview-row:last-child > dd {
  border-bottom: none;
}

/* ===========================
   Contact Page
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 64px;
}

.contact-info-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Form */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-required {
  color: #e53e3e;
  margin-left: 4px;
  font-size: 0.75rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.1);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-top: 6px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  justify-content: center;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.privacy-check input {
  margin-top: 3px;
  accent-color: var(--blue-primary);
}

.privacy-check label {
  font-size: 0.88rem;
  color: var(--gray-text);
}

.privacy-check a {
  color: var(--blue-primary);
  text-decoration: underline;
}

/* ===========================
   Breadcrumb
=========================== */
.breadcrumb {
  padding: 16px 0;
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-text);
}

.breadcrumb-list a {
  color: var(--blue-primary);
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--gray-mid);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top: 1px solid var(--gray-mid);
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding: calc(72px + 64px) 0 64px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail-inner,
  .service-detail-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-row > dt {
    border-bottom: none;
    padding-bottom: 8px;
  }

  .overview-row > dd {
    padding-top: 8px;
  }
}

/* ===========================
   Scroll Animation System
=========================== */

/* --- 初期状態 --- */
[data-anim] {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim="fade-up"]    { transform: translateY(56px); }
[data-anim="fade-down"]  { transform: translateY(-40px); }
[data-anim="fade-left"]  { transform: translateX(70px); }
[data-anim="fade-right"] { transform: translateX(-70px); }
[data-anim="scale-in"]   { transform: scale(0.82); filter: blur(6px); }
[data-anim="flip-up"]    { transform: perspective(700px) rotateX(22deg) translateY(44px); transform-origin: bottom center; }
[data-anim="stagger"]    { opacity: 1; transform: none; }  /* ラッパー自体は透明にしない */

/* --- 発火後 --- */
[data-anim].is-animated {
  opacity: 1;
  transform: none;
  filter: none;
}

/* stagger 子要素 */
[data-stagger] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-stagger].is-animated {
  opacity: 1;
  transform: none;
}

/* --- Section Label スキャン光彩 --- */
.section-label {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.section-label::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  skewX: -20deg;
  transition: none;
}

.section-label.label-scan::after {
  animation: labelScan 0.8s ease 0.1s forwards;
}

@keyframes labelScan {
  0%   { left: -120%; }
  100% { left: 150%;  }
}

/* --- Service Card シマーホバー --- */
.service-card {
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 40%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.18) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover::before {
  animation: cardShimmer 0.65s ease forwards;
}

@keyframes cardShimmer {
  0%   { left: -60%; }
  100% { left: 130%; }
}

/* --- CTA フローティングオーブ --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orbFloat ease-in-out infinite alternate;
}

.cta-orb:nth-child(1) {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,210,255,0.12) 0%, transparent 70%);
  top: -80px; left: -60px;
  animation-duration: 6s;
}

.cta-orb:nth-child(2) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,100,255,0.1) 0%, transparent 70%);
  bottom: -120px; right: -80px;
  animation-duration: 8s; animation-delay: 1s;
}

.cta-orb:nth-child(3) {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,210,255,0.08) 0%, transparent 70%);
  top: 50%; right: 25%;
  animation-duration: 5s; animation-delay: 2s;
}

@keyframes orbFloat {
  from { transform: translateY(0) scale(1);   }
  to   { transform: translateY(-30px) scale(1.08); }
}

/* --- About ビジュアル グローパルス --- */
.about-visual-main {
  animation: visualGlow 4s ease-in-out infinite alternate;
}

@keyframes visualGlow {
  from { box-shadow: 0 0 30px rgba(0,87,183,0.2); }
  to   { box-shadow: 0 0 60px rgba(0,87,183,0.45), 0 0 100px rgba(0,87,183,0.15); }
}

/* --- Service Detail ホバーライン --- */
.service-detail-visual {
  position: relative;
  overflow: hidden;
}

.service-detail-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,87,183,0) 60%, rgba(0,210,255,0.15) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: inherit;
}

.service-detail:hover .service-detail-visual::after {
  opacity: 1;
}

/* --- Overview Row ホバー --- */
.overview-row > dd {
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.overview-row:hover > dt {
  color: var(--blue-primary);
}

.overview-row:hover > dd {
  background: var(--blue-light);
  padding-left: 36px;
}

/* ===========================
   Page Top Button
=========================== */
.pagetop {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pagetop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pagetop-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px;
  height: 56px;
  background: var(--blue-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 87, 183, 0.4);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 波紋エフェクト */
.pagetop-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.pagetop-btn:hover::before {
  transform: scale(1);
}

.pagetop-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 87, 183, 0.5);
}

/* 矢印（CSS で描画） */
.pagetop-arrow {
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
  flex-shrink: 0;
}

.pagetop-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: -2px;
}

/* スクロール進捗リング */
.pagetop-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.pagetop-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pagetop-ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2.5;
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

@media (max-width: 768px) {
  .pagetop {
    bottom: 20px;
    right: 20px;
  }

  .pagetop-btn {
    width: 48px;
    height: 48px;
  }
}

/* ==================================
   スマホ表示修正
================================== */

/* ===== ヒーローセクション ===== */
@media (max-width: 768px) {
  /* ビジュアル（リング）は非表示：横スクロールの原因 */
  .hero-visual {
    display: none;
  }

  /* テキスト1列表示 */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 0 60px;
    gap: 0;
  }

  /* "GATE" 装飾テキストのはみ出し防止 */
  .hero-text {
    overflow: hidden;
  }

  /* タイトルフォント調整 */
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    letter-spacing: -0.03em;
  }

  /* ボタンを縦並び・全幅に */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-buttons .btn-primary,
  .btn-outline-hero {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 24px;
  }
}

/* ===== ナビゲーション ===== */
@media (max-width: 768px) {
  /* ドロップダウン時の高さ制限とスクロール */
  .nav.open {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  /* ナビリンクの余白調整 */
  .nav-link {
    border-radius: 8px;
  }

  .nav-link.active {
    background: var(--blue-light);
    color: var(--blue-primary);
  }

  /* CTAリンクのスタイル統一 */
  .nav-cta {
    background: var(--blue-primary);
    color: var(--white) !important;
    border-radius: 8px;
    text-align: center;
  }

  .nav-cta:hover {
    background: var(--blue-dark);
  }
}

/* ===== ページヒーロー（内部ページ） ===== */
@media (max-width: 768px) {
  .page-hero {
    /* iOSの background-attachment:fixed バグ修正 */
    background-attachment: scroll;
    padding: calc(72px + 40px) 0 40px;
  }

  .page-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-hero-desc {
    font-size: 0.9rem;
  }
}

/* ===== CTAセクション ===== */
@media (max-width: 768px) {
  /* iOSの background-attachment:fixed バグ修正 */
  .cta-section {
    background-attachment: scroll;
    padding: 60px 0;
  }
}

/* ===== Missionセクション ===== */
@media (max-width: 768px) {
  .img_anime {
    padding: 28px 16px;
  }

  .img_anime span {
    font-size: 2.8rem;
  }

  .img_area {
    gap: 14px;
  }

  .mission_title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }
}

/* ===== About フローティングバッジ ===== */
@media (max-width: 768px) {
  /* はみ出し防止のため非表示 */
  .about-float-badge {
    display: none;
  }

  /* 下部バッジの位置を画面内に収める */
  .about-visual-badge {
    right: 4px;
    bottom: 4px;
  }
}

/* ===== Aboutページ Mission / Stats ===== */
@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .mission-card {
    padding: 32px 24px;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Services ナビ ===== */
@media (max-width: 768px) {
  .services-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* スクロールバー非表示（見た目） */
    scrollbar-width: none;
  }

  .services-nav::-webkit-scrollbar {
    display: none;
  }

  .services-nav-grid {
    width: max-content;
    min-width: 100%;
    padding: 0 16px;
  }

  .services-nav-item {
    min-width: 56px;
    padding: 12px 10px;
  }

  .services-nav-num {
    font-size: 0.6rem;
  }
}

/* ===== セクション共通 ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-desc {
    font-size: 0.9rem;
  }
}

/* ===== サービス詳細ページ ===== */
@media (max-width: 768px) {
  .service-detail {
    padding: 60px 0;
    /* ヘッダー(72px) + サービスナビ(~60px) + 余白 = 140px */
    scroll-margin-top: 140px;
  }

  .service-detail-title {
    font-size: 1.4rem;
  }

  .services-synergy {
    padding: 70px 0;
  }

  .ss-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .ss-desc {
    font-size: 0.9rem;
  }
}

/* ===== お問い合わせフォーム ===== */
.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  /* 姓・名フィールドを縦並びに */
  .name-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== About Philosophy ===== */
@media (max-width: 768px) {
  .ap-quote {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .ap-sub {
    font-size: 0.9rem;
  }
}

/* ===== フッター ===== */
@media (max-width: 768px) {
  .footer {
    padding: 48px 0 32px;
  }
}
