/* トップページ */
.top-contents {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media screen and (max-width: 767px) {
  .top-contents {
    gap: 40px;
  }
}

.top-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.top-section-title img {
  width: auto;
  height: 45px;
}

@media screen and (max-width: 767px) {
  .top-section-title img {
    height: 35px;
    max-width: 100%;
    object-fit: contain;
  }
}

.top-section-title_text {
  font-size: 18px;
  font-weight: bold;
}

/* 条件から絞り込む */
.top-search {
  width: 100%;
}

.top-search_form {
  width: 100%;
  border: 10px solid #7da0d4;
  border-top: none;
  border-radius: 10px;
  overflow: hidden;
  background-color: #7da0d4;
}

@media screen and (max-width: 575px) {
  .top-search_form {
    border: 5px solid #7da0d4;
    border-radius: 10px 10px 5px 5px;
  }
}

.top-search_title {
  position: relative;
  width: 100%;
  background-color: #7da0d4;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(5px);
}

@media screen and (max-width: 575px) {
  .top-search_title {
    padding: 10px;
    transform: translateY(0);
  }
}

.top-search_title::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url(../img/arrow_down.png) no-repeat center center;
  background-size: contain;
  transition: 0.3s;
}

@media screen and (max-width: 575px) {
  .top-search_title::after {
    right: 4%;
    width: 15px;
    height: 15px;
  }
}

.top-search_title.is-active::after {
  transform: translateY(-50%) rotate(180deg);
}

.top-search_content {
  display: none;
  width: 100%;
  background-color: #e6ecf6;
  border-radius: 5px;
  padding: 20px;
}

@media screen and (max-width: 575px) {
  .top-search_content {
    padding: 10px;
  }
}

.top-search_check-refine-list {
  display: grid;
  gap: 30px;
}

@media screen and (max-width: 575px) {
  .top-search_check-refine-list {
    gap: 20px;
  }
}

.top-search_check-refine-item-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 15px;
}

@media screen and (max-width: 575px) {
  .top-search_check-refine-item-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.top-search_check-refine-item {
  width: 100%;
}

.top-search_check-refine-label {
  font-size: 16px;
  font-weight: bold;
}

@media screen and (max-width: 575px) {
  .top-search_check-refine-label {
    font-size: 14px;
  }
}

.top-search_check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

@media screen and (max-width: 575px) {
  .top-search_check-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

.top-search_check-group div {
  background-color: #fff;
  border-radius: 3px;
  transition: ease 0.4s;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(208, 208, 208, 1);
}

@media screen and (min-width: 576px) {
  .top-search_check-group div:hover {
    background-color: #ffeb3b;
    box-shadow: none;
    transform: translateY(2px);
    transition: ease 0.4s;
  }
}

.top-search_check-group div input:checked + label,
.top-search_check-group div:has(input:checked) {
  background-color: #ffeb3b;
  box-shadow: none;
  transform: translateY(2px);
  transition: ease 0.4s;
}

.top-search_check-group div input {
  display: none;
}

.top-search_check-group div label {
  display: block;
  padding-top: 12px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 12px;
  font-size: 18px;
  font-weight: bold;
}

@media screen and (max-width: 575px) {
  .top-search_check-group div label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    padding-top: 6px;
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 6px;
  }
}

.top-search_btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 35px;
}

@media screen and (max-width: 575px) {
  .top-search_btn-container {
    margin-top: 30px;
  }
}

.top-search_btn {
  width: 100%;
  max-width: 250px;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  text-align: center;
  background-color: #ff7a73;
  border-radius: 25px;
  transition: ease 0.4s;
}

@media screen and (max-width: 575px) {
  .top-search_btn {
    max-width: 160px;
    padding: 10px;
    font-size: 18px;
  }
}

/* 目的から探す */
.top-purpose {
  width: 100%;
  background-color: #fff5eb;
  border-radius: 10px;
  padding: 60px 20px;
}

@media screen and (max-width: 991px) {
  .top-purpose {
    padding: 20px 0 40px;
    background-color: initial;
    border-radius: 0;
  }
}

.top-purpose_title {
  width: 100%;
}

.top-purpose_content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 650px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991px) {
  .top-purpose_content {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
    max-width: 350px;
  }
}

