/* MOAI Lab — MOAI Design System（agi.moai-lab.jp / saas.moai-lab.jp と共通のトークン） */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);

  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1e1b4b 40%, #0f172a 100%);
  --gradient-card: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.05));
  --gradient-accent: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(59, 130, 246, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
  --shadow-glow-sm: 0 0 30px rgba(59, 130, 246, 0.1);

  --sans: 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 4vw, 32px);
  --max: 1200px;
  --head-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { word-break: auto-phrase; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent-blue-light); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--gradient-primary); color: #fff; padding: 8px 16px;
  border-radius: 100px; text-decoration: none; font-weight: 600;
}
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 880px; }

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- スクロール時のフェードイン ---------- */
.js .fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px; border: none; cursor: pointer;
  background: var(--gradient-primary); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.4;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(59, 130, 246, 0.3); }
.btn.ghost { background: transparent; color: var(--text-primary); border: 1px solid rgba(255, 255, 255, 0.15); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); box-shadow: none; }
.btn.sm { padding: 10px 22px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center .actions, .actions.center { justify-content: center; }

.more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-blue-light); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.more::after { content: "→"; transition: transform 0.3s ease; }
.more:hover::after { transform: translateX(5px); }

/* ---------- ヘッダー ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding 0.4s ease, background 0.4s ease;
}
.site-head.scrolled { background: rgba(10, 14, 26, 0.92); padding: 10px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 48px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-primary); white-space: nowrap; }
.brand img { height: 34px; width: auto; filter: invert(1); }
.brand .mark { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 0.9rem; font-weight: 500; }
.site-nav > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 100px;
  background: none; border: none; cursor: pointer; font: inherit;
  color: var(--text-secondary); text-decoration: none; white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}
.site-nav > a:hover, .nav-item > button:hover, .nav-item:focus-within > button,
.site-nav > a[aria-current="page"], .nav-item.current > button { color: var(--text-primary); }
.site-nav > a[aria-current="page"], .nav-item.current > button { background: rgba(255, 255, 255, 0.05); }
.nav-item { position: relative; }
.nav-item > button::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.3s ease;
}
.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px;
  background: rgba(17, 24, 39, 0.97); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop, .nav-item.open .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop a {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-drop a:hover, .nav-drop a[aria-current="page"] { color: var(--text-primary); background: rgba(59, 130, 246, 0.12); }
.nav-drop a[target="_blank"]::after, .site-foot a[target="_blank"]::after { content: " ↗"; font-size: 0.8em; color: var(--text-muted); }
.site-head .btn { white-space: nowrap; }
.site-head .lang { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; padding: 8px 10px; white-space: nowrap; }
.site-head .lang:hover { color: var(--text-primary); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--bg-glass);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text-primary); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-head .head-cta { display: none; }
  /* ヘッダーは backdrop-filter を持つので、パネルはヘッダー基準の absolute で真下に出す */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; padding: 12px var(--gutter) 28px;
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #0d1220; border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow-y: auto; font-size: 1rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle { position: relative; z-index: 2; }
  .site-nav > a, .nav-item > button { width: 100%; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-drop {
    position: static; min-width: 0; padding: 0 0 6px 12px;
    background: none; border: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav-item.open .nav-drop { display: grid; }
  .nav-item.open > button::after { transform: rotate(-135deg); margin-top: 3px; }
  .nav-drop a { white-space: normal; }
  .site-nav .lang { padding: 12px 14px; }
}

/* ---------- ヒーロー（トップ） ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 86vh; padding: 160px 0 110px;
  background: var(--gradient-hero); overflow: hidden; text-align: center;
}
.hero::before, .hero::after, .page-hero::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}
.hero::after {
  bottom: -30%; left: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite reverse;
}
@keyframes pulse-glow { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  margin: 0 auto; max-width: 18em;
  font-weight: 900; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.22; letter-spacing: -0.03em;
}
.hero .lead { margin: 28px auto 0; max-width: 46em; color: var(--text-secondary); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero .actions { margin-top: 40px; justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px; padding: 8px 20px; margin-bottom: 28px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent-blue-light);
}

/* ---------- ページ見出し（下層ページ） ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--head-h) + 72px) 0 64px;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero::before {
  top: -60%; right: -10%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.02em; max-width: 24em; }
.page-hero .lead { margin-top: 18px; max-width: 48em; color: var(--text-secondary); font-size: 1.05rem; }
.page-hero .actions { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 0.82rem; color: var(--text-muted); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-muted); }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--text-primary); }
.page-hero .meta { margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- セクション ---------- */
.sec { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.sec.alt { background: var(--bg-secondary); }
.sec.tight { padding: clamp(40px, 6vw, 72px) 0; }
.sec + .sec::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.sec-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 52em; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.sec-head .lead { margin-top: 18px; color: var(--text-secondary); font-size: 1.05rem; }
.sec-head .lead + .lead { margin-top: 12px; }
.sec-head strong { color: var(--text-primary); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent-blue-light);
}
.section-label::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--gradient-primary); }

