/* ============================================================
   Indonesia Business Immersion: ARA family stylesheet
   Direction B "Field visit, ARA-endorsed", approved by Anshar 2026-10-13.
   Family layer (palette, Montserrat labels, pill buttons, gradient-bar
   eyebrows, navy footer) follows arasynergy.co.id. Programme voice keeps
   Newsreader (EN) / Shippori Mincho (JA) for display.
   Replaces assets/css/site.css, which is retained and marked superseded.
   See docs/design/2026-10-13-ara-family-redesign-direction.md.
   ============================================================ */

:root {
  /* ARA family palette */
  --navy: #16174f;
  --navy-deep: #101243;
  --navy-surface: #1a1c56;
  --blue: #005ca5;
  --blue-deep: #004b87;
  --cyan: #57bacc;
  --cyan-soft: #a9dce6;
  --wash: #f2f8fb;
  --white: #ffffff;

  /* Text */
  --ink: #16174f;
  --ink-soft: #3f4470;
  --ink-faint: #5b6088;
  --on-dark: #eff3fa;
  --on-dark-muted: #b7bedc;

  --line: #e1e8f0;
  --line-strong: #c9d4e2;
  --line-dark: rgba(239, 243, 250, 0.16);

  --grad-bar: linear-gradient(92deg, #57bacc 0%, #3d7bd8 55%, #005ca5 100%);

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --label: "Montserrat", "Avenir Next", -apple-system, "Segoe UI", sans-serif;
  --body: "Poppins", -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 8vw, 7rem);
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ja"] {
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 {
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(87, 186, 204, 0.3); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Family components ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-family: var(--label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
html[lang="ja"] .eyebrow { letter-spacing: 0.12em; font-size: 0.78rem; }
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-bar);
  flex: none;
}
.on-dark .eyebrow { color: var(--cyan-soft); }

.h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.lede { font-size: clamp(1rem, 1.4vw, 1.125rem); max-width: 38em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--label);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform 250ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 92, 165, 0.55); }
.btn--solid:hover { background: var(--blue-deep); }
.btn--ghost { border: 1.5px solid var(--line-strong); background: transparent; color: var(--navy); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #e4f1f8; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: progress; }

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  text-decoration: none;
  flex: none;
}
.brand__logo { height: 2rem; width: auto; }
.brand__rule { width: 1px; height: 1.6rem; background: var(--line-strong); }
.brand__name {
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  max-width: 11.5em;
}
.topnav { display: flex; gap: 1.6rem; margin-left: auto; }
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--label);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.topnav a:hover, .topnav a[aria-current] { color: var(--blue); }
.topbar__actions { display: flex; align-items: center; gap: 0.75rem; }
.lang {
  display: flex;
  flex: none;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.lang a[aria-current="page"] { background: var(--navy); color: #fff; }
.topbar .btn { min-height: 2.75rem; padding: 0.5rem 1.2rem; font-size: 0.82rem; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 16px; height: 2px; background: var(--navy); box-shadow: 0 5px 0 var(--navy), 0 -5px 0 var(--navy); }
.menu-toggle[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); }
.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1rem;
  background: #fff;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--label);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--wash);
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5.5rem);
}
.hero__orbit {
  position: absolute;
  right: -18%;
  top: 50%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--line-strong);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__grid > * { min-width: 0; }
.status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.status li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.status li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.status .status--open { border-color: var(--blue); color: var(--blue); }
.status .status--open::before { background: var(--blue); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); color: var(--navy); }
.hero h1 em { font-style: italic; color: var(--blue); }
html[lang="ja"] .hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
html[lang="ja"] .hero h1 em { font-style: normal; }
.nw { display: inline-block; }
.hero .lede { margin-top: 1.4rem; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }

