@charset "utf-8";
/* CSS Document */

/*================================
HEADER
================================*/ 
#header_menu{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  background-color: #fff;
  font-weight: 500;
  z-index: 100;
}

#hd_logo{
  display: flex;
  align-items: center;
  height: 100%;
}
@media (min-width: 992px) {
  #header_menu{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #header_menu a{
    color: #444c48;
  }
  @media (hover: hover) {
    #header_menu a:hover{
      color: #198953;
    }
  }
}
@media (min-width: 768px) {
  #hd_logo{
    width: 140px;
    margin-left: 10px;
  }
}
@media (max-width: 991px) {
  #header_menu a{
    color: #fff;
  }
}
@media (max-width: 767px) {
  #hd_logo{
    max-width: 120px;
    margin-left: 8px;
  }
}

/*言語
================================*/
#hd_language{
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  position: absolute;
  z-index: 2;
  display: flex;
  background-color: #EBE9E2;
  border-radius: 20px;
  margin-bottom: 0;
  overflow: hidden;
}
#hd_language::before{
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: rgba(68, 76, 72, .2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}
#hd_language li{
  width: 50%;
}
#hd_language li a{
  color: #444C48;
  opacity: .5;
  text-align: center;
  padding: 4px;
  display: block;
}
#hd_language li.active a{
  opacity: 1;
}
@media (hover: hover) {
  #hd_language li a:hover{
    opacity: 1;
    color: #fff;
  }
  #hd_language li.active a:hover{
    color: #fff !important;
  }
}
@media (min-width: 1200px){
  #hd_language{
    width: 63px;
    font-size: 12px;
  }
}
@media (max-width: 1199px) {
  #hd_language{
    font-size: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #hd_language{
    width: 50px;
    right: 325px;
  } 
}
@media (min-width: 768px){
  #hd_language{
    top: 14px;
  }
}
@media (max-width: 991px) {
  #hd_language{
    width: 63px;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
    right: 122px;
  }
}

/*検索
================================*/
#search_menu{
  position: absolute;
  bottom: 0;
  width: 100%;
}
#search_menu .menu_parent_a{
  color: #198953;
  border: #ebe9e2 1px solid;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: 8px;
  padding: 5px;
  transition: .3s;
  z-index: 3;
}
#search_menu .menu_parent_a .btn_txt{
  position: relative;
}
#search_menu .menu_parent_a .btn_txt::before{
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2px;
}
#search_menu .menu_child{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 30px 32px 70px;
}
@media (hover: hover) {
  #search_menu .menu_parent_a:hover{
    background-color: #ebe9e2;
  }
}
@media (min-width: 992px) {
  #search_menu{
    padding-bottom: 12px;
  }
  #search_menu .menu_child a{
    color: #198953;
  }
  #search_menu .menu_parent_a{
    width: 62px;
    height: 62px;
    position: relative;
    top: 1px;
  }
}
@media (max-width: 991px) {
  #search_menu .menu_parent_a{
    position: absolute;
    top: -67px;
    right: 56px;
    width: 52px;
    height: 52px;
  }
  #search_menu .menu_parent_a::before,
  #search_menu .menu_parent_a::after{
    width: 16px;
  }
}

/*検索*/
#search_menu .search_ttl{
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}
#search_menu .search-form{
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  border: none;
  border-radius: 8px;
  background-color: #fff;
}
#search_menu .search-form input{
  height: 45px;
  padding: 5px 15px;
  border: none;
  box-sizing: border-box;
  font-size: 1em;
  background-color: transparent;
  outline: none;
  flex: 1;
}
#search_menu .search-form input::placeholder {
  color: #b1b1b1;
  font-weight: 600;
}
#search_menu .search-form button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 45px;
  border: none;
  background-color: transparent;
  cursor: pointer;
}
#search_menu .search-form button::after{
  content: '';
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
}

/*お問い合わせ・オープンキャンパス
================================*/
#hd_pickup{
  display: flex;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
#hd_pickup li{
  border-radius: 4px;
  border-width: 1px;
  border-style: solid;
  overflow: hidden;
}
#hd_pickup li a{
  display: block;
  height: 100%;
  text-align: center;
}
#hd_pickup li a,
#hd_pickup li a img{
  transition: all 0.3s;
}
#hd_pickup li.contact a{
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 1200px) {
  #hd_pickup li.open_campus a{
    width: 138px;
  }
  #hd_pickup li.contact{
    width: 115px;
    font-size: 13px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #hd_pickup li.open_campus a{
    width: 130px;
  }
  #hd_pickup li.contact{
    width: 96px;
    font-size: 12px;
  }
}
@media (min-width: 992px) {
  #hd_pickup{
    position: absolute;
    top: 10px;
    right: 76px;
  }
  #hd_pickup li{
    height: 62px;
  }
  #hd_pickup li.contact{
    order: 2;
    color: #fff;
  }
  #hd_pickup li.contact a{
    color: #fff;
    background-color: #198953;
  }
  #hd_pickup li.open_campus{
    order: 1;
    margin-right: 6px;
  }
  #hd_pickup li.open_campus a{
  }
  #hd_pickup li.open_campus img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    aspect-ratio: 138 / 60;
  }
  @media (hover: hover) {
    #hd_pickup li.contact a:hover{
      background-color: #00992B;
    }
    #hd_pickup li.open_campus a:hover img{
      opacity: .8;
    }
  }
}
@media (max-width: 991px) {
  #hd_pickup{
    justify-content: center;
    column-gap: 8px;
    margin-bottom: 24px;
  }
  #hd_pickup li{
    width: 50%;
    max-width: 162px;
  }
  #hd_pickup li.contact{
    font-size: 14px;
  }
  #hd_pickup li a{
    aspect-ratio: 162 / 62;
  }
  #hd_pickup li.contact{
    color: #198953;
    background-color: #fff;
  }
}

