:root {
  color-scheme: light;
  --text: #172033;
  --muted: #5c6675;
  --line: #d9e2ec;
  --accent: #129fbd;
  --accent-dark: #087c96;
  --bg-soft: #f7fbfd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: #fff;
}

a {
  color: inherit;
}

.site-header {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-dark);
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero {
  max-width: 860px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 26px;
  align-items: center;
}

h1 {
  margin: 0 0 18px;
  letter-spacing: 0;
}

.hero-label,
.hero-main {
  display: block;
}

.hero-label {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 14px;
  color: #fff;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
  background: #f05a7a;
  border-radius: 999px;
}

.hero-main {
  color: #0d2b66;
  font-size: clamp(2.25rem, 7vw, 3.6rem);
  font-weight: 900;
  line-height: 1.18;
}

.hero p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 700;
  line-height: 1.9;
}

.hero-illust {
  display: block;
  width: 100%;
  height: auto;
}

.flyer {
  margin: 0 auto 48px;
  text-align: center;
}

.flyer img {
  display: block;
  width: min(700px, 100%);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.12);
}

.details,
.program,
.contact {
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.details {
  max-width: 860px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
}

h2 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.detail-list {
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.detail-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-list div:last-child {
  padding-bottom: 0;
}

dt {
  color: var(--text);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.program ul {
  margin: 0;
  padding-left: 1.3em;
}

.program li {
  margin: 10px 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.75;
}

.program {
  max-width: 860px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
}

.program-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.program-images img,
.section-illust,
.contact-illust {
  display: block;
  width: 100%;
  height: auto;
}

.contact {
  max-width: 860px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  text-align: left;
  margin-bottom: 0;
}

.contact p {
  margin: 0 0 20px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 320px);
  min-height: 58px;
  padding: 0 28px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--accent);
  border-radius: 999px;
}

.contact-button:hover {
  background: var(--accent-dark);
}

@media (max-width: 560px) {
  .site-header,
  .page {
    width: min(100% - 20px, 920px);
  }

  .site-header {
    padding: 14px 0;
  }

  nav {
    gap: 12px;
  }

  .page {
    padding-top: 28px;
  }

  .hero {
    margin-bottom: 24px;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-main {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-illust {
    width: min(250px, 74%);
    margin: 0 auto;
  }

  .flyer {
    margin-bottom: 34px;
  }

  .flyer img {
    width: 100%;
  }

  .details,
  .program,
  .contact {
    display: grid;
    grid-template-columns: 1fr;
    padding: 20px;
    margin-bottom: 28px;
  }

  .section-illust {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .program-images {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .contact {
    text-align: center;
  }

  .contact-illust {
    width: min(220px, 70%);
    margin: 0 auto;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
