:root {
  --bg-main: #110707;
  --bg-soft: #1a0d0d;
  --panel: rgba(29, 15, 14, 0.86);
  --panel-strong: rgba(22, 10, 10, 0.93);
  --line: rgba(212, 126, 82, 0.36);
  --text-main: #f8efe6;
  --text-sub: #d8b9a2;
  --accent: #c47445;
  --accent-strong: #f0c494;
  --shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 18% 0%, rgba(204, 96, 57, 0.14) 0%, rgba(17, 7, 7, 0) 42%),
    radial-gradient(circle at 85% 10%, rgba(136, 47, 25, 0.18) 0%, rgba(17, 7, 7, 0) 46%),
    linear-gradient(180deg, #070303 0%, #120706 100%);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(212, 126, 82, 0.26);
  backdrop-filter: blur(10px);
  background: rgba(16, 8, 8, 0.82);
}

.site-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--accent-strong);
  font-size: 1.3rem;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
}

.nav a {
  color: var(--text-sub);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.hero {
  padding: 44px 0 56px;
}

.hero-visual {
  border: 1px solid rgba(212, 126, 82, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(112deg, rgba(18, 8, 8, 0.9) 24%, rgba(18, 8, 8, 0.58) 58%, rgba(18, 8, 8, 0.3) 100%),
    var(--aftertone-hero-image, url("../world/main_floor.png")) center center / cover no-repeat,
    linear-gradient(145deg, #2c1110 0%, #5c2118 46%, #9a5639 100%);
}

.hero-content {
  max-width: 640px;
  padding: clamp(26px, 5vw, 54px);
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent-strong);
  letter-spacing: 0.1em;
  font-size: 0.86rem;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-weight: 500;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 12px;
}

.meta,
.steps,
.card-text {
  color: var(--text-sub);
}

.section {
  padding: 34px 0 54px;
}

.panel,
.detail-card {
  background: var(--panel);
  border: 1px solid rgba(206, 170, 122, 0.24);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #deb986 0%, #c5975c 100%);
  color: #201308;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #e8cda8 0%, #d7ab74 100%);
}

.btn-ghost {
  border-color: rgba(206, 170, 122, 0.38);
  color: var(--text-sub);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--text-main);
}

.enjoy-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enjoy-card {
  background: rgba(11, 9, 14, 0.6);
  border: 1px solid rgba(206, 170, 122, 0.3);
  border-radius: 8px;
  padding: 18px;
}

.enjoy-card-link {
  display: block;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.enjoy-card-link:hover,
.enjoy-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
  background: rgba(26, 15, 16, 0.78);
  outline: none;
}

.mode-label,
.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border: 1px solid rgba(206, 170, 122, 0.38);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.8rem;
}

.world-feature {
  margin: 0;
  border: 1px solid rgba(212, 126, 82, 0.32);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(20, 10, 10, 0.88);
  box-shadow: var(--shadow);
}

.world-feature img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.world-feature figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  color: var(--text-sub);
  font-size: 0.9rem;
  border-top: 1px solid rgba(212, 126, 82, 0.24);
}

.world-feature-fallback {
  min-height: 320px;
  background:
    radial-gradient(circle at 78% 18%, rgba(240, 196, 148, 0.18) 0%, rgba(17, 7, 7, 0) 34%),
    linear-gradient(145deg, #2c1110 0%, #5c2118 46%, #9a5639 100%);
}

.detail-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}

.detail-photo {
  border: 1px solid rgba(206, 170, 122, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-photo-fallback {
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 20%, rgba(240, 196, 148, 0.12) 0%, rgba(44, 17, 16, 0) 40%),
    linear-gradient(145deg, #2c1110 0%, #5c2118 46%, #9a5639 100%);
}

.divider {
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, rgba(206, 170, 122, 0.42) 0%, rgba(206, 170, 122, 0) 100%);
}

.reserve-box,
.reserve-action-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(206, 170, 122, 0.28);
  border-radius: 8px;
  background: rgba(11, 9, 14, 0.55);
}

.notice {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 12px;
}

.detail-section-title {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--accent-strong);
}

.member-no {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.links-row,
.social-links,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.links-row {
  margin: 10px 0 14px;
}

.inline-link,
.social-link,
.legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(206, 170, 122, 0.32);
  border-radius: 999px;
  color: var(--text-sub);
  background: rgba(11, 9, 14, 0.38);
  font-size: 0.84rem;
}