/*ハンバーガーメニュー
================================*/
@media (min-width: 992px) {
  #hd_hamburger{
    display: none;
  }
}
@media (max-width: 991px) {
  #hd_hamburger{
    position: absolute;
    top: 16px;
    right: 8px;
    cursor: pointer;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 4px;
  }
  #hd_hamburger .toggler_icon,
  #hd_hamburger .toggler_icon::after,
  #hd_hamburger .toggler_icon::before {
    position: absolute;
    width: 4px;
    height: 4px;
    transition-timing-function: ease;
    transition-duration: .15s;
    transition-property: transform;
    border-radius: 2px;
    background-color: #fff;
  }
  #hd_hamburger .toggler_icon::after,
  #hd_hamburger .toggler_icon::before {
    display: block;
    content: "";
}
  #hd_hamburger .toggler_icon{
    top: 50%;
    left: 50%;
    display: block;
    margin-top: -2px;
    margin-left: -2px;
  }
  #hd_hamburger .toggler_icon::after{
    left: 10px;
  }
  #hd_hamburger .toggler_icon::before{
    right: 10px;
  }
  #hd_hamburger.active .toggler_icon{
    transform: rotate(-180deg);
    left: 16px;
    width: 24px;
    height: 2px;
  }
  #hd_hamburger.active .toggler_icon::after,
  #hd_hamburger.active .toggler_icon::before{
    display: none;
  }
  #hd_nav{
    display: none;
    position: fixed;
    top: -120%;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    color: #fff;
    padding: 24px 20px 120px;
    transition: all 0.8s;
    z-index: 5;
  }
  #hd_nav.panel-active{
    display: block;
    top: 84px;
  }
}

/*ドロップダウンメニューとメガメニューの共通
================================*/
.hd_link .menu_child{
  display: none;
}
.hd_link a{
  position: relative;
  display: block;
}
.hd_link .menu_parent_a::before,
.hd_link .menu_parent_a::after{
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  height: 2px;
  transition: all .3s;
}
.hd_link .menu_parent_a::after{
  transform: rotate(-90deg);
}
.hd_link .menu_parent_a.active::after{
  transform: rotate(0deg);
}
@media (min-width: 992px) {
  .hd_link{
    position: absolute;
    right: 0;
    display: flex;
    justify-content: flex-end;
    color: #444C48;
    width: 100%;
  }
  .hd_link .menu_parent_a.active{
    color: #198953;
  }
  @media (hover: hover) {
    .hd_link a:hover{
      transition: all .1s;
    }
  }
  .hd_link .menu_parent_a::before,
  .hd_link .menu_parent_a::after{
    width: 10px;
    right: 0;
  }  
}
@media (max-width: 991px) {
  .hd_link .menu_parent_a::before,
  .hd_link .menu_parent_a::after{
    background-color: #fff;
    right: 8px;
  }
}

/*ドロップダウンメニュー
================================*/
#nomal_menu > ul{
  display: flex;
}
#nomal_menu ul li a{
  position: relative;
}
@media (min-width: 1200px) {
  #nomal_menu{
    font-size: 12px;
  }
  #nomal_menu li:not(.icon_btn_link) a{
    padding-left: 8px;
  }
  #nomal_menu > li a:not(.request):not(.access){
    padding-right: 8px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #nomal_menu{
    font-size: 11px;
  }
  #nomal_menu li:not(.icon_btn_link) a{
    padding-left: 5px;
  }
  #nomal_menu > li a:not(.request):not(.access){
    padding-right: 5px;
  }

}
@media (min-width: 992px) {
  #nomal_menu{
    top: 0;
    padding-top: 12px;
    z-index: 1;
  }
  #nomal_menu > li a{
    padding-top: 5px;
    padding-bottom: 5px;
  }
  #nomal_menu > li a.request,
  #nomal_menu > li a.access{
    padding-right: 16px;
  }
}
@media (max-width: 991px) {
  #nomal_menu > li > a{
    font-size: 14px;
    padding: 10px 5px;
  }
}

/*取材依頼・資料請求・アクセス*/
#nomal_menu li.icon_btn_link ul{
  display: flex;
}
@media (min-width: 992px) {
  #nomal_menu li.icon_btn_link ul li a::before{
    content: '';
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 16px;
    height: 16px;
    background-size: contain;
  }
  #nomal_menu li.icon_btn_link ul li a.request::before{
    background-image: url("../img/icon_request.png");
  }
}
@media (max-width: 991px) {
  #nomal_menu li.icon_btn_link{
    margin-top: 24px;
    padding-top: 24px;
    border-top: rgba(255, 255, 255, .2) 1px solid;
  }
  #nomal_menu li.icon_btn_link ul{
    flex-wrap: wrap;
    margin-left: -4px;
    margin-right: -4px;
  }
  #nomal_menu li.icon_btn_link ul li{
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: 8px;
  }
  #nomal_menu li.icon_btn_link ul li:last-child{
    flex-grow: 1;
  }
  #nomal_menu li.icon_btn_link ul li a{
    font-size: 14px;
    border-radius: 8px;
    padding: 22px;
    text-align: center;
  }
  #nomal_menu li.icon_btn_link ul li a span{
    position: relative;
    padding-right: 20px;
  }
  #nomal_menu li.icon_btn_link ul li a span::before{
    content: '';
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 16px;
    height: 16px;
    background-size: contain;
  }
  #nomal_menu li.icon_btn_link ul li a.request span::before{
    background-image: url("../img/icon_request_sp.png");
  }
  #nomal_menu li.icon_btn_link ul li a.access span::before{
    background-image: url("../img/icon_access_sp.png");
  }
}
@media (max-width: 991px) {
  #nomal_menu li.icon_btn_link ul li{
    width: 50%;
  }
}


