/*
  Fluid scale: every size interpolates linearly between a 375px phone and a
  1440px desktop, then stops. Breakpoints only switch layout, never sizes.
*/
:root {
  --gold: #a8961e;
  --gold-soft: #c4b35a;
  --ink: #333;
  --ink-soft: #666;
  --placeholder: #d9d9d9;
  --cream: rgba(253, 251, 227, 0.5);
  --cream-solid: #fefdf1;
  --dark: #1f1f1f;
  --font-display: Futura, "Jost", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;

  --fs-h1: clamp(36px, 25.4px + 2.82vw, 66px);
  --fs-h2: clamp(32px, 23.5px + 2.25vw, 56px);
  --fs-h3: clamp(20px, 17.2px + 0.75vw, 28px);
  --fs-lead: clamp(18px, 15.2px + 0.75vw, 26px);
  --fs-link: clamp(16px, 13.2px + 0.75vw, 24px);
  --fs-body: clamp(15px, 13.9px + 0.28vw, 18px);
  --fs-small: clamp(11px, 10.3px + 0.19vw, 13px);

  --gutter: clamp(24px, 15.5px + 2.25vw, 48px);
  --gutter-wide: clamp(24px, -3px + 7.2vw, 100px);
  --space-section: clamp(64px, 41.5px + 6vw, 128px);
  --space-stack: clamp(16px, 10.4px + 1.5vw, 32px);
  --header-h: clamp(56px, 47.5px + 2.25vw, 80px);
  --measure: 720px;
  --container: 1100px;
  /* Side padding that keeps content inside a centered --container on wide
     screens while backgrounds and dividers still run full width */
  --container-pad: max(var(--gutter-wide), (100% - var(--container)) / 2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.8;
}
body.is-menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
}

.section-title {
  font-size: var(--fs-h2);
  padding: 0 var(--gutter) var(--space-stack);
}
.section-title--gold { color: var(--gold); }

.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.button {
  display: inline-block;
  width: fit-content;
  padding: 8px 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-link);
  line-height: 1.5;
  color: var(--gold);
  background: #fff;
  border: 1px solid var(--gold);
  transition: background-color 0.2s, color 0.2s;
}
.button:hover { color: #fff; background: var(--gold); }

/* ---------- Header (ヘッター) ---------- */
.header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 12px + 1vw, 28px);
  padding: 0 var(--gutter-wide);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(168, 150, 30, 0.7);
  z-index: 50;
}
/* Home: transparent over the hero, turns into the regular header once the hero scrolls away */
.header--overlay {
  position: fixed;
  inset: 0 0 auto 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.header--overlay.is-solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent transparent rgba(168, 150, 30, 0.7);
}
.header__logo {
  margin-right: auto;
  display: block;
  line-height: 0;
}
.header__mark {
  display: block;
  width: auto;
  height: clamp(34px, 28.6px + 1.5vw, 50px);
}
/* The gold rule: lighter over the photo so it stays visible, regular gold on white */
.header__mark .rule { fill: var(--gold); }
.header--overlay:not(.is-solid) .header__mark .rule { fill: var(--gold-soft); }
.is-menu-open .header--overlay .header__mark .rule { fill: var(--gold); }
.header__lang {
  display: flex;
  gap: 0.4em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(12px, 10.6px + 0.38vw, 16px);
}
.header__lang a { opacity: 0.55; }
.header__lang a[aria-current] { opacity: 1; }
.header__lang a:hover { opacity: 1; }

/* Three bars from the Figma "accordion button", morphing into a close mark */
.menu-button {
  position: relative;
  width: clamp(26px, 24.6px + 0.38vw, 30px);
  aspect-ratio: 1;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-button span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.2s, top 0.3s;
}
.menu-button span:nth-child(1) { top: 3px; }
.menu-button span:nth-child(2) { top: calc(50% - 1px); }
.menu-button span:nth-child(3) { top: calc(100% - 5px); }
.is-menu-open .menu-button { color: var(--ink); }
.is-menu-open .menu-button span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.is-menu-open .menu-button span:nth-child(2) { opacity: 0; }
.is-menu-open .menu-button span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }
.is-menu-open .header--overlay { color: var(--ink); border-color: transparent; }
.is-menu-open .header { background: var(--cream-solid); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--space-stack)) var(--gutter-wide) var(--space-stack);
  background: var(--cream-solid);
  color: var(--ink);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.is-menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}
