/* ============================================================
   MERIDIAN ｜ 子午線資産経営
   Light data-journalism / annual-report — ivory + navy ink + brass.
   Hand-built animated SVG infographics. No CDN, no WebGL.
   ============================================================ */
:root {
  --ivory: #f4f1ea;      /* page background (warm off-white) */
  --paper: #fbf9f3;      /* card / raised surface */
  --paper2: #f0ece2;     /* inset / rules */
  --ink: #141c2e;        /* deep navy ink (primary text) */
  --ink-2: #3c4763;      /* secondary text */
  --ink-3: #6b7590;      /* tertiary / captions */
  --brass: #b0894f;      /* single thin accent */
  --brass-deep: #8a6631;
  --brass-soft: rgba(176, 137, 79, 0.14);
  --line: rgba(20, 28, 46, 0.13);
  --line-soft: rgba(20, 28, 46, 0.07);
  --serif: 'Newsreader', 'Zen Kaku Gothic New', Georgia, serif;
  --jp: 'Zen Kaku Gothic New', 'Newsreader', system-ui, sans-serif;
  --grot: 'Schibsted Grotesk', 'Zen Kaku Gothic New', system-ui, sans-serif;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--jp);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* faint ledger rules across the whole page */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 47px, var(--line-soft) 47px, var(--line-soft) 48px);
  opacity: 0.5;
}
main, .mast, .foot { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: 0.01em; }
em { font-style: normal; }

/* ===== scroll progress ===== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: transparent; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass));
}

/* ===== masthead ===== */
.mast {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 40px;
  background: rgba(244, 241, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-glyph { color: var(--brass-deep); display: flex; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b { font-family: var(--grot); font-weight: 600; font-size: 17px; letter-spacing: 0.22em; }
.brand-word i { font-style: normal; font-size: 10.5px; letter-spacing: 0.28em; color: var(--ink-3); margin-top: 3px; }
.mast-nav { display: flex; gap: 26px; margin-left: auto; }
.mast-nav a {
  font-size: 13.5px; color: var(--ink-2); letter-spacing: 0.04em;
  position: relative; padding: 2px 0; transition: color 0.25s;
}
.mast-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px;
  background: var(--brass); transition: width 0.3s var(--ease);
}
.mast-nav a:hover { color: var(--ink); }
.mast-nav a:hover::after { width: 100%; }
.mast-cta {
  font-family: var(--grot); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ivory); background: var(--ink); padding: 9px 20px; border-radius: 2px;
  border: 1px solid var(--ink); transition: background 0.25s, color 0.25s;
}
.mast-cta:hover { background: var(--brass-deep); border-color: var(--brass-deep); }

/* ===== shared section chrome ===== */
section { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 11vh, 128px) 40px; }
.sec-kicker {
  font-family: var(--grot); font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em;
  color: var(--brass-deep); text-transform: uppercase; margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.sec-kicker span {
  font-variant-numeric: tabular-nums; color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px; padding: 2px 8px; font-size: 11px;
}
.sec-head { max-width: 720px; }
.sec-head h2, .growth-copy h2, .alloc-copy h2, .contact-copy h2 {
  font-family: var(--serif); font-size: clamp(30px, 4.6vw, 54px); font-weight: 500;
  line-height: 1.18; letter-spacing: 0.005em; margin: 0 0 22px;
}
h2 em { color: var(--brass-deep); font-style: italic; }
.sec-note { font-size: 15.5px; color: var(--ink-2); max-width: 640px; margin: 0; }
.sec-note em { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, var(--brass-soft) 62%); }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--grot); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  padding: 13px 26px; border-radius: 2px; border: 1px solid var(--ink);
  transition: transform 0.22s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { color: var(--ivory); background: var(--ink); }
.btn-primary:hover { background: var(--brass-deep); border-color: var(--brass-deep); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brass-deep); color: var(--brass-deep); transform: translateY(-2px); }
.btn-full { width: 100%; padding: 15px; }

