/* ============================================================
   ICQ G.K. Corporate Site — Design System
   Concept: Clinical warmth × Tokyo precision
   ============================================================ */

:root {
  --ink: #181621;
  --ink-soft: #2A2735;
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --purple: #7A6E96;
  --purple-deep: #4C4467;
  --purple-mist: #EFECF5;
  --line: #E3E0DA;
  --gold: #A98F5F;
  --text: #33303C;
  --text-dim: #6E6A78;

  --font-display-ja: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "Yu Mincho Medium", serif;
  --font-display-en: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-label: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", sans-serif;

  --container: 1160px;
  --pad-x: clamp(20px, 5vw, 48px);
  --sec-y: clamp(80px, 12vw, 150px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 700; color: var(--ink); }

.display {
  font-family: var(--font-display-ja);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

:lang(en) .display,
.display.en {
  font-family: var(--font-display-en);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.h2 {
  font-family: var(--font-display-ja);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

:lang(en) .h2, .h2.en {
  font-family: var(--font-display-en);
  font-weight: 400;
  line-height: 1.2;
}

.h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 2.1;
  color: var(--text);
}

.dim { color: var(--text-dim); }

.sec-num {
  font-family: var(--font-display-en);
  font-size: 0.95rem;
  color: var(--purple);
  letter-spacing: 0.1em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Wordmark: ICQ + "I SEEK YOU" band (recreates the logo in type) */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--ink);
}

.wordmark .mark {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
}

.wordmark .seek {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.42rem;
  letter-spacing: 0.52em;
  margin-right: -0.52em;
  color: var(--text-dim);
  margin-top: 3px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang-switch {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s;
}

.lang-switch:hover { background: var(--purple-mist); border-color: var(--purple); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span { top: 19px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--pad-x) 32px;
    gap: 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.35s;
  }
  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(78px + clamp(70px, 12vw, 140px)) 0 var(--sec-y);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(122, 110, 150, 0.10), transparent 70%),
    linear-gradient(180deg, #F6F4F0 0%, var(--paper) 65%);
}

.hero .display { max-width: 22ch; }

.hero .lead {
  max-width: 620px;
  margin-top: 34px;
}

.hero-arcs {
  position: absolute;
  right: -12vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(380px, 48vw, 760px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn::after { content: "→"; font-family: var(--font-label); transition: transform 0.3s var(--ease-out); }
.btn:hover::after { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--purple-deep); }

.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.on-dark .btn-primary { background: var(--white); color: var(--ink); }
.on-dark .btn-primary:hover { background: var(--purple-mist); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--ink); }

.text-link {
  font-weight: 600;
  color: var(--purple-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.25s;
}
.text-link:hover { opacity: 0.6; }

/* ---------- Sections ---------- */
.section { padding: var(--sec-y) 0; }
.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head .h2 { flex: 1; }

.dark-band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  padding: var(--sec-y) 0;
  position: relative;
  overflow: hidden;
}

.dark-band h2, .dark-band h3, .dark-band .h2 { color: var(--white); }
.dark-band .eyebrow { color: var(--gold); }
.dark-band .lead { color: rgba(255, 255, 255, 0.82); }

.mist-band { background: var(--purple-mist); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(24, 22, 33, 0.22);
}

.card .card-num {
  font-family: var(--font-display-en);
  font-size: 1rem;
  color: var(--gold);
}

.card .h3 { color: var(--ink); }
.card p { font-size: 0.95rem; color: var(--text-dim); line-height: 2; }
.card .card-more { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--purple-deep); }

/* ---------- Quote block ---------- */
.quote {
  border-left: 2px solid var(--gold);
  padding: 10px 0 10px clamp(24px, 4vw, 44px);
  font-family: var(--font-display-ja);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.9;
  color: var(--ink);
  margin: clamp(36px, 6vw, 60px) 0 0;
}

:lang(en) .quote { font-family: var(--font-display-en); line-height: 1.5; }

.quote .quote-note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.05em;
}

/* ---------- Product strip ---------- */
.product-list { border-top: 1px solid var(--line); }

.product-row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.product-row:hover { background: rgba(255, 255, 255, 0.7); }

