.a-studio-schedule-wrap {
  margin: 32px 0;
  color: #222;
}

.a-studio-schedule-header {
  margin-bottom: 16px;
}

.a-studio-schedule-title {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.4;
  font-weight: 700;
}

.a-studio-schedule-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ------------------------------
   PCテーブル
------------------------------ */
.a-studio-schedule-desktop {
  display: block;
}

.a-studio-schedule-mobile {
  display: none;
}

.a-studio-schedule-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.a-studio-schedule-table th,
.a-studio-schedule-table td {
  border: 1px solid #5f5148;
}

.a-studio-schedule-table th {
  background: #f4f1ed;
  padding: 12px 8px;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.a-studio-schedule-table td {
  vertical-align: top;
  height: 150px;
  padding: 0;
  background: #fff;
}

.a-studio-lesson {
  height: 100%;
  position: relative;
}

.a-studio-lesson-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e8df8c;
  padding: 7px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  border-bottom: 1px solid #5f5148;
}

.a-studio-lesson-body {
  position: relative;
  padding: 12px 8px 8px;
  text-align: center;
}

.a-studio-badge-new {
    position: absolute;
    top: 9px;
    left: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #d92c20;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    transform: rotate(-20deg);
}

.a-studio-lesson-name {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.a-studio-lesson-meta {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #444;
}

.a-studio-beginner-icon {
  display: inline-block;
  width: 14px;
  height: 20px;
  flex: 0 0 14px;
  background: linear-gradient(135deg, #f3c84d 0 50%, #8cc152 50% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

/* ------------------------------
   スマホ タブ
------------------------------ */
.a-studio-mobile-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 0 0 0;
  margin: 0 0 -1px;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 2;
}

.a-studio-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.a-studio-mobile-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #a9a9a9;
  padding: 14px 18px 16px;
  border-radius: 10px 10px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: none;
  transition: color .2s ease, background .2s ease;
}

.a-studio-mobile-tab.is-active {
  background: #c93b41;
  color: #fff;
}

.a-studio-mobile-panels {
  position: relative;
  z-index: 1;
}

.a-studio-mobile-panel {
  display: none;
  border: 4px solid #c93b41;
  border-radius: 10px;
  background: #fff;
  padding: 28px 18px 20px;
}

.a-studio-mobile-panel.is-active {
  display: block;
}

.a-studio-mobile-day-title {
  display: none;
}
/* ------------------------------
   レスポンシブ切替
------------------------------ */
@media (max-width: 767px) {
  .a-studio-schedule-desktop {
    display: none;
  }

  .a-studio-schedule-mobile {
    display: block;
  }

  .a-studio-schedule-title {
    font-size: 1.4rem;
  }

  .a-studio-mobile-tabs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0;
    margin: 0 0 -1px;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
  }

  .a-studio-mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .a-studio-mobile-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: #a9a9a9;
    padding: 14px 18px 16px;
    border-radius: 10px 10px 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: none;
  }

  .a-studio-mobile-tab.is-active {
    background: #c93b41;
    color: #fff;
  }

  .a-studio-mobile-panels {
    position: relative;
    z-index: 1;
  }

  .a-studio-mobile-panel {
    display: none;
    border: 4px solid #c93b41;
    border-radius: 10px;
    background: #fff;
    padding: 20px 14px 16px;
  }

  .a-studio-mobile-panel.is-active {
    display: block;
  }

  .a-studio-mobile-day-title {
    display: none;
  }

  .a-studio-timeline {
    display: grid;
    gap: 14px;
  }

  .a-studio-timeline-item {
    display: block;
    padding: 14px 12px;
    border: 1px solid #ece7e2;
    border-radius: 12px;
    background: #faf8f5;
  }

  .a-studio-timeline-item:first-child {
    padding-top: 14px;
  }

  .a-studio-timeline-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #222;
    background: #efe59a;
    padding: 8px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
  }

  .a-studio-timeline-content {
    min-width: 0;
  }

  .a-studio-timeline-head {
    display: block;
  }

  .a-studio-timeline-name {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.55;
    color: #222;
  }

  .a-studio-timeline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #d92c20;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .a-studio-timeline-meta {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555;
  }

  .a-studio-beginner-icon {
    display: inline-block;
    width: 15px;
    height: 22px;
    flex: 0 0 15px;
    background: linear-gradient(135deg, #f3c84d 0 50%, #8cc152 50% 100%);
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  }
}