/* ============================================================================
   Pharmaceutical Data Science: design system
   Palette: deep navy ink + teal accent on calm light surfaces.
   ========================================================================== */

:root {
  /* Ink */
  --ink:        #12243a;
  --ink-2:      #33475b;
  --muted:      #5f7085;
  --muted-2:    #8494a4;

  /* Brand — Okayama University official colors (#313992 indigo, #007dc5 blue) */
  --navy:       #2a3183;   /* deepened OU indigo — hero dark end */
  --navy-2:     #313992;   /* OU official indigo */
  --teal:       #007dc5;   /* OU official blue — brand accent / decorative */
  --teal-strong:#005f97;   /* accessible blue — links & small text on white */
  --teal-tint:  #e4f1fb;   /* light blue tint */
  --blue-btn:   #0072b8;   /* AA-safe blue fill for buttons */
  /* Hero gradient — Okayama indigo → bright blue (matches OU panel gradient) */
  --hero-grad:  linear-gradient(160deg, #313992 0%, #1560b6 55%, #0b86cf 100%);

  /* Surfaces */
  --surface:    #ffffff;
  --surface-alt:#f4f7f9;
  --surface-3:  #eef3f6;
  --border:     #e1e8ee;
  --border-2:   #d2dce4;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --font-head: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(18,36,58,.06), 0 2px 8px rgba(18,36,58,.05);
  --shadow-md: 0 6px 24px rgba(18,36,58,.10);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-strong); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--teal); }
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

/* ---- Layout ------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 62px 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: 42px 0; }
/* KPI band: a tight connector, not a full section (avoids double padding) */
.stats-band { padding: 28px 0 16px; }
/* When a section directly follows the KPI band, it needs less top padding */
.section--flush-top { padding-top: 34px; }
@media (max-width: 640px) { .section { padding: 44px 0; } }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-strong); margin-bottom: .8rem;
}
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.lead { font-size: 1.18rem; color: var(--ink-2); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 650; font-size: .98rem; padding: .72em 1.35em;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: all .18s var(--ease); white-space: nowrap;
}
/* Primary action: white pill, Okayama indigo text.
   Every primary button on the site sits on the indigo/blue hero or a CTA band,
   where a dark indigo fill sank into the background. White lifts it off the
   gradient and pairs cleanly with the outlined "ghost" button beside it. */
