/* =====================
   Variables
   ===================== */
:root {
  --color-accent: #ff6b2b;
  --color-accent-light: #fff0e6;
  --color-green: #6ba82a;
  --color-green-light: #eef6e0;
  --color-kab-red: #e60012;
  --color-text: #1a1a1a;
  --color-text-white: #ffffff;
  --color-text-muted: #666666;
  --color-bg: #ffffff;
  --color-bg-cream: #fafaf7;
  --color-bg-footer: #ffa13e;

  --font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;

  --shadow-card: 0 4px 20px rgba(100, 140, 40, 0.10);
  --shadow-card-hover: 0 8px 32px rgba(100, 140, 40, 0.20);
  --radius-card: 16px;

  --inner-width: 1768px;
  --inner-padding: 76px;
}

/* =====================
   Base
   ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg-cream);
}

.inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 var(--inner-padding);
}

/* =====================
   Wave Divider
   ===================== */
.wave {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  margin-bottom: -1px;
}

.wave svg {
  display: block;
  width: 100%;
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  aspect-ratio: 1920 / 1000;
  background: linear-gradient(155deg,
      #ffe566 0%,
      #ffb347 45%,
      #ff7a2b 100%);
}

.hero__curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 850;
  pointer-events: none;
}

.hero__curve svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7.76%;
  /* y=149/1920（%はwidthが基準） */
}

.hero__logo {
  width: 47.9%;
  /* 920/1920 */
  max-width: 920px;
  height: auto;
}

.hero__kaebi {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8%;
  width: 10.1%;
  /* 233/1920 */
  max-width: 233px;
  height: auto;
}

/* 四隅の子ども画像: % は 1920px基準 */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero__kid {
  position: absolute;
  width: 13%;
  max-width: 230px;
  height: auto;
  animation: float 4s ease-in-out infinite;
}

.hero__kid--1 {
  left: 8%;
  top: 19%;
  animation-delay: 0s;
}

.hero__kid--2 {
  left: 28%;
  top: 57%;
  width: 10%;
  animation-delay: -1s;
}

.hero__kid--3 {
  right: 10%;
  top: 8%;
  animation-delay: -2s;
}

.hero__kid--4 {
  right: 6%;
  top: 48%;
  width: 10%;
  animation-delay: -3s;
}

.hero__kid--5 {
  left: 5%;
  bottom: 10%;
  animation-delay: -0.5s;
}

.hero__kid--6 {
  right: 26%;
  bottom: 9%;
  animation-delay: -2.5s;
}

/* =====================
   Lead
   ===================== */
.lead {
  background-color: var(--color-green-light);
  padding: 80px 0 100px;
}

.lead .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.lead__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-green);
  color: var(--color-text-white);
  font-size: 22px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lead__badge:hover {
  opacity: 0.85;
}

.lead__badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  flex-shrink: 0;
}

.lead__text {
  font-size: 32px;
  font-weight: 600;
  line-height: 2;
  color: var(--color-text);
}

/* =====================
   CM Section
   ===================== */
.cm-section {
  background-color: var(--color-accent-light);
  padding: 80px 0 100px;
}

.cm-section__heading {
  text-align: center;
  margin-bottom: 56px;
}

.cm-section__heading img {
  max-width: min(494px, 100%);
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  justify-content: center;
}

.cm-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cm-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.cm-card__thumb {
  position: relative;
  aspect-ratio: 290 / 163;
  background-color: #eee;
  overflow: hidden;
}

.cm-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease;
}

.cm-card:hover .cm-card__thumb img {
  filter: brightness(1.4);
}

.cm-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.cm-card:hover .cm-card__play {
  transform: translate(-50%, -50%) scale(1.15);
}

.cm-card__play svg {
  width: 54px;
  height: 36px;
}

.cm-card__title {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  line-height: 1.5;
  background-color: var(--color-bg);
  text-align: center;
}

/* =====================
   Activities
   ===================== */
.activities {
  background-color: var(--color-bg-cream);
  padding: 80px 0 100px;
}

.activities__heading {
  margin-bottom: 40px;
  text-align: center;
}

.activities__heading img {
  max-width: min(471px, 100%);
  height: auto;
  margin: 0 auto;
}

.activity-card {
  display: block;
  max-width: 833px;
  margin: 0 auto;
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.activity-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.activity-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.activity-card__body {
  padding: 24px 28px;
}

.activity-card__date {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-green);
  margin-bottom: 8px;
  text-align: center;
}

.activity-card__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  text-align: center;
}

/* =====================
   Supported by
   ===================== */
.supported {
  background-color: var(--color-green-light);
  padding: 80px 0 100px;
}

.supported__heading {
  text-align: center;
  margin-bottom: 48px;
}

.supported__heading img {
  max-width: min(228px, 100%);
  height: auto;
  margin: 0 auto;
}

.sponsor-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.sponsor-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  height: 90px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 20px;
}

.sponsor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.sponsor-card img {
  max-width: 200px;
  max-height: 60px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =====================
   Footer
   ===================== */
.footer {
  background-color: var(--color-bg-footer);
  padding: 60px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer__logo {
  height: 80px;
  width: auto;
  opacity: 0.9;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 0 1em;
}

/* =====================
   Modal
   ===================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal__container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 960px;
}

.modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.modal__close:hover {
  opacity: 1;
}

.modal__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.modal__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.modal__container--text {
  max-width: 720px;
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.modal__text-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 0;
  flex-shrink: 0;
}

.modal__text-body {
  padding: 4px 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal__text-body p {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
  color: #ff6500;
}

.modal--text .modal__close {
  position: static;
  color: var(--color-text);
  opacity: 1;
  background-color: #e0e0e0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0 0 2px 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal--text .modal__close:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .modal__text-body {
    padding: 4px 24px 40px;
  }

  .modal__text-body p {
    font-size: 15px;
  }

  .modal__text-body p br {
    display: none;
  }
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1200px) {
  :root {
    --inner-padding: 40px;
  }

  .cm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sponsor-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .lead__text {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --inner-padding: 20px;
    --radius-card: 10px;
  }

  .hero__logo {
    width: 77%;
  }

  .hero__inner {
    align-items: center;
    padding-top: 0;
    padding-bottom: 15%;
  }

  .hero__kaebi {
    width: 24%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2%;
  }

  .hero {
    aspect-ratio: 1 / 1.3;
  }

  .hero__kid {
    width: 25%;
  }

  .hero__kid--1 {
    top: 10%;
    width: 22%;
  }

  .hero__kid--2 {
    left: auto;
    top: 60%;
    right: 18%;
    width: 18%;
  }

  .hero__kid--3 {
    left: auto;
    right: 43%;
    top: 14%;
    width: 18%;
  }

  .hero__kid--4 {
    top: 7%;

  }

  .hero__kid--6 {
    right: 2%;
    width: 20%;
  }

  .lead__text br {
    display: none;
  }

  .lead__text {
    text-align: left;
    word-break: auto-phrase;
  }

  .cm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sponsor-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cm-section__heading {
    margin-bottom: 32px;
  }

  .lead__text {
    font-size: 20px;
  }

  .lead__badge {
    font-size: 16px;
  }

  .activity-card__title {
    font-size: 20px;
  }

  .activity-card__date {
    font-size: 16px;
  }

  .lead,
  .cm-section,
  .activities,
  .supported {
    padding-bottom: 72px;
  }
}