/* ==========================================================================
   Walking Life Plus 株式会社 —— サイト共通の見た目（2026-10-16 第3版）
   世界観：「2001年宇宙の旅」の世界観を、2026年の解釈で（ORBITAL MODERN 2026）
   宇宙の黒・構造物の白・ひとつの黄色。Futura の小文字の題字と、字間の広い大文字。
   ★ 本番の安全設定（CSP）で style 属性・インラインの <style> は使えない。
     見た目はすべてこのファイルに書く。動きの数値は main.js が CSS 変数で渡す。
   ========================================================================== */

:root {
  --space:   #05060a;
  --space-2: #0d0f15;
  --hull:    #eef0f2;
  --hull-2:  #e1e4e8;
  --white:   #ffffff;
  --ink:     #0b0c10;
  --ink-2:   #4a4f57;
  --ink-3:   #8b9098;
  --line:    #d2d6db;
  --line-dk: rgba(255, 255, 255, .14);
  --sun:     #f7cb15;
  --sun-2:   #ffdd55;

  --f-title: "Futura", "Futura PT", "Century Gothic", "Avenir Next", "Avenir", "Hiragino Sans", sans-serif;
  --f-body:  "Avenir Next", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono:  "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.6, .1, .2, 1);
  --slow: cubic-bezier(.22, .8, .2, 1);
  --lb: 11vh;            /* 大見出しの上下の黒い帯（main.js がスクロールで変える） */
}

/* ---------------------------------------------------------------- 基本 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--space); scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--space); color: var(--white);
  font-family: var(--f-body); font-size: 16px; line-height: 1.9; letter-spacing: .03em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--sun); color: var(--ink); padding: 10px 16px; font-size: 14px; }
.skip-link:focus { left: 8px; }

/* 文字の型 */
.title {                       /* 題字：Futura の小文字 */
  display: block; font-family: var(--f-title); font-weight: 700; text-transform: lowercase;
  letter-spacing: -.01em; line-height: 1.02;
}
.title-sun { color: var(--sun); }
.caps {                        /* 字幕・見出しの小さな大文字 */
  display: block; font-family: var(--f-title); font-weight: 500; font-size: 11px;
  letter-spacing: .34em; line-height: 1.7; text-transform: uppercase;
}
.mono { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.jp { display: block; font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; letter-spacing: .14em; line-height: 1.8; }
.sun { color: var(--sun); }

/* ---------------------------------------------------------------- ヘッダー */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: var(--white);
  transition: background .5s, border-color .5s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(5, 6, 10, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line-dk); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-title); font-weight: 700; font-size: 17px; letter-spacing: .08em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.wordmark-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 18px rgba(247, 203, 21, .55); flex: none; }
.global-nav ul { list-style: none; display: flex; align-items: center; gap: 40px; }
.global-nav a { position: relative; display: inline-block; padding: 6px 0; font-family: var(--f-title); font-size: 11px; font-weight: 500; letter-spacing: .34em; }
.global-nav a .jp-sub { display: none; }
.global-nav a::after { content: ""; position: absolute; left: 0; right: .34em; bottom: 0; height: 1px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.global-nav a:hover::after, .global-nav a[aria-current="page"]::after { transform: scaleX(1); }
.global-nav .nav-cta a { padding: 11px 22px; border: 1px solid var(--sun); color: var(--sun); border-radius: 999px; transition: background .3s, color .3s; }
.global-nav .nav-cta a::after { display: none; }
.global-nav .nav-cta a:hover, .global-nav .nav-cta a[aria-current="page"] { background: var(--sun); color: var(--ink); }
.nav-toggle { display: none; width: 46px; height: 46px; margin-right: -6px; padding: 0; background: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; color: var(--white); cursor: pointer; }
.nav-toggle .bar { display: block; width: 18px; height: 1px; margin: 0 auto; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle .bar + .bar { margin-top: 6px; }
.site-header.is-open .nav-toggle .bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-open .nav-toggle .bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .wordmark { font-size: 15px; letter-spacing: .06em; }
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--space);
    visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s; overflow-y: auto;
  }
  .site-header.is-open { background: var(--space); }
  .site-header.is-open .global-nav { visibility: visible; opacity: 1; transition: opacity .4s; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 32px var(--gutter) 48px; }
  .global-nav li { border-bottom: 1px solid var(--line-dk); }
  .global-nav a { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 0; font-size: clamp(30px, 9vw, 42px); font-weight: 700; letter-spacing: -.01em; text-transform: lowercase; }
  .global-nav a .jp-sub { display: inline; font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: rgba(255, 255, 255, .55); }
  .global-nav a::after { display: none; }
  .global-nav .nav-cta { border-bottom: 0; margin-top: 32px; }
  .global-nav .nav-cta a { justify-content: center; gap: 14px; padding: 20px; font-size: 22px; }
  .global-nav .nav-cta a .jp-sub { color: inherit; }
}

