:root {
  --navy: #02142F;
  --navy-deep: #010D21;
  --navy-soft: #0B2350;
  --gold: #C9A96A;
  --gold-soft: #D8BE8A;
  --gold-dim: rgba(201, 169, 106, 0.45);
  --gold-faint: rgba(201, 169, 106, 0.18);
  --ivory: #F4EFE6;
  --ivory-muted: rgba(244, 239, 230, 0.72);
  --ivory-faint: rgba(244, 239, 230, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif-latin: "Cormorant Garamond", "Georgia", serif;
  --serif-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --wrap: 880px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--serif-latin), var(--serif-ja);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ja) {
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: normal;   /* 禁則（行頭の「。」「、」禁止）を優先する。割ってでも収めるをやめる */
  word-break: keep-all;
  font-feature-settings: "palt" 1;
}
/* 組版: 文の切れ目で改行（br.s）・文節の境目だけで折り返す（wbr）。付与は tools/segment.py */
.nb { white-space: nowrap; }   /* 数値の範囲などを割らせない */
@supports (text-autospace: normal) { :lang(ja) { text-autospace: normal; } }
@supports (word-break: auto-phrase) { :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; text-wrap: balance; } }
@supports (text-spacing-trim: normal) { :lang(ja) { text-spacing-trim: normal; } }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 600px at 50% 110%, rgba(11,35,80,0.9), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.6'/></svg>");
}
.page { position: relative; z-index: 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.rule { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(2,20,47,0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--gold-faint); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); }
.brand img { width: 34px; height: 34px; }
.brand .word { font-family: var(--serif-latin); font-size: 19px; letter-spacing: 0.34em; padding-left: 0.34em; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-family: var(--serif-ja); font-size: 14px; letter-spacing: 0.12em; color: var(--ivory-muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: color 220ms var(--ease), border-color 220ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold-dim); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gold-dim); color: var(--gold); font-family: var(--serif-ja); font-size: 12px; letter-spacing: 0.16em; padding: 8px 12px; cursor: pointer; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: rgba(2,20,47,0.98); border-bottom: 1px solid var(--gold-faint); padding: 8px 0 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 28px; width: 100%; border-bottom: 1px solid var(--gold-faint); }
  .nav-toggle { display: inline-block; }
}

/* hero */
.hero { min-height: min(100svh, 820px); display: grid; place-items: center; text-align: center; padding: 64px 0 56px; }
.hero.compact { min-height: 0; padding: 88px 0 56px; }
.crest { width: min(52vw, 240px); height: auto; display: block; margin: 0 auto 26px; }
.kicker { font-family: var(--serif-latin); font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; padding-left: 0.42em; }
h1 { font-family: var(--serif-ja); font-weight: 500; font-size: clamp(26px, 5.2vw, 40px); letter-spacing: 0.12em; margin: 0 0 22px; color: var(--ivory); }
.lead { font-family: var(--serif-ja); font-size: 16px; color: var(--ivory-muted); margin: 0 auto; max-width: 36em; }
.hero-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-link { display: inline-block; font-family: var(--serif-ja); font-size: 14px; letter-spacing: 0.16em; color: var(--gold); text-decoration: none; border: 1px solid var(--gold-dim); padding: 12px 26px; transition: border-color 220ms var(--ease), background 220ms var(--ease); }
.hero-link:hover { border-color: var(--gold); background: rgba(201,169,106,0.06); }

/* sections */
section { padding: 88px 0; }
.sec-label { font-family: var(--serif-latin); font-size: 12px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; display: flex; align-items: center; gap: 14px; }
.sec-label::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.8; }
h2 { font-family: var(--serif-ja); font-weight: 500; font-size: clamp(22px, 4vw, 30px); letter-spacing: 0.08em; margin: 0 0 28px; }
h3 { font-family: var(--serif-ja); font-weight: 500; font-size: 18px; letter-spacing: 0.08em; margin: 0 0 12px; color: var(--ivory); }
p { font-family: var(--serif-ja); font-size: 16px; margin: 0 0 1.2em; color: var(--ivory-muted); }
p strong { font-weight: 600; color: var(--ivory); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 24px; } }