/* ---------- グリッドとカード ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }
.grid + .grid, .grid + .actions, .prose + .grid, .grid + .prose { margin-top: 32px; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.card h3 { font-size: 1.2rem; line-height: 1.45; font-weight: 700; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }
.card p a, .card li a { color: var(--accent-blue-light); position: relative; z-index: 1; }
.card .kicker { color: var(--accent-blue-light); font-weight: 700; font-size: 0.9rem; }
.card .more { margin-top: auto; padding-top: 6px; position: relative; z-index: 1; }
.card.link:hover, .card:has(h3 a):hover {
  transform: translateY(-6px); border-color: var(--border-accent);
  background: var(--bg-card-hover); box-shadow: var(--shadow-glow);
}
.card .thumb {
  margin: calc(clamp(22px, 2.6vw, 32px) * -1) calc(clamp(22px, 2.6vw, 32px) * -1) 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--bg-secondary);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb.contain img { object-fit: contain; }
.card ul { list-style: none; display: grid; gap: 8px; color: var(--text-secondary); font-size: 0.93rem; }
.card ul li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.card ul li::before { content: "✓"; color: var(--accent-green); font-weight: 800; font-size: 0.8rem; margin-top: 0.2em; }
.card.accent::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--gradient-accent);
}
.card .num {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-cyan);
}

/* 画像と文章の左右並び */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.wide-text { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.wide-text { grid-template-columns: minmax(0, 1fr); } .split.reverse > :first-child { order: 0; } }