.menu__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(24px, 12px + 3vw, 48px) var(--gutter);
  align-items: start;
  width: min(1040px, 100%);
  margin: auto;
}
.menu__heading {
  display: block;
  margin: 0;
  padding: clamp(4px, 2.6px + 0.38vw, 8px) 0;
  border-bottom: 1px solid rgba(168, 150, 30, 0.35);
  font-size: clamp(22px, 17px + 1vw, 30px);
  transform: translateY(8px);
  transition: color 0.2s, transform 0.4s;
}
.is-menu-open .menu__heading { transform: none; }
.menu__sub {
  list-style: none;
  margin-top: clamp(8px, 4px + 1vw, 16px);
}
.menu__sub a {
  display: block;
  padding: clamp(4px, 3px + 0.3vw, 8px) 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 15px + 0.5vw, 22px);
  line-height: 1.3;
  transition: color 0.2s;
}
.menu__sub span { margin-top: 2px; }
.menu__list a:hover,
.menu__list a[aria-current] { color: var(--gold); }
.menu__external { font-style: normal; font-size: 0.6em; vertical-align: super; }
.menu__list span {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1040px, 100%);
  margin: var(--space-stack) auto 0;
}

/* ---------- Social icons ---------- */
.social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social img { width: 30px; height: 30px; object-fit: contain; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  /* Fills the first screen except a strip of the next section, so visitors see there is more below */
  min-height: max(420px, calc(100svh - 96px));
  display: flex;
  align-items: flex-end;
  padding: var(--header-h) var(--gutter-wide) clamp(24px, 4vw, 48px);
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.65) 100%);
}
.hero__body {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero__verse {
  font-size: var(--fs-h3);
  line-height: 1.5;
}
.hero__ref {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
}
.hero .service__live {
  align-items: flex-start;
  padding: 0;
  margin-top: calc(var(--space-stack) * 1.5);
  text-align: left;
  scroll-margin-top: var(--header-h);
}
.hero .service__live-note { color: #fff; max-width: 560px; }
.hero__lead {
  margin-top: var(--space-stack);
  font-size: var(--fs-body);
}

/* ---------- Home: stripe under the hero (series / event / about) ---------- */
.stripe {
  background: #fff;
  border-bottom: 1px solid var(--gold);
}
.stripe__inner {
  display: grid;
  max-width: calc(var(--container) + var(--gutter-wide) * 2);
  margin-inline: auto;
}
.stripe__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 3vw, 40px) var(--gutter);
  border-top: 1px solid var(--gold-soft);
  transition: background-color 0.2s;
}
.stripe__item:first-child { border-top: 0; }
.stripe__item:hover { background: var(--cream-solid); }
.stripe__label {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.stripe__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.35;
}
.stripe__title--text { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 400; line-height: 1.7; }
.stripe__note {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-soft);
}
.stripe__cta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--gold);
}
.stripe__item:hover .stripe__cta { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Home: Sunday Service + Access ---------- */
.service {
  background: var(--cream);
  border-bottom: 1px solid var(--gold);
  padding-block: var(--space-section);
  scroll-margin-top: var(--header-h);
}
.service--more { border-top: 0; }
.service__live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-stack);
  padding: 0 var(--gutter);
  text-align: center;
}
.button--live {
  padding: 14px 32px;
  color: #fff;
  background: var(--gold);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.button__time { font-size: var(--fs-body); opacity: 0.9; }
.button--live:hover { color: var(--gold); background: #fff; }
.service__live-note {
  max-width: 520px;
  font-size: var(--fs-small);
}
.service__links {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  margin-top: var(--space-stack);
  padding: 0 var(--gutter);
}
.service__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: clamp(120px, 30vw, 150px);
  aspect-ratio: 1;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: clamp(16px, 14.6px + 0.38vw, 20px);
  font-size: var(--fs-small);
  line-height: 1.4;
  transition: background-color 0.2s;
}
.service__card:hover { background: var(--cream-solid); }
.service__card img {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.service__card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-link);
}

.access {
  margin-top: var(--space-section);
  scroll-margin-top: var(--header-h);
}
.access__body {
  width: min(560px, 100% - var(--gutter) * 2);
  margin: 0 auto;
}
.access__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: var(--fs-lead);
  margin-bottom: 8px;
}
.access__map {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(12px, 11px + 0.28vw, 15px);
  line-height: 1;
  color: var(--gold);
  background: #fff;
  border: 1px solid var(--gold);
  padding: 7px 10px;
  white-space: nowrap;
}

.access__embed {
  width: min(960px, 100% - var(--gutter) * 2);
  margin: var(--space-stack) auto 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--gold);
  background: var(--placeholder);
}
.access__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 767px) {
  .access__embed { aspect-ratio: 4 / 3; }
}
.route-video {
  width: min(960px, 100% - var(--gutter) * 2);
  margin: var(--space-stack) auto 0;
}
.route-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--gold);
  background: var(--placeholder);
}
.route-video figcaption {
  margin-top: 8px;
  font-size: var(--fs-small);
  text-align: center;
}

