/* elisa.biz — 紺・金・白。紺のヒーローで線が神殿を描き、以降は白と薄いグレーで静かに組む */
:root {
  --navy: #213145;
  --navy-deep: #16212f;
  --gold: #c9a26a;
  --gold-text: #8f6d3f;   /* 白地の上で読める金（コントラスト約4.6:1） */
  --gold-soft: #c9a26a;
  --white: #ffffff;
  --mist: #ffffff;
  --line: #e3e6ea;
  --ink: #213145;
  --muted: #56616e;
  --latin: "Manrope", "Noto Sans JP", sans-serif;
  --jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --z-canvas: 0;
  --z-content: 1;
  --z-header: 20;
  --z-skip: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--jp); font-size: 16px; line-height: 1.9; }
body.lang-en { font-family: var(--latin); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.45; letter-spacing: .02em; text-wrap: balance; word-break: auto-phrase; }
body.lang-en h1, body.lang-en h2, body.lang-en h3 { letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead, .cta p { word-break: auto-phrase; }
ul, ol { padding-left: 1.3em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: var(--z-skip); background: var(--white); padding: 8px 12px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); color: var(--white); background: rgba(22,33,47,.94); border-bottom: 1px solid rgba(255,255,255,.08); transition: background-color .25s ease-out, color .25s ease-out, border-color .25s ease-out; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; font-weight: 700; letter-spacing: .06em; }
.brand img { width: 30px; }
.lang-switch { display: flex; gap: 6px; font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.lang-switch a { color: inherit; text-decoration: none; opacity: .5; }
.lang-switch a[aria-current] { opacity: 1; }
.lang-switch span { opacity: .4; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: inherit; text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px; transition: background-size .2s ease-out; }
body.lang-en .site-nav ul a { font-size: 13px; letter-spacing: .02em; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background-size: 100% 1px; }
.menu-toggle { display: none; }
/* ヘッダーは紺のまま付いてくる。ホームとページ見出しの紺の上では、最初だけ透明で重ねる */
.site-header .brand img { filter: brightness(0) invert(1); transition: filter .25s ease-out; }
.site-header .btn-line { color: var(--white); border-color: rgba(255,255,255,.7); }
.site-header .btn-line:hover { background: var(--white); color: var(--navy); }
.site-header.on-dark:not(.is-solid) { background: transparent; border-color: transparent; }
.site-header.on-footer, .site-header.on-light { background: rgba(255,255,255,.96); color: var(--navy); border-color: var(--line); }
.site-header.on-footer .brand img, .site-header.on-light .brand img { filter: none; }
.site-header.on-footer .btn-line, .site-header.on-light .btn-line { color: var(--navy); border-color: var(--navy); }
.site-header.on-footer .btn-line:hover, .site-header.on-light .btn-line:hover { background: var(--navy); color: var(--white); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--navy); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--mist); }
.btn-line { min-height: 40px; padding: 0 22px; font-size: 13px; background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: transparent; border-color: rgba(255,255,255,.75); color: var(--white); }   /* 紺の地で使う。塗りつぶさず線で見せる */
.btn-gold:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn-on-dark { color: var(--white); border-color: rgba(255,255,255,.6); background: transparent; }
.btn-on-dark:hover { background: rgba(255,255,255,.1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- hero (home) ---------- */
/* ヒーローを画面に留めたまま、スクロール量で線を神殿の形へ集める */
.hero-pin { height: 280svh; position: relative; }   /* 固定区間 1.8 画面分: 前半で神殿が完成し、後半は完成形を見せる */
.hero-pin .hero { position: sticky; top: 0; height: 100svh; min-height: 560px; }
.hero-inner { opacity: var(--hero-text, 1); transform: translateY(calc((1 - var(--hero-text, 1)) * -24px)); }
.hero { position: relative; min-height: 100svh; background: radial-gradient(120% 90% at 70% 20%, #2a3d55 0%, var(--navy) 45%, var(--navy-deep) 100%); color: var(--white); overflow: hidden; display: flex; align-items: flex-end; }
/* トップ画像・動画はオーナー支給。assets/media/hero.jpg / hero.mp4 を置くと表示され、線はその上に薄く重なる */
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: var(--z-canvas); }
.hero-media + canvas { opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: var(--z-canvas); background: linear-gradient(0deg, rgba(22,33,47,.85) 0%, rgba(22,33,47,0) 55%); pointer-events: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-canvas); }
.hero-inner { position: relative; z-index: var(--z-content); width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 12vh, 140px); display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: 32px 64px; align-items: end; }
.hero-display { font-family: var(--latin); font-weight: 600; font-size: clamp(48px, 9vw, 136px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.hero-display span { display: block; }
.hero-display .gold { color: var(--gold); }
.hero-side h1 { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.7; letter-spacing: .06em; }
body.lang-en .hero-side h1 { letter-spacing: 0; font-weight: 600; line-height: 1.45; }
.hero-side p { font-size: 14px; color: #c9d1db; margin-top: 16px; }
.hero-side .actions { margin-top: 28px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 0; z-index: var(--z-content); display: flex; align-items: center; gap: 12px; font-family: var(--latin); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.7); writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 72px; background: linear-gradient(rgba(255,255,255,.7), transparent); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* facts strip */
.facts-band { background: var(--white); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.facts div { padding: 36px 24px 28px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-family: var(--latin); font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.facts dd small { font-family: var(--jp); font-size: 15px; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
body.lang-en .facts dd small { font-family: var(--latin); }
.facts-note { font-size: 12px; color: var(--muted); padding: 0 0 24px; margin: 0; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(88px, 12vw, 168px) 0; }
.section-mist { background: var(--white); border-top: 1px solid var(--line); }
.section-navy { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.section-navy a { color: var(--navy); }
.sec-index { display: flex; align-items: center; gap: 20px; font-family: var(--latin); font-size: 14px; font-weight: 600; color: var(--gold-text); margin-bottom: 36px; }

.sec-index .rule { flex: 1; height: 1px; background: currentColor; opacity: .5; transform-origin: left; }
.js .sec-index .rule { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.js .sec-index.in .rule { transform: scaleX(1); }
.sec-title { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 24px 72px; margin-bottom: clamp(48px, 7vw, 88px); align-items: start; }
.sec-title .latin { font-family: var(--latin); font-weight: 600; font-size: clamp(44px, 6.4vw, 96px); line-height: 1; letter-spacing: -.035em; color: var(--navy); margin: 0 0 18px; }

.sec-title h2 { font-size: clamp(20px, 2.2vw, 26px); color: var(--navy); }

.sec-title .lead { color: var(--muted); margin: 0; max-width: 38em; }


/* ---------- stance: lines light up on scroll ---------- */
.reveal-lines { font-size: clamp(19px, 2.2vw, 28px); font-weight: 700; line-height: 1.75; letter-spacing: .02em; color: var(--navy); max-width: 34em; margin: 0 0 0 auto; word-break: auto-phrase; }
body.lang-en .reveal-lines { font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.reveal-lines span { display: block; }
body.lang-en .reveal-lines span { margin-bottom: .35em; }
.js .reveal-lines span { opacity: var(--o, .18); }

/* ---------- temple diagram ---------- */
.temple { max-width: 1040px; margin: 0 auto; }
.temple-roof { position: relative; height: clamp(120px, 16vw, 188px); }
.temple-roof svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.temple-roof .roof-text { position: absolute; left: 0; right: 0; bottom: 16%; text-align: center; }
.temple-roof .roof-text span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.temple-roof .roof-text strong { font-size: clamp(20px, 2.6vw, 30px); color: var(--navy); letter-spacing: .14em; }
body.lang-en .temple-roof .roof-text strong { letter-spacing: 0; }
.temple-beam { height: 10px; background: var(--navy); margin: 0 1.5%; }
.temple-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2.4vw, 32px); padding: 0 4%; }
.temple-col { background: var(--white); border-left: 1px solid var(--navy); border-right: 1px solid var(--navy); padding: 28px clamp(14px, 1.8vw, 24px) 36px; box-shadow: inset 6px 0 0 var(--white), inset 7px 0 0 var(--line), inset -6px 0 0 var(--white), inset -7px 0 0 var(--line); transform-origin: bottom; transform: scaleY(var(--rise, 1)); }
.temple-col > * { opacity: var(--rise-text, 1); }
.temple-col h3 { font-size: clamp(15px, 1.6vw, 19px); color: var(--navy); }
.temple-col p { font-size: 14px; color: var(--muted); margin: 10px 0 0; line-height: 1.75; }
.temple-col .tag { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.temple-steps div { height: 10px; background: var(--navy); margin: 6px auto 0; }
.temple-steps div:nth-child(1) { width: 97%; }
.temple-steps div:nth-child(2) { width: 100%; opacity: .75; }
.temple-base { text-align: center; margin-top: 20px; font-weight: 700; color: var(--navy); }

/* ---------- compare table ---------- */
.table-scroll { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 20px 22px; border-bottom: 1px solid var(--line); }
table.compare thead th { font-size: 14px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--navy); }
table.compare thead th.us { color: var(--navy); font-weight: 700; }
table.compare tbody th { width: 20%; font-weight: 700; color: var(--navy); }
table.compare td.us { font-weight: 700; color: var(--navy); }

/* ---------- rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.rows > li { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 12px 72px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 19px; color: var(--navy); }
.rows p { margin: 0; }
.rows .meta { font-size: 14px; color: var(--muted); margin-top: 10px; }
.rows .result { margin-top: 14px; font-weight: 700; color: var(--navy); }
.rows .big { font-family: var(--latin); font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; display: block; margin-top: 12px; }






/* ---------- circles (initiatives) ---------- */
.circles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.circle { aspect-ratio: 1; border: 1px solid var(--navy); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 14%; position: relative; }
.circle::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.circle .latin { font-family: var(--latin); font-size: 14px; font-weight: 600; color: var(--muted); }
.circle h3 { font-size: clamp(20px, 2.2vw, 28px); margin: 8px 0 16px; }
.circle h3 { color: var(--navy); }
.circle p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- visual band (rendered key visual) ---------- */
.visual { position: relative; min-height: clamp(360px, 46vw, 640px); background: var(--navy-deep) center / cover no-repeat; color: var(--white); display: flex; align-items: flex-end; }
.visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,33,47,.8), rgba(22,33,47,0) 60%); }
.visual .wrap { position: relative; width: 100%; padding-bottom: clamp(40px, 6vw, 72px); }
.visual p { font-family: var(--latin); font-weight: 600; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.05; letter-spacing: -.03em; max-width: 11em; margin: 0; }
.visual small { display: block; font-family: var(--jp); font-size: 15px; font-weight: 500; letter-spacing: .04em; margin-top: 18px; color: #c9d1db; }

/* ---------- split / panels ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; }
.split h3 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.split .panel { border-top: 1px solid var(--navy); padding-top: 24px; }
.section-navy .split h3 { color: var(--white); }
.more { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-weight: 700; text-decoration: none; }
.more::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .2s ease-out; }
.more:hover::after { width: 44px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; border-top: 1px solid var(--navy); }
.steps li { counter-increment: step; padding: 28px 22px 0 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--latin); font-size: 28px; font-weight: 600; color: var(--navy); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.steps p { font-size: 14px; color: var(--muted); }
.steps-3 { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
.steps-3 li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
/* 当てはまるかを確かめるリスト（チラシの「こんな方へ」） */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 44em; }
.checklist li { position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.5vw, 18px); font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 18px; height: 18px; border: 1.5px solid var(--gold); }
.checklist li::after { content: ""; position: absolute; left: 9px; top: 24px; width: 7px; height: 11px; border: solid var(--gold-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- deflist ---------- */
.deflist { display: grid; grid-template-columns: 220px 1fr; margin: 0; border-top: 1px solid var(--navy); }
.deflist dt, .deflist dd { padding: 20px 0; border-bottom: 1px solid var(--line); margin: 0; }
.deflist dt { font-weight: 700; color: var(--navy); padding-right: 24px; }
.deflist dd ul { margin: 0; }

/* ---------- sub page head ---------- */
.page-head { position: relative; padding: calc(76px + clamp(72px, 10vw, 136px)) 0 clamp(56px, 7vw, 96px); background: var(--navy-deep) right center / cover no-repeat; color: var(--white); overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,33,47,.94) 0%, rgba(22,33,47,.74) 50%, rgba(22,33,47,.2) 100%); }
.page-head .wrap { position: relative; z-index: var(--z-content); }
.page-head .latin { font-family: var(--latin); font-weight: 600; font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -.035em; margin: 0 0 24px; }
.page-head h1 { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.5; max-width: 22em; }
.page-head .lead { color: #c9d1db; max-width: 40em; margin-top: 20px; }
.crumbs { font-size: 13px; color: #aab5c2; margin-bottom: 28px; }
.crumbs a { color: #aab5c2; }

.note { font-size: 13px; color: var(--muted); }

/* ---------- flow diagram (wordpress) ---------- */
.flowline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px; }
.flowline .node { border: 1px solid var(--line); padding: 24px; background: var(--white); border-radius: 4px; }
.flowline .node strong { display: block; color: var(--navy); margin-bottom: 6px; }
.flowline .node span { font-size: 14px; color: var(--muted); }
.flowline .node.private { border-style: dashed; }
.flowline .node.public { border-color: var(--navy); }
.flowline .arrow { align-self: center; width: 32px; height: 1px; background: var(--navy); position: relative; }
.flowline .arrow::after { content: ""; position: absolute; right: 0; top: -4px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--navy); }

/* ---------- cta ---------- */
.cta { position: relative; background: var(--navy-deep) center / cover no-repeat; color: var(--white); padding: clamp(88px, 12vw, 160px) 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,33,47,.94), rgba(22,33,47,.55)); }
.cta .wrap { position: relative; }
.cta .latin { font-family: var(--latin); font-weight: 600; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -.035em; margin: 0 0 28px; }
.cta h2 { font-size: clamp(20px, 2.4vw, 28px); max-width: 22em; }
.cta p { color: #c9d1db; max-width: 40em; margin-top: 18px; }
.cta .bring { margin-top: 20px; padding-left: 1.2em; color: #c9d1db; }

/* ---------- form ---------- */
.form { display: grid; gap: 24px; max-width: 640px; }
.form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form .req { font-size: 12px; color: #9a3b2e; margin-left: 8px; font-weight: 500; }
.form input[type=text], .form input[type=email], .form textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1px solid #b9c2cc; border-radius: 4px; background: var(--white); color: var(--ink); }
.form textarea { min-height: 200px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form .choice { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; font-weight: 400; color: var(--ink); }
.form-done { border-top: 1px solid var(--navy); padding-top: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #c9d1db; padding: 88px 0 32px; font-size: 14px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 0.8fr; gap: 48px; }
.footer-logo { width: 64px; margin-bottom: 18px; }
.footer-name { color: var(--white); font-weight: 700; margin: 0 0 6px; }
.footer-tag { max-width: 26em; }
.footer-nav { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.footer-nav li { padding: 5px 0; break-inside: avoid; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 64px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.footer-bottom p { margin: 0; }

/* ---------- entrance (JS が .js を付けたときだけ隠す。JS なしでも読める) ---------- */
.js .fade { opacity: 0; transform: translateY(24px); transition: opacity .9s ease-out, transform .9s cubic-bezier(.2,.7,.1,1); }
.js .fade.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .site-nav ul { gap: 20px; } }
@media (max-width: 960px) {
  .sec-title, .rows > li { grid-template-columns: 1fr; }
  .split, .circles { grid-template-columns: 1fr; }
  .circle { aspect-ratio: auto; border-radius: 24px; padding: 40px 28px; }
  .circle::before { display: none; }
  .steps, .steps-3, .steps-4 { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flowline { grid-template-columns: 1fr; }
  .flowline .arrow { justify-self: center; width: 1px; height: 28px; }
  .flowline .arrow::after { right: -4px; top: auto; bottom: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--navy); border-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .reveal-lines { margin-left: 0; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 18px; font: inherit; font-size: 14px; font-weight: 700; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 999px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--navy-deep); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 28px; gap: 16px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); background: none; }
  .temple-cols { grid-template-columns: repeat(2, 1fr); row-gap: 0; }
  .deflist { grid-template-columns: 1fr; }
  .deflist dt { border-bottom: 0; padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .footer-nav { columns: 1; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pin { height: auto; }
  .hero-pin .hero { position: relative; }
  .hero-inner { opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .fade { opacity: 1; transform: none; }
  .js .reveal-lines span { opacity: 1; }
  .temple-col { transform: none; }
  .temple-col > * { opacity: 1; }
}
.circles-3 { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.circles-3 .circle { padding: 12%; }
.circles-3 .circle p { font-size: 14px; }
@media (max-width: 1080px) { .circles-3 { grid-template-columns: 1fr; } .circles-3 .circle { aspect-ratio: auto; border-radius: 24px; padding: 40px 28px; } .circles-3 .circle::before { display: none; } }
.brand span, .menu-toggle, .lang-switch { white-space: nowrap; }
@media (max-width: 420px) {
  .header-inner { gap: 14px; }
  .brand { gap: 8px; font-size: 14px; letter-spacing: .02em; }
}

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto 1fr; column-gap: 32px; row-gap: 6px; padding: 24px 0; text-decoration: none; color: var(--ink); }
.news-list .thumb { grid-row: 1 / 3; width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.news-list .news-title { font-weight: 700; font-size: 17px; color: var(--navy); align-self: start; }
.news-list a:hover .news-title { text-decoration: underline; }
.news-meta, .meta-line { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); font-family: var(--latin); }
.tag { display: inline-block; font-family: var(--jp); font-size: 12px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- prose (news body, policy) ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 22px; color: var(--navy); margin: 48px 0 14px; }
.prose h3 { font-size: 18px; color: var(--navy); margin: 32px 0 10px; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose .signature { margin-top: 40px; text-align: right; font-weight: 700; color: var(--navy); }
.meta-line { margin-bottom: 28px; }

/* ---------- cases ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filters button { font: inherit; font-size: 14px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.case-group + .case-group { margin-top: 72px; }
.case-group h2 { font-size: 22px; color: var(--navy); margin-bottom: 24px; }
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.case-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.case-card .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.case-client { font-size: 13px; color: var(--muted); }
.case-head { font-weight: 700; color: var(--navy); line-height: 1.6; }
.case-card:hover .case-head { text-decoration: underline; }
.case-badge { font-size: 13px; color: var(--muted); }
.case-badge b { font-family: var(--latin); font-size: 20px; color: var(--navy); margin-right: 8px; }
.case-facts { grid-template-columns: 1fr; border-top: 0; margin-bottom: 32px; }
.case-facts div { padding: 0; }
.case-body { max-width: 46em; margin-top: 56px; }
.case-body h2 { font-size: 20px; color: var(--navy); margin: 40px 0 12px; }
.case-body ul { margin: 0; }
.case-body li + li { margin-top: 6px; }
.voice { margin: 48px 0 0; padding: 28px 32px; border-left: 2px solid var(--navy); font-weight: 500; }
.voice p { margin: 0; }
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-nav a { text-decoration: none; font-weight: 700; }
.case-nav a span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.case-nav .next { text-align: right; }

/* ---------- about sub pages ---------- */
.timeline { display: grid; grid-template-columns: 160px 1fr; margin: 0; border-top: 1px solid var(--navy); }
.timeline dt, .timeline dd { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline dt { font-family: var(--latin); font-weight: 600; color: var(--navy); }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.link-grid a { display: block; padding: 28px 24px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 700; color: var(--navy); transition: border-color .15s ease-out; }
.link-grid a:hover { border-color: var(--navy); }
.link-grid .latin { display: block; font-family: var(--latin); font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.draft-banner { position: sticky; top: 76px; z-index: 5; margin: 0; padding: 10px var(--gutter); background: #fff4d6; color: #6b4e00; font-size: 14px; font-weight: 700; text-align: center; }

@media (max-width: 960px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
  .news-list a { grid-template-columns: 1fr; }
  .news-list .thumb { grid-row: auto; width: 100%; }
  .timeline { grid-template-columns: 1fr; }
  .timeline dt { border-bottom: 0; padding-bottom: 0; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav .next { text-align: left; }
}

.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.sitemap-list li { border-bottom: 1px solid var(--line); }
.sitemap-list a { display: block; padding: 10px 0; text-decoration: none; }
.sitemap-list li:first-child a { font-weight: 700; }
.top-news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.top-news a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.top-news .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.top-news .news-title { font-weight: 700; color: var(--navy); }
.service-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--navy); }
.service-links li { border-bottom: 1px solid var(--line); }
.service-links li:nth-child(odd) { border-right: 1px solid var(--line); }
.service-links a { display: block; padding: 32px 32px 32px 0; text-decoration: none; color: var(--ink); }
.service-links li:nth-child(even) a { padding-left: 32px; }
.service-links .latin { display: block; font-family: var(--latin); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; color: var(--navy); margin-bottom: 6px; }
.service-links h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.service-links p { margin: 0; color: var(--muted); font-size: 15px; }
.service-links a:hover h3 { text-decoration: underline; }
@media (max-width: 960px) { .sitemap, .top-news { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .service-links { grid-template-columns: 1fr; } .service-links li:nth-child(odd) { border-right: 0; } .service-links a, .service-links li:nth-child(even) a { padding: 24px 0; } }

.service-links { column-gap: 56px; }
.service-links li, .service-links li:nth-child(odd) { border-right: 0; }
.service-links a, .service-links li:nth-child(even) a { padding: 32px 0; }
.service-links li.wide { grid-column: 1 / -1; }

/* ---------- hero intro: 女の子の動画と妖精光（実装指示書 §7・§8） ---------- */
.hero canvas.fairy { z-index: 2; pointer-events: none; }
/* 女の子（オーナー支給）: 左下に幅62%で置き、上端と右端を背景へ溶かす。背景は画像の端の色に合わせる */
.hero.has-girl { background: linear-gradient(to right, #092332 0, #193d56 62vw, #1c405a 100vw); }
.hero.has-girl::after { display: none; }
.hero-girl {
  position: absolute; z-index: 0; left: 0; bottom: 0; width: 62vw; height: auto; aspect-ratio: 1456 / 816; object-fit: fill;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%), linear-gradient(to left, transparent 0, #000 8%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%), linear-gradient(to left, transparent 0, #000 8%);
  mask-composite: intersect;
}
.hero-girl-wonder { opacity: 0; transition: opacity .4s ease; }
.hero-girl-wonder.on { opacity: 1; }
.hero.has-girl canvas.threads { z-index: 1; }
/* 女の子が左下を占めるので、大見出しは頭上の左上、説明とボタンは右下へ */
.hero.has-girl .hero-inner { position: absolute; inset: 0; display: block; padding: 0; max-width: none; }
.hero.has-girl .hero-display { position: absolute; left: var(--gutter); top: clamp(96px, 13vh, 140px); font-size: clamp(40px, 6.2vw, 100px); }
.hero.has-girl .hero-side { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 96px); width: min(340px, 24vw); }
.hero.has-girl .scroll-cue { display: none; }
@media (max-width: 767px) {
  .hero-girl { top: 96px; bottom: auto; left: -14vw; width: 100%; }   /* 左へ寄せ、指先の右にロゴの余白をつくる */
  /* スマホはヒーローを固定表示しない（光は時間で神殿に集まる）。文字は最初から表示 */
  .hero-pin { height: auto; }
  .hero-pin .hero { position: relative; height: auto; min-height: 100svh; }
  .hero-inner { opacity: 1; transform: none; }
  .hero.has-girl .hero-inner { position: relative; inset: auto; display: grid; padding: calc(96px + 56.1vw + 20px) var(--gutter) 48px; }   /* 文字は画像（高さ 100vw×816/1456）の下から */
  .hero.has-girl .hero-display, .hero.has-girl .hero-side { position: static; width: auto; font-size: clamp(40px, 11vw, 56px); }
  .hero.has-girl .hero-side { font-size: inherit; }
}
.hero-inner { z-index: 3; }

.footer-partners p { color: #aab5c2; font-size: 12px; margin: 5px 0 8px; }
.footer-partners a { text-decoration: none; }
.footer-partners a:hover { text-decoration: underline; }
.callout-line { margin-top: 40px; border-top: 1px solid var(--navy); padding-top: 20px; max-width: 46em; }
.callout-line h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.site-footer .btn-gold, .cta .btn-gold { color: var(--white); }
.site-footer .btn-gold:hover, .cta .btn-gold:hover { color: var(--navy); }

/* 小さなリンク（「詳しく見る」「事例を読む」、補足行のリンク）は金で示す */
.more, .meta a, .note a, .crumbs + .latin ~ .lead a { color: var(--gold-text); }
/* 白地のセクションの本文中のリンクは金（読める濃さの金） */
.section p a:not(.btn), .section dd a, .section td a { color: var(--gold-text); }
.section-navy .more, .cta .more, .page-head .more { color: var(--gold); }

/* スマホ: スクロール量ではなく、画面に入ったら時間で再生する（site.js の autoMotion） */
.auto-motion .reveal-lines span { opacity: .18; transition: opacity .9s ease-out; }
.auto-motion .reveal-lines.played span { opacity: 1; }
.auto-motion .reveal-lines.played span:nth-child(2) { transition-delay: .35s; }
.auto-motion .reveal-lines.played span:nth-child(3) { transition-delay: .7s; }
.auto-motion .reveal-lines.played span:nth-child(4) { transition-delay: 1.05s; }
.auto-motion .reveal-lines.played span:nth-child(5) { transition-delay: 1.4s; }
.auto-motion .temple-col { transform: scaleY(.04); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.auto-motion .temple-col > * { opacity: 0; transition: opacity .6s ease-out .8s; }
.auto-motion .temple.played .temple-col { transform: scaleY(1); }
.auto-motion .temple.played .temple-col > * { opacity: 1; }
.auto-motion .temple.played .temple-col:nth-child(2) { transition-delay: .12s; }
.auto-motion .temple.played .temple-col:nth-child(3) { transition-delay: .24s; }
.auto-motion .temple.played .temple-col:nth-child(4) { transition-delay: .36s; }