/* ---------------------------------------------------------------- ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 54px; padding: 0 28px;
  font-family: var(--f-title); font-size: 11px; font-weight: 500; letter-spacing: .3em; line-height: 1.3;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-sun { border-color: var(--sun); color: var(--sun); }
.btn-sun:hover { background: var(--sun); color: var(--ink); }
.btn-solid { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-solid:hover { background: var(--white); border-color: var(--white); }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--white); }
.ne { display: inline-block; font-size: 14px; line-height: 1; transition: transform .35s var(--ease); }
.btn:hover .ne, .text-link:hover .ne, a:hover > .ne { transform: translate(3px, -3px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-title); font-size: 11px; font-weight: 500; letter-spacing: .3em; }

/* ---------------------------------------------------------------- 素材待ちの枠（写真・動画が届くまで） */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--space); }
.media > video, .media > img, .media > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media picture { position: absolute; inset: 0; }
.media picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 回廊：動画が届くまでは、静止画をスクロールに合わせて奥へ押し込む */
.media-push img { transform: scale(calc(1 + var(--p, 0) * 1.15)); transform-origin: 50% 46%; will-change: transform; }
.media-service img { object-position: 74% 50%; }
.page-media img { opacity: .5; }
.page-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, .55) 0%, rgba(5, 6, 10, .78) 70%, var(--space) 100%); }
/* 大見出し：予告編のように場面が切り替わる（main.js が is-on を付け替える） */
.hero-slides .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides .slide.is-on { opacity: 1; }
.hero-slides .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slides .slide.is-on img { animation: hero-drift 9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-slides .slide.is-looping img { animation: none; }   /* 繰り返しの動画の下では、静止画を動画の最初の1コマと同じ位置に止めておく */
.pos-fashion { object-position: 38% 50%; }
/* 動画：再生が始まったら静止画の上にふわっと出す（再生できなければ静止画のまま） */
.slide-video, .once-video, .loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slide-video.is-playing, .once-video.is-playing, .loop-video.is-playing { opacity: 1; }
.hero.is-vision .slide-video { opacity: 0 !important; }
/* 回廊：コマ送りの画像が出たら、下の静止画は隠す */
.media.has-frames picture, .media.has-frames > img { opacity: 0; }
.corridor .media > canvas { z-index: 0; }
.hero-desc { max-width: 42em; margin: 14px auto 0; font-size: clamp(13px, 1.05vw, 15px); line-height: 2; letter-spacing: .06em; color: rgba(255, 255, 255, .9); }
.pc-br { display: none; }
@media (min-width: 900px) { .pc-br { display: inline; } }
.credit-row a { transition: color .5s; }
.credit-row a b { transition: color .5s; }
.credit-row a:hover, .credit-row a.is-current, .credit-row a:hover b, .credit-row a.is-current b { color: var(--sun); }
@keyframes hero-drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.media-wait {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(255, 255, 255, .42);
}
.media-wait span { display: block; padding: 10px 18px; border: 1px dashed rgba(255, 255, 255, .25); }
.media--light { background: var(--hull-2); }
.media--light .media-wait { color: var(--ink-3); }
.media--light .media-wait span { border-color: rgba(11, 12, 16, .2); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------------------------------------------------------------- 幕開け（最初の1回だけ） */
.opening { position: fixed; inset: 0; z-index: 200; background: var(--space); display: grid; place-items: center; transition: opacity 1s var(--ease); }
.opening.is-done { opacity: 0; pointer-events: none; }
.opening-line { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 var(--gutter); opacity: 0; transition: opacity 1.1s ease; }
.opening-line.is-on { opacity: 1; }
.opening-line .title { font-size: clamp(34px, 6vw, 84px); }
.opening-skip { position: absolute; right: var(--gutter); bottom: 28px; background: none; border: 0; color: rgba(255, 255, 255, .55); cursor: pointer; padding: 8px 0; }
.opening-skip:hover { color: var(--sun); }
.opening .lb-top, .opening .lb-bottom { position: absolute; left: 0; right: 0; height: 11vh; background: #000; }
.opening .lb-top { top: 0; } .opening .lb-bottom { bottom: 0; }

/* ---------------------------------------------------------------- 大見出し（映画のポスターのように） */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--space); }
.hero .media-wait { place-items: start center; padding-top: 24vh; }
.hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, .38) 0%, rgba(5, 6, 10, 0) 26%, rgba(5, 6, 10, 0) 48%, rgba(5, 6, 10, .55) 70%, rgba(5, 6, 10, .9) 100%); }
.letterbox { position: absolute; left: 0; right: 0; z-index: 3; height: var(--lb); background: #000; pointer-events: none; }
.letterbox-top { top: 0; } .letterbox-bottom { bottom: 0; }
.hero-credit {
  position: absolute; left: 0; right: 0; bottom: calc(var(--lb) + clamp(20px, 4vh, 44px)); z-index: 4; text-align: center;
  padding: 0 var(--gutter); text-shadow: 0 2px 24px rgba(5, 6, 10, .55);
}
.hero-credit .caps { color: rgba(255, 255, 255, .82); }
.hero-credit h1 .title { margin-top: 12px; font-size: clamp(42px, 6vw, 92px); }
@media (min-width: 900px) { .hero-credit h1 .title br { display: none; } .hero-credit h1 .title { font-size: clamp(42px, 5.4vw, 84px); } }
.hero-credit .jp { margin-top: 14px; color: rgba(255, 255, 255, .9); }
.credit-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 40px; margin-top: clamp(18px, 3vh, 30px); }
.credit-row .caps { font-size: 10px; color: rgba(255, 255, 255, .62); }
.credit-row b { display: block; font-weight: 500; color: var(--white); }
.hud { position: absolute; z-index: 5; color: rgba(255, 255, 255, .6); pointer-events: none; }
.hud-tl { left: var(--gutter); top: calc(var(--header-h) + 14px); }
.hud-tr { right: var(--gutter); top: calc(var(--header-h) + 14px); text-align: right; }
.hud-bl { left: var(--gutter); bottom: 16px; }
.hud-br { right: var(--gutter); bottom: 16px; text-align: right; }
.hud .live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); vertical-align: 1px; animation: blink 2.4s infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 70%, 100% { opacity: .25; } }
@media (max-width: 640px) {
  .hero .media::after { background: linear-gradient(180deg, rgba(5, 6, 10, .4) 0%, rgba(5, 6, 10, .05) 22%, rgba(5, 6, 10, .45) 42%, rgba(5, 6, 10, .78) 62%, rgba(5, 6, 10, .92) 100%); }
  .hud-tl, .hud-tr { top: calc(var(--header-h) + 8px); }
  .hud-bl { display: none; }
  .credit-row { gap: 6px 22px; }
}

