/*
 * SGM PC Mega Menu v11
 * Course images inserted
 */

.sgm-mega-course,
.sgm-mega-course * {
  box-sizing: border-box;
}

.sgm-mega-course {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
  font-family: "BIZ UDPGothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #2c2b2b;
}

.sgm-mega-course.is-open {
  display: block;
  pointer-events: auto;
}

.sgm-mega-course__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);
}

.sgm-mega-course__panel {
  position: relative;
  width: min(1280px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  margin: 40px auto 0;
  overflow: hidden auto;
  background: #f4fbff;
  border-radius: 50px 50px 60px 60px;
}

.sgm-mega-course__topbar {
  position: relative;
  height: 111px;
  background: #f4fbff;
  border-radius: 50px 50px 0 0;
}

.sgm-mega-course__close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #2c2b2b;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.sgm-mega-course__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23px;
  height: 1px;
  background: #2c2b2b;
  transform-origin: center;
}

.sgm-mega-course__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sgm-mega-course__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sgm-mega-course__body {
  display: grid;
  grid-template-columns: 394px 1fr;
  min-height: 1181px;
  padding: 0;
  align-items: stretch;
}

.sgm-mega-course__aside {
  width: 394px;
  min-height: 1181px;
  padding: 20px 25px 81px;
  background: #fff;
  border-right: 1px solid #abb4ac;
  border-radius: 0 0 0 60px;
}

.sgm-mega-course__aside-inner {
  width: 343px;
}

.sgm-mega-course__aside-head {
  width: 343px;
  height: 192px;
  padding-bottom: 32px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.sgm-mega-course__label {
  width: 343px;
  height: 72px;
  margin: 0;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(44, 43, 43, .05);
}

.sgm-mega-course__label-course,
.sgm-mega-course__label-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: 2px;
  text-align: center;
}

.sgm-mega-course__label-course {
  width: 116px;
}

.sgm-mega-course__label-guide {
  width: 102px;
  color: transparent;
  -webkit-text-stroke: 1px #2c2b2b;
  text-stroke: 1px #2c2b2b;
}

.sgm-mega-course__aside-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 2px;
  text-align: center;
}

.sgm-mega-course__aside-text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

.sgm-mega-course__category {
  width: 344px;
  height: 566px;
  display: grid;
  gap: 31px;
  margin-bottom: 31px;
}

.sgm-mega-course__category-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 344px;
  height: 80px;
  padding: 20px 12px;
  border: 1px solid #2c2b2b;
  border-radius: 20px;
  background: #fff;
  color: #2c2b2b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.sgm-mega-course__category-button.is-active {
  background: #2c2b2b;
  color: #fff;
}

.sgm-mega-course__category-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2c2b2b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 1px;
}

.sgm-mega-course__category-button.is-active .sgm-mega-course__category-icon {
  background: #fff;
  color: #2c2b2b;
}

.sgm-mega-course__category-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sgm-mega-course__category-button.is-active .sgm-mega-course__category-icon img {
  filter: brightness(0);
}

.sgm-mega-course__cta-box {
  width: 343px;
  height: 285px;
  padding: 29px 23px 30px;
  border: 1px solid #e4ded6;
  border-radius: 20px;
  background: #fff4e8;
}

.sgm-mega-course__cta-text {
  width: 298px;
  min-height: 50px;
  margin: 0 0 20px;
  color: #5d2e04;
  font-size: 14px;
  font-weight: 700;
  line-height: 175%;
  letter-spacing: 2px;
  text-align: center;
}

.sgm-mega-course__cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 298px;
  height: 68px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.sgm-mega-course__cta-button + .sgm-mega-course__cta-button {
  margin-top: 20px;
}

.sgm-mega-course__cta-button--line {
  background: #06c755;
}

.sgm-mega-course__cta-button--trial {
  background: #ff7900;
}

.sgm-mega-course__cta-button-inner {
  width: 216px;
  height: 50px;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: 21px 29px;
  column-gap: 7px;
  align-items: center;
}

.sgm-mega-course__cta-sub {
  position: relative;
  grid-column: 1 / 3;
  grid-row: 1;
  height: 21px;
  color: #fff;
  font-family: "Nunito", "BIZ UDPGothic", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 1.4px;
  text-align: center;
}

.sgm-mega-course__cta-sub::before,
.sgm-mega-course__cta-sub::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #fff;
  vertical-align: -1px;
}

.sgm-mega-course__cta-sub::before {
  margin-right: 9px;
  transform: rotate(-28deg);
}

.sgm-mega-course__cta-sub::after {
  margin-left: 9px;
  transform: rotate(28deg);
}

.sgm-mega-course__cta-icon {
  grid-column: 1;
  grid-row: 2;
  width: 30px;
  height: 30px;
}

.sgm-mega-course__cta-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sgm-mega-course__cta-main {
  grid-column: 2;
  grid-row: 2;
  width: 179px;
  height: 28px;
  color: #fff;
  font-family: "Nunito", "BIZ UDPGothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 175%;
  letter-spacing: 1.4px;
  text-align: left;
  white-space: nowrap;
}

/* Main Content */
.sgm-mega-course__main {
  width: 886px;
  min-height: 1181px;
  padding: 20px 0 81px;
  background: #f4fbff;
  border-radius: 0 0 60px 0;
}

.sgm-mega-course__main-inner {
  width: 885px;
  padding: 0;
}

