/* ============================================================
   Regional projects (projects.html, project-*.html, top page block)
   Generated pages: regional/build.py — motion: js/regional.js
   Fixed artboard rules apply: desktop rules are unconditional,
   smartphone rules use :where(html.is-smartphone), no vw/vh.
   ============================================================ */

:root {
  --rg-ink:      oklch(30% 0.05 175);
  --rg-ink-deep: oklch(24% 0.045 175);
  --rg-ink-soft: oklch(40% 0.05 175);
  --rg-gold:     oklch(74% 0.09 75);
  --rg-gold-dk:  oklch(62% 0.1 70);
  --rg-paper:    oklch(97% 0.008 110);
  --rg-mist:     oklch(92% 0.02 150);
  --rg-line:     oklch(86% 0.02 150);
  --rg-produce:  oklch(58% 0.12 145);
  --rg-industry: oklch(62% 0.11 65);
  --rg-life:     oklch(60% 0.1 15);
  --rg-ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

.rg { background: var(--rg-paper); color: var(--text); }
.rg img { display: block; max-width: 100%; }

/* ── Type ─────────────────────────────────────────────────── */
.rg-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rg-ink-soft); margin-bottom: 14px; }
.rg-eyebrow--light { color: var(--rg-gold); }
.rg-h2 { font-family: var(--font-serif); font-weight: 500; font-size: 40px; line-height: 1.4; color: var(--rg-ink-deep); letter-spacing: 0.02em; }
.rg-sec-head { margin-bottom: 40px; }
.rg-sec-lead { margin-top: 16px; color: var(--text-sub); line-height: 1.9; max-width: 720px; }
.rg-caption, .rg-map-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; line-height: 1.7; }
.rg-note { font-size: 12px; color: var(--text-muted); margin-top: 28px; line-height: 1.8; }

/* Line reveal (hero titles) */
.rg-hero-title { font-family: var(--font-serif); font-weight: 500; font-size: 52px; line-height: 1.45; letter-spacing: 0.02em; color: var(--white); }
.rg-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.rg-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--rg-ease); transition-delay: calc(0.15s + var(--l, 0) * 0.14s); }
.is-rg-ready .rg-line > span, .rg-in.is-in .rg-line > span { transform: none; }

/* Generic scroll reveal */
.rg-in { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--rg-ease), transform 0.9s var(--rg-ease); }
.rg-in.is-in { opacity: 1; transform: none; }

/* Chips */
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.rg-chip { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 12px 4px 10px; border-radius: 999px; background: oklch(100% 0 0 / 0.9); color: var(--rg-ink-deep); display: inline-flex; align-items: center; gap: 6px; }
.rg-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rg-chip--produce::before { background: var(--rg-produce); }
.rg-chip--industry::before { background: var(--rg-industry); }
.rg-chip--life::before { background: var(--rg-life); }

/* ── Hero (shared) ────────────────────────────────────────── */
.rg-hero { position: relative; overflow: hidden; background: var(--rg-ink-deep); color: var(--white); padding: calc(var(--header-h) + 88px) 0 96px; }
.rg-hero-inner { position: relative; z-index: 2; }
.rg-hero-lead { margin-top: 24px; max-width: 620px; line-height: 2; color: oklch(100% 0 0 / 0.82); font-size: 15px; }

/* Hub hero */
.rg-hero--hub { min-height: 760px; }
.rg-hero-media { position: absolute; inset: 0; z-index: 0; }
.rg-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(24% 0.045 175 / 0.97) 0%, oklch(24% 0.045 175 / 0.88) 45%, oklch(24% 0.045 175 / 0.5) 100%); }
.rg-hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.8s ease, transform 9s linear; }
.rg-hero-slide.is-active { opacity: 1; transform: scale(1); }
.rg-hub-count { display: flex; align-items: baseline; gap: 14px; font-family: 'Helvetica Neue', Arial, sans-serif; line-height: 1; margin: 6px 0 22px; }
.rg-hub-count .rg-count { font-size: 168px; font-weight: 200; color: var(--rg-gold); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rg-hub-count-unit { font-family: var(--font-serif); font-size: 40px; color: var(--white); }
.rg-hub-stats { display: flex; gap: 0; margin-top: 44px; border-top: 1px solid oklch(100% 0 0 / 0.2); max-width: 620px; }
.rg-hub-stats > div { flex: 1; padding: 18px 20px 0 0; }
.rg-hub-stats > div + div { padding-left: 20px; border-left: 1px solid oklch(100% 0 0 / 0.2); }
.rg-hub-stats dt { font-size: 12px; letter-spacing: 0.08em; color: oklch(100% 0 0 / 0.65); }
.rg-hub-stats dd { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 40px; font-weight: 300; color: var(--white); margin-top: 6px; font-variant-numeric: tabular-nums; }
.rg-hub-stats dd small { font-family: var(--font-sans); font-size: 15px; margin-left: 4px; }
.rg-hero-asof { margin-top: 26px; font-size: 12px; color: oklch(100% 0 0 / 0.6); letter-spacing: 0.04em; }
.rg-scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid oklch(100% 0 0 / 0.6); border-radius: 14px; }
.rg-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rg-gold); animation: rg-cue 2s var(--rg-ease) infinite; }
@keyframes rg-cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ── Map ──────────────────────────────────────────────────── */
.rg-map-sec { padding: 112px 0 88px; background: var(--rg-paper); }
.rg-filters { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.rg-filter { appearance: none; border: 1px solid var(--rg-line); background: var(--white); border-radius: 14px; padding: 12px 18px; display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; text-align: left; cursor: pointer; font-family: var(--font-sans); color: var(--rg-ink-deep); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--rg-ease); }
.rg-filter b { font-size: 15px; }
.rg-filter span { grid-column: 1; font-size: 11px; color: var(--text-muted); }
.rg-filter em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 28px; font-weight: 300; color: var(--rg-gold-dk); }
.rg-filter:hover { transform: translateY(-2px); border-color: var(--rg-ink-soft); }
.rg-filter.is-active { background: var(--rg-ink-deep); border-color: var(--rg-ink-deep); color: var(--white); }
.rg-filter.is-active span { color: oklch(100% 0 0 / 0.65); }
.rg-filter.is-active em { color: var(--rg-gold); }