/* ===== reveal primitive ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) 40px clamp(64px, 10vh, 120px);
  min-height: 78vh; display: flex; align-items: center;
}
.hero-plot {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: 0.9; pointer-events: none;
}
.hero-rule {
  position: absolute; left: 40px; right: 40px; bottom: clamp(40px, 7vh, 90px); height: 1px;
  background: var(--line); z-index: 0;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 5vw, 72px); align-items: end;
}
.eyebrow {
  font-family: var(--grot); font-size: 12px; font-weight: 500; letter-spacing: 0.2em;
  color: var(--ink-3); text-transform: uppercase; margin: 0 0 26px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow .tick {
  width: 26px; height: 1px; background: var(--brass); display: inline-block; position: relative;
}
.eyebrow .tick::after { content: ''; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; background: var(--brass); border-radius: 50%; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 8vw, 96px); line-height: 1.06; letter-spacing: 0.01em; margin: 0 0 30px;
}
.hero-title .l { display: block; }
.hero-title em { font-style: italic; color: var(--brass-deep); }
.hero-lede { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-2); max-width: 500px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-side {
  border-left: 1px solid var(--line); padding-left: clamp(20px, 2.6vw, 34px);
  padding-bottom: 6px;
}
.side-cap { font-family: var(--grot); font-size: 10.5px; font-weight: 600; letter-spacing: 0.26em; color: var(--brass-deep); margin: 0 0 20px; }
.side-figs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.side-figs li { display: flex; flex-direction: column; gap: 2px; }
.sf-num { font-family: var(--grot); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.sf-num b { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -0.01em; }
.sf-num i { font-style: normal; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.sf-lab { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.side-foot { font-size: 10.5px; color: var(--ink-3); margin: 0; line-height: 1.6; }

/* ============================================================
   FIGURES
   ============================================================ */