.inline-link:hover,
.social-link:hover,
.legal-link:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.availability-list,
.event-list,
.cast-meta-list,
.steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-sub);
}

.availability-list li,
.event-list li,
.cast-meta-list li,
.steps li {
  margin-bottom: 6px;
}

.event-list strong,
.event-list span {
  display: block;
}

.event-list .inline-link {
  margin-top: 6px;
}

.loading-panel {
  background: var(--panel-strong);
  border: 1px dashed rgba(206, 170, 122, 0.3);
  border-radius: 12px;
  padding: 20px;
  color: var(--text-sub);
}

.site-footer {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(206, 170, 122, 0.22);
  color: #b09f86;
  font-size: 0.9rem;
}

.site-footer .social-links,
.site-footer .legal-links {
  margin-bottom: 12px;
}

.footer-copy {
  margin: 0;
}

.legal-defs {
  margin: 0;
}

.legal-defs dt {
  margin-top: 12px;
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.legal-defs dd {
  margin: 4px 0 0;
  color: var(--text-sub);
}

.cast-gallery-main {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 34px) 0 clamp(46px, 8vw, 92px);
  background:
    radial-gradient(circle at 12% 88%, rgba(196, 116, 69, 0.22) 0%, rgba(17, 7, 7, 0) 42%),
    radial-gradient(circle at 88% 86%, rgba(240, 196, 148, 0.12) 0%, rgba(17, 7, 7, 0) 38%),
    var(--bg-main);
}

.cast-gallery-container {
  width: min(1110px, 93vw);
  margin: 0 auto;
}

.cast-gallery-title {
  margin: 0 0 clamp(42px, 6vw, 66px);
  color: #fff8ec;
  font-size: clamp(4.4rem, 9vw, 6.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 18px rgba(240, 196, 148, 0.22), 0 2px 16px rgba(0, 0, 0, 0.58);
}

.cast-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(50px, 6vw, 74px) clamp(12px, 2vw, 20px);
  align-items: start;
}

.cast-db-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.cast-db-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(206, 170, 122, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(240, 196, 148, 0.12) 0%, rgba(17, 7, 7, 0) 36%),
    linear-gradient(180deg, rgba(30, 14, 13, 0.94) 0%, rgba(17, 8, 8, 0.96) 100%);
  box-shadow: var(--shadow);
}

.cast-db-image {
  display: block;
  min-height: 100%;
  background: rgba(8, 6, 8, 0.64);
}

.cast-db-image-inner {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.cast-db-image .cast-frame-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.2s ease;
}

.cast-db-image:hover .cast-frame-image,
.cast-db-image:focus-visible .cast-frame-image {
  transform: scale(1.03);
}

.cast-db-image-fallback {
  background:
    radial-gradient(circle at 50% 20%, rgba(240, 196, 148, 0.12) 0%, rgba(44, 17, 16, 0) 40%),
    linear-gradient(145deg, #2c1110 0%, #5c2118 46%, #9a5639 100%);
}

.cast-db-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.cast-db-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cast-db-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.cast-status-badge {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid rgba(159, 220, 91, 0.34);
  border-radius: 999px;
  color: #dff6c7;
  background: rgba(24, 46, 16, 0.44);
  font-size: 0.78rem;
}

.cast-status-badge.is-graduated {
  border-color: rgba(206, 170, 122, 0.32);
  color: var(--text-sub);
  background: rgba(11, 9, 14, 0.44);
}

.cast-db-tagline,
.cast-db-comment {
  margin: 0;
}

.cast-db-tagline {
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.cast-db-comment {
  color: var(--text-sub);
  font-size: 0.92rem;
}

.cast-db-meta {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(206, 170, 122, 0.2);
  border-radius: 8px;
  background: rgba(9, 7, 9, 0.48);
}

.cast-db-meta h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.cast-db-meta ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.cast-db-actions {
  margin-top: 0;
}

.cast-db-actions .btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.cast-photo-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cast-frame-shell {
  position: relative;
  display: block;
  aspect-ratio: 150 / 218;
  padding: 12px 12px 18px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(70, 58, 60, 0.95), rgba(238, 218, 191, 0.96) 10%, rgba(129, 105, 102, 0.98) 18%, rgba(226, 199, 173, 0.98) 50%, rgba(129, 105, 102, 0.98) 82%, rgba(238, 218, 191, 0.96) 90%, rgba(70, 58, 60, 0.95)),
    linear-gradient(180deg, #dac5b3 0%, #82706c 48%, #ead9be 100%);
  box-shadow: 0 15px 26px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 247, 226, 0.64), inset 0 0 0 4px rgba(74, 61, 67, 0.38);
  transition: transform 0.18s ease;
}

.cast-frame-shell::before,
.cast-frame-shell::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 3;
  border: 2px solid rgba(246, 227, 202, 0.74);
  border-radius: 5px;
  pointer-events: none;
}