.top-purpose_content_item {
  width: 100%;
}

.top-purpose_content_item img {
  width: 100%;
}

/* 人気のジャンル */
.top-genre {
  width: 100%;
  background-color: #ffeceb;
  border-radius: 10px;
  padding: 60px 20px;
}

@media screen and (max-width: 991px) {
  .top-genre {
    padding: 20px 0 40px;
    background-color: initial;
    border-radius: 0;
  }
}

.top-genre_title {
  width: 100%;
}

.top-genre_content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 650px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991px) {
  .top-genre_content {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
    max-width: 350px;
  }
}

.top-genre_content_item {
  width: 100%;
}

.top-genre_content_item a {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.top-genre_content_item a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  transition: ease 0.4s;
}

.top-genre_content_item a:hover {
  opacity: 1;
}

.top-genre_content_item a:hover::after {
  opacity: 0;
}

.top-genre_content_item a:hover {
  transform: scale(1.05);
  transition: ease 0.4s;
}

.top-genre_content_item a .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  width: 100%;
  z-index: 2;
}

@media screen and (max-width: 767px) {
  .top-genre_content_item a .title {
    font-size: 18px;
  }
}

/* 人気講座ランキング */
.top-ranking {
  width: 100%;
  padding: 20px 0;
}

@media screen and (max-width: 991px) {
  .top-ranking {
    width: 106.4%;
    margin-left: -3.2%;
    overflow-x: hidden;
    padding: 20px 0 40px;
  }
}

.top-ranking_title {
  width: 100%;
}

.top-ranking_content {
  margin-top: 40px;
}

.top-ranking_content .bg-total {
  background-color: #f6dcab;
}

.top-ranking_content .bg-beginner {
  background-color: #f5c4d2;
}

.top-ranking_content .bg-month {
  background-color: #bce0d5;
}

.top-ranking_tabs {
  width: 100%;
}

.top-ranking_tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.top-ranking_tab {
  width: 100%;
  padding: 10px;
  border-radius: 5px 30px 0 0;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .top-ranking_tab {
    font-size: 16px;
  }
}

.top-ranking_tab-content {
  display: none;
  padding: 40px 25px;
}

@media screen and (max-width: 767px) {
  .top-ranking_tab-content {
    padding-right: 0;
    padding-left: 0;
  }
}

.top-ranking_tab-content.active {
  display: block;
}

.top-ranking_ranking-cards-wrap {
  padding-top: 20px;
}

@media screen and (max-width: 767px) {
  .top-ranking_ranking-cards-wrap {
    padding-right: 25px;
    padding-left: 25px;
  }
}

.top-ranking_ranking-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

@media screen and (max-width: 767px) {
  .top-ranking_ranking-cards {
    gap: 0;
  }
}

/* ranking-card */
.ranking-card {
  position: relative;
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  padding: 17px 20px 30px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .ranking-card {
    width: 260px !important;
    flex-shrink: 0;
  }
}

.ranking-card_rank {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 60px;
  height: 45px;
}

.ranking-card_img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.ranking-card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-card_content {
  display: grid;
  grid-template-rows: 1fr auto auto;
  width: 100%;
  margin-top: 20px;
  flex: 1;
}

.ranking-card_title {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  color: #2c3f4f;
}

/* spec-card */
.spec-card {
  width: 100%;
  margin-top: 10px;
  display: grid;
}

.spec-card_item {
  font-size: 16px;
  font-weight: bold;
  color: #505050;
}

.spec-card_item.price {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spec-card_item.price .price_text {
  font-size: 10px;
  font-weight: bold;
}

.spec-card_item.price .price_text .price_text-first {
  position: relative;
  padding-left: 15px;
  display: block;
  padding-bottom: 5px;
  color: #ff7a73;
}

.spec-card_item.price .price_text .price_text-first::before {
  content: '▶︎';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #ff7a73;
}

.spec-card_item.price .price_text .line-through {
  position: relative;
  padding: 0 5px;
}

.spec-card_item.price .price_text .line-through::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #333;
}

.spec-card_item.price .price_text .num {
  font-size: 14px;
}

.spec-card_item.price .price_text .num-l {
  font-size: 22px;
}

