@charset "UTF-8";

/* 明星大学公式ウェブサイト用共通拡張CSS */
/* 全ページ共通 */

/* p要素のインデントの無効化 */
.mod-text--container-01 p {
  text-indent: 0;
}

/* 0.1_共通ヘッダー */
/* ヘッダーの表示調整 */

/* 固定ヘッダーの段ズレを修正（5文字収まるように） */
#site-header > .header-pc .header-content--02 .layout-wrap .nav-area .icon-btn-area > li .icon-btn {
  font-size: 1.3rem;
  line-height: 1.5;
  text-decoration: none;
  color: #6d242e;
  background-color: #fff;
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 5px;
  transition: background-color .4s, color .3s;
  will-change: background-color, color;
}

/* 対象者別メニューの表示位置変更に伴うスタイル */
#site-header > .header-pc .header-content--02 .layout-wrap .nav-area .target-menu-sub {
  display: flex;
  height: 100%;
  margin-left: 30px;
}

#site-header > .header-pc .header-content--02 .layout-wrap .nav-area .target-menu-sub > li a {
  font-size: 1.4rem;
  font-weight: normal;
  text-decoration: none;
  color: #6d242e;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 100%;
  padding: 10px 10px;
  transition: opacity .3s;
  will-change: opacity;
  line-height: 1.3;
}

/* 画面幅を小さくしたときにできるだけ2行にならないようにするためのメディアクエリ */

@media (max-width: 1280px) {
  #site-header > .header-pc .header-content--02 .layout-wrap .nav-area .global-nav-sub > li a {
    font-size: 1.4rem;
    padding: 10px 5px;
  }
  #site-header > .header-pc .header-content--02 .layout-wrap .nav-area .target-menu-sub > li a {
    font-size: 1.2rem;
    padding: 10px 5px;
  }
}

@media (max-width: 1080px) {
  #site-header > .header-pc .header-content--01 .layout-wrap .nav-area .global-nav > li a {
    font-size: 1.2rem;
    padding: 10px 5px;
  }
  #site-header > .header-pc .header-content--02 .layout-wrap .nav-area .global-nav-sub > li a {
    font-size: 1.2rem;
    padding: 10px 5px;
  }
  #site-header > .header-pc .header-content--02 .layout-wrap .nav-area .target-menu-sub > li a {
    font-size: 1.2rem;
    padding: 10px 5px;
  }
}

/* PCでしか表示しない要素の制御 */
@media screen and (max-width: 767px) {
  .mg-pconly {
    display: none;
  }
}

/* SPでしか表示しない要素の制御 */
@media screen and (min-width: 768px) {
  .mg-sponly {
    display: none;
  }
}

/* mg_gakubu_link(): 学部一覧表示 */
/* 基本設定 */

.mg-gakubu-tab-category ul {
  margin: 20px 0 2px 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.mg-gakubu-tab-category__inner li {
  margin: 0;
  padding: 0;
  margin-right: 5px;
  margin-bottom: 5px;
  border-right: none !important;
  border-left: none !important;
}

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

/* tab-category */
.mg-gakubu-tab-category__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

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

.mg-gakubu-tab-category__link {
  display: flex;
  justify-content: center;
  padding: 10px 15px 10px 15px;
  margin-bottom: 10px;
/*  border-bottom: 3px solid #cccccc; */
  font-size: 15px;
  color: #222222;
  text-decoration: none;
  transition: 0.25s;
}

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

/* PCとSPの間の微調整 */
@media screen and (max-width: 1180px) {
  .mg-gakubu-tab-category__link {
   padding: 10px 10px 10px 10px;
   font-size: 14px;
}

/* SP幅の表示調整 */
@media screen and (max-width: 767px) {
  .mg-gakubu-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;
  }

  .mg-gakubu-tab-category ul {
    margin-top: 5px;
    justify-content: start;
  }

  .mg-gakubu-tab-category li {
    margin-bottom: 0;
  }

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

}

/* 配色設定 */
.mg-gakubu-color.mg {
  border-radius: 5px;
  font-size: .8em;
  color: #fff;
  line-height: 1.1;
  padding: 5px 10px;
  background-color: #6d242e;
}

.mg-gakubu-color.r1 {
  border: 1px solid rgb(110,157,182);
  background-color: rgb(214,226,233);
}
.mg-gakubu-color.h1 {
  border: 1px solid rgb(137,121,167);
  background-color: rgb(221,217,229);
}
.mg-gakubu-color.e1 {
  border: 1px solid rgb(125,175,141);
  background-color: rgb(218,231,222);
}
.mg-gakubu-color.j5 {
  border: 1px solid rgb(209,140,140);
  background-color: rgb(242,223,221);
}
.mg-gakubu-color.p1 {
  border: 1px solid rgb(146,99,88);
  background-color: rgb(218,205,198);
}
.mg-gakubu-color.b1 {
  border: 1px solid rgb(215,141,111);
  background-color: rgb(243,223,212);
}
.mg-gakubu-color.z1 {
  border: 1px solid rgb(122,176,180);
  background-color: rgb(217,232,233);
}
.mg-gakubu-color.f1 {
  border: 1px solid rgb(117,130,180);
  background-color: rgb(216,218,233);
}
.mg-gakubu-color.a1 {
  border: 1px solid rgb(220,184,109);
  background-color: rgb(245,234,212);
}
.mg-gakubu-color.ds {
  border: 1px solid rgb(106,136,132);
  background-color: rgb(211,219,217);
}