.product-row .p-name {
  font-family: var(--font-display-en);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--ink);
}

.product-row .p-cat { font-size: 0.92rem; color: var(--text-dim); }
.product-row .p-arrow { font-family: var(--font-label); color: var(--purple); }

@media (max-width: 700px) {
  .product-row { grid-template-columns: 1fr auto; }
  .product-row .p-cat { grid-column: 1 / -1; }
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--purple), var(--line));
}

.timeline li {
  position: relative;
  padding-bottom: clamp(26px, 4vw, 40px);
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -31px; top: 10px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--purple);
}

.timeline .t-date {
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--purple-deep);
  display: block;
  margin-bottom: 4px;
}

.timeline .t-body { color: var(--text); }

/* ---------- Data table (会社概要) ---------- */
.data-table { width: 100%; border-collapse: collapse; }

.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  padding: clamp(16px, 2.4vw, 22px) 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  line-height: 1.9;
}

.data-table th {
  width: 200px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .data-table th, .data-table td { display: block; width: 100%; padding: 6px 0; }
  .data-table th { border-bottom: none; padding-top: 20px; font-size: 0.82rem; color: var(--purple-deep); }
  .data-table td { padding-bottom: 20px; }
}

/* ---------- News list ---------- */
.news-list { border-top: 1px solid var(--line); }

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(20px, 2.8vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}

.news-item .n-date {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.news-item .n-body { font-size: 0.98rem; color: var(--text); }

@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Milestone strip (top page) ---------- */
.milestone-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}

.milestone-strip .ms {
  border-right: 1px solid var(--line);
  padding: 10px clamp(18px, 2.4vw, 30px);
}

.milestone-strip .ms-year {
  font-family: var(--font-display-en);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--purple-deep);
  display: block;
  margin-bottom: 8px;
}

.milestone-strip .ms p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.9; }

@media (max-width: 860px) {
  .milestone-strip { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .milestone-strip .ms { padding: 20px; border-bottom: 1px solid var(--line); }
}

/* ---------- Point list（金の罫を頭に置く箇条書き） ---------- */
.point-list {
  list-style: none;
  margin-top: clamp(16px, 2vw, 22px);
}

.point-list li {
  position: relative;
  padding-left: 24px;
  margin-top: 13px;
  line-height: 1.9;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Hero: light variant（明るいイメージを敷く場合） ---------- */
.hero-cine.is-light {
  background: #EFF1F5;
  color: var(--ink);
}

.hero-cine.is-light::after {
  background:
    linear-gradient(100deg, rgba(252, 251, 249, 0.94) 3%, rgba(252, 251, 249, 0.78) 32%, rgba(252, 251, 249, 0.16) 72%, rgba(252, 251, 249, 0) 100%),
    linear-gradient(0deg, rgba(252, 251, 249, 0.5) 0%, rgba(252, 251, 249, 0) 24%);
}

.hero-cine.is-light .hero-title { color: var(--ink); }
.hero-cine.is-light .eyebrow { color: var(--purple-deep); }
.hero-cine.is-light .lead { color: var(--text-dim); }

/* ---------- Trust band (top page — 数字で見せる実績帯) ---------- */
.trust-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #15121E 0%, #241F36 44%, #443C60 100%);
  color: #fff;
  padding: clamp(60px, 7.5vw, 104px) 0;
}

/* ヒーローのイメージ画像と呼応する同心円 */
.trust-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 50%, rgba(169, 143, 95, 0.18), transparent 46%),
    repeating-radial-gradient(circle at 86% 50%, transparent 0 88px, rgba(255, 255, 255, 0.05) 88px 89px);
}

.trust-band .container { position: relative; z-index: 1; }

.trust-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(34px, 4.4vw, 56px);
}

.trust-head .eyebrow { color: var(--gold); }

.trust-head .th-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(169, 143, 95, 0.5), rgba(255, 255, 255, 0.06));
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3.2vw, 52px);
}

.tb-rule {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  margin-bottom: clamp(18px, 2.2vw, 28px);
  transition: width 0.7s var(--ease-out);
}

.tb:hover .tb-rule { width: 72px; }

