.schedule-section {
  --black: #050505;
  --black-soft: #0b0b0b;
  --panel: #101010;
  --panel-2: #171717;
  --gold: #c69a58;
  --gold-bright: #e4bf7c;
  --gold-pale: #f1d8aa;
  --gold-muted: #80633a;
  --white: #f5f0e8;
  --muted: #aaa49a;
  --border: rgba(198, 154, 88, 0.45);
  --content-width: 1200px;
  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Helvetica Neue", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif;

  width: min(100% - 40px, var(--content-width));
  margin-inline: auto;
  padding: 42px 0 42px;
  color: var(--white);
  font-family: var(--serif);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.schedule-section *,
.schedule-section *::before,
.schedule-section *::after {
  box-sizing: border-box;
}

.schedule-section a {
  color: inherit;
  text-decoration: none;
}

.schedule-section button,
.schedule-section a {
  -webkit-tap-highlight-color: transparent;
}

.schedule-section button {
  font: inherit;
}

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

.section-heading {
  position: relative;
  margin-bottom: 24px;
  text-align: center;
}

.section-heading::before {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 310px;
  height: 150px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 154, 88, 0.11), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.section-heading h1 {
  position: relative;
  margin: 0;
  color: #f3efe6;
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.09em;
}

.title-rule {
  position: relative;
  width: min(260px, 66vw);
  height: 18px;
  margin: 3px auto 2px;
}

.title-rule::before,
.title-rule::after {
  position: absolute;
  top: 50%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold));
  transform: translateY(-50%);
}

.title-rule::before {
  right: 50%;
  left: 0;
}

.title-rule::after {
  right: 0;
  left: 50%;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.title-rule span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold-bright);
  background: var(--black-soft);
  box-shadow: 0 0 18px rgba(224, 185, 121, 0.34);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section-heading p {
  position: relative;
  margin: 0;
  color: #eee8df;
  font-size: 16px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
}

.schedule-lead {
  width: min(100%, 720px);
  margin: 12px auto 0;
  color: rgba(231, 225, 216, 0.65);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  text-align: center;
}

.date-tabs-wrap {
  position: relative;
  width: min(100%, 1080px);
  margin: 28px auto 28px;
  padding: 8px;
  border: 1px solid rgba(198, 154, 88, 0.28);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.028), transparent 38%),
    rgba(8, 8, 8, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    0 18px 55px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.date-tabs-wrap::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid transparent;
  background: linear-gradient(112deg, transparent 15%, rgba(224, 185, 121, 0.22), transparent 56%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.date-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.date-tab {
  position: relative;
  min-width: 0;
  min-height: 78px;
  padding: 10px 5px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  color: #c9c2b8;
  background: transparent;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  isolation: isolate;
  transition:
    color 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    transform 0.24s ease;
}

.date-tab::before {
  position: absolute;
  z-index: -1;
  inset: auto -35% -65% 50%;
  width: 90%;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 185, 121, 0.35), transparent 70%);
  opacity: 0;
  transform: translateX(-50%) scale(0.7);
  transition: opacity 0.28s ease, transform 0.32s ease;
}

.date-tab::after {
  position: absolute;
  right: 16%;
  bottom: 5px;
  left: 16%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.24s ease, transform 0.28s ease;
}

.date-tab:hover,
.date-tab:focus-visible {
  color: var(--gold-pale);
  border-color: rgba(198, 154, 88, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.date-tab.is-active {
  color: #1b1207;
  border-color: rgba(242, 214, 165, 0.72);
  background: linear-gradient(135deg, #f1d39b 0%, #bd8a48 54%, #8e6534 100%);
  box-shadow:
    0 10px 28px rgba(88, 56, 18, 0.3),
    inset 0 1px 0 rgba(255, 247, 224, 0.48);
}

.date-tab.is-active::before,
.date-tab.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.date-tab.is-active::after {
  background: linear-gradient(90deg, transparent, rgba(50, 29, 7, 0.62), transparent);
  transform: scaleX(1);
}

.date-tab__month {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.date-tab__day {
  display: block;
  margin-top: -1px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.date-tab__weekday {
  display: inline-block;
  min-width: 1.8em;
  margin-left: 2px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.date-tab__meta {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.78;
}

.schedule-status {
  min-height: 28px;
  margin: -8px 0 17px;
  color: rgba(244, 239, 231, 0.72);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
}

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

.schedule-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(176px, 38%) minmax(0, 62%);
  overflow: hidden;
  border: 1px solid rgba(198, 154, 88, 0.42);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(14, 14, 14, 0.87);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.78),
    0 16px 36px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.schedule-card::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  border: 1px solid transparent;
  background: linear-gradient(120deg, transparent 8%, rgba(241, 211, 155, 0.28), transparent 42%) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transform: translateX(-34%);
  transition: opacity 0.28s ease, transform 0.55s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.schedule-card:hover,
.schedule-card:focus-within {
  border-color: rgba(224, 185, 121, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.78),
    0 22px 54px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(198, 154, 88, 0.055);
}

.schedule-card:hover::before,
.schedule-card:focus-within::before {
  opacity: 1;
  transform: translateX(24%);
}

.schedule-card__link {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
}

.schedule-card__link:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: -3px;
}

.schedule-photo {
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-right: 1px solid rgba(198, 154, 88, 0.36);
  background:
    linear-gradient(var(--gold-muted), var(--gold-muted)) left 10px top 10px / 17px 1px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) left 10px top 10px / 1px 17px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) right 10px top 10px / 17px 1px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) right 10px top 10px / 1px 17px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) left 10px bottom 10px / 17px 1px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) left 10px bottom 10px / 1px 17px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) right 10px bottom 10px / 17px 1px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) right 10px bottom 10px / 1px 17px no-repeat,
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.1), transparent 29%),
    linear-gradient(130deg, #3a3a3a, #292929 52%, #202020);
  isolation: isolate;
}

