.c-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media screen and (max-width: 600px) {
  .c-flex {
    display: block;
  }
}

.c-grid {
  display: grid;
}
.c-grid.-three {
  grid-template-columns: 1fr 1fr 1fr;
  -webkit-column-gap: 22px;
     -moz-column-gap: 22px;
          column-gap: 22px;
  row-gap: 24px;
}
.c-grid.-three.univ-leading {
  grid-template-columns: 1fr 1fr 1fr;
  -webkit-column-gap: 8px;
     -moz-column-gap: 8px;
          column-gap: 8px;
  row-gap: 8px;
}
.c-grid__box.univ-items.hide {
  display: none;
}
.c-grid__box {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
}
.c-grid__box.c-grid__box--row-none {
  grid-row: auto;
}
.c-grid__box.c-grid__box--row04 {
  grid-row: span 4;
}
@media screen and (max-width: 600px) {
  .c-grid.-three {
    grid-template-columns: 1fr;
  }
  .c-grid.-three.univ-leading {
    grid-template-columns: 1fr 1fr;
  }
}
.c-grid.-two {
  grid-template-columns: 1fr 1fr;
  -webkit-column-gap: 10px;
     -moz-column-gap: 10px;
          column-gap: 10px;
  row-gap: 10px;
}
.c-grid.-five {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  -webkit-column-gap: 10px;
     -moz-column-gap: 10px;
          column-gap: 10px;
  row-gap: 10px;
}
@media screen and (max-width: 600px) {
  .c-grid.-two {
    grid-template-columns: 1fr;
  }
  .c-grid.-five {
    grid-template-columns: 1fr 1fr;
  }
}

.p-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  align-items: start;
  padding: 14px 42px 14px 14px;
  border-radius: 4px;
  background-color: #fff;
  background-image: url("/contents/campus/img/arrow_right_green2.svg");
  background-repeat: no-repeat;
  background-position: center right 14px;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}
.c-grid__box.c-grid__box--row-none .p-card {
  grid-row: auto;
}
.c-grid__box.c-grid__box--row04 .p-card {
  grid-row: span 4;
}

.university-leading-link {
  margin-top: 16px;
  text-align: center;
}
.university-leading-link a {
  font-weight: 300;
  font-size: 14px;
  line-height: 160%;
  letter-spacing: 0.7px;
  text-align: center;
  vertical-align: middle;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  color: #3C414C;
}
.univ-leading .p-card {
  padding: 7.2px 42px 4.8px 14px !important;
  font-weight: 600 !important;
  height: 55px !important;
}
.univ-leading .p-card p {
  line-height: 43px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1; /* デフォルト1行で省略 */
  white-space: normal; /* 必須: 省略表示でも改行が許可される */
  max-height: 28px; /* 1行分の高さ */
}
.univ-review-ranking .c-grid__box {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 0;
    border: 1px solid #9FCCC6;
    border-radius: 4px;
}
.univ-review-ranking .p-card{
  padding: 4px;
  background-image: none;
}
.univ-review-ranking .p-card .univ-name {
  height: 47px;
  background-color: #F5F5F5;
  display: flex;              /* フレックスボックス */
  align-items: center;        /* 縦中央 */
  justify-content: center;    /* 横中央 */
}
.univ-review-ranking .p-card .univ-name p {
  color: #068475;
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.7px;
  text-align: center;
  text-decoration: underline;
  text-decoration-style: solid;
  margin: 0;                  /* デフォルトの余白を消すと綺麗 */
}
.univ-review-ranking .p-card span {
  display: inline-flex;       /* inline-block → inline-flex */
  align-items: center;        /* 子要素を縦中央 */
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  color: #424242;
  background-color: #FFF;
  text-decoration: none;
  position: relative;
  padding-left: 0;            /* ← before を使わないので不要 */
  box-sizing: border-box;
  margin: 2px auto 0 auto;
  gap: 4px;                   /* アイコンと文字の間隔 */
  font-family: "Noto Sans JP";
}

.univ-review-ranking .p-card .review-result::before,
.univ-review-ranking .p-card .review-date::before {
  content: "";
  display: inline-block;      /* flexアイテムになる */
  background-size: contain;
  background-repeat: no-repeat;
  width: 15px;
  height: 15px;
}

.univ-review-ranking .p-card .review-result::before {
  background-image: url(/contents/campus/img/star_orange.svg);
}

.univ-review-ranking .p-card .review-date::before {
  background-image: url(/contents/campus/img/calendar.svg);
}

/* 画面幅600px以下では2行まで表示して省略 */
@media screen and (max-width: 600px) {
  .univ-leading .p-card {
    height: 62px !important;
    display: flex;
    align-items: center;
  }
  .univ-leading .p-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    white-space: normal;
    line-height: 24px;
    max-height: 48px; /* 2行 × 24px */
    max-width: 100%;
    font-family: "Hiragino Kaku Gothic Pro";
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.7px;
  }
}
.univ-leading-index {
  background-image: url('/contents/campus/img/univ-top-line.svg');
  margin-bottom: 24px;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  width: 100%;
  padding-top: 40px;
}
.univ-leading-index h1 {
  margin: 16px auto 24px auto;
  color: #068475;
  text-align: center;
  font-family: "Hiragino Kaku Gothic Pro";
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0.7px;
  text-align: center;
  vertical-align: middle;
}
.univ-leading-index .p-card {
  background-color: #E2F3EC;
  border: 1px solid #068475;
  height: 62px;
  color: #068475;
  gap: 8px;
  background-image: url("/contents/campus/img/arrow_bottom_green2.svg");
  /* padding-top: 8px;
  padding-right: 14px;
  padding-bottom: 8px;
  padding-left: 14px; */
  border-radius: 4px;
  /* border-width: 1px; */
  font-weight: 600;
  vertical-align: middle;
}
.p-card--no-comment {
  grid-template-rows: none; /* 口コミがないカセット */
}
@media screen and (max-width: 600px) {
  .univ-leading-index {
    background-image: url('/contents/campus/img/univ-top-line-600.svg');
  }
  .p-card {
    padding-right: 32px;
  }
}
.p-heading-with-content__heading.-icon-review-ranking span {
  width: calc(100% - 7px - 41px);
}
.p-heading-with-content__heading.-icon-review-ranking::before {
  position: relative;
  top: 0px;
  width: 40px;
  height: 40px;
  background-image: url("/contents/campus/img/review-ranking.svg");
}
.p-heading-with-content__heading.-icon-review-updated span {
  width: calc(100% - 7px - 41px);
}
.p-heading-with-content__heading.-icon-review-updated::before {
  position: relative;
  top: -3px;
  width: 40px;
  height: 40px;
  background-image: url("/contents/campus/img/review-updated.svg");
}

.p-heading-with-content__heading.-icon-review-lesson-type span {
  width: calc(100% - 7px - 41px);
}
.p-heading-with-content__heading.-icon-review-lesson-type::before {
  position: relative;
  top: -3px;
  width: 40px;
  height: 40px;
  background-image: url("/contents/campus/img/review-lesson-kind.svg");
}