.sgm-mega-course__ranking-head {
  width: 885px;
  height: 60px;
  margin: 0 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sgm-mega-course__ranking-title {
  width: 184px;
  height: 60px;
  margin: 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
}

.sgm-mega-course__ranking-title::after {
  content: "";
  width: 40px;
  border-bottom: 3px solid #fe7904;
}

.sgm-mega-course__top-ranking {
  width: 885px;
  height: 486px;
  border-radius: 30px;
  background: #fff;
  overflow: visible;
}

.sgm-mega-course__top-rank-row {
  width: 885px;
  height: 78px;
  padding: 10px 32px;
  display: grid;
  grid-template-columns: repeat(3, 241.67px);
  column-gap: 48px;
  align-items: center;
}

.sgm-mega-course__top-rank {
  height: 58px;
  display: grid;
  place-items: center;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
}

.sgm-mega-course__top-rank--crown {
  color: #c98b16;
  font-size: 32px;
}

.sgm-mega-course__top-rank--new {
  width: 60px;
  height: 40px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 40px;
  letter-spacing: 4px;
  color: #fc6424;
  background: linear-gradient(90deg, #fc6424, #f5473f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sgm-mega-course__top-card-grid {
  width: 885px;
  height: 404px;
  padding: 42px 32px 0;
  display: grid;
  grid-template-columns: repeat(3, 241.67px);
  column-gap: 48px;
}

.sgm-mega-course__top-card {
  width: 241.67px;
  height: 320px;
  position: relative;
  text-align: center;
}

.sgm-mega-course__top-card.is-hidden,
.sgm-mega-course__bottom-card.is-hidden {
  display: none;
}

.sgm-mega-course__top-card-link,
.sgm-mega-course__bottom-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sgm-mega-course__top-visual {
  width: 224px;
  height: 248px;
  margin: -28px auto 0;
  padding-bottom: 24px;
  overflow: visible;
}

.sgm-mega-course__top-visual img {
  display: block;
  width: 224px;
  height: 248px;
  object-fit: contain;
}

.sgm-mega-course__top-card-body {
  width: 203px;
  max-width: 240px;
  min-height: 70px;
  margin: -2px auto 0;
  display: grid;
  gap: 10px;
}

.sgm-mega-course__top-card-title {
  width: 203px;
  height: 20px;
  margin: 0;
  color: #2c2b2b;
  font-family: "Noto Sans JP", "BIZ UDPGothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

.sgm-mega-course__top-card-text {
  margin: 0;
  color: #2c2b2b;
  font-family: "BIZ UDPGothic", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

.sgm-mega-course__bottom-ranking {
  width: 885px;
  height: 321px;
  margin-top: 50px;
}

.sgm-mega-course__bottom-rank-row {
  width: 885px;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 144px);
  column-gap: 32px;
  align-items: center;
  justify-content: center;
}

.sgm-mega-course__bottom-rank {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-family: "BIZ UDPGothic", "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 4px;
}

.sgm-mega-course__bottom-rank--crown {
  color: #b98556;
  font-size: 30px;
}

.sgm-mega-course__bottom-rank--circle {
  border: 1px solid #2785bf;
  border-radius: 50%;
  background: rgba(39, 133, 191, .1);
  color: #2785bf;
  background-image: linear-gradient(90deg, #2785bf, #106ea9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sgm-mega-course__bottom-card-grid {
  width: 885px;
  height: 180px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 144px);
  column-gap: 32px;
  align-items: start;
  justify-content: center;
}

.sgm-mega-course__bottom-card {
  width: 144px;
  text-align: center;
}

.sgm-mega-course__bottom-image {
  width: 144px;
  height: 144px;
  margin: 0 0 16px;
  border-radius: 50%;
  overflow: visible;
  background: transparent;
}

.sgm-mega-course__bottom-image img {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: contain;
}

.sgm-mega-course__bottom-title {
  margin: 0;
  color: #2c2b2b;
  font-family: "Noto Sans JP", "BIZ UDPGothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

.sgm-mega-course__more-wrap {
  margin-top: 50px;
  text-align: center;
}

.sgm-mega-course__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 360px;
  min-height: 58px;
  border-radius: 12px;
  background: #282828;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body.is-sgm-mega-open {
  overflow: hidden;
}


/* v13 fix: top course actual photo + arc text */
.sgm-mega-course__top-visual {
  position: relative;
  width: 224px;
  height: 248px;
  margin: -28px auto 0;
  padding-bottom: 24px;
  overflow: visible;
}

.sgm-mega-course__top-arc {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 156px;
  height: auto;
  transform: translateX(-50%);
  z-index: 2;
  display: block;
}

.sgm-mega-course__top-photo {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 160px;
  height: 160px;
  transform: translateX(-50%);
  object-fit: contain;
  z-index: 1;
  display: block;
}

/* keep old generic image rule from stretching arc-only image */
.sgm-mega-course__top-visual > img:not(.sgm-mega-course__top-arc):not(.sgm-mega-course__top-photo) {
  display: block;
  width: 224px;
  height: 248px;
  object-fit: contain;
}


/* v14 fix: 1位・2位・3位を王冠画像で表示 */
.sgm-mega-course__top-rank--crown img {
  display: block;
  width: auto;
  height: 58px;
  object-fit: contain;
}

.sgm-mega-course__bottom-rank--crown {
  background: transparent;
  border: 0;
  -webkit-text-fill-color: initial;
}

.sgm-mega-course__bottom-rank--crown img {
  display: block;
  width: auto;
  height: 60px;
  object-fit: contain;
}


/* v15: use uploaded merged logo+image assets */
.sgm-mega-course__top-visual--merged {
  position: relative;
  width: 224px;
  height: 248px;
  margin: -28px auto 24px;
  padding: 0;
  overflow: visible;
}

.sgm-mega-course__top-merged {
  display: block;
  width: 224px;
  height: 248px;
  object-fit: contain;
  margin: 0 auto;
}

.sgm-mega-course__top-visual--merged .sgm-mega-course__top-arc,
.sgm-mega-course__top-visual--merged .sgm-mega-course__top-photo {
  display: none !important;
}

.sgm-mega-course__bottom-image img {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: contain;
}


/* v16: 下段4つ並びの横位置を中央揃えに修正 */


/* =========================================================
   Mobile course menu
========================================================= */

/* ===== WordPress integration wrapper ===== */
body.is-sgm-mega-open,
body.is-sgm-mobile-mega-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .sgm-mega-course {
    display: none !important;
  }
}

.sgm-mobile-course-menu,
.sgm-mobile-course-menu * {
  box-sizing: border-box;
}

.sgm-mobile-course-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  pointer-events: none;
  font-family: "BIZ UDPGothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #2c2b2b;
}

.sgm-mobile-course-menu.is-open {
  display: block;
  pointer-events: auto;
}

.sgm-mobile-course-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);
}

.sgm-mobile-course-menu__dialog {
  position: relative;
  width: 375px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: auto;
  border-radius: 28px;
  background: #f4fbff;
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}

.sgm-mobile-course-menu__close {
  position: sticky;
  top: 10px;
  left: calc(100% - 52px);
  z-index: 5;
  width: 38px;
  height: 38px;
  margin: 10px 10px -48px auto;
  display: block;
  padding: 0;
  border: 1px solid #2c2b2b;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.sgm-mobile-course-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1px;
  background: #2c2b2b;
  transform-origin: center;
}

.sgm-mobile-course-menu__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sgm-mobile-course-menu__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 既存の静的確認用marginをWP表示では解除 */
.sgm-mobile-course-menu .sgm-mobile-mega {
  margin: 0 auto;
}

/* PCではスマホメニューを出さない */
@media (min-width: 768px) {
  .sgm-mobile-course-menu {
    display: none !important;
  }
}


