/* =============================================================================
   gateway テーマ（公開HPレイアウト拡張 改修設計書 9章）
   style.css（共通の構造）の後に読み込み、配色・発光・演出を上書きする。
   ① トークン ② ベース ③ ヘッダー・フッター ④ 部品 ⑤ セクション・テーマ ⑥ 3DゲートHERO・下層ヒーロー ⑦ 演出 ⑧ reduced motion・印刷
   Webフォントは使用しない（基本設計 T08）。シアン・紫は発光・アクセントに限り、本文・小さな文字には使わない。
   ============================================================================= */

/* ---- ① トークン ---- */
.theme-gateway {
  --c-bg-deep: #040816;
  --c-bg: #071225;
  --c-surface: #0c1b33;
  --c-surface-2: #10233f;
  --c-text: #f3f8ff;
  --c-muted: #a9b8cd;
  --c-cyan: #35e7ff;
  --c-purple: #8a5cff;
  --c-line: rgba(53, 231, 255, .18);
  --c-line-soft: rgba(243, 248, 255, .12);
  --c-line-strong: rgba(243, 248, 255, .32);
  --c-error: #ff8a8a;
  --c-success: #5be3a0;
  --glow-cyan: 0 0 24px rgba(53, 231, 255, .25);
  --glow-purple: 0 0 32px rgba(138, 92, 255, .28);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-reveal: 600ms;
  /* style.css の変数を読み替える */
  --bg: var(--c-bg);
  --surface: var(--c-surface);
  --text: var(--c-text);
  --muted: var(--c-muted);
  --line: var(--c-line-soft);
  --brand: var(--c-cyan);
  --brand-2: var(--c-cyan);
  --accent: var(--c-cyan);
  --accent-soft: rgba(53, 231, 255, .08);
  --shadow: none;
}

/* ---- ② ベース ---- */
.theme-gateway { background: var(--c-bg); color: var(--c-text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.theme-gateway a { color: var(--c-cyan); }
.theme-gateway :focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; border-radius: 2px; }
.theme-gateway ::selection { background: rgba(53, 231, 255, .3); color: #fff; }
.theme-gateway h1, .theme-gateway h2, .theme-gateway h3, .theme-gateway h4 { color: var(--c-text); letter-spacing: .02em; }
.theme-gateway h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.35; }
.theme-gateway .eyebrow { color: var(--c-cyan); font-size: .8rem; letter-spacing: .24em; font-weight: 700; margin-bottom: .6rem; display: flex; align-items: center; gap: .7rem; }
.theme-gateway .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; box-shadow: var(--glow-cyan); }
.theme-gateway .skip-link { background: var(--c-cyan); color: var(--c-bg-deep); }
.theme-gateway .preview-bar { background: #b3261e; }
.theme-gateway .container { width: min(1100px, calc(100% - 32px)); }
.theme-gateway .container.narrow { width: min(820px, calc(100% - 32px)); }

/* ---- ③ ヘッダー・フッター ---- */
.theme-gateway .topbar { background: var(--c-bg-deep); color: var(--c-muted); border-bottom: 1px solid var(--c-line-soft); }
.theme-gateway .topbar .tel a { color: var(--c-text); }
.theme-gateway .header { background: rgba(4, 8, 22, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-line-soft); }
.theme-gateway .logo-text { color: var(--c-text); letter-spacing: .08em; }
.theme-gateway .nav a { color: var(--c-muted); }
.theme-gateway .nav a:hover { color: var(--c-text); }
.theme-gateway .nav a[aria-current="page"] { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-cyan); text-underline-offset: .5em; text-decoration-thickness: 2px; }
.theme-gateway .nav-cta { color: var(--c-bg-deep) !important; background: var(--c-cyan); font-weight: 700; padding: .5rem 1.1rem; border-radius: 999px; text-decoration: none !important; }
.theme-gateway .nav-cta-sub { background: transparent !important; color: var(--c-text) !important; border: 1px solid var(--c-line-strong); }
.theme-gateway .nav-cta-recruit { box-shadow: var(--glow-cyan); }
.theme-gateway .menu-btn span { background: var(--c-text); }
.theme-gateway .menu-btn { width: 44px; height: 44px; padding: 8px 5px; }
.theme-gateway .lang-switch summary { background: transparent; border-color: var(--c-line-strong); color: var(--c-text); }
.theme-gateway .lang-switch ul { background: var(--c-surface); border-color: var(--c-line); }
.theme-gateway .lang-switch li a { color: var(--c-text); }
.theme-gateway .lang-switch li a:hover { background: rgba(53, 231, 255, .08); }
@media (max-width: 900px) {
  .theme-gateway .nav { background: rgba(4, 8, 22, .97); border-bottom: 1px solid var(--c-line-soft); }
  .theme-gateway .nav a { min-height: 44px; display: flex; align-items: center; }
  .theme-gateway .nav-cta { justify-content: center; margin-top: .3rem; }
}
.theme-gateway .header.nav-collapsed .nav { background: rgba(4, 8, 22, .97); border-bottom: 1px solid var(--c-line-soft); }