/*メガメニュー
================================*/
@media (min-width: 1200px) {
  #mega_menu > li{
    margin-left: 8px;
  }
  #mega_menu .menu_parent_a{
    font-size: 14px;
    padding-right: 16px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #mega_menu .menu_parent_a{
    font-size: 12px;
    padding-right: 13px;
  }
}
@media (min-width: 992px) {
  #mega_menu{
    bottom: 0;
    padding-bottom: 12px;
    z-index: 1;
  }
  #mega_menu .menu_child{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 50px 32px 70px;
  }
  #mega_menu .menu_child a{
    color: #fff;
  }
  #mega_menu .menu_parent_a{
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 8px;
  }
}
@media (max-width: 991px) {
  #mega_menu{
    margin-bottom: 24px;
  }
  #mega_menu .menu_child{
    padding: 10px 0;
  }
  #mega_menu .menu_parent_a{
    font-size: 18px;
    padding: 15px 5px;
    border-bottom: rgba(255, 255, 255, .2) 1px solid;
  }
  #mega_menu .menu_parent_a::before,
  #mega_menu .menu_parent_a::after{
    width: 16px;
  }
  #mega_menu .menu_close{
    display: none;
  }
}

/*メニュー*/
.menu_column{
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.menu_column li .menu_btn{
  position: relative;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  height: 100%;
  transition: .3s;
}
.menu_column .menu_btn::before,
.menu_column .menu_btn::after{
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.menu_column .menu_btn::before{
  width: 16px;
  height: 16px;
  border: rgba(255, 255, 255, .3) 1px solid;
  border-radius: 50%;
}
.menu_column .menu_btn::after{
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;
}
.menu_close{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 28px;
  color: #fff;
  cursor: pointer;
}
.menu_close::before{
  content: "×";
  text-align: center;
  display: block;
}
@media (min-width: 992px) {
  .menu_inner{
    max-width: 1216px;
    margin: 0 auto;
  }
  .menu_ttl{
    font-size: 20px;
    border-bottom: rgba(255, 255, 255, .2) 1px solid;
    padding-bottom: 25px;
    margin-bottom: 25px;
    letter-spacing: .08em;
  }
  .menu_ttl .menu_link{
    position: relative;
    display: inline-block;
  }
  .menu_ttl .menu_link::before,
  .menu_ttl .menu_link::after{
    content: '';
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .menu_ttl .menu_link::before{
    width: 32px;
    height: 32px;
    border: rgba(255, 255, 255, .3) 1px solid;
    border-radius: 50%;
    right: -50px;
  }
  .menu_ttl .menu_link::after{
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    right: -36px;
  }
  .menu_column{
    flex-direction: column;
    margin-left: -16px;
    margin-right: -16px;
    grid-gap: 8px 0;
  }
  .menu_column.column2 > li{
    width: 50%;
  }
  .menu_column.column3 > li{
    width: 33.333333%;
  }
  .menu_column.column4 > li{
    width: 25%;
  }
  .menu_column > li{
    padding-left: 16px;
    padding-right: 16px;
  }
  .menu_column > li.sp_link{
    display: none;
  }
  .menu_column .menu_btn::before{
    right: 12px;
  }
  .menu_column .menu_btn::after{
    right: 18px;
  }
}

@media (min-width: 768px) {
  .menu_column li .menu_btn .sp_block{
    display: none;
  }
}
@media (max-width: 991px) {
  .menu_ttl{
    display: none;
  }
  .menu_column{
    margin-left: -4px;
    margin-right: -4px;
  }
  .menu_column > li{
    width: 50%;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: 8px;
  }
  .menu_column > li:last-child{
    flex-grow: 1;
  }
  .menu_column > li .menu_btn{
    font-size: 14px;
    padding-right: 30px;
  }
  .menu_column .menu_btn::before{
    right: 8px;
  }
  .menu_column .menu_btn::after{
    right: 14px;
  }
}
@media (max-width: 768px) {
  .menu_column > li .menu_btn .sp_block{
    display: block;
  }
}

/*カラム内のdl*/
.menu_dl dl{
  background-color: #11814B;
  border-radius: 8px;
  overflow: hidden;
}
.menu_dl dl dt{
  position: relative;
}
.menu_dl dl dt:not([id])::before{
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 24px);
  margin-left: 12px;
  margin-right: 12px; 
  border-bottom: rgba(255, 255, 255, .2) 1px solid;
}
.menu_dl dl dt#fo_welfare a{
  background-color: #509C00;
}
.menu_dl dl dt#fo_human a{
  background-color: #1CA6D0;
}
.menu_dl dl dt#fo_child a{
  background-color: #EB6143;
}
.menu_dl dl a{
  position: relative;
  display: block;
}
.menu_dl dl dt >a{
  padding: 12px;
}
.menu_dl dl dt a::before,
.menu_dl dl dt a::after,
.menu_dl dl dd > a::before,
.menu_dl dl dd > a::after{
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.menu_dl dl dt a::before,
.menu_dl dl dd > a::before{
  width: 16px;
  height: 16px;
  border: rgba(255, 255, 255, .3) 1px solid;
  border-radius: 50%;
  right: 12px;
}
.menu_dl dl dt a::after,
.menu_dl dl dd > a::after{
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;
  right: 18px;
}

.menu_dl dl dd > a{
  padding: 8px 12px;
}
.menu_dl dl dt + dd{
  padding-top: 0;
}
.menu_dl dl dd:not(:last-child) ul{
  border-bottom: rgba(255, 255, 255, .2) 1px solid;
}
.menu_dl dl dd ul{
  padding: 12px;
}
.menu_dl dl dd a + ul{
  padding-top: 0;
}
.menu_dl dl dd ul li a{
  padding: 2px 2px 2px 20px;
  display: inline-block;
}
.menu_dl dl dd ul li a::before{
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 4px;
  width: 8px;
  height: 1px;
  background-color: rgba(255, 255, 255, .3);
}
@media (hover: hover) {
  .menu_dl dl dt:not([id]) a:hover{
    background-color: #00992b;
  }
  .menu_dl dl dd  a:hover{
    color: rgba(255, 255, 255, .8) !important;
  }
}
/* 1つの <li> に dl を2つ入れた場合の間隔（#nav02 の 人間科学部＋子ども教育学部）。
   #nav02 は 1751行の column-count:3 で段組みしており、li は break-inside:avoid で割れない。
   2学部を同じ段に収めるため1つの li にまとめている。gapは li の margin-bottom と同値。 */
.menu_dl dl + dl{
  margin-top: 8px;
}

@media (min-width: 992px) {
  .menu_dl dl:last-child{
    margin-bottom: 24px;
  }
  .menu_dl dl dd ul{
    font-size: 14px;
  }
}
@media (max-width: 991px) {
  .menu_dl{
    width: 100% !important;
  }
  .menu_dl dl dt,
  .menu_dl dl dd > a{
    font-size: 14px;
  }
  .menu_dl dl dd ul{
    font-size: 12px;
  }
}

/*SP並べ替え
================================*/
@media (max-width: 991px) {
  #sp_nav_sort{
    display: flex;
    flex-wrap: wrap;
  }
  #hd_pickup{
    width: 100%;
    order: 1;
  }
  #mega_menu{
    width: 100%;
    order: 2;
  }
  #nomal_menu{
    width: 100%;
    order: 3;
  }
}