.spec-card_item.price .price_text .tax {
  display: inline-block;
  font-size: 10px;
}

/* ranking-swiper */
@media screen and (min-width: 768px) {
  .ranking-swiper_button-prev,
  .ranking-swiper_button-next {
    display: none;
  }
}

.ranking-swiper_button-prev::after,
.ranking-swiper_button-next::after {
  content: '';
  min-width: 30px;
  min-height: 30px;
  background-color: rgba(255, 122, 115, 0.6);
  background-size: 8px 14px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.ranking-swiper_button-prev::after {
  background-image: url(../img/arrow_left.png);
}

.ranking-swiper_button-next::after {
  background-image: url(../img/arrow_right.png);
}

/* 資格タイプ診断 */
.top-diagnosis {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.top-diagnosis_banner {
  display: block;
  width: 100%;
  padding-bottom: 25px;
  cursor: pointer;
}

.top-diagnosis_banner:hover .top-diagnosis_banner-wrap {
  transform: translateY(5px);
  box-shadow: none;
}

.top-diagnosis_banner-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 800 / 253;
  margin-left: auto;
  margin-right: auto;
  border-radius: 130px;
  box-shadow: 0 6px 0 #d0d0d0;
  background-color: #fff;
  padding-bottom: 25px;
  transition: ease 0.4s;
}

@media screen and (max-width: 991px) {
  .top-diagnosis_banner-wrap {
    max-width: 690px;
    aspect-ratio: 690 / 317;
    border-radius: 160px;
    box-shadow: 0 5px 0 #d0d0d0;
  }
}

.top-diagnosis_banner img {
  display: block;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 1199px) {
  .top-diagnosis_banner img {
    width: 37vw;
  }
}

@media screen and (max-width: 991px) {
  .top-diagnosis_banner img {
    width: 70vw;
    max-width: 483px;
  }
}

.top-diagnosis_banner_btn {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 250 / 50;
  padding: 10px;
  border-radius: 25px;
  background-color: #7096e3;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

@media screen and (max-width: 991px) {
  .top-diagnosis_banner_btn {
    width: 36vw;
    max-width: 300px;
    aspect-ratio: 300 / 90;
    border-radius: 45px;
    font-size: clamp(12px, 4vw, 18px);
  }
}

/* 注目の特集 */
.top_features {
  width: 100%;
  padding: 20px 0;
}

@media screen and (max-width: 991px) {
  .top_features {
    width: 106.4%;
    margin-left: -3.2%;
    padding: 20px 0 40px;
    overflow-x: hidden;
  }
}

.top_features_title {
  width: 100%;
  padding: 0 25px;
}

.top_features_content {
  margin-top: 40px;
}

.top_features_items-wrap {
  width: 100%;
}

@media screen and (max-width: 991px) {
  .top_features_items-wrap {
    padding-right: 25px;
    padding-left: 25px;
  }
}

.top_features_items {
  width: 100%;
}

/* features-item */
.features-item {
  width: 100%;
}

@media (max-width: 767px) {
  .features-item {
    width: 260px !important;
  }
}

.features-item a:hover {
  opacity: 1;
}

.features-item_img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.features-item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: ease 0.4s;
}

.features-item a:hover .features-item_img img {
  transform: scale(1.1);
}

.features-item_content {
  width: 100%;
  margin-top: 10px;
}

.features-item_title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #2c3f4f;
}

.features-item_title.side {
  font-size: 15px;
}

/* features-swiper */
@media screen and (min-width: 768px) {
  .features-swiper .swiper-slide {
    width: calc((100% - 32px) / 3) !important;
    flex-shrink: 0;
  }
}

.features-swiper_button-prev::after,
.features-swiper_button-next::after {
  content: '';
  min-width: 30px;
  min-height: 30px;
  background-color: rgba(255, 122, 115, 0.6);
  background-size: 8px 14px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.features-swiper_button-prev::after {
  background-image: url(../img/arrow_left.png);
}

.features-swiper_button-next::after {
  background-image: url(../img/arrow_right.png);
}

.features-swiper_button-prev.swiper-button-hidden,
.features-swiper_button-next.swiper-button-hidden {
  display: none !important;
}
