:root {
  color-scheme: light;
  --ink: #10283c;
  --ink-deep: #071925;
  --blue: #165d82;
  --blue-pale: #e5f1f5;
  --paper: #f4f5f2;
  --white: #ffffff;
  --yellow: #f3c948;
  --orange: #e66c3c;
  --green: #275e54;
  --muted: #586975;
  --line: rgba(16, 40, 60, 0.18);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

h1,
h2,
h3 {
  line-break: strict;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 2px solid var(--blue);
}

.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 25, 37, 0.96);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.ai-brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: url("./assets/baba-ai-speaking-grid.png") left top / 200% 200% no-repeat;
}

.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { color: var(--white); font-size: 0.98rem; letter-spacing: 0.08em; line-height: 1.35; }
.brand-copy > span { color: rgba(255, 255, 255, 0.58); font-size: 0.68rem; line-height: 1.35; }

.global-nav {
  display: flex;
  gap: 1.45rem;
  font-size: 0.83rem;
}

.global-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.global-nav a[aria-current="page"] { color: var(--yellow); }

.page-hero {
  background: var(--ink-deep);
  color: var(--white);
}

.page-hero .section { padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.page-kicker { margin: 0 0 0.6rem; color: var(--yellow); font-family: Georgia, serif; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; }
.page-hero h1 { max-width: 1000px; margin: 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: clamp(3rem, 7vw, 7rem); font-weight: 600; letter-spacing: -0.055em; line-height: 1.2; }
.page-lead { max-width: 850px; margin: 1.5rem 0 0; color: rgba(255, 255, 255, 0.72); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.page-hero .vision-slogan { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(560px, 1.42fr) minmax(360px, 0.88fr);
  min-height: clamp(660px, calc(100svh - 72px), 860px);
  background: var(--ink-deep);
  color: var(--white);
}

.detail-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 5.5rem);
}

.detail-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.detail-hero .page-lead { max-width: 720px; }
.detail-hero .vision-slogan { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.detail-ai-stage { min-height: clamp(660px, calc(100svh - 72px), 860px); }
.detail-ai-stage .ai-disclosure strong { color: var(--yellow); }
.page-next { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); }
.page-next h2 { margin: 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.button-link { display: inline-block; flex: 0 0 auto; padding: 0.85rem 1.2rem; background: var(--yellow); color: var(--ink-deep); font-weight: 700; text-decoration: none; }
.button-link:hover, .button-link:focus-visible { background: var(--ink-deep); color: var(--white); }

.draft-notice {
  max-width: 850px;
  margin: 1.4rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.home-overview { background: var(--white); }
.overview-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-bottom: 3rem;
}

.overview-heading h2,
.home-policies h2,
.home-profile h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.text-link {
  display: inline-block;
  margin-top: 1.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.home-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.home-link-grid a {
  min-height: 190px;
  padding: 1.5rem;
  background: var(--paper);
  text-decoration: none;
}

.home-link-grid a:hover,
.home-link-grid a:focus-visible { background: var(--blue-pale); }
.home-link-grid span { display: block; color: var(--orange); font-family: Georgia, serif; font-size: 0.78rem; }
.home-link-grid strong { display: block; margin-top: 0.8rem; font-size: 1rem; line-height: 1.55; }
.home-link-grid small { display: block; margin-top: 0.6rem; color: var(--muted); line-height: 1.55; }

.home-policies { background: var(--white); }
.home-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
  padding-bottom: 2rem;
}

.home-policy-grid a {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 4px solid var(--blue);
  background: var(--paper);
  text-decoration: none;
}

.home-policy-grid a:last-child { grid-column: 1 / -1; }
.home-policy-grid a:hover, .home-policy-grid a:focus-visible { border-top-color: var(--orange); background: var(--blue-pale); }
.home-policy-grid span { display: block; color: var(--blue); font-size: 0.75rem; font-weight: 700; }
.home-policy-grid strong { display: block; margin-top: 0.55rem; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.55; }
.home-section-action { padding-top: 0; text-align: right; }

.home-profile {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.home-profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.home-profile > div:last-child > p { max-width: 780px; color: var(--muted); }
.home-profile .home-profile-note { font-size: 0.78rem; }

.ai-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--ink-deep);
  color: var(--white);
}

.ai-callout h2 { margin: 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.4; }
.ai-callout p:not(.page-kicker) { margin: 0.5rem 0 0; color: rgba(255, 255, 255, 0.65); }
.ai-callout .button-link { color: var(--ink-deep); }
.ai-callout .button-link:hover, .ai-callout .button-link:focus-visible { background: var(--white); }