/*================================
大学と大学院のページごとの適用（ヘッダー）
================================*/
/*大学
================================*/
body:not(#master) #header_menu{
  border-bottom: #198953 1px solid;
}
body:not(#master) #hd_pickup li{
  border-color: #198953;
}
body:not(#master) #hd_language li.active a{
  color: #198953;
}
body:not(#master) #search_menu .menu_parent_a{
  color: #198953;
}
body:not(#master) #search_menu .menu_parent_a .btn_txt::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z' fill='%23198953'%3E%3C/path%3E%3C/svg%3E");
}
body:not(#master) .menu_column li .menu_btn{
  background-color: #11814B;
}
body:not(#master) .menu_close{
  background-color: #11814B;
}
body:not(#master) #search_menu .menu_child{
  background-color: #198953;
}
@media (hover: hover) {
  body:not(#master) #hd_language li a:hover{
    background-color: #198953;
  }
}
@media (min-width: 1200px) {
  body:not(#master) #hd_language{
    right: 360px;
  }
  body:not(#master) #nomal_menu{
    padding-right: 435px;
  }
  body:not(#master) #mega_menu {
    padding-right: 365px;
  }
}
@media (hover: hover) {
   body:not(#master) .menu_column li .menu_btn:hover{
    color: #fff;
    background-color: #00992b;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  body:not(#master) #hd_language{
    right: 325px;
  }
  body:not(#master) #nomal_menu{
    padding-right: 385px;
  }
  body:not(#master) #mega_menu{
    padding-right: 320px;
  }
}
@media (min-width: 992px){
  body:not(#master) #hd_pickup li.contact a{
    background-color: #198953;
  }
  body:not(#master) .hd_link .menu_parent_a::before,
  body:not(#master) .hd_link .menu_parent_a::after{
    background-color: #198953;
  }
  body:not(#master) #nomal_menu li.icon_btn_link ul li a.access::before{
    background-image: url("../img/icon_access.png");
  }
  body:not(#master) #mega_menu .menu_child {
    background-color: #198953;
  }
  @media (hover: hover) {
    body:not(#master) .hd_link a:hover{
      color: #198953;
    }
  }
}
@media (max-width: 991px) {
  body:not(#master) #hd_hamburger{
    background-color: #198953;
  }
  body:not(#master) #hd_nav{
    background-color: #198953;
  }
  body:not(#master) #hd_pickup li a{
    color: #198953;
  }
  body:not(#master) #nomal_menu li.icon_btn_link ul li a{
    background-color: #11814B;
  }
}

/*メニューごとの指定*/
@media (min-width: 992px) {
  /*大学紹介*/
  body:not(#master) #nav01 .menu_column{
    height: 288px;
  }
  body:not(#master) #nav01 .menu_column > li:nth-child(2),
  body:not(#master) #nav01 .menu_column > li:nth-child(3){
    height: 132px;
  }
  
  /*学部・大学院*/
  body:not(#master) #nav02 .menu_column{
    height: 356px;
  }

  /*入試情報*/
  body:not(#master) #nav03 .menu_column{
    height: 368px;
  }
  .open_campus_link{
    aspect-ratio: 1 / 1;
    height: 348px;
  }
  .open_campus_link .menu_btn{
    padding: 0 !important;
    background-color: #fff !important;
  }
  .open_campus_link .menu_btn::before,
  .open_campus_link .menu_btn::after,
  .open_campus_link .sp_text{
    display: none;
  }
  .open_campus_link .menu_btn img{
    transition: .3s;
  }
  @media (hover: hover) {
    .open_campus_link .menu_btn:hover img{
      opacity: .8;
    }
  }
  
  /*就職・資格*/
  body:not(#master) #nav04 .menu_column{
    height: 168px;
  }
  /*地域交流*/
  body:not(#master) #nav05 .menu_column{
    height: 168px;
  }
  /*キャンパスライフ*/
  body:not(#master) #nav06 .menu_column{
    height: 124px;
  }
}

@media (max-width: 991px) {
  /*入試情報*/
  .open_campus_link .pc_bnr{
    display: none !important;
  }
}


/*大学院
================================*/
body#master #header_menu{
  border-bottom: #8b203c 1px solid;
}
body#master #hd_pickup li{
  border-color: #8b203c;
}
body#master #hd_language li.active a{
  color: #8b203c;
}
body#master #search_menu .menu_parent_a{
  color: #8b203c;
}
body#master #search_menu .menu_parent_a .btn_txt::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z' fill='%238b203c'%3E%3C/path%3E%3C/svg%3E");
}
body#master .menu_column li .menu_btn{
  background-color: #721b32;
}
body#master .menu_close{
  background-color: #721b32;
}
body#master #search_menu .menu_child{
  background-color: #8b203c;
}
@media (hover: hover) {
  body#master #hd_language li a:hover{
    background-color: #721b32;
  }
}
@media (min-width: 1200px) {
  body#master #hd_language{
    right: 215px;
  }
  body#master #nomal_menu{
    padding-right: 290px;
  }
  body#master #mega_menu {
    padding-right: 220px;
  }
}
body#master .menu_column li#human_child .menu_btn{
  background-color: #bd341e;
}
body#master .menu_column li#human_psychology .menu_btn{
  background-color: #245761;
}
@media (hover: hover) {
   body#master .menu_column li .menu_btn:hover{
    color: #fff;
    background-color: #ad022e;
  }
  body#master .menu_column li#human_child .menu_btn:hover{
    background-color: rgba(36, 87, 97, .8);
  }
  body#master .menu_column li#human_psychology .menu_btn:hover{
    background-color: rgba(189, 52, 30, .8);
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  body#master #hd_language{
    right: 190px;
  }
  body#master #nomal_menu{
    padding-right: 250px;
  }
  body#master #mega_menu{
    padding-right: 195px;
  }
}
@media (min-width: 992px){
  body#master #hd_pickup li.contact a{
    background-color: #8b203c;
  }
  body#master .hd_link .menu_parent_a::before,
  body#master .hd_link .menu_parent_a::after{
    background-color: #8b203c;
  }
  body#master #nomal_menu li.icon_btn_link ul li a.access::before{
    background-image: url("../img/icon_access_master.png");
  }
  body#master #mega_menu .menu_child {
    background-color: #8b203c;
  }
  @media (hover: hover) {
    body#master .hd_link a:hover{
      color: #8b203c;
    }
  }
}
@media (max-width: 991px) {
  body#master #hd_hamburger{
    background-color: #8b203c;
  }
  body#master #hd_nav{
    background-color: #8b203c;
  }
  body#master #hd_pickup li a{
    color: #8b203c;
  }
  body#master #nomal_menu li.icon_btn_link{
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  body#master #nomal_menu li.icon_btn_link ul li a{
    background-color: #721b32;
  }
}

