@charset "UTF-8";

/* 明星大学公式ウェブサイト用拡張CSS */
/* 4.0_学部・大学院ページ */

/* reset */

.tab-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tab-category__inner li {
  margin: 0;
  padding: 0;
}

.tab-category__item a {
  margin: 0;
  text-decoration: none;
  color: #556;
}

/* tab-category */

.tab-category__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.tab-category__item {
  margin-right: 12px;
}

.tab-category__link {
  display: flex;
  justify-content: center;
  padding-right: 16px;
  padding-top: 16px;
  padding-left: 16px;
  margin-bottom: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid #cccccc;
  font-size: 16px;
  color: #222222;
  text-decoration: none;
  transition: 0.25s;
}

.tab-category__link:focus,
.tab-category__link:hover {
  border-bottom-color: currentColor;
  color: #6d242e;
  background-color: #f8f8f8;
  opacity: 0.75;
}

.tab-category__link--active {
  border-bottom-color: currentColor;
  color: #6d242e !important;
  pointer-events: none;
  font-weight: bold;
}


/* SP幅 */

@media screen and (max-width: 767px) {
  .tab-category {
    white-space: nowrap;
    background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)),
      linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%) 0 100%,
      radial-gradient(
        farthest-side at 0% 50%,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)
      ),
      radial-gradient(
          farthest-side at 100% 50%,
          rgba(0, 0, 0, 0.2),
          rgba(0, 0, 0, 0)
        )
        0 100%;
    background-color: #fff;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
    background-position: 0 0, 100%, 0 0, 100%;
    background-size: 40px 100%, 40px 100%, 30px 100%, 30px 100%;
    overflow-x: auto;
    margin-top: 8px;
  }

  .tab-category__inner {
    flex-wrap: nowrap;
  }
}

/* dev2022_migration() */
/* h2のpaddingの調整 */
.mg-migration .mod-hdg--lv2-01 {
  padding: 25px;
}

@media screen and (max-width: 767px) {
.mg-migration .mod-hdg--lv2-01 {
  padding: 20px;
}
}

/* dev2022_policy() */
/* 3ポリシーの表示 */
  /* 基本装飾 */
  .mg-policy__box {
    display: block;
    margin-bottom: 100px;
  }
  .mg-policy__box h5 {
    padding-top: 25px;
    font-weight: bold;
  }
  .mg-policy-etc {
    margin-top: 40px;
  }
  .mg-close {
    display: none;
  }
  .mg-open {
    display: block;
  }

/* アコーディオン装飾 */
  /* アコーディオン全体 */
  .mg-accordion-area {
    list-style: none;
    margin:0 auto;
  }
  .mg-accordion-area .title:hover {
    background-color: #f8f8f8;
  }
  .mg-accordion-area li {
      margin: 10px 0;
  }

  .mg-accordion-area section {
  }

  /*アコーディオンタイトル*/
  .mg-accordion-area .title {
    position: relative; /*+マークの位置基準とするためrelative指定*/
    cursor: pointer;
    padding: 5px 50px 5px 5px;
    transition: all .5s ease;
  }

  /*アイコンの＋と×*/
  .mg-accordion-area .title::before,
  .mg-accordion-area .title::after {
    position: absolute;
    content:'';
    width: 15px;
    height: 2px;
    background-color: #6d242e;
  }
  .mg-accordion-area .title::before {
    top:48%;
    right: 15px;
    transform: rotate(45deg);
  }
  .mg-accordion-area .title::after {
    top:48%;
    right: 15px;
    transform: rotate(-45deg);
  }
  /* closeというクラスがついたら形状変化 */
  .mg-accordion-area .title.close::before {
    transform: rotate(0deg);
  }
  .mg-accordion-area .title.close::after {
    transform: rotate(90deg);
  }

/* SP幅の場合の処理 */
  @media screen and (max-width: 767px) {
  /*アコーディオンタイトル*/
    .mg-accordion-area .title {
      padding: 5px 5px 5px 50px;
    }
    .mg-accordion-area .title::before {
      left: 15px;
    }
    .mg-accordion-area .title::after {
      left: 15px;
    }

  /* SPの場合は表示順変更できるようにする */
    .mg-policy__box {
      display: flex !important;
      flex-direction: column;
    }
    .mg-policy__box #mg-dp { order: 3; }
    .mg-policy__box #mg-cp { order: 2; }
    .mg-policy__box #mg-ap { order: 1; }
  }


/* dev2022_profoessor() */
.mg-professor-list font {
  font-size: 1em;
}
.mg-professor-list .bgT {
  display: none;
}
.mg-professor-list td {
  padding: .6em 0 .6em 1em;
}
.mg-professor-list .search-result-font {
  display: none;
}
.mg-professor-list .search-result-name-font-size {
  font-size: 1em;
  padding: 10px auto !important;
  margin: 10px !important;
}
.mg-professor-list .k02-title2-font1 {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
}