.schedule-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  filter: saturate(0.95) contrast(1.02);
  transition: transform 0.72s cubic-bezier(.2,.8,.2,1), filter 0.45s ease;
}

.schedule-card:hover .schedule-photo img,
.schedule-card:focus-within .schedule-photo img {
  transform: scale(1.045);
  filter: saturate(1.03) contrast(1.04);
}

.schedule-photo::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 40%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.schedule-photo__badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-width: 68px;
  padding: 6px 9px 5px;
  border: 1px solid rgba(241, 216, 170, 0.66);
  color: #1a1107;
  background: linear-gradient(135deg, rgba(245, 220, 176, 0.96), rgba(174, 122, 57, 0.96));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: center;
}

.schedule-info {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 25px 20px;
}

.schedule-info::before {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  content: "";
  border-top: 1px solid rgba(198, 154, 88, 0.4);
  border-right: 1px solid rgba(198, 154, 88, 0.4);
  pointer-events: none;
}

.schedule-name {
  margin: 0;
  font-weight: 400;
  line-height: 1.18;
}

.schedule-name__jp {
  display: block;
  color: #f4efe7;
  font-size: clamp(24px, 2.7vw, 31px);
  letter-spacing: 0.07em;
}

.schedule-name__en {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.schedule-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 14px 0 0;
  color: rgba(233, 227, 218, 0.75);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.schedule-profile span {
  position: relative;
}

.schedule-profile span + span::before {
  position: absolute;
  top: 50%;
  left: -7px;
  width: 2px;
  height: 2px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.schedule-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.schedule-category__tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 11px 4px;
  border: 1px solid rgba(224, 185, 121, 0.48);
  color: var(--gold-pale);
  background:
    linear-gradient(135deg, rgba(198, 154, 88, 0.16), rgba(198, 154, 88, 0.035));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    0 7px 18px rgba(0, 0, 0, 0.18);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.schedule-time {
  position: relative;
  margin: 20px 0 0;
  padding: 14px 14px 13px 18px;
  border-left: 2px solid var(--gold-bright);
  background:
    linear-gradient(90deg, rgba(198, 154, 88, 0.12), rgba(198, 154, 88, 0.018) 72%, transparent);
}

.schedule-time::after {
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: 42%;
  content: "";
  background: #fff0c9;
  box-shadow: 0 0 10px rgba(255, 223, 162, 0.62);
  animation: timeGlow 2.8s ease-in-out infinite alternate;
}

@keyframes timeGlow {
  from { opacity: 0.42; transform: scaleY(0.72); transform-origin: top; }
  to { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

.schedule-time__label {
  display: block;
  margin-bottom: 3px;
  color: rgba(224, 185, 121, 0.82);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.schedule-time__value {
  display: block;
  color: #fbf6ed;
  font-family: var(--sans);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.035em;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px solid rgba(198, 154, 88, 0.31);
  background:
    radial-gradient(circle at center, rgba(198, 154, 88, 0.065), transparent 44%),
    rgba(12, 12, 12, 0.66);
  text-align: center;
}

.empty-state__inner {
  max-width: 460px;
}

.empty-state__mark {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.empty-state h2 {
  margin: 0;
  color: #eee8df;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.empty-state p {
  margin: 8px 0 0;
  color: rgba(229, 222, 212, 0.58);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* 黒い余白を残す写真表示(元モックアップの2回目の.schedule-photo定義。実写真の周囲に黒い縁を残す仕上げ) */
.schedule-photo {
  background:
    linear-gradient(var(--gold-muted), var(--gold-muted)) left 8px top 8px / 18px 1px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) left 8px top 8px / 1px 18px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) right 8px top 8px / 18px 1px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) right 8px top 8px / 1px 18px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) left 8px bottom 8px / 18px 1px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) left 8px bottom 8px / 1px 18px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) right 8px bottom 8px / 18px 1px no-repeat,
    linear-gradient(var(--gold-muted), var(--gold-muted)) right 8px bottom 8px / 1px 18px no-repeat,
    #050505;
}

.schedule-photo img {
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: 1px solid rgba(198, 154, 88, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.schedule-photo::after {
  inset: 10px;
}

.schedule-photo__badge {
  top: 18px;
  left: 18px;
}

@media (max-width: 920px) {
  .schedule-card {
    grid-template-columns: minmax(150px, 39%) minmax(0, 61%);
  }

  .schedule-info {
    padding: 20px 18px 17px;
  }
}

@media (max-width: 820px) {
  .schedule-section {
    width: min(100% - 28px, 680px);
    padding-top: 32px;
  }

  .date-tabs-wrap {
    width: 100%;
    margin-top: 24px;
    padding: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 154, 88, 0.55) rgba(0, 0, 0, 0.25);
  }

  .date-tabs {
    width: max-content;
    min-width: 100%;
    grid-template-columns: repeat(7, 86px);
    scroll-snap-type: x mandatory;
  }

  .date-tab {
    min-height: 72px;
    scroll-snap-align: center;
  }

  .schedule-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .schedule-card {
    grid-template-columns: minmax(128px, 36%) minmax(0, 64%);
  }

  .schedule-info {
    padding: 18px 16px 15px;
  }

  .schedule-name__jp {
    font-size: clamp(22px, 5vw, 28px);
  }

  .schedule-time {
    margin-top: 16px;
  }

  .schedule-photo img,
  .schedule-photo::after {
    inset: 7px;
  }

  .schedule-photo img {
    width: calc(100% - 14px);
    height: calc(100% - 14px);
  }

  .schedule-photo__badge {
    top: 13px;
    left: 13px;
  }
}

@media (max-width: 520px) {
  .schedule-section {
    width: min(100% - 20px, 680px);
    padding-top: 26px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h1 {
    font-size: clamp(30px, 9.5vw, 38px);
  }

  .section-heading p {
    font-size: 13px;
  }

  .schedule-lead {
    font-size: 10.5px;
    line-height: 1.75;
  }

  .date-tabs-wrap {
    margin: 20px auto 25px;
  }

  .date-tabs {
    grid-template-columns: repeat(7, 78px);
    gap: 4px;
  }

  .date-tab {
    min-height: 68px;
    padding: 8px 3px;
  }

  .date-tab__day {
    font-size: 22px;
  }

  .schedule-status {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .schedule-card {
    grid-template-columns: minmax(118px, 38%) minmax(0, 62%);
  }

  .schedule-info {
    padding: 14px 12px 12px;
  }

  .schedule-info::before {
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
  }

  .schedule-name__jp {
    font-size: clamp(18px, 5.3vw, 23px);
  }

  .schedule-name__en {
    margin-top: 3px;
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }

  .schedule-profile {
    gap: 4px 10px;
    margin-top: 8px;
    font-size: 8.5px;
  }

  .schedule-time {
    margin-top: 11px;
    padding: 9px 7px 9px 10px;
  }

  .schedule-time__label {
    font-size: 7px;
  }

  .schedule-time__value {
    font-size: clamp(15px, 4.4vw, 18px);
    letter-spacing: 0;
  }

  .schedule-photo__badge {
    top: 10px;
    left: 10px;
    min-width: 40px;
    padding: 4px 5px 3px;
    font-size: 6px;
    letter-spacing: 0.075em;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
  }

  .schedule-category {
    margin-top: 7px;
  }

  .schedule-category__tag {
    min-height: 19px;
    padding: 4px 7px 3px;
    font-size: 7px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 380px) {
  .schedule-card {
    grid-template-columns: minmax(106px, 37%) minmax(0, 63%);
  }

  .schedule-info {
    padding-right: 9px;
    padding-left: 9px;
  }

  .schedule-name__jp {
    font-size: 17px;
  }

  .schedule-profile {
    font-size: 7.8px;
  }

  .schedule-time__value {
    font-size: 14px;
  }

  .schedule-photo__badge {
    top: 9px;
    left: 9px;
    min-width: 36px;
    padding: 3px 4px;
    font-size: 5.5px;
  }

  .schedule-category__tag {
    min-height: 18px;
    padding-inline: 6px;
    font-size: 6.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-section *,
  .schedule-section *::before,
  .schedule-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
