@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=M+PLUS+Rounded+1c:wght@400;500;700&family=Orbitron:wght@400;600;700&family=Oswald:wght@400;600;700&family=Shippori+Mincho:wght@400;600;700&family=Sora:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #14213d;
  --muted: #5c6f8a;
  --line: rgba(20, 33, 61, 0.1);
  --brand: #1f6feb;
  --brand-dark: #0b3c7a;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(20, 33, 61, 0.12);
  --font-base: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-rounded: "M PLUS Rounded 1c", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-modern: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-serif: "Shippori Mincho", "Noto Serif JP", "Noto Sans JP", serif;
  --font-cool: "Sora", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-futuristic: "Orbitron", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-sporty: "Bebas Neue", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font: var(--font-base);
  --font-display-base: "Oswald", var(--font-base);
  --font-display: var(--font-display-base);
  --font-display-rounded: var(--font-rounded);
  --font-display-modern: var(--font-modern);
  --font-display-serif: var(--font-serif);
  --font-display-cool: var(--font-cool);
  --font-display-futuristic: var(--font-futuristic);
  --font-display-sporty: var(--font-sporty);
  --bg-image: url("/assets/img/bg-snow-1.svg");
  --bg-overlay: 0.25;
  --hero-overlay: 0.38;
  --hero-overlay-color: #05070f;
  --hero-overlay-rgb: 5, 7, 15;
  --section-overlay-rgb: 5, 7, 15;
  --hero-parallax-image: var(--bg-image);
  --season-accent-a: rgba(31, 111, 235, 0.18);
  --season-accent-b: rgba(11, 60, 122, 0.14);
  --season-bg-top: #f7f9ff;
  --season-bg-bottom: #e8efff;
  --home-section-surface: rgba(246, 250, 255, 0.88);
  --home-section-surface-strong: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 111, 235, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(11, 60, 122, 0.14), transparent 60%),
    linear-gradient(180deg, #f7f9ff, #e8efff);
  background-color: var(--bg);
  position: relative;
  min-height: 100%;
}

body[data-season="spring"] {
  --season-accent-a: rgba(255, 154, 194, 0.34);
  --season-accent-b: rgba(255, 196, 209, 0.28);
  --season-bg-top: #fff7fb;
  --season-bg-bottom: #ffeef5;
  --home-section-surface: rgba(255, 243, 249, 0.88);
  --home-section-surface-strong: rgba(255, 248, 252, 0.93);
}

body[data-season="summer"] {
  --season-accent-a: rgba(98, 196, 124, 0.30);
  --season-accent-b: rgba(96, 186, 132, 0.24);
  --season-bg-top: #f2fff5;
  --season-bg-bottom: #e3f7ea;
  --home-section-surface: rgba(239, 251, 242, 0.88);
  --home-section-surface-strong: rgba(248, 255, 250, 0.92);
}

body[data-season="autumn"] {
  --season-accent-a: rgba(243, 149, 62, 0.32);
  --season-accent-b: rgba(210, 116, 54, 0.24);
  --season-bg-top: #fff7ee;
  --season-bg-bottom: #ffead8;
  --home-section-surface: rgba(255, 245, 233, 0.9);
  --home-section-surface-strong: rgba(255, 250, 241, 0.94);
}

body[data-season="winter"] {
  --season-accent-a: rgba(31, 111, 235, 0.20);
  --season-accent-b: rgba(11, 60, 122, 0.16);
  --season-bg-top: #f4f8ff;
  --season-bg-bottom: #e6efff;
  --home-section-surface: rgba(244, 248, 255, 0.88);
  --home-section-surface-strong: rgba(250, 252, 255, 0.94);
}

.page-home,
.page-admin,
.page-videos,
.page-profile {
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--season-accent-a), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, var(--season-accent-b), transparent 60%),
    linear-gradient(180deg, var(--season-bg-top), var(--season-bg-bottom));
}

#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.site-header,
footer {
  position: relative;
  z-index: 3;
}

.page-home::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--home-bg-start, 0px);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: var(--bg-overlay);
  transition: opacity 0.6s ease;
  z-index: -2;
  pointer-events: none;
}

.page-home.bg-switching::before {
  opacity: 0.05;
}

.page-profile {
  background-color: var(--season-bg-bottom);
}

.page-profile .section .container {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 40px rgba(12, 26, 46, 0.12);
}