.rg-map { position: relative; aspect-ratio: 1100 / 720; background: radial-gradient(ellipse at 55% 45%, var(--white) 0%, var(--rg-paper) 70%); border-radius: 28px; border: 1px solid var(--rg-line); }
.rg-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rg-map-band { fill: none; stroke: oklch(80% 0.035 160); stroke-width: 4.2; stroke-linecap: round; opacity: 0; transition: opacity 0.8s ease; transition-delay: calc(var(--b) * 0.07s); }
.rg-map.is-in .rg-map-band, .rg-site-hero .rg-map-band { opacity: 1; }
.rg-leader { fill: none; stroke: oklch(78% 0.025 160); stroke-width: 0.8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s var(--rg-ease), stroke 0.3s, opacity 0.3s; transition-delay: calc(1s + var(--i) * 0.08s), 0s, 0s; }
.rg-map.is-in .rg-leader { stroke-dashoffset: 0; }
.rg-marker { cursor: pointer; }
.rg-marker g { transition: opacity 0.3s; }
.rg-marker-dot { fill: var(--rg-ink-deep); transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.3s; transition-delay: calc(0.9s + var(--i) * 0.08s), 0s; }
.rg-map.is-in .rg-marker-dot { transform: scale(1); }
.rg-marker-ring { fill: none; stroke: var(--rg-gold-dk); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rg-map.is-in .rg-marker-ring { animation: rg-ping 3.2s ease-out infinite; animation-delay: calc(1.6s + var(--i) * 0.21s); }
@keyframes rg-ping { 0% { transform: scale(0.3); opacity: 0.9; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
.rg-marker-no { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 12px; font-weight: 700; fill: var(--rg-ink-deep); text-anchor: middle; opacity: 0; transition: opacity 0.4s; transition-delay: calc(1.2s + var(--i) * 0.08s); display: none; }

.rg-map-label { position: absolute; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; color: var(--rg-ink-deep); opacity: 0; transition: opacity 0.6s var(--rg-ease), transform 0.6s var(--rg-ease), color 0.3s; transition-delay: calc(1.1s + var(--i) * 0.08s), calc(1.1s + var(--i) * 0.08s), 0s; white-space: nowrap; }
.rg-map-label--left { flex-direction: row-reverse; text-align: right; transform: translate(-16px, -50%); }
.rg-map-label--right { transform: translate(16px, -50%); }
.rg-map.is-in .rg-map-label { opacity: 1; transform: translateY(-50%); }
.rg-map-label-no { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; font-weight: 700; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--rg-line); color: var(--rg-ink-deep); flex: none; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.rg-map-label-text { display: flex; flex-direction: column; line-height: 1.35; }
.rg-map-label-name { font-size: 15px; font-weight: 700; }
.rg-map-label-sub { font-size: 11px; color: var(--text-muted); }

/* hover sync + filter */
.rg-hub .is-hot .rg-map-label-no, .rg-map-label.is-hot .rg-map-label-no { background: var(--rg-gold); border-color: var(--rg-gold); color: var(--rg-ink-deep); }
.rg-marker.is-hot .rg-marker-dot { fill: var(--rg-gold-dk); }
.rg-leader.is-hot { stroke: var(--rg-gold-dk); stroke-width: 2; }
.rg-hub .is-dim { opacity: 0.18 !important; }
.rg-marker.is-dim .rg-marker-ring { display: none; }
.rg-card.is-dim { filter: grayscale(1); }
.rg-card.is-dim { pointer-events: none; }

/* ── Cards ────────────────────────────────────────────────── */
.rg-index { padding: 96px 0 120px; background: var(--white); }
.rg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rg-card { display: flex; flex-direction: column; background: var(--rg-paper); border-radius: 22px; overflow: hidden; color: inherit; text-decoration: none; border: 1px solid var(--rg-line); opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--rg-ease), transform 0.8s var(--rg-ease), box-shadow 0.4s, filter 0.4s; transition-delay: calc(var(--d, 0) * 0.08s), calc(var(--d, 0) * 0.08s), 0s, 0s; }
.rg-card.is-in { opacity: 1; transform: none; }
.rg-card:hover { box-shadow: 0 24px 48px -24px oklch(24% 0.045 175 / 0.45); transform: translateY(-6px); transition-delay: 0s; }
.rg-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--rg-mist); }
.rg-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--rg-ease); }
.rg-card:hover .rg-card-media img { transform: scale(1.07); }
.rg-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rg-card-meta { display: flex; align-items: baseline; gap: 12px; }
.rg-card-no { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 30px; font-weight: 200; color: var(--rg-gold-dk); line-height: 1; }
.rg-card-place { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--rg-ink-soft); }
.rg-card-title { font-family: var(--font-serif); font-weight: 500; font-size: 19px; line-height: 1.6; color: var(--rg-ink-deep); }
.rg-card-summary { font-size: 13px; color: var(--text-sub); }
.rg-card .rg-chip { background: var(--white); border: 1px solid var(--rg-line); }
.rg-card-stage { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rg-line); font-size: 12px; line-height: 1.7; color: var(--rg-ink-deep); display: grid; gap: 2px; }
.rg-card-stage-label { font-size: 10px; letter-spacing: 0.12em; color: var(--text-muted); }

/* ── MgO band ─────────────────────────────────────────────── */
.rg-mgo { background: var(--rg-ink-deep); color: var(--white); padding: 112px 0; position: relative; overflow: hidden; }
.rg-mgo::before { content: ''; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, oklch(74% 0.09 75 / 0.18), transparent 70%); }
.rg-mgo-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; position: relative; }
.rg-mgo .rg-h2 { color: var(--white); }
.rg-mgo .rg-h2 .rg-count { color: var(--rg-gold); font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 300; font-size: 1.3em; }
.rg-mgo-copy > p:not(.rg-eyebrow) { margin-top: 20px; line-height: 2; color: oklch(100% 0 0 / 0.78); }
.rg-link-light { display: inline-block; margin-top: 28px; color: var(--rg-gold); font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.rg-mgo-list { list-style: none; display: grid; gap: 18px; }
.rg-mgo-list a { display: grid; grid-template-columns: 170px 1fr 70px; gap: 18px; align-items: center; color: var(--white); text-decoration: none; }
.rg-mgo-place { font-size: 15px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.rg-mgo-no { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 300; color: var(--rg-gold); font-size: 13px; }
.rg-mgo-bar { height: 14px; border-radius: 7px; background: oklch(100% 0 0 / 0.1); overflow: hidden; }
.rg-mgo-bar span { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--rg-gold-dk), var(--rg-gold)); transition: width 1.4s var(--rg-ease); transition-delay: calc(0.3s + var(--i) * 0.15s); }
.rg-mgo-list.is-in .rg-mgo-bar span { width: var(--w); }
.rg-mgo-num { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 28px; font-weight: 300; text-align: right; }
.rg-mgo-list a:hover .rg-mgo-place { color: var(--rg-gold); }

/* Source note */
.rg-source { padding: 48px 0; background: var(--rg-mist); }
.rg-source p { font-size: 13px; line-height: 1.9; color: var(--text-sub); }
.rg-source a { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--rg-ink-deep); }

