/*
  合同会社Ray 公式サイト — site.css（このファイル 1 つだけ。外部読み込みなし）
  デザイン R08: Owner が選んだ「白と青・点と線のグラフ」のデザインを基準にしている（docs/APPROVAL.md の 6）。
  配色の名前と値は tools/check-site.mjs の PALETTE と同じにする。
*/
:root {
  --white: #ffffff;
  --ice: #edf5ff;
  --blue: #0754cc;
  --navy: #071d40;
  --muted: #465b75;
  --line: #c8d9ec;
  --result: #f3f8ff;
  --gutter: clamp(16px, 5vw, 48px);
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic UI", Meiryo, "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  --display: var(--sans);
  --latin: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* ---------- 基本 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; scroll-snap-type: y proximity; }
body { margin: 0; color: var(--navy); background: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.services a:focus-visible { outline-color: var(--white); }
[hidden] { display: none !important; }
svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); }
/* 見出しとボタンは、文節の切れ目（<wbr>・句読点）で折り返す。入りきらないときだけ途中で折る */
h1, h2, h3, h4, .button, .flow-title, .content-label { word-break: keep-all; overflow-wrap: anywhere; }
h2 { font-size: clamp(28px, 3.7vw, 44px); line-height: 1.5; letter-spacing: -.035em; }
h3 { font-size: 21px; line-height: 1.8; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 10px; padding: 12px 20px; background: var(--white); border: 2px solid var(--blue); z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.header-inner, .section-inner, .hero-inner, .hero-bottom, .footer-inner { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(200,217,236,.7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--blue), #3d9bff, #9fd0ff); box-shadow: 0 0 10px rgba(7,84,204,.6); transform: scaleX(var(--sp, 0)); transform-origin: left; pointer-events: none; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--navy); font-family: var(--latin); font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.brand svg { color: var(--blue); animation: brand-glow 3s ease-in-out infinite; }
.brand-dot { color: var(--blue); display: inline-block; animation: dot-beat 1.8s ease-in-out infinite; }
.site-nav { flex: 1; display: flex; align-items: center; gap: 36px; }
.site-nav > a:first-child, .site-nav .nav-contact { margin-left: auto; }
.site-nav a { font-size: 16px; font-weight: 700; white-space: nowrap; }
.site-nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--blue); }
.site-nav .nav-contact { padding: 10px 20px; border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s, box-shadow .2s; animation: border-glow 2.8s ease-in-out infinite; }
.site-nav .nav-contact:hover { border-color: var(--blue); box-shadow: 0 0 18px rgba(7,84,204,.25); }
.nav-contact span { margin-left: 22px; color: var(--blue); }
.menu-button { display: none; align-items: center; gap: 14px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); background: var(--white); font-weight: 700; }
.menu-icon { color: var(--blue); }

/* ---------- 導入画面（点と線のグラフ） ----------
   高さは「見えている高さ − ヘッダー」ちょうど。下の「下へスワイプ」は最初の画面の中に収まる */