/* ---------------------------------------------------------------- 章の字幕 */
.chapter { position: relative; display: grid; place-items: center; min-height: 78vh; padding: 120px var(--gutter); text-align: center; background: var(--space); overflow: hidden; }
.chapter-inner { position: relative; z-index: 1; opacity: var(--fade, 1); transform: translateY(calc((1 - var(--fade, 1)) * 18px)); }
.chapter .caps { color: rgba(255, 255, 255, .6); }
.chapter .title { margin-top: 22px; font-size: clamp(38px, 6.2vw, 92px); }
.chapter .jp { margin-top: 18px; color: rgba(255, 255, 255, .78); }
.chapter-rule { width: 1px; height: 64px; margin: 34px auto 0; background: linear-gradient(var(--sun), rgba(247, 203, 21, 0)); }

/* ---------------------------------------------------------------- 白い区画（ステーションの内側） */
.hull { position: relative; background: var(--hull); color: var(--ink); }
.hull .caps { color: var(--ink-2); }
.section { padding: clamp(96px, 13vw, 176px) 0; }
.section-tight { padding-top: clamp(56px, 7vw, 96px); }
.center { text-align: center; }
.lead-l { max-width: 34em; margin: 26px auto 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 2.1; color: var(--ink-2); }
.dark .lead-l { color: rgba(255, 255, 255, .72); }
.stmt .title { font-size: clamp(36px, 5.6vw, 84px); }
.stmt .jp { margin-top: 16px; }

