:root {
  --ink: #11151c;
  --field: #101820;
  --paper: #fbf6ea;
  --white: #fffef9;
  --cream: #f3ead6;
  --gold: #b98b2f;
  --gold-2: #e4bd57;
  --red: #b7192b;
  --muted: #626b77;
  --line: rgba(17, 21, 28, 0.13);
  --shadow: 0 20px 50px rgba(17, 21, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body-font, "Noto Sans JP", sans-serif);
  line-height: 1.75;
  background:
    radial-gradient(circle at 82% 10%, rgba(228, 189, 87, 0.25), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #f3ead6 48%, #fffef9 100%);
  background-size: 140% 140%;
  animation: pageGlow 12s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(126, 93, 47, 0.18) 0 16%, transparent 17%),
    conic-gradient(from 45deg at 50% 69%, transparent 0 25%, rgba(255, 255, 255, 0.4) 25% 25.7%, transparent 25.7% 50%, rgba(255, 255, 255, 0.4) 50% 50.7%, transparent 50.7% 75%, rgba(255, 255, 255, 0.4) 75% 75.7%, transparent 75.7%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 92px),
    linear-gradient(180deg, #d9c391 0%, #efe2bb 42%, #8fa767 100%);
  opacity: 0.42;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 254, 249, 0.78), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(255, 244, 199, 0.58), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.72), rgba(255, 254, 249, 0.42) 44%, rgba(245, 236, 216, 0.42));
}

body[data-layout="compact"] .section,
body[data-layout="compact"] .hero {
  padding-top: 48px;
  padding-bottom: 48px;
}

body[data-layout="spacious"] .section,
body[data-layout="spacious"] .hero {
  padding-top: clamp(90px, 11vw, 140px);
  padding-bottom: clamp(90px, 11vw, 140px);
}

body[data-hero-image="bottom"] .hero {
  grid-template-columns: 1fr;
}

body[data-hero-image="bottom"] .hero-media {
  max-width: 720px;
}

