:root {
  --blue: #1e50a2;
  --blue-deep: #092d62;
  --blue-night: #061d3e;
  --red: #a52738;
  --gold: #d7aa52;
  --ink: #17233a;
  --muted: #5c687b;
  --paper: #ffffff;
  --soft: #f3f7fc;
  --line: #dbe4f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 5vw;
  border-bottom: 1px solid rgba(9,45,98,.1);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.brand img { width: 216px; }
.global-nav { display: flex; gap: 28px; color: #40506a; font-size: 14px; font-weight: 700; }
.global-nav a:hover { color: var(--blue); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(2,18,62,.95) 0%, rgba(4,31,88,.88) 44%, rgba(6,42,112,.6) 72%, rgba(4,31,88,.62) 100%),
    url("./main-group.webp");
  background-position: center 48%;
  background-size: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,28,80,.14), rgba(2,16,52,.56));
}
.hero-inner { position: relative; z-index: 2; width: min(1120px, 90vw); margin: 0 auto; padding: 108px 0 116px; text-shadow: 0 3px 18px rgba(0,0,0,.62); }
.eyebrow { display: block; margin: 0 0 12px; color: #f3d28d; font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.hero-brand { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; font-size: 20px; letter-spacing: .1em; }
.eyebrow.blue { color: var(--blue); }
.hero h1 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(50px, 7vw, 88px); line-height: 1.25; letter-spacing: .08em; text-shadow: 0 6px 28px rgba(0,0,0,.24); }
.hero-copy { margin: 26px 0 10px; font-size: clamp(19px, 2.4vw, 28px); font-weight: 700; letter-spacing: .04em; }
.hero-note { margin: 0; color: #eef5ff; font-size: 16px; }
.hero-link { display: inline-flex; margin-top: 34px; padding: 14px 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; background: rgba(3,20,46,.38); backdrop-filter: blur(5px); font-weight: 800; }

.section { padding: 96px max(5vw,24px); }
.section-heading { text-align: center; }
.section-heading.left { width: min(1120px,100%); margin: 0 auto 34px; text-align: left; }
.section-heading h2, .event-content h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(32px,4vw,50px); line-height: 1.45; letter-spacing: .04em; }
.section-heading p:last-child, .section-heading .schedule-intro { margin: 10px 0 0; color: var(--muted); }
.section-heading p.schedule-payment-notice { margin: 12px 0 0; color: var(--red); }
.schedule-payment-notice a { display: inline-flex; align-items: center; padding: 9px 14px; border: 2px solid #c81e3a; border-left-width: 6px; border-radius: 5px; color: #b31530; background: #fff1f3; box-shadow: 0 5px 14px rgba(165,39,56,.12); font-size: 16px; font-weight: 900; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.schedule-payment-notice a:hover { color: #fff; background: var(--red); }

.schedule { background: linear-gradient(#f8fbff,#eef4fa); }
.schedule-grid { display: grid; gap: 14px; width: min(1120px,100%); margin: 0 auto; }
.schedule-card {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0,1fr);
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--blue);
  background: #fff;
  box-shadow: 0 14px 36px rgba(19,52,94,.09);
  transition: transform .2s, box-shadow .2s;
}
.schedule-card:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(19,52,94,.14); }
.schedule-card-link { position: absolute; z-index: 1; inset: 0; }
.schedule-thumb { position: relative; overflow: hidden; border-radius: 4px; background: var(--blue-night); aspect-ratio: 16 / 9; }
.schedule-thumb::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent,rgba(3,24,53,.78)); }
.schedule-thumb img { width: 100%; height: 100%; object-fit: cover; }
.schedule-date { position: absolute; z-index: 2; right: 10px; bottom: 8px; left: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,.85); }
.schedule-date div { display: flex; align-items: baseline; white-space: nowrap; }
.schedule-date span { color: inherit; font-size: 13px; font-weight: 800; }
.schedule-date strong { color: inherit; font-family: Georgia, serif; font-size: 30px; line-height: 1; }
.schedule-date small { color: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; }
.schedule-thumb .status { position: absolute; z-index: 3; top: 8px; right: 8px; min-width: 64px; padding: 5px 9px; font-size: 12px; }
.schedule-body { min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span, .visual-label span { padding: 3px 10px; border-radius: 999px; color: var(--blue); background: #eaf1fb; font-size: 12px; font-weight: 800; }
.schedule-body h3 { margin: 7px 0 0; font-size: 24px; }
.schedule-event-title { margin: 3px 0 0; color: var(--blue-deep); font-size: 17px; font-weight: 800; line-height: 1.5; }
.schedule-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.55; }
.schedule-action-row { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; margin-top: 9px; white-space: nowrap; }
.schedule-detail-button { display: inline-flex; align-items: center; justify-content: center; min-width: 118px; min-height: 38px; padding: 6px 18px; border: 1px solid var(--blue); border-radius: 5px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 800; line-height: 1.3; }
.schedule-detail-button:hover { background: var(--blue-deep); }
.schedule-fee-badge { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 11px; border: 2px solid #c81e3a; border-radius: 5px; color: #b31530; background: #fff2f4; font-size: 16px; font-weight: 900; line-height: 1.2; }
.status { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.status.open { color: #fff; background: var(--red); }
.status.closed { color: #6d4a0b; background: #f5e0a8; }
.status.ended { color: #647083; background: #e9edf2; }
.status.full { color: #fff6d5; background: #9b1732; border: 2px solid #edc56e; box-shadow: 0 3px 12px rgba(96,8,28,.28); }
.empty-message { width: min(1120px,100%); margin: 0 auto; padding: 30px; border: 1px solid var(--line); background: #fff; text-align: center; }

.event-details { padding: 96px 0 0; }
.details-heading { margin-bottom: 50px; padding: 0 24px; }
.event-block { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); width: min(1180px,90vw); margin: 0 auto 112px; scroll-margin-top: 100px; background: #fff; box-shadow: 0 24px 70px rgba(21,52,95,.14); }
.event-block.alternate .event-visual { order: 2; }
.event-visual { position: relative; min-height: 600px; overflow: hidden; background: var(--blue-night); }
.event-visual img { width: 100%; height: 100%; object-fit: cover; }
.event-block:first-of-type .event-visual img { object-position: center; }
.visual-label { position: absolute; top: 22px; left: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100% - 44px); padding: 8px 13px; color: #fff; background: rgba(6,29,62,.86); font-size: 13px; font-weight: 800; line-height: 1.5; }
.event-block.poster .event-visual { min-height: 0; aspect-ratio: 3 / 4; background: #eaf2fb; }
.event-block.poster .event-visual img { object-fit: contain; }
.event-content { padding: 52px 48px; }
.event-kicker { display: flex; align-items: center; gap: 14px; color: var(--blue); font-size: 14px; font-weight: 800; }
.event-content h2 { margin-top: 15px; font-size: clamp(32px,3.4vw,44px); }
.event-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 17px; font-weight: 600; line-height: 1.6; }
.event-copy { margin: 22px 0 26px; color: var(--muted); }
.event-copy p { margin: 0 0 12px; }
.event-facts { margin: 0; border-top: 1px solid var(--line); }
.event-facts div { display: grid; grid-template-columns: 94px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.event-facts dt { color: var(--blue); font-size: 13px; font-weight: 800; }
.event-facts dd { margin: 0; }
.event-facts dd strong { color: var(--blue-deep); font-size: 19px; }
.payment-link { display: inline-flex; margin-top: 6px; color: var(--blue); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.payment-link:hover { color: var(--red); }
.event-facts small { color: var(--muted); }
.event-note { margin: 20px 0 0; padding: 14px 17px; border-left: 4px solid var(--gold); background: #fff8e8; color: #5e4a1d; font-size: 14px; }
.apply-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 24px; border-radius: 6px; color: #fff; background: var(--red); font-weight: 800; }
.apply-button:hover { filter: brightness(1.06); }
.apply-button.disabled { color: #687487; background: #e8edf3; }
.apply-button.disabled.full { color: #fff6d5; background: #9b1732; border: 2px solid #edc56e; cursor: not-allowed; }
.event-map { grid-column: 1 / -1; height: 400px; }
.event-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.archive { padding-top: 18px; background: var(--soft); }
.archive details { width: min(1120px,100%); margin: 0 auto; border: 1px solid var(--line); background: #fff; }
.archive summary { display: flex; align-items: center; justify-content: space-between; padding: 26px 30px; cursor: pointer; list-style: none; }
.archive summary::-webkit-details-marker { display: none; }
.archive summary strong { display: block; font-family: "Yu Mincho", serif; font-size: 27px; }
.archive summary .eyebrow { margin-bottom: 2px; }
.archive-count { color: var(--blue); font-weight: 800; }
.archive-list { padding: 0 30px 26px; }
.archive-item { display: grid; grid-template-columns: 180px 1fr auto; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 170px; padding: 42px max(5vw,24px); color: #697487; background: #f7f9fc; font-size: 13px; }
footer img { width: 190px; }
footer div { display: grid; justify-items: end; gap: 8px; }
footer a { color: var(--blue); font-weight: 700; }
noscript { display: block; padding: 20px; background: #fff0d6; text-align: center; }

@media (max-width: 800px) {
  html { scroll-padding-top: 64px; }
  .site-header { min-height: 62px; padding: 10px 18px; }
  .brand img { width: 166px; }
  .global-nav { display: none; }
  .hero { background-image: linear-gradient(180deg, rgba(2,21,70,.8), rgba(1,15,52,.91)), url("./main-group.webp"); background-position: 50% center; }
  .hero-inner { width: auto; padding: 78px 24px 82px; text-align: center; }
  .hero-brand { font-size: 17px; }
  .hero h1 { font-size: 48px; }
  .hero-copy { font-size: 20px; }
  .hero-note { font-size: 15px; }
  .desktop-only { display: none; }
  .section { padding: 70px 14px; }
  .schedule-payment-notice a { width: 100%; justify-content: center; padding: 9px 10px; font-size: 14px; text-align: center; }
  .schedule-grid { gap: 10px; }
  .schedule-card { grid-template-columns: minmax(136px,44%) minmax(0,1fr); gap: 12px; padding: 9px 10px; border-left-width: 5px; }
  .schedule-card.has-detail-page { grid-template-columns: 104px minmax(0,1fr); gap: 8px; }
  .schedule-thumb { width: 100%; aspect-ratio: 4 / 3; }
  .schedule-date { right: 7px; bottom: 7px; left: 8px; display: block; }
  .schedule-date span { font-size: 11px; }
  .schedule-date strong { font-size: 27px; }
  .schedule-date small { display: block; margin-top: 2px; font-size: 12px; }
  .schedule-thumb .status { top: 6px; right: 6px; min-width: 56px; padding: 4px 7px; font-size: 11px; }
  .schedule-body .tags { gap: 4px; }
  .schedule-body .tags span { padding: 3px 7px; font-size: 11px; }
  .schedule-body h3 { margin-top: 7px; padding-right: 0; font-size: 18px; line-height: 1.45; }
  .schedule-event-title { margin-top: 2px; font-size: 13px; line-height: 1.45; }
  .schedule-subtitle { font-size: 12px; }
  .schedule-action-row { gap: 5px; margin-top: 7px; }
  .schedule-detail-button { min-width: 70px; min-height: 30px; padding: 4px 7px; font-size: 11px; }
  .schedule-fee-badge { min-height: 30px; padding: 3px 5px; font-size: 11px; border-width: 1px; }
  .event-details { padding-top: 70px; }
  .event-block { grid-template-columns: 1fr; width: calc(100% - 40px); margin-bottom: 74px; }
  .event-block.alternate .event-visual { order: 0; }
  .event-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .event-content { padding: 34px 24px 38px; }
  .event-kicker { align-items: flex-start; flex-direction: column; gap: 8px; }
  .event-content h2 { font-size: 31px; }
  .event-subtitle { font-size: 15px; }
  .event-facts div { grid-template-columns: 76px 1fr; gap: 10px; }
  .event-map { height: 330px; }
  .archive-item { grid-template-columns: 1fr; gap: 2px; }
  footer { flex-direction: column; justify-content: center; min-height: 220px; text-align: center; }
  footer div { justify-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .schedule-card { transition: none; }
}