.page-videos {
  background-color: var(--season-bg-bottom);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-videos .section .container {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 36px rgba(12, 26, 46, 0.12);
}

.page-videos .section {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
}

.page-videos .site-footer {
  margin-top: auto;
}

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 1600px;
}


.page-admin {
  --season-accent-a: rgba(148, 163, 184, 0.18);
  --season-accent-b: rgba(100, 116, 139, 0.12);
  --season-bg-top: #f3f4f6;
  --season-bg-bottom: #e5e7eb;
  background:
    linear-gradient(180deg, var(--season-bg-top), var(--season-bg-bottom));
}

.page-admin .container {
  max-width: none;
  width: 100%;
  padding: 0 24px;
}

.page-admin .site-header {
  background: rgba(255, 255, 255, 0.94);
}

.page-admin .card-body {
  overflow-x: auto;
}

.narrow {
  max-width: 680px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 32px 20px;
  align-items: center;
}

.hero--full {
  display: block;
  padding: 0;
  position: relative;
  height: var(--hero-height, auto);
}

.page-home .hero--landing {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-media--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.hero-media--full video {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .hero-media--full {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -1;
  border: none;
  box-shadow: none;
  background: transparent center / cover no-repeat;
  display: none;
}

.page-home .hero-media--full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-color, #05070f);
  opacity: var(--hero-overlay, 0.38);
  z-index: 1;
}

.page-home .hero-media--full video {
  height: 100%;
  object-fit: cover;
}

.page-home main {
  position: relative;
}

.hero-overlay-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 4vw;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  max-width: 860px;
  margin: 0 auto;
}

.hero-title h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 6vw, 72px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  -webkit-text-stroke: 2px rgba(31, 111, 235, 0.85);
  text-shadow: 0 0 12px rgba(31, 111, 235, 0.45), 0 0 24px rgba(31, 111, 235, 0.35);
}

.hero-title p {
  margin: 0;
  font-size: clamp(16px, 2.3vw, 22px);
  letter-spacing: 0.12em;
  font-family: var(--font-display);
}

.hero-eyebrow {
  display: inline-flex;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-weight: 600;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.2em;
  display: grid;
  gap: 8px;
  place-items: center;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.7);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0.2);
    transform-origin: top;
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  100% {
    transform: scaleY(0.2);
    transform-origin: bottom;
    opacity: 0.3;
  }
}

.notice-overlay {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 3;
  width: min(360px, 85vw);
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(20, 33, 61, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.notice-overlay .pill {
  background: rgba(31, 111, 235, 0.12);
  border-color: rgba(31, 111, 235, 0.25);
  color: var(--brand-dark);
}

.notice-item {
  display: none;
}

.notice-item.is-active {
  display: grid;
  gap: 10px;
}

.notice-item h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.notice-controls {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.notice-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 61, 0.2);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notice-btn:hover {
  background: rgba(31, 111, 235, 0.12);
}

.hero-copy {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: var(--shadow);
}

.notice-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.notice-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.notice-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(31, 111, 235, 0.12);
  border: 1px solid rgba(31, 111, 235, 0.25);
}

.notice-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--brand-dark);
}

.notice-card h2 {
  margin: 8px 0 6px;
}

.section--full {
  padding: 80px 0;
}

.section--full .section-inner {
  width: 100%;
  padding: 0 6vw;
}

.concept-section--overlay {
  color: #0f172a;
  background: transparent;
}

.concept-section--overlay .lead {
  color: #0f172a;
}

.concept-section--overlay .concept-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.concept-section--overlay .concept-icon svg {
  fill: #fff;
}

.concept-section--overlay .pill {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(15, 23, 42, 0.25);
  color: #0f172a;
}