body[data-card-style="flat"] .intro-card,
body[data-card-style="flat"] .guest-card,
body[data-card-style="flat"] .record,
body[data-card-style="flat"] .contact-panel,
body[data-card-style="flat"] .event-main,
body[data-card-style="flat"] .event-flow {
  box-shadow: none;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--gold-2);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 54px);
  background: rgba(255, 254, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.brand img {
  width: clamp(170px, 20vw, 280px);
}

.brand::after {
  content: none;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  font-weight: 900;
  font-size: 14px;
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: auto;
  padding: clamp(76px, 10vw, 138px) clamp(18px, 6vw, 86px) clamp(48px, 7vw, 88px);
  isolation: isolate;
  background:
    radial-gradient(ellipse at 72% 74%, rgba(119, 141, 87, 0.2), transparent 34%),
    conic-gradient(from 45deg at 70% 58%, transparent 0 24.5%, rgba(185, 139, 47, 0.24) 24.5% 25.2%, transparent 25.2% 49.5%, rgba(185, 139, 47, 0.22) 49.5% 50.2%, transparent 50.2% 74.5%, rgba(185, 139, 47, 0.22) 74.5% 75.2%, transparent 75.2%),
    linear-gradient(112deg, transparent 0 58%, rgba(17, 21, 28, 0.055) 58% 59%, transparent 59%),
    radial-gradient(circle at 86% 42%, rgba(185, 139, 47, 0.2), transparent 30%),
    rgba(255, 250, 238, 0.38);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 6% 8% auto;
  z-index: -1;
  width: min(56vw, 740px);
  aspect-ratio: 1;
  border: 2px solid rgba(185, 139, 47, 0.22);
  transform: rotate(45deg);
  animation: diamondFloat 7s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 34%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(119, 141, 87, 0.18), transparent 62%),
    repeating-linear-gradient(90deg, rgba(17, 21, 28, 0.07) 0 1px, transparent 1px 78px),
    linear-gradient(180deg, transparent, rgba(185, 139, 47, 0.12));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  max-width: 1240px;
  font-family: var(--heading-font, "Anton", "Noto Sans JP", sans-serif);
  font-size: clamp(46px, 4.4vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.mobile-title-break {
  display: none;
}

.hero-sub {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.35;
}

.lead {
  max-width: 920px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  overflow-wrap: anywhere;
}

.hero__copy {
  min-width: 0;
  max-width: 1280px;
}

.hero-players {
  display: none;
}

.hero-players__diamond {
  position: absolute;
  inset: 8% 8% 6%;
  border: 2px solid rgba(185, 139, 47, 0.26);
  transform: rotate(45deg);
  animation: diamondFloat 7s ease-in-out infinite;
}

.player-figure {
  position: absolute;
  width: 230px;
  height: 240px;
  filter: drop-shadow(0 28px 22px rgba(17, 21, 28, 0.18));
}

.player-figure span {
  position: absolute;
  display: block;
  background: var(--ink);
}

.player-figure::before {
  content: "";
  position: absolute;
  inset: 12px 22px 16px;
  background: var(--ink);
}

.player-figure .head,
.player-figure .body,
.player-figure .arm,
.player-figure .leg {
  display: none;
}

.player-figure .head {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  left: 58px;
  top: 14px;
}

.player-figure .body {
  width: 38px;
  height: 82px;
  border-radius: 24px 24px 16px 16px;
  left: 58px;
  top: 50px;
  transform: rotate(-9deg);
}

.player-figure .arm,
.player-figure .leg,
.player-figure .bat {
  height: 15px;
  border-radius: 999px;
  transform-origin: left center;
}

.player-figure .arm {
  width: 78px;
  top: 72px;
  left: 73px;
}

.player-figure .leg {
  width: 86px;
  top: 124px;
  left: 72px;
}

.player-figure--batter {
  right: 2%;
  top: 4%;
  animation: batterPulse 2.8s ease-in-out infinite;
}

.player-figure--batter::before {
  clip-path: polygon(
    58% 5%, 68% 9%, 72% 18%, 69% 28%, 61% 31%, 55% 28%, 49% 36%, 70% 43%, 94% 31%,
    99% 39%, 78% 57%, 63% 54%, 58% 72%, 89% 90%, 80% 99%, 52% 80%, 35% 99%,
    25% 91%, 43% 68%, 38% 48%, 13% 35%, 18% 25%, 43% 35%, 50% 23%, 49% 13%
  );
}

.player-figure--batter .bat {
  display: block;
  width: 160px;
  height: 13px;
  top: 34px;
  left: 8px;
  background: var(--gold);
  border-radius: 999px;
  transform: rotate(-34deg);
  transform-origin: right center;
}

.player-figure--pitcher {
  left: 0;
  bottom: 2%;
  transform: scale(0.82);
  animation: pitcherKick 3.2s ease-in-out infinite;
}

.player-figure--pitcher::before {
  clip-path: polygon(
    50% 7%, 60% 12%, 63% 22%, 58% 31%, 48% 33%, 39% 30%, 31% 39%, 7% 51%, 11% 61%,
    42% 52%, 50% 62%, 64% 91%, 56% 99%, 37% 70%, 19% 94%, 9% 86%, 30% 61%,
    22% 47%, 37% 32%, 39% 15%
  );
}

.player-figure .ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  left: 142px;
  top: 8px;
  background: white;
  border: 3px solid var(--red);
  animation: ballFlight 3.2s ease-in-out infinite;
}

.player-figure--pitcher .ball {
  display: block;
}

.hero__actions,
.admin-actions,
.admin-sticky {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.mini-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible,
.mini-button:hover,
.mini-button:focus-visible {
  transform: translateY(-2px);
}

.button--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 16px 28px rgba(185, 139, 47, 0.22);
}

.button--light,
.mini-button {
  background: rgba(255, 254, 249, 0.86);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button--dark {
  background: rgba(255, 254, 249, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
}

.mini-button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
}

.mini-button--danger {
  color: #8e1320;
}

.hero-media {
  display: none;
}

.hero-media img {
  width: 100%;
  background: white;
  border-radius: 10px;
}

.hero-media p {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.section {
  position: relative;
  padding: clamp(70px, 9vw, 118px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(ellipse at 12% 100%, rgba(119, 141, 87, 0.16), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 86px),
    linear-gradient(180deg, rgba(255, 254, 249, 0.38), rgba(246, 239, 222, 0.26));
}

#main {
  display: flex;
  flex-direction: column;
}

#next {
  order: 2;
}

#about {
  order: 3;
}

#guests {
  order: 4;
}

#record {
  order: 5;
}

#contact {
  order: 6;
}

.section--white {
  background:
    radial-gradient(circle at 80% 8%, rgba(143, 167, 103, 0.14), transparent 30%),
    radial-gradient(ellipse at 18% 100%, rgba(119, 141, 87, 0.14), transparent 42%),
    linear-gradient(90deg, rgba(185, 139, 47, 0.08) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, rgba(255, 254, 249, 0.5), rgba(248, 243, 232, 0.34));
}

