/* =============================================================
   BVC Base / Reset
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: opacity var(--dur-fast) var(--ease-out); }
a:hover { opacity: 0.6; }

button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: var(--lh-title);
  margin: 0;
  color: var(--color-ink);
  font-feature-settings: "palt";
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

hr { border: 0; height: 1px; background: var(--color-border); margin: 0; }

/* ------- Utility ------- */
.container {
  padding-left: var(--container-x);
  padding-right: var(--container-x);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--tight { padding-top: calc(var(--section-y) * 0.6); padding-bottom: calc(var(--section-y) * 0.6); }

.two-col {
  display: grid;
  grid-template-columns: var(--meta-col) 1fr;
  gap: var(--gap-2col);
  align-items: start;
}
@media (max-width: 767px) {
  .two-col { grid-template-columns: 1fr; }
}

.meta {
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  color: var(--color-text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--color-ink);
}

/* Kicker — 英字イタリック小見出し（全ページ共通） */
.kicker {
  font-family: var(--font-en-serif);
  font-style: italic;
  color: var(--color-green);
  font-size: var(--fs-kicker);
  letter-spacing: 0.06em;
  display: inline-block;
  line-height: 1.4;
}

.kicker--small {
  font-size: var(--fs-kicker);
  letter-spacing: var(--ls-kicker);
  color: var(--color-text-muted);
  font-style: normal;
  font-family: var(--font-en-serif);
}

.section-title {
  font-size: var(--fs-section-title);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin: 0;
  line-height: var(--lh-title);
  /* palt のみ。halt は約物半角化で中黒・句読点が消えて見えるので使わない */
  font-feature-settings: "palt" 1;
}

.hero-title {
  font-size: var(--fs-hero-title);
  line-height: var(--lh-hero);
  font-weight: 400;
  letter-spacing: var(--ls-title);
  margin: 0;
  font-feature-settings: "palt";
}

.eng-italic {
  font-family: var(--font-en-serif);
  font-style: italic;
  color: var(--color-green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 14px 28px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn:hover { background: var(--color-ink); color: #fff; opacity: 1; }

.btn--inverse { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--inverse:hover { background: #fff; color: var(--color-ink); }

.btn--filled { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.btn--filled:hover { background: var(--color-ink); border-color: var(--color-ink); }

.btn__arrow { width: 18px; height: 1px; background: currentColor; position: relative; }
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* Section head (2-col title block) */
.section-head {
  display: grid;
  grid-template-columns: var(--meta-col) 1fr;
  gap: var(--gap-2col);
  margin-bottom: 64px;
  align-items: baseline;
}
@media (max-width: 767px) {
  .section-head { grid-template-columns: 1fr; margin-bottom: 40px; }
}

/* Photo stub (until real images arrive) */
.photo-stub {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
  color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en-serif); font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.photo-stub::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,0.03) 8px 9px);
  pointer-events: none;
}
.photo-stub--warm  { background: #eae3d6; }
.photo-stub--cool  { background: #dfe6ed; }
.photo-stub--dark  { background: #22262c; color: #c9d3df; }
.photo-stub--green { background: #dee3dc; color: #324437; }
.photo-stub--gold  { background: linear-gradient(135deg, #d4bc8c 0%, #b89968 100%); color: #fff; }

.aspect-4-5 { aspect-ratio: 4/5; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-3-2 { aspect-ratio: 3/2; }

/* Divider row */
.divider {
  border-top: 1px solid var(--color-border);
}

/* AI CURATED chip */
.ai-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #f5f2ea;
  border: 1px solid #d9d1bf;
  color: #6b5f4a;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.ai-chip::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-green);
}
.ai-chip--dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: #dad4c5;
}

/* Selection */
::selection { background: var(--color-green); color: #fff; }

/* Animation base classes (used by GSAP main.js) */
.fade-up { opacity: 0; transform: translateY(30px); animation: fade-up-fallback 700ms ease-out 2500ms forwards; }
@keyframes fade-up-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.split-word { display: inline-block; overflow: hidden; }
.split-word > span { display: inline-block; }

/* =============================================================
   Scroll-driven background gimmick — v1.4.1: 完全に無効化
   scroll-bg.js は挿入されるが、CSSで display:none にしてオフ。
   セクションによってギミックが出たり出なかったりして統一感が
   損なわれたため。マウス追従スポットライトのみ有効。
   ============================================================= */
.bvc-bg {
  display: none !important;
}
.bvc-bg-legacy-unused {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--color-green);
  opacity: 0.22;
  transition: opacity 400ms var(--ease-out);
  overflow: hidden;
}
.bvc-bg__svg { width: 100%; height: 100%; }
.bvc-bg__grid,
.bvc-bg__rules,
.bvc-bg__mark,
.bvc-bg__num { will-change: transform; transition: transform 60ms linear; }

/* All page content must sit above the bg layer.
   Excludes .nav-overlay (fixed positioning) and .bvc-bg (fixed too). */
body > header,
body > main,
body > footer,
body > section {
  position: relative;
  z-index: 1;
}
/* .nav-overlay keeps its own position: fixed from components.css */
body > .nav-overlay { z-index: calc(var(--z-nav) - 1); }

/* Content sections need bg fills so they don't reveal the pattern in places
   where full contrast is needed. Otherwise the pattern shows through. */
.hero,
.subhero,
.section,
.service-hero,
.article-header,
.article-body,
.doc-section,
.sitemap-hero,
.sitemap-grid,
.cta-band,
.quote-band {
  background: var(--color-bg);
}
.quote-band { background: var(--color-cream); }
.service-hero { background: var(--color-cream); }
.cta-band { background: var(--color-cream); }
.sitemap-hero { background: var(--color-cream); }
/* Footer keeps ink background (bg layer is muted there by CSS opacity ramp) */
.footer { background: var(--color-ink); position: relative; z-index: 1; overflow: hidden; }

/* Hero (full-screen video) is transparent so the video shows.
   The bg gimmick is SUPPRESSED here (user requested no pattern over video). */
.hero-full { position: relative; z-index: 1; }
.bvc-bg-hero { display: none !important; }

/* Footer overlay pattern is disabled — the pattern only lives in the main body layer */
.bvc-bg-footer { display: none !important; }
.footer > * { position: relative; z-index: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

/* =============================================================
   Mouse-follow gold spotlight (PC only)
   ------------------------------------------------------------
   scroll-bg.js が hover-capable な pointer 環境でのみ挿入する。
   fixed 配置の柔らかい放射グラデーション。z-index を bg より上
   （メインコンテンツより下）に置き、pointer-events は無効化。
   ============================================================= */
.bvc-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 720px;
  height: 720px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(184, 153, 104, 0.22) 0%,
    rgba(184, 153, 104, 0.14) 22%,
    rgba(184, 153, 104, 0.06) 46%,
    rgba(184, 153, 104, 0) 72%
  );
  mix-blend-mode: normal;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  will-change: transform, opacity;
}
.bvc-spotlight.is-visible { opacity: 1; }

/* On dark surfaces (footer, dark hero) the spotlight reads much brighter,
   so we let it stay via z-index but the color already looks natural. */

@media (max-width: 1024px) {
  .bvc-spotlight { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bvc-spotlight { display: none; }
}

/* =============================================================
   Headings — 全角ぶら下がり抑止 & 左詰め徹底
   ============================================================= */
.section-title,
.subhero__title,
.hero-full__title,
.hero-title,
.cta-band__title,
.mvv-triad__head-title,
.tiles-band__head-title {
  text-indent: 0;
  padding-inline-start: 0;
  margin-inline-start: 0;
  font-feature-settings: "palt" 1;
  text-align: left;
}
/* 全角記号や句読点の直後のぶら下がり抑制のため hanging-punctuation を無効化 */
h1, h2, h3, h4, h5, h6 { hanging-punctuation: none; }