.figures .sec-head { margin-bottom: 48px; }
.fig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.fig {
  padding: 34px 26px 30px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fig.in { opacity: 1; transform: none; }
.fig + .fig { padding-left: 26px; border-left: 1px solid var(--line-soft); }
.fig-num { font-family: var(--grot); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin: 0 0 12px; display: flex; align-items: baseline; gap: 5px; }
.fig-num b { font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.fig-num i { font-style: normal; font-size: clamp(14px, 1.4vw, 17px); color: var(--brass-deep); font-weight: 500; }
.fig h3 { font-family: var(--jp); font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.fig-sub { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.7; }

/* ============================================================
   GROWTH — self-drawing chart
   ============================================================ */
.growth {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 5vw, 76px); align-items: center;
}
.growth-copy { align-self: center; }
.growth-legend { list-style: none; margin: 28px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.growth-legend li {
  display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2);
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.growth-legend b {
  margin-left: auto; font-family: var(--grot); font-weight: 600; font-size: 22px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lg-swatch { width: 22px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.lg-fund { background: var(--brass-deep); box-shadow: 0 0 0 3px var(--brass-soft); }
.lg-bench { background: var(--ink-3); }
.growth-foot { font-size: 11.5px; color: var(--ink-3); margin: 0; }
.growth-chart {
  margin: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: 3px; padding: 22px 24px 14px;
  box-shadow: 0 30px 60px -40px rgba(20, 28, 46, 0.4);
}
.growth-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
/* chart element styling */
.gx-grid { stroke: var(--line-soft); stroke-width: 1; }
.gx-axis { stroke: var(--line); stroke-width: 1; }
.gx-tick-label { font-family: var(--grot); font-size: 11px; fill: var(--ink-3); }
.gx-area { fill: url(#gxFill); opacity: 0; transition: opacity 1.1s ease 0.5s; }
.gx-area.in { opacity: 1; }
.gx-line { fill: none; stroke: var(--brass-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gx-bench { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 2 4; stroke-linecap: round; }
.gx-dot { fill: var(--paper); stroke: var(--brass-deep); stroke-width: 2.4; }
.gx-note { font-family: var(--grot); font-size: 10.5px; fill: var(--ink-3); }
.gx-callout-line { stroke: var(--line); stroke-width: 1; }

/* ============================================================
   ALLOCATION — donut
   ============================================================ */
.alloc {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.alloc-vis { display: flex; justify-content: center; }
#donut { width: 100%; max-width: 340px; height: auto; }
.donut-seg { fill: none; stroke-width: 26; transition: stroke-dashoffset 1.1s var(--ease); }
.donut-center-num { font-family: var(--grot); font-weight: 600; font-size: 40px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.donut-center-lab { font-family: var(--grot); font-weight: 500; font-size: 9px; letter-spacing: 0.24em; fill: var(--ink-3); }
.alloc-legend { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.alloc-legend li {
  display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 11px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.alloc-legend li.in { opacity: 1; transform: none; }
.al-dot { width: 12px; height: 12px; border-radius: 3px; }
.al-name { font-size: 13.5px; color: var(--ink-2); }
.al-pct { font-family: var(--grot); font-weight: 600; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============================================================
   TRACK — timeline
   ============================================================ */
.track .sec-head { margin-bottom: 54px; }
.track-line {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 1px solid var(--ink); position: relative;
}
.tk {
  position: relative; padding: 40px 22px 8px 0;
  opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.tk.in { opacity: 1; transform: none; }
.tk + .tk { padding-left: 22px; }
.tk::before {
  content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ivory); border: 2px solid var(--brass-deep);
}
.tk-year { font-family: var(--grot); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; color: var(--brass-deep); font-variant-numeric: tabular-nums; }
.tk h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin: 10px 0 10px; line-height: 1.3; }
.tk p { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.75; }

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles { background: transparent; }
.principles .sec-head { margin-bottom: 44px; }
.prin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prin {
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: 30px 26px 28px; position: relative;
  opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.prin.in { opacity: 1; transform: none; }
.prin:hover { border-color: var(--brass); box-shadow: 0 24px 46px -34px rgba(20, 28, 46, 0.5); }
.prin b {
  font-family: var(--grot); font-weight: 600; font-size: 13px; letter-spacing: 0.12em;
  color: var(--brass-deep); display: block; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.prin h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; margin: 0 0 12px; }
.prin p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.8; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { }
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 5vw, 76px); align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(36px, 5vw, 60px);
  box-shadow: 0 40px 70px -50px rgba(20, 28, 46, 0.5);
}
.contact-meta { margin: 30px 0 0; display: flex; flex-direction: column; gap: 0; }
.contact-meta div { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.contact-meta div:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-meta dt { font-family: var(--grot); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--brass-deep); min-width: 100px; margin: 0; }
.contact-meta dd { margin: 0; font-size: 14px; color: var(--ink-2); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.cf-cap { font-family: var(--grot); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; color: var(--brass-deep); margin: 0 0 4px; text-transform: uppercase; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; letter-spacing: 0.03em; }
.contact-form input, .contact-form select {
  font-family: var(--jp); font-size: 14.5px; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus, .contact-form select:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft);
}
.cf-msg { font-size: 12.5px; color: var(--brass-deep); margin: 4px 0 0; min-height: 18px; }

/* ===== footer ===== */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 48px 40px 60px; border-top: 1px solid var(--ink); }
.foot-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.foot-nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.foot-nav a { font-size: 13px; color: var(--ink-2); transition: color 0.25s; }
.foot-nav a:hover { color: var(--brass-deep); }
.foot-note { font-size: 11.5px; color: var(--ink-3); margin: 0; line-height: 1.85; max-width: 900px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .mast { padding: 14px 22px; gap: 16px; }
  .mast-nav { display: none; }
  section, .hero { padding-left: 22px; padding-right: 22px; }
  .hero-rule { left: 22px; right: 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 26px; }
  .side-figs { flex-direction: row; flex-wrap: wrap; gap: 26px; }
  .growth, .alloc, .contact-inner { grid-template-columns: 1fr; }
  .fig-grid { grid-template-columns: 1fr 1fr; }
  .fig + .fig { border-left: 0; padding-left: 0; }
  .fig:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line-soft); }
  .prin-grid { grid-template-columns: 1fr 1fr; }
  .track-line { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .tk + .tk { padding-left: 0; }
  .tk:nth-child(even) { padding-left: 22px; }
  .alloc-legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fig-grid, .prin-grid, .track-line, .alloc-legend { grid-template-columns: 1fr; }
  .fig:nth-child(even), .tk:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero-title { font-size: clamp(38px, 12vw, 60px); }
  .side-figs { flex-direction: column; }
}

/* ===== reduced motion: static end-state ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fig, .prin, .tk, .alloc-legend li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gx-area { opacity: 1 !important; transition: none !important; }
  .donut-seg { transition: none !important; }
}