.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 8vw, 104px); list-style: none; border-top: 1px solid var(--ink); }
.systems li { padding: 30px clamp(18px, 2.4vw, 36px) 0; text-align: left; }
.systems li + li { border-left: 1px solid var(--line); }
.systems .mono { color: var(--ink-3); }
.systems h3 { margin-top: 16px; font-family: var(--f-title); font-weight: 700; font-size: clamp(30px, 3vw, 44px); text-transform: lowercase; line-height: 1; }
.systems h3 small { display: block; margin-top: 12px; font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.systems p { margin-top: 16px; font-size: 14px; line-height: 2; color: var(--ink-2); }
@media (max-width: 760px) { .systems { grid-template-columns: 1fr; } .systems li { padding-left: 0; padding-right: 0; padding-bottom: 28px; } .systems li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------------------------------------------------------------- 回廊（スクロールで奥へ進む） */
.corridor { position: relative; height: 420vh; background: var(--space); }
.corridor-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.corridor-flash { position: absolute; inset: 0; z-index: 4; background: var(--hull); opacity: var(--flash, 0); pointer-events: none; }
.corridor-depth { position: absolute; right: var(--gutter); top: 50%; z-index: 5; transform: translateY(-50%); display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .9); }
.corridor-depth [data-depth] { padding: 6px 12px; border-radius: 999px; background: rgba(5, 6, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.depth-track { position: relative; width: 1px; height: 180px; background: rgba(255, 255, 255, .25); }
.depth-fill { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: var(--sun); box-shadow: 0 0 8px var(--sun); }
.modules-tags { position: absolute; left: 0; right: 0; bottom: clamp(48px, 12vh, 120px); z-index: 5; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.mtag { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; opacity: 0; transform: translateY(16px); transition: opacity .7s var(--slow), transform .7s var(--slow); }
.mtag.is-active { opacity: 1; transform: none; pointer-events: auto; }
.mtag .mono { color: var(--sun); }
.mtag .title { margin-top: 10px; font-size: clamp(26px, 8.4vw, 96px); }   /* 小さいスマホでも、いちばん長い名前が端に当たらない */
.mtag .jp { margin-top: 10px; }
.mtag .text-link { margin-top: 18px; color: var(--white); }
.corridor-intro { position: absolute; top: calc(var(--header-h) + 24px); left: 0; right: 0; z-index: 5; text-align: center; color: rgba(255, 255, 255, .9); opacity: calc(1 - var(--p, 0) * 6); }
.corridor .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, .45) 0%, rgba(5, 6, 10, 0) 22%, rgba(5, 6, 10, 0) 45%, rgba(5, 6, 10, .78) 100%), radial-gradient(ellipse at center, rgba(5, 6, 10, 0) 45%, rgba(5, 6, 10, .45) 100%); }
.modules-tags, .corridor-intro { text-shadow: 0 2px 18px rgba(5, 6, 10, .7); }
/* 立体の見回し：案内の文字と、iPhone の「傾けて見回す」ボタン */
.corridor-stage { touch-action: pan-y pinch-zoom; }
.corridor-look { position: absolute; top: calc(var(--header-h) + 52px); left: var(--gutter); right: var(--gutter); z-index: 5; display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: rgba(255, 255, 255, .78); text-shadow: 0 2px 14px rgba(5, 6, 10, .8); pointer-events: none; }
.corridor.has-look .corridor-look { display: flex; }
.look-tilt { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--sun); background: rgba(5, 6, 10, .55); color: var(--sun); cursor: pointer; pointer-events: auto; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.look-tilt[hidden] { display: none; }
@media (max-width: 640px) { .corridor-depth { display: none; } }

/* ---------------------------------------------------------------- 4つの区画（扉が開く） */
.airlocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 7vw, 88px); }
.airlock { display: block; color: var(--ink); }
.airlock-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 28px; background: var(--hull-2); }
.door { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 2; background: linear-gradient(180deg, #fdfdfd, #e9ecef); transition: transform 1.6s var(--slow); }
.door-l { left: 0; border-right: 1px solid rgba(11, 12, 16, .08); }
.door-r { right: 0; border-left: 1px solid rgba(11, 12, 16, .08); }
.door::after { content: ""; position: absolute; top: 18%; bottom: 18%; width: 1px; background: rgba(11, 12, 16, .1); }
.door-l::after { right: 22%; } .door-r::after { left: 22%; }
.seam { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3; width: 2px; margin-left: -1px; background: var(--sun); box-shadow: 0 0 14px var(--sun), 0 0 34px rgba(247, 203, 21, .6); transition: opacity .5s; }
.door-label { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; background: var(--hull); color: var(--ink-2); border-radius: 999px; transition: opacity .4s; }
.airlock.is-open .door-l { transform: translateX(-101%); }
.airlock.is-open .door-r { transform: translateX(101%); }
.airlock.is-open .seam, .airlock.is-open .door-label { opacity: 0; }
.airlock-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: baseline; padding: 22px 6px 0; }
.airlock-body .mono { color: var(--ink-3); }
.airlock-body .title { font-size: clamp(26px, 2.6vw, 38px); }
.airlock-body .ne { color: var(--ink); }
.airlock-body p { grid-column: 2 / 4; margin-top: 4px; font-size: 14px; line-height: 2; color: var(--ink-2); }
.airlock-body .jp-s { grid-column: 2 / 4; font-size: 13px; font-weight: 600; letter-spacing: .12em; }
@media (max-width: 760px) { .airlocks { grid-template-columns: 1fr; } .airlock-frame { border-radius: 20px; } }

.also { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: clamp(40px, 5vw, 64px); font-size: 13px; color: var(--ink-2); }
.also .item { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.also .text-link { color: var(--ink); margin-left: 8px; }

/* ---------------------------------------------------------------- 通信（注目のサービス） */
.signal { position: relative; overflow: hidden; background: var(--space); }
.signal-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.signal-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 28px; }
.incoming { display: inline-flex; align-items: center; gap: 10px; color: var(--sun); }
.incoming::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 12px var(--sun); animation: blink 1.6s infinite; }
.signal .title { margin-top: 22px; font-size: clamp(48px, 6.6vw, 104px); }
.signal .jp { margin-top: 14px; }
.signal p.desc { margin-top: 20px; max-width: 32em; font-size: 15px; line-height: 2.05; color: rgba(255, 255, 255, .72); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; }
.tags li { padding: 5px 13px; font-family: var(--f-title); font-size: 10px; font-weight: 500; letter-spacing: .26em; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: rgba(255, 255, 255, .85); }
.hull .tags li { border-color: var(--line); color: var(--ink-2); background: var(--white); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: rgba(255, 255, 255, .7); text-transform: none; letter-spacing: .12em; }
.hull .status { color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.scan { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--slow); }
.is-in .scan, .scan.is-in { clip-path: inset(0 0 0 0); }
.sub-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 7vw, 96px); }
.sub-signal { padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line-dk); border-radius: 28px; background: rgba(255, 255, 255, .02); }
.sub-signal .title { margin-top: 14px; font-size: clamp(32px, 3.4vw, 52px); }
.sub-signal p { margin-top: 14px; font-size: 14px; line-height: 2; color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) { .signal-grid, .sub-signals { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 到着（ご相談） */
.arrival { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--space); }
.arrival .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, .2), rgba(5, 6, 10, .75)); }
.arrival-inner { position: relative; z-index: 2; padding-bottom: clamp(64px, 12vh, 140px); text-align: center; }
.arrival .title { margin-top: 18px; font-size: clamp(64px, 12vw, 200px); line-height: .95; }
.arrival .jp { margin-top: 18px; }
.arrival p { max-width: 32em; margin: 14px auto 0; font-size: 14px; line-height: 2; color: rgba(255, 255, 255, .75); }
.arrival .btn { margin-top: 34px; }