.intro { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; height: calc(100vh - 88px); height: calc(100svh - var(--hh, 88px)); height: calc(var(--vh, 100svh) - var(--hh, 88px)); min-height: 360px; background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.55) 20%, rgba(237,245,255,.35) 100%); scroll-snap-align: start; }
.intro-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.intro-copy { position: relative; z-index: 1; text-align: center; padding: 0 24px clamp(90px, 24vh, 240px); animation: copy-in 1.1s cubic-bezier(.2,.8,.2,1) 1.6s both; }
.intro-copy::before { content: ""; position: absolute; z-index: -1; inset: -28px -10vw -20px; background: radial-gradient(closest-side, rgba(255,255,255,.92) 50%, rgba(255,255,255,0)); pointer-events: none; }
.intro-title { font-family: var(--display); font-size: clamp(30px, 5.2vw, 62px); font-weight: 800; line-height: 1.4; letter-spacing: -.05em; }
/* 文字の後ろを白くして、グラフの線と重なっても読めるようにする（Owner 2026年11月10日） */
.intro-title { display: inline-block; padding: .2em .75em; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 0 20px 14px rgba(255,255,255,.96); }
.intro-title > span { display: inline-block; }
.intro-accent { color: var(--blue); }
/* 料金の 1 行: 「思考を 至高へ」と相談ボタンの間。後ろは「思考を 至高へ」と同じ白。折り返さない（Owner 2026年11月10日） */
.intro-price { width: fit-content; max-width: 100%; margin: 22px auto 0; padding: .1em .9em; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 0 14px 8px rgba(255,255,255,.96); color: var(--navy); font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; line-height: 1.8; white-space: nowrap; }
/* 相談ボタン: 「思考を 至高へ」と「下へスワイプ」の中間。グラフの中心（高さの 62%）のすぐ下 */
.intro-action { position: absolute; left: 0; right: 0; top: 73%; z-index: 1; display: flex; justify-content: center; padding-inline: 20px; translate: 0 -50%; animation: copy-in 1s ease 2s both; }
.intro-hint { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 1; text-align: center; animation: copy-in 1s ease 2.4s both; }
.intro-hint a { display: inline-block; padding: 8px 14px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.intro-hint a:hover { color: var(--blue); }
.intro-hint span { display: inline-block; margin-left: 8px; color: var(--blue); animation: nudge 1.6s ease-in-out infinite; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(116deg, rgba(255,255,255,.72) 22%, rgba(237,245,255,.5) 100%); scroll-snap-align: start; }
.hero-grid { position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(rgba(7,84,204,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(7,84,204,.06) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, transparent 5%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 100%); animation: grid-drift 6s linear infinite; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at 70% 40%, rgba(7,84,204,.14), transparent 65%); animation: glow-roam 9s ease-in-out infinite; }
.hero-inner { min-height: 650px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; position: relative; }
.hero-copy { padding-block: 72px; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 16px; font-weight: 700; margin-bottom: 30px; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px rgba(7,84,204,.07); animation: dot-beat 1.8s ease-in-out infinite; }
.hero h1 { display: flex; flex-direction: column; font-size: clamp(44px, 5.4vw, 74px); line-height: 1.38; letter-spacing: -.065em; font-weight: 800; }
.hero h1 > span { display: block; animation: slide-l 1s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 > span:first-child { align-self: flex-start; text-align: left; animation-delay: .15s; }
.hero h1 > span:last-child { align-self: flex-end; text-align: right; animation-delay: .35s; }
.hero h1 > .blue-text { color: var(--blue); background: linear-gradient(100deg, #0754cc 30%, #3d9bff 48%, #9fd0ff 52%, #0754cc 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: slide-r 1s cubic-bezier(.2,.8,.2,1) .35s both, shimmer 2.4s linear 1.2s infinite; }
.hero-subtitle { margin-top: 22px; font-family: var(--display); font-size: clamp(19px, 1.9vw, 24px); font-weight: 800; line-height: 1.6; letter-spacing: .02em; animation: rise .9s cubic-bezier(.2,.8,.2,1) .45s both; }
.hero-lead { margin-top: 16px; max-width: 34em; color: var(--muted); animation: rise .9s cubic-bezier(.2,.8,.2,1) .5s both; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 32px; animation: rise .9s cubic-bezier(.2,.8,.2,1) .55s both; }
.button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 58px; padding: 12px 23px; border: 1px solid transparent; border-radius: 4px; font-size: 16px; font-weight: 700; line-height: 1.8; transition: background-color .2s, box-shadow .2s, transform .2s; }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 8px 28px rgba(7,84,204,.15), inset 0 1px 0 rgba(255,255,255,.25); }
.button-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: sweep 2.6s ease-in-out 1.5s infinite; pointer-events: none; }
.button-primary:hover { background: var(--navy); box-shadow: 0 10px 32px rgba(7,84,204,.22); transform: translateY(-2px); }
.button-arrow { font-size: 22px; font-weight: 400; line-height: 1; }
.button-wide { width: 100%; justify-content: center; }
.text-link { font-size: 16px; font-weight: 700; padding-block: 10px; }
.text-link span { margin-left: 12px; color: var(--blue); display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.hero-note { margin-top: 24px; color: var(--muted); animation: rise .9s cubic-bezier(.2,.8,.2,1) .7s both; }
.hero-note > span + span { margin-left: 1em; }
.hero-art { width: 116%; margin-left: -8%; position: relative; animation: glass-arrive 1.4s ease-out 1 both; }
.light-sculpture { width: 100%; height: auto; transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0); transition: transform .25s ease-out; }
.light-sculpture * { transform-box: fill-box; transform-origin: center; }
.spin-a { animation: spin 24s linear infinite; }
.spin-b { animation: spin 36s linear infinite reverse; }
.pane-1 { animation: float 4s ease-in-out infinite; }
.pane-2 { animation: float 4s ease-in-out -1.3s infinite; }
.pane-3 { animation: float 4s ease-in-out -2.6s infinite; }
.halo-pulse { animation: halo 3.6s ease-in-out infinite; }
.ray-glow { animation: ray 2s ease-in-out infinite; }
.ray-glow-b { animation-delay: -1s; }
.flow-line { stroke-dasharray: 7 11; animation: dash 1.2s linear infinite; }
.flow-line-b { stroke-dasharray: 26 520; animation: dash-run 2.6s cubic-bezier(.4,0,.2,1) infinite; }
.scan { animation: scan 3.4s ease-in-out infinite; }
.dot-core { animation: dot-beat 1.6s ease-in-out infinite; }
.dot-ring { animation: ring-out 2s ease-out infinite; }
.twinkle { animation: twinkle 1.8s ease-in-out infinite; }
.node-tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid rgba(7,84,204,.3); border-radius: 30px; background: rgba(255,255,255,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--blue); font-family: var(--latin); font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.6; box-shadow: 0 6px 20px rgba(7,84,204,.12); animation: chip-float 4.4s ease-in-out infinite; }
.node-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: dot-beat 1.2s ease-in-out infinite; }
.node-tag-1 { left: 12%; top: 18%; }
.node-tag-2 { right: 6%; top: 30%; animation-delay: -1.4s; }
.node-tag-3 { left: 6%; top: 62%; animation-delay: -2.8s; }
.node-tag-4 { right: 16%; top: 74%; animation-delay: -4s; }
.node-tag-2 i { animation-delay: -.3s; }
.node-tag-3 i { animation-delay: -.6s; }
.node-tag-4 i { animation-delay: -.9s; }
.art-caption { display: flex; gap: 14px; align-items: center; justify-content: center; color: var(--muted); margin-top: -12px; }
.art-caption > span { width: 36px; height: 1px; background: var(--blue); animation: line-pulse 2.4s ease-in-out infinite; }
.signal-band { overflow: hidden; border-top: 1px solid var(--line); background: rgba(255,255,255,.55); padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.signal-track { display: flex; width: max-content; gap: 48px; padding-right: 48px; animation: marquee 18s linear infinite; }
.signal-label { font-family: var(--latin); font-size: 14px; font-weight: 800; letter-spacing: .4em; color: transparent; -webkit-text-stroke: 1px rgba(7,84,204,.55); white-space: nowrap; }
.signal-label:nth-child(5n+1) { color: var(--blue); -webkit-text-stroke: 0; }
.hero-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); }
.hero-bottom > span { font-weight: 700; color: var(--blue); }
.hero-bottom a span { margin-left: 18px; }