.cast-frame-shell::after {
  inset: 2px;
  border-color: rgba(85, 68, 76, 0.62);
  box-shadow:
    inset 0 0 0 3px rgba(230, 206, 180, 0.7),
    inset 0 0 0 7px rgba(80, 66, 72, 0.48);
}

.cast-photo-card:hover .cast-frame-shell,
.cast-photo-card:focus-visible .cast-frame-shell {
  transform: translateY(-4px);
}

.cast-photo-card:focus-visible {
  outline: none;
}

.cast-photo-card:focus-visible .cast-frame-shell {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 6px;
}

.cast-frame-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.8) 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.7) 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 64% 58%, rgba(255, 255, 255, 0.55) 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 40% 76%, rgba(255, 255, 255, 0.48) 0 1px, rgba(255, 255, 255, 0) 2px),
    linear-gradient(145deg, #2c1110 0%, #5c2118 46%, #9a5639 100%);
  box-shadow: inset 0 0 34px rgba(18, 5, 28, 0.82), inset 0 0 0 1px rgba(67, 40, 66, 0.76);
}

.cast-frame-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.38;
}

.cast-frame-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cast-frame-top {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 5;
  width: 58%;
  height: 22px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 32%, rgba(236, 217, 196, 0.98) 0 10%, rgba(105, 84, 90, 0.98) 11% 18%, transparent 19%),
    radial-gradient(ellipse at 30% 88%, rgba(231, 211, 188, 0.94) 0 13%, transparent 14%),
    radial-gradient(ellipse at 70% 88%, rgba(231, 211, 188, 0.94) 0 13%, transparent 14%),
    linear-gradient(180deg, transparent 0 44%, rgba(91, 73, 82, 0.92) 45% 56%, transparent 57%);
  pointer-events: none;
}