.policy-note,
.expo-priority,
.positions,
.reason,
.principles { scroll-margin-top: 88px; }

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 5vw;
}

.hero {
  display: grid;
  grid-template-columns: minmax(600px, 1.42fr) minmax(360px, 0.88fr);
  min-height: clamp(660px, calc(100svh - 72px), 860px);
  background: var(--ink-deep);
  color: var(--white);
}

.conversation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(2.5rem, 4.5vw, 4.5rem) clamp(2.5rem, 4.5vw, 5.5rem);
}

.conversation-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.conversation-heading > div { width: 100%; }

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  max-width: 900px;
  font-size: clamp(2.4rem, 3.25vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.preview-badge {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(243, 201, 72, 0.55);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 700;
}

.conversation-intro {
  max-width: 720px;
  margin: 1rem 0 1.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.chat-window {
  min-height: 190px;
  max-height: 300px;
  overflow-y: auto;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.message {
  max-width: 86%;
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.65;
}

.message:last-child { margin-bottom: 0; }
.message p { margin: 0; }
.message-assistant { background: var(--white); }
.message-user { margin-left: auto; background: var(--yellow); }

.message-name,
.message-source {
  display: block;
  font-size: 0.68rem;
}

.message-name {
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-weight: 700;
}

.message-source {
  margin-top: 0.5rem;
  color: var(--muted);
}

.message-source a {
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.typing-dots { display: inline-flex; gap: 0.25rem; padding: 0.35rem 0; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: typing 0.8s ease-in-out infinite alternate; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing { to { opacity: 0.25; transform: translateY(-3px); } }

.question-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.question-suggestions button {
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.73rem;
  cursor: pointer;
}

.question-suggestions button:hover,
.question-suggestions button:focus-visible {
  border-color: var(--yellow);
  color: var(--white);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid var(--white);
  background: var(--white);
}

.chat-form input {
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 0;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.chat-form:focus-within { border-color: var(--yellow); }

.chat-form button {
  min-width: 74px;
  border: 0;
  background: var(--yellow);
  color: var(--ink-deep);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-notes {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
}

.voice-status {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
}

.ai-caution {
  margin: 0.75rem 0 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--yellow);
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.7rem;
  line-height: 1.55;
}

.ai-stage {
  position: relative;
  min-height: clamp(660px, calc(100svh - 72px), 860px);
  overflow: hidden;
  background: var(--ink-deep);
}

.ai-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, rgba(7, 25, 37, 0.52));
  pointer-events: none;
}

.ai-face-frame {
  position: absolute;
  left: 50%;
  bottom: clamp(2.2rem, 5vh, 4.5rem);
  z-index: 1;
  width: min(78%, 560px);
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateX(-50%);
  background: #00162d;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.ai-face-video,
.ai-face-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;
}

.ai-face-fallback { display: none; }

.ai-portrait {
  position: absolute;
  left: 50%;
  bottom: clamp(2.2rem, 5vh, 4.5rem);
  width: min(78%, 560px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background-image: url("./assets/baba-ai-speaking-grid.png");
  background-position: 0 0;
  background-size: calc(200% + 8px) calc(200% + 8px);
  background-repeat: no-repeat;
  animation: talk-frames 5.2s steps(1, end) infinite;
}

.ai-stage.is-answering .ai-portrait { animation-duration: 1.55s; }

.ai-avatar {
  position: absolute;
  left: 50%;
  bottom: clamp(2.2rem, 5vh, 4.5rem);
  width: min(78%, 560px);
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateX(-50%);
  background: #071925;
}

.ai-video,
.ai-avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-video {
  opacity: 1;
  transition: opacity 120ms linear;
}

.ai-video-speaking { opacity: 0; }
.ai-stage.is-answering .ai-video-idle { opacity: 0; }
.ai-stage.is-answering .ai-video-speaking { opacity: 1; }
.ai-avatar-fallback { display: none; }
.ai-avatar.video-fallback .ai-video { display: none; }
.ai-avatar.video-fallback .ai-avatar-fallback { display: block; }

@keyframes talk-frames {
  0%, 23% { background-position: 0 0; }
  24%, 39% { background-position: 100% 0; }
  40%, 51% { background-position: 0 0; }
  52%, 62% { background-position: 100% 0; }
  63%, 70% { background-position: 0 100%; }
  71%, 84% { background-position: 0 0; }
  85%, 92% { background-position: 100% 100%; }
  93%, 100% { background-position: 0 0; }
}

.ai-disclosure {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--yellow);
  background: rgba(7, 25, 37, 0.88);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.ai-disclosure strong,
.ai-disclosure span {
  display: block;
}

.ai-disclosure strong {
  font-size: 0.78rem;
}

.ai-disclosure span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.section-label {
  position: relative;
  align-self: start;
  margin-top: 0.35rem;
  padding-top: 0.8rem;
  border-top: 4px solid var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.metropolis {
  overflow: hidden;
  background: var(--white);
}

.research {
  background: var(--blue-pale);
}

.research-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-bottom: 3rem;
}

.research-kicker {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.research-intro h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(2rem, 3.7vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.research-intro > div:last-child > p:last-child {
  max-width: 820px;
  margin: 1.35rem 0 0;
  color: var(--muted);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 2rem;
  background: var(--line);
}

.research-grid article {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--white);
}

.research-grid article > span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.research-grid h3 {
  margin: 0.55rem 0 0.8rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.5;
}

.research-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.research-grid a {
  display: block;
  width: fit-content;
  margin-top: 1rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.research-grid a + a { margin-top: 0.45rem; }
.research-grid .research-proposal { background: var(--ink-deep); color: var(--white); }
.research-grid .research-proposal > span,
.research-grid .research-proposal a { color: var(--yellow); }
.research-grid .research-proposal p { color: rgba(255, 255, 255, 0.67); }
.research-note { margin-top: 0; padding-top: 0; color: var(--muted); font-size: 0.78rem; }

.council-review { padding-top: 1rem; }

.council-review-heading {
  max-width: 900px;
  padding-top: clamp(2.2rem, 5vw, 4.2rem);
  border-top: 4px solid var(--blue);
}

.council-review-heading h3 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.council-review-heading > p:last-child { max-width: 820px; margin: 1rem 0 0; color: var(--muted); }

.council-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.policy-development { padding-top: 0; }
.policy-development .council-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.council-review-grid article { padding: clamp(1.4rem, 2.6vw, 2.2rem); border-top: 4px solid var(--blue); background: var(--white); }
.council-review-grid .review-conditional { border-top-color: var(--yellow); }
.council-review-grid .review-different { border-top-color: var(--orange); }
.council-review-grid span { color: var(--blue); font-size: 0.76rem; font-weight: 700; }
.council-review-grid .review-conditional span { color: #805d00; }
.council-review-grid .review-different span { color: var(--orange); }
.council-review-grid h4 { margin: 0.45rem 0 1rem; font-size: 1.05rem; line-height: 1.45; }
.council-review-grid ul { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.84rem; }
.council-review-grid li + li { margin-top: 0.7rem; }

.council-detail {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2.2rem, 5vw, 3.6rem);
  border-top: 1px solid rgba(16, 56, 92, 0.18);
}

.council-detail-heading { max-width: 860px; }
.council-detail-heading > p:first-child { margin: 0 0 0.55rem; color: var(--orange); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; }
.council-detail-heading h4 { margin: 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: clamp(1.65rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.4; }
.council-detail-heading > p:last-child { max-width: 760px; margin: 1rem 0 0; color: var(--muted); }

.council-detail-list { display: grid; gap: 1rem; margin-top: 2rem; }
.council-detail-list > article {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3.2vw, 2.4rem);
  border-left: 4px solid var(--orange);
  background: var(--white);
}

.detail-number { color: rgba(16, 56, 92, 0.28); font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; line-height: 1; }
.detail-content { min-width: 0; }
.detail-topic { margin: 0 0 0.35rem; color: var(--blue); font-size: 0.76rem; font-weight: 700; }
.detail-content h5 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.5; }
.detail-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.detail-compare > div { padding: 1rem 1.1rem; border: 1px solid rgba(16, 56, 92, 0.12); background: var(--paper); }
.detail-compare .detail-baba { border-color: rgba(20, 90, 145, 0.24); background: rgba(228, 242, 251, 0.58); }
.detail-compare strong { color: var(--ink); font-size: 0.78rem; }
.detail-compare .detail-baba strong { color: var(--blue); }
.detail-compare p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.84rem; }
.detail-rule { margin: 0.9rem 0 0; padding: 0.85rem 1rem; border-left: 3px solid var(--yellow); background: rgba(246, 191, 38, 0.1); color: var(--muted); font-size: 0.82rem; }
.detail-rule strong { color: #755500; }

.council-sources { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 1.5rem; }
.council-sources a { color: var(--blue); font-size: 0.74rem; font-weight: 700; text-underline-offset: 0.2rem; }
.council-review-note { max-width: 900px; margin: 1.2rem 0 0; color: var(--muted); font-size: 0.78rem; }

.vision-intro,
.principles {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}

.vision-intro { padding-bottom: 3rem; }
.vision-kicker { margin: 0 0 0.35rem; color: var(--orange); font-size: 0.82rem; font-weight: 700; }

.vision-intro h2,
.principles h2,
.expo-priority h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.vision-lead,
.principles-lead {
  max-width: 850px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.vision-slogan {
  max-width: 850px;
  margin: 1.15rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--yellow);
  background: rgba(246, 191, 38, 0.1);
  color: var(--ink);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  font-weight: 700;
  line-height: 1.8;
}

.city-system {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  padding-top: 0;
}

.city-system-core {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--ink-deep);
  color: var(--white);
}

.city-system-core span { color: var(--yellow); font-family: Georgia, serif; font-size: 0.78rem; letter-spacing: 0.18em; }
.city-system-core strong { margin-top: 0.9rem; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.45; }
.city-system-core p { margin: 1rem 0 0; color: rgba(255,255,255,0.65); font-size: 0.88rem; }

.city-functions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.city-functions article { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); }
.city-functions span,
.principle-grid span { color: var(--orange); font-family: Georgia, serif; font-size: 0.78rem; }
.city-functions h3,
.principle-grid h3 { margin: 0.55rem 0; font-size: 1.05rem; line-height: 1.5; }
.city-functions p,
.principle-grid p { margin: 0; color: var(--muted); font-size: 0.84rem; }

.principles { background: var(--paper); }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.4rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle-grid article { padding: 1.4rem; background: var(--white); }

.cooperation-principle {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cooperation-principle h3 {
  margin: 0 0 0.5rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.cooperation-principle p { max-width: 820px; margin: 0; color: var(--muted); }

.yokohama-pride {
  margin: 2.5rem 0 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 0;
  border-left: 5px solid var(--yellow);
  background: var(--ink-deep);
  color: var(--white);
}

.yokohama-pride span { color: var(--yellow); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; }
.yokohama-pride p { margin: 0.9rem 0 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: clamp(1rem, 1.6vw, 1.24rem); line-height: 1.75; }

.expo-priority { background: var(--yellow); color: var(--ink-deep); }
.expo-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.expo-priority h2 {
  max-width: 18em;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.3;
  text-wrap: balance;
}
.expo-label { margin: 0 0 0.55rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.expo-inner > div:last-child p { margin: 0; }
.expo-inner a { display: inline-block; margin-top: 1.2rem; padding-bottom: 0.15rem; border-bottom: 2px solid currentColor; font-weight: 700; text-decoration: none; }

.positions { background: var(--white); }
.position-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.position-cards article { padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid var(--line); background: var(--paper); }
.position-cards span { color: var(--orange); font-size: 0.78rem; font-weight: 700; }
.position-cards h3 { margin: 0.55rem 0 0.8rem; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.5; }
.position-cards p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.position-cards p + p { margin-top: 0.9rem; }
.position-cards a { display: inline-block; margin-top: 1rem; color: var(--blue); font-size: 0.8rem; font-weight: 700; }
.position-cards .organization-position { grid-column: 1 / -1; background: var(--blue-pale); }

.reason,
.ai-story,
.positions,
.policy-intro,
.activities-intro,
.contact,
.position-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}

.reason h2,
.ai-story h2,
.positions h2,
.policy-intro h2,
.activities-intro h2,
.profile h2,
.position h2,
.contact h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(2rem, 3.7vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.ai-story {
  background:
    linear-gradient(90deg, rgba(22, 93, 130, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(22, 93, 130, 0.07) 1px, transparent 1px) 0 0 / 48px 48px;
}

.ai-story > div:last-child > p {
  max-width: 820px;
  margin: 1.35rem 0 0;
  color: var(--muted);
}

.ai-story > div:last-child > p:first-child { margin-top: 0; }

.ai-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
}

.ai-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ai-legend i {
  width: 12px;
  height: 12px;
}

.legend-ai { background: var(--yellow); }
.legend-fact { background: var(--blue); }

.question-list { margin-top: 3rem; border-top: 1px solid var(--line); }

.question-list p {
  margin: 0;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 600;
}

.question-list p::before { content: "—"; margin-right: 0.6rem; color: var(--orange); }
.reason-note { max-width: 800px; margin: 2.4rem 0 0; color: var(--muted); }
.policies { background: var(--white); }
.policy-intro { padding-bottom: 3rem; }

.policy-intro > div:last-child > p,
.activities-intro > div:last-child > p,
.position-intro,
.contact p {
  max-width: 800px;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.position-inner > div:last-child > .position-intro:first-child { margin-top: 0; }

.policy-notes { display: grid; gap: 1rem; padding-top: 0; }
.policy-note { border: 1px solid var(--line); background: var(--paper); }

.policy-note header {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--line);
}

.policy-note header > span { color: var(--orange); font-family: Georgia, serif; font-size: 1.2rem; }
.policy-note header p { margin: 0 0 0.3rem; color: var(--blue); font-size: 0.78rem; font-weight: 700; }

.policy-note h3 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  font-weight: 600;
  line-height: 1.45;
}

.policy-note-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 3vw, 2.6rem) clamp(1.5rem, 3vw, 2.6rem) clamp(2rem, 4vw, 3.2rem) calc(70px + clamp(3rem, 6vw, 5.6rem));
}

.policy-note-body h4 { margin: 0 0 0.5rem; font-size: 0.82rem; }
.policy-note-body p { margin: 0; }

.policy-note aside {
  align-self: start;
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--yellow);
  background: var(--white);
}

.policy-note aside strong { display: block; margin-bottom: 0.4rem; font-size: 0.78rem; }
.policy-note aside p { color: var(--muted); font-size: 0.85rem; }

.activities { background: var(--ink-deep); color: var(--white); }
.activities-intro { padding-bottom: 3rem; }
.activities .section-label { border-top-color: var(--yellow); }
.activities-intro > div:last-child > p { color: rgba(255, 255, 255, 0.62); }

.activity-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0;
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.activity-card {
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  border-top: 3px solid var(--yellow);
  background: var(--white);
  color: var(--ink);
}

.activity-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.activity-main img { object-position: center 35%; }
.activity-speaking img { object-position: center 45%; }
.activity-card figcaption { padding: 0.9rem 0.95rem 1rem; }
.activity-card strong, .activity-card span { display: block; }
.activity-card strong { font-size: 0.88rem; line-height: 1.45; }
.activity-card span { margin-top: 0.3rem; color: var(--muted); font-size: 0.74rem; line-height: 1.55; }

.profile {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.profile-photo { width: min(100%, 350px); }
.profile-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; }
.profile-copy { max-width: 780px; }
.profile-copy .section-label { display: inline-block; margin-bottom: 1.3rem; }
.profile-lead { margin: 0.5rem 0 1.2rem; color: var(--blue); font-weight: 700; }
.profile-copy > p:not(.profile-lead) { color: var(--muted); }
.profile-story {
  margin: 1.8rem 0 2rem;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border-left: 4px solid var(--yellow);
  background: var(--white);
}
.profile-story p { margin: 0; color: var(--ink); }
.profile-story p + p { margin-top: 1rem; }
.profile-facts { margin: 2rem 0 0; border-top: 1px solid var(--line); }

.profile-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt { color: var(--muted); font-size: 0.82rem; }
.profile-facts dd { margin: 0; font-weight: 700; }
.position { background: var(--blue-pale); }
.status-list { margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }

.status-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.status {
  align-self: start;
  padding: 0.25rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.status-confirmed { background: #dcebe5; color: var(--green); }
.status-checking { background: #fff1c7; color: #805d00; }
.status-pending { background: #f3dfd7; color: #863919; }
.status-list strong { display: block; margin-bottom: 0.2rem; }
.status-list p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.contact { text-align: left; }
.contact-button { margin-top: 1.7rem; }
.contact .contact-note {
  margin-top: 1rem;
  font-size: 0.82rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr auto;
  gap: 3rem;
  align-items: start;
  padding: 2.8rem max(5vw, calc((100vw - var(--max)) / 2));
  background: var(--ink-deep);
  color: var(--white);
}

.site-footer strong, .site-footer span { display: block; }
.site-footer strong { letter-spacing: 0.1em; }
.site-footer span, .site-footer p, .site-footer small { color: rgba(255, 255, 255, 0.55); font-size: 0.76rem; }
.site-footer p { margin: 0; }

@media (max-width: 960px) {
  .site-header { align-items: flex-start; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.65rem; }
  .global-nav { max-width: 58vw; overflow-x: auto; gap: 1rem; padding-bottom: 0.25rem; white-space: nowrap; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); }
  .detail-hero { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); min-height: calc(100svh - 92px); }
  .detail-hero-copy { padding-right: 4vw; padding-left: 4vw; }
  .detail-ai-stage { min-height: calc(100svh - 92px); }
  .ai-stage { min-height: calc(100svh - 92px); }
  .conversation { padding-right: 5vw; padding-left: 5vw; }
  .hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.15rem); }
  .ai-portrait, .ai-avatar { width: min(88%, 480px); }
  .reason, .ai-story, .positions, .policy-intro, .activities-intro, .contact, .position-inner, .vision-intro, .principles, .expo-inner, .research-intro { grid-template-columns: 1fr; gap: 2rem; }
  .city-system { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .council-review-grid { grid-template-columns: 1fr; }
  .policy-development .council-review-grid { grid-template-columns: 1fr; }
  .policy-note-body { grid-template-columns: 1fr; }
  .activity-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { width: min(62vw, 320px); }
  .site-footer { grid-template-columns: 1fr; gap: 1.1rem; }
  .overview-heading { grid-template-columns: 1fr; gap: 2rem; }
  .home-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 112px; }
  body { font-size: 16px; }
  .site-header { display: block; }
  .brand { justify-content: flex-start; }
  .global-nav { max-width: 100%; margin-top: 0.55rem; }
  .hero { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; min-height: auto; }
  .detail-hero-copy { min-height: 48svh; padding: 3.2rem 6vw; }
  .detail-hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .ai-stage { min-height: clamp(520px, 82svh, 720px); }
  .ai-stage.detail-ai-stage { min-height: clamp(520px, 82svh, 720px); }
  .ai-face-frame { bottom: 1.4rem; width: min(86vw, 420px); }
  .ai-portrait, .ai-avatar { bottom: 1.4rem; width: min(86vw, 420px); }
  .conversation { min-height: auto; padding: 2.2rem 6vw 3rem; }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 3.3rem); }
  .conversation-heading { display: block; }
  .preview-badge { display: inline-block; margin-top: 0.8rem; }
  .chat-window { max-height: 330px; }
  .message { max-width: 94%; }
  .section { padding-left: 6vw; padding-right: 6vw; }
  .policy-note header { grid-template-columns: 44px 1fr; gap: 0.8rem; }
  .policy-note-body { padding: 1.5rem; }
  .council-detail-list > article { grid-template-columns: 1fr; }
  .detail-number { font-size: 1.5rem; }
  .detail-compare { grid-template-columns: 1fr; }
  .activity-gallery { grid-template-columns: 1fr; }
  .activity-card { width: min(100%, 420px); }
  .activity-card:nth-child(even) { margin-left: auto; }
  .city-functions,
  .principle-grid,
  .position-cards { grid-template-columns: 1fr; }
  .city-system-core { min-height: 320px; }
  .profile-photo { width: min(76vw, 300px); }
  .profile-facts div { grid-template-columns: 90px 1fr; }
  .status-list li { grid-template-columns: 78px 1fr; gap: 0.8rem; }
  .page-next { display: block; }
  .page-next .button-link { margin-top: 1.5rem; }
  .home-link-grid, .home-policy-grid { grid-template-columns: 1fr; }
  .home-policy-grid a:last-child { grid-column: auto; }
  .home-section-action { text-align: left; }
  .home-profile { grid-template-columns: 1fr; }
  .home-profile-photo { width: min(64vw, 260px); }
  .ai-callout { display: block; margin-right: 6vw; margin-left: 6vw; }
  .ai-callout .button-link { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ai-portrait { animation: none; }
  .ai-video { display: none; }
  .ai-avatar-fallback { display: block; }
  .ai-face-video { display: none; }
  .ai-face-fallback { display: block; }
  .typing-dots i { animation: none; }
}

/* Policy revision 2026-09-27: keep long Japanese text readable. */
.policy-current-body { max-width: 72ch; margin: 0 auto; padding: 1.5rem 0; font-size: 1rem; line-height: 1.95; overflow-wrap: anywhere; }
.policy-current-body p + p { margin-top: 1rem; }
.policy-current header h3 { word-break: normal; overflow-wrap: anywhere; }
.policy-source-notes { margin-block: 2rem; font-size: .9375rem; line-height: 1.8; }
.policy-source-notes summary { cursor: pointer; font-weight: 700; }
.policy-source-notes a { text-decoration: underline; }
.policy-tagline { line-height: 1.8; }
.profile-summary { margin-block: 1.5rem; }
