.reservation-date-page .custom-heading {
  margin-bottom: 18px;
}

.slot-list {
  width: min(92vw, 408px);
  margin-inline: auto;
}

:root {
  --brand: #16a34a;
  --brand-muted: #7cc397;
  --brand-rail: #bfead0;

  --brand-wash-accordion: #ffffff;
  --brand-wash-card: #e8f7ee;

  --surface: #f8fafc;
  --surface-hov: #f3f4f6;
  --surface-verylight: #f7fbf9;
  --border: rgba(0, 0, 0, .10);
  --border-hov: rgba(0, 0, 0, .16);
  --shadow: 0 1px 1px rgba(0, 0, 0, .04);
  --shadow-hov: 0 2px 8px rgba(0, 0, 0, .08);
  --radius: 12px;
  --text: #374151;
  --muted: #6b7280;
}

.month-group {
  margin: 10px 0 2px;
}

.month-toggle {
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 8px 44px 8px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  transition: border-color .15s, box-shadow .15s, background-color .15s, color .15s;
}

.month-toggle .chev,
.month-toggle .caret,
.month-toggle .arrow {
  display: none;
}

.month-toggle::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 2px;
  background: #d1d5db;
  transition: background-color .2s, height .2s, width .2s;
}

.month-toggle::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transition: transform .18s ease, border-color .18s ease;
}

.month-toggle:hover {
  background: var(--surface-verylight);
  border-color: var(--border-hov);
  box-shadow: var(--shadow-hov);
}

.month-toggle:hover::before {
  background: #9ca3af;
}

.month-toggle[aria-expanded="true"] {
  background: var(--brand-wash-accordion);
  border-color: var(--brand-muted);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
}

.month-toggle[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
  border-color: var(--brand);
}

.month-toggle[aria-expanded="true"]::before {
  background: var(--brand-rail);
  height: 72%;
  width: 4px;
}

.reservation-date-page .month-toggle.active,
.reservation-date-page .accordion-toggle.active {
  background: var(--brand-wash-accordion);
  border-color: var(--brand-muted);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
}

.month-toggle .name {
  flex: 0 0 8.2em;
  min-width: 8.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-toggle .sub,
.month-toggle .month-count {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 8px;
  line-height: 1;
  font-size: 12px;
  border-radius: 9999px;
  background: #eef2f7;
  color: #4b5563;
  border: 1px solid rgba(0, 0, 0, .08);
  white-space: nowrap;
}

.month-panel {
  padding-top: 6px;
  margin-bottom: 6px;
}

.month-panel[hidden] {
  display: none !important;
}

.reservation-date-page .card {
  background: #ffffff;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  transition: box-shadow .15s, border-color .15s, background-color .15s;
}

.reservation-date-page .card-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reservation-date-page .label-text {
  font-size: 14px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.reservation-date-page .status {
  font-size: 11.5px;
  line-height: 1;
  padding: 4px 8px;
  margin-left: auto;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
}

.reservation-date-page .status.available {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.reservation-date-page .status.full {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

/* 受付終了（カード） */
.reservation-date-page .status.closed {
  color: #4b5563;
  background: #e5e7eb;
  border-color: #d1d5db;
}

.reservation-date-page .card.selected {
  border-color: var(--brand);
  background: var(--brand-wash-card);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, .18);
}

.reservation-date-page .card.disabled {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: none;
  opacity: 1;
}

.reservation-date-page .card.disabled .label-text {
  color: #6b7280;
}

@media (hover:hover) and (pointer:fine) {
  .reservation-date-page .card:not(.disabled):hover {
    background: var(--brand-wash-card);
    box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
  }
}

@media (max-width: 560px) {
  .slot-list {
    width: 94vw;
  }

  .month-toggle {
    height: 44px;
    padding: 10px 44px 10px 22px;
  }

  .reservation-date-page .label-text {
    font-size: 14px;
    letter-spacing: 0;
  }

  .reservation-date-page .status {
    font-size: 10.75px;
    padding: 3px 7px;
  }

  .reservation-date-page .card-content {
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .reservation-date-page .label-text {
    font-size: 13.5px;
  }

  .reservation-date-page .status {
    font-size: 10.5px;
  }
}

.reservation-date-page .container {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  row-gap: 10px;
  min-height: 50dvh;
}

.guide-card {
  --guide-border: rgba(0, 0, 0, .07);

  width: 100%;
  max-width: min(92vw, 408px);
  margin: -8px auto 6px;
  padding: 6px 10px;
  border: 1px solid var(--guide-border);
  background: rgba(255, 255, 255, .5);
  border-radius: 12px;
  box-shadow: none;
  position: relative;
  box-sizing: border-box;
}

.guide-card::before,
.guide-card::after {
  content: none;
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4a5568;
  font-size: .78rem;
  line-height: 1.32;
}

.guide-list li {
  position: relative;
  padding-left: .85rem;
}

.guide-list li + li {
  margin-top: 2px;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b8d9c7;
}

.guide-list li:first-child {
  color: #2d6f55;
  font-weight: 600;
}

.linklike {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.linklike:hover {
  opacity: .9;
}

.linklike:focus-visible {
  outline: 2px solid rgba(22, 163, 74, .35);
  outline-offset: 2px;
  border-radius: 2px;
}

.guide-card .linklike {
  color: #1a7a49;
}

/* 説明文内「満員」「受付終了」バッジ：カードとデザイン統一 */
.reservation-date-page .guide-card .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  margin: 0 2px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 600;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.reservation-date-page .guide-card .status-badge-full {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.reservation-date-page .guide-card .status-badge-closed {
  color: #4b5563;
  background: #e5e7eb;
  border-color: #d1d5db;
}

@media (max-width: 480px) {
  .guide-card {
    padding: 5px 8px;
    margin: 4px auto;
  }

  .guide-list {
    font-size: .86rem;
    line-height: 1.30;
  }
}