.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.concept-copy {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.concept-copy h1 {
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 44px);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.concept-copy .lead {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: clamp(16px, 2.2vw, 22px);
}

.concept-media {
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: none;
  box-shadow: var(--shadow);
  background: #fff;
  display: flex;
  height: 100%;
}

.concept-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-icons {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.concept-icon {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(31, 111, 235, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.concept-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--brand-dark);
}

.fade-section {
  opacity: 0;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section:not(.section--with-overlay) {
  transform: translateY(18px);
}

.fade-section.section--with-overlay {
  transition: opacity 0.8s ease;
}

.fade-section.is-visible {
  opacity: 1;
  transform: none;
}

.fade-section.is-visible:not(.section--with-overlay) {
  transform: translateY(0);
}

.section {
  padding: 20px 0 40px;
}

.gallery-section {
  background: #fff;
  color: var(--text);
}

.gallery-section .pill {
  color: var(--brand-dark);
}

.gallery-section h2 {
  margin: 8px 0 0;
}

.gallery-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-item {
  margin: 0;
  grid-column: span 4;
  grid-row: span 28;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item--wide {
  grid-column: span 8;
  grid-row: span 28;
}

.gallery-item--tall {
  grid-column: span 4;
  grid-row: span 12;
}

.gallery-item--tall-half {
  grid-column: span 4;
  grid-row: span 21;
}

.gallery-item--wide-boost {
  grid-column: span 8;
  grid-row: span 12;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-section {
  background: var(--home-section-surface-strong);
}

.welcome-reception-section {
  background: var(--home-section-surface);
}

.welcome-reception-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.welcome-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfe7f5;
}

.welcome-photo__button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.welcome-photo__button:focus-visible {
  outline: 2px solid rgba(15, 114, 206, 0.75);
  outline-offset: -2px;
}

.welcome-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.welcome-reception-grid .video-card {
  grid-column: span 3;
}

.welcome-reception-grid.has-single-video .video-card {
  grid-column: 3 / span 2;
}

@media (max-width: 1100px) {
  .welcome-reception-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .welcome-reception-grid .video-card {
    grid-column: span 4;
  }

  .welcome-reception-grid.has-single-video .video-card {
    grid-column: 1 / span 4;
  }
}

@media (max-width: 720px) {
  .welcome-reception-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-reception-grid .video-card {
    grid-column: span 2;
  }

  .welcome-reception-grid.has-single-video .video-card {
    grid-column: 1 / span 2;
  }
}

.welcome-reception-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.welcome-reception-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.welcome-reception-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0d1425;
}

.pv-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pv-frame {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #eef4ff;
}

.pv-frame img,
.pv-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pv-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pv-player .muted {
  margin-top: 12px;
  text-align: center;
}

.pv-player {
  width: min(960px, 100%);
  margin: 0 auto;
  text-align: center;
}

.trophy-section {
  background: rgba(255, 255, 255, 0.96);
}

.trophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.trophy-grid--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.trophy-credits {
  margin-top: 8px;
}

.trophy-login-section {
  background: rgba(255, 255, 255, 0.96);
}

.trophy-login-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.page-home a[href="/login.html"] {
  display: none !important;
}

.btn--jumbo {
  padding: 22px 40px;
  font-size: 20px;
  min-width: min(460px, 100%);
}

.archive-section {
  background: rgba(255, 255, 255, 0.96);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.archive-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.archive-card__button {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.archive-card__button:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.6);
  outline-offset: 2px;
}

.archive-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.archive-meta {
  padding: 10px 12px;
}

.archive-meta h3 {
  margin: 4px 0 4px;
  font-size: 17px;
}

.archive-meta .muted {
  margin: 0;
  font-size: 13px;
}

.trophy-main-visual {
  margin: 0 0 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trophy-main-visual img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.trophy-main-video {
  width: min(100%, 820px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  display: block;
  background: #000;
}

.trophy-text h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.trophy-text p {
  margin: 0;
  line-height: 1.9;
  font-size: 18px;
  color: var(--text);
}

.trophy-credits {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f7f9ff;
  box-shadow: var(--shadow);
}

.trophy-credits h3 {
  margin-top: 0;
  font-size: 17px;
}

.trophy-credits ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.trophy-gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trophy-gallery figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trophy-gallery__button {
  border: none;
  padding: 0;
  background: transparent;
  display: block;
  width: 100%;
  cursor: pointer;
}

.trophy-gallery__button:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.6);
  outline-offset: 2px;
}

.trophy-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-fade {
  transform: translate3d(0, 24px, 0);
}

.reveal-slide {
  transform: translate3d(-48px, 0, 0) skewX(-4deg);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.media-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.media-modal[hidden] {
  display: none;
}

.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.7);
}

.media-modal__content {
  position: relative;
  max-width: min(960px, 90vw);
  max-height: min(720px, 90vh);
  width: 100%;
  background: #0b1324;
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  align-items: center;
  color: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.media-modal__image {
  max-width: 100%;
  max-height: 60vh;
  width: 100%;
  height: auto;
  grid-column: 1 / -1;
  border-radius: 12px;
  object-fit: contain;
  background: #101a32;
}

.media-modal__caption {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.media-modal__nav,
.media-modal__close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.media-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.media-modal__nav[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.media-modal__nav {
  grid-row: 2 / 3;
}

.media-modal__nav[data-media-prev] {
  grid-column: 1 / 2;
}

.media-modal__nav[data-media-next] {
  grid-column: 3 / 4;
}

.is-modal-open {
  overflow: hidden;
}

.favicon-section {
  background: rgba(255, 255, 255, 0.9);
}

.favicon-card {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.favicon-preview {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  border: 1px dashed rgba(31, 111, 235, 0.4);
  display: grid;
  place-items: center;
  background: #f7faff;
}

.favicon-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.favicon-controls .lead {
  margin-top: 0;
  font-size: 16px;
}

.favicon-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0;
}

#faviconInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .trophy-grid,
  .favicon-card,
  .archive-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trophy-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section-head h1,
.section-head h2 {
  margin: 0 0 8px;
}

.section-head {
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  background: rgba(31, 111, 235, 0.1);
  border: 1px solid rgba(31, 111, 235, 0.2);
}

.lead {
  color: var(--muted);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(20, 33, 61, 0.1);
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), #4aa3ff);
  color: #fff;
  border-color: transparent;
}

.btn.ghost {
  background: transparent;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  padding: 20px 20px 0;
}

.card-body {
  padding: 20px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 13px;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
}

.msg {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.msg.is-warn {
  background: rgba(255, 183, 3, 0.15);
  color: #9a5b02;
}

.support-messages {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.support-form {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.support-messages h3 {
  font-size: 16px;
  margin: 0;
}

.support-message-list {
  display: grid;
  gap: 12px;
}

.support-message {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(31, 111, 235, 0.2);
  background: linear-gradient(135deg, rgba(231, 241, 255, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  display: grid;
  gap: 8px;
}

.support-message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 12px;
}

.support-message__name {
  font-weight: 700;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.12);
  border: 1px solid rgba(31, 111, 235, 0.2);
}

.support-message__name::before {
  content: "投稿者";
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
}

.support-message__body {
  border-radius: 12px;
  border: 1px dashed rgba(31, 111, 235, 0.25);
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
}

.support-message__label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.support-message p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 960px) {
  .video-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .video-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .video-list--stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1280px) {
  .video-list--stack {
    grid-template-columns: minmax(0, 1fr);
  }
}


.video-date-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.video-list--stack {
  grid-template-columns: minmax(0, 1fr);
}

.video-date-group__title {
  margin: 0;
  font-size: 1.3rem;
}

.home-content-list {
  display: grid;
  gap: 16px;
}


.home-content-block {
  margin-bottom: 20px;
}

.home-content-more {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.video-card {
  display: grid;
  gap: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-card:hover,
.video-card:focus-within {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 28px rgba(12, 26, 46, 0.18);
  border-color: rgba(12, 26, 46, 0.22);
}

.video-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f0f3f9;
  padding: 0;
  cursor: pointer;
  display: block;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.video-thumb .video-status {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(20, 33, 61, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.video-meta h2 {
  font-size: 18px;
  margin: 8px 0 6px;
  line-height: 1.4;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
}

.meta-item {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.meta-label {
  color: var(--muted);
  font-size: 11px;
}

.meta-value {
  font-weight: 700;
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px 16px;
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.55);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  width: min(100%, 1200px);
  max-width: 80vw;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: var(--shadow);
  padding: 24px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
}

.modal-body {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.modal-media {
  background: #0c111b;
  border-radius: 16px;
  padding: 12px;
}

.modal-media video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.modal-content h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.tab-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tab-button.is-active {
  background: rgba(31, 111, 235, 0.12);
  border-color: rgba(31, 111, 235, 0.3);
  color: var(--brand-dark);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}


.site-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.site-settings-tab-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.site-settings-tab-button.is-active {
  background: rgba(31, 111, 235, 0.12);
  border-color: rgba(31, 111, 235, 0.35);
  color: var(--brand-dark);
}

.site-settings-panel {
  display: none;
}

.site-settings-panel.is-active {
  display: block;
}

.site-settings-panel .card {
  max-width: 960px;
}

.overlay-color-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overlay-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.overlay-color-chip::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--overlay-chip-color, #05070f);
  border: 1px solid rgba(20, 33, 61, 0.2);
}

.grid-two {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stack {
  display: grid;
  gap: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.thumb-preview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.thumb-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.thumb-preview--small {
  max-width: 160px;
}

.thumb-preview--profile {
  max-width: 240px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 18px 30px rgba(12, 26, 46, 0.18);
}

.thumb-preview--profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card .card-head {
  padding: 18px 20px 0;
}

.profile-card .card-body {
  padding: 18px 12px;
  background: linear-gradient(135deg, rgba(12, 26, 46, 0.08), rgba(255, 255, 255, 0.95));
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 6px;
  align-items: stretch;
}

.profile-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 260px;
  padding-left: 6px;
  border-left: 1px solid rgba(12, 26, 46, 0.12);
}

.profile-identity {
  display: grid;
  gap: 12px;
}

.profile-name-block,
.profile-intro-block {
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.profile-name-block {
  color: #fff;
  background: linear-gradient(135deg, #0b1d3a, #1e3a8a);
  box-shadow: 0 18px 30px rgba(12, 26, 46, 0.22);
}

.profile-name-block::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.profile-intro-block {
  background: #f8fafc;
  border: 1px solid rgba(12, 26, 46, 0.1);
}

.profile-intro-block .profile-bio {
  font-weight: 700;
  color: #0b1d3a;
}

.profile-name {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: inherit;
}

.profile-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.profile-name-block .profile-label {
  color: rgba(255, 255, 255, 0.7);
}

.profile-bio,
.profile-team {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.latest-archive-card .card-head {
  padding: 18px 20px 0;
}

.latest-archive-card .card-body {
  padding: 18px 20px;
}

.latest-archive {
  display: grid;
  gap: 12px;
}

.latest-archive-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.latest-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.latest-archive-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c1a2e;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.latest-archive-thumb img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
  background: #000;
}

.latest-archive-thumb:hover,
.latest-archive-thumb:focus-visible {
  box-shadow: 0 16px 28px rgba(12, 26, 46, 0.18);
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(12, 26, 46, 0.22);
}

.latest-archive-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}


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

@media (max-width: 1200px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .mobile-line-break {
    display: inline;
  }
}

@media (max-width: 700px) {
  .profile-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-details {
    align-items: center;
    padding-left: 0;
    border-left: none;
    min-height: auto;
  }

  .trophy-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1200px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hero {
    grid-template-columns: 1fr;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .concept-copy {
    border-radius: var(--radius) var(--radius) 0 0;
    border-right: 1px solid var(--line);
    border-bottom: none;
  }

  .concept-media {
    border-radius: 0 0 var(--radius) var(--radius);
    border-left: 1px solid var(--line);
    border-top: none;
  }

  .notice-content {
    flex-direction: column;
  }

  .video-card {
    grid-template-columns: 1fr;
  }

  .notice-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .scroll-indicator {
    bottom: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 10px;
  }

  .gallery-item {
    grid-column: span 6;
    grid-row: span 24;
  }

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 6;
    grid-row: span 24;
  }

  .gallery-item--tall-half,
  .gallery-item--wide-boost {
    grid-column: span 6;
    grid-row: span 24;
  }

  .modal-dialog {
    max-width: 100%;
    max-height: calc(100vh - 40px);
    padding: 20px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}


.section.section--full {
  position: relative;
}

.section.section--full > .section-inner {
  position: relative;
  z-index: 2;
}

.section.section--full::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section--with-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      var(--section-overlay-start, rgba(var(--section-overlay-rgb, var(--hero-overlay-rgb, 5, 7, 15)), calc(var(--hero-overlay, 0.38) * 0.9))) 0%,
      var(--section-overlay-end, rgba(var(--section-overlay-rgb, var(--hero-overlay-rgb, 5, 7, 15)), var(--hero-overlay, 0.38))) 100%
    ),
    var(--hero-parallax-image, var(--bg-image));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  pointer-events: none;
  opacity: 0.86;
  z-index: 0;
}

.section--plain-bg {
  background: #ffffff;
}

.section.section--full.section--plain-bg::before {
  background: transparent;
}

.page-home .section--with-overlay {
  background: transparent;
}


.page-home .section.section--full:not(.section--with-overlay) {
  background: var(--home-section-surface);
}

.page-home .section.section--full:not(.section--with-overlay) .card,
.page-home .section.section--full:not(.section--with-overlay) .notice-card {
  background: var(--home-section-surface-strong);
}

.page-home .section--with-overlay,
.page-home .section--with-overlay .muted,
.page-home .section--with-overlay .section-head p {
  color: #ffffff;
}

.page-home .section--with-overlay h1 {
  text-shadow:
    0 0 8px rgba(31, 111, 235, 0.5),
    0 0 18px rgba(31, 111, 235, 0.34);
}

.page-home .section--with-overlay .card,
.page-home .section--with-overlay .notice-card {
  background: rgba(8, 20, 42, 0.62);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(4px);
}

.page-home .section--with-overlay .pill {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.event-info-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
}

.video-filter {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 14px 0 20px;
}

.home-sections-editor {
  display: grid;
  gap: 10px;
}

.home-sections-editor__row {
  display: grid;
  grid-template-columns: 1.2fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.home-sections-editor__title {
  font-weight: 700;
}

.home-sections-editor__actions {
  display: flex;
  gap: 6px;
}


.gallery-editor {
  display: grid;
  gap: 12px;
}

.gallery-editor__group {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.gallery-editor__group-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.gallery-editor__group-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.gallery-editor__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

.gallery-editor__item {
  border: 1px solid #e6eaf5;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.gallery-editor__item-head {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 8px;
  align-items: start;
}

.gallery-editor__thumb img {
  width: 116px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.gallery-editor__fields {
  display: grid;
  gap: 8px;
}

.gallery-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gallery-editor__actions .btn {
  padding: 4px 8px;
  font-size: 12px;
}

.gallery-editor__toolbar {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .gallery-editor__group-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gallery-editor__items {
    grid-template-columns: 1fr;
  }

  .gallery-editor__item-head {
    grid-template-columns: 1fr;
  }

  .gallery-editor__thumb img {
    width: 100%;
    height: 120px;
  }
}

/* === Hana Ippai top additions === */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}
.map-embed iframe,
.map-embed--leaflet {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 16px;
}

.map-embed--leaflet {
  min-height: 460px;
}
.recruitment-section .grid-two {
  align-items: stretch;
}
@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 16px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.page-home .site-header,
.page-recruit .site-header,
.page-contact .site-header {
  background: linear-gradient(120deg, color-mix(in srgb, var(--season-bg-top) 78%, #fff 22%), color-mix(in srgb, var(--season-bg-bottom) 88%, #fff 12%));
}

.map-layout--interactive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.sponsor-map {
  position: relative;
  min-height: 340px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 25%, rgba(84, 173, 96, .32), transparent 26%),
    radial-gradient(circle at 75% 38%, rgba(67, 156, 79, .28), transparent 30%),
    linear-gradient(135deg, #f2f9ef 0%, #eaf4e6 50%, #d8ecd2 100%);
  border: 1px solid rgba(49, 116, 61, 0.28);
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  border: none;
  background: #e95b68;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.map-pin::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
}

.map-pin { font-size: 0; }
.map-pin::before {
  content: attr(data-bed-id);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b03043;
  rotate: 45deg;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.map-pin.is-active { background: #1764d2; }
.map-pin.is-active::before { color: #184073; }

.sponsor-bed-photo {
  margin: 0 0 12px;
  width: 100%;
  min-height: 180px;
  border-radius: 10px;
  background: linear-gradient(140deg, #ffd4e8, #cdeece, #cfe2ff);
}

.notice-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.72);
}

.notice-item h4 { margin: 0 0 8px; }
.notice-item p { margin: 0 0 8px; }
.notice-item img,
.notice-item video { width: 100%; border-radius: 8px; margin-top: 8px; }

.list-stack > div { margin-bottom: 10px; }
.sponsor-list { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-block;
  background: rgba(25, 88, 191, .12);
  border: 1px solid rgba(25, 88, 191, .3);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .map-layout--interactive { grid-template-columns: 1fr; }
}

.site-nav a {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.82);
}

.sponsor-tier-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sponsor-tier-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
}

.sponsor-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.sponsor-banner-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.supporter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.supporter-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.supporter-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.supporter-modal {
  border: none;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 24px);
}

.supporter-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.recruit-detail-list {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
}

.recruit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.recruit-detail-list li {
  line-height: 1.8;
}

.recruit-supporter-description {
  margin: 0 0 14px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .recruit-grid {
    grid-template-columns: 1fr;
  }
}
