:root {
  --ink: #23352e;
  --muted: #65736b;
  --cream: #f8f3e9;
  --paper: #fffdf8;
  --green: #2f6b4f;
  --green-dark: #1d4f39;
  --green-soft: #dceadf;
  --pink: #e07a89;
  --pink-soft: #f8dde1;
  --gold: #c69b45;
  --sky: #87b8cf;
  --sun: #e8b84b;
  --line: rgba(35, 53, 46, 0.14);
  --shadow: 0 18px 55px rgba(39, 68, 52, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: white;
  background: var(--green-dark);
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero {
  position: relative;
  padding-bottom: 46px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(232, 184, 75, .24), transparent 22%),
    radial-gradient(circle at 92% 24%, rgba(224, 122, 137, .22), transparent 24%),
    radial-gradient(circle at 76% 82%, rgba(135, 184, 207, .22), transparent 28%),
    var(--cream);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 280px; height: 280px; top: -170px; left: -70px; border: 46px solid rgba(198, 155, 69, .12); }
.hero::after { width: 180px; height: 180px; right: -70px; bottom: 28px; background: rgba(224, 122, 137, .10); }

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--green); }
.nav-cta { padding: 10px 19px; border: 1px solid var(--green); border-radius: 999px; color: var(--green-dark); font-weight: 700; text-decoration: none; background: rgba(255,255,255,.48); }

.hero-visual {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, .9);
  border-radius: 30px;
  background: white;
  box-shadow: 0 24px 70px rgba(35, 82, 57, .18);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-welcome {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .22em; }