/* Signature: the operator's meishi */
.meishi {
  position: relative;
  aspect-ratio: 91 / 55;
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.6rem;
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
  border-radius: 10px;
  background: var(--navy);
  color: var(--on-dark);
  box-shadow: 0 30px 60px -30px rgba(16, 18, 67, 0.55), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
  animation: meishi-rise 300ms var(--ease) both;
}
.meishi::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: var(--grad-bar);
}
.meishi__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.meishi__logo { height: 1.7rem; width: auto; }
.meishi__kind {
  font-family: var(--label);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  text-align: right;
}
.meishi__name {
  align-self: center;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.2;
  color: #fff;
}
.meishi__name small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--body);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}
.meishi__rows { display: grid; gap: 0.2rem; font-size: 0.8rem; line-height: 1.5; }
.meishi__rows div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 0.6rem; }
html[lang="ja"] .meishi__rows div { grid-template-columns: 6em minmax(0, 1fr); }
.meishi__rows dt { white-space: nowrap; }
.meishi__rows dt { font-family: var(--label); font-weight: 600; color: var(--cyan-soft); font-size: 0.72rem; padding-top: 0.1em; }
.meishi__rows dd { color: #fff; overflow-wrap: anywhere; }
.meishi__rows a { color: #fff; text-underline-offset: 3px; }

@keyframes meishi-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Key facts (募集要項) ---------- */

.facts { background: var(--navy-deep); color: var(--on-dark); padding-block: var(--section); }
.facts h2 { color: #fff; }
.facts__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.2rem; }
.facts__head p { color: var(--on-dark-muted); max-width: 32em; }
.facts__key {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts__key > div { background: var(--navy-surface); padding: clamp(1.2rem, 3vw, 2rem); }
.facts__label {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.facts__fig {
  margin-top: 0.4rem;
  font-family: var(--label);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.facts__fig span { display: block; margin-top: 0.4rem; font-family: var(--body); font-size: 0.95rem; font-weight: 400; color: var(--on-dark); }
.facts__fig--alt { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.facts__note { margin-top: 0.7rem; font-size: 0.86rem; color: var(--on-dark-muted); }
.terms { margin-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.terms > div {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.4rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.terms dt { font-family: var(--label); font-size: 0.82rem; font-weight: 600; color: var(--cyan-soft); padding-top: 0.15em; }
.terms dd { color: var(--on-dark); }
.terms .is-tbc dd { color: var(--on-dark-muted); }
.tbc {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--on-dark-muted);
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  vertical-align: 0.1em;
}

/* ---------- Programme ---------- */

.programme { padding-block: var(--section); }
.programme__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.programme__story p + p { margin-top: 1rem; }
.programme__story .h2 { margin-bottom: 1.2rem; }
.host {
  margin-top: 1.6rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--cyan);
  background: var(--wash);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.host strong { font-family: var(--label); font-weight: 700; color: var(--navy); }
.outline__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.outline__note { margin-top: 0.5rem; font-size: 0.92rem; color: var(--ink-faint); }
.outline__list { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.outline__list li { border-bottom: 1px solid var(--line); }
.outline__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 48px; padding-block: 0.6rem; cursor: pointer; list-style: none;
}
.outline__list summary::-webkit-details-marker { display: none; }
.outline__list summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease);
}
.outline__list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.outline__list details p { padding-bottom: 0.9rem; }
.outline__h { font-family: var(--label); font-size: 0.95rem; font-weight: 700; color: var(--navy); letter-spacing: 0; line-height: 1.4; }
.outline__list p { font-size: 0.92rem; line-height: 1.6; }

/* ---------- Context ---------- */

.context { background: var(--wash); padding-block: var(--section); }
.context__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem 3.5rem; align-items: end; margin-bottom: 2.2rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: clamp(1rem, 2.4vw, 1.6rem); }
.stat__n { font-family: var(--label); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__l { margin-top: 0.4rem; font-size: 0.86rem; line-height: 1.5; }
.stat__s { margin-top: 0.5rem; font-size: 0.74rem; }
.stat__s a { color: var(--blue); text-underline-offset: 2px; display: inline-block; padding-block: 0.3rem; }

/* ---------- Previous visits ---------- */

.visits { padding-block: var(--section); }
.visits__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem 3.5rem; align-items: end; margin-bottom: 2rem; }
.map { position: relative; }
.map__canvas { position: relative; aspect-ratio: 1200 / 460; }
.map__canvas > img { width: 100%; height: 100%; }
.map-pins { position: absolute; inset: 0; }
.map-pin { position: absolute; top: var(--y); left: var(--x); }
.map-pin > a { position: absolute; top: -22px; left: -22px; display: block; width: 44px; height: 44px; text-decoration: none; }
.map-pin__dot {
  position: absolute; top: 15px; left: 15px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--blue), 0 4px 10px rgba(0, 92, 165, 0.35);
  transition: transform 200ms var(--ease);
}
.map-pin > a:hover .map-pin__dot, .map-pin > a:focus-visible .map-pin__dot { transform: scale(1.3); }
.map-pin__label {
  position: absolute;
  top: calc(22px + var(--ly));
  left: calc(22px + var(--lx));
  min-width: max-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy);
}
.map__cities { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.map__cities a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--label); font-size: 0.8rem; font-weight: 600; color: var(--navy); text-decoration: none;
}
.map__cities a:hover { border-color: var(--blue); color: var(--blue); }
.map__credit { margin-top: 0.6rem; font-size: 0.72rem; color: var(--ink-faint); }
.map__credit a { text-underline-offset: 2px; }

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 28vw, 340px);
  gap: 0.9rem;
  margin-top: 2.2rem;
  padding-bottom: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.strip figure { scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--line); }