.section__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 34px;
  position: relative;
  padding-left: 18px;
  border-left: 6px solid var(--gold);
}

.section-heading h2,
.event-main h2,
.admin-title {
  margin: 0;
  font-family: var(--heading-font, "Anton", "Noto Sans JP", sans-serif);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.06;
}

.section-heading p,
.event-main p,
.intro-card p,
.guest-card p,
.record p {
  margin: 0;
  color: var(--muted);
}

.intro-grid,
.guest-grid,
.record-list,
.contact-grid,
.event-layout {
  display: grid;
  gap: 18px;
}

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

.guest-grid {
  display: flex;
  grid-template-columns: none;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 6px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) rgba(17, 21, 28, 0.08);
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.event-layout,
.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.intro-card,
.guest-card,
.record,
.contact-panel,
.event-main,
.event-flow,
.admin-panel,
.admin-item {
  background: rgba(255, 254, 249, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-top: 4px solid rgba(17, 21, 28, 0.86);
}

.guest-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 300px;
  max-width: 430px;
  scroll-snap-align: start;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  background:
    linear-gradient(135deg, rgba(17, 21, 28, 0.045), transparent 38%),
    rgba(255, 254, 249, 0.94);
}

.guest-card:hover {
  transform: translateY(-8px);
  border-color: rgba(185, 139, 47, 0.46);
  box-shadow: 0 26px 60px rgba(17, 21, 28, 0.16);
}

.intro-card,
.guest-card,
.record,
.contact-panel,
.event-main,
.event-flow {
  padding: clamp(22px, 3vw, 32px);
}

.intro-card span,
.record-date,
.event-flow span {
  color: var(--gold);
  font-family: "Anton", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.record-date {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
}

.record-year {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(185, 139, 47, 0.14);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.record-day {
  color: var(--gold);
  font-size: clamp(42px, 4.4vw, 72px);
  line-height: 0.95;
  white-space: nowrap;
}

.intro-card h3,
.guest-card h3,
.record h3 {
  margin: 12px 0 8px;
}

.guest-card__tag {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.event-section {
  padding-top: clamp(46px, 7vw, 74px);
  background:
    radial-gradient(circle at 12% 18%, rgba(228, 189, 87, 0.22), transparent 30%),
    radial-gradient(ellipse at 88% 100%, rgba(119, 141, 87, 0.18), transparent 38%),
    linear-gradient(90deg, rgba(185, 139, 47, 0.08) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, rgba(255, 254, 249, 0.44), rgba(245, 236, 216, 0.3));
}

.event-main,
.event-flow {
  position: relative;
  overflow: hidden;
  border-top-color: var(--gold);
}

.event-main::before,
.event-flow::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: shineSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.event-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.event-list div,
.contact-panel div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--gold);
  font-weight: 900;
}

dd {
  margin: 0;
  font-weight: 700;
}

.event-flow h3 {
  margin: 0 0 18px;
}

.poster-box,
.record-media {
  display: block;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

#recordModalMedia {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.poster-box {
  margin: 0 0 22px;
}

#recordModalMedia .record-media {
  margin: 0;
}

.poster-box img,
.record-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.poster-box figcaption,
.record-media figcaption {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.poster-box--pdf,
.record-media--pdf {
  padding: 18px;
}

.poster-box--pdf span,
.record-media--pdf span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  font-weight: 700;
}

.poster-box--pdf strong,
.record-media--pdf strong {
  display: block;
}

.event-flow ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-flow li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}

.record-list {
  grid-template-columns: 1fr;
}

.record {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) auto;
  column-gap: clamp(30px, 4vw, 64px);
  align-items: center;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.record:hover,
.record:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(185, 139, 47, 0.5);
  box-shadow: 0 26px 56px rgba(17, 21, 28, 0.14);
}

.record-badge {
  width: fit-content;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.record-more {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(185, 139, 47, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.record-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  place-items: center;
  padding: 20px;
}

.record-modal[aria-hidden="false"] {
  display: grid;
}

.record-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 28, 0.56);
  backdrop-filter: blur(8px);
}

.record-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(82vh, 860px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(185, 139, 47, 0.28);
  border-top: 5px solid var(--gold);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(17, 21, 28, 0.25);
}

.record-modal__panel time {
  color: var(--gold);
  font-family: "Anton", sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.record-modal__panel h2 {
  margin: 16px 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.25;
}

.record-modal__panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.record-modal__panel strong {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.record-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 7px 12px;
  font-weight: 900;
  cursor: pointer;
}

.contact {
  background: linear-gradient(180deg, #f8f0df, #fffef9);
}

.contact-panel .button {
  width: 100%;
  margin-top: 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 6vw, 86px);
  background: #fff8e9;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes diamondFloat {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(-16px);
  }
}