/*メニューごとの指定*/
@media (min-width: 992px) {
  /*大学院について*/
  body#master #nav01 .menu_column{
    height: 104px;
  }
  /*人間学研究科*/
  body#master #nav02 .menu_column{
    height: 49px;
  }
  /*入試・入学情報*/
  body#master #nav03 .menu_column{
    height: 160px;
  }
  /*社会連携・公開プログラム*/
  body#master #nav04 .menu_column{
    height: 104px;
  }
}
@media (max-width: 991px) {
  /*人間学研究科*/
  /* 1番目は SP用「人間学研究科 TOP」で全幅にしていたが、TOP は作らないので項目ごと削除した
     （2026-10-02）。残る2専攻は既定の 50% ずつで横並びになる。 */
  /*社会連携・公開プログラム*/
  body#master #nav04 .menu_column li{
    width: 100%;
  }
}


/*================================
FOOTER
================================*/
#footer{
  position: relative;
  z-index: 1;
}
#footer a{
  color: #fff;
}
#ft_wrap{
  display: flex;
  max-width: 1316px;
  margin: 0 auto;
  padding: 100px 24px 50px;
}
#copyright{
  color: #fff;
  font-size: 12px;
  display: flex; 
  align-items: center;
  justify-content: center;
  height: 76px;
}
@media (min-width: 992px) {
  #ft_site{
    width: 25%;
    min-width: 250px;
    border-right: rgba(255, 255, 255, .2) 1px solid;
    padding-right: 32px;
    margin-right: 32px;
  }
}
@media (max-width: 991px) {
  #ft_wrap{
    position: relative;
    flex-wrap: wrap;
  }
  #ft_site{
    width: 100%;
    order: 2;
  }
}