.theme-gateway .footer { background: var(--c-bg-deep); border-top: 1px solid var(--c-line-soft); color: var(--c-muted); }
.theme-gateway .footer-name { color: var(--c-text); letter-spacing: .06em; }
.theme-gateway .footer-links a { color: var(--c-muted); }
.theme-gateway .footer-links a:hover { color: var(--c-text); }
.theme-gateway .footer-head { color: var(--c-text); }
.theme-gateway .footer-bottom { border-top-color: var(--c-line-soft); color: var(--c-muted); }
.theme-gateway .footer-ctas ul { padding-top: 2rem; }
.theme-gateway .footer-cta { color: var(--c-text); border-color: var(--c-line-strong); }
.theme-gateway .footer-cta:hover { border-color: var(--c-cyan); }
.theme-gateway .footer-cta-recruit { background: var(--c-cyan); border-color: var(--c-cyan); color: var(--c-bg-deep); }
.theme-gateway .page-top { background: var(--c-surface-2); color: var(--c-cyan); border: 1px solid var(--c-line); }
@media (max-width: 640px) {
  .theme-gateway .fixed-cta { box-shadow: 0 -1px 0 var(--c-line-soft); padding-bottom: env(safe-area-inset-bottom); background: var(--c-bg-deep); }
  .theme-gateway .fixed-tel { background: var(--c-bg-deep); color: var(--c-text); border-top-color: var(--c-line-soft); }
  .theme-gateway .fixed-form { background: var(--c-cyan); color: var(--c-bg-deep); }
}

/* パンくず・注記 */
.theme-gateway .breadcrumb, .theme-gateway .breadcrumb a { color: var(--c-muted); }
.theme-gateway .breadcrumb li + li::before { color: var(--c-line-strong); }
.theme-gateway .notice-untranslated, .theme-gateway .notice-ja { background: var(--c-surface); border-color: var(--c-line); color: var(--c-text); }