@keyframes pageGlow {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 45%;
  }
}

@keyframes shineSweep {
  0%,
  45% {
    transform: translateX(0) skewX(-18deg);
  }
  78%,
  100% {
    transform: translateX(430%) skewX(-18deg);
  }
}

@keyframes batterPulse {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-12px);
  }
}

@keyframes pitcherKick {
  0%,
  100% {
    transform: scale(0.86) rotate(0deg) translateY(0);
  }
  50% {
    transform: scale(0.86) rotate(-5deg) translateY(-10px);
  }
}

@keyframes ballFlight {
  0%,
  35% {
    transform: translate(0, 0);
    opacity: 0;
  }
  48% {
    opacity: 1;
  }
  100% {
    transform: translate(150px, 54px);
    opacity: 0;
  }
}

.admin-body {
  background: #f5ecd8;
}

.admin-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 18px;
  background: rgba(255, 254, 249, 0.88);
  border-right: 1px solid var(--line);
}

.admin-sidebar h1 {
  margin: 0 0 10px;
  font-family: var(--heading-font, "Anton", "Noto Sans JP", sans-serif);
  font-size: 44px;
}

.admin-sidebar p {
  color: var(--muted);
}

.admin-help {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff8e9;
  font-size: 13px;
}

.drop-zone {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 128px;
  padding: 24px;
  border: 2px dashed rgba(15, 20, 28, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(185, 139, 47, 0.1), rgba(143, 187, 39, 0.12)),
    rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.drop-zone strong {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

.drop-zone span {
  color: var(--muted);
  font-weight: 800;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: var(--green);
  background:
    linear-gradient(135deg, rgba(185, 139, 47, 0.16), rgba(143, 187, 39, 0.2)),
    #fffdf5;
  box-shadow: 0 18px 44px rgba(55, 49, 36, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.drop-zone--poster {
  min-height: 112px;
}

.drop-zone--compact {
  min-height: 96px;
  padding: 18px;
}

.admin-tabs {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.admin-tabs button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  padding: 10px 14px;
}

.admin-tabs button.is-active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.admin-sidebar__actions {
  display: grid;
  gap: 10px;
}

.admin-workspace {
  min-width: 0;
  padding: 26px clamp(18px, 4vw, 52px) 80px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: -26px calc(clamp(18px, 4vw, 52px) * -1) 22px;
  padding: 16px clamp(18px, 4vw, 52px);
  background: rgba(245, 236, 216, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.admin-topbar h2 {
  margin: 0;
  font-family: var(--heading-font, "Anton", "Noto Sans JP", sans-serif);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.admin-panel {
  display: none;
  gap: 16px;
  padding: 24px;
}

.admin-panel.is-active {
  display: grid;
}

.admin-panel h3,
.admin-panel h4 {
  margin: 0;
}

.admin-panel__intro {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-panel__intro p {
  margin: 0;
  color: var(--muted);
}

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

.admin-panel label,
.admin-item label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select,
.admin-item input,
.admin-item textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}

.admin-panel textarea,
.admin-item textarea {
  resize: vertical;
}

.admin-list-head,
.admin-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-items {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-nested-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 248, 233, 0.72);
}

.admin-nested-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: white;
}

.admin-status {
  min-height: 28px;
  color: var(--red);
  font-weight: 900;
  margin-top: 16px;
}

.admin-workspace.is-locked {
  opacity: 0.4;
  pointer-events: none;
}

.admin-auth {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 2px solid rgba(185, 139, 47, 0.42);
  border-radius: 12px;
  background: #fffef9;
  box-shadow: 0 14px 28px rgba(185, 139, 47, 0.14);
}

.admin-auth h2 {
  margin: 0;
  font-size: 20px;
}

.admin-auth p {
  margin: 0;
  font-size: 13px;
}

.admin-auth label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.admin-auth input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.admin-auth__actions {
  display: grid;
  gap: 8px;
}

.intro-card {
  position: relative;
  overflow: hidden;
}

.intro-card__icon {
  display: none;
}

.intro-card__icon::before,
.intro-card__icon::after,
.intro-card__icon span {
  content: "";
  position: absolute;
  display: block;
}

.intro-card--1 .intro-card__icon::before {
  width: 38px;
  height: 28px;
  left: 18px;
  top: 22px;
  border: 4px solid var(--ink);
  border-radius: 4px;
  transform: skewY(-8deg);
}

.intro-card--1 .intro-card__icon::after {
  width: 34px;
  height: 4px;
  left: 20px;
  top: 52px;
  background: var(--gold);
}

.intro-card--2 .intro-card__icon::before {
  width: 24px;
  height: 24px;
  left: 17px;
  top: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--red);
}

.intro-card--2 .intro-card__icon::after {
  width: 42px;
  height: 8px;
  left: 28px;
  top: 42px;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(-26deg);
}

.intro-card--3 .intro-card__icon::before {
  width: 40px;
  height: 40px;
  left: 17px;
  top: 17px;
  clip-path: polygon(50% 0, 62% 34%, 98% 34%, 68% 54%, 80% 92%, 50% 68%, 20% 92%, 32% 54%, 2% 34%, 38% 34%);
  background: var(--gold);
}

.intro-card--3 .intro-card__icon::after {
  width: 58px;
  height: 58px;
  left: 8px;
  top: 8px;
  border: 2px solid rgba(17, 21, 28, 0.14);
  border-radius: 50%;
}

.guest-grid {
  display: flex;
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) rgba(17, 21, 28, 0.08);
  cursor: grab;
}

.guest-card {
  flex: 0 0 clamp(360px, 52vw, 720px);
  scroll-snap-align: start;
  cursor: pointer;
}

.guest-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.guest-card__more {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(185, 139, 47, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.guest-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -58px 0 24px;
}

.guest-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(185, 139, 47, 0.38);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(17, 21, 28, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

.guest-arrow:hover,
.guest-arrow:focus-visible {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--ink);
}

.guest-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.guest-modal[aria-hidden="false"] {
  display: grid;
}

.guest-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 28, 0.54);
  backdrop-filter: blur(8px);
}

.guest-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(185, 139, 47, 0.28);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(17, 21, 28, 0.25);
}

.guest-modal__panel h2 {
  margin: 0 0 16px;
  font-family: var(--heading-font, "Anton", "Noto Sans JP", sans-serif);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.guest-modal__panel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.guest-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 7px 12px;
  font-weight: 900;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 18px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body,
  #main,
  .site-header,
  .hero,
  .section,
  .footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body::before,
  body::after {
    width: 100vw;
    max-width: 100vw;
  }

  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    padding: 10px 14px 8px;
  }

  .brand img {
    width: min(70vw, 240px);
    margin: 0 auto;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .hero,
  .intro-grid,
  .event-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-players {
    min-height: 250px;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero::before {
    opacity: 0.45;
    width: 82vw;
    right: -36vw;
    top: 19%;
  }

  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section__inner {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 64px);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-title-line {
    white-space: normal;
  }

  .mobile-title-break {
    display: none;
  }

  .guest-card {
    flex-basis: calc((100% - 20px) / 2);
    min-width: 280px;
  }

  .guest-controls {
    margin-top: 0;
  }

  .record {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .record-day {
    font-size: clamp(38px, 12vw, 58px);
  }
}

@media (max-width: 520px) {
  .skip-link {
    display: none;
  }

  body::before {
    opacity: 0.28;
  }

  .nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    gap: 4px 8px;
    padding-bottom: 4px;
    font-size: 12px;
    scrollbar-width: none;
  }

  .nav a {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 34px;
    padding: 0 8px;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 38px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .mobile-title-break {
    display: block;
  }

  .event-main,
  .event-flow,
  .intro-card,
  .guest-card,
  .record,
  .contact-panel {
    min-width: 0;
    max-width: 100%;
  }

  .hero__copy,
  .event-main {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .lead,
  .event-main p {
    font-size: 14px;
    line-height: 1.85;
  }

  .event-main *,
  .event-flow *,
  .intro-card *,
  .record *,
  .contact-panel * {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-players {
    min-height: 220px;
  }

  .player-figure {
    transform-origin: center;
  }

  .player-figure--batter {
    right: -22px;
    transform: scale(0.72);
  }

  .player-figure--pitcher {
    left: -28px;
  }

  .guest-card {
    flex-basis: min(86vw, 330px);
    min-width: 260px;
  }

  .hero-sub {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .event-list div,
  .contact-panel div,
  .event-flow li {
    grid-template-columns: 1fr;
  }

  .footer,
  .admin-list-head,
  .admin-item__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .admin-workspace {
    padding-top: 18px;
  }

  .admin-topbar {
    position: static;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-two-col {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