.btn--primary {
  background: #fff; color: var(--navy-2);
  box-shadow: 0 4px 14px rgba(8,20,60,.22), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn--primary:hover {
  background: #eef2fb; color: var(--navy); transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(8,20,60,.28);
}
.btn--primary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* If a primary button is ever placed on a light section, use the solid OU blue */
.on-light .btn--primary { background: var(--blue-btn); color: #fff; box-shadow: 0 6px 18px rgba(0,114,184,.28); }
.on-light .btn--primary:hover { background: #005f97; color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: transparent; color: var(--teal-strong); border-color: var(--border-2); }
.btn--outline:hover { border-color: var(--teal); background: var(--teal-tint); }
.btn__arrow { transition: transform .18s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px; max-width: 1340px;
}
.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; min-width: 0; }
.brand__logo { height: 34px; width: auto; flex-shrink: 0; display: block; }
.brand__divider { width: 1px; height: 30px; background: var(--border-2); flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.04rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.brand__sub  { font-size: .72rem; color: var(--teal-strong); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }

@media (max-width: 560px) {
  .brand { gap: 10px; flex: 0 1 auto; }
  .brand__logo { height: 26px; }
  .brand__divider, .brand__sub { display: none; }
  .brand__name { font-size: .92rem; line-height: 1.14; overflow-wrap: break-word; white-space: normal; }
  .site-header__inner { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand__logo { height: 24px; }
  .brand__name { font-size: .84rem; }
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--ink-2); font-weight: 550; font-size: .92rem;
  padding: .5em .6em; border-radius: 8px; position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface-3); }
.nav a.is-active { color: var(--teal-strong); }
.nav a.is-active::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .1em; height: 2px;
  background: var(--teal); border-radius: 2px;
}

.site-header__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--ink); flex-shrink: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- Language switcher (EN live, 日本語 coming soon) --------------------- */
.lang-switch {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface);
}
.lang-switch__icon { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--muted); margin-left: 4px; }
.lang-switch__icon svg { width: 15px; height: 15px; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .78rem;
  font-weight: 700; letter-spacing: .02em; line-height: 1; padding: .48em .72em;
  border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lang-switch__btn:hover { background: var(--surface-3); color: var(--ink); }
.lang-switch__btn.is-active { background: var(--navy-2); color: #fff; }
.lang-switch__btn.is-active:hover { background: var(--navy); color: #fff; }
.lang-switch__btn--soon { color: var(--muted); }
.lang-switch__soon {
  font-size: .56rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: .22em .48em; border-radius: 999px; background: var(--teal-tint); color: var(--teal-strong);
}
.lang-toast {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 250px; z-index: 60;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: .84rem; line-height: 1.45; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.lang-toast::before {
  content: ""; position: absolute; top: -5px; right: 22px; width: 10px; height: 10px;
  background: var(--ink); transform: rotate(45deg);
}
.lang-toast strong { font-weight: 700; }
.lang-toast span { color: #b9c7d6; }
.lang-toast.is-on { opacity: 1; transform: none; }
.lang-toast[hidden] { display: none; }
/* Inside the phone menu: a "Language" row (hidden on wider screens, where the
   switcher sits in the header bar instead) */
.nav__lang { display: none; }
@media (max-width: 560px) {
  .site-header__tools .lang-switch { display: none; }
  .nav__lang {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border);
  }
  .nav__lang-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  /* the switch links must not pick up the big phone-menu link styles */
  .nav .nav__lang .lang-switch__btn { font-size: .78rem; padding: .48em .72em; border-radius: 999px; }
  .nav .nav__lang .lang-switch__btn.is-active { background: var(--navy-2); color: #fff; }
  .nav .nav__lang .lang-switch__btn.is-active::after { display: none; }
  .nav__lang .lang-toast { right: 0; left: auto; }
}

@media (max-width: 1230px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; gap: 2px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: .75em .6em; font-size: 1.02rem; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--teal-tint); }
}

/* ============================================================================
   HERO
   ========================================================================== */
/* Layered "data" background shared by the home hero and interior page heroes:
     1. mesh gradient (cyan glow top-right, deep indigo bottom-left)
     2. fine technical grid, fading out toward the bottom-left   (::before)
     3. concentric rings top-right, a quiet signal motif          (::after)
     4. animated network canvas with glowing hub nodes            (hero-bg.js)
     5. home only: a rising trend-line chart, bottom-right        (.hero__art) */
.hero, .pagehero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(0,175,245,.55), transparent 62%),
    radial-gradient(760px 460px at 2% 110%, rgba(16,24,104,.70), transparent 60%),
    radial-gradient(560px 380px at 58% 112%, rgba(0,125,197,.38), transparent 60%),
    var(--hero-grad);
}
.hero::before, .pagehero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(1000px 640px at 82% 18%, #000 15%, transparent 78%);
          mask-image: radial-gradient(1000px 640px at 82% 18%, #000 15%, transparent 78%);
}
.hero::after, .pagehero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 86% 16%, rgba(255,255,255,.11) 0 1px, transparent 1px 92px);
  -webkit-mask-image: radial-gradient(620px 620px at 86% 16%, #000 8%, transparent 68%);
          mask-image: radial-gradient(620px 620px at 86% 16%, #000 8%, transparent 68%);
}
.hero__inner { position: relative; z-index: 2; padding: 58px 24px 52px; max-width: 820px; }

/* Animated network canvas behind page titles */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* Decorative trend-line chart (home hero, bottom-right) */
.hero__art {
  position: absolute; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  width: clamp(380px, 46vw, 720px); height: auto; opacity: .95;
}
@media (max-width: 900px) { .hero__art { display: none; } }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .hero__dept {
  font-size: .82rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: #8fccf0; margin-bottom: 1.3rem; display: inline-block;
}
.hero__mission { font-size: 1.28rem; color: #d6e2ee; max-width: 660px; margin-bottom: 2rem; line-height: 1.55; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__inst {
  position: relative; margin-top: 2.6rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.16); color: #9fb2c4; font-size: .92rem;
}

/* Page hero (interior pages): background rules are shared with .hero above */
.pagehero__inner { position: relative; z-index: 2; padding: 64px 24px 58px; }
.pagehero h1 { color: #fff; margin-bottom: .3em; }
.pagehero p { color: #cfdcec; max-width: 640px; font-size: 1.1rem; margin: 0; }
.pagehero .eyebrow { color: #8fccf0; }

/* ============================================================================
   KPI / STAT ROW
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat { background: var(--surface); padding: 26px 24px; }
.stat__value {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--teal-strong);
  letter-spacing: -.03em; line-height: 1;
}
.stat__label { font-weight: 650; color: var(--ink); margin-top: .55rem; font-size: .98rem; }
.stat__note  { color: var(--muted); font-size: .84rem; margin-top: .15rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================================
   CARDS / GRIDS
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-strong); margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }

/* ---- Highlights --------------------------------------------------------- */
.highlight {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.highlight:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.highlight--linked:hover { border-color: var(--border-2); }
.highlight__thumb { height: 160px; position: relative; overflow: hidden; }
.highlight__thumb--img img { width: 100%; height: 100%; object-fit: cover; }
/* Empty-image placeholder: a neutral frame that clearly says "picture goes here" */
.highlight__thumb--empty {
  display: grid; place-items: center; background: var(--surface-alt);
  background-image:
    linear-gradient(rgba(18,36,58,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,36,58,.05) 1px, transparent 1px);
  background-size: 20px 20px; border-bottom: 1px solid var(--border);
}
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted-2); padding: 14px 24px; border: 1.5px dashed var(--border-2);
  border-radius: 12px; background: rgba(255,255,255,.7);
}
.img-placeholder svg { width: 34px; height: 34px; }
.img-placeholder span { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.highlight__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.highlight__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .28em .7em; border-radius: 999px; background: var(--teal-tint); color: var(--teal-strong);
}
.tag--news { background: #eaf1fb; color: #2b5aa0; }
.tag--appointment { background: #f2ecfb; color: #6b4aa0; }
.highlight__date { color: var(--muted); font-size: .84rem; font-weight: 550; }
.highlight h3 { font-size: 1.14rem; margin-bottom: .5rem; transition: color .15s var(--ease); }
.highlight h3 a { color: inherit; }
.highlight--linked:hover h3 { color: var(--teal-strong); }
.highlight__body p { color: var(--muted); font-size: .96rem; }
.highlight__journal { color: var(--ink-2); font-weight: 600; font-size: .9rem; margin-top: auto; padding-top: 8px; }
.highlight__link { margin-top: 12px; font-weight: 600; font-size: .92rem; display: inline-flex; gap: .4em; align-items: center; }
/* Stretch the "View study" link over the whole card: title, text and image all open the study */
.highlight__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.highlight__link:focus-visible { outline: none; }
.highlight__link:focus-visible::after { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ============================================================================
   PEOPLE
   ========================================================================== */
.pi-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.pi-card .avatar { width: 200px; height: 200px; border-radius: 16px; font-size: 3.4rem; }
.pi-card h3 { font-size: 1.5rem; margin-bottom: .1em; }
.pi-card .name-ja { color: var(--muted); font-weight: 550; font-size: 1.05rem; }
.pi-card .role { color: var(--teal-strong); font-weight: 650; margin: .4rem 0 1rem; }
.pi-card .bio { color: var(--ink-2); }
.person-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.person-links a {
  font-size: .86rem; font-weight: 600; padding: .38em .9em; border-radius: 999px;
  border: 1px solid var(--border-2); color: var(--ink-2);
}
.person-links a:hover { border-color: var(--teal); color: var(--teal-strong); background: var(--teal-tint); }
.person-email { color: var(--ink-2); font-weight: 550; font-size: .95rem; margin-top: 4px; }

.avatar {
  display: grid; place-items: center; background: linear-gradient(150deg, var(--navy-2), var(--teal-strong));
  color: #fff; font-weight: 700; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.people-group { margin-top: 52px; }
.people-group__title {
  font-size: 1.25rem; padding-bottom: 12px; margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px){ .people-grid { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 640px){ .people-grid { grid-template-columns: repeat(2,1fr);} .pi-card { grid-template-columns: 1fr; } .pi-card .avatar { width: 140px; height: 140px; } }
.person { text-align: center; }
.person .avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; font-size: 1.5rem; }
.person__name { font-weight: 700; font-size: 1rem; }
.person__role { color: var(--muted); font-size: .88rem; }

.empty-note {
  border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 22px 24px;
  color: var(--muted); background: var(--surface-alt); font-size: .96rem;
}
.collab-list { display: flex; flex-wrap: wrap; gap: 12px; }
.collab {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .6em 1.1em; font-size: .95rem;
}
.collab strong { color: var(--ink); font-weight: 700; }
.collab span { color: var(--muted); }

/* ============================================================================
   PUBLICATIONS
   ========================================================================== */
.pub-year { font-size: 1.4rem; color: var(--teal-strong); margin: 40px 0 16px; font-weight: 800; }
.pub-year:first-child { margin-top: 0; }
.pub {
  padding: 18px 0; border-bottom: 1px solid var(--border); display: flex; gap: 18px;
}
.pub:last-child { border-bottom: none; }
.pub__marker { color: var(--teal); flex-shrink: 0; font-weight: 800; margin-top: 2px; }
.pub__title { font-weight: 650; color: var(--ink); }
.pub__title a { color: inherit; text-decoration: none; }
.pub__title a:hover { color: var(--teal-strong); text-decoration: underline; }
.pub__meta { color: var(--muted); font-size: .95rem; margin-top: 3px; }
.pub__journal { font-style: italic; color: var(--ink-2); }
.pub__note { display: inline-block; margin-left: 8px; font-size: .78rem; font-weight: 700;
  color: var(--teal-strong); background: var(--teal-tint); padding: .12em .6em; border-radius: 999px; }

/* ---- Chip list (methods/tools) ------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px;
  padding: .5em 1em; font-size: .92rem; font-weight: 550; color: var(--ink-2);
}
.chip--solid { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Two-column feature ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; gap: 32px; } }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.panel h3 { margin-bottom: 16px; }
.panel + .panel { margin-top: 22px; }

/* ---- Access ------------------------------------------------------------- */
.map-placeholder {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface-3); min-height: 320px; position: relative; display: grid; place-items: center;
  background-image:
    linear-gradient(rgba(0,125,197,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,125,197,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-placeholder__pin { text-align: center; color: var(--ink-2); }
.map-placeholder__pin svg { width: 44px; height: 44px; color: var(--teal); margin: 0 auto 8px; }

/* Embedded Google map (Access page) */
.map-embed {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); line-height: 0; background: var(--surface-3); min-height: 360px;
}
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-list .k { color: var(--muted); font-weight: 600; min-width: 84px; flex-shrink: 0; }
.info-list .v { color: var(--ink); }

.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px;
  background: #fff8ec; border: 1px solid #f2e2c4; border-radius: var(--radius-sm);
  padding: 14px 18px; color: #7a5a1e; font-size: .92rem;
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: var(--radius); padding: 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d2e0; max-width: 560px; margin: 0 auto 1.6rem; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: #a9bccd; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #a9bccd; }
.site-footer a:hover { color: #fff; }
.footer-brand__name { color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer-brand p { margin-top: 10px; font-size: .95rem; max-width: 340px; }
.footer-langs { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: #a9bccd; }
.footer-langs svg { width: 16px; height: 16px; opacity: .8; }
.footer-lang--soon em { font-style: normal; color: #8399ac; font-size: .82rem; }
.footer-lang__sep { color: #55708a; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #8399ac;
}

/* ============================================================================
   JAPANESE PAGES (ja/ folder, <html lang="ja">)
   Same design; only the type is tuned for Japanese text: a Japanese font
   stack, no negative letter-spacing, more line height, and line breaks that
   fall between phrases instead of in the middle of a word.
   ========================================================================== */
html[lang="ja"] {
  --font: "Inter", "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
          "BIZ UDPGothic", "Yu Gothic", Meiryo, sans-serif;
  --font-head: var(--font);
}
html[lang="ja"] body { line-height: 1.8; line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 {
  letter-spacing: 0; line-height: 1.4; word-break: auto-phrase;
}
html[lang="ja"] h1 { font-size: clamp(1.75rem, 4vw, 2.7rem); }
html[lang="ja"] .brand__name { letter-spacing: 0; }
html[lang="ja"] .hero__mission { font-size: 1.12rem; line-height: 1.85; }
html[lang="ja"] .hero__mission,
html[lang="ja"] .pagehero p,
html[lang="ja"] .section-head p,
html[lang="ja"] .cta-band p,
html[lang="ja"] .hero__dept,
html[lang="ja"] .hero__inst,
html[lang="ja"] .stat__label,
html[lang="ja"] .stat__note,
html[lang="ja"] .person__role,
html[lang="ja"] .btn { word-break: auto-phrase; }
html[lang="ja"] .pagehero p { font-size: 1.02rem; max-width: 700px; }
html[lang="ja"] .section-head p { font-size: 1rem; }
html[lang="ja"] .card p, html[lang="ja"] .highlight__body p { font-size: .94rem; }
html[lang="ja"] .stat__label { font-size: .94rem; }
html[lang="ja"] .pi-card .name-ja { font-size: .98rem; letter-spacing: .02em; }

/* ---- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
