/* =========================================================
   elvora.co.jp トップ — home.css（2026-10-07〜）
   設計契約は ../DESIGN-corp.md。色・ロゴは協賛LP（../site/tokens.css）と同じ値。
   方針：HTMLとこのCSSだけで全文が読める。3D（html.gl-on）と演出（html.motion）は上書きで足す。
   CSS に opacity:0 で本文を隠す指定を置かない（JS が失敗したら本文が消えるため）。
   privacy.html は従来の corp.css のまま。
   ========================================================= */

@font-face {
  font-family: 'ElvArchivo';
  src: url('assets/fonts/archivo-wide.woff2') format('woff2');
  font-weight: 700 800; font-stretch: 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ElvArchivo';
  src: url('assets/fonts/archivo-wide-italic.woff2') format('woff2');
  font-weight: 700 800; font-stretch: 125%; font-style: italic; font-display: swap;
}

:root {
  /* ロゴから取った6色（site/tokens.css と同値） */
  --ink: #111213;
  --surface: #1B1D1F;
  --leaf: #76B800;
  --lime: #B4D806;
  --paper: #F4F5F1;
  --paper-dim: #9AA09B;
  /* 派生（混色。新しい色ではない） */
  --ground: color-mix(in srgb, var(--paper) 40%, #fff);
  --ink-sub: color-mix(in srgb, var(--ink) 76%, #fff);
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --row: color-mix(in srgb, var(--ink) 6%, var(--paper));
  --mist: color-mix(in srgb, var(--ink) 20%, var(--paper));
  --hair: rgba(244, 245, 241, 0.16);

  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  --font-en: 'ElvArchivo', 'Arial Black', 'Helvetica Neue', Arial, var(--font-jp);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  :root { --ground: #FBFBF9; --ink-sub: #4A4B4C; --line: #D4D5D2; --row: #E6E7E3; --mist: #C7C9C5; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  font-size: 16px; line-height: 1.9;
  color: var(--ink); background: var(--ground);
  line-break: strict; text-autospace: normal; text-spacing-trim: trim-start;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.zone-dark :focus-visible, .menu :focus-visible, .sponsor-card:focus-visible { outline-color: var(--lime); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo { width: auto; color: var(--ink); --logo-mark: var(--leaf); }
.br-narrow { display: none; }

h1, h2, h3 { font-weight: 900; line-height: 1.35; font-feature-settings: "palt"; text-wrap: balance; }
/* 行の短い説明文（カード・会社概要の行）は文節で折る。長い本文には付けない */
.line-card p, .company-rows dd, .stat-label, .stat-note { text-wrap: pretty; }
@supports (word-break: auto-phrase) { h1, h2, h3, .we-lead, .shows-lead, .lines-lead, .line-card p, .company-rows dd, .stat-label, .stat-note { word-break: auto-phrase; } }

/* 横に広い欧文（Archivo の幅125%）。正体と斜体の対比で見出しをつくる */
.display {
  font-family: var(--font-en); font-stretch: 125%; font-weight: 800;
  letter-spacing: -0.025em; line-height: 0.98; font-feature-settings: normal;
}
.display em { font-style: italic; font-weight: 700; }

/* ---------- 3D キャンバス ---------- */
#gl {
  position: fixed; inset: 0 auto auto 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
  visibility: hidden;
}
html.gl-on #gl { visibility: visible; }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- ローダー ---------- */
.intro { display: none; }
/* html のクラス名は show-intro。要素の .intro と同じ名前にすると html 自体が display:none になる */
html.show-intro { overflow: hidden; }
html.show-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro.is-out { opacity: 0; visibility: hidden; }
.intro > * { grid-area: 1 / 1; }
.intro-ring {
  width: min(76vw, 62vh); height: auto; fill: none;
  stroke: rgba(244, 245, 241, 0.5); stroke-width: 1; stroke-dasharray: 5 7;
  animation: intro-spin 24s linear infinite;
}
.intro-logo { height: 26px; color: var(--paper); --logo-mark: var(--lime); }
.intro-pct {
  position: fixed; top: 50%;
  font-family: var(--font-en); font-stretch: 125%; font-weight: 700; font-size: 14px;
  color: var(--paper); font-variant-numeric: tabular-nums;
}
.intro-pct.is-l { right: calc(50% + min(38vw, 31vh) + 10px); transform: translateY(-50%); }
.intro-pct.is-r { left: calc(50% + min(38vw, 31vh) + 10px); transform: translateY(-50%); }
@keyframes intro-spin { to { transform: rotate(360deg); } }

/* ---------- ピル型ヘッダーとメニュー ---------- */
.pill {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 6px 28px rgba(17, 18, 19, 0.10);
}
.pill-logo .logo { height: 19px; }
.menu-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.25s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
html:not(.js) .menu-btn { display: none; }
html.menu-open { overflow: hidden; }
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  padding: 96px 20px 40px; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; text-align: center; }
.menu a { display: block; padding: 4px 12px; }
.menu a span {
  display: block; font-family: var(--font-en); font-stretch: 125%; font-weight: 800;
  font-size: clamp(28px, min(5.4vw, 6vh), 72px); line-height: 1.05; letter-spacing: -0.02em;
}
.menu a small { display: block; font-size: 13px; color: var(--paper-dim); margin-top: 2px; }
.menu a:hover span { font-style: italic; color: var(--lime); }

/* ---------- ボタン ［ ］ ---------- */
.btn-bracket {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 15px 26px; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-en); font-stretch: 125%; font-weight: 700; font-size: 15px; letter-spacing: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-bracket .br { opacity: 0.55; font-weight: 400; }
.btn-bracket .arrow { margin-left: 0.4em; font-family: var(--font-jp); }
.btn-bracket:hover { background: var(--lime); color: var(--ink); }
.btn-bracket.is-light { background: var(--paper); color: var(--ink); }
.btn-bracket.is-light:hover { background: var(--lime); }

/* ---------- 1. HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center;
  padding: clamp(96px, 14vh, 140px) 20px clamp(36px, 6vh, 64px);
  background: radial-gradient(ellipse at 50% 46%, var(--paper) 0%, var(--mist) 100%);
  overflow: hidden;
}
html.gl-on .hero { background: transparent; }
.hero-poster { position: absolute; inset: 0; z-index: -1; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
html.gl-on .hero-poster { visibility: hidden; }
.hero-display { font-size: clamp(38px, 8vw, 124px); }
.hero-display span, .hero-display em { display: block; }
.hero-foot { display: grid; justify-items: center; gap: 6px; }
.hero h1 { font-size: clamp(24px, 3vw, 42px); letter-spacing: 0.01em; }
.hero-sub { font-size: clamp(14px, 1.3vw, 17px); font-weight: 700; color: var(--ink-sub); }
.hero-foot .btn-bracket { margin-top: 22px; }

/* ---------- 暗い帯（We Are〜3つのライン） ----------
   3D が描けないとき：墨の地にぼかした光を CSS で敷く。
   3D と演出の両方が動いたときだけ透明にして、キャンバスの暗転を見せる */
.zone-dark {
  color: var(--paper);
  background:
    radial-gradient(ellipse 45% 30% at 18% 12%, rgba(180, 216, 6, 0.20), transparent 70%),
    radial-gradient(ellipse 40% 28% at 85% 38%, rgba(118, 184, 0, 0.20), transparent 70%),
    radial-gradient(ellipse 35% 22% at 30% 70%, rgba(244, 245, 241, 0.08), transparent 70%),
    radial-gradient(ellipse 45% 30% at 80% 90%, rgba(180, 216, 6, 0.14), transparent 70%),
    var(--ink);
}
html.gl-on.motion .zone-dark { background: transparent; }

/* ---------- 2. WE ARE ---------- */
.we {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 120px 20px;
}
.we-title { font-size: clamp(42px, 9vw, 140px); }
.we-line { display: block; overflow: hidden; padding: 0 0.08em 0.06em; }
.we-line + .we-line { font-size: 0.7em; }
.we-word { display: inline-block; }
.we-copy { margin-top: clamp(36px, 6vh, 64px); display: grid; justify-items: center; }
.we-lead { font-size: clamp(19px, 2.1vw, 28px); font-weight: 900; line-height: 1.6; font-feature-settings: "palt"; }
.we-body { max-width: 36em; margin-top: 18px; font-size: 15.5px; color: var(--paper); text-align: left; }

/* ---------- 3. 縦のワードマーク ---------- */
.mark {
  height: 160vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mark-svg { width: 130vh; max-width: none; height: auto; flex: none; transform: rotate(90deg); color: var(--paper); --logo-mark: var(--lime); }
html.gl-on.motion .mark-svg { visibility: hidden; }

/* ---------- 4. NUMBERS ---------- */
.numbers { padding: clamp(96px, 16vh, 180px) 20px; text-align: center; }
.numbers-title { font-size: clamp(26px, 3.6vw, 48px); }
.stat-group { margin-top: clamp(64px, 10vh, 120px); }
.stats li { position: relative; padding: 34px 0; }
.stats li + li::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 76px; height: 1px; background: var(--hair);
}
.stat-label { font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; }
.stat-num {
  font-family: var(--font-en); font-stretch: 125%; font-weight: 800;
  font-size: clamp(64px, 12vw, 168px); line-height: 1; letter-spacing: -0.035em;
  margin: 12px 0 10px; font-variant-numeric: tabular-nums;
}
.stat-num .plus { margin-left: 0.04em; }
.stat-unit { font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; }
/* 出典と「目標値」の断り書き。背景の光に負けないよう紙色で */
.stat-note { font-size: 14px; color: var(--paper); margin-top: 4px; }
.goal-title { font-size: clamp(20px, 2.4vw, 32px); margin-bottom: 28px; }
/* 目標であることを数字より先に読ませる */
.goal-label {
  display: inline-block; padding: 4px 14px;
  border: 1px solid var(--lime); color: var(--lime); font-size: clamp(15px, 1.4vw, 18px);
}

/* ---------- 5. SHOWS ---------- */
.shows { padding: clamp(80px, 12vh, 140px) 0; }
.shows-head { text-align: center; padding: 0 20px; }
.shows-title { font-size: clamp(48px, 9vw, 140px); }
.shows-lead { margin-top: 14px; font-size: clamp(18px, 2vw, 26px); font-weight: 900; font-feature-settings: "palt"; }
.marquee { margin-top: clamp(40px, 7vh, 72px); display: grid; gap: 12px; overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track.is-reverse { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { width: clamp(220px, 25vw, 380px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.shows-cta { text-align: center; margin-top: clamp(36px, 6vh, 56px); }

/* ---------- 6. LINES ----------
   既定（JSなし・reduced-motion・768px未満）は横スクロール＋scroll-snap。
   演出が動く 768px 以上では、縦スクロールに合わせて横に流す（motion.js） */
.lines { padding: clamp(80px, 12vh, 140px) 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lines::-webkit-scrollbar { display: none; }
.lines-track { display: flex; gap: 24px; width: max-content; padding: 0 max(20px, 6vw); align-items: stretch; }
.lines-track > * { scroll-snap-align: start; flex: none; }
.lines-intro { width: min(36vw, 440px); display: flex; flex-direction: column; justify-content: center; }
.lines-title { font-size: clamp(48px, 9vw, 140px); }
.lines-lead { margin-top: 18px; font-size: clamp(20px, 2.2vw, 30px); font-weight: 900; line-height: 1.5; font-feature-settings: "palt"; }
.line-card {
  position: relative; overflow: hidden;
  width: min(62vw, 760px); height: min(66vh, 560px); min-height: 380px;
  display: flex; align-items: flex-end; padding: clamp(24px, 3vw, 40px);
  border-radius: 16px; background: var(--surface); border: 1px solid var(--hair);
}
.line-card.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line-card.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 18, 19, 0.9) 0%, rgba(17, 18, 19, 0.35) 45%, rgba(17, 18, 19, 0) 70%); }
.line-body { position: relative; z-index: 1; max-width: 30em; }
.line-mark { position: absolute; top: clamp(24px, 3vw, 40px); left: clamp(24px, 3vw, 40px); width: clamp(56px, 6vw, 88px); height: auto; aspect-ratio: 290 / 280; fill: var(--lime); }
.line-tag { font-family: var(--font-en); font-stretch: 125%; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--lime); margin-bottom: 10px; }
.line-card h3 { font-size: clamp(24px, 2.8vw, 40px); margin-bottom: 12px; }
.line-card p { font-size: 15px; color: var(--paper); }
.line-status { display: inline-block; margin-top: 14px; padding: 2px 12px; border: 1px solid var(--hair); font-size: 13.5px !important; color: var(--paper-dim) !important; }
@media (min-width: 768px) {
  html.motion .lines { height: 100vh; overflow: hidden; display: flex; align-items: center; padding: 0; scroll-snap-type: none; }
}

/* ---------- 明るい面（ニュース以降。キャンバスを覆う） ---------- */
.light { position: relative; background: var(--ground); color: var(--ink); }
.news, .company, .contact { padding: clamp(80px, 12vh, 140px) 20px; }
.light-title { font-size: clamp(44px, 8vw, 120px); text-align: center; margin-bottom: clamp(36px, 6vh, 64px); }

.news-list { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 32px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--font-en); font-stretch: 125%; font-weight: 700; font-size: 14px; padding-top: 3px; }
.news-list a { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.company-rows { max-width: 920px; margin: 0 auto; display: grid; gap: 6px; }
.company-rows > div { background: var(--row); border-radius: 6px; padding: 20px 28px; text-align: center; }
.company-rows dt { font-weight: 900; font-size: 15px; }
.company-rows dd { font-size: 15px; margin-top: 2px; text-wrap: pretty; }

.contact { padding-top: 0; }
.sponsor-card {
  display: grid; place-items: center; gap: 10px; text-align: center;
  max-width: 1180px; min-height: clamp(300px, 42vh, 420px); margin: 0 auto; padding: 56px 24px;
  border-radius: 16px; color: var(--paper);
  background:
    radial-gradient(ellipse 60% 70% at 28% 38%, rgba(118, 184, 0, 0.78), transparent 70%),
    radial-gradient(ellipse 45% 60% at 82% 72%, rgba(180, 216, 6, 0.42), transparent 70%),
    var(--ink);
  transition: transform 0.3s ease;
}
.sponsor-card:hover { transform: scale(0.99); }
.sponsor-en { font-size: clamp(44px, 7vw, 100px); }
.sponsor-jp { font-size: clamp(16px, 1.6vw, 20px); font-weight: 900; }
.sponsor-arrow { font-size: 34px; line-height: 1; margin-top: 6px; }
.contact-mail { max-width: 640px; margin: clamp(40px, 6vh, 56px) auto 0; text-align: center; }
.contact-mail p { font-size: 15px; color: var(--ink-sub); }
.contact-mail .mail { margin-top: 10px; font-family: var(--font-en); font-stretch: 125%; font-weight: 700; font-size: clamp(18px, 2vw, 24px); color: var(--ink); }
.contact-mail .mail a { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.site-footer { text-align: center; padding: 72px 20px 44px; border-top: 1px solid var(--line); }
.footer-logo { height: 26px; margin: 0 auto 32px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; max-width: 980px; margin: 0 auto; }
.footer-nav a { font-family: var(--font-en); font-stretch: 125%; font-weight: 800; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.02em; }
.footer-nav a:hover { font-style: italic; text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 6px; }
.footer-sub { margin-top: 32px; font-size: 14px; }
.footer-sub a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { margin-top: 8px; font-size: 13px; color: var(--ink-sub); }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-ring { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .btn-bracket, .sponsor-card, .menu-btn span { transition: none; }
}

/* ---------- 狭い画面 ---------- */
@media (max-width: 767px) {
  .br-narrow { display: inline; }
  .br-wide { display: none; }
  .pill { top: 12px; gap: 18px; padding-left: 18px; }
  .pill-logo .logo { height: 17px; }
  .we-body { font-size: 15px; }
  .mark { height: 120vh; }
  .mark-svg { width: 110vh; }
  .lines-intro { width: 72vw; }
  .line-card { width: 84vw; height: 68vh; min-height: 420px; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .company-rows > div { padding: 16px 18px; }
}

/* ---------- 印刷 ---------- */
@media print {
  #gl, .intro, .pill, .menu, .hero-poster, .marquee, .btn-bracket { display: none !important; }
  .hero, .zone-dark, .sponsor-card { background: #fff !important; color: var(--ink) !important; }
  .we-body, .stat-note, .line-card p { color: var(--ink-sub) !important; }
  .mark { display: none; }
  .lines { overflow: visible; }
  .lines-track { flex-direction: column; width: auto; }
  .line-card { width: auto; height: auto; min-height: 0; background: #fff; color: var(--ink); }
  .line-card.has-photo img, .line-card.has-photo::after { display: none; }
}