.cast-frame-corner {
  position: absolute;
  z-index: 6;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.cast-frame-corner::before,
.cast-frame-corner::after {
  content: "";
  position: absolute;
  border-color: rgba(238, 220, 196, 0.9);
  border-style: solid;
  box-shadow: 0 0 0 1px rgba(88, 70, 78, 0.7);
}

.cast-frame-corner::before {
  inset: 4px;
  border-width: 3px 0 0 3px;
  border-radius: 10px 0 0 0;
}

.cast-frame-corner::after {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-radius: 50%;
  opacity: 0.8;
}

.cast-frame-corner-tl {
  top: 0;
  left: 0;
}

.cast-frame-corner-tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.cast-frame-corner-bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.cast-frame-corner-br {
  right: 0;
  bottom: 0;
  transform: scale(-1);
}

.cast-name-ribbon {
  position: absolute;
  right: 17%;
  bottom: 14px;
  left: 17%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  color: #4d241b;
  font-size: clamp(0.72rem, 1.25vw, 0.92rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background: linear-gradient(180deg, #ead7b9 0%, #cfaa78 54%, #f0dfc0 100%);
  border: 1px solid rgba(102, 69, 48, 0.74);
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.cast-name-ribbon::before,
.cast-name-ribbon::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 16px;
  height: 17px;
  background: linear-gradient(180deg, #d3ad77 0%, #a97e55 100%);
  border: 1px solid rgba(102, 69, 48, 0.62);
}

.cast-name-ribbon::before {
  right: calc(100% - 1px);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.cast-name-ribbon::after {
  left: calc(100% - 1px);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.cast-name-ribbon span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 0 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reserve-form {
  margin-top: 10px;
}

.event-choice-fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.event-choice-fieldset legend {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.event-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.event-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(206, 170, 122, 0.3);
  border-radius: 8px;
  background: rgba(9, 8, 12, 0.72);
  color: var(--text-sub);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.event-choice-card:hover,
.event-choice-card:focus-within {
  border-color: var(--accent-strong);
  background: rgba(34, 18, 17, 0.9);
}

.event-choice-card:has(input:checked) {
  border-color: var(--accent-strong);
  background: rgba(196, 116, 69, 0.18);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 148, 0.32);
}

.event-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-choice-check {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1px solid rgba(206, 170, 122, 0.5);
  border-radius: 999px;
  background: rgba(7, 5, 7, 0.8);
}

.event-choice-card:has(input:checked) .event-choice-check {
  border-color: var(--accent-strong);
  background:
    radial-gradient(circle at center, var(--accent-strong) 0 38%, transparent 42%),
    rgba(7, 5, 7, 0.8);
}

.event-choice-body,
.event-choice-meta,
.event-choice-facts {
  display: grid;
  gap: 6px;
}

.event-choice-title {
  color: var(--text-main);
  font-size: 1.03rem;
  line-height: 1.45;
}

.event-choice-meta {
  color: var(--accent-strong);
  font-size: 0.86rem;
}

.event-choice-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.event-choice-facts span {
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(206, 170, 122, 0.2);
  border-radius: 8px;
  background: rgba(8, 6, 8, 0.36);
  color: var(--text-main);
  font-size: 0.9rem;
}

.event-choice-facts b {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 500;
}

.event-choice-members {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-height: 42px;
}

.event-choice-member {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(206, 170, 122, 0.42);
  border-radius: 10px;
  background: rgba(7, 5, 7, 0.72);
  color: var(--accent-strong);
  font-size: 0.86rem;
}

.event-choice-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-choice-member-empty {
  color: var(--text-sub);
  font-size: 0.84rem;
}

.event-choice-description,
.event-choice-empty {
  color: var(--text-sub);
  font-size: 0.86rem;
}

.reserve-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-sub);
  font-size: 0.86rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 42px;
  border: 1px solid rgba(206, 170, 122, 0.32);
  border-radius: 8px;
  background: rgba(9, 8, 12, 0.72);
  color: var(--text-main);
  padding: 0 12px;
}

.form-field textarea {
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
}

.availability-page {
  color: #fff8ec;
  background:
    linear-gradient(180deg, rgba(11, 5, 5, 0.8) 0%, rgba(11, 5, 5, 0.96) 100%),
    url("../world/main_floor.png") center center / cover fixed no-repeat,
    var(--bg-main);
}

.availability-app {
  width: min(520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 112px;
  background: linear-gradient(180deg, rgba(21, 10, 10, 0.92) 0%, rgba(12, 5, 5, 0.96) 100%);
}

.availability-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 18px;
}

.availability-code,
.availability-cast,
.summary-label {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.86rem;
}

.availability-code {
  color: var(--accent-strong);
  letter-spacing: 0.12em;
}

.availability-topbar h1 {
  margin: 2px 0 4px;
  font-size: 1.5rem;
}

.availability-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(206, 170, 122, 0.34);
  border-radius: 999px;
  color: var(--text-sub);
  background: rgba(9, 7, 9, 0.58);
  font-size: 0.82rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c47445;
  box-shadow: 0 0 0 4px rgba(196, 116, 69, 0.14);
}

.status-dot.is-done {
  background: #9fdc5b;
  box-shadow: 0 0 0 4px rgba(159, 220, 91, 0.14);
}

.availability-section {
  padding: 16px 0;
  border-top: 1px solid rgba(206, 170, 122, 0.18);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading .kicker,
.section-heading h2 {
  margin: 0;
}

.section-heading h2 {
  font-size: 1.12rem;
}

.week-switch,
.compact-actions,
.preset-row {
  display: flex;
  gap: 8px;
}

.week-switch {
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.week-switch::-webkit-scrollbar {
  display: none;
}

.week-btn,
.utility-btn,
.preset-btn {
  border: 1px solid rgba(206, 170, 122, 0.34);
  color: var(--text-sub);
  background: rgba(11, 9, 14, 0.58);
  cursor: pointer;
}

.week-btn {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.week-btn input {
  position: absolute;
  opacity: 0;
}

.week-btn.is-active,
.week-btn:hover,
.utility-btn:hover,
.preset-btn:hover:not(:disabled) {
  border-color: var(--accent-strong);
  color: var(--text-main);
}

.week-btn.is-active {
  background: rgba(196, 116, 69, 0.24);
}

.compact-actions {
  padding-top: 12px;
  flex-wrap: wrap;
}

.utility-btn {
  flex: 1 1 150px;
  min-height: 42px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.availability-form {
  display: contents;
}

.bulk-time {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(206, 170, 122, 0.24);
  border-radius: 8px;
  background: rgba(11, 8, 10, 0.64);
}

.bulk-time legend {
  padding: 0 7px;
  color: var(--accent-strong);
  font-size: 0.86rem;
}

.bulk-time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.bulk-time-grid .btn {
  grid-column: 1 / -1;
}

.bulk-time label,
.time-row label,
.note-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-sub);
  font-size: 0.82rem;
}

.bulk-time select,
.time-row select,
.note-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(206, 170, 122, 0.34);
  border-radius: 8px;
  color: var(--text-main);
  background: rgba(7, 5, 7, 0.82);
}

.bulk-time select,
.time-row select {
  padding: 0 12px;
}

.btn-compact {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
}

.day-list {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.day-card {
  border: 1px solid rgba(206, 170, 122, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(30, 14, 13, 0.94) 0%, rgba(17, 8, 8, 0.94) 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.day-card.is-off {
  background: rgba(12, 8, 9, 0.72);
}

.day-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.day-name {
  margin: 0 0 2px;
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.day-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.switch {
  display: inline-flex;
  align-items: center;
  width: 58px;
  height: 34px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  display: block;
  width: 58px;
  height: 34px;
  border: 1px solid rgba(206, 170, 122, 0.34);
  border-radius: 999px;
  background: rgba(6, 5, 7, 0.82);
  transition: 0.18s ease;
}

.switch span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #9f8b7a;
  transition: 0.18s ease;
}

.switch input:checked + span {
  border-color: rgba(240, 196, 148, 0.72);
  background: rgba(196, 116, 69, 0.38);
}

.switch input:checked + span::before {
  transform: translateX(24px);
  background: #f0c494;
}

.time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.time-row select:disabled,
.preset-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.preset-row {
  flex-wrap: wrap;
}

.preset-btn {
  min-height: 36px;
  flex: 1 1 78px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.note-field textarea {
  min-height: 98px;
  padding: 10px 12px;
  resize: vertical;
}

.summary-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(240, 196, 148, 0.34);
  background: rgba(13, 7, 7, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 -14px 28px rgba(0, 0, 0, 0.38);
}

.summary-count {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.12rem;
}

.submit-btn {
  min-width: 148px;
  border-radius: 8px;
}

@media (max-width: 1000px) {
  .cast-gallery-grid,
  .cast-db-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cast-db-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cast-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .reserve-form-grid {
    grid-template-columns: 1fr;
  }

  .cast-db-card {
    grid-template-columns: minmax(112px, 0.38fr) minmax(0, 1fr);
  }

  .cast-db-image-inner,
  .cast-db-image .cast-frame-image {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    min-height: 0;
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .cast-db-image-inner,
  .cast-db-image .cast-frame-image {
    min-height: 360px;
  }

  .hero {
    padding-top: 24px;
  }

  .reserve-entry {
    width: min(100%, 94vw);
  }

  .event-choice-card {
    min-height: 104px;
    padding: 14px 13px;
  }

  .reserve-action-card .cta-row,
  .reserve-action-card .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .cast-gallery-container {
    width: min(380px, 90vw);
  }

  .cast-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 12px;
  }

  .cast-gallery-title {
    margin-bottom: 34px;
    font-size: clamp(3.7rem, 22vw, 4.8rem);
  }

  .cast-frame-shell {
    padding: 10px 10px 16px;
  }
}

@media (min-width: 720px) {
  .availability-app {
    margin-top: 24px;
    margin-bottom: 24px;
    min-height: auto;
    border: 1px solid rgba(206, 170, 122, 0.22);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 420px) {
  .event-choice-facts {
    grid-template-columns: 1fr;
  }

  .availability-app {
    padding-right: 12px;
    padding-left: 12px;
  }

  .availability-topbar h1 {
    font-size: 1.28rem;
  }

  .availability-status {
    padding: 0 9px;
  }

  .summary-bar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .submit-btn {
    min-width: 128px;
  }
}