/*ロゴ
================================*/
#ft_site #ft_logo{
  margin-bottom: 50px;
}
#ft_site #ft_logo img{
  max-width: 216px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 991px) {
  #ft_site #ft_logo{
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/*ボタン
================================*/
.btn_link{
  margin-left: -4px;
  margin-right: -4px;
}
.btn_link li{
  padding-left: 4px;
  padding-right: 4px;
}
.btn_link li a{
  position: relative;
  color: #fff;
  display: block;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
  transition: .3s;
}
.btn_link li a::before,
.btn_link li a::after{
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.btn_link li a::before{
  width: 32px;
  height: 32px;
  border: rgba(255, 255, 255, .3) 1px solid;
  border-radius: 50%;
  right: 16px;
}
.btn_link li a::after{
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;
  right: 30px;
}
@media (min-width: 992px) and (max-width: 1199px) {
  .btn_link li a{
    font-size: 14px;
  }
}
@media (max-width: 991px) {
  .btn_link{
    display: flex;
    flex-wrap: wrap;
  }
  .btn_link li{
    flex-grow: 1;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .btn_link li{
    width: 50%;
  }
}
@media (max-width: 767px) {
  .btn_link li{
    width: 100%;
  }
}

/*SNS
================================*/
.sns_link{
  display: flex;
  justify-content: center;
  column-gap: 20px;
  margin-top: 40px;
}
.sns_link li{
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/*スマホ時のアコーディオンメニュー
================================*/
#ft_link{
  color: #fff;
}
#ft_link .ac_header{
  border-bottom: rgba(255, 255, 255, .2) 1px solid;
  margin-bottom: 12px;
}
#ft_link .ac_header a,
#ft_link .ac_header .nolink{
  position: relative;
  display: block;
  padding: 16px 0;
}
#ft_link .ac_header a::before,
#ft_link .ac_header a::after,
#ft_link .ac_header .nolink::before,
#ft_link .ac_header .nolink::after{
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
#ft_link .ac_header a::before,
#ft_link .ac_header .nolink::before{
  width: 32px;
  height: 32px;
  border: rgba(255, 255, 255, .3) 1px solid;
  border-radius: 50%;
  right: 0;
}
#ft_link .ac_header a::after,
#ft_link .ac_header .nolink::after{
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;
  right: 14px;
}
#ft_link .ac_content{
  margin-bottom: 24px;
}
#ft_link .ac_content li{
  margin-top: 4px;
}
#ft_link .ac_content li a{
  position: relative;
  display: inline-block;
}
#ft_link .ac_content li a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%) rotate(45deg);
  border-color: rgba(255, 255, 255, .3);
  border-width: 1px;
  border-style: solid;
  border-left: 0;
  border-bottom: 0;
}
#ft_link .ac_content li ul li a{
  position: relative;
  padding-left: 20px;
}
#ft_link .ac_content li ul li a::before{
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 4px;
  width: 8px;
  height: 1px;
  background-color: rgba(255, 255, 255, .3);
}
#ft_link .ac_content li ul li a::after{
  display: none;
}

@media (hover: hover) {
  #ft_link .ac_content li a:hover{
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .3);
  }
  #ft_link .ac_content li a:hover::after{
    border-color: rgba(255, 255, 255, 1);
  }
}
@media (min-width: 1200px) {
  #ft_link .ac_header a,
  #ft_link .ac_header .nolink{
    font-size: 20px;
  }
  #ft_link .ac_content li a{
    font-size: 14px;
  }
  #ft_link .ac_content li ul li a{
    font-size: 12px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #ft_link .ac_header a,
  #ft_link .ac_header .nolink{
    font-size: 18px;
  }
  #ft_link .ac_content li a{
    font-size: 13px;
  }
  #ft_link .ac_content li ul li a{
    font-size: 11px;
  }
}
@media (min-width: 992px) {
  #ft_link{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex: 1;
    margin-left: -16px;
    margin-right: -16px;
  }
  #ft_link .link_category{
    padding-left: 16px;
    padding-right: 16px;
  }
  #ft_link .ac_content{
    display: block !important;
  }
  #ft_link .ac_content li.sp_link,
  #ft_link .ac_header .nolink::before,
  #ft_link .ac_header .nolink::after{
    display: none;
  }
}
@media (max-width: 991px) {
  #ft_link{
    width: 100%;
    order: 1;
    margin-top: 50px;
  }
  #ft_link .ac_header{
    cursor: pointer;
  }
  #ft_link .ac_header a,
  #ft_link .ac_header .nolink{
    font-size: 18px;
  }
  #ft_link .ac_header a{
    pointer-events: none;
  }
  #ft_link .ac_content{
    display: none;
  }
  #ft_link .ac_content li a{
    font-size: 14px;
  }
  #ft_link .ac_content li ul li a{
    font-size: 12px;
  }
}

/*================================
大学と大学院のページごとの適用（フッター）
================================*/
/*大学
================================*/
body:not(#master) #footer{
  background-color: #198953;
}
body:not(#master) #copyright{
  background-color: #11814B;
}
body:not(#master) .btn_link li a{
  background-color: #11814B;
}
@media (hover: hover) {
 body:not(#master) .btn_link li a:hover{
    background-color: #00992B;
  }
}
@media (min-width: 992px) {
  body:not(#master) #ft_link{
    height: 860px;
  }
  body:not(#master) #ft_link .link_category{
    width: 33.333333%;
  }
  body:not(#master) #ft_link #category01{
    order: 1;
  }
  body:not(#master) #ft_link #category04{
    order: 2;
  }
  body:not(#master) #ft_link #category05{
    order: 3;
  }
  body:not(#master) #ft_link #category02{
    order: 4;
  }
  body:not(#master) #ft_link #category03{
    order: 5;
  }
  body:not(#master) #ft_link #category06{
    order: 6;
  }
}