/* ---------- 節の共通 ---------- */
.section { padding-block: 96px; }
.section-kicker { font-size: 16px; color: var(--blue); margin-bottom: 13px; font-weight: 700; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.section-lead { max-width: 44em; margin-bottom: 48px; }

/* ---------- サービス（濃紺の面） ---------- */
.services { position: relative; color: var(--white); background: radial-gradient(ellipse at 12% 70%, rgba(7,84,204,.28), transparent 60%), rgba(7,29,64,.92); overflow: hidden; }
.services::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(159,208,255,.7), transparent); box-shadow: 0 0 18px rgba(159,208,255,.5); animation: scan-down 6s ease-in-out infinite; pointer-events: none; }
.services .section-inner { position: relative; z-index: 1; }
.services .section-kicker { color: var(--line); }
.services .section-lead { color: var(--ice); }
.service-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 60px; }
.service-visual { position: sticky; top: 150px; padding-top: 24px; }
.service-visual svg { width: 100%; }
.service-visual svg * { transform-box: fill-box; transform-origin: center; }
.svc-layer-1 { animation: float 3.8s ease-in-out infinite; }
.svc-layer-2 { animation: float 3.8s ease-in-out -1.9s infinite; }
.svc-beam { stroke-dasharray: 5 9; animation: dash 1.1s linear infinite; }
.svc-dot { animation: dot-beat 1.4s ease-in-out infinite; }
.service-list { display: grid; gap: 28px; }
.glass-panel { position: relative; padding: 36px; border: 1px solid rgba(200,217,236,.35); border-radius: 8px; background: linear-gradient(125deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); overflow: hidden; }
.glass-panel::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.1), transparent); transform: skewX(-20deg); animation: sweep 4.5s ease-in-out infinite; pointer-events: none; }
.service:nth-child(2)::before { animation-delay: -1.5s; }
.service:nth-child(3)::before { animation-delay: -3s; }
.service-num { position: absolute; right: 30px; top: 26px; color: var(--line); font-family: var(--latin); font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: .04em; opacity: .75; }
.service-tag { display: inline-block; margin-bottom: 14px; padding: 3px 14px; border: 1px solid rgba(200,217,236,.4); border-radius: 30px; color: var(--ice); font-size: 14px; font-weight: 700; line-height: 1.7; animation: border-glow-w 2.8s ease-in-out infinite; }
.service-title { padding-right: 56px; margin-bottom: 14px; font-size: 24px; line-height: 1.6; letter-spacing: -.01em; }
.service-text { color: var(--ice); }
.panel-rule { height: 1px; margin-block: 25px 20px; background: rgba(200,217,236,.25); }
.when-title { margin-bottom: 10px; color: var(--line); font-size: 16px; font-weight: 700; line-height: 1.8; }
.when-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.when-list li { position: relative; padding-left: 22px; color: var(--ice); }
.when-list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: #9fd0ff; box-shadow: 0 0 0 4px rgba(159,208,255,.14); }