/* ---------- Home: Visitor Guide / About Us ---------- */
.guide {
  border-bottom: 1px solid var(--gold);
  padding-block: calc(var(--space-section) + var(--fs-h2) / 2) calc(var(--space-section) + 24px);
}
.guide__block {
  position: relative;
  width: min(1000px, 100% - var(--gutter) * 2);
  margin: 0 auto;
}
.guide__block + .guide__block { margin-top: calc(var(--space-section) + var(--fs-h2)); }
.guide__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--placeholder);
}
.guide__title {
  position: absolute;
  inset: 0 0 auto 0;
  transform: translateY(-50%);
  font-size: var(--fs-h2);
  text-align: center;
  text-shadow: 0 4px 4px rgba(168, 150, 30, 0.25);
}
.guide__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(25%);
  width: min(60%, 560px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.guide__panel--narrow { width: min(50%, 460px); }
.guide__panel a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--fs-link);
  padding: clamp(12px, 6px + 1.6vw, 40px) clamp(12px, 4px + 2.2vw, 48px);
  transition: background-color 0.2s, color 0.2s;
}
.guide__panel a:hover { color: #fff; background: var(--gold); }

/* ---------- News list (home + index) ---------- */
.news {
  background: var(--cream);
  padding-block: var(--space-section);
  text-align: center;
}
.news__list {
  width: min(var(--measure), 100% - var(--gutter) * 2);
  margin: var(--space-stack) auto 0;
  list-style: none;
  text-align: left;
}
.news__item { border-bottom: 1px solid var(--gold); }
.news__item a {
  display: block;
  padding: var(--space-stack) 0;
  transition: color 0.2s;
}
.news__item a:hover { color: var(--gold); }
.news__meta {
  display: flex;
  align-items: center;
  gap: 1.5em;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.news .button { margin-top: calc(var(--space-stack) * 2); }

/* News page: three-column cards */
.news-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-stack) var(--gutter);
}
.news-card a { display: block; transition: color 0.2s; }
.news-card a:hover { color: var(--gold); }
.news-card__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--gold);
  margin-bottom: 12px;
}
.news-card__photo--empty { background: var(--placeholder); }
.news-card__title { margin-top: 4px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  padding: 0 0.8em;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: #fff;
  background: var(--gold-soft);
}

/* ---------- Inner pages ---------- */
/* Short hero on every subpage: same image treatment as the home hero, about a third of the height */
.hero--sub {
  height: clamp(200px, 30svh, 320px);
  padding-inline: var(--container-pad); /* title lines up with the page content below */
  padding-bottom: var(--space-stack);
}
.hero--sub .hero__body { max-width: none; }
.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.15;
}
.hero__sub {
  margin-top: 4px;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
}

.page-section {
  padding: var(--space-stack) var(--container-pad) var(--space-section);
  scroll-margin-top: var(--header-h);
}
.page-section + .page-section { border-top: 1px solid rgba(168, 150, 30, 0.35); padding-top: var(--space-section); }
.page-section--cream { background: var(--cream); }
.page-section__title {
  font-size: var(--fs-h2);
  color: var(--gold);
  margin-bottom: var(--space-stack);
}
.page-section__sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.page-section--article { padding-top: var(--space-section); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2em;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.5;
}
.prose h2:first-child { margin-top: 0; }
.prose img { width: 100%; height: auto; }
.prose iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

.banner {
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 1024 / 362;
  object-fit: cover;
  margin-bottom: var(--space-stack);
}

.breadcrumb {
  padding: var(--space-stack) var(--gutter-wide) 0;
  font-size: var(--fs-small);
}
.breadcrumb a { color: var(--gold); }

/* ---------- Visitor guide: schedule timeline ---------- */
.timeline {
  list-style: none;
  max-width: var(--measure);
  border-left: 2px solid var(--gold);
  margin-left: 5px;
}
.timeline__item {
  position: relative;
  padding: 0 0 var(--space-stack) clamp(20px, 14.4px + 1.5vw, 36px);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline__time {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.5;
}
.timeline__time time {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold);
  margin-right: 0.5em;
}
.timeline__body > * + * { margin-top: 0.6em; }
.timeline__body { margin-top: 8px; }