/* ── Site detail ──────────────────────────────────────────── */
.rg-site-hero { background: var(--rg-ink-deep); color: var(--white); padding: calc(var(--header-h) + 64px) 0 150px; position: relative; overflow: hidden; }
.rg-site-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.rg-crumb { display: flex; gap: 10px; font-size: 12px; color: oklch(100% 0 0 / 0.6); margin-bottom: 28px; }
.rg-crumb a { color: oklch(100% 0 0 / 0.8); }
.rg-crumb a:hover { color: var(--rg-gold); }
.rg-site-hero .rg-hero-title { font-size: 46px; }
.rg-site-hero .rg-chips { margin-top: 26px; }
.rg-site-hero-map { position: relative; justify-self: end; width: 380px; }
.rg-site-no { position: absolute; left: -40px; top: -36px; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 200px; font-weight: 200; line-height: 1; color: transparent; -webkit-text-stroke: 1px oklch(74% 0.09 75 / 0.55); letter-spacing: -0.04em; pointer-events: none; }
.rg-mini-svg { position: relative; width: 100%; height: auto; display: block; }
.rg-mini-svg .rg-map-band { stroke: oklch(100% 0 0 / 0.16); stroke-width: 6.5; }
.rg-mini-site { fill: oklch(100% 0 0 / 0.45); }
.rg-mini-here .rg-marker-dot { fill: var(--rg-gold); transform: scale(1); }
.rg-mini-here .rg-marker-ring { stroke: var(--rg-gold); animation: rg-ping 2.6s ease-out infinite; }
.rg-mini-here .rg-marker-ring--2 { animation-delay: 1.3s; }
.rg-site-place { position: absolute; right: 0; bottom: 6px; text-align: right; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--white); }
.rg-site-place span { display: block; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 12px; letter-spacing: 0.24em; color: var(--rg-gold); font-weight: 500; }

.rg-site-visual { margin-top: -110px; position: relative; z-index: 1; }
.rg-figure { margin: 0; }
.rg-figure-frame { overflow: hidden; border-radius: 24px; background: var(--rg-mist); box-shadow: 0 40px 80px -40px oklch(24% 0.045 175 / 0.5); clip-path: inset(0 0 100% 0 round 24px); transition: clip-path 1.4s var(--rg-ease); }
.rg-figure.is-in .rg-figure-frame { clip-path: inset(0 0 0 0 round 24px); }
.rg-figure-frame img { width: 100%; height: auto; transform: scale(1.12) translateY(var(--py, 0px)); transition: transform 1.8s var(--rg-ease); will-change: transform; }
.rg-figure.is-in .rg-figure-frame img { transform: scale(1.04) translateY(var(--py, 0px)); }
.rg-figure figcaption { font-size: 12px; color: var(--text-muted); margin-top: 12px; line-height: 1.7; }
.rg-figure.rg-in { opacity: 1; transform: none; }

/* Figures (count-ups) */
.rg-figs-sec { padding: 72px 0 0; }
.rg-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--rg-line); border-bottom: 1px solid var(--rg-line); }
.rg-fig { padding: 32px 28px; }
.rg-fig + .rg-fig { border-left: 1px solid var(--rg-line); }
.rg-fig-value { font-family: 'Helvetica Neue', Arial, sans-serif; color: var(--rg-ink-deep); display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.rg-fig-value .rg-count { font-size: 64px; font-weight: 200; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rg-fig-prefix { font-size: 22px; font-weight: 300; color: var(--text-sub); }
.rg-fig-unit { font-family: var(--font-sans); font-size: 18px; font-weight: 500; color: var(--rg-gold-dk); }
.rg-fig-label { margin-top: 14px; font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* Kaga steps diagram */
.rg-steps-sec { padding: 72px 0 0; }
.rg-steps { background: var(--white); border: 1px solid var(--rg-line); border-radius: 24px; padding: 40px; display: grid; justify-items: center; }
.rg-step { border-radius: 16px; padding: 22px 28px; text-align: center; }
.rg-step--first { background: var(--rg-ink-deep); color: var(--white); min-width: 460px; }
.rg-step--opt { background: var(--rg-paper); border: 1px solid var(--rg-line); }
.rg-step-tag { font-size: 11px; letter-spacing: 0.16em; font-weight: 700; color: var(--rg-gold-dk); }
.rg-step--first .rg-step-tag { color: var(--rg-gold); }
.rg-step-title { font-family: var(--font-serif); font-size: 22px; margin-top: 6px; }
.rg-step-sub { font-size: 13px; margin-top: 6px; opacity: 0.8; }
.rg-step-bridge { position: relative; width: 400px; height: 120px; }
.rg-step-bridge svg { width: 100%; height: 100%; overflow: visible; }
.rg-step-bridge path { fill: none; stroke: var(--rg-gold-dk); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--rg-ease) 0.4s; }
.rg-steps.is-in .rg-step-bridge path { stroke-dashoffset: 0; }
.rg-step-bridge p { position: absolute; left: 50%; top: 50px; transform: translate(-50%, -50%); background: var(--white); padding: 4px 14px; font-size: 13px; font-weight: 700; color: var(--rg-ink-deep); white-space: nowrap; }
.rg-step-options { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: 100%; max-width: 720px; }
.rg-step-options .rg-step { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--rg-ease) 1.4s, transform 0.8s var(--rg-ease) 1.4s; }
.rg-steps.is-in .rg-step-options .rg-step { opacity: 1; transform: none; }

/* Points (3 columns with drawing gold rule) */
.rg-points-sec { padding: 80px 0 24px; }
.rg-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.rg-points article { position: relative; padding-top: 26px; }
.rg-points article::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--rg-gold); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--rg-ease); transition-delay: calc(0.2s + var(--i) * 0.15s); }
.rg-points.is-in article::before { transform: scaleX(1); }
.rg-points h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; color: var(--rg-ink-deep); }
.rg-points p { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--text-sub); }

