/*  START お気に入り共通表示 */
.course-wishlist-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #999;
  background: transparent;
  cursor: pointer;
}

.course-wishlist-button span {
  font-size: 22px;
  color: #111;
  line-height: 1;
}

.course-wishlist-button.is-active span {
  color: #111;
}

/* 操作文言と追加完了通知を表示する。 */
.course-wishlist-button.btn--wishlist[data-show-wishlist-label] {
  width: auto;
  height: auto;
  min-width: 44px;
  padding: 15px;
  border: 1px solid #000;
  border-radius: 80px;
  color: #000;
  background: #fff;
  white-space: nowrap;
}

.course-wishlist-button.btn--wishlist[data-show-wishlist-label] span {
  font-size: 14px;
}

.course-wishlist-toast {
  position: fixed;
  z-index: 10000;
  bottom: 32px;
  left: 50%;
  padding: 12px 20px;
  border-radius: 6px;
  color: #fff;
  background: rgba(17, 17, 17, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.course-wishlist-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.course-wishlist-button:focus-visible {
  outline: 2px solid #b40000;
  outline-offset: 2px;
}

.course-wishlist-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.course-wishlist-cta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-wishlist-cta .course-wishlist-button {
  flex: 0 0 44px;
  order: -1;
}

.course-wishlist-cta .course-wishlist-button[data-show-wishlist-label] {
  flex-basis: auto;
}

/* ﾏｲﾍﾟｰｼﾞのおすすめｶｰﾄﾞ右端に余白を確保する。 */
#recommend-contents .course-wishlist-cta,
.course-wishlist-cta--recommend {
  margin-right: 16px;
}

@media screen and (max-width: 767px) {

  /* 3ﾎﾞﾀﾝを横並びに保つため、お気に入りは記号だけ表示する。 */
  #recommend-contents .course-wishlist-cta .course-wishlist-button[data-show-wishlist-label],
  .course-wishlist-cta--recommend .course-wishlist-button[data-show-wishlist-label] {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  #recommend-contents .course-wishlist-cta .course-wishlist-button[data-show-wishlist-label] span,
  .course-wishlist-cta--recommend .course-wishlist-button[data-show-wishlist-label] span {
    font-size: 0;
  }

  #recommend-contents .course-wishlist-cta .course-wishlist-button[data-show-wishlist-label] span::before,
  .course-wishlist-cta--recommend .course-wishlist-button[data-show-wishlist-label] span::before {
    content: "☆";
    font-size: 22px;
  }

  #recommend-contents .course-wishlist-cta .course-wishlist-button.is-active[data-show-wishlist-label] span::before,
  .course-wishlist-cta--recommend .course-wishlist-button.is-active[data-show-wishlist-label] span::before {
    content: "★";
  }

  #recommend-contents .course-wishlist-cta .card__link,
  .course-wishlist-cta--recommend .card__link {
    flex: 1 1 calc(50% - 28px);
    width: calc(50% - 28px);
  }
}

/* 講座一覧とお気に入り一覧のｶｰﾄﾞ表示を揃える */
.usces-member-seminar-content {
  gap: 16px !important;
}

.usces-member-seminar-content .top-recommend__item {
  width: 100%;
}

.usces-member-seminar-content .top-recommend__item>div:first-child {
  width: 100%;
}

.usces-member-seminar-content .card__thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* ﾏｲﾍﾟｰｼﾞTOPでも既存の横長ｶｰﾄﾞ指定より画像枠を優先する */
.course-history-section .usces-member-seminar-content .card__thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.usces-member-seminar-content img.card__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.usces-member-seminar-content .card__title {
  display: -webkit-box;
  min-height: 3em;
  margin-bottom: 8px !important;
  overflow: hidden;
  font-size: 15px !important;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.usces-member-seminar-content .card__info {
  display: block;
}

.usces-member-seminar-content .card__price {
  white-space: nowrap;
}

.usces-member-seminar-content .card--l {
  gap: 0 !important;
}

.usces-member-seminar-content .course-wishlist-cta {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  gap: 2px;
}

.usces-member-seminar-content .course-wishlist-button {
  flex-basis: 28px;
  width: 28px;
  height: 36px;
}

.usces-member-seminar-content .course-wishlist-button span {
  font-size: 18px;
}

.usces-member-seminar-content .course-wishlist-cta .btn--detail {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin-top: 8px;
  padding: 7px 4px;
  border-width: 1px;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  /* issue#72 4列を維持し、狭い幅ではﾎﾞﾀﾝ内の文言を折り返す。 */
  white-space: normal;
}

@media screen and (min-width: 768px) {
  .usces-member-seminar-content .top-recommend__item {
    width: calc((100% - 48px) / 4);
  }
}

@media screen and (max-width: 767px) {
  .usces-member-seminar-content .card--l {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 0 20px;
    padding: 15px;
    gap: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  .usces-member-seminar-content .card--l>div,
  .usces-member-seminar-content .card__thumbnail {
    width: 100%;
  }

  .usces-member-seminar-content .card__thumbnail {
    aspect-ratio: 16 / 9;
  }

  .usces-member-seminar-content .card__cta {
    width: 100%;
    margin-left: 0;
  }
}

.wishlist-page__main {
  width: 100%;
  min-width: 0;
}

@media screen and (min-width: 1200px) {
  .container__wrap>.sidenav__ranking~.wishlist-page__main {
    width: calc(100% - 330px);
  }
}

.course-history-section {
  width: 100%;
  margin-top: 32px;
  margin-right: 0;
  margin-left: 0;
}

/* issue#72 講座検索画面と同じ一覧幅を確保する。 */
.main--member .course-history-section .top-section__inner,
.main--member .course-history-section .top-section__inner--s {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.course-history-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

/* 見出し下の余白は親要素側で管理する。 */
.main--member .course-history-section .top-section__title {
  margin-bottom: 0;
}

.gnav__link {
  position: relative;
}

.course-notifications-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  color: #fff;
  background: #c40000;
  font-size: 11px;
  line-height: 1;
}

.gnav__link .course-notifications-badge {
  position: absolute;
  top: -7px;
  right: -7px;
}

.course-notification-label--important {
  color: #c40000;
}

/* お知らせをﾗﾍﾞﾙ・日付・ﾀｲﾄﾙの順で表示する。 */
.course-notification-entry {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .course-notification-entry {
    font-size: 16px;
  }
}

.latest-notification {
  width: 100%;
}

/* 直前ｾｸｼｮﾝの下余白と通知親要素の上余白を相殺する。 */
.top-section--latest-notification {
  margin-top: -30px;
  padding-top: 0;
}

@media screen and (min-width: 768px) {
  .top-section--latest-notification {
    margin-top: -50px;
  }
}

.latest-notification h2 {
  margin-bottom: 12px;
}

.latest-notification__list {
  /* 約6件分の高さを保ち、超過分を縦ｽｸﾛｰﾙで表示する。 */  
  max-height: 68px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.latest-notification__list p {
  padding: 16px 20px;  
  background: #fff;
}

.latest-notification__list p:last-child {
  border-bottom: 0;
}

/*  END */

/* 2026-11-27 トップ『最新のお知らせ』: 白いカードに6件を見やすく並べる(Proskill の赤に合わせる。HTML・リンクは変えない) */
.latest-notification .latest-notification__list {
  max-height: 420px;
  background: #fff;
  border: 1px solid #e3d9bd;
  border-radius: 6px;
  scrollbar-width: thin;
  scrollbar-color: #a61510 #f3efe3;
}
.latest-notification .latest-notification__list p {
  position: relative;
  padding: 15px 20px 15px 42px;
  border-bottom: 1px solid #efe9d6;
  line-height: 1.7;
}
.latest-notification .latest-notification__list p:last-child {
  border-bottom: 0;
}
.latest-notification .latest-notification__list p::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a61510;
}
.latest-notification .latest-notification__list a,
.latest-notification .latest-notification__list a u,
.latest-notification .latest-notification__list a span,
.latest-notification .latest-notification__list a b {
  color: #a61510 !important;
  text-decoration: none;
}
.latest-notification .latest-notification__list a u {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.latest-notification .latest-notification__list a:hover,
.latest-notification .latest-notification__list a:hover u {
  text-decoration: underline;
}
.latest-notification .latest-notification__list .course-notification-label--new {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 3px;
  background: #a61510;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 767px) {
  .latest-notification .latest-notification__list p {
    padding: 12px 14px 12px 34px;
  }
  .latest-notification .latest-notification__list p::before {
    top: 20px;
    left: 14px;
  }
}

/* 2026-11-27 トップのセクション間の余白をそろえる(見出しの上=56px・見出しの下=28px。スマホは上=40px・下=20px)。HTML・本文・リンクは変えない */
body .top__main > section[class]:not(.top-category) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body .top__main > section[class] + section[class] {
  margin-top: 56px !important;
}
body .top__main > section.top-section--latest-notification.top-section[class] {
  padding-bottom: 56px !important;
}
body .top__main .top-section__heading {
  margin-bottom: 28px;
}
body .top__main .top-section__title {
  margin-bottom: 0;
}
body .top__main .top-section__title + .top-section__desc {
  margin-top: 12px;
}
body .top__main .latest-notification {
  margin-top: 0;
}
body .top__main .latest-notification h2 {
  margin-bottom: 0;
}
body .top__main .top-section--latest-notification .top-section__heading:not(.latest-notification__heading) {
  margin-bottom: 0;
}
body .top__main .top-recommend__list {
  margin-bottom: -40px;
}
body .top__main .top-attend__list {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  body .top__main > section[class] + section[class] {
    margin-top: 40px !important;
  }
  body .top__main > section.top-section--latest-notification.top-section[class] {
    padding-bottom: 40px !important;
  }
  body .top__main .top-section__heading {
    margin-bottom: 20px;
  }
}