.sgm-mobile-mega {
      width: 375px;
      min-height: 100vh;
      margin: 0 auto;
      padding: 18px 14px 24px;
      background: #f4fbff;
      overflow: hidden;
    }

    .sgm-mobile-mega__panel {
      width: 100%;
      overflow: hidden;
      border-radius: 22px;
      background: #fff;
      box-shadow: 0 12px 34px rgba(0,0,0,.06);
    }

    .sgm-mobile-mega__head {
      padding: 18px 14px 14px;
      text-align: center;
      background: #fff;
    }

    .sgm-mobile-mega__logo {
      margin: 0 0 8px;
      font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
      font-size: 18px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 3px;
    }

    .sgm-mobile-mega__logo span {
      color: transparent;
      -webkit-text-stroke: 1px #2c2b2b;
      text-stroke: 1px #2c2b2b;
    }

    .sgm-mobile-mega__title {
      margin: 0 0 6px;
      font-size: 14px;
      font-weight: 800;
    }

    .sgm-mobile-mega__lead {
      margin: 0;
      font-size: 10px;
      font-weight: 700;
      line-height: 1.65;
    }

    .sgm-mobile-tabs {
      display: grid;
      gap: 7px;
      padding: 0 14px 16px;
      background: #fff;
    }

    .sgm-mobile-tab {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-height: 42px;
      padding: 7px 10px;
      border: 1px solid #2c2b2b;
      border-radius: 9px;
      background: #fff;
      color: #2c2b2b;
      font-size: 12px;
      font-weight: 800;
      text-align: left;
      appearance: none;
      cursor: pointer;
    }

    .sgm-mobile-tab.is-active {
      background: #2c2b2b;
      color: #fff;
    }

    .sgm-mobile-tab__icon {
      display: grid;
      place-items: center;
      flex: 0 0 26px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: #2c2b2b;
      color: #fff;
      font-size: 10px;
      font-weight: 800;
    }

    .sgm-mobile-tab.is-active .sgm-mobile-tab__icon {
      background: #fff;
      color: #2c2b2b;
    }

    .sgm-mobile-tab__icon img {
      display: block;
      width: 20px;
      height: 20px;
      object-fit: contain;
    }

    .sgm-mobile-tab.is-active .sgm-mobile-tab__icon img {
      filter: brightness(0);
    }

    .sgm-mobile-content {
      padding: 18px 0 0;
      background: #eefaff;
    }

    .sgm-mobile-section {
      display: none;
    }

    .sgm-mobile-section.is-active {
      display: block;
    }

    .sgm-mobile-heading {
      margin: 0 0 14px;
      text-align: center;
      font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
      font-size: 16px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: 6px;
    }

    .sgm-mobile-heading::after {
      content: "";
      display: block;
      width: 28px;
      height: 2px;
      margin: 10px auto 0;
      background: #fe7904;
    }

    .sgm-mobile-subheading {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 20px 16px 12px;
      color: #0076bd;
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 1px;
    }

    .sgm-mobile-subheading::before {
      content: "";
      width: 18px;
      height: 18px;
      border-radius: 5px;
      background: #0076bd;
      opacity: .9;
    }

    .sgm-mobile-scroller {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      overscroll-behavior-x: contain;
      scrollbar-width: none;
      padding: 0 14px 14px;
    }

    .sgm-mobile-scroller::-webkit-scrollbar {
      display: none;
    }

    .sgm-mobile-scroller__track {
      display: flex;
      gap: 14px;
      width: max-content;
      min-width: 100%;
    }

    .sgm-mobile-card {
      flex: 0 0 96px;
      scroll-snap-align: start;
      text-align: center;
      color: #2c2b2b;
    }

    .sgm-mobile-card--large {
      flex-basis: 112px;
    }

    .sgm-mobile-rank {
      min-height: 24px;
      margin: 0 0 4px;
      color: #0076bd;
      font-size: 11px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: 1px;
    }

    .sgm-mobile-rank--new {
      color: #fc6424;
      font-family: "Montserrat", sans-serif;
      font-size: 10px;
      letter-spacing: 2px;
    }

    .sgm-mobile-card__image {
      display: grid;
      place-items: center;
      width: 96px;
      height: 96px;
      margin: 0 auto 8px;
    }

    .sgm-mobile-card--large .sgm-mobile-card__image {
      width: 112px;
      height: 112px;
    }

    .sgm-mobile-card__image img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .sgm-mobile-card__title {
      margin: 0 0 5px;
      font-size: 11px;
      font-weight: 900;
      line-height: 1.35;
    }

    .sgm-mobile-card__text {
      margin: 0;
      font-size: 9px;
      line-height: 1.55;
      font-weight: 600;
    }

    .sgm-mobile-hint {
      margin: -4px 14px 16px;
      color: #0076bd;
      font-size: 10px;
      font-weight: 700;
      text-align: right;
      opacity: .78;
    }

    .sgm-mobile-cta {
      margin: 16px 14px 18px;
      padding: 16px 12px;
      border-radius: 18px;
      background: #fff2df;
      text-align: center;
    }

    .sgm-mobile-cta__text {
      margin: 0 0 12px;
      color: #5d2e04;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.6;
    }

    .sgm-mobile-cta__buttons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .sgm-mobile-cta__button {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      border-radius: 999px;
      color: #fff;
      font-size: 10px;
      font-weight: 900;
      line-height: 1.35;
      text-decoration: none;
    }

    .sgm-mobile-cta__button--line {
      background: #06c755;
    }

    .sgm-mobile-cta__button--trial {
      background: #ff7900;
    }

    .sgm-mobile-cta__button img {
      width: 20px;
      height: 20px;
      margin-right: 5px;
      object-fit: contain;
    }

    .sgm-mobile-more {
      margin: 12px 14px 0;
      text-align: center;
    }

    .sgm-mobile-more a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 190px;
      height: 42px;
      border-radius: 8px;
      background: #2c2b2b;
      color: #fff;
      text-decoration: none;
      font-size: 12px;
      font-weight: 800;
    }

    @media (max-width: 374px) {
      .sgm-mobile-mega {
        width: 100%;
      }
    }
  
/* ===== v2: Figma指定に合わせた上部レイアウト調整 ===== */

/* 確認用バーは非表示 */
/* 375px幅の静的ページとして確認 */
.sgm-mobile-mega {
  width: 375px;
  padding: 0 0 24px;
  background: #e9e4e4;
}