/* Plan */
.rg-plan { padding: 96px 0 112px; }
.rg-stage { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 18px; background: var(--rg-mist); border-radius: 16px; padding: 22px 28px; }
.rg-stage-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--rg-produce); box-shadow: 0 0 0 0 oklch(58% 0.12 145 / 0.6); animation: rg-pulse 2s infinite; }
@keyframes rg-pulse { 0% { box-shadow: 0 0 0 0 oklch(58% 0.12 145 / 0.55); } 70% { box-shadow: 0 0 0 14px oklch(58% 0.12 145 / 0); } 100% { box-shadow: 0 0 0 0 oklch(58% 0.12 145 / 0); } }
.rg-stage-label { font-size: 12px; letter-spacing: 0.1em; color: var(--text-sub); }
.rg-stage-text { font-size: 18px; font-weight: 700; color: var(--rg-ink-deep); line-height: 1.6; }
.rg-items { list-style: none; margin-top: 12px; }
.rg-items li { display: grid; grid-template-columns: 56px 220px 1fr; gap: 20px; padding: 26px 4px; border-bottom: 1px solid var(--rg-line); align-items: baseline; opacity: 0; transform: translateX(-16px); transition: opacity 0.7s var(--rg-ease), transform 0.7s var(--rg-ease); transition-delay: calc(var(--i) * 0.09s); }
.rg-items.is-in li { opacity: 1; transform: none; }
.rg-items.rg-in { opacity: 1; transform: none; }
.rg-item-no { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 14px; color: var(--rg-gold-dk); }
.rg-items h3 { font-size: 16px; font-weight: 700; color: var(--rg-ink-deep); }
.rg-items p { font-size: 15px; line-height: 1.9; color: var(--text); }
.rg-progress { margin-top: 40px; background: var(--rg-ink-deep); color: var(--white); border-radius: 20px; padding: 32px 36px; position: relative; overflow: hidden; }
.rg-progress::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--rg-gold); }
.rg-progress-head { font-size: 15px; font-weight: 700; color: var(--white); display: flex; gap: 14px; align-items: baseline; }
.rg-progress-head time { font-size: 12px; font-weight: 400; color: var(--rg-gold); letter-spacing: 0.06em; }
.rg-progress p + p { margin-top: 14px; line-height: 2; color: oklch(100% 0 0 / 0.86); }
.rg-mgo-copy > p:not(.rg-eyebrow), .rg-hero-lead { color: oklch(100% 0 0 / 0.82); }
.rg-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.rg-plan-box { background: var(--white); border: 1px solid var(--rg-line); border-radius: 20px; padding: 28px 30px; }
.rg-plan-box h3 { font-size: 16px; font-weight: 700; color: var(--rg-ink-deep); margin-bottom: 14px; }
.rg-plan-box p { font-size: 14px; line-height: 1.9; color: var(--text-sub); }
.rg-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.rg-checks li { font-size: 13px; padding: 7px 14px 7px 32px; border-radius: 999px; background: var(--rg-paper); border: 1px solid var(--rg-line); position: relative; transform: scale(0.85); opacity: 0; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s; transition-delay: calc(0.3s + var(--i) * 0.07s); }
.rg-checks li::before { content: ''; position: absolute; left: 13px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; border: 1.5px solid var(--rg-gold-dk); }
.rg-plan-box.is-in .rg-checks li { transform: none; opacity: 1; }

/* Extra (Makino wan station) */
.rg-extra { background: var(--rg-mist); padding: 96px 0; }
.rg-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.rg-h2--lines .rg-line > span { transform: translateY(105%); }
.rg-extra-lead { margin-top: 18px; line-height: 2; color: var(--text-sub); }
.rg-figure--small .rg-figure-frame { border-radius: 20px; }

/* Related + pager */
.rg-site-foot { padding: 80px 0 96px; background: var(--white); }
.rg-site-foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 56px; }
.rg-related { list-style: none; border-top: 1px solid var(--rg-line); }
.rg-related a { display: flex; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--rg-line); color: var(--rg-ink-deep); font-weight: 700; font-size: 15px; transition: padding 0.3s var(--rg-ease), color 0.3s; }
.rg-related a:hover { padding-left: 12px; color: var(--rg-gold-dk); }
.rg-source-mini { font-size: 12px; color: var(--text-muted); line-height: 1.9; padding-top: 34px; }
.rg-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.rg-pager-link { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: var(--rg-paper); border-radius: 18px; overflow: hidden; color: var(--rg-ink-deep); border: 1px solid var(--rg-line); transition: transform 0.4s var(--rg-ease), box-shadow 0.4s; }
.rg-pager-link:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px oklch(24% 0.045 175 / 0.45); }
.rg-pager-link img { width: 120px; height: 100%; min-height: 96px; object-fit: cover; }
.rg-pager-link--next { grid-template-columns: 1fr 120px; text-align: right; }
.rg-pager-link--next img { order: 2; }
.rg-pager-text { display: grid; gap: 2px; padding: 12px 4px; }
.rg-pager-link--prev .rg-pager-text { padding-right: 16px; }
.rg-pager-link--next .rg-pager-text { padding-left: 16px; }
.rg-pager-text small { font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; }
.rg-pager-text b { font-size: 15px; }
.rg-pager-text span { font-size: 12px; color: var(--text-sub); }
.rg-pager-all { display: grid; place-items: center; gap: 8px; padding: 16px 22px; border-radius: 18px; background: var(--rg-ink-deep); color: var(--white); font-size: 13px; font-weight: 700; text-align: center; transition: background 0.3s; }
.rg-pager-all:hover { background: var(--rg-ink-soft); }
.rg-pager-dots { width: 30px; height: 30px; background: radial-gradient(circle, var(--rg-gold) 2px, transparent 2.5px) 0 0 / 10px 10px; }

/* ── Top page block ───────────────────────────────────────── */
.rg-home { overflow: hidden; }
.rg-home-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.rg-home .section-title .rg-count { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 300; color: var(--rg-gold-dk); font-size: 1.4em; margin: 0 4px; }
.rg-home-side { max-width: 420px; display: grid; gap: 18px; justify-items: start; }
.rg-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rg-mq-track { display: flex; gap: 20px; width: max-content; animation: rg-marquee 70s linear infinite; padding: 8px 0 18px; }
.rg-marquee:hover .rg-mq-track, .rg-marquee:focus-within .rg-mq-track { animation-play-state: paused; }
@keyframes rg-marquee { to { transform: translateX(-50%); } }
.rg-mq-item { flex: none; width: 300px; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--border-lt); color: var(--rg-ink-deep); transition: transform 0.4s var(--rg-ease), box-shadow 0.4s; }
.rg-mq-item:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -24px oklch(24% 0.045 175 / 0.5); }
.rg-mq-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rg-mq-text { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px 18px 18px; align-items: baseline; }
.rg-mq-no { grid-row: span 2; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 200; font-size: 28px; color: var(--rg-gold-dk); line-height: 1; }
.rg-mq-place { font-size: 15px; font-weight: 700; }
.rg-mq-sub { font-size: 12px; color: var(--text-sub); }