/*大学院
================================*/
body#master #footer{
  background-color: #8b203c;
}
body#master #copyright{
  background-color: #721b32;
}
body#master .btn_link li a{
  background-color: #721b32;
}
@media (hover: hover) {
  body#master .btn_link li a:hover{
    background-color: #ad022e;
  }
}
@media (min-width: 1300px) {
  body#master #ft_link{
    height: 465px;
  }
  body#master #ft_link .link_category{
    width: 33.333333%;
  }
}
@media (min-width: 992px) and (max-width: 1299px) {
  body#master #ft_link{
    height: 496px;
  }
  body#master #ft_link .link_category{
    width: 50%;
  }
}
@media (min-width: 992px) {
  body#master #ft_link #category01{
    order: 1;
  }
  body#master #ft_link #category04{
    order: 2;
  }
  body#master #ft_link #category02{
    order: 3;
  }
  body#master #ft_link #category03{
    order: 4;
  }
}


/*================================================================
  テーマ独自の上書き（静的サイトの css/header_footer.css には無い）
  ----------------------------------------------------------------
  静的CSSはメガメニュー各カテゴリとフッターに「固定の高さ」を持たせているが、
  WordPress化で項目が増減すると崩れるため、高さを内容に追従させる。
  ★静的CSSを更新して差し替えるときは、このブロックを必ず末尾に付け直すこと。

  ⚠ 2026-09-02：静的CSSが大学／大学院で出し分ける構造（body:not(#master) /
    body#master）に変わったため、このブロックの各セレクタにも
    `body:not(#master)` を付けた（付けないと詳細度で静的側に負けて効かない）。
    大学院（body#master）側はメニュー4カテゴリ・フッター4カテゴリの静的HTMLで
    項目が増減しないため、デザイナー指定の固定高さをそのまま使う＝ここでは触らない。
================================================================*/
@media (min-width: 992px) {

  /*----------------------------------------------------------
    メガメニュー：固定高さ → 内容に追従（大学のみ）
  ----------------------------------------------------------*/

  /* 大学紹介：1列目（特別ボタン2つ）は固定、2〜3列目をcolumn-countで自動段組み */
  body:not(#master) #nav01 .menu_column{
    display: block;
    height: auto;                          /* 静的CSSの height:288px を撤回 */
    /* 1列目は絶対配置なので高さに寄与しない。2〜3列目が短いと1列目がはみ出して
       下が切れるため、1列目の実寸（132px×2＋行間8px）を下限として確保する。 */
    min-height: 272px;
    column-count: 2;
    column-gap: 0;
    padding-left: calc(33.333% + 16px);    /* 1列目固定分の幅＋列間 */
    position: relative;
  }
  body:not(#master) #nav01 .menu_column > li{
    width: auto;
    margin-bottom: 8px;
    break-inside: avoid;
  }
  /* 1列目：特別ボタン2つを絶対配置で固定（高さはデザイナー指定の132pxを踏襲） */
  body:not(#master) #nav01 .menu_column > li:nth-child(2),
  body:not(#master) #nav01 .menu_column > li:nth-child(3){
    position: absolute;
    left: 0;
    width: 33.333%;
    height: 132px;
    margin-bottom: 0;
  }
  body:not(#master) #nav01 .menu_column > li:nth-child(2){ top: 0; }
  body:not(#master) #nav01 .menu_column > li:nth-child(3){ top: 140px; }   /* 132px + 行間8px */

  /* 学部・大学院：3列ラッパ(.menu_col)が廃止されフラット構造に戻ったため、
     nav04/05/06と同じくcolumn-countで自動段組みにする（dlの塊は割らない） */
  body:not(#master) #nav02 .menu_column{
    display: block;
    height: auto;                          /* 静的CSSの height:356px を撤回 */
    column-count: 3;
    column-gap: 0;
  }
  body:not(#master) #nav02 .menu_column > li{
    width: auto;
    margin-bottom: 8px;
    break-inside: avoid;
  }
  /* 大学院リンクは必ず3列目の先頭に置く（Figma指定）。
     column-countの自動バランスだと2列目の余白に吸い込まれるため、ここで強制改段する。 */
  body:not(#master) #nav02 .menu_column > li.col_break{
    break-before: column;
  }

  /* 入試情報：1列目（オープンキャンパスのバナー）は固定、2〜3列目を自動段組み */
  body:not(#master) #nav03 .menu_column{
    display: block;
    height: auto;                          /* 静的CSSの height:368px を撤回 */
    column-count: 2;
    column-gap: 0;
    padding-left: calc(33.333% + 16px);
    position: relative;
  }
  body:not(#master) #nav03 .menu_column > li{
    width: auto;
    margin-bottom: 8px;
    break-inside: avoid;
  }
  /* li.open_campus_link と詳細度を上げ、上の > li{width:auto} に負けないようにする */
  body:not(#master) #nav03 .menu_column > li.open_campus_link{
    position: absolute;
    left: 0;
    top: 0;
    width: 33.333%;
    height: auto;                          /* 静的CSSの height:348px を撤回 */
    aspect-ratio: auto;                    /* 画像の自然比率に任せる（余白を出さない） */
    margin-bottom: 0;
  }

  /* 就職・資格／地域交流／キャンパスライフ：項目数が可変なのでcolumn-countで自動段組み */
  body:not(#master) #nav04 .menu_column,
  body:not(#master) #nav05 .menu_column,
  body:not(#master) #nav06 .menu_column{
    display: block;
    height: auto;                          /* 静的CSSの height:168px/124px を撤回 */
    column-count: 3;
    column-gap: 0;
  }
  body:not(#master) #nav04 .menu_column > li,
  body:not(#master) #nav05 .menu_column > li,
  body:not(#master) #nav06 .menu_column > li{
    width: auto;
    margin-bottom: 8px;
    break-inside: avoid;
  }

  /*----------------------------------------------------------
    大学院：「大学院について」「人間学研究科」を3列に分配
    ----------------------------------------------------------
    静的CSSのメニューは「縦に流し込んで固定高さで折り返す」作りなので、
    4項目（大学院について）だと1列目に2つ・2列目に2つで、3列目が空く。
    column-count も同じ（4項目を3列に入れると 2/2/0 になる。列の“高さ”を
    そろえるアルゴリズムなので 2/1/1 にはならない）。
    そこで Grid にして **2/1/1 を明示配置**する。
    ★HTML側も .column2 → .column3 にしてある（template-parts/header-menu-master.php）。
    ⚠ 配置は nth-child 決め打ち。**項目を増減したら下の指定を必ず直すこと。**
      1番目は .sp_link（SP用「〇〇 TOP」・PCでは display:none）なので2番目から数える。
    入試・入学情報（nav03・9項目）と社会連携（nav04・4項目）は
    デザイナー指定の固定高さのままで3列に埋まるので触らない。
  ----------------------------------------------------------*/
  body#master #nav01 .menu_column,
  body#master #nav02 .menu_column{
    display: grid;
    height: auto;                          /* 静的CSSの height:104px / 49px を撤回 */
    grid-template-columns: repeat(3, 1fr); /* 行間8pxは静的CSSの grid-gap: 8px 0 が効く */
  }
  body#master #nav01 .menu_column > li,
  body#master #nav02 .menu_column > li{
    width: auto;                           /* 静的CSSの .column3 > li{width:33.333333%} を撤回 */
  }
  /* 大学院について：沿革・法人組織／情報公開／アクセス ＝ 2/1/1（grid-area: 行 / 列） */
  body#master #nav01 .menu_column > li:nth-child(2){ grid-area: 1 / 1; }
  body#master #nav01 .menu_column > li:nth-child(3){ grid-area: 2 / 1; }
  body#master #nav01 .menu_column > li:nth-child(4){ grid-area: 1 / 2; }
  body#master #nav01 .menu_column > li:nth-child(5){ grid-area: 1 / 3; }

  /*----------------------------------------------------------
    フッター：固定高さ860px＋手動order → .ft_col の3列（大学のみ）
    ----------------------------------------------------------
    静的CSSは「flex縦積み＋高さ860px固定で折り返す」作りだが、WP化で
    項目が増減すると860pxに収まらず横に溢れる。列は footer.php の
    .ft_col 直書きに変えたので（2026-09-03／JSの並び替えは廃止）、
    ここでは静的CSSの縦積み＋固定高さを撤回して素直な横3列にする。
    大学院は4カテゴリを静的CSSの flex＋固定高さで折り返すので触らない。
  ----------------------------------------------------------*/
  body:not(#master) #ft_link{
    display: flex;
    flex-direction: row;                   /* 静的CSSの flex-direction:column を撤回 */
    flex-wrap: nowrap;                     /* 静的CSSの flex-wrap:wrap を撤回 */
    align-items: flex-start;
    height: auto;                          /* 静的CSSの height:860px を撤回 */
    flex: 1;
    margin-left: -16px;
    margin-right: -16px;
  }
  body:not(#master) #ft_link > .ft_col{
    flex: 1;
    min-width: 0;
  }
  body:not(#master) #ft_link .link_category{
    width: auto;                           /* 静的CSSの width:33.333333% を撤回 */
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 24px;
  }
}

/*----------------------------------------------------------
  フッター（SP）：列ラッパを透過させ、カンプ通りの順に縦積み（大学のみ）
  ----------------------------------------------------------
  HTMLは「列順」に並んでいるので、そのままだとSPの並びが
  大学紹介→就職・資格→… になる。display:contents で .ft_col を
  レイアウトから外し、order でカンプの並びに戻す。
  ★footer.php のカテゴリを増減したら、この order も必ず直すこと。
----------------------------------------------------------*/
@media (max-width: 991px) {
  body:not(#master) #ft_link{
    display: flex;
    flex-direction: column;
  }
  body:not(#master) #ft_link > .ft_col{
    display: contents;
  }
  body:not(#master) #ft_link #category01{ order: 1; }  /* 大学紹介 */
  body:not(#master) #ft_link #category05{ order: 2; }  /* キャンパスライフ */
  body:not(#master) #ft_link #category02{ order: 3; }  /* 学部・大学院 */
  body:not(#master) #ft_link #category03{ order: 4; }  /* 入試情報 */
  body:not(#master) #ft_link #category04{ order: 5; }  /* 就職・資格 */
  body:not(#master) #ft_link #category06{ order: 6; }  /* 地域交流 */
}