/* ---------- 左に見出し・右に本文の型（Rayの強み・会社概要） ---------- */
.split-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.decorative-line { height: 3px; width: 48px; margin-top: 30px; background: var(--blue); animation: bar-run 2.6s ease-in-out infinite; }
.split-content { border-top: 1px solid var(--navy); padding-top: 27px; }
.content-label { font-size: 19px; font-weight: 700; line-height: 1.8; margin-bottom: 12px; }
.about-item p { color: var(--muted); }
.about-item + .about-item { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.content-footnote { display: flex; gap: 14px; align-items: baseline; margin-top: 30px; color: var(--muted); }
.company { border-top: 1px solid var(--line); }
.company .split-content { padding-top: 0; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 8.5em; padding-right: 16px; font-weight: 700; white-space: nowrap; }
.company-table td { color: var(--muted); }
.company-list { margin: 0; padding-left: 1.2em; }
.inline-link, .page-back a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.inline-link:hover, .page-back a:hover { color: var(--navy); }

/* ---------- ご相談の流れ ---------- */
.flow { background: linear-gradient(180deg, rgba(237,245,255,.65), rgba(237,245,255,.2)); border-block: 1px solid var(--line); }
.flow .section-heading { margin-bottom: 48px; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid rgba(7,84,204,.35); }
.flow-step { position: relative; padding-top: 34px; }
.flow-step::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(7,84,204,.1); animation: dot-beat 1.8s ease-in-out infinite; }
.flow-step:nth-child(2)::before { animation-delay: -.6s; }
.flow-step:nth-child(3)::before { animation-delay: -1.2s; }
.flow-num { display: block; margin-bottom: 10px; color: var(--blue); font-family: var(--latin); font-size: 14px; font-weight: 800; letter-spacing: .2em; line-height: 1.6; }
.flow-title { font-size: 19px; font-weight: 700; line-height: 1.7; }
.flow-note { margin-top: 10px; color: var(--muted); }