/* ── Smartphone artboard (430px) ──────────────────────────── */
:where(html.is-smartphone) .rg-h2 { font-size: 27px; }
:where(html.is-smartphone) .rg-hero-title { font-size: 31px; }
:where(html.is-smartphone) .rg-hero { padding: calc(var(--header-h) + 48px) 0 72px; }
:where(html.is-smartphone) .rg-hero--hub { min-height: 0; }
:where(html.is-smartphone) .rg-hero-media::after { background: linear-gradient(180deg, oklch(24% 0.045 175 / 0.8), oklch(24% 0.045 175 / 0.95)); }
:where(html.is-smartphone) .rg-hub-count .rg-count { font-size: 112px; }
:where(html.is-smartphone) .rg-hub-count-unit { font-size: 28px; }
:where(html.is-smartphone) .rg-hub-stats dd { font-size: 30px; }
:where(html.is-smartphone) .rg-hub-stats > div { padding-right: 10px; }
:where(html.is-smartphone) .rg-hub-stats > div + div { padding-left: 12px; }
:where(html.is-smartphone) .rg-map-sec { padding: 72px 0 56px; }
:where(html.is-smartphone) .rg-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
:where(html.is-smartphone) .rg-filter { padding: 10px 12px; }
:where(html.is-smartphone) .rg-filter em { font-size: 22px; }
:where(html.is-smartphone) .rg-index { padding: 64px 0 80px; }
:where(html.is-smartphone) .rg-map { overflow: hidden; }
:where(html.is-smartphone) .rg-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
:where(html.is-smartphone) .rg-card { border-radius: 14px; }
:where(html.is-smartphone) .rg-card-body { padding: 12px 12px 14px; gap: 6px; }
:where(html.is-smartphone) .rg-card-no { font-size: 22px; }
:where(html.is-smartphone) .rg-card-meta { flex-direction: column; gap: 4px; }
:where(html.is-smartphone) .rg-card-place { font-size: 13px; }
:where(html.is-smartphone) .rg-card-summary { font-size: 11px; line-height: 1.6; }
:where(html.is-smartphone) .rg-card-title, :where(html.is-smartphone) .rg-card-stage, :where(html.is-smartphone) .rg-card .rg-chips { display: none; }
:where(html.is-smartphone) .rg-mgo { padding: 72px 0; }
:where(html.is-smartphone) .rg-mgo-grid { grid-template-columns: 1fr; gap: 40px; }
:where(html.is-smartphone) .rg-mgo-list a { grid-template-columns: 120px 1fr 52px; gap: 10px; }
:where(html.is-smartphone) .rg-mgo-place { font-size: 13px; }
:where(html.is-smartphone) .rg-mgo-num { font-size: 22px; }
:where(html.is-smartphone) .rg-site-hero { padding: calc(var(--header-h) + 36px) 0 110px; }
:where(html.is-smartphone) .rg-site-hero-grid { grid-template-columns: 1fr; gap: 28px; }
:where(html.is-smartphone) .rg-site-hero .rg-hero-title { font-size: 29px; }
:where(html.is-smartphone) .rg-site-hero-map { justify-self: center; width: 240px; }
:where(html.is-smartphone) .rg-site-no { font-size: 120px; left: -70px; top: -10px; }
:where(html.is-smartphone) .rg-site-visual { margin-top: -80px; }
:where(html.is-smartphone) .rg-figure-frame { border-radius: 16px; }
:where(html.is-smartphone) .rg-figs { grid-template-columns: 1fr; }
:where(html.is-smartphone) .rg-fig + .rg-fig { border-left: 0; border-top: 1px solid var(--rg-line); }
:where(html.is-smartphone) .rg-fig-value .rg-count { font-size: 52px; }
:where(html.is-smartphone) .rg-steps { padding: 24px 16px; }
:where(html.is-smartphone) .rg-step--first { min-width: 0; width: 100%; }
:where(html.is-smartphone) .rg-step-bridge { width: 100%; }
:where(html.is-smartphone) .rg-step-options { gap: 12px; }
:where(html.is-smartphone) .rg-step { padding: 16px 12px; }
:where(html.is-smartphone) .rg-step-title { font-size: 17px; }
:where(html.is-smartphone) .rg-points { grid-template-columns: 1fr; gap: 28px; }
:where(html.is-smartphone) .rg-points-sec { padding: 56px 0 8px; }
:where(html.is-smartphone) .rg-plan { padding: 64px 0 80px; }
:where(html.is-smartphone) .rg-stage { grid-template-columns: auto 1fr; padding: 18px 20px; gap: 10px 14px; }
:where(html.is-smartphone) .rg-stage-text { grid-column: 1 / -1; font-size: 16px; }
:where(html.is-smartphone) .rg-items li { grid-template-columns: 36px 1fr; gap: 6px 10px; padding: 20px 0; }
:where(html.is-smartphone) .rg-items li p { grid-column: 2; font-size: 14px; }
:where(html.is-smartphone) .rg-progress { padding: 24px 22px; }
:where(html.is-smartphone) .rg-plan-grid, :where(html.is-smartphone) .rg-extra-grid, :where(html.is-smartphone) .rg-site-foot-grid { grid-template-columns: 1fr; gap: 24px; }
:where(html.is-smartphone) .rg-extra { padding: 64px 0; }
:where(html.is-smartphone) .rg-pager { grid-template-columns: 1fr; }
:where(html.is-smartphone) .rg-pager-all { order: 3; }
:where(html.is-smartphone) .rg-home-head { flex-direction: column; align-items: start; gap: 20px; }
:where(html.is-smartphone) .rg-mq-item { width: 240px; }


/* ── Color & texture (clean, fresh) ───────────────────────── */
:root {
  --rg-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --rg-sky:      oklch(97% 0.018 210);
  --rg-mint:     oklch(95% 0.035 170);
  --rg-c-produce:  oklch(68% 0.15 150);
  --rg-c-industry: oklch(76% 0.14 75);
  --rg-c-life:     oklch(68% 0.15 20);
}

/* Section: airy white with a light sky/mint wash */
.rg-map-sec { background: radial-gradient(60% 50% at 90% 0%, oklch(95% 0.03 210 / 0.9), transparent 70%), radial-gradient(60% 55% at 0% 100%, oklch(95% 0.04 165 / 0.8), transparent 70%), var(--white); }
.rg-map-sec .rg-sec-head { text-align: center; }
.rg-map-sec .rg-sec-lead { max-width: none; margin-left: auto; margin-right: auto; }
.rg-map-sec .rg-filters { justify-content: center; }
.rg-index { background: linear-gradient(180deg, var(--white), var(--rg-sky)); }

