/* Shared layout corrections. Keep text and controls in their own layout cells. */
.section-title {
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 0;
  white-space: normal;
}
.section-title > span { white-space: nowrap; }
.menu-toggle { min-width: 44px; }
@media (max-width:1000px) {
  .mobile-header {
    background: var(--green) url('assets/mobile-header-background.webp') center / cover no-repeat;
  }
  html.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior-y: none;
  }
  .mobile-menu-open body {
    position: fixed;
    top: var(--mobile-menu-scroll-y);
    left: 0;
    width: 100%;
    overflow: hidden;
  }
  /* Keep the header's space in the document while both navigation parts are fixed. */
  .mobile-menu-open body::before {
    content: '';
    display: block;
    height: 66px;
  }
  .mobile-menu-open .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    touch-action: pinch-zoom;
  }
  #mobile-menu {
    overscroll-behavior-y: none;
    touch-action: pan-y pinch-zoom;
  }
}
.profile-section .section-title > span { font-size: 44px; }
.statement-copy p, .policy-intro p, .profile-facts, .policy-content p {
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
}
.statement-copy p, .policy-intro p { text-wrap: pretty; }
.statement-section, .policy-section { background: none; }
.statement-copy::before, .policy-intro::before {
  content: '';
  position: absolute;
  width: 468px;
  height: 468px;
  right: -260px;
  top: 0;
  background: url('assets/8afe4.png') center / contain no-repeat;
  opacity: .4;
  z-index: -1;
  pointer-events: none;
}
.statement-copy, .policy-intro { isolation: isolate; }
.policy-section { overflow: clip; }

/* Use the supplied Figma portrait mask without rotating the photograph. */
.portrait-area {
  container-type: inline-size;
  height: auto;
  aspect-ratio: 573 / 550;
  margin-top: 60px;
  zoom: 1;
}
.portrait-photo {
  left: 23.21%;
  top: -9.95cqw;
  width: 108.38%;
  height: auto;
  aspect-ratio: 621.007 / 609.237;
  border-radius: 0;
  transform: none;
  -webkit-mask: url('assets/70a3c.svg') 0 0 / 100% 100% no-repeat;
  mask: url('assets/70a3c.svg') 0 0 / 100% 100% no-repeat;
}
.portrait-photo > .portrait-front {
  width: 192.6%;
  height: 110.47%;
  left: -77.33%;
  top: -1.28%;
  transform: none;
  object-fit: cover;
}
.portrait-word {
  left: -31.4cqw;
  top: 48.86cqw;
  font-size: 13.96cqw;
}
.portrait-area h3 { white-space: normal; }
.portrait-area h3 strong { white-space: nowrap; }
.profile-facts { margin-top: 24px; min-height: 0; }
.profile-facts ul { padding: 0 0 0 1.1em; margin: 0; }
.profile-facts li { padding-left: .1em; margin-bottom: .3em; }
.fact-note { display: block; }
.manga-banner { white-space: normal; }
.manga-banner > span:not(.arrow) { min-width: 0; }
.sapporo-collage { overflow: clip; }
.tag-cloud { height: auto; }
.tag-cloud > img { width: 100%; height: auto; margin: 0; }
.speech-photo { flex: none; max-width: 100%; }

/* Accordion icons stay in the tab, never over the photograph or slides. */
.policy-item > summary {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 64px;
  gap: 16px;
  padding: 16px 20px 16px 28px;
  min-height: 115px;
  align-items: center;
}
.policy-label { min-width: 0; }
.policy-label > b,
.policy-item:nth-child(3) .policy-label > b {
  font-size: 28px;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: break-word;
}
.policy-label > small,
.policy-item:nth-child(6) .policy-label > small {
  font-size: 18px;
  line-height: 1.65;
  white-space: normal;
}
.policy-toggle {
  position: relative;
  inset: auto;
  width: 65.12px;
  height: 64px;
  transform: none;
}
.policy-content { font-weight: 500; line-height: 2; }
.policy-item { scroll-margin-top: 90px; }
.policy-list { position: relative; }
.policy-item[open] { border-radius: 58px 58px 20px 20px; }