/* ---------- Visitor guide: Q&A ---------- */
.qa { max-width: 1000px; }
.qa__item {
  border: 1px solid transparent;
  background: var(--cream);
  transition: background-color 0.2s, border-color 0.2s;
}
.qa__item + .qa__item { margin-top: var(--space-stack); }
.qa__item[open] { background: #fff; border-color: rgba(168, 150, 30, 0.7); }
.qa__q {
  display: grid;
  grid-template-columns: clamp(32px, 20.7px + 3vw, 64px) 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 12px + 1vw, 28px) clamp(16px, 8.9px + 1.9vw, 36px);
  cursor: pointer;
  list-style: none;
  font-weight: 400;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__mark,
.qa__arrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--gold);
  line-height: 1;
}
.qa__arrow::before { content: "↓"; }
.qa__item[open] .qa__arrow::before { content: "↑"; }
.qa__a {
  display: grid;
  grid-template-columns: clamp(32px, 20.7px + 3vw, 64px) 1fr;
  gap: 16px;
  padding: 0 clamp(16px, 8.9px + 1.9vw, 36px) clamp(20px, 14.4px + 1.5vw, 36px);
}
.qa__a > div > * + * { margin-top: 0.8em; }

/* ---------- About: core values ---------- */
.values {
  --values-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --values-closed-w: 100px;
  container-type: inline-size;
  display: flex;
  /* Hero: same height range as the home page hero */
  min-height: clamp(420px, 80svh, 760px);
}
.values-hero {
  --values-head-top: clamp(24px, 16px + 2vw, 48px);
  position: relative;
  scroll-margin-top: var(--header-h);
}
/* Page title is repeated in the top of every pane and shown in whichever one
   is open, so no open pane has an empty band above its text. The real h1
   stays in .values-hero__head for screen readers (and for mobile, where the
   panes stack). */
.values-hero__head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.value__head {
  position: absolute;
  top: var(--values-head-top);
  left: clamp(12px, 8px + 1vw, 24px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.value.is-open .value__head {
  opacity: 1;
  transition: opacity 0.4s ease 0.35s;
}
.values-hero__title {
  font-size: var(--fs-h1);
  color: var(--gold);
}
.values-hero__sub {
  margin-top: 4px;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: #fff;
}
/* Reserve the title's space so pane text never runs under it */
.value { padding-top: calc(var(--values-head-top) + var(--fs-h1) * 1.2 + 32px); }
.values-hero + .page-section { padding-top: var(--space-section); }
.value {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 0;
  min-width: var(--values-closed-w); /* keeps the turned title of a closed pane fully visible */
  overflow: hidden;
  color: #fff;
  background: var(--dark);
  transition: flex-grow 0.5s var(--values-ease);
}
.value:nth-child(even) { background: #737373; }
.value:not(.is-open) { cursor: pointer; }
.value.is-open { flex-grow: 4; }
.value__button {
  display: flex;
  flex-direction: column;
  width: max-content;
  padding: clamp(12px, 8px + 1vw, 24px);
  text-align: left;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  transform-origin: left bottom;
  transition: transform 0.5s var(--values-ease);
}
/* Closed panes: title turned to read bottom-to-top along the left edge */
.value:not(.is-open) .value__button { transform: rotate(-90deg) translateY(100%); }
.value__num { font-size: var(--fs-small); font-family: var(--font-display); }
.value__name {
  font-size: clamp(18px, 15.2px + 0.75vw, 26px);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}
.value__jp { font-size: var(--fs-small); }
/* Arrow on closed panes so it is clear they open. Points down; on desktop the
   turned button makes it point right, toward where the pane will grow */
.value__button::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: opacity 0.3s;
}
.value.is-open .value__button::after { opacity: 0; }
/* Body grows from 0 to its measured height (set in main.js) so the title slides
   instead of jumping; its width is fixed to the open pane's final width so the
   text never re-wraps while the pane widens */
.value__body {
  width: min(100cqw * 4 / 9, 100cqw - var(--values-closed-w) * 5);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.5s var(--values-ease), visibility 0s 0.5s;
}
.value.is-open .value__body {
  visibility: visible;
  transition: max-height 0.5s var(--values-ease), visibility 0s;
}
.value__image {
  display: block;
  width: calc(100% - 2 * clamp(12px, 8px + 1vw, 24px));
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 auto clamp(12px, 8px + 1vw, 20px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.value.is-open .value__image {
  opacity: 1;
  transition: opacity 0.4s ease 0.35s;
}
.value__text {
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0 clamp(12px, 8px + 1vw, 24px) clamp(16px, 10.4px + 1.5vw, 32px);
  font-size: clamp(13px, 12.3px + 0.19vw, 15px);
  line-height: 1.9;
}
.value.is-open .value__text {
  opacity: 1;
  transition: opacity 0.4s ease 0.35s;
}

/* ---------- About / Staff: cards and profiles ---------- */
.staff-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-stack) var(--gutter);
  max-width: 1040px;
}
.staff-card a { display: block; }
.staff-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.staff-card__role {
  display: inline-block;
  margin-top: -0.7em;
  margin-left: 8px;
  padding: 0 8px;
  position: relative;
  background: #fff;
  color: var(--gold);
  font-size: var(--fs-h3);
}
.staff-card__name {
  padding: 0 8px;
  font-size: var(--fs-small);
}
.staff-card a:hover .staff-card__name { color: var(--gold); }

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-stack) var(--gutter);
  max-width: 1040px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.profile + .profile {
  margin-top: var(--space-section);
  padding-top: var(--space-section);
  border-top: 1px solid rgba(168, 150, 30, 0.35);
}
.profile__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.profile__role {
  color: var(--gold);
  font-size: var(--fs-h3);
}
.profile__name {
  font-size: var(--fs-lead);
  font-weight: 400;
  margin-bottom: var(--space-stack);
}
.profile blockquote {
  padding-left: 1em;
  border-left: 2px solid var(--gold);
  color: var(--ink-soft);
}

/* ---------- News article ---------- */
.article-head {
  display: flex;
  align-items: center;
  gap: 1.5em;
  margin-bottom: var(--space-stack);
  font-size: var(--fs-small);
}
.article-title {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: var(--space-stack);
}

/* ---------- Contact form ---------- */
.form { max-width: 600px; margin-top: var(--space-stack); }
.form__field + .form__field { margin-top: 20px; }
.form label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-small);
}
.form small { color: var(--ink-soft); }
.form input,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--gold); }
.form .button { margin-top: var(--space-stack); cursor: pointer; }
.form__status {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
}
.form__status[hidden] { display: none; }