/* ---------------------------------------------------------------- 下層ページの見出し */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(72px, 12vw, 160px)) 0 clamp(64px, 9vw, 120px); background: var(--space); text-align: center; }
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; color: rgba(255, 255, 255, .5); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; }
.breadcrumb a:hover { color: var(--sun); }
.page-title .title { margin-top: 28px; font-size: clamp(56px, 10vw, 150px); }
.page-title .jp { margin-top: 18px; color: rgba(255, 255, 255, .85); }
.page-hero .lead-l { color: rgba(255, 255, 255, .72); }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; list-style: none; }
.chips a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 12px; font-weight: 600; letter-spacing: .1em; border: 1px solid var(--line-dk); border-radius: 999px; transition: border-color .3s, color .3s; }
.chips a:hover { border-color: var(--sun); color: var(--sun); }
.chip-num { font-family: var(--f-mono); font-size: 10px; color: var(--sun); }

/* ---------------------------------------------------------------- 事業内容ページ */
.pillar { padding: clamp(88px, 11vw, 150px) 0; background: var(--hull); color: var(--ink); }
.pillar--dark { background: var(--space); color: var(--white); }
.pillar-head { text-align: center; }
.pillar-head .mono { color: var(--ink-3); }
.pillar--dark .pillar-head .mono { color: var(--sun); }
.pillar-head .title { margin-top: 16px; font-size: clamp(44px, 7vw, 104px); }
.pillar-head .jp { margin-top: 14px; }
.pillar-head p { max-width: 34em; margin: 22px auto 0; font-size: 15px; line-height: 2.05; color: var(--ink-2); }
.pillar--dark .pillar-head p { color: rgba(255, 255, 255, .72); }
.for { max-width: 40em; margin: 18px auto 0; font-size: 13px; line-height: 1.9; color: var(--ink-3); }
.pillar--dark .for { color: rgba(255, 255, 255, .55); }
.for dt { display: inline; margin-right: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-2); }
.pillar--dark .for dt { color: var(--sun); }
.for dd { display: inline; margin: 0; }
.pillar-frame { position: relative; aspect-ratio: 21 / 9; margin-top: clamp(40px, 6vw, 72px); overflow: hidden; border-radius: 28px; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(32px, 4vw, 56px); list-style: none; }
.service { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.pillar--dark .service { background: rgba(255, 255, 255, .03); border-color: var(--line-dk); }
.service-name .en { display: block; font-family: var(--f-title); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); text-transform: lowercase; line-height: 1.05; }
.service-name .ja { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--ink-2); }
.pillar--dark .service-name .ja { color: var(--sun); }
.service p { margin-top: 12px; font-size: 14px; line-height: 2; color: var(--ink-2); }
.pillar--dark .service p { color: rgba(255, 255, 255, .72); }
.service .status { margin-top: auto; padding-top: 16px; color: inherit; }
.pillar .tags li { border-color: var(--line); color: var(--ink-2); background: var(--hull); }
.pillar--dark .tags li { border-color: var(--line-dk); color: rgba(255, 255, 255, .85); background: transparent; }

.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); list-style: none; border-top: 1px solid var(--ink); margin-top: clamp(40px, 5vw, 64px); text-align: left; }
.others li { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.9; }
.others .o-num { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-3); padding-top: .5em; }
@media (max-width: 760px) { .others { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 会社概要 */
.profile { max-width: 980px; margin: 0 auto; border-top: 1px solid var(--ink); }
.profile-row { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 10px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3); padding-top: .55em; }
.profile dt .jp-s { display: block; margin-top: 6px; font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.profile dd { margin: 0; font-size: 16px; line-height: 2; }
.profile .big { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: .04em; line-height: 1.5; }
/* 代表の名前は、会社名より少し小さく（2026-10-20 Masami さん） */
.profile .big-s { font-size: clamp(17px, 1.7vw, 21px); }
.profile .ruby { display: block; font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--ink-3); }
.profile .muted { color: var(--ink-3); }
.purpose { list-style: none; counter-reset: p; }
.purpose li { position: relative; padding-left: 3em; font-size: 15px; line-height: 2; }
.purpose li + li { margin-top: 8px; }
.purpose li::before { counter-increment: p; content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: .5em; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); }
@media (max-width: 640px) { .profile-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; } }