/* Full artwork is visible; navigation sits below it in normal document flow. */
.philosophy-slide { margin: 36px 0 40px; }
.policy-carousel { margin-top: 48px; min-width: 0; }
.slide-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  line-height: 0;
}
.slide-zoom > img { width: 100%; height: auto; object-fit: contain; }
.policy-slide-viewport {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.policy-slide-viewport::-webkit-scrollbar { display: none; }
.policy-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.policy-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: var(--green);
  font-weight: 700;
}
.policy-carousel-controls button {
  background: var(--wash);
  border: 1px solid var(--border);
  min-width: 88px;
  min-height: 44px;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 16px;
}
.policy-slide-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.policy-slide-pagination button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
}
.policy-slide-pagination button[aria-current='true'] {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.policy-slide-note { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; }
#slide-dialog {
  width: min(96vw, 1700px);
  max-width: none;
  max-height: 94dvh;
  padding: 16px;
  border-radius: 16px;
}
.slide-dialog-close {
  display: block;
  margin: 0 0 12px auto;
  padding: 8px 24px;
  min-height: 44px;
  background: var(--green);
  color: white;
  border-radius: 30px;
}
.slide-dialog-scroll { max-height: calc(94dvh - 90px); overflow: auto; }
.slide-dialog-scroll > img { width: 100%; height: auto; }

/* Preserve the existing year/day type sizes while putting the date on one line. */
.schedule-date time { flex-direction: row; align-items: baseline; gap: 8px; white-space: nowrap; }
.schedule-item h3 { overflow-wrap: break-word; }

@media (min-width:1001px) and (max-width:1400px) {
  .policy-item > summary { grid-template-columns: 54px minmax(0,1fr) 52px; gap: 12px; padding: 16px 18px 16px 24px; }
  .policy-label > b, .policy-item:nth-child(3) .policy-label > b { font-size: 24px; }
  .policy-label > small, .policy-item:nth-child(6) .policy-label > small { font-size: 16px; }
  .policy-toggle { width: 52px; height: 52px; }
  .policy-toggle > img { transform: scale(.8); transform-origin: top left; }
  .profile-section .section-title > span { font-size: 36px; }
}
@media (max-width:600px) {
  .profile-section .section-title { font-size: 30px; }
  .profile-section .section-title > span { font-size: 24px; }
  .portrait-area { margin-top: 40px; aspect-ratio: 573 / 550; }
  .portrait-area h3 { font-size: 20px; }
  .portrait-area h3 strong { font-size: 27px; }
  .profile-facts { margin-top: 18px; }
  .statement-copy h3 { font-size: 26px; }
  .sapporo-collage { height: auto; aspect-ratio: 685 / 550; }
  .sapporo-map { width: 69.34%; left: 21.9%; }
  .street-photo { width: 50.95%; left: 0; top: 0; }
  .children-photo { width: 55.62%; left: 43.06%; top: 34.9%; }
  .manga-banner b { font-size: 21px; }
  .manga-banner { padding-right: 40px; }
  .philosophy-slide { margin: 28px 0; }
  .policy-item > summary {
    grid-template-columns: 42px minmax(0,1fr) 34px;
    gap: 10px;
    padding: 16px 14px 16px 18px;
    border-radius: 44px;
    min-height: 100px;
  }
  .policy-number { font-size: 43px; }
  .policy-label > b, .policy-item:nth-child(3) .policy-label > b { font-size: 20px; letter-spacing: 0; }
  .policy-label > small, .policy-item:nth-child(6) .policy-label > small { font-size: 14px; }
  .policy-toggle { width: 34px; height: 34px; transform: none; }
  .policy-toggle > img { transform: scale(.52); transform-origin: top left; }
  .policy-item[open] { border-radius: 44px 44px 20px 20px; }
  .policy-content { line-height: 1.95; }
  .policy-carousel { margin-top: 32px; }
  .policy-slide-pagination { gap: 5px; }
  .policy-slide-pagination button { width: 40px; height: 40px; }
  .policy-slide-note { font-size: 13px; }
  .schedule-date time { gap: 6px; }
  .speech-photo { width: 75%; }
  .bio-item summary > span:first-child { min-width: 0; }
  .bio-item summary b { overflow-wrap: break-word; }
  #slide-dialog { padding: 12px; }
  .slide-dialog-scroll > img { width: 1100px; max-width: none; }
}
@media (max-width:360px) {
  .policy-item > summary { grid-template-columns: 36px minmax(0,1fr) 30px; gap: 8px; padding-left: 14px; padding-right: 12px; }
  .policy-label > b, .policy-item:nth-child(3) .policy-label > b { font-size: 18px; }
  .policy-number { font-size: 38px; }
  .policy-toggle { width: 30px; height: 30px; }
  .policy-toggle > img { transform: scale(.46); }
  .portrait-area h3 strong { font-size: 23px; }
}