/* 数値の強調 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 28px 20px; text-align: center; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.02em;
  background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { display: block; margin-top: 10px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips > * { font-size: 0.8rem; font-weight: 500; padding: 4px 14px; border-radius: 100px; line-height: 1.7;
  background: rgba(59, 130, 246, 0.12); border: 1px solid var(--border-accent); color: var(--accent-blue-light); }

/* ---------- 本文（記事・規約など） ---------- */
.prose { max-width: 820px; color: var(--text-secondary); font-size: 1rem; }
.prose.wide { max-width: none; }
.prose.center { margin-left: auto; margin-right: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.4; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.2rem; line-height: 1.5; font-weight: 700; color: var(--text-primary); }
.prose h4 { margin-top: 1.5em; font-size: 1.02rem; font-weight: 700; color: var(--text-primary); }
.prose strong { color: var(--text-primary); font-weight: 700; }
.prose a { color: var(--accent-blue-light); text-underline-offset: 3px; }
.prose a:hover { color: #93c5fd; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent-blue-light); }
.prose img { border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 3px solid var(--accent-blue); background: var(--bg-glass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose hr { border: none; height: 1px; background: var(--border-subtle); margin: 2.4em 0; }
.prose .note { font-size: 0.88rem; color: var(--text-muted); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: #fff; }
.figure.plain img { background: none; }
.figure figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-subtle); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
th { color: var(--text-primary); font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, 0.02); }
tr:last-child > th, tr:last-child > td { border-bottom: none; }
td a { color: var(--accent-blue-light); }

/* 定義リスト（会社概要など） */
.facts { display: grid; grid-template-columns: max-content 1fr; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 16px 22px; border-bottom: 1px solid var(--border-subtle); }
.facts dt { font-weight: 700; color: var(--text-primary); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
.facts dd { color: var(--text-secondary); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: none; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: none; padding-bottom: 0; background: none; } }

/* ---------- ニュース一覧 ---------- */
.news-list { list-style: none; display: grid; gap: 12px; }
.news-list li {
  display: grid; grid-template-columns: 7.5em 9em 1fr; gap: 6px 16px; align-items: baseline;
  padding: 18px 22px; background: var(--bg-glass); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); transition: border-color 0.3s ease, background 0.3s ease;
}
.news-list li:hover { border-color: var(--border-accent); background: var(--bg-card); }
.news-list time { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; }
.news-list .tag { justify-self: start; font-size: 0.74rem; font-weight: 700; padding: 2px 12px; border-radius: 100px; line-height: 1.7; white-space: nowrap;
  background: rgba(59, 130, 246, 0.12); border: 1px solid var(--border-accent); color: var(--accent-blue-light); }
.news-list .tag.press { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.news-list .tag.blog { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); color: #a78bfa; }
.news-list .tag.event { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.news-list p { color: var(--text-secondary); font-size: 0.95rem; }
.news-list a { color: var(--accent-blue-light); text-underline-offset: 3px; }
@media (max-width: 720px) { .news-list li { grid-template-columns: auto 1fr; } .news-list p { grid-column: 1 / -1; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 880px; }
.faq.center { margin-left: auto; margin-right: auto; }
.faq details { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-card); transition: border-color 0.3s ease; }
.faq details[open], .faq details:hover { border-color: var(--border-accent); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 1.02rem; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 500; line-height: 1; color: var(--accent-blue-light); transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; font-size: 0.95rem; line-height: 1.85; color: var(--text-secondary); }
.faq .answer > * + * { margin-top: 0.8em; }
.faq .answer a { color: var(--accent-blue-light); }
.faq .answer ul, .faq .answer ol { padding-left: 1.4em; }

/* ---------- メンバー紹介 ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.person { padding: 28px 24px; text-align: center; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.person img { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-accent); }
.person h3 { font-size: 1.15rem; font-weight: 700; }
.person .role { margin-top: 4px; color: var(--accent-blue-light); font-weight: 600; font-size: 0.9rem; }
.person p { margin-top: 8px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }

/* ---------- お問い合わせ誘導の帯 ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  background: var(--gradient-card); border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-glow-sm);
}
.cta-band h2, .cta-band h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.4; }
.cta-band p { margin: 12px auto 0; max-width: 44em; color: var(--text-secondary); }
.cta-band .actions { margin-top: 24px; justify-content: center; }
.grid + .cta-band, .prose + .cta-band, .stats + .cta-band, .people + .cta-band { margin-top: 40px; }

/* ---------- 埋め込みフォーム ---------- */
.form-embed { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.form-embed iframe { display: block; width: 100%; height: 1500px; border: 0; }
.form-embed.short iframe { height: 900px; }
.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--text-muted); }
.form-note a { color: var(--accent-blue-light); }

/* ---------- フッター ---------- */
.site-foot { border-top: 1px solid var(--border-subtle); background: #080b15; font-size: 0.9rem; color: var(--text-secondary); }
.foot-cta { padding: 56px 0; border-bottom: 1px solid var(--border-subtle); }
.foot-cta .grid { gap: 20px; }
.foot-cta .card { gap: 14px; padding: 26px; border-radius: var(--radius-md); }
.foot-cta .card p { font-size: 0.9rem; }
.foot-cta .btn { align-self: flex-start; margin-top: auto; }
.foot-main { padding: 56px 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.foot-main .foot-brand { grid-column: span 2; }
@media (max-width: 560px) { .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-main .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { margin-top: 14px; max-width: 26em; font-size: 0.88rem; color: var(--text-muted); }
.site-foot h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 14px; }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: var(--text-secondary); transition: color 0.3s ease; }
.site-foot a:hover { color: var(--text-primary); }
.foot-bottom { padding: 22px 0 32px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- 補助 ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 16px !important; }
.mt-m { margin-top: 32px !important; }
.mt-l { margin-top: 56px !important; }
.muted { color: var(--text-muted); }
.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; }

/* ---------- 追加の部品 ---------- */
.card h4 { font-size: 1.05rem; line-height: 1.5; font-weight: 700; }
.split.top { align-items: start; }
.prose .actions, .prose .table-wrap, .prose .video, .prose .figure { margin-top: 1.6em; }
.prose + .actions, .prose + .video, .prose + .figure, .prose + .table-wrap, .figure + .prose, .video + .prose, .table-wrap + .prose { margin-top: 32px; }
.person .social { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.person .social img { width: 28px; height: 28px; margin: 0; border: none; border-radius: 6px; object-fit: contain; }
.toc { list-style: none; display: grid; gap: 8px; padding: 20px 24px; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.toc a { color: var(--accent-blue-light); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 長いURLなどが狭い画面ではみ出さないようにする */
main { overflow-wrap: anywhere; }