/* cards / facts */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.card { border: 1px solid rgba(201,169,106,0.28); padding: 26px 22px; background: rgba(7,17,41,0.35); }
.card .n { font-family: var(--serif-latin); font-size: 13px; letter-spacing: 0.3em; color: var(--gold); margin: 0 0 10px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.fact { border: 1px solid rgba(201,169,106,0.28); padding: 22px 16px 20px; text-align: center; background: rgba(7,17,41,0.35); }
.fact .num { font-family: var(--serif-latin); font-weight: 500; font-size: 34px; line-height: 1; color: var(--gold); letter-spacing: 0.02em; }
.fact .num small { font-family: var(--serif-ja); font-size: 13px; letter-spacing: 0.08em; margin-left: 4px; color: var(--gold-soft); }
.fact .cap { font-family: var(--serif-ja); font-size: 13px; color: var(--ivory-muted); margin-top: 10px; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .cards, .facts { grid-template-columns: 1fr; gap: 12px; }
  .fact { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; }
  .fact .cap { margin-top: 0; }
  section { padding: 64px 0; }
}

.facts.stack { grid-template-columns: 1fr; gap: 12px; }
.facts.stack .fact { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; }
.facts.stack .fact .cap { margin-top: 0; }

/* steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 30px 64px; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; font-family: var(--serif-latin); font-size: 26px; color: var(--gold); letter-spacing: 0.04em; }
.steps li::after { content: ""; position: absolute; left: 14px; top: 38px; bottom: 6px; width: 1px; background: var(--gold-faint); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; }

/* faq */
.faq { margin: 24px 0 0; }
.faq details { border-top: 1px solid var(--gold-faint); }
.faq details:last-child { border-bottom: 1px solid var(--gold-faint); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-family: var(--serif-ja); font-size: 16px; color: var(--ivory); letter-spacing: 0.04em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--serif-latin); font-size: 22px; color: var(--gold); transition: transform 220ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 22px; }
.faq .a p { font-size: 15px; margin: 0 0 0.8em; }

/* notice / cta */
.notice { font-family: var(--serif-ja); font-size: 13px; letter-spacing: 0.12em; color: var(--gold); border: 1px solid var(--gold-dim); display: inline-block; padding: 6px 14px; margin: 0 0 22px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 420px; padding: 18px 26px; margin: 26px 0 14px; font-family: var(--serif-ja); font-size: 16px; letter-spacing: 0.14em; font-weight: 500; color: var(--navy-deep); background: var(--gold); text-decoration: none; border: 1px solid var(--gold); transition: transform 220ms var(--ease), background 220ms var(--ease); }
.cta::after { content: "→"; font-family: var(--serif-latin); font-size: 20px; transition: transform 220ms var(--ease); }
.cta:hover { background: var(--gold-soft); transform: translateY(-1px); }
.cta:hover::after { transform: translateX(4px); }
.cta-note { font-size: 13px; color: var(--ivory-muted); margin: 0; letter-spacing: 0.04em; }
.ghost { display: inline-block; font-family: var(--serif-ja); font-size: 14px; letter-spacing: 0.14em; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); padding-bottom: 6px; }
.tinted { background: linear-gradient(180deg, rgba(7,17,41,0) 0%, rgba(7,17,41,0.75) 18%, rgba(7,17,41,0.75) 82%, rgba(7,17,41,0) 100%); }
.quiet { font-size: 14px; color: var(--ivory-faint); }

/* dual entry */
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 0; }
.entry { display: block; text-decoration: none; border: 1px solid rgba(201,169,106,0.35); padding: 30px 26px; background: rgba(7,17,41,0.35); transition: border-color 220ms var(--ease), background 220ms var(--ease); }
.entry:hover { border-color: var(--gold); background: rgba(201,169,106,0.05); }
.entry .n { font-family: var(--serif-latin); font-size: 12px; letter-spacing: 0.34em; color: var(--gold); margin: 0 0 10px; }
.entry h3 { margin: 0 0 8px; }
.entry p { font-size: 14px; margin: 0 0 14px; }
.entry .go { font-family: var(--serif-ja); font-size: 13px; letter-spacing: 0.14em; color: var(--gold); }
@media (max-width: 640px) { .entries { grid-template-columns: 1fr; } }