/* ---------------------------------------------------------------- お問い合わせ */
.contact-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-aside h2 { margin-top: 12px; font-size: 20px; font-weight: 600; letter-spacing: .08em; }
.contact-aside li { font-size: 14px; line-height: 2; color: var(--ink-2); }
.contact-aside ul { margin-top: 14px; padding-left: 1.2em; }
.contact-aside .note { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--space); color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 2; }
.contact-aside .note a { color: var(--sun); border-bottom: 1px solid currentColor; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { border-top: 1px solid var(--ink); }
.field { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 10px 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.field > label { padding-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.req, .opt { display: inline-block; margin-left: 10px; padding: 2px 9px; font-size: 10px; font-weight: 700; letter-spacing: .12em; vertical-align: 2px; border-radius: 999px; }
.req { background: var(--sun); color: var(--ink); }
.opt { border: 1px solid var(--line); color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; letter-spacing: .02em; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 220px; resize: vertical; line-height: 1.8; }
.field select { padding-right: 44px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(247, 203, 21, .45); }
.field .hint { grid-column: 2; margin: -2px 0 0; font-size: 12px; color: var(--ink-3); }
.consent { padding: 28px 0 8px; font-size: 14px; }
.consent label { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; line-height: 1.8; }
.consent input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--ink); flex: none; }
.consent a { border-bottom: 1px solid currentColor; }
.form-actions { padding-top: 28px; }
.form-actions .btn { min-width: 300px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .field { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .field > label { padding-top: 0; }
  .field .hint { grid-column: 1; }
  .form-actions .btn { width: 100%; min-width: 0; }
}

/* ---------------------------------------------------------------- 文章ページ */
.prose { max-width: 46em; margin: 0 auto; }
.prose h2 { margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: 18px; font-weight: 600; letter-spacing: .06em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 15px; line-height: 2.05; color: var(--ink-2); }
.prose ul { margin: 0 0 1em; padding-left: 1.4em; }
.prose li + li { margin-top: 4px; }
.prose a { border-bottom: 1px solid currentColor; color: var(--ink); }
.prose .sign { margin-top: 56px; padding: 28px 32px; border-radius: 20px; background: var(--space); color: var(--white); }
.prose .sign p { margin: 0; color: var(--white); }
.prose .sign a { color: var(--sun); border-color: var(--sun); }
/* 住所などを、区切りのよいところでだけ折り返す（例：〒番号／番地／ビル名） */
.nb { display: inline-block; }
.prose .dates { margin-top: 24px; font-size: 12px; letter-spacing: .1em; color: var(--ink-3); }

/* ---------------------------------------------------------------- 404 */
.message { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; overflow: hidden; }
.message .wrap { position: relative; z-index: 1; }
.message .title { margin-top: 22px; font-size: clamp(56px, 11vw, 168px); }
.message p { margin-top: 22px; color: rgba(255, 255, 255, .7); }
.message .btn { margin-top: 30px; }

/* ---------------------------------------------------------------- フッター（映画のクレジットのように） */
.site-footer { position: relative; background: var(--space); color: rgba(255, 255, 255, .7); padding: clamp(80px, 10vw, 128px) 0 28px; border-top: 1px solid var(--line-dk); text-align: center; }
.site-footer .caps { color: rgba(255, 255, 255, .55); }
.footer-company { margin-top: 14px; font-size: 15px; font-weight: 600; letter-spacing: .2em; color: var(--white); }
.footer-credits { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 48px; margin-top: 40px; }
.footer-credits .caps { font-size: 10px; }
.footer-credits b { display: block; margin-top: 4px; font-weight: 500; color: var(--white); }
.footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 36px; list-style: none; margin-top: 48px; }
.footer-nav a { font-family: var(--f-title); font-size: 11px; letter-spacing: .3em; }
.footer-nav a:hover { color: var(--sun); }
.footer-big { display: block; margin-top: clamp(56px, 8vw, 96px); font-family: var(--f-title); font-weight: 700; font-size: clamp(34px, 7.4vw, 108px); line-height: .9; letter-spacing: .01em; text-transform: uppercase; color: var(--space-2); -webkit-text-stroke: 1px rgba(255, 255, 255, .08); user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dk); color: rgba(255, 255, 255, .45); }
.footer-bottom a:hover { color: var(--sun); }


/* ==========================================================================
   体験の仕掛け（AI ビジョン・照準カーソル・アプリ／ライブ／多言語／試着のデモ）
   ========================================================================== */

/* ---------------------------------------------------------------- AI ビジョン（大見出し） */
.vision { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.vision-boxes { position: absolute; inset: 0; }
.vbox {
  position: absolute; border: 1px solid rgba(247, 203, 21, .9); opacity: 0; transform: scale(1.06);
  transition: opacity .5s var(--slow), transform .7s var(--slow);
  box-shadow: 0 0 0 1px rgba(5, 6, 10, .25), inset 0 0 24px rgba(247, 203, 21, .12);
}
.vbox::before, .vbox::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--sun); border-style: solid; }
.vbox::before { left: -4px; top: -4px; border-width: 2px 0 0 2px; }
.vbox::after { right: -4px; bottom: -4px; border-width: 0 2px 2px 0; }
.vbox-label {
  position: absolute; left: -1px; bottom: 100%; margin-bottom: 4px; padding: 3px 8px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--ink); background: var(--sun);
}
.vbox-label em { font-style: normal; opacity: .65; margin-left: 8px; }
.vbox.lb .vbox-label { bottom: auto; top: 100%; margin: 4px 0 0; }
.vbox.lr .vbox-label { left: auto; right: -1px; }
.vision.is-on .vbox { opacity: 1; transform: none; }
.vision-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(247, 203, 21, 0), var(--sun) 20%, var(--sun) 80%, rgba(247, 203, 21, 0));
  box-shadow: 0 0 18px var(--sun), 0 0 60px rgba(247, 203, 21, .5);
}
.vision.is-scanning .vision-scan { animation: vscan 1.8s var(--ease) both; }
@keyframes vscan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--vh, 100vh)); } }
.vision-lens {
  position: absolute; left: 0; top: 0; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%;
  transform: translate(var(--mx, -999px), var(--my, -999px)); opacity: 0; transition: opacity .3s;
  -webkit-backdrop-filter: grayscale(1) contrast(1.9) brightness(1.15); backdrop-filter: grayscale(1) contrast(1.9) brightness(1.15);
  border: 1px solid var(--sun); box-shadow: 0 0 0 6px rgba(5, 6, 10, .25), 0 0 30px rgba(247, 203, 21, .35);
  background-image: linear-gradient(rgba(247, 203, 21, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 203, 21, .18) 1px, transparent 1px);
  background-size: 16px 16px;
}
.vision-lens span { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); color: var(--sun); white-space: nowrap; }
.hero.is-vision.has-pointer .vision-lens { opacity: 1; }
.vision-toggle {
  position: absolute; z-index: 6; right: var(--gutter); bottom: calc(var(--lb) + 16px);
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  background: rgba(5, 6, 10, .55); border: 1px solid rgba(255, 255, 255, .25); color: var(--white); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .3s, color .3s;
}
.vision-toggle b { font-weight: 500; color: rgba(255, 255, 255, .55); }
.vision-toggle:hover, .vision-toggle[aria-pressed="true"] { border-color: var(--sun); color: var(--sun); }
.vision-toggle[aria-pressed="true"] b { color: var(--sun); }
.vision-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.vision-toggle[aria-pressed="true"] .vision-dot { background: var(--sun); box-shadow: 0 0 10px var(--sun); animation: blink 1.4s infinite; }
.hero.is-vision .slide.is-on img { animation: none; transform: none; }
@media (max-width: 640px) { .vision-toggle { bottom: auto; top: calc(var(--header-h) + 52px); right: var(--gutter); } .vbox-label { font-size: 9px; padding: 2px 6px; } }
/* 背の低いスマホでは、見出しの文字が上まで来るので、ボタンは下の黒い帯の左へ */
@media (max-width: 640px) and (max-height: 740px) { .vision-toggle { top: auto; bottom: 12px; left: var(--gutter); right: auto; } }