/* ---------- お問い合わせ ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 5%, rgba(255,255,255,.85) 5%, rgba(255,255,255,.15) 64%), rgba(237,245,255,.5); border-block: 1px solid var(--line); }
.contact-lines { z-index: -1; position: absolute; width: 1100px; height: 520px; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-18deg); border: 1px solid rgba(7,84,204,.16); border-radius: 50%; box-shadow: 0 0 0 50px rgba(7,84,204,.025), 0 0 0 100px rgba(7,84,204,.025); animation: contact-spin 26s linear infinite; }
.contact-lines::after { content: ""; position: absolute; inset: 70px -150px; border: 1px solid rgba(7,84,204,.12); border-radius: 50%; }
.contact-inner { text-align: center; }
.contact h2 { font-size: clamp(30px, 4vw, 48px); }
.contact-intro { max-width: 36em; margin: 20px auto 28px; color: var(--muted); }
.contact .button { min-width: 250px; }
.contact-info { max-width: 570px; margin: 32px auto 0; text-align: left; padding: 24px 28px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.92); }
.contact-fact + .contact-fact { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-fact dt { font-weight: 700; }
.contact-fact dd { color: var(--muted); }

/* ---------- フッター ---------- */
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 32px; }
.footer-brand { font-size: 32px; gap: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a, .copyright { color: var(--muted); font-size: 16px; }
.footer-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.copyright small { font-size: 14px; }

/* ---------- 追加ページ（プライバシーポリシー・テスト画面・追加ページの型） ---------- */
.page { max-width: 820px; padding-block: 72px 96px; }
.page-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.5; letter-spacing: -.035em; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--navy); }
.page-lead { margin-bottom: 32px; color: var(--muted); }
.policy-item, .page-section { padding-block: 26px; border-bottom: 1px solid var(--line); }
.policy-item h2, .page-section h2 { margin-bottom: 8px; font-size: 20px; line-height: 1.7; letter-spacing: 0; }
.policy-item p, .page-section p { color: var(--muted); }
.page-back { margin-top: 40px; }
.test-notice { margin-bottom: 36px; padding: 22px 26px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 6px; background: var(--result); }
.test-notice p + p { margin-top: 8px; }
.form-help { margin-bottom: 24px; color: var(--muted); }
.field { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.field > label, .field > legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 700; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 10px; border: 1px solid transparent; border-radius: 30px; font-size: 13px; font-weight: 700; line-height: 1.6; vertical-align: middle; }
.badge-required { color: var(--white); background: var(--blue); }
.badge-optional { color: var(--muted); border-color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { display: block; width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--muted); border-radius: 4px; color: var(--navy); background: var(--white); font: inherit; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; border-color: var(--blue); }
.choices { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.form-submit { margin-top: 34px; }
.test-result { margin-top: 40px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--result); }
.test-result h2 { margin-bottom: 8px; font-size: 22px; line-height: 1.7; letter-spacing: 0; }
.test-result-list dt { margin-top: 14px; font-weight: 700; }
.test-result-list dd { color: var(--navy); }

/* ---------- スクロールで現れる動き（JS があるときだけ付く） ---------- */
.js-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js-reveal.is-in { opacity: 1; transform: none; }

@keyframes copy-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glass-arrive { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-l { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-r { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes sweep { 0% { left: -60%; } 45%, 100% { left: 140%; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes halo { 0%, 100% { opacity: .7; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes ray { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -36; } }
@keyframes dash-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -546; } }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
@keyframes dot-beat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .6; } }
@keyframes ring-out { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes contact-spin { to { transform: translate(-50%, -50%) rotate(342deg); } }
@keyframes grid-drift { to { background-position: 80px 80px, 80px 80px; } }
@keyframes glow-roam { 0%, 100% { transform: translate(-6%, 4%); } 50% { transform: translate(8%, -6%); } }
@keyframes scan-down { 0% { transform: translateY(0); opacity: 0; } 12%, 88% { opacity: 1; } 100% { transform: translateY(560px); opacity: 0; } }
@keyframes brand-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(7,84,204,0)); } 50% { filter: drop-shadow(0 0 8px rgba(7,84,204,.55)); } }
@keyframes border-glow { 0%, 100% { box-shadow: 0 0 0 rgba(7,84,204,0); border-color: var(--line); } 50% { box-shadow: 0 0 16px rgba(7,84,204,.28); border-color: rgba(7,84,204,.6); } }
@keyframes border-glow-w { 0%, 100% { box-shadow: 0 0 0 rgba(159,208,255,0); } 50% { box-shadow: 0 0 16px rgba(159,208,255,.35); } }
@keyframes line-pulse { 0%, 100% { transform: scaleX(1); opacity: .6; } 50% { transform: scaleX(1.8); opacity: 1; } }
@keyframes bar-run { 0%, 100% { width: 48px; } 50% { width: 132px; } }

