/* Compact homepage v1
   Keeps the performance identity while separating quick decisions from deep reading. */

html {
  scroll-padding-top: 88px;
}

.hero,
.hero-grid {
  min-height: clamp(660px, 82svh, 760px);
}

.hero::after {
  height: 28%;
  background: linear-gradient(0deg, #020202 0%, rgba(2, 2, 2, 0));
}

.hero-bg {
  background-color: #020202;
  background-image:
    linear-gradient(90deg, #020202 0%, rgba(2, 2, 2, 0.94) 38%, rgba(2, 2, 2, 0.42) 66%, #020202 100%),
    linear-gradient(0deg, #020202 0%, rgba(2, 2, 2, 0) 34%),
    url("./assets/hongo-sled-push.jpeg");
  background-position: center, center, 78% top;
  background-repeat: no-repeat;
  background-size: cover, cover, auto 128%;
}

.hero-grid {
  padding-top: 112px;
  padding-bottom: clamp(42px, 6vw, 64px);
}

.hero-copy {
  padding-top: clamp(70px, 11vh, 112px);
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(4.1rem, 5.8vw, 5.6rem);
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 570px;
  margin-top: 22px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 26px;
}

@media (min-width: 921px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  }

  .hero-proof {
    max-width: 450px;
  }

  .hero-proof div {
    min-height: 118px;
    padding: 18px 20px;
  }

  .proof-number {
    font-size: clamp(2.2rem, 3.25vw, 2.85rem);
  }
}

.section-stats .stats-layout,
.sponsor-layout,
.community-impact-layout,
.split,
.contact-layout {
  padding-block: clamp(70px, 8vw, 96px);
}

.stats-layout {
  grid-template-columns: minmax(250px, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(28px, 5vw, 64px);
}

.section-stats .section-heading h2 {
  max-width: 7em;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: balance;
}

/* Keep the statistics heading readable instead of letting it collide with KPI cards. */
.section-title-line {
  display: block;
}

.stats-layout > * {
  min-width: 0;
}

.stats-layout .section-heading p {
  max-width: 31ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.82;
}

.stat-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-kpis article {
  min-height: 128px;
  padding: 20px;
}

.stat-kpis strong {
  margin-block: 14px 8px;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 0.95;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.discipline-grid article:nth-child(n + 3) {
  display: none;
}

.home-story-section {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(199, 240, 0, 0.16), transparent 38%),
    #f3f5f1;
}

.home-story-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
  padding-block: clamp(64px, 7vw, 88px);
  gap: 0;
}

.home-story-photo {
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.home-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.88) contrast(1.05);
}

.home-story-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(16, 20, 24, 0.14);
  background: #fff;
}

.home-story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.home-story-meta span,
.home-story-category {
  color: var(--trust);
}

.home-story-category {
  display: block;
  margin-top: 30px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-story-copy h2 {
  max-width: 13em;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  word-break: keep-all;
}

.home-story-copy p {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.home-story-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 28px;
  padding: 13px 18px;
  color: #050505;
  background: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--danger);
}

.compact-explainer {
  padding-block: 22px;
  border-block: 1px solid rgba(255, 255, 255, 0.14);
  background: #080808;
}

.compact-disclosure,
.section-detail-disclosure {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.compact-disclosure > summary,
.section-detail-disclosure > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 58px 22px 24px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.compact-disclosure > summary::-webkit-details-marker,
.section-detail-disclosure > summary::-webkit-details-marker {
  display: none;
}

.compact-disclosure > summary::after,
.section-detail-disclosure > summary::after {
  position: absolute;
  right: 24px;
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 1;
  content: "+";
}

.compact-disclosure[open] > summary::after,
.section-detail-disclosure[open] > summary::after {
  content: "−";
}

.compact-disclosure > summary span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.compact-disclosure > summary strong,
.section-detail-disclosure > summary strong {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.compact-disclosure > summary small,
.section-detail-disclosure > summary span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.84rem;
  line-height: 1.55;
}

.compact-disclosure-body {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.compact-disclosure-body > section > .page-grid {
  padding-block: clamp(70px, 8vw, 96px);
}

.section-detail-disclosure {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.section-light .section-detail-disclosure {
  border-color: rgba(16, 20, 24, 0.18);
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.section-light .section-detail-disclosure > summary,
.section-light .section-detail-disclosure > summary strong {
  color: var(--ink);
  text-shadow: none;
}

.section-light .section-detail-disclosure > summary span {
  color: var(--muted);
}

.section-light .section-detail-disclosure > summary::after {
  color: var(--trust);
}

.section-detail-disclosure > summary {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
}

.section-detail-body {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  padding: 8px clamp(20px, 4vw, 42px) clamp(28px, 5vw, 48px);
}

#sponsorship .sponsor-detail-disclosure {
  border-color: rgba(16, 20, 24, 0.18);
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

#sponsorship .sponsor-detail-disclosure > summary,
#sponsorship .sponsor-detail-disclosure > summary strong {
  color: var(--ink);
  text-shadow: none;
}

#sponsorship .sponsor-detail-disclosure > summary span {
  color: var(--muted);
}

#sponsorship .sponsor-detail-disclosure > summary::after {
  color: var(--trust);
}

.sponsor-layout,
.community-impact-layout {
  gap: clamp(34px, 5vw, 56px);
}

.plan-grid {
  align-items: start;
}

.plan-card,
.plan-card.featured {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  transform: none;
}

.plan-card::after {
  display: none;
}

.plan-card > summary {
  position: relative;
  padding: clamp(22px, 3vw, 30px) 54px clamp(22px, 3vw, 30px) clamp(22px, 3vw, 30px);
  border-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.plan-card > summary::-webkit-details-marker {
  display: none;
}

.plan-card > summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--trust);
  font-size: 1.7rem;
  line-height: 1;
  transform: translateY(-50%);
  content: "+";
}