/* ---- ④ 部品 ---- */
/* ボタン：p1＝シアンの塗り（最優先）、p2＝面＋シアンの罫線、p3＝罫線のみ。高さ48px以上 */
.theme-gateway .btn { min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; letter-spacing: .04em; transition: transform .2s var(--ease-out), box-shadow .2s, background-color .2s, border-color .2s; }
.theme-gateway .btn-p1, .theme-gateway .btn.primary { background: var(--c-cyan); color: var(--c-bg-deep); border-color: var(--c-cyan); box-shadow: var(--glow-cyan); }
.theme-gateway .btn-p1:hover, .theme-gateway .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(53, 231, 255, .45); filter: none; }
.theme-gateway .btn-p2 { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-cyan); }
.theme-gateway .btn-p2:hover { background: #15305a; }
.theme-gateway .btn-p3, .theme-gateway .btn.ghost { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.theme-gateway .btn-p3:hover, .theme-gateway .btn.ghost:hover { border-color: var(--c-text); }
.theme-gateway .btn.outline { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.theme-gateway .btn-lg { min-height: 54px; padding: .9rem 1.8rem; font-size: 1rem; }

/* 見出し・本文 */
.theme-gateway .page-header h1::after { background: linear-gradient(90deg, var(--c-cyan), var(--c-purple)); box-shadow: var(--glow-cyan); }
.theme-gateway .blk-h3 h3 { border-left-color: var(--c-cyan); }
.theme-gateway .rich-text { max-width: 46em; }
.theme-gateway .rich-text h2 { border-left-color: var(--c-cyan); }
.theme-gateway .rich-text table { background: var(--c-surface); }
.theme-gateway .rich-text th { background: var(--c-surface-2); }
.theme-gateway .rich-text blockquote { background: var(--c-surface); }
.theme-gateway .blk-text.bg-white .rich-text, .theme-gateway .blk-text.bg-pink .rich-text, .theme-gateway .blk-text.bg-gray .rich-text { background: var(--c-surface); border: 1px solid var(--c-line-soft); box-shadow: none; }

/* カード：標準・ガラス・価値観 */
.theme-gateway .card { background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--radius-m); box-shadow: none; padding: 1.4rem; }
.theme-gateway .card h3 a, .theme-gateway .card h4 a { color: var(--c-text); text-decoration: none; }
.theme-gateway .card-link:hover { border-color: var(--c-cyan); box-shadow: var(--glow-cyan); }
.theme-gateway .card .more { color: var(--c-cyan); }
.theme-gateway .card-note { border-top-color: var(--c-line-soft); }
.theme-gateway .card-note-text, .theme-gateway .card-badge { color: var(--c-text); border-color: var(--c-line-strong); }
.theme-gateway .card-img { margin: -1.4rem -1.4rem 1rem; }
.theme-gateway .cards-glass .card { background: linear-gradient(160deg, rgba(16, 35, 63, .82), rgba(12, 27, 51, .6)); border-color: var(--c-line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.theme-gateway .cards-glass .card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--c-cyan), transparent); opacity: .6; }
.theme-gateway .cards-value .card { background: transparent; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; padding: 1.6rem 0 0; }
.theme-gateway .cards-value .card-no { color: transparent; -webkit-text-stroke: 1px var(--c-cyan); font-size: 3.4rem; text-shadow: 0 0 18px rgba(53, 231, 255, .35); }
.theme-gateway .cards-value .card-en { color: var(--c-muted); margin-top: .6rem; }
.theme-gateway .cards-value h3, .theme-gateway .cards-value h4 { font-size: 1.35rem; margin: .2rem 0 .6rem; }
.theme-gateway .card-en { color: var(--c-muted); }
/* 将来構想：破線・彩度を下げた配色・ラベルを常に表示（色だけに頼らない） */
.theme-gateway .card-future, .theme-gateway .cards-glass .card-future { background: rgba(7, 18, 37, .6); border: 1px dashed rgba(169, 184, 205, .45); backdrop-filter: none; }
.theme-gateway .card-future::before { display: none; }
.theme-gateway .card-future h3, .theme-gateway .card-future h4, .theme-gateway .card-future p { color: var(--c-muted); }
.theme-gateway .label-future { color: var(--c-text); border-color: rgba(169, 184, 205, .7); background: rgba(169, 184, 205, .12); letter-spacing: .08em; }

/* 項目と値・手順・FAQ・CTA */
.theme-gateway .fee-table { background: var(--c-surface); border-color: var(--c-line-soft); box-shadow: none; }
.theme-gateway .flow-list li { background: var(--c-surface); border-color: var(--c-line-soft); }
.theme-gateway .flow-list span { background: transparent; color: var(--c-cyan); border: 1px solid var(--c-cyan); box-shadow: var(--glow-cyan); }
.theme-gateway .faq-question { color: var(--c-text); min-height: 48px; }
.theme-gateway .faq-question::before, .theme-gateway .faq-question::after { color: var(--c-cyan); }
.theme-gateway .cta-box { background: linear-gradient(160deg, rgba(16, 35, 63, .9), rgba(12, 27, 51, .9)); border: 1px solid var(--c-line); border-radius: var(--radius-l); }
.theme-gateway .map-embed iframe { border-color: var(--c-line-soft); filter: grayscale(.4) brightness(.9); }

/* 技術スタック */
.theme-gateway .tech-group { background: rgba(12, 27, 51, .7); border-color: var(--c-line); }
.theme-gateway .tech-group dt { color: var(--c-cyan); letter-spacing: .08em; font-size: .9rem; }
.theme-gateway .tech-list li { border-color: var(--c-line-strong); color: var(--c-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }

/* 目的別の導線 */
.theme-gateway .cta-split-item { background: rgba(12, 27, 51, .78); border-color: var(--c-line-soft); border-radius: var(--radius-l); padding: 1.8rem; }
.theme-gateway .cta-split-item.cta-p1 { border-color: var(--c-cyan); box-shadow: var(--glow-cyan); background: linear-gradient(160deg, rgba(53, 231, 255, .1), rgba(12, 27, 51, .85)); }
.theme-gateway .cta-split-item.cta-p2 { border-color: rgba(138, 92, 255, .6); }
.theme-gateway .cta-audience { color: var(--c-muted); letter-spacing: .06em; }

/* お知らせ */
.theme-gateway .news-list, .theme-gateway .news-item { border-color: var(--c-line-soft); }
.theme-gateway .news-title { color: var(--c-text); }
.theme-gateway .news-title:hover { color: var(--c-cyan); }
.theme-gateway .news-cat { background: rgba(53, 231, 255, .1); color: var(--c-text); }
.theme-gateway .news-cats a, .theme-gateway .pager a, .theme-gateway .pager span, .theme-gateway .post-nav a { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.theme-gateway .news-cats a[aria-current="page"], .theme-gateway .pager span[aria-current] { background: var(--c-cyan); color: var(--c-bg-deep); border-color: var(--c-cyan); }
.theme-gateway .news-empty { color: var(--c-muted); }

/* 問い合わせフォーム */
.theme-gateway .contact-form { background: var(--c-surface); border-color: var(--c-line-soft); }
.theme-gateway .form-row input[type=text], .theme-gateway .form-row input[type=email], .theme-gateway .form-row input[type=tel], .theme-gateway .form-row select, .theme-gateway .form-row textarea { background: var(--c-bg); color: var(--c-text); border-color: var(--c-line-strong); min-height: 48px; }
.theme-gateway .form-row input:focus, .theme-gateway .form-row select:focus, .theme-gateway .form-row textarea:focus { outline: 2px solid var(--c-cyan); border-color: var(--c-cyan); }
.theme-gateway .form-row [aria-invalid="true"] { border-color: var(--c-error); background: rgba(255, 138, 138, .08); }
.theme-gateway .req { background: var(--c-cyan); color: var(--c-bg-deep); }
.theme-gateway .opt { background: var(--c-surface-2); color: var(--c-muted); }
.theme-gateway .field-error, .theme-gateway .form-message, .theme-gateway .char-count.is-over { color: var(--c-error); }
.theme-gateway .form-noscript { background: rgba(255, 138, 138, .1); border-color: var(--c-error); color: var(--c-text); }
.theme-gateway .confirm-list, .theme-gateway .confirm-list dt, .theme-gateway .confirm-list dd { border-color: var(--c-line-soft); }

/* 共通の問い合わせ導線（ページ下部） */
.theme-gateway .cta-band { background: radial-gradient(ellipse at 50% 120%, rgba(138, 92, 255, .25), transparent 60%), var(--c-bg-deep); border-top: 1px solid var(--c-line-soft); }

/* ---- ⑤ セクション・テーマ ---- */
.theme-gateway .sec { padding: clamp(4rem, 3rem + 5vw, 8rem) 0; background: var(--c-bg); overflow: hidden; }
.theme-gateway .sec.sp-compact { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.theme-gateway .sec.sp-wide { padding: clamp(5rem, 4rem + 7vw, 10rem) 0; }
.theme-gateway .sec.theme-deep { background: var(--c-bg-deep); }
.theme-gateway .sec.theme-surface { background: #0a1830; }
.theme-gateway .sec.theme-purple { background: radial-gradient(ellipse 70% 60% at 85% 10%, rgba(138, 92, 255, .22), transparent 70%), radial-gradient(ellipse 60% 50% at 0% 100%, rgba(138, 92, 255, .14), transparent 70%), #0a0f2a; }
.theme-gateway .sec.theme-gradient { background: linear-gradient(180deg, var(--c-bg) 0%, #0d1236 60%, #160f3a 100%); }
.theme-gateway .sec + .sec { border-top: 1px solid rgba(243, 248, 255, .05); }
.theme-gateway .sec-head { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.theme-gateway .sec-lead { color: var(--c-muted); font-size: 1.05rem; }
.theme-gateway .sec-bg svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.theme-gateway .sec-bg line { stroke: var(--c-cyan); vector-effect: non-scaling-stroke; }
.theme-gateway .sec-bg .link { stroke-width: 1; opacity: .2; }
.theme-gateway .sec-bg .dot { stroke-width: 5; stroke-linecap: round; opacity: .55; }
.theme-gateway .sec-bg-spread line { stroke: #9d7bff; }
.theme-gateway .sec-bg-converge .dot { stroke: #c7f6ff; }
.theme-gateway .sec-bg-gather svg { opacity: .7; }
/* 背景色が変化（shift）：重ねた紫の層の不透明度だけを切り替える */
.theme-gateway .sec-bg-shift { background: radial-gradient(ellipse 80% 70% at 70% 30%, rgba(138, 92, 255, .3), transparent 70%); opacity: .35; transition: opacity 1.2s ease; }
.theme-gateway .sec.fx-shift.is-active .sec-bg-shift { opacity: 1; }
/* セクションの装飾は本文の背後で目立たせない（中央は薄く） */
.theme-gateway .sec-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 30% 50%, rgba(7, 18, 37, .55), transparent 75%); }
.theme-gateway .page-home .sec .blk-heading { text-align: left; }

/* ---- ⑥ 3DゲートHERO・下層ページヒーロー ---- */
.theme-gateway .hero-gate { min-height: 100vh; min-height: 100svh; background: var(--c-bg-deep); margin-top: -1px; }
.theme-gateway .hero-gate-static { position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 50%, transparent 0 21vmin, rgba(53, 231, 255, .55) 21.3vmin, transparent 22vmin),
    radial-gradient(circle at 72% 50%, transparent 0 24vmin, rgba(138, 92, 255, .4) 24.2vmin, transparent 24.8vmin),
    radial-gradient(circle at 72% 50%, rgba(138, 92, 255, .32), rgba(53, 231, 255, .08) 22vmin, transparent 38vmin),
    radial-gradient(ellipse at 20% 120%, rgba(53, 231, 255, .12), transparent 55%),
    linear-gradient(180deg, #040816 0%, #071225 100%);
  transition: opacity 1.2s ease; }
.theme-gateway .hero-gate-img { opacity: .6; }
.theme-gateway .hero-gate-canvas { opacity: 0; transition: opacity 1.4s ease; }
.theme-gateway .hero-gate.gate-ready .hero-gate-canvas { opacity: 1; }
.theme-gateway .hero-gate.gate-ready .hero-gate-static { opacity: .12; }
/* 文字の背後（左側）は暗く保って可読性を確保する */
.theme-gateway .hero-gate-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 8, 22, .85) 0%, rgba(4, 8, 22, .55) 35%, rgba(4, 8, 22, 0) 60%); pointer-events: none; }
.theme-gateway .hero-gate-content { padding: 7rem 0 6rem; }
.theme-gateway .hero-catch-en { color: var(--c-cyan); letter-spacing: .32em; font-size: clamp(.95rem, .8rem + .8vw, 1.35rem); text-shadow: 0 0 18px rgba(53, 231, 255, .55); }
.theme-gateway .hero-gate h1 { font-size: clamp(2.1rem, 1.2rem + 4.8vw, 5rem); letter-spacing: .04em; line-height: 1.2; margin: 1rem 0 1.4rem; text-shadow: 0 2px 30px rgba(4, 8, 22, .8); text-wrap: balance; word-break: auto-phrase; }
.theme-gateway .hero-sub { color: var(--c-muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.theme-gateway .hero-actions { margin-top: 2.2rem; gap: 1rem; }
.theme-gateway .hero-scroll { color: var(--c-muted); padding-bottom: 46px; }
.theme-gateway .hero-scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 38px; background: linear-gradient(var(--c-cyan), transparent); animation: gw-scroll 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes gw-scroll { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 767px) {
  /* モバイル：コピーとボタンを先に。ゲートは背面で縮小・低透明度 */
  .theme-gateway .hero-gate { min-height: 88svh; align-items: end; }
  .theme-gateway .hero-gate-static { background:
    radial-gradient(circle at 50% 30%, transparent 0 26vmin, rgba(53, 231, 255, .4) 26.4vmin, transparent 27.2vmin),
    radial-gradient(circle at 50% 30%, rgba(138, 92, 255, .26), transparent 46vmin),
    linear-gradient(180deg, #040816 0%, #071225 100%); }
  .theme-gateway .hero-gate-bg::after { background: linear-gradient(180deg, rgba(4, 8, 22, 0) 20%, rgba(4, 8, 22, .7) 55%, rgba(4, 8, 22, .92) 100%); }
  .theme-gateway .hero-gate-canvas { opacity: 0; }
  .theme-gateway .hero-gate.gate-ready .hero-gate-canvas { opacity: .75; }
  .theme-gateway .hero-gate-content { padding: 6rem 0 5rem; }
  .theme-gateway .hero-actions { flex-direction: column; align-items: stretch; }
  .theme-gateway .hero-actions .btn { width: 100%; }
  .theme-gateway .hero-scroll { display: none; }
  .theme-gateway .hero-gate h1 { letter-spacing: 0; }
}
@media (min-width: 1921px) { .theme-gateway .hero-gate-canvas { max-width: 1600px; left: auto; right: 0; } }

.theme-gateway .page-hero { background: var(--c-bg-deep); border-bottom: 1px solid var(--c-line-soft); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 0; overflow: hidden; }
.theme-gateway .page-hero-inner { padding-top: clamp(2.5rem, 6vw, 5rem); }
.theme-gateway .page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: .04em; }
.theme-gateway .page-hero-lead { color: var(--c-muted); font-size: 1.05rem; }
.theme-gateway .page-hero.pattern-grid .page-hero-bg { background-image: linear-gradient(rgba(53, 231, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 231, 255, .07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000 20%, transparent 75%); }
.theme-gateway .page-hero.pattern-glow .page-hero-bg { background: radial-gradient(ellipse 50% 80% at 85% 20%, rgba(138, 92, 255, .3), transparent 70%), radial-gradient(ellipse 40% 60% at 65% 100%, rgba(53, 231, 255, .14), transparent 70%); }
.theme-gateway .page-hero + .sec, .theme-gateway .page-body > .sec:first-child { border-top: 0; }
.theme-gateway .page-header { padding-top: clamp(2.5rem, 5vw, 4rem); }
.theme-gateway .page-body { padding-bottom: 0; }
.theme-gateway .page-body > .blk:last-child { margin-bottom: 4rem; }

/* ---- ⑦ 演出（motion.js が読込時に画面外のセクションだけ .fx-pending にする） ---- */
.theme-gateway .sec.fx-pending .sec-head,
.theme-gateway .sec.fx-pending .sec-body > .blk { opacity: 0; transform: translateY(18px); }
.theme-gateway .sec.fx-pending.is-inview .sec-head,
.theme-gateway .sec.fx-pending.is-inview .sec-body > .blk { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.theme-gateway .sec.fx-pending.is-inview .sec-body > .blk { transition-delay: calc(var(--fx-delay, 0ms) + 120ms); }
/* 粒子が集まる */
.theme-gateway .sec.fx-gather.fx-pending .sec-bg .dot { transform: translate(calc(var(--dx) * -1%), calc(var(--dy) * -1%)); opacity: 0; }
.theme-gateway .sec.fx-gather.fx-pending.is-inview .sec-bg .dot { transform: none; opacity: .55; transition: transform 1.6s var(--ease-out), opacity 1.2s ease; transition-delay: calc(var(--i) * 40ms); }
/* 点と線がつながる・横に広がる・中央へ収束（線を描く） */
.theme-gateway .sec.fx-pending .sec-bg .link { stroke-dasharray: 1; stroke-dashoffset: 1; }
.theme-gateway .sec.fx-pending.is-inview .sec-bg .link { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.theme-gateway .sec.fx-converge.fx-pending.is-inview .sec-bg .link { transition-duration: 1.8s; }
/* 画面に入った後の、ごく控えめな点の明滅 */
.theme-gateway .sec.is-inview .sec-bg .dot { animation: gw-twinkle 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * -400ms); }
@keyframes gw-twinkle { 0%, 100% { opacity: .55; } 50% { opacity: .15; } }
.theme-gateway.no-effects .sec-bg .dot { animation: none; }

/* ---- ⑧ reduced motion・印刷 ---- */
@media (prefers-reduced-motion: reduce) {
  .theme-gateway *, .theme-gateway *::before, .theme-gateway *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .theme-gateway .sec.fx-pending .sec-head, .theme-gateway .sec.fx-pending .sec-body > .blk, .theme-gateway .sec.fx-pending .sec-bg .dot { opacity: 1; transform: none; }
  .theme-gateway .sec.fx-pending .sec-bg .link { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
@media print {
  .theme-gateway { background: #fff; color: #000; }
  .theme-gateway .sec-bg, .theme-gateway .hero-gate-bg, .theme-gateway .page-hero-bg, .theme-gateway .fixed-cta, .theme-gateway .page-top { display: none !important; }
  .theme-gateway .sec, .theme-gateway .hero-gate, .theme-gateway .page-hero, .theme-gateway .footer { background: #fff !important; color: #000; }
  .theme-gateway h1, .theme-gateway h2, .theme-gateway h3, .theme-gateway .hero-sub, .theme-gateway .sec-lead { color: #000; text-shadow: none; }
  .theme-gateway .sec.fx-pending .sec-head, .theme-gateway .sec.fx-pending .sec-body > .blk { opacity: 1; transform: none; }
}