/* Map panel: clean light glass */
.rg-map { background: radial-gradient(70% 80% at 62% 40%, var(--white) 0%, oklch(98% 0.012 190) 45%, var(--rg-mint) 100%); border: 1px solid oklch(90% 0.025 185); box-shadow: 0 40px 80px -48px oklch(45% 0.06 200 / 0.35), inset 0 1px 0 var(--white); overflow: hidden; }
.rg-map::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: repeating-linear-gradient(90deg, oklch(70% 0.05 200 / 0.08) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, oklch(70% 0.05 200 / 0.08) 0 1px, transparent 1px 64px); -webkit-mask-image: radial-gradient(70% 80% at 60% 45%, #000, transparent 85%); mask-image: radial-gradient(70% 80% at 60% 45%, #000, transparent 85%); }
.rg-map-svg, .rg-map-label { z-index: 1; }
.rg-map-band { stroke: oklch(80% 0.07 175); }
.rg-leader { stroke: oklch(78% 0.025 200); }
.rg-leader.is-hot { stroke: var(--rg-ink-soft); stroke-width: 1.6; }
.rg-marker-dot { stroke: var(--white); stroke-width: 2.5; }
.rg-marker--produce .rg-marker-dot { fill: var(--rg-c-produce); }
.rg-marker--industry .rg-marker-dot { fill: var(--rg-c-industry); }
.rg-marker--life .rg-marker-dot { fill: var(--rg-c-life); }
.rg-marker--produce .rg-marker-ring { stroke: var(--rg-c-produce); }
.rg-marker--industry .rg-marker-ring { stroke: var(--rg-c-industry); }
.rg-marker--life .rg-marker-ring { stroke: var(--rg-c-life); }
.rg-marker.is-hot .rg-marker-dot { fill: var(--rg-ink-deep); }
.rg-map-label-text { max-width: 138px; white-space: normal; }
.rg-map-label-sub { font-size: 10.5px; line-height: 1.45; word-break: auto-phrase; text-wrap: balance; }
.rg-map-label-no { background: var(--white); box-shadow: 0 4px 10px -6px oklch(45% 0.06 200 / 0.5); }
.rg-map-label--produce .rg-map-label-no { border-color: var(--rg-c-produce); color: oklch(45% 0.12 150); }
.rg-map-label--industry .rg-map-label-no { border-color: var(--rg-c-industry); color: oklch(52% 0.11 70); }
.rg-map-label--life .rg-map-label-no { border-color: var(--rg-c-life); color: oklch(50% 0.13 20); }
.rg-map-label:hover .rg-map-label-name { color: var(--rg-ink-soft); }
.rg-hub .rg-map .is-dim { opacity: 0.15 !important; }

/* Filter chips carry the domain colour */
.rg-filter b { display: inline-flex; align-items: center; gap: 8px; }
.rg-filter b::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--rg-gold); }
.rg-filter[data-filter="produce"] b::before { background: var(--rg-c-produce); }
.rg-filter[data-filter="industry"] b::before { background: var(--rg-c-industry); }
.rg-filter[data-filter="life"] b::before { background: var(--rg-c-life); }
.rg-filter { box-shadow: 0 8px 20px -16px oklch(45% 0.06 200 / 0.45); }

/* Cards: thin domain accent */
.rg-card { position: relative; background: var(--white); }
.rg-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: var(--rg-c-industry); }
.rg-card[data-domains^="produce"]::before { background: var(--rg-c-produce); }
.rg-card[data-domains^="life"]::before { background: var(--rg-c-life); }

/* Subtle grain only on the dark bands */
.rg-hero::after, .rg-site-hero::after, .rg-mgo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--rg-grain); opacity: 0.16; mix-blend-mode: soft-light; z-index: 1; }
.rg-site-hero-grid, .rg-mgo-grid { position: relative; z-index: 2; }
.rg-scroll-cue { z-index: 3; }
:where(html.is-smartphone) .rg-map-sec .rg-sec-head { text-align: left; }
:where(html.is-smartphone) .rg-map-sec .rg-filters { justify-content: stretch; }