.strip figcaption { margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-faint); }
.strip figcaption b { display: block; font-family: var(--label); font-size: 0.78rem; color: var(--navy); }
.strip__hint { margin-top: 0.4rem; font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- Enquiry ---------- */

.enq { background: var(--navy); color: var(--on-dark); padding-block: var(--section); }
.enq h2 { color: #fff; }
.enq__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.enq__intro p { color: var(--on-dark); margin-top: 1rem; max-width: 30em; }
.enq__mail {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.enq__mail span { display: block; font-family: var(--label); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-soft); }
.enq__mail a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--label); font-weight: 600; color: #fff; text-underline-offset: 3px; overflow-wrap: anywhere; }
.enq__rule { margin-top: 1rem; font-size: 0.9rem; color: var(--on-dark-muted); }

.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-soft);
}
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.field { display: grid; gap: 0.35rem; min-width: 0; align-content: start; }
.field label, .field legend { font-family: var(--label); font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.req { color: #b4232a; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(87, 186, 204, 0.35); }
.field input[aria-invalid="true"] { border-color: #b4232a; }
.hint { font-size: 0.78rem; color: var(--ink-faint); }
.err { font-size: 0.8rem; color: #b4232a; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-size: 0.82rem; cursor: pointer; color: var(--ink-soft);
}
.check input:checked + span { border-color: var(--blue); background: #e4f1f8; color: var(--blue-deep); }
.check input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.form-trap { position: absolute; left: -9999px; }
.formnote { font-size: 0.85rem; color: var(--ink-soft); }
.privacy-note { font-size: 0.75rem; color: var(--ink-faint); }
.privacy-note a { color: var(--blue); }

/* ---------- Footer ---------- */

.foot { background: var(--navy-deep); color: var(--on-dark-muted); padding-block: 3.5rem 2rem; font-size: 0.9rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot__logo { height: 2.6rem; width: auto; }
.foot__about { margin-top: 1rem; max-width: 24em; }
.foot h2 { font-family: var(--label); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 0.6rem; }
.foot ul { display: grid; gap: 0.1rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--cyan); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: 0.78rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1119px) {
  .topnav { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar__actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero__grid, .programme__grid, .enq__grid, .facts__head, .context__head, .visits__head { grid-template-columns: minmax(0, 1fr); }
  .meishi { max-width: 440px; margin-inline: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .topbar__in { gap: 0.6rem; padding-block: 0.5rem; }
  .brand { gap: 0.5rem; min-width: 0; flex: 1 1 auto; }
  .brand__logo { height: 1.35rem; }
  .brand__rule { display: none; }
  .brand__name { font-size: 0.68rem; max-width: 8.5em; }
  .lang a { padding: 0 0.55rem; }
  .topbar__cta { display: none; }
  .hero__acts .btn { flex: 1 1 100%; }
  .hero h1 { font-size: 2.15rem; }
  html[lang="ja"] .hero h1 { font-size: 1.8rem; }
  .hero__orbit circle[fill] { display: none; }
  :root { --section: 2.75rem; }
  .facts__key { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .facts__key > div { padding: 1rem; }
  .facts__fig { font-size: 1.75rem; }
  .facts__fig--alt { font-size: 1.3rem; }
  .facts__note { font-size: 0.78rem; }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding-block: 0.65rem; }
  .stats {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  .stat { scroll-snap-align: start; }
  .stat__l { font-size: 0.8rem; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .map-pin__label { display: none; }
  .strip { grid-auto-columns: 74%; }
  .foot { padding-block: 2.5rem 1.5rem; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
  .foot__prog { display: none; }
  .foot__bottom { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Japanese: never split a word across lines. Short labels stay on one line;
   headings and labels break at phrase boundaries where the browser supports it. */
html[lang="ja"] :is(h1, h2, h3, dt, th, .btn, .chip, label, figcaption) { word-break: auto-phrase; }
html[lang="ja"] :is(.map__cities a, .facts__fig, .facts__fig span) { white-space: nowrap; }

/* ============================================================
   Photography (2026-10-13, branch photos/more-imagery)
   Photo-led hero, section images and a desktop mosaic gallery,
   all from the existing assets/img/visits set.
   Text over photos sits on a navy scrim of at least 82% opacity,
   so it holds AA contrast whatever the pixels underneath.
   ============================================================ */

.hero { background: var(--navy-deep); isolation: isolate; }
.hero__photo { position: absolute; inset: 0; z-index: -1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--cyan-soft); }
.hero .lede { color: var(--on-dark); }
.hero__cap {
  position: relative;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}
.hero__cap b { font-family: var(--label); font-weight: 600; color: #fff; margin-right: 0.35rem; }

.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, 0.72); background: transparent; color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.pic { margin: 0; }
.pic__frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--line); }
.pic__frame img { width: 100%; height: 100%; object-fit: cover; }
.pic figcaption { margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-faint); }
.pic figcaption b { font-family: var(--label); font-weight: 600; color: var(--navy); margin-right: 0.35rem; }
.pic--story { margin-top: 1.5rem; }
.pic--outline { margin-bottom: 1.5rem; }
.pic--band { margin-bottom: 1.6rem; }
.pic--band .pic__frame { aspect-ratio: 21 / 8; }
.pic--band img { object-position: 50% 40%; }
html[lang="ja"] :is(.pic, .tile, .strip figure, .hero__cap) b { white-space: nowrap; }

@media (min-width: 901px) {
  .gallery {
    grid-auto-flow: row dense;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-rows: 250px;
    gap: 0.8rem;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .gallery .tile { position: relative; overflow: hidden; border-radius: 12px; }
  .gallery .tile img { height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
  .gallery .tile--wide { grid-column: span 2; }
  .gallery .tile--tall { grid-row: span 2; }
  .gallery .tile figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 0.55rem 0.8rem 0.7rem;
    background: rgba(16, 18, 67, 0.86);
    color: var(--on-dark);
    font-size: 0.76rem;
  }
  .gallery .tile figcaption::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 100%;
    height: 2.2rem;
    background: linear-gradient(to top, rgba(16, 18, 67, 0.86), rgba(16, 18, 67, 0));
    pointer-events: none;
  }
  .gallery .tile figcaption b { color: #fff; }
  .gallery + .strip__hint { display: none; }
}

@media (max-width: 640px) {
  .pic--band .pic__frame { aspect-ratio: 16 / 9; }
}
.facts__fig--alt { white-space: nowrap; }
@media (max-width: 640px) { .facts__fig--alt { font-size: 1.15rem; } }
@media (max-width: 640px) {
  .pic__frame { aspect-ratio: 16 / 9; }
  .pic figcaption { font-size: 0.76rem; }
  .pic--story { margin-top: 1.2rem; }
  .pic--outline { margin-bottom: 1.2rem; }
}

/* Hero photo (dr-gede-home, permission confirmed 2026-10-13). No text sits on the
   faces: on laptop the photo fills the right half beside the text; up to 900px it
   is a clear band above the text. The caption sits on an 86% navy band. */
@media (min-width: 901px) {
  .hero { min-height: min(46rem, calc(100vh - 60px)); display: flex; flex-direction: column; justify-content: center; }
  .hero__photo { left: 50%; }
  .hero__photo img { object-position: 64% 38%; }
  .hero__photo::after { background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(16, 18, 67, 0) 14%); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__grid > * { grid-column: 1; }
  .hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.75rem); }
  html[lang="ja"] .hero h1 { font-size: clamp(1.9rem, 3.3vw, 3rem); }
  .hero__grid > .meishi { margin: 2rem 0 0; max-width: 420px; }
  .hero__cap {
    position: absolute;
    left: 50%; right: 0; bottom: 0;
    margin: 0;
    padding: 0.7rem 1.2rem 0.8rem;
    background: rgba(16, 18, 67, 0.86);
    color: var(--on-dark);
  }
}
@media (max-width: 900px) {
  .hero { padding-top: 0; }
  .hero__photo { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; margin-bottom: 1.4rem; }
  .hero__photo img { object-position: 60% 35%; }
  .hero__photo::after { background: linear-gradient(to bottom, rgba(16, 18, 67, 0) 70%, var(--navy-deep) 100%); }
  .hero__cap { padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto; }
}
/* JA stat labels: give the phone cards room so short labels never wrap mid-phrase. */
@media (max-width: 640px) { html[lang="ja"] .stats { grid-auto-columns: 72%; } }