.tb-num {
  display: block;
  font-family: var(--font-display-en);
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.005em;
  background: linear-gradient(175deg, #FFFFFF 28%, #C3B4E4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tb-num em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.3em;
  letter-spacing: 0.08em;
  margin-left: 0.3em;
  -webkit-text-fill-color: var(--gold);
  color: var(--gold);
}

.tb-label {
  margin-top: clamp(16px, 1.9vw, 22px);
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.74);
}

/* 主な導入先 */
.trust-clients {
  margin-top: clamp(44px, 5vw, 70px);
  padding-top: clamp(30px, 3.4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tc-label {
  font-family: var(--font-display-en);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

/* 和文・中文では英字用の広い字間が間延びするため詰める */
:lang(ja) .tc-label,
:lang(zh-Hans) .tc-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.tc-list {
  list-style: none;
  display: grid;
  /* 主な導入先は5件。件数に列数を合わせて1行に収める
     （2026-08-15 亀田総合病院を掲載保留にしたため 6→5） */
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.8vw, 28px);
}

.tc-list li {
  font-family: var(--font-display-ja);
  font-size: clamp(0.94rem, 1.2vw, 1.16rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.tc-list li span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

.tc-note {
  margin-top: clamp(20px, 2.2vw, 30px);
  font-size: 0.84rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .tc-list { grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
}

@media (max-width: 520px) {
  .tc-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 34px 26px; }
}

@media (max-width: 460px) {
  .trust-grid { grid-template-columns: 1fr; gap: 30px; }
  .trust-head .th-line { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }

.cta-band .display { margin: 0 auto 40px; max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding: clamp(60px, 8vw, 100px) 0 40px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(48px, 7vw, 80px);
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark .seek { color: rgba(255, 255, 255, 0.5); }

.footer-note { margin-top: 20px; line-height: 2; font-size: 0.85rem; }

.footer-head {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { transition: color 0.25s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: calc(78px + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
}

.page-hero .display { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.page-hero .lead { max-width: 680px; margin-top: 26px; }

/* ---------- Utility ---------- */
.mt-l { margin-top: clamp(36px, 6vw, 64px); }
.mt-m { margin-top: clamp(20px, 3vw, 36px); }
.mt-s { margin-top: 14px; }
.center { text-align: center; }
.max-prose { max-width: 720px; }

/* ============================================================
   Imagery & illustration components (warmth update 2026-08-05)
   ============================================================ */

/* Photos */
.photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 44px -22px rgba(24, 22, 33, 0.35);
  line-height: 0;
}

.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo.arch { border-radius: 999px 999px 14px 14px; }

.frame-gold { position: relative; }

.frame-gold::before {
  content: "";
  position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 1px solid var(--gold);
  border-radius: 14px;
}

.caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.on-dark .caption { color: rgba(255, 255, 255, 0.55); }

/* Hero with visual */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-visual {
  position: relative;
  width: clamp(250px, 27vw, 400px);
  margin-right: clamp(0px, 3vw, 40px);
}

.hero-visual .hv-main { aspect-ratio: 4 / 5; }

.hero-visual .hv-float {
  position: absolute;
  left: clamp(-64px, -5vw, -40px);
  bottom: -28px;
  width: 52%;
  border: 5px solid var(--paper);
  border-radius: 14px;
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin: 16px 0 24px; width: min(400px, 82%); }
  .hero-visual .hv-float { left: auto; right: -14px; }
}

/* Card illustrations */
.illus {
  width: clamp(64px, 6vw, 84px);
  height: auto;
  display: block;
}

.card .illus { margin-bottom: 2px; }

/* Circle photo trio */
.circle-trio {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.circle-trio .ct {
  width: clamp(84px, 10vw, 128px);
  height: clamp(84px, 10vw, 128px);
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: 0 12px 30px -14px rgba(24, 22, 33, 0.35);
}

.circle-trio .ct + .ct { margin-left: -18px; }

.circle-trio .ct:nth-child(2) { transform: translateY(-12px); }

/* Dark band map illustration */
.dark-band { position: relative; }

.dark-band .container { position: relative; z-index: 1; }

.map-illus {
  position: absolute;
  right: max(-40px, -4vw);
  bottom: -24px;
  width: clamp(300px, 40vw, 560px);
  opacity: 0.85;
  pointer-events: none;
}

@media (max-width: 760px) {
  .map-illus { opacity: 0.35; }
}

/* Media inside split columns */
.split .photo img { aspect-ratio: 4 / 3; }
.split .photo.tall img { aspect-ratio: auto; }

/* Wide feature photo */
.feature-photo { margin-top: clamp(36px, 6vw, 64px); }
.feature-photo img { aspect-ratio: 21 / 9; width: 100%; object-fit: cover; }

@media (max-width: 700px) {
  .feature-photo img { aspect-ratio: 16 / 10; }
}

/* Softer cards for warmth */
.card { border-radius: 12px; }

/* ============================================================
   Dynamic layer (2026-08-05 — MTG-inspired cinematic update)
   ============================================================ */

/* --- Cinematic full-bleed hero --- */
.hero-cine {
  position: relative;
  min-height: clamp(560px, 92vh, 900px);
  display: flex;
  align-items: center;
  padding: calc(78px + 40px) 0 96px;
  background: var(--ink);
  overflow: hidden;
  color: #fff;
}

.hero-cine .hero-bg {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
  will-change: transform;
}

.hero-cine .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-cine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(24,22,33,0.86) 8%, rgba(24,22,33,0.55) 52%, rgba(24,22,33,0.18) 100%),
              linear-gradient(0deg, rgba(24,22,33,0.55) 0%, rgba(24,22,33,0) 34%);
}

.hero-cine .hero-content { position: relative; z-index: 2; }

.hero-cine .eyebrow { color: var(--gold); }

.hero-title {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.34;
  letter-spacing: 0.02em;
  color: #fff;
}

:lang(en) .hero-title {
  font-family: var(--font-display-en);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-cine .lead {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-top: 30px;
}

.hero-float-cine {
  position: absolute;
  right: clamp(16px, 4vw, 64px);
  bottom: clamp(20px, 5vh, 56px);
  z-index: 2;
  width: clamp(120px, 13vw, 190px);
  border: 4px solid rgba(255,255,255,0.9);
  border-radius: 12px;
  transform: rotate(2.5deg);
}

@media (max-width: 700px) {
  .hero-float-cine { display: none; }
}

/* --- Marquee band --- */
.marquee {
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 26px) 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display-en);
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-right: 0.6em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(76, 68, 103, 0.38);
}

.marquee-track span em {
  font-style: normal;
  color: var(--gold);
  -webkit-text-stroke: 0;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --- Ghost typography --- */
.section-head { position: relative; }

.section-head[data-ghost]::before {
  content: attr(data-ghost);
  position: absolute;
  left: -0.04em;
  top: 50%;
  transform: translateY(-56%);
  z-index: -1;
  font-family: var(--font-display-en);
  font-size: clamp(4.2rem, 11vw, 8.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(76, 68, 103, 0.14);
  pointer-events: none;
}

.page-hero { position: relative; overflow: hidden; }

.page-hero[data-ghost]::before {
  content: attr(data-ghost);
  position: absolute;
  right: -0.06em;
  bottom: -0.16em;
  font-family: var(--font-display-en);
  font-size: clamp(5.5rem, 17vw, 13rem);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(169, 143, 95, 0.28);
  pointer-events: none;
}

/* --- Brand/business photo tiles --- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 26px);
}

@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 36px);
  color: #fff;
  box-shadow: 0 24px 50px -26px rgba(24, 22, 33, 0.5);
}

@media (max-width: 900px) { .tile { aspect-ratio: 16 / 10; } }

.tile-bg { position: absolute; inset: 0; z-index: -2; }

.tile-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.tile:hover .tile-bg img { transform: scale(1.07); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24,22,33,0.08) 30%, rgba(24,22,33,0.82) 100%);
}

.tile-ink { background: linear-gradient(155deg, #343044 0%, var(--ink) 100%); }

.tile-ink .tile-art {
  position: absolute;
  right: -12%;
  top: 4%;
  width: 82%;
  opacity: 0.9;
  z-index: -1;
  transition: transform 0.9s var(--ease-out);
}

.tile:hover .tile-art { transform: translateY(-6px); }

.tile .t-eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.tile h3 {
  color: #fff;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.5;
}

.tile p { font-size: 0.92rem; line-height: 1.9; color: rgba(255,255,255,0.82); }

.tile .t-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tile .t-more::after { content: "→"; transition: transform 0.3s var(--ease-out); }

.tile:hover .t-more::after { transform: translateX(5px); }

/* --- Bigger stat numbers --- */
.milestone-strip .ms-year { font-size: clamp(2rem, 3.6vw, 3rem); }

/* --- Photo hover life --- */
.photo img { transition: transform 0.8s var(--ease-out); }
.photo:hover img { transform: scale(1.04); }

/* --- Parallax elements --- */
[data-parallax] { will-change: transform; }

/* --- Simplified Chinese (zh-Hans) typography --- */
:root:lang(zh-Hans) {
  --font-display-ja: "Songti SC", "STSong", SimSun, serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

/* --- Header over dark hero (index) --- */
.header-on-dark:not(.scrolled) .wordmark { color: #fff; }
.header-on-dark:not(.scrolled) .wordmark .seek { color: rgba(255, 255, 255, 0.6); }
.header-on-dark:not(.scrolled) .lang-switch { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.header-on-dark:not(.scrolled) .nav-toggle span,
.header-on-dark:not(.scrolled) .nav-toggle span::before,
.header-on-dark:not(.scrolled) .nav-toggle span::after { background: #fff; }
.nav-open .header-on-dark:not(.scrolled) .nav-toggle span { background: transparent; }

@media (min-width: 901px) {
  .header-on-dark:not(.scrolled) .site-nav a { color: rgba(255, 255, 255, 0.9); }
  .header-on-dark:not(.scrolled) .site-nav a::after { background: var(--gold); }
}

/* ---------- Split column swap ----------
   business.html セクション02用。DOMは「見出し→本文」の読み順を保ち、
   デスクトップのみ見出しカラムを右側に表示してジグザグ配置を維持する。 */
@media (min-width: 861px) {
  .split.split-rev > :first-child { order: 2; }
}


/* ---------- Network section: light-background variant of the client list ---------- */
/* .trust-clients は濃色帯の中で使う前提で白字固定なので、明背景用に上書きする */
.clients-light { border-top-color: var(--line); }
.clients-light .tc-label { color: var(--purple-deep); }
.clients-light .tc-list li { color: var(--ink); }
.clients-light .tc-list li span { color: var(--text-dim); }
.clients-light .tc-note { color: var(--text-dim); }
.clients-light .tc-list { grid-template-columns: repeat(3, 1fr); row-gap: clamp(22px, 2.6vw, 34px); }
@media (max-width: 900px) { .clients-light .tc-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .clients-light .tc-list { grid-template-columns: 1fr; } }


/* ===== 紙面の差し替え（2026-08-08）ゴーストタイポ／写真タイル／カードの枠 ===== */

/* 1. 巨大ゴーストタイポをやめ、罫線＋右端の英語ラベルに置き換える */
.section-head[data-ghost]::before { content: none !important; }
.section-head {
  border-top: 1px solid var(--line);
  padding-top: clamp(14px, 1.6vw, 20px);
  align-items: baseline;
}
.section-head[data-ghost]::after {
  content: attr(data-ghost);
  margin-left: auto;
  align-self: baseline;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
/* Networkだけは代表数値まで出す（既にページ上にある数字） */
#network .section-head[data-ghost]::after { content: attr(data-ghost) " / 49施設"; }
@media (max-width: 700px) {
  .section-head[data-ghost]::after { display: none; }
}

/* 2. 写真を持たないタイルはミスト地のブロックにする */
.tile-plain {
  background: var(--purple-mist);
  color: var(--text);
  /* 写真タイルの 3/4 固定比を外す。テキスト量で高さが決まるようにする */
  aspect-ratio: auto;
  min-height: 0;
  overflow: visible;
  justify-content: flex-start;
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3vw, 36px);
}
.tile-grid { align-items: stretch; }
.tile { border-radius: 0; box-shadow: none; }
.tile:hover { box-shadow: none; }
.tile-plain::before, .tile-plain::after { content: none !important; }
.tile-plain .t-eyebrow { color: var(--gold); }
.tile-plain h3 { color: var(--ink); }
.tile-plain p { color: var(--text); }
.tile-plain .t-more { color: var(--purple-deep); }
.t-metric {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  color: var(--purple-deep);
}
.t-metric em { font-style: normal; font-size: 0.36em; margin-left: 5px; color: var(--ink); }

/* 3. カードの枠・角丸・影をやめ、図版のキャンバスと同じ面にそろえる */
.card {
  background: var(--purple-mist);
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.card:hover { transform: none; box-shadow: none; }
.card-num { color: var(--gold); }
.card-more { color: var(--purple-deep); }
/* ===== /紙面の差し替え ===== */

/* ===== 図版（2026-08-08 追加。実データ由来のSVG図版） ===== */
.fig-block { margin: clamp(32px, 4.6vw, 60px) 0 0; }
.fig-stat { list-style: none; margin: 0 0 clamp(18px, 2.6vw, 30px); padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); }
.fig-stat li { margin: 0; }
.fig-stat b { display: block; font-family: var(--font-display-ja); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1; color: var(--purple-deep); }
.fig-stat b em { font-style: normal; font-size: 0.4em; margin-left: 6px; color: var(--ink); }
.fig-stat span { display: block; margin-top: 9px; font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.fig-canvas { background: var(--purple-mist); border: 1px solid var(--line);
  padding: clamp(18px, 3.2vw, 42px); display: flex; justify-content: center; }
.fig-svg { width: 100%; height: auto; max-width: 100%; overflow: visible; }
.fig-dots .fg-svg { max-width: 720px; }
.fig-split { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.fig-mapwrap { max-width: 470px; width: 100%; justify-self: center; }
.fig-src { margin-top: 14px; font-size: 12.5px; line-height: 1.85; color: var(--text-dim); }

.fig-rankhead { display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; }
/* 17件を縦1列にすると地図より背が高くなり左下が空く。段組にして高さを揃える */
.fig-rank { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 30px; }
.fig-rank li { display: grid; grid-template-columns: 5.6em 3ch 1fr; align-items: center;
  gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.fg-rp { font-size: 14px; color: var(--text); }
.fg-rn { font-family: var(--font-display-ja); font-weight: 700; font-size: 16px;
  color: var(--purple-deep); text-align: right; }
.fg-rb { height: 7px; background: var(--purple); opacity: 0.34; transform: scaleX(0);
  transform-origin: left center; transition: transform 0.8s var(--ease-out) var(--d, 0s); }
.fig-block.is-visible .fg-rb { transform: scaleX(1); }

.fg-grid line { stroke: var(--line); stroke-width: 1; }
.fg-dot { fill: var(--purple); fill-opacity: 0.2; stroke: var(--purple-deep); stroke-width: 1.1; }
.fg-core { fill: var(--purple-deep); }
.fg-lbl { font-size: 12.5px; font-family: var(--font-body); }
.fg-name { fill: var(--text); }
.fg-num { fill: var(--purple-deep); font-weight: 700; font-family: var(--font-display-ja); }
.fig-block .fg-inset rect { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }

.fg-cell { fill: #D8D4CE; }
.fg-cell.a1 { fill: var(--purple-deep); } .fg-cell.a2 { fill: var(--purple); }
.fg-cell.a3 { fill: #9A8FB0; } .fg-cell.a4 { fill: var(--gold); } .fg-cell.a5 { fill: #C0B291; }
.fg-cell.a6 { fill: #B9B2C6; } .fg-cell.a7 { fill: #8C93A8; } .fg-cell.a8 { fill: #A2A79C; }
.fg-cell.a9 { fill: #B08C8C; }
.fig-legend { list-style: none; margin: 28px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px 26px; }
.fig-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.fg-sw { width: 11px; height: 11px; border-radius: 50%; background: #D8D4CE; flex: none; }
.fg-sw.a1 { background: var(--purple-deep); } .fg-sw.a2 { background: var(--purple); }
.fg-sw.a3 { background: #9A8FB0; } .fg-sw.a4 { background: var(--gold); }
.fg-sw.a5 { background: #C0B291; } .fg-sw.a6 { background: #B9B2C6; }
.fg-sw.a7 { background: #8C93A8; } .fg-sw.a8 { background: #A2A79C; } .fg-sw.a9 { background: #B08C8C; }
.fg-ln { flex: 1; color: var(--text); }
.fg-lc { font-family: var(--font-display-ja); font-weight: 700; color: var(--purple-deep); }

.fg-axis { stroke: url(#fgAxis); stroke-width: 2; stroke-dasharray: 1000;
  stroke-dashoffset: 1000; transition: stroke-dashoffset 1.3s var(--ease-out) 0.1s; }
.fig-block.is-visible .fg-axis { stroke-dashoffset: 0; }
.fg-end { font-size: 13px; fill: var(--text-dim); letter-spacing: 0.12em; }
.fg-stem { stroke: var(--line); stroke-width: 1; }
.fg-node { fill: var(--purple-mist); stroke: var(--purple-deep); stroke-width: 2.2; }
.fg-pname { font-family: var(--font-display-ja); font-size: 19px; fill: var(--ink); font-weight: 700; }
.fg-pdesc { font-size: 12.5px; fill: var(--text-dim); font-family: var(--font-body); }

/* 図版の中身はセクションが見えたときに順に立ち上がる */
.fg-dot, .fg-core, .fg-lbl, .fg-inset, .fg-cell, .fg-node, .fg-stem, .fg-pname, .fg-pdesc {
  opacity: 0; transition: opacity 0.55s var(--ease-out) var(--d, 0s),
    transform 0.55s var(--ease-out) var(--d, 0s); }
.fg-cell { transform: scale(0.3); transform-origin: center; transform-box: fill-box; }
.fig-block.is-visible .fg-dot, .fig-block.is-visible .fg-core, .fig-block.is-visible .fg-lbl,
.fig-block.is-visible .fg-inset, .fig-block.is-visible .fg-cell, .fig-block.is-visible .fg-node,
.fig-block.is-visible .fg-stem, .fig-block.is-visible .fg-pname, .fig-block.is-visible .fg-pdesc {
  opacity: 1; transform: none; }

@media (max-width: 860px) {
  .fig-split { grid-template-columns: 1fr; gap: 32px; }
  /* 340pxまで縮めると地図のラベルが8px相当になり読めない。実幅いっぱいまで使う */
  .fig-mapwrap { max-width: 520px; }
}
@media (max-width: 640px) {
  .fig-stat { gap: 20px 28px; }
  .fig-canvas { padding: 14px; }
  .fig-rank { columns: 1; }
  .fig-rank li { grid-template-columns: 5.4em 3ch 1fr; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .fg-dot, .fg-core, .fg-lbl, .fg-inset, .fg-cell, .fg-node, .fg-stem, .fg-pname, .fg-pdesc,
  .fg-rb { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fg-axis { stroke-dashoffset: 0 !important; transition: none !important; }
}
/* ===== /図版 ===== */

/* ===== 図版01 第2レイヤー（2026-08-08） ===== */
.fg-ins { fill: var(--gold); fill-opacity: 0.30; stroke: #8A6E42; stroke-width: 1.1; }
.fig-key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px;
  margin: 0 0 16px; font-size: 12.5px; color: var(--text); }
.fg-k { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.fg-k-i { background: rgba(169,143,95,0.35); border: 1px solid #8A6E42; }
.fg-k-n { background: rgba(122,110,150,0.25); border: 1px solid var(--purple-deep); margin-left: 14px; }
.fig-rank li { grid-template-columns: 5em 2.4ch 2.4ch 1fr; gap: 8px; }
.fg-rn-i { color: #8A6E42; }
.fg-rn-n { color: var(--purple-deep); }
.fg-bars { display: flex; flex-direction: column; gap: 3px; }
.fg-b { height: 5px; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.8s var(--ease-out) var(--d, 0s); }
.fg-b-i { background: var(--gold); opacity: 0.55; }
.fg-b-n { background: var(--purple); opacity: 0.4; }
.fig-block.is-visible .fg-b { transform: scaleX(1); }
.fg-ins { opacity: 0; transition: opacity 0.55s var(--ease-out) var(--d, 0s); }
.fig-block.is-visible .fg-ins { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .fg-ins { opacity: 1 !important; }
  .fg-b { transform: none !important; transition: none !important; }
}
/* ===== /図版01 第2レイヤー ===== */

/* ===== 多言語版の調整（2026-08-08） ===== */
html[lang="en"] #network .section-head[data-ghost]::after { content: attr(data-ghost) " / 49 facilities"; }
html[lang="zh-Hans"] #network .section-head[data-ghost]::after { content: attr(data-ghost) " / 49家"; }
html[lang="en"] .fig-rank li { grid-template-columns: 7.4em 2.4ch 2.4ch 1fr; }
html[lang="en"] .fg-lbl { font-size: 11.5px; }
/* ===== /多言語版の調整 ===== */

/* ===== 図版01 第3レイヤー（2026-08-22 Jooto台帳を反映） ===== */
/* 既存CSSの .fig-svg は class 名の綴り違いで一度も当たっていない（実物は .fg-svg）。
   そのため幅指定が効かず、SVGがビューボックスの実寸で描かれてスマホで横にはみ出していた。
   ここで正しいクラスに幅を与える。図版01〜03すべてに効く。 */
.fg-svg { width: 100%; height: auto; max-width: 100%; }
/* 注意: 図版01の枠は <div class="fig-canvas fig-split"> で1つの要素に両クラスが付く。
   .fig-canvas に display を足すと .fig-split の grid を潰して1カラムになるので触らない。 */
.fig-block .fig-rank3 li { min-width: 0; }
.fig-block .fg-bars { min-width: 0; }
.fg-lead { fill: #6FAFA8; fill-opacity: 0.18; stroke: #3E7F79; stroke-width: 1.1;
  stroke-dasharray: 3.5 2.5; }
.fg-k-l { background: rgba(111,175,168,0.30); border: 1px dashed #3E7F79; margin-left: 14px; }
.fg-rn-l { color: #3E7F79; }
.fg-b-l { background: #6FAFA8; opacity: 0.62; }
.fig-rank3 li { grid-template-columns: 4.6em 2.4ch 2.4ch 2.4ch 1fr; gap: 7px; padding: 5px 0; }
.fig-rank3 .fg-rp { font-size: 13px; }
.fig-rank3 .fg-rn { font-size: 14px; }
.fig-rank3 .fg-b { height: 5px; }
.fig-rank3 .fg-bars { gap: 2px; }
/* 3レイヤーになって円が増えたぶん、地図の取り分を増やす */
.fig-block .fig-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
.fig-block .fig-mapwrap { max-width: 560px; }
/* 上の2行は .fig-split より詳細度が高いので、既存の折り返し指定を打ち消してしまう。
   スマホでは必ず1カラムに戻す（860px以下で表が画面外へ出る事故があった） */
@media (max-width: 860px) {
  .fig-block .fig-split { grid-template-columns: 1fr; }
  .fig-block .fig-mapwrap { max-width: 520px; }
}
@media (max-width: 640px) {
  .fig-rank3 { columns: 1; }
  .fig-rank3 li { grid-template-columns: 4.4em 2.2ch 2.2ch 2.2ch 1fr; gap: 6px; }
  .fig-rank3 .fg-rp { font-size: 12.5px; }
}
.fg-lead { opacity: 0; transition: opacity 0.55s var(--ease-out) var(--d, 0s); }
.fig-block.is-visible .fg-lead { opacity: 1; }
html[lang="en"] .fig-rank3 li { grid-template-columns: 6.6em 2.4ch 2.4ch 2.4ch 1fr; }
@media (max-width: 900px) {
  .fig-rank3 li { grid-template-columns: 4.6em 2.4ch 2.4ch 2.4ch 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fg-lead { opacity: 1 !important; }
}
/* ===== /図版01 第3レイヤー ===== */

/* ===== ニュースの区分ラベルと外部リンク（2026-08-24 ニュース刷新） ===== */
/* .news-item は 150px + 1fr のグリッド。右カラムに本文とメタ行を積む */
.news-item .n-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
}

.news-item .n-cat {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 3px 9px;
  white-space: nowrap;
}

.news-item .n-link { font-size: 0.8rem; }