/* ── Hub hero: tilted wall of the 15 site photos ──────────── */
.rg-hero--hub { background: radial-gradient(60% 80% at 80% 30%, oklch(34% 0.06 172), transparent 70%), linear-gradient(120deg, oklch(20% 0.04 178) 0%, oklch(25% 0.05 175) 50%, oklch(22% 0.045 190) 100%); }
.rg-hero-media--wall::after { background: linear-gradient(90deg, oklch(21% 0.042 178 / 0.98) 0%, oklch(21% 0.042 178 / 0.9) 36%, oklch(21% 0.042 178 / 0.25) 62%, oklch(21% 0.042 178 / 0.05) 80%), linear-gradient(180deg, oklch(21% 0.042 178 / 0.6) 0%, transparent 18%, transparent 82%, oklch(21% 0.042 178 / 0.7) 100%); z-index: 1; pointer-events: none; }
.rg-wall { position: absolute; top: -26%; right: -12%; width: 62%; height: 160%; perspective: 1800px; z-index: 0; }
.rg-wall-plane { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; height: 100%; transform: rotateX(18deg) rotateY(-20deg) rotateZ(9deg); transform-origin: 40% 50%; transform-style: preserve-3d; }
.rg-wall-col { overflow: visible; height: 100%; }
.rg-wall-track { display: flex; flex-direction: column; gap: 22px; animation: rg-wall-up 64s linear infinite; will-change: transform; }
.rg-wall-col--1 .rg-wall-track { animation-name: rg-wall-down; animation-duration: 78s; margin-top: -120px; }
.rg-wall-col--2 .rg-wall-track { animation-duration: 70s; margin-top: -60px; }
@keyframes rg-wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 11px)); } }
@keyframes rg-wall-down { from { transform: translateY(calc(-50% - 11px)); } to { transform: translateY(0); } }
.rg-wall-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: oklch(30% 0.05 175); box-shadow: 0 30px 60px -30px oklch(10% 0.03 180 / 0.8); opacity: 0; transform: translateY(60px) scale(0.92); transition: opacity 1.1s var(--rg-ease), transform 1.1s var(--rg-ease), box-shadow 0.5s; transition-delay: calc(0.2s + var(--i) * 0.07s); }
.is-rg-ready .rg-wall-tile { opacity: 1; transform: none; }
.rg-wall-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.82); transition: filter 0.6s, transform 1.2s var(--rg-ease); }
.rg-wall-tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.14); transition: box-shadow 0.5s; }
.rg-wall-cap { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; align-items: flex-end; gap: 14px; color: var(--white); opacity: 0; transition: opacity 0.4s; text-shadow: 0 2px 12px oklch(10% 0.03 180 / 0.7); }
.rg-wall-cap::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 1px; background: linear-gradient(90deg, var(--rg-gold), oklch(74% 0.09 75 / 0)); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--rg-ease); }
.rg-wall-no { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 44px; font-weight: 200; letter-spacing: -0.03em; color: var(--rg-gold); line-height: 0.82; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(10px); transition: opacity 0.6s, transform 0.7s var(--rg-ease); transition-delay: 0.15s; }
.rg-wall-meta { display: grid; gap: 4px; padding-bottom: 2px; }
.rg-wall-en { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; color: var(--rg-gold); line-height: 1; opacity: 0; transform: translateY(8px); transition: opacity 0.6s, transform 0.7s var(--rg-ease); transition-delay: 0.25s; }
.rg-wall-place { font-family: var(--font-serif); font-size: 17px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity 0.6s, transform 0.7s var(--rg-ease); transition-delay: 0.35s; }
.rg-wall-tile:hover .rg-wall-cap, .rg-wall-tile.is-lit .rg-wall-cap { opacity: 1; }
.rg-wall-tile:hover .rg-wall-cap::before, .rg-wall-tile.is-lit .rg-wall-cap::before { transform: scaleX(1); }
.rg-wall-tile:hover .rg-wall-cap > *, .rg-wall-tile.is-lit .rg-wall-cap > *, .rg-wall-tile:hover .rg-wall-meta > *, .rg-wall-tile.is-lit .rg-wall-meta > * { opacity: 1; transform: none; }
.rg-wall-tile::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: 0; background: linear-gradient(180deg, transparent, oklch(18% 0.04 178 / 0.88)); opacity: 0; transition: opacity 0.5s; }
.rg-wall-cap { z-index: 1; }
.rg-wall-tile:hover img, .rg-wall-tile.is-lit img { filter: none; transform: scale(1.06); }
.rg-wall-tile:hover::before, .rg-wall-tile.is-lit::before { opacity: 1; }
.rg-wall-tile.is-lit::after, .rg-wall-tile:hover::after { box-shadow: inset 0 0 0 2px var(--rg-gold), 0 0 40px oklch(74% 0.09 75 / 0.35); }
.rg-wall-tile.is-lit { box-shadow: 0 30px 70px -20px oklch(74% 0.09 75 / 0.45); }
.rg-hero--hub .rg-hero-inner { pointer-events: none; }
.rg-hero--hub .rg-hero-inner a, .rg-hero--hub .rg-hero-inner button { pointer-events: auto; }
.rg-hero-media--wall { pointer-events: auto; }
:where(html.is-smartphone) .rg-wall { top: auto; bottom: -18%; right: -40%; width: 150%; height: 70%; opacity: 0.55; }
:where(html.is-smartphone) .rg-hero-media--wall::after { background: linear-gradient(180deg, oklch(21% 0.042 178 / 0.96) 0%, oklch(21% 0.042 178 / 0.85) 55%, oklch(21% 0.042 178 / 0.35) 100%); }
:where(html.is-smartphone) .rg-wall-plane { gap: 12px; }
:where(html.is-smartphone) .rg-wall-track { gap: 12px; }
@media (prefers-reduced-motion: reduce) {
  .rg-wall-track { animation: none !important; }
  .rg-wall-tile { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ── Hub hero: clean light theme ─────────────────────────── */
.rg-hero--hub { color: var(--rg-ink-deep); background: radial-gradient(55% 70% at 85% 20%, oklch(94% 0.04 210 / 0.9), transparent 70%), radial-gradient(50% 60% at 10% 100%, oklch(94% 0.045 165 / 0.9), transparent 70%), linear-gradient(180deg, var(--white) 0%, oklch(97.5% 0.015 200) 100%); }
.rg-hero--hub::after { display: none; }
.rg-hero--hub .rg-hero-media--wall::after { background: linear-gradient(90deg, oklch(99% 0.006 200) 0%, oklch(99% 0.006 200 / 0.95) 38%, oklch(99% 0.006 200 / 0.25) 48%, oklch(99% 0.006 200 / 0) 54%), linear-gradient(180deg, oklch(99% 0.006 200 / 0.6) 0%, transparent 10%, transparent 90%, oklch(98% 0.01 190 / 0.7) 100%); }
.rg-hero--hub .rg-eyebrow--light { color: oklch(52% 0.09 185); }
.rg-hero--hub .rg-hub-count .rg-count { background: linear-gradient(135deg, oklch(62% 0.11 190), oklch(58% 0.12 160)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rg-hero--hub .rg-hub-count-unit { color: var(--rg-ink-deep); }
.rg-hero--hub .rg-hero-title { color: var(--rg-ink-deep); }
.rg-hero--hub .rg-hero-lead { color: var(--text-sub); max-width: 560px; }
.rg-hero--hub .rg-hub-stats { border-top-color: oklch(85% 0.03 190); }
.rg-hero--hub .rg-hub-stats > div + div { border-left-color: oklch(85% 0.03 190); }
.rg-hero--hub .rg-hub-stats dt { color: var(--text-muted); }
.rg-hero--hub .rg-hub-stats dd { color: var(--rg-ink-deep); }
.rg-hero--hub .rg-hub-stats dd small { color: var(--text-sub); }
.rg-hero--hub .rg-hero-asof { color: var(--text-muted); }
.rg-hero--hub .rg-wall-tile { background: oklch(93% 0.02 190); box-shadow: 0 26px 50px -30px oklch(40% 0.06 200 / 0.55); }
.rg-hero--hub .rg-wall-tile img { filter: saturate(0.95) brightness(0.98); }
.rg-hero--hub .rg-wall-tile::after { box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.5); }
.rg-hero--hub .rg-wall-tile.is-lit::after, .rg-hero--hub .rg-wall-tile:hover::after { box-shadow: inset 0 0 0 2px var(--white), 0 0 0 3px oklch(62% 0.11 190 / 0.55); }
.rg-hero--hub .rg-wall-tile.is-lit { box-shadow: 0 30px 70px -24px oklch(55% 0.1 190 / 0.55); }
.rg-hero--hub .rg-wall-no, .rg-hero--hub .rg-wall-en { color: oklch(86% 0.08 180); }
.rg-hero--hub .rg-wall-cap::before { background: linear-gradient(90deg, oklch(86% 0.08 180), oklch(86% 0.08 180 / 0)); }
.rg-hero--hub .rg-wall-tile::before { height: 62%; background: linear-gradient(180deg, transparent 0%, oklch(22% 0.05 190 / 0.55) 45%, oklch(18% 0.05 190 / 0.9) 100%); }
.rg-wall-cap { text-shadow: 0 1px 2px oklch(10% 0.03 190 / 0.9), 0 2px 14px oklch(10% 0.03 190 / 0.8); }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-media--wall::after { background: linear-gradient(180deg, oklch(99% 0.006 200 / 0.97) 0%, oklch(99% 0.006 200 / 0.9) 55%, oklch(99% 0.006 200 / 0.4) 100%); }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-lead br { display: none; }


/* ── Smartphone map with leader lines ────────────────────── */
.rg-map--sp { display: none; aspect-ratio: 640 / 750; }
:where(html.is-smartphone) .rg-map--desk { display: none; }
:where(html.is-smartphone) .rg-map--sp { display: block; border-radius: 20px; }
.rg-map--sp .rg-map-band { stroke-width: 5.5; }
.rg-map--sp .rg-leader { stroke-width: 1.4; }
.rg-map-label--sp { gap: 6px; min-height: 30px; padding: 2px 8px 2px 2px; border-radius: 999px; background: oklch(100% 0 0 / 0.86); box-shadow: 0 6px 14px -10px oklch(40% 0.06 200 / 0.6); -webkit-tap-highlight-color: transparent; }
.rg-map-label--sp.rg-map-label--left { padding: 2px 2px 2px 8px; }
.rg-map-label--sp .rg-map-label-no { width: 26px; height: 26px; font-size: 11px; }
.rg-map-label--sp .rg-map-label-name { font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.25; }
.rg-map-label--sp { border-radius: 16px; }
html[lang="en"] .rg-map-label--sp .rg-map-label-name { white-space: normal; max-width: 64px; }
html[lang="en"] .rg-map-label--sp.rg-map-label--left .rg-map-label-name { max-width: 82px; }
html[lang="en"] .rg-map-label--sp[data-site="fukuoka"] .rg-map-label-name, html[lang="en"] .rg-map-label--sp[data-site="hitoyoshi"] .rg-map-label-name { max-width: 180px; }
.rg-map-label--sp:active { background: var(--white); transform: translateY(-50%) scale(0.97); }


/* ── Hub hero refinements: stats, always-on captions, smartphone wall ── */
.rg-hero--hub .rg-hub-stats { max-width: 400px; gap: 56px; padding-top: 0; }
.rg-hero--hub .rg-hub-stats > div { flex: 0 0 auto; padding: 18px 0 0; }
.rg-hero--hub .rg-hub-stats > div + div { border-left: 0; padding-left: 0; }
.rg-hero--hub .rg-hub-stats dd { margin-top: 4px; }
.rg-hero--hub .rg-hero-asof { margin-top: 18px; }
.rg-wall-cap, .rg-wall-cap > *, .rg-wall-meta > * { opacity: 1 !important; transform: none !important; }
.rg-wall-cap::before { transform: scaleX(0.45); }
.rg-wall-tile.is-lit .rg-wall-cap::before, .rg-wall-tile:hover .rg-wall-cap::before { transform: scaleX(1); }
.rg-wall-tile::before { opacity: 1; }
.rg-wall-no { font-size: 34px; }
.rg-wall-place { font-size: 15px; }
.rg-wall-tile.is-lit .rg-wall-no { color: var(--white); }
:where(html.is-smartphone) .rg-wall-plane, :where(html.is-smartphone) .rg-wall-track { gap: 12px; }
:where(html.is-smartphone) .rg-wall-tile { border-radius: 12px; }
:where(html.is-smartphone) .rg-wall-cap { left: 10px; right: 10px; bottom: 8px; gap: 8px; }
:where(html.is-smartphone) .rg-wall-cap::before { top: -7px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hub-stats { gap: 40px; }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rg-line > span, .rg-in, .rg-card, .rg-items li, .rg-checks li, .rg-step-options .rg-step,
  .rg-map-band, .rg-map-label, .rg-marker-dot, .rg-marker-no { transition: none !important; opacity: 1 !important; transform: none !important; }
  .rg-leader, .rg-step-bridge path { stroke-dashoffset: 0 !important; transition: none !important; }
  .rg-figure-frame { clip-path: none !important; transition: none !important; }
  .rg-figure-frame img, .rg-hero-slide { transition: none !important; transform: none !important; }
  .rg-points article::before { transform: none !important; transition: none !important; }
  .rg-mgo-bar span { width: var(--w) !important; transition: none !important; }
  .rg-mq-track, .rg-marker-ring, .rg-stage-pulse, .rg-scroll-cue span { animation: none !important; }
}
.rg-step--first .rg-step-title, .rg-step--first .rg-step-sub { color: var(--white); }

/* ── Smartphone hub hero: text left, small wall on the right (like desktop) ── */
:where(html.is-smartphone) .rg-hero--hub { padding: calc(var(--header-h) + 36px) 0 48px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-inner > * { max-width: 56%; }
:where(html.is-smartphone) .rg-hero--hub .rg-eyebrow { font-size: 9px; letter-spacing: 0.12em; max-width: 70%; }
:where(html.is-smartphone) .rg-hero--hub .rg-hub-count { margin: 2px 0 14px; gap: 8px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hub-count .rg-count { font-size: 84px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hub-count-unit { font-size: 22px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-title { font-size: 20px; line-height: 1.55; max-width: 70%; }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-lead { font-size: 13px; line-height: 1.85; margin-top: 16px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hub-stats { margin-top: 26px; gap: 28px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hub-stats dd { font-size: 26px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hub-stats dt { font-size: 11px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-asof { font-size: 10px; }
:where(html.is-smartphone) .rg-wall { top: -10%; bottom: auto; right: -52%; width: 96%; height: 122%; opacity: 1; -webkit-mask-image: none; mask-image: none; }
:where(html.is-smartphone) .rg-wall-plane { transform: rotateX(14deg) rotateY(-16deg) rotateZ(4deg); }
:where(html.is-smartphone) .rg-wall-plane { gap: 10px; }
:where(html.is-smartphone) .rg-wall-track { gap: 10px; }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-media--wall::after { background: linear-gradient(90deg, oklch(99% 0.006 200) 0%, oklch(99% 0.006 200 / 0.94) 52%, oklch(99% 0.006 200 / 0.2) 64%, oklch(99% 0.006 200 / 0) 70%), linear-gradient(180deg, oklch(99% 0.006 200 / 0.6) 0%, transparent 8%, transparent 92%, oklch(98% 0.01 190 / 0.7) 100%); }
:where(html.is-smartphone) .rg-wall-tile { border-radius: 10px; }
:where(html.is-smartphone) .rg-wall-cap { left: 8px; right: 8px; bottom: 6px; gap: 6px; }
:where(html.is-smartphone) .rg-wall-cap::before { display: none; }
:where(html.is-smartphone) .rg-wall-no { font-size: 18px; }
:where(html.is-smartphone) .rg-wall-en { display: none; }
:where(html.is-smartphone) .rg-wall-place { font-size: 10px; letter-spacing: 0.02em; line-height: 1.3; }


/* ── Smartphone: one column of all 15 photos beside the text ── */
.rg-br-sp { display: none; }
.rg-wall-col--solo { display: none; }
:where(html.is-smartphone) .rg-br-sp { display: inline; }
:where(html.is-smartphone) .rg-wall-col--0, :where(html.is-smartphone) .rg-wall-col--1, :where(html.is-smartphone) .rg-wall-col--2 { display: none; }
:where(html.is-smartphone) .rg-wall-col--solo { display: block; }
:where(html.is-smartphone) .rg-wall { top: 0; bottom: auto; right: 16px; width: 34%; height: 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); }
:where(html.is-smartphone) .rg-wall-plane { grid-template-columns: 1fr; transform: none; }
:where(html.is-smartphone) .rg-wall-col--solo .rg-wall-track { animation: rg-wall-up 90s linear infinite; }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-media--wall::after { background: linear-gradient(180deg, oklch(99% 0.006 200 / 0.5) 0%, transparent 10%, transparent 92%, oklch(98% 0.01 190 / 0.6) 100%); }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-inner > * { max-width: 58%; }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-title, :where(html.is-smartphone) .rg-hero--hub .rg-eyebrow { max-width: 58%; }
:where(html.is-smartphone) .rg-hero--hub .rg-hero-title { font-size: 18px; }

/* Caption shade must sit above the (transformed) photo */
.rg-wall-tile::before { z-index: 1; }
.rg-wall-tile .rg-wall-cap { z-index: 2; }
/* Trim the built-in space of a line-initial full-width bracket so wrapped lines align */
.rg-hero-asof { text-spacing-trim: trim-start; }
/* Top page news: keep category labels such as "プロジェクト" on one line */
.hero-news-row { grid-template-columns: 6.2em 7.4em 1fr 1.2em; }
.hero-news-cat { white-space: nowrap; }
:where(html.is-smartphone) .hero-news-row { grid-template-columns: auto 1fr 1.2em; }