.prose .qr {
  width: 180px;
  height: auto;
  margin-block: var(--space-stack);
}

/* ---------- Footer (フッター) ---------- */
.footer {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--gold);
  padding: clamp(40px, 32.3px + 2vw, 64px) var(--gutter-wide);
}
.footer__logo {
  display: block;
  width: clamp(120px, 100px + 4vw, 170px);
  margin-bottom: clamp(32px, 26.4px + 1.5vw, 48px);
}
.footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}
.footer__nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
}
.footer__nav a {
  display: block;
  font-size: var(--fs-link);
}
.footer__nav a:hover { color: var(--gold); }
.footer__nav span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-small);
}
.footer__home { display: none; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: clamp(32px, 26.4px + 1.5vw, 48px);
}
.footer__links {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  font-size: var(--fs-small);
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  margin-top: 16px;
  font-size: var(--fs-small);
}

/* ---------- Desktop layout choices ---------- */
@media (min-width: 768px) {
  .stripe__inner { grid-template-columns: repeat(3, 1fr); }
  .stripe__item { border-top: 0; border-left: 1px solid var(--gold-soft); }
  .stripe__item:first-child { border-left: 0; }
  .section-title { text-align: center; }
  .section-title--upper { text-transform: uppercase; }
  .profile { grid-template-columns: 320px minmax(0, 1fr); }
  .profile__photo { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Mobile layout choices ---------- */
@media (max-width: 767px) {
  .service > .section-title--gold { color: var(--ink); }
  .service__links { gap: 40px; }
  .service__card { flex: 1 1 0; width: auto; }
  .access__body { margin: 0 var(--gutter); }
  .guide__title { text-shadow: none; }

  .values {
    flex-direction: column;
    min-height: 0;
  }
  .value { flex: none; }
  .values-hero__head {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    padding: 32px 24px 0;
    background: var(--dark);
  }
  .value__head { display: none; }
  .value { padding-top: 0; }
  .value__button,
  .value:not(.is-open) .value__button {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    width: 100%;
    padding: 24px;
    white-space: normal;
    transform: none;
    transition: none;
  }
  .value__num { flex-basis: 100%; }
  .value__button::after { margin: 0 4px 0 auto; }
  .value__name { font-size: 28px; }
  .value__jp::before {
    content: "";
    display: inline-block;
    width: 40px;
    margin-right: 16px;
    vertical-align: middle;
    border-top: 1px solid currentColor;
    opacity: 0.6;
  }
  .value__text { padding: 0 24px 32px; }
  .value__image { width: calc(100% - 48px); margin-bottom: 16px; }
  .value__body { width: auto; }
  .value.is-open .value__text,
  .value.is-open .value__image { transition-delay: 0.15s; }

  .footer__home { display: block; }
  .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 20px 16px;
  }
  .footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
  .social { gap: 12px; }
  .social img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}
