@charset "UTF-8";

/* トップページ用拡張CSS */
/* アコーディオンのトグルを非表示にする */
.toggle {
  display: none;
}

/* 新着情報のタイトルの装飾 */
.Label {
  padding: 1em;
  font-size: 1.2em;
  display: block;
  font-weight: bold;
  color: #222;
  background: #f8f8f8;
  border-left: #ccc solid 5px;
}

/* モバイルの際にパネルの表示順を入れ替える */
@media screen and ( max-width: 767px ) {
  .mg-news-panel {
    order: 2;
  }
  .mg-admission-panel {
    order: 1;
    margin-bottom: 20px;
  }
}

/* モバイルの際にバナーエリアの余白を調整する */
@media screen and ( max-width: 767px ) {
  .mg-banner-area {
    margin-right: 20px;
    margin-left: 20px;
  }
}

/* モバイルの際に記事一覧のアイコンを日付と横並びにする */
@media screen and ( max-width: 767px ) {
  p.date {
    display: inline;
    margin-right: 20px;
  }
}

/* アコーディオンを実装する */
/* https://www.omakase.net/blog/2022/05/css-accordion.html */
@media screen and ( max-width: 767px ) {
/*ベース*/
.accordion .Label::before {		/*タイトル横の矢印*/
  content:"";
  width: 6px;
  height: 6px;
  border-top: 2px solid #6d242e;
  border-right: 2px solid #6d242e;
  -webkit-transform: rotate(45deg);
  position: absolute;
  top: calc( 50% - 3px );
  right: 20px;
  transform: rotate(135deg);
}

.Label,
.content {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: all 0.3s;
}

.content {		/*本文*/
  height: 0;
  margin: 0 0 10px 0 !important;
  - padding:0 20px;
  overflow: hidden;
}

.toggle:checked + .Label + .content {	/*開閉時*/
  height: auto;
  - padding:20px ;
  transition: all .3s;
}

.toggle:checked + .Label::before {
  transform: rotate(-45deg) !important;
}
}

/* バナーの角を丸くしてみるテスト */
.mg-banner-area > .index-panel--list-01 img {
  border-radius: 10px;
}

/* 調整クラス */
.mg-news-panel-content {
  margin-bottom: 10px;
}

/* PCのみ横線のmarginを少しとる*/
@media screen and ( min-width: 768px ) {
  .mod-list--news-01 {
    margin-right: 5px;
    margin-left: 5px;
  }
}

/* mg-detail-area に変更予定（→2025/05/15削除：バックアップは共有サーバ「14●ウェブサイト・SNS管理＞●ウェブサイト管理、パーツ」に保存） */

/* noteの背景色に変更する */
.mod-layout--section-02.var-mg01 {
  background-color: #ddece7;
  border: 0;
}

/* 記事一覧のアイコン（ピックアップ用白抜き） */
.mg-icon--01 {
  display: inline;
  font-size: .8rem;
  margin: 0;
  padding: 5px 10px;
  color: #fff;
  border-radius: 4px;
  background-color: #6d242e;
}

/* 記事一覧のアイコン（再掲用白背景） */
.mg-icon--02 {
  display: inline;
  font-size: .8rem;
  margin: 0;
  padding: 5px 10px;
  color: #6d242e;
  border: 1px solid #6d242e;
  border-radius: 4px;
  background-color: #fff;
}


/* お知らせの上下の余白を調整する */
.mod-list--news-01 > li .wrap {
  text-decoration: none;
  position: relative;
  display: flex;
  padding: 20px 5px;
}

@media only screen and (max-width: 767px) {
  .mod-list--news-01 > li .wrap {
    display: block;
    padding: 20px 40px 20px 5px;
  }
}

/* mg_feed_note() */
/* 明星大学公式noteロゴ表示 */
.mg-note__title {
  font-weight: bold;
  font-size: 1.6em;
  padding-bottom: 20px;
}

.mg-note__title img {
  width: 150px;
  margin-right: 30px;
}

.mg-note__title a {
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  font-weight: bold;
  color: #556;
  text-decoration: none;
}

/* 明星大学公式note -- モバイルの場合はロゴとテキストを小さくする */
@media screen and ( max-width: 767px ) {
  .mg-note__title img {
    width: 100px;
    margin-top: 5px;
    margin-right: 10px;
    margin-left: -5px;
  }
  .mg-note__title a {
    font-size: .7em;
  }
}

/* splideの設定 */
.mg-note-splide a {
  text-decoration: none;
}

.mg-note-splide .splide__slide__container {
height: auto !important;
}

.mg-note-splide .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-note-splide .splide__slide .title {
  padding: 5px 25px 5px 25px;
  line-height: 1.4em;
  text-align: justify;
  letter-spacing: -0.05em;
  font-feature-settings: "palt";
  font-weight: bold;
  color: #556;
}

@media screen and ( max-width: 767px ) {
  .mg-note-splide .splide__slide .title {
    font-size: .9em;
    padding: 5px 10px 25px 10px;
  }
}

/* splide -- PC画面のときの表示 */
.mg-note-splide.splide:not(.is-active) .splide__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}