/* Type scale: 16px body and 30–36px principal headings, based on kishida.gr.jp. */
body { font-size: 16px; }
.section-title,
.profile-section .section-title,
.schedule-section .section-title { font-size: 36px; line-height: 1.5; gap: 12px; }
.section-title > span,
.profile-section .section-title > span,
.policy-section .section-title > span,
.schedule-section .section-title > span { font-size: 24px; }
.statement-copy h3, .policy-intro h3 { font-size: 28px; line-height: 1.6; }
.six-policies { font-size: 32px; }
.statement-copy p, .policy-intro p { font-size: 16px; line-height: 2; font-weight: 500; }
.statement-copy p br.statement-break { display: initial; }
.portrait-area h3 { font-size: 22px; }
.portrait-area h3 strong { font-size: 32px; }
.profile-facts { font-size: 16px; font-weight: 500; }
.manga-section h2 { font-size: 28px; }
.bio-item summary b, .media-section h2 { font-size: 22px; }
.bio-content, .media-section { font-size: 16px; }
.schedule-item h3 { font-size: 26px; }
.news-title { font-size: 18px; }
.news-section .pill { font-size: 16px; }
.manga-banner b { font-size: 26px; }
.manga-banner { font-size: 18px; }
.qa-header h1 { font-size: 32px; }
.qa-header p { font-size: 24px; line-height: 1.6; }
.qa-card h2 { font-size: 24px; }
@media (min-width:1001px) {
  .candidate {
    max-width: calc(100% - 24px);
    font-size: 16px;
    line-height: 1.6;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  .brand { font-size: clamp(36px,calc((var(--right-width) - clamp(28px,3.85vw,82px) - 24px)/4.4),96px); }
  .right-rail nav { gap: 10px; margin-top: 28px; }
  .right-rail nav a { font-size: 18px; height: 32px; }
  .social-note { font-size: 14px; margin-top: 24px; }
}

/* A single fixed pill height gives the panel an exact start at the pill's midline.
   The parent has no fill, so light green cannot escape the curved top corners. */
.policy-item,
.policy-item[open] {
  --policy-header-height: 108px;
  position: relative;
  isolation: isolate;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.policy-item[open]::before {
  content: '';
  position: absolute;
  inset: calc(var(--policy-header-height) / 2) 0 0;
  border-radius: 0 0 20px 20px;
  background: #cfdfaa;
  z-index: -1;
}
.policy-item > summary {
  position: relative;
  grid-template-columns: 48px minmax(0,1fr) 48px;
  gap: 12px;
  height: var(--policy-header-height);
  min-height: 0;
  padding: 12px 20px;
  border-radius: 999px;
}
.policy-label { container-type: inline-size; gap: 2px; }
.policy-label > b,
.policy-item:nth-child(3) .policy-label > b {
  font-size: min(22px,9cqw);
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0;
}
.policy-item:nth-child(3) .policy-label > b { font-size: min(20px,7cqw); }
.policy-label > small,
.policy-item:nth-child(6) .policy-label > small {
  font-size: clamp(12px,6cqw,16px);
  line-height: 1.5;
}
.policy-number { font-size: 48px; letter-spacing: -3px; line-height: 1; }
.policy-toggle { width: 48px; height: 48px; }
.policy-toggle > img { transform: scale(.73); transform-origin: top left; }
.policy-content { position: relative; background: transparent; padding: 24px 32px 28px; font-size: 16px; }
.policy-list { gap: 24px; }

/* Threads, note and Senkyo join the same three-column circular icon grid. */
.social-circle { border: 1px solid #e3e8e4; background: white; overflow: hidden; }
.social-circle .social-art { display: grid; place-items: center; }
.social-circle .social-art > .brand-icon { position: static; width: 25px; height: 25px; object-fit: contain; }
.socials.large { grid-template-columns: repeat(3,64px); gap: 18px 24px; zoom: 1; }
.socials.large .social { width: 64px; height: 64px; }
.socials.large .social-art { width: 88px; height: 88px; transform: scale(.7272727); transform-origin: top left; }
.socials.large .social-circle .brand-icon { width: 50px; height: 50px; }

@media (max-width:600px) {
  .mobile-header > a { font-size: 22px; }
  .section-title,
  .profile-section .section-title,
  .schedule-section .section-title { font-size: 28px; gap: 8px; }
  .section-title > span,
  .profile-section .section-title > span,
  .policy-section .section-title > span,
  .schedule-section .section-title > span,
  .sns-section .section-title > span { font-size: 19px; }
  .statement-copy h3, .policy-intro h3 { font-size: 24px; }
  .six-policies { font-size: 28px; }
  .portrait-area h3 { font-size: 18px; }
  .portrait-area h3 strong { font-size: 24px; }
  .manga-section h2 { font-size: 24px; }
  .bio-item summary b, .media-section h2 { font-size: 20px; }
  .schedule-item h3 { font-size: 22px; }
  .news-title { font-size: 16px; }
  .manga-banner b { font-size: 20px; }
  .manga-banner { font-size: 16px; }
  .qa-card h2 { font-size: 22px; }
  .policy-item, .policy-item[open] { --policy-header-height: 92px; }
  .policy-item > summary { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 8px; padding: 12px 14px; }
  .policy-number { font-size: 36px; letter-spacing: -2px; }
  .policy-toggle { width: 32px; height: 32px; }
  .policy-toggle > img { transform: scale(.49); }
  .policy-label > b { font-size: min(18px,9cqw); }
  .policy-item:nth-child(3) .policy-label > b { font-size: min(18px,7cqw); }
  .policy-content { padding: 20px 24px 24px; }
}
@media (max-width:360px) {
  .policy-item > summary { grid-template-columns: 28px minmax(0,1fr) 28px; gap: 6px; padding-left: 12px; padding-right: 12px; }
  .policy-number { font-size: 32px; }
  .policy-toggle { width: 28px; height: 28px; }
  .policy-toggle > img { transform: scale(.43); }
}

.keep-phrase { white-space: nowrap; }

/* Keep the message centered in the green plaque at every illustration scale. */
.voice-caption > strong {
  left: 50%;
  top: 50%;
  width: max-content;
  transform: translate(-50%, -50%) rotate(-8deg);
  line-height: 1.2;
  text-align: center;
}

/* The desktop KV fills the viewport; mobile reserves space for its header. */
.hero {
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  container-type: size;
}
.hero-photo { zoom: 1; container-type: normal; }
.hero-photo > img {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: none;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-logo {
  width: min(83.06cqw, 54cqh);
  height: auto;
  left: 8.17%;
  bottom: 4.38%;
  object-fit: contain;
}
.scroll-cue {
  right: 4%;
  bottom: 3%;
  transform: scale(.65);
  transform-origin: bottom right;
}
@media (max-width:1000px) {
  .hero {
    height: calc(100vh - 66px);
    height: calc(100svh - 66px);
  }
}