.plan-card[open] > summary {
  border-bottom: 1px solid rgba(8, 9, 8, 0.14);
}

.plan-card[open] > summary::after {
  content: "−";
}

.plan-card-body {
  display: flex;
  min-height: 264px;
  flex-direction: column;
  padding: 0 clamp(22px, 3vw, 30px) clamp(24px, 3vw, 30px);
}

.plan-card-body ul {
  margin-top: 24px;
}

.plan-card-body a {
  margin-top: auto;
}

.confirmed-partner-card {
  overflow: hidden;
}

.impact-manifesto {
  margin-bottom: 0;
}

.contact-section {
  scroll-margin-top: 86px;
}

.contact-layout {
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
}

.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-steps li {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(16, 20, 24, 0.16);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.contact-steps span,
.contact-steps strong {
  display: block;
}

.contact-steps span {
  color: var(--trust);
  font-size: 0.72rem;
  font-weight: 950;
}

.contact-steps strong {
  margin-top: 12px;
  color: var(--ink);
  font-size: 1rem;
}

.contact-steps p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.contact-form select {
  width: 100%;
  padding: 15px 42px 15px 16px;
  color: var(--ink);
  border: 1px solid rgba(8, 9, 8, 0.18);
  border-radius: 4px;
  background: #fff;
  outline: none;
}

.contact-form select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(217, 255, 24, 0.55);
}

.contact-copy-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(16, 20, 24, 0.16);
  background: #f5f7f2;
}

.contact-copy-panel[hidden] {
  display: none;
}

.contact-copy-panel strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.contact-copy-panel textarea {
  font-size: 0.86rem;
  line-height: 1.65;
}

.mobile-sponsor-cta {
  display: none;
}

@media (max-width: 1100px) {
  .site-nav a[href="#stats"],
  .site-nav a[href="#sponsorship"],
  .site-nav a[href="#community-impact"],
  .site-nav a[href="#about"] {
    display: none;
  }

  .stats-layout {
    grid-template-columns: 1fr;
  }

  .section-stats .section-heading h2 {
    max-width: 100%;
  }

  .stats-layout .section-heading p {
    max-width: 62ch;
  }

  .home-story-layout {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .hero,
  .hero-grid {
    min-height: 0;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(2, 2, 2, 0.08) 0%, rgba(2, 2, 2, 0.28) 24%, #020202 47%, #020202 100%),
      url("./assets/hongo-sled-push.jpeg");
    background-position: center, 66% top;
    background-size: cover, auto 54%;
  }

  .hero-grid {
    padding-top: clamp(340px, 94vw, 440px);
    padding-bottom: 54px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.6rem);
    letter-spacing: -0.04em;
  }

  .hero p {
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .section-heading p,
  .stats-layout .section-heading p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .chart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    margin-block: 14px;
  }

  .bar-row div {
    grid-column: 1 / -1;
    height: 12px;
  }

  .bar-row b {
    font-size: 0.92rem;
    text-align: right;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .stat-kpis strong {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  }

  .home-story-layout {
    grid-template-columns: 1fr;
    padding-block: 54px;
  }

  .home-story-photo {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .home-story-copy {
    padding: 28px 22px 34px;
  }

  .home-story-category {
    margin-top: 24px;
  }

  .home-story-copy h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-steps {
    grid-template-columns: 1fr;
  }

  .contact-steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: start;
    gap: 4px 10px;
    padding: 15px 16px;
  }

  .contact-steps span {
    grid-row: 1 / 3;
  }

  .contact-steps strong,
  .contact-steps p {
    margin-top: 0;
  }

  .mobile-sponsor-cta {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 50;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    color: #050505;
    background: var(--accent);
    font-size: 0.92rem;
    font-weight: 950;
    box-shadow: 6px 6px 0 var(--danger), 0 12px 30px rgba(0, 0, 0, 0.34);
  }

  .compact-disclosure > summary,
  .section-detail-disclosure > summary {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 20px 52px 20px 20px;
  }

  .compact-disclosure > summary small,
  .section-detail-disclosure > summary span {
    padding-right: 8px;
  }

  .plan-card-body {
    min-height: 0;
  }

  .confirmed-partner-photo img {
    max-height: 420px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 28%;
  }
}

@media (max-width: 430px) {
  .stat-kpis {
    grid-template-columns: 1fr;
  }

  .stat-kpis strong {
    font-size: 2.45rem;
  }
}

/* Mobile CTA stays visible without covering the content being read. */
.mobile-sponsor-cta {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 0;
  }

  /* Keep the compact header focused on consultation, but make the opened menu useful. */
  .site-nav.is-open a[href="#stats"],
  .site-nav.is-open a[href="#sponsorship"],
  .site-nav.is-open a[href="#community-impact"],
  .site-nav.is-open a[href="#about"] {
    display: block;
  }

  .site-header {
    gap: 8px;
  }

  .site-header .brand {
    gap: 8px;
    min-width: 0;
    margin-right: auto;
  }

  .site-header .brand strong {
    font-size: 0.94rem;
    white-space: nowrap;
  }

  .site-header .mobile-sponsor-cta {
    position: static;
    display: inline-flex;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #050505;
    background: var(--accent);
    box-shadow: 3px 3px 0 var(--danger);
    font-size: 0.68rem;
    font-weight: 950;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .site-header .nav-toggle {
    flex: 0 0 auto;
  }
}

@media (max-width: 350px) {
  .site-header .mobile-sponsor-cta {
    width: 48px;
    padding-inline: 6px;
    font-size: 0;
  }

  .site-header .mobile-sponsor-cta::after {
    font-size: 0.8rem;
    content: "相談";
  }
}