/* ---------- 画面幅ごとの調整 ---------- */
@media (min-width: 1500px) { .hero-inner { min-height: 710px; } }
@media (max-width: 1000px) {
  .header-inner, .section-inner, .hero-inner, .hero-bottom, .footer-inner { width: calc(100% - 56px); }
  .site-nav { gap: 22px; }
  .hero-inner { min-height: 580px; grid-template-columns: 1.1fr 1fr; }
  .hero h1 { font-size: clamp(42px, 5.6vw, 62px); }
  .hero-art { width: 135%; margin-left: -18%; }
  .node-tag-1 { left: 22%; top: 12%; }
  .service-layout { gap: 28px; }
  .split-layout { gap: 42px; }
  .flow-list { gap: 0 28px; }
}
@media (max-width: 860px) {
  .site-nav { gap: 14px; }
  .site-nav .nav-contact { padding-inline: 14px; }
  .nav-contact span { margin-left: 10px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 92px; }
  h2 { font-size: clamp(24px, 7.2vw, 30px); }
  .header-inner, .section-inner, .hero-inner, .hero-bottom, .footer-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: 0; }
  .brand { font-size: 31px; }
  .brand svg { width: 30px; height: 30px; }
  .menu-button:not([hidden]) { display: inline-flex; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 16px; }
  .nav-contact span { margin-left: 22px; }
  .site-nav a { padding: 12px 8px; }
  .site-nav > a:first-child, .site-nav .nav-contact { margin-left: 0; }
  .site-nav .nav-contact { padding: 10px 14px; margin-top: 8px; }
  /* JS があるとき: メニューはボタンで開くまで閉じておく。JS が無いときは、いつも表示（ヘッダーは固定しない） */
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) { scroll-snap-type: none; }
  .js .site-nav.is-open { padding-top: 6px; }
  .intro { min-height: 360px; }
  .intro-copy { padding-inline: 16px; padding-bottom: clamp(70px, 18vh, 160px); }
  .intro-title { font-size: clamp(28px, 8.4vw, 44px); }
  .intro-action .button { min-width: min(100%, 300px); }
  .hero-inner { display: block; min-height: auto; }
  .hero-copy { padding-block: 40px 0; }
  .eyebrow { margin-bottom: 20px; align-items: baseline; }
  .hero h1 { font-size: clamp(36px, 10.8vw, 66px); line-height: 1.4; letter-spacing: -.06em; }
  .hero-subtitle { margin-top: 16px; }
  .hero-actions { margin-top: 25px; gap: 12px 20px; }
  .button { min-height: 56px; padding-inline: 21px; gap: 26px; }
  .hero-note { margin-top: 18px; }
  .hero-note > span { display: block; }
  .hero-note > span + span { margin-left: 0; }
  .hero-art { width: min(108%, 490px); margin: -6px auto -6px; }
  .light-sculpture { max-height: 350px; }
  .node-tag { font-size: 12px; padding: 2px 10px; }
  .node-tag-3, .node-tag-4 { display: none; }
  .art-caption { margin-top: -14px; margin-bottom: 25px; gap: 10px; }
  .hero-bottom { padding-block: 14px; }
  .section { padding-block: 60px; }
  .section-heading { align-items: flex-start; gap: 18px; margin-bottom: 18px; }
  .section-kicker { margin-bottom: 8px; }
  .section-lead { margin-bottom: 30px; }
  .service-layout { grid-template-columns: 1fr; gap: 20px; }
  .service-visual { position: static; max-width: 280px; margin-inline: auto; padding-top: 0; }
  .service-visual svg { max-height: 190px; }
  .service-list { gap: 20px; }
  .glass-panel { padding: 25px; }
  .service-num { top: 22px; right: 22px; font-size: 26px; }
  .service-title { font-size: 21px; padding-right: 0; }
  .split-layout { grid-template-columns: 1fr; gap: 28px; }
  .decorative-line { margin-top: 20px; }
  .split-content { padding-top: 23px; }
  .company-table th, .company-table td { display: block; width: auto; padding: 0; border: 0; }
  .company-table th { padding-top: 16px; white-space: normal; }
  .company-table td { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .flow .section-heading { margin-bottom: 30px; }
  .flow-list { grid-template-columns: 1fr; gap: 28px; border-top: 0; border-left: 1px solid rgba(7,84,204,.35); }
  .flow-step { padding: 0 0 0 26px; }
  .flow-step::before { left: -5px; top: 8px; }
  .contact .button { min-width: 0; width: 100%; max-width: 340px; }
  .contact-info { padding: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 20px; padding-block: 24px 36px; }
  .footer-nav { flex-direction: column; gap: 6px; }
  .footer-nav a { padding-block: 6px; }
  .page { padding-block: 44px 64px; }
}
@media (max-width: 359px) {
  .header-inner, .section-inner, .hero-inner, .hero-bottom, .footer-inner { width: calc(100% - 32px); }
  .hero-copy { padding-top: 30px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-art { margin-top: 0; }
  .glass-panel { padding: 21px; }
}
@media print { .js-reveal { opacity: 1; transform: none; } }
/* 動きを減らす設定のときは、動きを全部止める（Owner 2026年11月10日「止めます」）。グラフは site.js が完成した形を 1 回だけ描く */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 > .blue-text { background: none; -webkit-text-fill-color: currentColor; }
  .js-reveal { opacity: 1; transform: none; }
}
