/* ========================================
   Schedule Section (index.html inline)
   ======================================== */

.schedule-sec {
  padding: 100px 0;
  background: var(--beige);
}

.schedule-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* カレンダー */
.sch-calendar-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 0 auto 32px;
  max-width: 560px;
}

.sch-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sch-cal-month {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.sch-cal-nav {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--beige);
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ja);
}

.sch-cal-nav:hover {
  background: var(--green-light);
  color: var(--green-accent);
}

.sch-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.sch-cal-day-name {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
}

.sch-cal-day {
  position: relative;
  text-align: center;
  padding: 10px 4px 18px;
  border-radius: 10px;
  transition: all 0.2s;
  min-height: 52px;
}

.sch-cal-day.empty {
  pointer-events: none;
}

.sch-cal-day.no-lesson {
  color: #ccc;
  pointer-events: none;
}

.sch-cal-day.has-lesson {
  background: var(--green-light);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}

.sch-cal-day.has-lesson:hover {
  background: var(--green);
  color: var(--white);
}

.sch-cal-day.has-lesson:hover .sch-cal-month-badge {
  color: rgba(255,255,255,0.85);
}

.sch-cal-day.selected {
  background: var(--green-accent) !important;
  color: var(--white) !important;
}

.sch-cal-day.selected .sch-cal-month-badge {
  color: rgba(255,255,255,0.85) !important;
}

.sch-cal-day-num {
  display: block;
  font-size: 0.95rem;
  line-height: 1;
}

.sch-cal-month-badge {
  display: block;
  font-size: 0.55rem;
  color: var(--green-accent);
  margin-top: 3px;
  line-height: 1;
  white-space: nowrap;
}

.sch-cal-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.sch-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sch-cal-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.sch-cal-legend-dot.has-lesson {
  background: var(--green-light);
}

.sch-cal-legend-dot.no-lesson {
  background: #eee;
}

/* 選択日詳細 */
.sch-day-detail {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 0 auto 32px;
  max-width: 560px;
  animation: schSlideDown 0.3s ease;
}

@keyframes schSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sch-day-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--green-accent);
  color: var(--white);
}

.sch-detail-date {
  font-size: 1.15rem;
  font-weight: 700;
}

.sch-detail-month-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.sch-day-detail-body {
  padding: 20px 24px;
}

.sch-detail-card {
  padding: 14px 16px;
  background: var(--beige-light);
  border-radius: 10px;
  margin-bottom: 12px;
}

.sch-detail-card:last-child {
  margin-bottom: 0;
}

.sch-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.sch-location-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sch-location-dot.tiare {
  background: var(--green-accent);
}

.sch-location-dot.moana {
  background: var(--blue-accent);
}

.sch-instructor {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sch-time-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sch-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sch-time {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  min-width: 110px;
}

.sch-class-name {
  font-size: 0.95rem;
  color: var(--text);
}

.sch-no-lesson {
  text-align: center;
  color: var(--text-muted);
  padding: 20px 0;
}

.sch-day-detail-cta {
  padding: 16px 24px;
  text-align: center;
  border-top: 1px solid #eee;
}

.sch-btn-reserve {
  display: inline-block;
  padding: 10px 28px;
  background: var(--green-accent);
  color: var(--white);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.sch-btn-reserve:hover {
  background: #5a9479;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(107,166,142,0.35);
}

/* スケジュール詳細リンク */
.schedule-more {
  text-align: center;
  margin-top: 8px;
}

.schedule-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid var(--green-accent);
  border-radius: 30px;
  color: var(--green-accent);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.schedule-more-btn:hover {
  background: var(--green-accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107,166,142,0.3);
}

.schedule-more-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.schedule-more-btn:hover .schedule-more-arrow {
  transform: translateX(4px);
}

/* モバイル */
@media (max-width: 768px) {
  .schedule-sec {
    padding: 70px 0;
  }

  .sch-calendar-wrap {
    padding: 20px 16px;
  }

  .sch-cal-day {
    padding: 8px 2px 16px;
    min-height: 46px;
  }

  .sch-cal-day-num {
    font-size: 0.85rem;
  }

  .sch-cal-month-badge {
    font-size: 0.5rem;
  }

  .sch-day-detail-header {
    padding: 14px 18px;
  }

  .sch-day-detail-body {
    padding: 16px 18px;
  }

  .sch-time-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .sch-time {
    min-width: auto;
    font-size: 0.85rem;
  }
}
