/*全体共通===============================================*/
body {
  background: #e8f4ff;
  color: #000;
  font-family: rubik, 'ibm plex sans';
  font-size: 16px;
}

.sp-only {
  display: none;
}

section {
  scroll-margin-top: 70px;
}

.contents-area {
  max-width: 1440px;
  margin: auto;
}

/*メニューホバーアニメーション*/
.header-nav-list-a::after, .footer-nav-a::after {
  content: '';
  width: 0;
  height: 2px;
  background: #fff;
  transition: .3s ease-out;
}

.header-nav-list-a:hover.header-nav-list-a::after, .footer-nav-a:hover.footer-nav-a::after {
  width: 100%;
}
/*------------------*/

/*非アクティブ化*/
.-inactive {
  color: #ffffff99;
  pointer-events: none;
}
/*------------------*/

/*ページタイトル*/
.page-title {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  margin-top: 70px;
  background: #3a80d966;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
}

.page-title::after {
  position: absolute;
  z-index: -1;
  content: '';
  width: 100%;
  height: 100%;
  background-image: url(../img/campus1.jpg);
  background-size: cover;
  background-position: 0 -200px;
  background-repeat: no-repeat;
}
/*------------------*/
/*ヘッダー===============================================*/
header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
}

h1 {
  position: absolute;
  top: 0;
  padding: 15px 12px 15px 8px;
  border-radius: 0 0 13px 0;
  background: #fff;
}

.h-logo-img {
  height: 40px;
}

.nav-data {
  display: grid;
  grid-template-columns: 187px 1fr;
  align-items: center;
  height: 70px;
  background: linear-gradient(131deg, #82c8e8e6, #3a80d9e6);
  font-weight: bold;
}

.header-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  color: #fff;
}

.header-nav-list {
  display: flex;
  gap: 36px;
}

.header-nav-list-li {
  display: flex;
  justify-content: center;
}


.header-nav-list-a {
  display: flex;
  flex-direction: column;
}
/*フッター===============================================*/
/*バナー*/
.banner-container {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 30px;
  background: #fff;
}

.banner {
  width: 210px;
  height: 70px;
}
/*------------------*/

.footer-container {
  position: relative;
  padding: 293px 0 73px;
  background: linear-gradient(-135deg, #0537aa 66%, #81c7e7);
  color: #fff;
}

.footer-container::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/campus2.jpg);
  background-size: cover;
  opacity: .22;
}

/*ページトップボタン*/
.page-top {
  position: absolute;
  z-index: 15;
  top: -43px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(#81c7e7, #3a80d9);
}

.page-top span {
  position: absolute;
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(#81c7e7,#549aed);
}

.page-top::before,
.page-top::after {
  position: relative;
  z-index: 1;
  content: '';
  width: 23px;
  height: 7px;
  border-radius: 50px;
  background: #fff;
}

.page-top::before {
  left: 5px;
  rotate: -40deg;
}

.page-top::after {
  right: 5px;
  rotate: 40deg;
}
/*------------------*/

.footer-contents {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template: 1fr auto/ 1fr 1fr;
  max-width: 1206px;
  margin: auto;
}

.footer-ope {
  grid-row: 2;
  grid-column: 1;
  margin-left: 138px;
}

.footer-ope-dt {
  margin: 24px 0;
  font-size: 21px;
}

.footer-ope-dd {
  font-size: 12px;
}

/*footer-nav 左寄せ用*/
.footer-nav-container {
  display: flex;
}
/*------------------*/
.footer-nav {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 30px 52px;
}

.footer-nav li {
  display: flex;
}

.footer-nav-a {
  display: flex;
  flex-direction: column;
}

.copy-right {
  margin: 139px 49px 0 0;
  font-size: 9px;
  text-align: right;
}
/*========================================================
  スマホ  
========================================================*/
@media (max-width: 768px) {
  /*スマホ_全体共通==========================================*/
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  section {
    scroll-margin-top: 80px;
  }

 .contents-area {
    margin: 0 16px;
  }

  /*ページタイトル*/
  .page-title {
    margin-top: 80px;
    font-size: 28px;
  }

  .page-title::after {
    background-size: 150%;
    background-position: center;
  }
  /*------------------*/

  /*スマホ_ヘッダー=========================================*/
  h1 {
    border-radius: 0 5px 5px 0;
    top: 14px;
    padding: 12px 6px 8px;
  }

  .h-logo-img {
    width: 125px;
  }

  .nav-data {
    height: 80px;
    margin: 0;
    padding-right: 16px;
  }

  .header-nav {
    justify-content: end;
  }

  #PanelOpen {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }


  .open-span {
    width: 40px;
    height: 2px;
    border-radius: 18px;
    background: #fff;
  }

  /*スマホ_メニューパネル*/
  #MenuPanel {
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-image: url(../img/campus2.jpg);
    background-size: cover;
    font-size: 16px;
    font-weight: normal;
    translate: -100vw;
  }

  #MenuPanel::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(-33deg, #81c7e7, #0537aa 83%);
    opacity: .48;
  }

  .menu-panel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 45px 17px 57px;
    color: #fff;
    text-align: center;
    overflow-y: scroll;
  }

  /*メニューパネル_閉じるボタン*/
  .panel-close-container {
    display: flex;
    justify-content: end;
    margin-bottom: 56px;
  }

  #PanelClose {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
  }

  #PanelClose::before,
  #PanelClose::after {
    position: absolute;
    content: '';
    width: 40px;
    height: 2px;
    border-radius: 18px;
    background: #fff;
  }

  #PanelClose::before {
    rotate: 45deg;
  }

  #PanelClose::after {
    rotate: -45deg;
  }
  /*------------------*/

  .header-nav-list {
    display: block;
    flex-grow: 1;
  }


  .header-nav-list-li {
    padding: 15px 0;
    border-bottom: solid 1px #fff;
  }

  .header-nav-list-a::after {
    display: none;
  }

  .menu-panel-logo {
    width: 191px;
    margin: 88px auto 0;
  } 
  /*スマホ_フッター========================================*/
  /*スマホ_バナー*/
  .banner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    gap: 25px;
    padding: 26px 15px;
  }

  .banner {
    width: 159px;
    height: 53px;
  }
  /*------------------*/
  
  .footer-container {
    padding: 50px 0 24px;
    background: linear-gradient(-60deg, #81c7e7, #0537aa);
  }
  
  /*スマホ_ページトップボタン*/
  .page-top {
    top: -35px;
    right: 32px;
    width: 60px;
    height: 60px;
  }

  .page-top span {
    width: 58px;
    height: 58px;
  }

  .page-top::before,
  .page-top::after {
    width: 17px;
    height: 5px;
  }

  .page-top::before {
    left: 3.5px;
  }

  .page-top::after {
    right: 3.5px;
  }
  /*------------------*/

  .footer-contents {
    grid-template: 1fr/ 1fr;
  }

  .f-logo-img {
    width: 191px;
    margin-bottom: 47px;
  }

  .footer-ope {
    grid-row: 3;
    margin: 0;
  }

  .footer-ope-dt {
    margin: 50px 0 13px;
  }

  /*footer-nav 左寄せ解除*/
  .footer-nav-container {
    display: block;
  }
  /*------------------*/
  .footer-nav {
    display: block;
  }

  .footer-nav li {
    padding: 10px 24px 14px;
    border-top: solid 1px #fff;
  }

  .footer-nav:last-child {
    border-bottom: solid 1px #fff;
  }

  .copy-right {
    margin: 58px 0 0 0;
    font-size: 9px;
    text-align: left;
  }
}