/* Figmaの375pxフレームをそのまま使う */
.sgm-mobile-mega__panel {
  width: 375px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

/* COURSE GUIDE：375×92 */
.sgm-mobile-mega__head {
  padding: 0;
  text-align: center;
  background: transparent;
}

.sgm-mobile-mega__logo {
  width: 375px;
  height: 92px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 3px;
}

/* コース紹介：375×32 */
.sgm-mobile-mega__title {
  width: 375px;
  height: 32px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

/* リード文：375×40 */
.sgm-mobile-mega__lead {
  width: 375px;
  height: 40px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

/* ボタン群：315px幅で中央配置 */
.sgm-mobile-tabs {
  width: 315px;
  margin: 0 auto;
  padding: 24px 0 28px;
  display: grid;
  gap: 10px;
  background: #fff;
}

/* 各ボタン：315×70 */
.sgm-mobile-tab {
  width: 315px;
  min-height: 70px;
  padding: 12px 15px;
  border: 1px solid #2c2b2b;
  border-radius: 15px;
  gap: 13px;
  font-size: 14px;
  font-weight: 800;
}

.sgm-mobile-tab__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  font-size: 12px;
}

.sgm-mobile-tab__icon img {
  width: 28px;
  height: 28px;
}

/* コンテンツ開始位置 */
.sgm-mobile-content {
  padding-top: 30px;
  background: #f4fbff;
}

.sgm-mobile-heading {
  margin-bottom: 22px;
}

/* はみ出し部分をフリックできる領域 */
.sgm-mobile-scroller {
  padding-left: 30px;
  padding-right: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.sgm-mobile-scroller__track {
  display: flex;
  gap: 14px;
  width: max-content;
  min-width: 100%;
}

.sgm-mobile-card {
  scroll-snap-align: start;
}

/* CTAも315px基準に合わせる */
.sgm-mobile-more,
.sgm-mobile-cta {
  width: 315px;
  margin-left: auto;
  margin-right: auto;
}

.sgm-mobile-cta {
  margin-top: 18px;
}

  
/* ===== v3: もっと見る・CTAをFigma指定に調整 ===== */

/* もっと見るボタン */
.sgm-mobile-more {
  width: 315px;
  margin: 22px auto 14px;
  text-align: center;
}

.sgm-mobile-more a {
  width: 315px;
  height: 70px;
  border-radius: 16px;
  background: #586277;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  gap: 28px;
}

/* CTA全体：343×285 */
.sgm-mobile-cta {
  position: relative;
  width: 343px;
  height: 285px;
  margin: 14px auto 28px;
  padding: 29px 23px 30px;
  border-radius: 0;
  background: #fff4e8;
  text-align: center;
}

/* Figma確認用の枠ではなく、実デザインの外枠 */
.sgm-mobile-cta {
  border: 1px solid #e4ded6;
}

/* CTA上部テキスト */
.sgm-mobile-cta__text {
  width: 298px;
  min-height: 50px;
  margin: 0 0 20px;
  color: #5d2e04;
  font-family: "BIZ UDPGothic", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 175%;
  letter-spacing: 2px;
  text-align: center;
}

/* CTAボタンは縦積み */
.sgm-mobile-cta__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* CTAボタン：298×68 */
.sgm-mobile-cta__button {
  width: 298px;
  height: 68px;
  min-height: 68px;
  margin: 0;
  border-radius: 999px;
  color: #fff;
  font-family: "Nunito", "BIZ UDPGothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 175%;
  letter-spacing: 1.4px;
  text-decoration: none;
}

/* ボタン内の補足文を追加しやすいように縦組み */
.sgm-mobile-cta__button {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: 21px 29px;
  column-gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 9px 41px;
}

/* 既存のbr入りテキストを中央寄せ */
.sgm-mobile-cta__button span,
.sgm-mobile-cta__button {
  text-align: center;
}

.sgm-mobile-cta__button img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  margin: 20px 0 0;
  object-fit: contain;
}

/* v3ではテキストを1行化 */
.sgm-mobile-cta__button--line::before,
.sgm-mobile-cta__button--trial::before {
  grid-column: 1 / 3;
  grid-row: 1;
  display: block;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
}

.sgm-mobile-cta__button--line::before {
  content: "＼ LINEだけのお得な特典も！ ／";
}

.sgm-mobile-cta__button--trial::before {
  content: "＼ 気軽に参加できる！ ／";
}

.sgm-mobile-cta__button-label {
  grid-column: 2;
  grid-row: 2;
  white-space: nowrap;
}

/* 既存HTMLのテキストを整形 */
.sgm-mobile-cta__button {
  overflow: hidden;
}

.sgm-mobile-content {
  padding-bottom: 1px;
}

  
/* ===== v4: Figma寸法再調整 / more 343×80 / CTA 343×285 ===== */

/* もっと見る：343×80 */
.sgm-mobile-more {
  width: 343px !important;
  margin: 22px auto 16px !important;
  padding: 0 !important;
  text-align: center !important;
}

.sgm-mobile-more a {
  width: 343px !important;
  height: 80px !important;
  min-height: 80px !important;
  border-radius: 16px !important;
  background: #586277 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 46px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
}

/* CTA外枠：343×285 */
.sgm-mobile-cta {
  position: relative !important;
  width: 343px !important;
  height: 285px !important;
  margin: 0 auto 28px !important;
  padding: 29px 22px 30px !important;
  border: 1px solid #e4ded6 !important;
  border-radius: 18px !important;
  background: #fff4e8 !important;
  text-align: center !important;
  box-shadow: none !important;
}

/* CTA上部テキスト */
.sgm-mobile-cta__text {
  width: 298px !important;
  min-height: 50px !important;
  margin: 0 0 20px !important;
  color: #5d2e04 !important;
  font-family: "BIZ UDPGothic", "Noto Sans JP", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 175% !important;
  letter-spacing: 2px !important;
  text-align: center !important;
}

/* CTAボタン2つの縦並び */
.sgm-mobile-cta__buttons {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  width: 298px !important;
}

/* CTAボタン：298×68 */
.sgm-mobile-cta__button {
  position: relative !important;
  width: 298px !important;
  height: 68px !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 9px 41px !important;
  border-radius: 999px !important;
  border: 0 !important;
  color: #fff !important;
  text-decoration: none !important;
  display: grid !important;
  grid-template-columns: 30px 1fr !important;
  grid-template-rows: 21px 29px !important;
  column-gap: 7px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.sgm-mobile-cta__button--line {
  background: #06c755 !important;
}

.sgm-mobile-cta__button--trial {
  background: #ff7900 !important;
}

.sgm-mobile-cta__button img {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.sgm-mobile-cta__button::before {
  grid-column: 1 / 3 !important;
  grid-row: 1 !important;
  display: block !important;
  color: #fff !important;
  font-family: "Nunito", "BIZ UDPGothic", sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 21px !important;
  letter-spacing: 1px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.sgm-mobile-cta__button--line::before {
  content: "＼ LINEだけのお得な特典も！ ／" !important;
}

.sgm-mobile-cta__button--trial::before {
  content: "＼ 気軽に参加できる！ ／" !important;
}

.sgm-mobile-cta__button-label {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 179px !important;
  height: 28px !important;
  color: #fff !important;
  font-family: "Nunito", "BIZ UDPGothic", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 175% !important;
  letter-spacing: 1.4px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* 下部の角丸背景余白 */
.sgm-mobile-content {
  padding-bottom: 30px !important;
}

  
/* ===== v5: 背景の欠け・抉れ修正 ===== */

/* 375pxパネル全体に背景を持たせる */
.sgm-mobile-mega__panel {
  width: 375px !important;
  background: #f4fbff !important;
  border-radius: 0 0 28px 28px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

/* 上部エリアは白でつなげる */
.sgm-mobile-mega__head {
  background: #ffffff !important;
}

/* COURSE GUIDEブロックも白系背景で固定 */
.sgm-mobile-mega__logo {
  background: #f5f5f5 !important;
}

.sgm-mobile-mega__title,
.sgm-mobile-mega__lead {
  background: #ffffff !important;
}

/* タブエリアは375px全体に白背景を敷く */
.sgm-mobile-tabs {
  width: 375px !important;
  margin: 0 !important;
  padding: 24px 30px 28px !important; /* 30 + 315 + 30 */
  background: #ffffff !important;
  display: grid !important;
  gap: 10px !important;
}

/* ボタン自体は315px維持 */
.sgm-mobile-tab {
  width: 315px !important;
}

/* ランキング以降は水色背景を全面に */
.sgm-mobile-content {
  width: 375px !important;
  background: #f4fbff !important;
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

/* 各セクションで背景が抜けないようにする */
.sgm-mobile-section {
  background: transparent !important;
}

/* 横スクロール部分も背景を保持 */
.sgm-mobile-scroller {
  background: transparent !important;
}

/* もっと見る?CTA下端まで背景を保持 */
.sgm-mobile-more,
.sgm-mobile-cta {
  position: relative !important;
  z-index: 1 !important;
}

/* 下端の丸みが欠けて見えないように余白を確保 */
.sgm-mobile-content::after {
  content: "";
  display: block;
  height: 1px;
}

  
/* ===== v6: RANKINGをFigma寸法へ調整 ===== */

/* RANKING見出し周り */
.sgm-mobile-heading {
  width: 375px !important;
  margin: 0 0 34px !important;
  padding-top: 0 !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1 !important;
  letter-spacing: 6px !important;
}

/* 上位3件：横フリック。1カード160×344 */
.sgm-mobile-ranking-top {
  width: 375px !important;
  margin: 0 !important;
  padding: 0 0 0 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  background: transparent !important;
}

.sgm-mobile-ranking-top::-webkit-scrollbar {
  display: none !important;
}

.sgm-mobile-ranking-top__track {
  display: flex !important;
  width: max-content !important;
  min-width: 558px !important;
  gap: 0 !important;
  padding: 0 0 0 0 !important;
}

.sgm-mobile-ranking-card {
  margin: 0 !important;
  text-align: center !important;
  color: #2c2b2b !important;
  box-sizing: border-box !important;
}

.sgm-mobile-ranking-card--top {
  flex: 0 0 160px !important;
  width: 160px !important;
  min-height: 344px !important;
  padding: 7px 10px 14px !important;
  scroll-snap-align: start !important;
  background: transparent !important;
  border-right: 1px solid rgba(44,43,43,.08) !important;
}

.sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card__new {
  height: 36px !important;
  margin: 0 0 6px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.sgm-mobile-ranking-card__mark img {
  display: block !important;
  width: 34px !important;
  height: auto !important;
  object-fit: contain !important;
}

.sgm-mobile-ranking-card__new {
  color: #fc6424 !important;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 4px !important;
  align-items: center !important;
}

.sgm-mobile-ranking-card__image {
  width: 118px !important;
  height: 118px !important;
  margin: 0 auto 18px !important;
  display: grid !important;
  place-items: center !important;
}

.sgm-mobile-ranking-card__image img {
  display: block !important;
  width: 118px !important;
  height: 118px !important;
  object-fit: contain !important;
}

.sgm-mobile-ranking-card__title {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

.sgm-mobile-ranking-card__text {
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

/* 下段ランキング：2件を中央配置 */
.sgm-mobile-ranking-bottom {
  width: 375px !important;
  display: grid !important;
  grid-template-columns: 130px 130px !important;
  justify-content: center !important;
  column-gap: 24px !important;
  row-gap: 0 !important;
  margin: 18px 0 0 !important;
  padding: 0 0 18px !important;
  background: transparent !important;
}

.sgm-mobile-ranking-card--bottom {
  width: 130px !important;
  min-height: 196px !important;
  padding: 0 !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark {
  height: 34px !important;
  margin-bottom: 2px !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark img {
  width: 32px !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image {
  width: 112px !important;
  height: 112px !important;
  margin-bottom: 9px !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image img {
  width: 112px !important;
  height: 112px !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__title {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* 旧カード用のヒントが残っていても非表示 */
.sgm-mobile-hint {
  display: none !important;
}

/* RANKING直後のもっと見るとの距離 */
.sgm-mobile-more {
  margin-top: 20px !important;
}

  
/* ===== v7: RANKING上段カードの内側幅を144pxに調整 ===== */

/* 外側カードは160pxのまま、左右paddingを8pxにして内側144px */
.sgm-mobile-ranking-card--top {
  flex: 0 0 160px !important;
  width: 160px !important;
  min-height: 344px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* article直下の内側要素を144px基準にする */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text {
  width: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 画像は現状サイズを維持しつつ、144px内で中央寄せ */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image {
  width: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

  
/* ===== v8: RANKING上段の画像幅も144pxに調整 ===== */

/* 上段カード内の画像枠を144pxにする */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image {
  width: 144px !important;
  height: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 実画像も144pxにする */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image img {
  width: 144px !important;
  height: 144px !important;
  max-width: 144px !important;
  object-fit: contain !important;
}

  
/* ===== v9: 2位以降も外160px / 内144px に統一 ===== */

.sgm-mobile-ranking-bottom {
  width: 375px !important;
  display: grid !important;
  grid-template-columns: 160px 160px !important;
  justify-content: center !important;
  column-gap: 0 !important;
  row-gap: 18px !important;
  margin: 18px 0 0 !important;
  padding: 0 0 18px !important;
  background: transparent !important;
}

.sgm-mobile-ranking-card--bottom {
  width: 160px !important;
  min-height: 230px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  box-sizing: border-box !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__title {
  width: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark {
  height: 40px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark img {
  width: 34px !important;
  height: auto !important;
}

.sgm-mobile-ranking-card__number {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #2785BF !important;
  color: #2785BF !important;
  background: rgba(39,133,191,.10) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image {
  width: 144px !important;
  height: 144px !important;
  margin-bottom: 10px !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image img {
  width: 144px !important;
  height: 144px !important;
  object-fit: contain !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__title {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

  
/* ===== v10: Figmaプロパティに合わせる / 上段カード ===== */

/* 上段ランキングの1枚目開始位置：左16px */
.sgm-mobile-ranking-top__track {
  padding-left: 16px !important;
}

/* 上段カード：外側160px / 高さ344px / 上下padding10px / 内側144px */
.sgm-mobile-ranking-card--top {
  flex: 0 0 160px !important;
  width: 160px !important;
  height: 344px !important;
  min-height: 344px !important;
  padding: 10px 8px !important; /* 横8px + 144px + 横8px = 160px */
  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 25px !important;
}

/* 上段カード内側：144px */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text {
  width: 144px !important;
  max-width: 144px !important;
  margin: 0 auto !important;
}

/* マーク/NEWの高さ */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new {
  height: 36px !important;
  min-height: 36px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new {
  align-items: center !important;
}

/* 上段画像：144px */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image img {
  width: 144px !important;
  height: 144px !important;
  max-width: 144px !important;
}

.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image img {
  object-fit: contain !important;
}

/* タイトル・説明文の余白をFigma gap側に任せる */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text {
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.65 !important;
}

/* 横フリック用トラック幅をカード増加分に合わせる */
.sgm-mobile-ranking-top__track {
  min-width: calc(16px + 160px * 3) !important;
}

  
/* ===== v11: 左16pxを正しく反映 / article内padding撤去 ===== */

/* 左16pxはtrackではなく、スクロール親に持たせる */
.sgm-mobile-ranking-top {
  width: 375px !important;
  padding-left: 16px !important;
  padding-right: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
}

/* track自体にはpaddingを持たせない */
.sgm-mobile-ranking-top__track {
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: calc(160px * 3) !important;
  width: max-content !important;
  display: flex !important;
  gap: 0 !important;
}

/* article外側：160×344。内側paddingは入れない */
.sgm-mobile-ranking-card--top {
  flex: 0 0 160px !important;
  width: 160px !important;
  height: 344px !important;
  min-height: 344px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  scroll-snap-align: start !important;
}

/* 内側の有効幅は各要素を144px中央寄せで作る */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text {
  width: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 上の王冠/NEW */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new {
  height: 36px !important;
  min-height: 36px !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new {
  align-items: center !important;
}

/* 画像：144×144 */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image {
  width: 144px !important;
  height: 144px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image img {
  width: 144px !important;
  height: 144px !important;
  max-width: 144px !important;
  object-fit: contain !important;
}

/* タイトル */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

/* 説明文 */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: 10px !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

/* スクロール終端で最後のカードが見切れすぎないように右余白だけ追加 */
.sgm-mobile-ranking-top__track::after {
  content: "";
  flex: 0 0 16px;
}

  
/* ===== v12: RANKING上段の左16pxをarticleの外側marginで確実に作る ===== */

/* スクロール親とtrackには左paddingを持たせない */
.sgm-mobile-ranking-top {
  width: 375px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
}

.sgm-mobile-ranking-top__track {
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex !important;
  gap: 0 !important;
  width: max-content !important;
  min-width: calc(16px + 160px * 3 + 16px) !important;
}

/* 1枚目のarticleの外側に16pxを作る */
.sgm-mobile-ranking-top__track > .sgm-mobile-ranking-card--top:first-child {
  margin-left: 16px !important;
}

/* article自体は160×344、内側paddingなし */
.sgm-mobile-ranking-card--top {
  flex: 0 0 160px !important;
  width: 160px !important;
  height: 344px !important;
  min-height: 344px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  scroll-snap-align: start !important;
}

/* 右端にも最後の余白16px */
.sgm-mobile-ranking-top__track::after {
  content: "" !important;
  flex: 0 0 16px !important;
}

/* 内側要素は144px中央寄せ */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text {
  width: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

  
/* ===== v13: RANKING全体の縦軸を 16px + 160px grid に統一 ===== */

/*
  基準線:
  左余白 16px
  1列目 160px: x=16?176
  2列目 160px: x=176?336
  3列目 160px: x=336?496（横フリックで表示）
*/

/* 上段横フリック：1枚目を左16px開始 */
.sgm-mobile-ranking-top {
  width: 375px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
}

.sgm-mobile-ranking-top__track {
  display: grid !important;
  grid-template-columns: repeat(3, 160px) !important;
  grid-auto-flow: column !important;
  gap: 0 !important;
  width: calc(16px + 160px * 3 + 16px) !important;
  min-width: calc(16px + 160px * 3 + 16px) !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: content-box !important;
}

/* 以前のafter余白を無効化。右余白はtrack padding-rightで管理 */
.sgm-mobile-ranking-top__track::after {
  content: none !important;
  display: none !important;
}

/* 上段カード：外160×344、内paddingなし */
.sgm-mobile-ranking-card--top {
  width: 160px !important;
  height: 344px !important;
  min-height: 344px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
  display: block !important;
}

/* 1枚目だけに入れていたmargin-leftを削除。grid padding-leftで16pxを作る */
.sgm-mobile-ranking-top__track > .sgm-mobile-ranking-card--top:first-child {
  margin-left: 0 !important;
}

/* 上段内側要素：144px中央寄せ */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text {
  width: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 下段も同じ縦軸：左16px開始、160px列 */
.sgm-mobile-ranking-bottom {
  width: 375px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 160px) !important;
  justify-content: start !important;
  column-gap: 0 !important;
  row-gap: 18px !important;
  margin: 18px 0 0 !important;
  padding: 0 0 18px 16px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

/* 下段カード：外160、内paddingなし */
.sgm-mobile-ranking-card--bottom {
  width: 160px !important;
  min-height: 230px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* 下段内側要素：144px中央寄せ */
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__title {
  width: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 下段画像：144×144 */
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image img {
  width: 144px !important;
  height: 144px !important;
  max-width: 144px !important;
}

.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image img {
  object-fit: contain !important;
}

  
/* ===== v14: RANKING上段と下段の縦軸を完全統一 ===== */

/*
  基準：
  375px幅の中で
  左余白 16px
  1列目 article 160px
  2列目 article 160px
  3列目 article 160px（横フリック）
*/

/* 横スクロール親は余白を持たせない */
.sgm-mobile-ranking-top {
  width: 375px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
}

/* 上段track自体を左16pxから開始させる */
.sgm-mobile-ranking-top__track {
  display: grid !important;
  grid-template-columns: repeat(3, 160px) !important;
  grid-auto-flow: column !important;
  gap: 0 !important;

  width: calc(160px * 3) !important;
  min-width: calc(160px * 3) !important;

  margin-left: 16px !important;
  margin-right: 16px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;

  box-sizing: border-box !important;
}

/* 疑似要素の余白は使わない */
.sgm-mobile-ranking-top__track::after {
  content: none !important;
  display: none !important;
}

/* articleの外側は160×344、余白なし */
.sgm-mobile-ranking-card--top {
  width: 160px !important;
  flex: 0 0 160px !important;
  height: 344px !important;
  min-height: 344px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
}

/* 以前のfirst-child marginを完全無効化 */
.sgm-mobile-ranking-top__track > .sgm-mobile-ranking-card--top:first-child {
  margin-left: 0 !important;
}

/* 下段も同じ左16px開始 */
.sgm-mobile-ranking-bottom {
  width: 375px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 160px) !important;
  justify-content: start !important;
  column-gap: 0 !important;
  row-gap: 18px !important;

  margin: 18px 0 0 !important;
  padding: 0 0 18px 16px !important;
  box-sizing: border-box !important;
}

/* 下段articleも160px、paddingなし */
.sgm-mobile-ranking-card--bottom {
  width: 160px !important;
  min-height: 230px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* 上段・下段共通：中身は144px中央寄せ */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__title {
  width: 144px !important;
  max-width: 144px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

  
/* ===== v15: RANKINGをひとまず2カラム・同幅化 ===== */

/* 上段ランキング：横フリックをやめて2カラム固定 */
.sgm-mobile-ranking-top {
  width: 375px !important;
  overflow: visible !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

.sgm-mobile-ranking-top__track {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* 上段カード：2カラムの中で同幅 */
.sgm-mobile-ranking-card--top {
  width: 100% !important;
  flex: none !important;
  min-width: 0 !important;
  height: 344px !important;
  min-height: 344px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* 下段ランキングも2カラム同幅 */
.sgm-mobile-ranking-bottom {
  width: 375px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  column-gap: 0 !important;
  row-gap: 18px !important;
  margin: 18px 0 0 !important;
  padding: 0 16px 18px !important;
  box-sizing: border-box !important;
}

.sgm-mobile-ranking-card--bottom {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 230px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* 上下とも中身は中央寄せ */
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__title,
.sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__text,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__image,
.sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__title {
  margin-left: auto !important;
  margin-right: auto !important;
}

  
/* ===== v17: 新画像差し替え + もっと見る矢印調整 ===== */

/* もっと見るボタン本体 */
.sgm-mobile-more a {
  position: relative !important;
  width: 343px !important;
  height: 80px !important;
  min-height: 80px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* もっと見るの矢印：W12 × H24 / X270 / Y28 */
.sgm-mobile-more a span[aria-hidden="true"] {
  position: absolute !important;
  left: 270px !important;
  top: 28px !important;
  width: 12px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
}

/* 新画像は円弧文字込みの350×332なので、枠内で自然に見せる */
.sgm-mobile-ranking-card__image img,
.sgm-mobile-card__image img {
  object-fit: contain !important;
}

  

/* =========================================================
   TOPページ：スマホ用コース紹介メニュー差し込み
========================================================= */

.sgm-top-course-mobile {
  display: none;
}

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile {
    display: block !important;
    width: 100%;
  }

  .course-guide .sgm-top-course-default {
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-mega {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .course-guide .sgm-top-course-mobile {
    display: none !important;
  }

  .course-guide .sgm-top-course-default {
    display: block !important;
  }
}


/* =========================================================
   v4: iPhone SE等 343px未満のスマホ幅対応
   343px以上では最大343px、343px未満では親幅/画面幅に収める
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile {
    width: 100% !important;
    max-width: 343px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-mega,
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega__panel,
  .course-guide .sgm-top-course-mobile .sgm-mobile-content {
    width: 100% !important;
    max-width: 343px !important;
    min-width: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-mega {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-mega__logo,
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega__title,
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega__lead,
  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs {
    width: 100% !important;
    max-width: 343px !important;
    min-width: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs {
    padding-left: clamp(12px, 4vw, 30px) !important;
    padding-right: clamp(12px, 4vw, 30px) !important;
    box-sizing: border-box !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab {
    width: 100% !important;
    max-width: 315px !important;
    min-width: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom,
  .course-guide .sgm-top-course-mobile .sgm-mobile-more,
  .course-guide .sgm-top-course-mobile .sgm-mobile-cta,
  .course-guide .sgm-top-course-mobile .sgm-mobile-scroller {
    width: 100% !important;
    max-width: 343px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    padding-left: clamp(10px, 4vw, 16px) !important;
    padding-right: clamp(10px, 4vw, 16px) !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-more {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-more a {
    width: 100% !important;
    max-width: 343px !important;
    min-width: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-cta {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(14px, 5vw, 23px) !important;
    padding-right: clamp(14px, 5vw, 23px) !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-cta__text,
  .course-guide .sgm-top-course-mobile .sgm-mobile-cta__buttons,
  .course-guide .sgm-top-course-mobile .sgm-mobile-cta__button {
    width: 100% !important;
    max-width: 298px !important;
    min-width: 0 !important;
  }
}

/* さらに狭い端末用：矢印位置もボタン幅に対して相対配置 */
@media (max-width: 342px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-more a span[aria-hidden="true"] {
    left: auto !important;
    right: clamp(42px, 18vw, 61px) !important;
  }
}

/* =========================================================
   v5: TOPスマホ RANKINGの不要な縦ボーダー削除
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--bottom {
    border-right: 0 !important;
    border-left: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    outline: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top__track,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    border: 0 !important;
    outline: 0 !important;
  }
}


/* =========================================================
   v6: TOPスマホ RANKINGの見えないボーダー
   線は見せず、1px分のレイアウト幅は維持
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--bottom {
    border-right: 1px solid transparent !important;
    border-left: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    outline: 0 !important;
  }
}


/* =========================================================
   v7: TOPスマホ カテゴリパネル2カラム化 + CTA共通表示 + 背景修正
========================================================= */

@media (max-width: 767px) {
  /* 静的HTML確認用の灰色背景をTOP実装では出さない */
  .course-guide .sgm-top-course-mobile,
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega {
    background: transparent !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-mega__panel {
    background: #ffffff !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-content {
    background: #f4fbff !important;
    padding-bottom: 18px !important;
    border-radius: 0 0 24px 24px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section {
    background: #f4fbff !important;
  }

  /* すべてのコース以外も2カラム表示にする */
  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-scroller {
    overflow: visible !important;
    padding-left: clamp(10px, 4vw, 16px) !important;
    padding-right: clamp(10px, 4vw, 16px) !important;
    padding-bottom: 10px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-scroller__track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    text-align: center !important;
    scroll-snap-align: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card__image,
  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card--large .sgm-mobile-card__image {
    width: 132px !important;
    max-width: 100% !important;
    height: 126px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 8px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card__image img {
    width: 132px !important;
    max-width: 100% !important;
    height: 126px !important;
    object-fit: contain !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card__title {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card__text {
    font-size: 10px !important;
    line-height: 1.55 !important;
  }

  /* 2カラム化したので横フリック案内は非表示 */
  .course-guide .sgm-top-course-mobile .sgm-mobile-hint {
    display: none !important;
  }

  /* CTAはカテゴリ切替の外へ移動済み。全カテゴリで表示する */
  .course-guide .sgm-top-course-mobile .sgm-mobile-cta--global {
    display: block !important;
    background: #fff4e8 !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }
}

/* iPhone SEなど、さらに幅が狭い場合は画像を少し縮める */
@media (max-width: 342px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card__image,
  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card--large .sgm-mobile-card__image,
  .course-guide .sgm-top-course-mobile .sgm-mobile-section:not([data-mobile-panel="all"]) .sgm-mobile-card__image img {
    width: 122px !important;
    height: 116px !important;
  }
}


/* =========================================================
   v10: TOPスマホ カテゴリ見出しスタイル統一
   「声・ボイトレ系」の中央見出し＋オレンジ下線に合わせる
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading {
    display: block !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    color: #2c2b2b !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
    letter-spacing: 2px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading::before {
    content: none !important;
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading::after {
    content: "" !important;
    display: block !important;
    width: 28px !important;
    height: 2px !important;
    margin: 10px auto 0 !important;
    background: #fe7904 !important;
  }
}


/* =========================================================
   v11: TOPスマホ カテゴリ見出し Figma指定へ調整
   W150 / H40 / Literata Bold 18 / line-height 40 / letter-spacing 4px
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading {
    width: 150px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #2c2b2b !important;
    background: transparent !important;
    font-family: "Literata", "Montserrat", "Noto Sans JP", serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    letter-spacing: 4px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading::before {
    content: none !important;
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: -6px !important;
    width: 28px !important;
    height: 2px !important;
    margin: 0 !important;
    background: #fe7904 !important;
    transform: translateX(-50%) !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading {
    position: relative !important;
  }
}


/* =========================================================
   v12: TOPスマホ カテゴリ見出し 横幅いっぱい + 中央配置
   150px固定を解除し、見出しエリアは100% / 文字と下線は中央
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #2c2b2b !important;
    background: transparent !important;
    font-family: "Literata", "Montserrat", "Noto Sans JP", serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    letter-spacing: 4px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading::before {
    content: none !important;
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-subheading::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 4px !important;
    width: 28px !important;
    height: 2px !important;
    margin: 0 !important;
    background: #fe7904 !important;
    transform: translateX(-50%) !important;
  }
}


/* =========================================================
   v19: スマホTOPタブ切替の体感速度改善
   安定性を優先して pointerdown は使わず、描画負荷だけ減らす
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile [data-mobile-tab] {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section {
    transition: none !important;
    animation: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section[hidden] {
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-scroller,
  .course-guide .sgm-top-course-mobile .sgm-mobile-scroller__track,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   v20: スマホTOPタブ切替を data-active-panel 制御へ変更
   JS側で各パネルをループしてhidden/class切替しないための軽量化
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega[data-active-panel] [data-mobile-panel] {
    display: none !important;
    visibility: hidden !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-mega[data-active-panel="all"] [data-mobile-panel="all"],
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega[data-active-panel="voice"] [data-mobile-panel="voice"],
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega[data-active-panel="guitar"] [data-mobile-panel="guitar"],
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega[data-active-panel="instrument"] [data-mobile-panel="instrument"],
  .course-guide .sgm-top-course-mobile .sgm-mobile-mega[data-active-panel="creative"] [data-mobile-panel="creative"] {
    display: block !important;
    visibility: visible !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-section {
    transition: none !important;
    animation: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-card,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card {
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   v21: 汎用 横フリックUI
   タブ・コース画像リスト・カードリストで使い回せる横スクロール部品
========================================================= */

/* 汎用：横フリック外枠 */
.sgm-flick {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
}

.sgm-flick::-webkit-scrollbar {
  display: none;
}

/* 汎用：横並びトラック */
.sgm-flick__track {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
  min-width: 100%;
}

/* 汎用：横フリック内の1要素 */
.sgm-flick__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* 画面端まで気持ちよくフリックさせる */
.sgm-flick--edge {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}

/* 中央寄せ気味に止めたい場合 */
.sgm-flick--center {
  scroll-snap-type: x mandatory;
}

.sgm-flick--center .sgm-flick__item {
  scroll-snap-align: center;
}

/* カード画像用 */
.sgm-flick--cards .sgm-flick__track {
  gap: 16px;
}

.sgm-flick--cards .sgm-flick__item {
  width: 148px;
}

/* =========================================================
   既存スマホTOPカテゴリタブを横フリック化
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs {
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin: 0 -16px 22px !important;
    padding: 24px 16px 12px !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;

    box-sizing: border-box !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 150px !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 18px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;

    scroll-snap-align: start !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab[data-mobile-tab="all"] {
    min-width: 174px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab[data-mobile-tab="voice"] {
    min-width: 178px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab[data-mobile-tab="guitar"] {
    min-width: 140px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab[data-mobile-tab="instrument"] {
    min-width: 270px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab[data-mobile-tab="creative"] {
    min-width: 250px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab__icon {
    flex: 0 0 auto !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tab > span:last-child {
    display: inline-block !important;
    white-space: nowrap !important;
  }
}

/* =========================================================
   既存コース画像リストにも横フリックを適用したい場合の汎用補助
   親に .sgm-flick-course-images を付ければ横スライド化
========================================================= */

@media (max-width: 767px) {
  .sgm-flick-course-images {
    width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    box-sizing: border-box !important;
  }

  .sgm-flick-course-images::-webkit-scrollbar {
    display: none !important;
  }

  .sgm-flick-course-images > ul,
  ul.sgm-flick-course-images,
  .sgm-flick-course-images .course-list,
  .sgm-flick-course-images .sgm-flick__track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: max-content !important;
    min-width: 100% !important;
  }

  .sgm-flick-course-images > ul > li,
  ul.sgm-flick-course-images > li,
  .sgm-flick-course-images .course-list > li,
  .sgm-flick-course-images .sgm-flick__item {
    flex: 0 0 148px !important;
    width: 148px !important;
    scroll-snap-align: start !important;
  }

  .sgm-flick-course-images img {
    max-width: 100% !important;
    height: auto !important;
  }
}


/* =========================================================
   v22: RANKING下段 2位?5位を横フリック化
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding: 0 16px 12px !important;

    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 14px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;

    box-sizing: border-box !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom::-webkit-scrollbar {
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card--bottom {
    flex: 0 0 132px !important;
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;

    scroll-snap-align: start !important;
    box-sizing: border-box !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card__image {
    width: 116px !important;
    height: 110px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card__image img {
    width: 116px !important;
    height: 110px !important;
    object-fit: contain !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card__title {
    font-size: 11px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
}

/* SE等のさらに狭い端末 */
@media (max-width: 342px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card--bottom {
    flex-basis: 124px !important;
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card__image,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card__image img {
    width: 108px !important;
    height: 102px !important;
  }
}

/* =========================================================
   v28: RANKING上段の3カードを横フリック化
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top {
    width: 100% !important;
    max-width: 343px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top::-webkit-scrollbar {
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top__track {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    gap: 0 !important;
    width: max-content !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    scroll-snap-align: start !important;
  }
}

/* v35: mobile course cards are clickable without changing their layout. */
@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-course-link {
    display: block !important;
    color: inherit !important;
    text-decoration: none !important;
  }
}

/* =========================================================
   v29: 下段カードを上段と同寸法に統一 / 初期左端を保護
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card--bottom {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    scroll-snap-align: start !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card__image,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom .sgm-mobile-ranking-card__image img {
    width: 144px !important;
    height: 144px !important;
    max-width: 144px !important;
    object-fit: contain !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top {
    scroll-padding-left: 16px !important;
  }
}

/* =========================================================
   v30: 上下ランキングの横位置と3枚目の見切れ量を統一
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    box-sizing: border-box !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top::-webkit-scrollbar,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom::-webkit-scrollbar {
    display: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top__track,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top__track {
    width: max-content !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--bottom {
    flex: 0 0 148px !important;
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   v33: ランキング横スワイプ案内
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-swipe-guide {
    margin: 5px 16px 12px !important;
    color: #6d747b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: .08em !important;
    text-align: right !important;
    transition: opacity .2s ease !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-swipe-guide span {
    display: inline-block !important;
    margin-left: 4px !important;
    color: #0076bd !important;
    font-size: 15px !important;
    animation: sgm-swipe-guide-arrow 1.2s ease-in-out infinite !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-swipe-guide.is-used {
    opacity: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-swipe-guide[hidden] {
    display: none !important;
  }
}

/* v36: allow vertical page scrolling when a gesture starts on a carousel. */
@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom,
  .course-guide .sgm-top-course-mobile .sgm-mobile-scroller {
    touch-action: auto !important;
    overscroll-behavior-x: contain;
  }
}

/* v37: draw the more-link arrow without a font-dependent character. */
@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-more a span[aria-hidden="true"] {
    font-size: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-more a span[aria-hidden="true"]::before {
    content: "" !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;
    transform: rotate(45deg) !important;
    box-sizing: border-box !important;
  }
}

/* v38: center the trial button label independently of its left icon. */
@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-cta__button--trial .sgm-mobile-cta__button-label {
    grid-column: 1 / 3 !important;
    width: 100% !important;
    justify-self: center !important;
    text-align: center !important;
  }
}

/* v39: draw all inline arrows with CSS to avoid encoding issues. */
@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-inline-arrow {
    position: relative !important;
    display: inline-block !important;
    width: 18px !important;
    height: 10px !important;
    margin-left: 4px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    vertical-align: middle !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-inline-arrow::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    width: 16px !important;
    border-top: 2px solid currentColor !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-inline-arrow::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 1px !important;
    width: 7px !important;
    height: 7px !important;
    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;
    transform: rotate(45deg) !important;
    box-sizing: border-box !important;
  }
}

@keyframes sgm-swipe-guide-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-swipe-guide span {
    animation: none !important;
  }
}

/* =========================================================
   v34: 3枚目の見切れ量 / 上下余白 / スワイプ案内を再調整
========================================================= */

@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--bottom {
    flex: 0 0 144px !important;
    width: 144px !important;
    min-width: 144px !important;
    max-width: 144px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top {
    height: 300px !important;
    min-height: 300px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    margin-top: 8px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-swipe-guide {
    display: block !important;
    margin-top: 3px !important;
    margin-bottom: 8px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-swipe-guide[hidden] {
    display: none !important;
  }
}

/* v40: fixed mobile ranking layout; category tabs remain horizontally scrollable. */
@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    width: 100% !important;
    max-width: 343px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-top__track {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 144px) !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom {
    margin-top: 18px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 144px) !important;
    justify-content: space-between !important;
    column-gap: 0 !important;
    row-gap: 22px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--bottom {
    flex: none !important;
    width: 144px !important;
    min-width: 0 !important;
    max-width: 144px !important;
    scroll-snap-align: none !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top {
    height: 300px !important;
    min-height: 300px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--bottom {
    min-height: 210px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-swipe-guide {
    display: none !important;
  }
}

/* v42: gradient and arrow guide for the horizontally scrollable category tabs. */
@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs-guide {
    position: relative !important;
    width: calc(100% + 32px) !important;
    margin: 0 -16px 22px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs-guide .sgm-mobile-tabs {
    width: 100% !important;
    margin: 0 !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs-guide__fade {
    position: absolute !important;
    z-index: 4 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 92px !important;
    pointer-events: none !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 78%) !important;
    opacity: 1 !important;
    transition: opacity .22s ease !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs-guide__pill {
    position: absolute !important;
    z-index: 5 !important;
    top: 55% !important;
    right: 7px !important;
    display: flex !important;
    min-width: 82px !important;
    height: 34px !important;
    padding: 0 10px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 18px !important;
    background: #0088c9 !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    text-align: center !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    transition: opacity .22s ease !important;
    box-shadow: 0 3px 9px rgba(0, 92, 145, .25) !important;
    animation: sgm-tabs-guide-pill 1.35s ease-in-out infinite !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs-guide__pill-arrow {
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border-bottom: 2px solid #fff !important;
    border-left: 2px solid #fff !important;
    transform: rotate(45deg) !important;
    box-sizing: border-box !important;
    flex: 0 0 8px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs-guide.is-used
    .sgm-mobile-tabs-guide__fade,
  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs-guide.is-used
    .sgm-mobile-tabs-guide__pill {
    opacity: 0 !important;
  }
}

@keyframes sgm-tabs-guide-pill {
  0%, 100% { margin-right: 0; }
  50% { margin-right: 5px; }
}

/* v48: keep rank/new labels clear of the production course images. */
@media (max-width: 767px) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__new,
  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--top .sgm-mobile-ranking-card__mark {
    margin-bottom: 14px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-card--bottom .sgm-mobile-ranking-card__mark {
    margin-bottom: 10px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom--combined {
    margin-top: 18px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 144px) !important;
    justify-content: space-between !important;
    column-gap: 0 !important;
    row-gap: 22px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom--combined .sgm-mobile-ranking-card--new-item {
    min-height: 240px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom--combined .sgm-mobile-ranking-card--new-item .sgm-mobile-ranking-card__new {
    width: 144px !important;
    max-width: 144px !important;
    margin: 0 auto 10px !important;
  }

  .course-guide .sgm-top-course-mobile .sgm-mobile-ranking-bottom--combined .sgm-mobile-ranking-card--new-item .sgm-mobile-ranking-card__text {
    display: block !important;
    width: 144px !important;
    max-width: 144px !important;
    margin: 0 auto !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-guide .sgm-top-course-mobile .sgm-mobile-tabs-guide__pill {
    animation: none !important;
  }
}
