/* Application deadline and cancellation terms. */
.application-notice {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #d6b879;
  border-left: 4px solid #d6b879;
  background: #1c2e50;
  color: #fffaf0;
  text-align: left;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.9;
}
.application-notice h4 {
  margin: 0 0 18px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
}
.application-notice p { margin: 0 0 14px; }
.application-notice p:last-child { margin-bottom: 0; }
.application-notice .application-notice-deadline {
  padding-bottom: 14px;
  border-bottom: 1px solid #d6b87966;
  color: #ecd398;
  font-size: 1.125rem;
}
.application-notice strong { font-weight: 700; }
@media (max-width: 600px) {
  .application-notice { padding: 20px 16px; }
}

/* Both supplied flyers retain their full aspect ratio. */
.event-flyer--pair {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
}
.event-flyer--pair a { height: auto; }
.event-flyer--pair img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}
.event-flyer--pair a > span {
  position: static;
  display: flex;
  justify-content: center;
  padding: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}
.application-notice { scroll-margin-top: 100px; }

/* Flyers sit immediately below their respective headings. */
.kokuto {grid-column:1 / -1; padding:clamp(28px,5vw,64px) max(24px,7vw); color:#17284b; background:#f8f3e9; scroll-margin-top:85px}
.kokuto>h3 {font:500 clamp(1.7rem,3.2vw,2.6rem)/1.45 'Shippori Mincho',serif;margin:0 auto 22px;max-width:1160px}
.kokuto-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,3vw,36px);max-width:1160px;margin:auto}
.kokuto-card {min-width:0;display:flex;flex-direction:column;align-items:flex-start;border:1px solid #d7c8af;background:#fffcf7;padding:clamp(16px,2vw,28px)}
.kokuto-card h4 {font:600 clamp(1.15rem,2vw,1.5rem)/1.55 'Shippori Mincho',serif;margin:0 0 16px}
.kokuto-card p {font-size:1rem;line-height:1.85;margin:16px 0;color:#554b40}
.kokuto-poster {display:block;width:100%;max-width:480px;margin:0 auto;color:#17284b;text-align:center}
.kokuto-poster img {display:block;width:100%;height:auto}
.kokuto-poster span {display:block;padding:9px 0;text-decoration:underline;text-underline-offset:4px;font-size:.9rem}
.kokuto-action {display:inline-block;margin-top:auto;background:#17284b;color:white;padding:11px 16px;line-height:1.5;text-decoration:none}
.future-section>.future-grid {grid-column:1/-1;margin:0 max(24px,7vw) clamp(36px,6vw,80px)}
.closed-event-note {margin-top:18px;color:#fffaf0;font-size:1rem}
.application-notice summary {cursor:pointer;font-size:1rem;font-weight:bold}
.application-notice[open] summary {margin-bottom:16px}
@media(max-width:720px){.kokuto-cards {grid-template-columns:minmax(0,1fr)}.kokuto{padding:30px 18px}.future-section>.future-grid{margin:0 18px 40px}}

#november-markets {scroll-margin-top:95px}
.nov-flyers {align-self:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.nov-entry {min-width:0}
.nov-entry h5 {font-size:1.05rem;line-height:1.5;color:#17284b;font-weight:700}
.nov-when {font-size:.94rem;line-height:1.55;margin:4px 0 12px;color:#554b40}
.nov-recruit strong {display:block;color:#17284b;margin-bottom:5px}
@media(min-width:721px){.kokuto-cards {grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);align-items:start}}
@media(max-width:900px){.nov-flyers {grid-template-columns:1fr;gap:20px}}

.kokuto-recruitment{grid-column:1/-1}
.kokuto-recruitment h4,.kokuto-recruitment p{max-width:48rem}
.kokuto-recruitment h4{margin:0 0 .85rem}
.kokuto-recruitment p{margin:0 0 .85rem;line-height:1.85}
.kokuto-recruitment .recruit-area{font-weight:700}
#kokuto-recruitment,#events{scroll-margin-top:95px}


/* Responsive reading and touch controls, including Safari / in-app browsers. */
html {-webkit-text-size-adjust:100%;text-size-adjust:100%}
body {padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);font-family:'Zen Kaku Gothic New',-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif}
.site-shell {position:relative;min-width:0}
.site-shell,.site-shell *,.site-shell *::before,.site-shell *::after {box-sizing:border-box}
.site-shell button,.site-shell a {max-width:100%;overflow-wrap:break-word;overflow-wrap:anywhere}
.site-shell button {-webkit-appearance:none;appearance:none;cursor:pointer}
.site-shell button:focus-visible,.site-shell a:focus-visible,.site-shell summary:focus-visible {outline:3px solid #a77a33;outline-offset:4px}
.site-shell svg {flex-shrink:0}
.site-shell section>div,.kokuto-card>*,.future-featured-plans article>div,.social-link-copy {min-width:0}
.site-shell img {max-width:100%}
.hero h1 {white-space:normal;font-size:clamp(2rem,3.3vw,4rem)}
.hero-actions {flex-wrap:wrap;gap:18px}
.primary-button,.text-button,.header-cta,.gold-button,.venue-inquiry-button,.kokuto-action {min-height:44px;height:auto;font-size:1rem;line-height:1.6;white-space:normal}
.primary-button {padding:14px 24px;gap:16px}
.kokuto-action {display:inline-flex;align-items:center}
.site-header nav button {min-height:44px;min-width:44px;font-size:.9375rem}
.header-cta {font-size:.875rem}
.hero-description,.future-featured-plans p,.reason-grid p,.faq-answer,.social-contact-panel>p:not(.social-panel-kicker),.support-list article div>span {font-size:1rem}
.hero-assurance,.planning-note,.reassurance,.privacy-note,.contact-info span,.footer-meta,.kokuto-poster span,.future-image a>span,.venue-flyer a>span {font-size:.875rem;line-height:1.75}
.hero-kicker,.eyebrow,.social-panel-kicker,.future-featured-plans small,.social-link-copy small,.contact-info small {font-size:.875rem;line-height:1.65}
.social-link-copy em {font-size:.875rem;word-wrap:break-word;overflow-wrap:anywhere}
.future-featured-plans article {grid-template-columns:42px minmax(0,1fr)}
.faq-list summary {grid-template-columns:38px minmax(0,1fr) 20px;font-size:1.0625rem;padding:14px 0}
.faq-answer {grid-template-columns:38px minmax(0,1fr)}
.future-image {min-height:0;align-self:start}
.future-image a {height:auto}
.future-image img,.venue-flyer img {height:auto;max-height:none;object-fit:contain}
.future-image a>span,.venue-flyer a>span {position:static;display:flex;justify-content:center;padding:12px 8px;text-align:center;text-decoration:underline;text-underline-offset:4px}
.future-image:before {display:none}
.hero-visual {min-width:0}
.footer-meta {flex-wrap:wrap;overflow-wrap:anywhere}
.site-shell [id] {scroll-margin-top:24px}
@media(max-width:1080px) {
  .site-header {position:relative;height:auto;min-height:82px;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px 24px}
  .site-header nav {grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px}
  .site-header nav button {padding:8px}
  .wordmark {padding-right:0;min-width:0}
  .wordmark:after {display:none}
  .wordmark span {letter-spacing:.08em}
  .hero {padding-top:0}
  .hero-stamp {top:24px}
  .hero h1 {font-size:clamp(2rem,4.2vw,3.5rem)}
  .hero-actions {align-items:flex-start}
  .future-section,.insight-section,.future-life-section,.contact-section {grid-template-columns:minmax(0,1fr)}
  .future-copy,.insight-copy,.future-life-copy,.contact-side,.social-contact-panel {padding:64px max(24px,6vw)}
  .future-image {width:100%;max-width:700px;justify-self:center}
  .insight-image {height:420px;min-height:0}
  .future-life-image {height:480px;min-height:0;border-right-width:24px}
  .support-section,.faq-section,.about-section {grid-template-columns:minmax(0,1fr);gap:48px}
  .about-section:before {display:none}
  .support-intro {position:static}
  .venue-flyer {width:100%;max-width:700px;justify-self:center}
}
@media(max-width:780px) {
  .hero h1 {font-size:clamp(2rem,9vw,3.125rem)}
  .hero-visual {height:390px;min-height:0;height:54svh;min-height:260px;max-height:520px}
  .hero-copy {padding:40px 24px 64px}
  .hero-description {font-size:1rem}
  .hero-actions {align-items:stretch}
  .hero-actions .text-button {align-self:flex-start}
  .hero-assurance {align-items:flex-start}
  .hero-assurance svg {margin-top:4px}
  .empathy-section,.events-section,.support-section,.reasons-section,.faq-section,.about-section {padding:64px 24px}
  .section-heading h2,.insight-copy h2,.future-life-copy h2,.about-heading h2,.contact-side h2 {font-size:clamp(1.75rem,7.5vw,2.25rem)}
  .empathy-section {gap:36px}
  .future-grid {grid-template-columns:minmax(0,1fr)}
  .future-life-image {height:380px;border-width:16px}
  .social-link-card {grid-template-columns:40px minmax(0,1fr) 18px;gap:12px;padding:16px 12px}
  .social-link-icon {width:40px;height:40px}
  .social-link-copy strong {font-size:1rem;line-height:1.6}
  .social-link-card:hover {transform:none}
  .kokuto-action,.venue-inquiry-button {width:100%;justify-content:center;text-align:center}
  .venue-inquiry-button {gap:10px}
}
@media(max-width:380px) {
  .site-header {padding:12px 16px;gap:8px}
  .header-cta {padding:8px 10px}
  .wordmark span {font-size:.875rem;letter-spacing:.04em}
  .hero-copy,.empathy-section,.insight-copy,.future-copy,.support-section,.future-life-copy,.reasons-section,.about-section,.faq-section,.contact-side,.social-contact-panel {padding-left:18px;padding-right:18px}
  .future-featured-plans article {grid-template-columns:minmax(0,1fr);gap:10px}
  .primary-button {padding:12px 16px}
  .faq-list summary {grid-template-columns:28px minmax(0,1fr) 18px;gap:8px}
  .faq-answer {grid-template-columns:28px minmax(0,1fr);gap:8px;padding-right:0}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}
  .site-shell * {animation:none!important;transition:none!important}
}

@media(min-width:781px){footer{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