/* ---------------------------------------------------------------- 照準のカーソル（パソコンだけ） */
.reticle {
  position: fixed; left: 0; top: 0; z-index: 400; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(247, 203, 21, .85); pointer-events: none; opacity: 0;
  transform: translate(var(--rx, -100px), var(--ry, -100px)) scale(var(--rs, 1)); transition: opacity .3s, border-color .3s, background .3s;
}
.reticle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--sun); }
.reticle.is-on { opacity: 1; }
.reticle.is-link { background: rgba(247, 203, 21, .12); }
.reticle-label { position: absolute; left: 50%; top: 100%; margin-top: 8px; transform: translateX(-50%); white-space: nowrap; color: var(--sun); opacity: 0; transition: opacity .3s; }
.reticle.is-link .reticle-label { opacity: 1; }

/* ---------------------------------------------------------------- デモ共通 */
.demo-tag { position: absolute; z-index: 5; left: 14px; top: 12px; padding: 3px 8px; border-radius: 4px; background: rgba(5, 6, 10, .6); color: rgba(255, 255, 255, .8); font-size: 9.5px; }

/* スマホの形（アプリのデモ） */
.demo-phone-wrap { display: grid; place-items: center; }
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 19; padding: 12px; border-radius: 48px;
  background: linear-gradient(145deg, #2a2c33, #0b0c10 40%, #1a1b20); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px rgba(247, 203, 21, .12);
}
.phone .demo-tag { left: 50%; top: 22px; transform: translateX(-50%); }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 38px; background: linear-gradient(180deg, #fbfaf6 0%, #f3ead0 100%); color: var(--ink); display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; border-bottom: 1px solid rgba(11, 12, 16, .08); }
.chat-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2b3, var(--sun) 55%, #c79a00); background-size: cover; background-position: center top; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sun); }
.chat-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.chat-name small { display: block; font-size: 8.5px; color: #3aa76d; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 22px; margin-left: auto; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--ink); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; } .wave i:nth-child(4) { animation-delay: .3s; }
.wave i:nth-child(5) { animation-delay: .4s; } .wave i:nth-child(6) { animation-delay: .5s; } .wave i:nth-child(7) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.chat-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden; }
.msg { max-width: 80%; margin: 0; padding: 9px 13px; border-radius: 18px; font-size: 12.5px; line-height: 1.6; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--slow), transform .5s var(--slow); }
.msg.them { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; box-shadow: 0 2px 10px rgba(11, 12, 16, .06); }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 6px; }
.msg.is-shown { opacity: 1; transform: none; }
.msg[hidden] { display: none; }
.no-js .msg { opacity: 1; transform: none; }
.no-js .msg.typing { display: none; }
.msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg.typing[hidden] { display: none; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
.card-unlock { padding: 0 14px 18px; perspective: 600px; }
.card-flip { position: relative; height: 70px; transform-style: preserve-3d; transition: transform 1s var(--slow); }
.card-flip.is-flipped { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-face.front { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 10px; }
.card-face.back { transform: rotateY(180deg); background: linear-gradient(135deg, #fff7cf, var(--sun)); color: var(--ink); text-align: center; line-height: 1.2; box-shadow: 0 0 30px rgba(247, 203, 21, .5); }
.card-face.back b { display: block; font-family: var(--f-title); font-size: 26px; }
.card-face.back .mono { font-size: 9px; }

/* 3つのデモ */
.demos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(64px, 8vw, 110px); }
.demo { min-width: 0; }
.demo .title { margin-top: 12px; font-size: clamp(28px, 2.6vw, 40px); }
.demo .jp { margin-top: 8px; font-size: 14px; }
.demo p { margin-top: 12px; font-size: 13.5px; line-height: 2; color: rgba(255, 255, 255, .7); }
.demo .incoming { margin-top: 22px; }
.demo-stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: var(--space-2); border: 1px solid var(--line-dk); }
@media (max-width: 960px) { .demos { grid-template-columns: 1fr; } .demo-stage { aspect-ratio: 4 / 4.4; } }

/* AI 試着の前後（つまみ） */
.compare { --cut: 50%; touch-action: pan-y; }
.compare-media { position: absolute; inset: 0; }
.compare-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-media .after { clip-path: inset(0 0 0 var(--cut)); }
.compare-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: var(--sun); box-shadow: 0 0 14px var(--sun); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 18px; }
.compare-range:focus-visible + .compare-handle span { outline: 2px solid var(--white); outline-offset: 3px; }
.compare-label { position: absolute; z-index: 3; bottom: 14px; padding: 3px 8px; border-radius: 4px; background: rgba(5, 6, 10, .6); font-size: 9.5px; }
.compare-label.before { left: 14px; } .compare-label.after { right: 14px; color: var(--sun); }

/* ライブ配信 */
.live-media { position: absolute; inset: 0; }
.live-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, .35), rgba(5, 6, 10, 0) 30%, rgba(5, 6, 10, 0) 60%, rgba(5, 6, 10, .7)); }
.live-badge { position: absolute; z-index: 4; right: 14px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; background: #e5383b; color: var(--white); font-size: 10px; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: blink 1.2s infinite; }
.live-count { position: absolute; z-index: 4; right: 14px; top: 42px; padding: 3px 8px; border-radius: 4px; background: rgba(5, 6, 10, .55); font-size: 10px; color: var(--white); text-transform: none; }
.live-hearts { position: absolute; z-index: 3; right: 18px; bottom: 80px; width: 60px; height: 70%; pointer-events: none; }
.heart { position: absolute; bottom: 0; left: 50%; width: 22px; height: 22px; margin-left: -11px; color: var(--sun); animation: heart-up 2.6s ease-out forwards; }
.heart svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 0 6px rgba(247, 203, 21, .6)); }
@keyframes heart-up { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--hx, 0px), -260px) scale(1.1); } }
.live-product { position: absolute; z-index: 4; left: 14px; right: 90px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--ink); transform: translateY(140%); transition: transform .8s var(--slow); }
.live-product.is-in { transform: none; }
.live-product b { display: block; font-size: 12px; line-height: 1.3; }
.live-product .mono { font-size: 9px; color: var(--ink-3); }
.live-dot { width: 34px; height: 34px; flex: none; border-radius: 8px; background: linear-gradient(135deg, #ffe680, var(--sun) 60%, #b98f00); }

/* 多言語（字幕の切り替え） */
.global-media { position: absolute; inset: 0; }
.global-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* スマホの画面：人物の写真と動画をチャットの下に敷き、上下を少し明るくして文字を読みやすく */
.phone-media { position: absolute; inset: 0; z-index: 0; }
.phone-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 250, 246, .5) 0%, rgba(251, 250, 246, 0) 20%, rgba(251, 250, 246, 0) 50%, rgba(251, 250, 246, .72) 100%); }
.phone-screen > .chat-head, .phone-screen > .chat-log, .phone-screen > .card-unlock { position: relative; z-index: 1; }
.phone-screen > .chat-head { background: rgba(251, 250, 246, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chat-avatar { background-image: url("/assets/media/phone_avatar.webp"); }

/* 私たちの役割：相談の場面の横長の写真 */
.role-band { position: relative; max-width: 1200px; aspect-ratio: 21 / 9; margin: clamp(40px, 6vw, 72px) auto 0; overflow: hidden; border-radius: 28px; }
@media (max-width: 640px) { .role-band { aspect-ratio: 4 / 3; border-radius: 20px; } }
.role-band img { object-position: 50% 20%; }   /* 横長の帯でも、人の頭が切れないよう少し上を見せる */
/* 事業内容ページの横長の写真：人の頭が切れないよう少し上を見せる（静止画と動画を必ず同じ位置に） */
.pillar-frame .media > img, .pillar-frame .media > video { object-position: 50% 22%; }
.subtitle { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 74px; margin: 0; text-align: center; }
.subtitle span { display: inline-block; padding: 6px 12px; background: rgba(5, 6, 10, .7); color: var(--white); font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; letter-spacing: .04em; line-height: 1.6; }
.lang-chips { position: absolute; z-index: 4; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 6px; }
.lang-chips button { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(5, 6, 10, .5); color: var(--white); cursor: pointer; font-size: 10px; text-transform: none; }
.lang-chips button.is-on { background: var(--sun); border-color: var(--sun); color: var(--ink); }

/* ---------------------------------------------------------------- 現れ方 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--slow), transform 1.2s var(--slow); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .scan { clip-path: none; }
.no-js .airlock .door-l { transform: translateX(-101%); }
.no-js .airlock .door-r { transform: translateX(101%); }

/* ページの切り替わり：暗転 */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan { clip-path: none; transition: none; }
  .door { transition: none; }
  .hero-slides .slide.is-on img { animation: none; }
  .hero-slides .slide { transition: none; }
  .media-push img { transform: none; }
  .hud .live::before, .incoming::before { animation: none; }
  .vision-scan, .wave i, .msg.typing i, .live-badge i, .vision-toggle[aria-pressed="true"] .vision-dot { animation: none; }
  .reticle { display: none; }
  .card-flip, .msg, .live-product, .vbox { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print { .reveal { opacity: 1; transform: none; } .site-header { position: static; } .opening, .letterbox { display: none; } }