/* footer */
footer { padding: 56px 0 44px; border-top: 1px solid var(--gold-faint); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.foot .mark { font-family: var(--serif-latin); font-size: 20px; letter-spacing: 0.42em; color: var(--gold); margin: 0 0 8px; }
.foot .small { font-family: var(--serif-ja); font-size: 12px; color: var(--ivory-muted); letter-spacing: 0.08em; margin: 0 0 6px; }
.foot h4 { font-family: var(--serif-ja); font-size: 13px; letter-spacing: 0.16em; color: var(--gold); margin: 0 0 12px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { font-family: var(--serif-ja); font-size: 13px; color: var(--ivory-muted); text-decoration: none; letter-spacing: 0.06em; }
.foot a:hover { color: var(--gold); }
.copy { margin-top: 36px; font-family: var(--serif-latin); font-size: 12px; letter-spacing: 0.16em; color: var(--ivory-faint); text-align: center; }
@media (max-width: 640px) { .foot { grid-template-columns: 1fr; } }


/* ===== light sections / photo bands (2026-09-04 明暗と写真) ===== */
section.light { background: var(--ivory); color: var(--navy); }
section.light h2, section.light h3, section.light p strong { color: var(--navy); }
section.light p { color: rgba(2,20,47,0.78); }
section.light .sec-label { color: #9A7B3F; }
section.light .sec-label::before { background: #9A7B3F; }
section.light .card, section.light .fact, section.light .entry { background: rgba(255,255,255,0.55); border-color: rgba(154,123,63,0.35); }
section.light .card .n, section.light .entry .n, section.light .entry .go { color: #9A7B3F; }
section.light .card h3, section.light .entry h3, section.light .fact .cap { color: var(--navy); }
section.light .fact .num { color: #9A7B3F; }
section.light .fact .num small { color: #9A7B3F; }
section.light .steps li::before { color: #9A7B3F; }
section.light .steps li::after { background: rgba(154,123,63,0.25); }
section.light .steps h3 { color: var(--navy); }
section.light .faq details { border-color: rgba(154,123,63,0.25); }
section.light .faq summary { color: var(--navy); }
section.light .faq summary::after { color: #9A7B3F; }
section.light .ghost { color: #9A7B3F; border-color: rgba(154,123,63,0.5); }
section.light .quiet { color: rgba(2,20,47,0.55); }
section.light .notice { color: #9A7B3F; border-color: rgba(154,123,63,0.5); }
section.light .entry:hover { border-color: #9A7B3F; background: rgba(255,255,255,0.85); }
section.light + .rule, .rule + section.light { }

.hero.photo { position: relative; overflow: hidden; }
.hero.photo::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img); background-size: cover; background-position: center; opacity: 0.55; }
.hero.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,20,47,0.55) 0%, rgba(2,20,47,0.35) 45%, rgba(2,20,47,0.92) 100%); }
.hero.photo .wrap { position: relative; z-index: 1; }
.hero.photo .crest { width: min(40vw, 180px); filter: drop-shadow(0 6px 24px rgba(0,0,0,0.45)); }
.hero.photo h1 { text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.hero.photo .lead { color: rgba(244,239,230,0.88); text-shadow: 0 1px 12px rgba(0,0,0,0.45); }

.band { position: relative; min-height: 360px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background-image: var(--band-img); background-size: cover; background-position: center; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,20,47,0.55), rgba(2,20,47,0.65)); }
.band .wrap { position: relative; z-index: 1; padding: 64px 28px; }
.band .q { font-family: var(--serif-ja); font-weight: 500; font-size: clamp(20px, 3.4vw, 28px); letter-spacing: 0.14em; color: var(--ivory); margin: 0 0 12px; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.band .s { font-family: var(--serif-latin); font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin: 0; }
@media (max-width: 640px) { .band { min-height: 260px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split .ph { aspect-ratio: 4 / 5; background-size: cover; background-position: center; border: 1px solid var(--gold-faint); }
.split .ph.wide { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 24px; } .split .ph { aspect-ratio: 16 / 10; } }

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(1) { transition-delay: 80ms; }
.hero .reveal:nth-child(2) { transition-delay: 320ms; }
.hero .reveal:nth-child(3) { transition-delay: 520ms; }
.hero .reveal:nth-child(4) { transition-delay: 720ms; }
.hero .reveal:nth-child(5) { transition-delay: 980ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .cta, .cta::after, .hero-link, .entry { transition: none; }
  html { scroll-behavior: auto; }
}