.lead { max-width: 700px; margin: 0; color: #43574d; font-size: 1.04rem; line-height: 1.9; }
.lead strong { color: var(--green-dark); font-size: 1.16rem; }
.hero-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 12px; margin: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .date-tab:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(224, 122, 137, .45); outline-offset: 3px; }
.button-primary { color: white; background: linear-gradient(120deg, var(--green), #4e9568); box-shadow: 0 10px 24px rgba(47, 107, 79, .2); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: var(--pink); color: #a84d5d; background: rgba(255, 255, 255, .72); }
.button-secondary:hover { color: white; background: var(--pink); }

.hero-meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-meta p { display: grid; gap: 2px; margin: 0; padding: 19px 26px; }
.hero-meta p + p { border-left: 1px solid var(--line); }
.hero-meta span { color: var(--muted); font-size: .72rem; letter-spacing: .12em; }
.hero-meta strong { font-size: .96rem; }

.schedule-section {
  padding: 110px 0 120px;
  background:
    radial-gradient(circle at 100% 10%, rgba(232, 184, 75, .13), transparent 21%),
    radial-gradient(circle at 0% 72%, rgba(224, 122, 137, .10), transparent 20%),
    var(--paper);
}
.section-heading { max-width: 760px; margin-bottom: 45px; }
.section-heading h2, .application-intro h2 { margin: 0 0 15px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.35; }
.section-heading > p:last-child, .application-intro > p { margin: 0; color: var(--muted); }

.schedule-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 26px; align-items: stretch; }
.date-tabs { display: grid; gap: 10px; }
.date-tab {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  box-shadow: 0 7px 18px rgba(39, 68, 52, .06);
  cursor: pointer;
  transition: border .2s ease, background .2s ease, transform .2s ease;
}
.date-tab:nth-child(1) { border-left: 5px solid var(--sun); background: #fff9e9; }
.date-tab:nth-child(2) { border-left: 5px solid var(--pink); background: #fff3f5; }
.date-tab:nth-child(3) { border-left: 5px solid var(--green); background: #f1f8f2; }
.date-tab:nth-child(4) { border-left: 5px solid var(--sky); background: #f0f8fb; }
.date-tab:nth-child(5) { border-left: 5px solid #e29457; background: #fff5ed; }
.date-tab:hover { transform: translateX(3px); border-color: rgba(47, 107, 79, .4); }
.date-tab.is-active { border-color: var(--green); color: white; background: var(--green); box-shadow: 0 12px 28px rgba(47, 107, 79, .18); }
.tab-date { display: flex; align-items: baseline; gap: 6px; }
.tab-date b { font-size: 1.45rem; letter-spacing: .01em; }
.tab-date small { font-weight: 700; }
.tab-label { padding-left: 16px; border-left: 1px solid currentColor; font-size: .86rem; font-weight: 700; line-height: 1.45; opacity: .92; }

.event-detail { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 438px; padding: 58px; overflow: hidden; border: 1px solid rgba(232, 184, 75, .24); border-radius: 24px; background: linear-gradient(145deg, #fffaf0, var(--cream)); box-shadow: 0 15px 40px rgba(39, 68, 52, .08); }
.event-detail::after { content: "♪"; position: absolute; right: -8px; bottom: -70px; color: rgba(224, 122, 137, .14); font-family: serif; font-size: 13rem; transform: rotate(9deg); }
.event-number { color: var(--pink); font-family: "Yu Mincho", serif; font-size: 2rem; font-weight: 700; }
.event-copy { position: relative; z-index: 1; max-width: 570px; }
.event-date { margin: 0 0 8px; color: var(--green); font-weight: 800; letter-spacing: .05em; }
.event-copy h3 { margin: 0 0 20px; font-family: "Yu Mincho", serif; font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.4; }
.event-description { margin: 0 0 28px; color: #506157; }
.event-info { display: grid; gap: 10px; margin: 0 0 28px; }
.event-info div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.event-info dt { color: var(--muted); font-size: .8rem; }
.event-info dd { margin: 0; font-weight: 800; }
.text-link { color: var(--green-dark); font-weight: 800; text-underline-offset: 5px; }

.venue-strip { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: white; }
.venue-strip p { margin: 0; }
.venue-strip span { margin-right: 10px; color: var(--pink); font-size: .65rem; }
.venue-strip strong { color: var(--ink); }

.application-section { padding: 110px 0; background: linear-gradient(135deg, var(--cream), #f3f8ee 55%, #fff2f4); }
.application-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 70px; align-items: start; }
.application-intro { position: sticky; top: 30px; }
.message-card { display: flex; align-items: center; gap: 18px; margin-top: 34px; padding: 22px; border-radius: 16px; color: var(--green-dark); background: var(--green-soft); }
.message-card > span { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; color: white; background: var(--green); font-size: 1.3rem; }
.message-card p { margin: 0; }
.message-card strong { color: var(--pink); }

.application-cta-card {
  padding: 46px;
  border: 1px solid rgba(35,53,46,.08);
  border-top: 7px solid var(--sun);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}
.application-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.application-cta-card h3 {
  margin: 0 0 18px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.45;
}
.application-cta-card > p:not(.application-badge):not(.application-help) {
  margin: 0;
  color: var(--muted);
}
.application-button {
  width: 100%;
  margin-top: 30px;
  gap: 9px;
}
.application-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.application-form, .confirmation { padding: 36px; border: 1px solid rgba(35,53,46,.08); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.application-form label, .application-form legend { color: var(--ink); font-size: .9rem; font-weight: 800; }
.application-form label > span:not(.consent span), .application-form legend > span { margin-left: 8px; color: var(--pink); font-size: .7rem; }
input[type="text"], input:not([type]), input[type="email"], input[type="tel"], textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #ccd3ce;
  border-radius: 10px;
  color: var(--ink);
  background: #fffefa;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--green); }
fieldset { margin: 28px 0 22px; padding: 0; border: 0; }
.field-note { margin: 0 0 11px; color: var(--muted); font-size: .76rem; }
.check-grid { display: grid; gap: 9px; }
.check-grid label { display: block; cursor: pointer; }
.check-grid input { position: absolute; opacity: 0; pointer-events: none; }
.check-grid span { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; background: #fffefa; transition: border .15s ease, background .15s ease; }
.check-grid input:checked + span { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.check-grid input:focus-visible + span { outline: 3px solid rgba(224, 122, 137, .45); outline-offset: 2px; }
.full-label { display: block; margin-top: 18px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; font-weight: 500 !important; line-height: 1.6; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); }
.form-error { min-height: 1.5em; margin: 12px 0 0; color: #b33c4d; font-size: .83rem; font-weight: 700; }
.submit-button { width: 100%; margin-top: 8px; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: .74rem; text-align: center; }

.confirmation { text-align: center; }
.confirmation-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; color: white; background: var(--green); font-size: 1.6rem; }
.confirmation h3 { margin: 0 0 10px; font-family: "Yu Mincho", serif; font-size: 1.8rem; }
.confirmation > p { color: var(--muted); }
.confirmation pre { margin: 24px 0; padding: 18px; overflow: auto; border-radius: 12px; color: var(--ink); text-align: left; white-space: pre-wrap; word-break: break-word; background: var(--cream); font-family: inherit; font-size: .85rem; }
.confirmation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.copy-status { min-height: 1.5em; margin-bottom: 0; color: var(--green) !important; font-weight: 700; }

footer { padding: 34px 0; color: #dceadf; background: var(--green-dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: white; font-weight: 700; text-underline-offset: 5px; }

@media (max-width: 860px) {
  .hero-welcome { align-items: flex-start; flex-direction: column; gap: 24px; }
  .schedule-layout, .application-grid { grid-template-columns: 1fr; }
  .application-grid { gap: 42px; }
  .application-intro { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav { min-height: 70px; }
  .brand { font-size: .78rem; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-cta { padding: 7px 13px; font-size: .78rem; }
  .hero-visual { border-width: 4px; border-radius: 18px; }
  .hero-welcome { padding-top: 24px; padding-bottom: 24px; }
  .lead { font-size: .96rem; line-height: 1.85; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta p { padding: 13px 8px; }
  .hero-meta p + p { border-top: 1px solid var(--line); border-left: 0; }
  .schedule-section, .application-section { padding: 78px 0; }
  .section-heading { margin-bottom: 28px; }
  .date-tabs { display: flex; margin-inline: -14px; padding: 0 14px 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .date-tab { flex: 0 0 142px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 92px; padding: 12px 14px; scroll-snap-align: start; }
  .tab-date b { font-size: 1.3rem; }
  .tab-label { margin-top: 4px; padding: 0; border: 0; }
  .event-detail { grid-template-columns: 1fr; min-height: 0; padding: 28px 22px 34px; }
  .event-number { margin-bottom: 20px; font-size: 1.45rem; }
  .venue-strip { display: grid; padding: 16px 18px; font-size: .86rem; }
  .application-form, .confirmation, .application-cta-card { padding: 28px 20px; border-radius: 18px; }
  .two-columns { grid-template-columns: 1fr; }
  .form-row { gap: 14px; }
  .confirmation-actions { display: grid; grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .brand > span:last-child { display: none; }
  .nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
