@import url(/faculty/gs-info/wp-content/themes/bunkyo-2018/common.css);

.mainimage {
  background-color: rgba(0, 102, 153, 0.6);
  width: auto;
  height: 500px;
  position: relative;
  z-index: -1;
}
.mainslide {
  max-width: 1000px;
  margin: 0 auto;
  height: 500px;
}
.top01 {
  width: 1000px;
  height: 500px;
  background-size: cover;
  background-position: center center;
  background-image: url(/faculty/gs-info/wp-content/themes/bunkyo-2018/img/bg_main_01.jpg);
}
.top02 {
  width: 1000px;
  height: 500px;
  background-size: cover;
  background-position: center center;
  background-image: url(/faculty/gs-info/wp-content/themes/bunkyo-2018/img/bg_main_02.jpg);
}
.top03 {
  width: 1000px;
  height: 500px;
  background-size: cover;
  background-position: center center;
  background-image: url(/faculty/gs-info/wp-content/themes/bunkyo-2018/img/bg_main_03.jpg);
}
.top04 {
  width: 1000px;
  height: 500px;
  background-size: cover;
  background-position: center center;
  background-image: url(/faculty/gs-info/wp-content/themes/bunkyo-2018/img/bg_main_04.jpg);
}

.mainimage span {
  font-size: 24px;
  text-transform: capitalize;
  display: block;
}

.mainimage p {
  color: #fff;
  font-family: sans-serif;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  font-size: 16px;
  display: inline-block;
  background-color: rgba(0, 102, 153, 0.6);
  background-blend-mode: multiply;
  max-width: 540px;
  padding: 20px;
  margin: 40px 0 0 0;
  position: absolute;
  top: 0;
  left: calc(50% - 450px);
}

.mainimage p span {
  font-size: 24px;
  display: inline-block;
}

div#main {
  margin: 60px auto 0;
  background-image: url(/faculty/gs-info/wp-content/themes/bunkyo-2018/img/bg_main.png);
  background-position: right bottom;
  background-repeat: no-repeat;
}

#topnavi {
  display: none;
}

#news {
  border-top: solid 5px #006699;
  border-bottom: solid 1px #006699;
  margin: 0 0 60px 0;
}

#news h2 {
  font-size: 18px;
  line-height: 1;
  background-color: #e3ebf1;
  background-image: url(/faculty/gs-info/wp-content/themes/bunkyo-2018/img/bg_news.png);
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 12px 0 12px 20px;
  margin: 0 0 20px 0;
  box-shadow: none;
  border: none;
}

#news dl {
  line-height: 1;
  display: flex;
  margin: 0 0 15px 10px;
}

#news dl dt {
  width: 130px;
  border-left: solid 3px #006699;
  padding: 5px 0 0 10px;
}

#news p {
  text-align: right;
}

#news dl dd p {
  text-align: left;
}

#news dl dd p a {
  padding: 0 10px 0 0;
  background: none;
}

#news p a {
  padding: 0 10px 0 10px;
  background-image: url(/faculty/gs-info/wp-content/themes/bunkyo-2018/img/icon_arrow_02.png);
  background-repeat: no-repeat;
  background-position: left center;
}

#front .alignnone {
  margin: 0 20px 0 0;
}
#pickup {
  background-color: #e3ebf1;
  position: relative;
  padding: 45px 12px 12px 12px;
  margin: 0 0 245px 0;
}

#pickup h2 {
  padding: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
  position: absolute;
  top: -20px;
  left: 6px;
}

#pickup > div {
  display: flex;
  justify-content: space-between;
}

#pickup div div {
  text-align: center;
  width: 230px;
  background-color: #fff;
  position: relative;
  z-index: 10;
}

#pickup h3 {
  margin: 26px 0 20px;
  font-size: 18px;
  font-weight: normal;
  border-left: none;
}

#pickup h3 span {
  padding: 0 0 5px 0;
  border-bottom: solid 2px #006699;
}

#pickup p:not(.photo) {
  text-align: left;
  margin: 0 16px 50px;
}

#pickup .photo {
  margin: 0 auto;
  overflow: hidden;
}
#pickup .photo img {
  transition: 1s all;
}
#pickup .photo img:hover {
  transform: scale(1.2, 1.2);
  transition: 0.3s all;
}
#pickup a.link {
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: inline-block;
  background-color: #006699;
  border-radius: 20px;
  padding: 4px 4px 4px 25px;
  position: absolute;
  bottom: 20px;
  left: 22%;
  right: 22%;
  background-image: url(/faculty/gs-info/wp-content/themes/bunkyo-2018/img/icon_arrow_03.png);
  background-repeat: no-repeat;
  background-position: left 10px center;
}

/* ========================================================================== */
@media only screen and (max-width: 960px) {
  /* ----------------------------------------------------------------------- */

  #pickup {
    margin: 0 0 20px 0;
  }

  div#main {
    background-image: none;
  }

  /* ----------------------------------------------------------------------- */
}

/* sp
========================================================================== */
@media only screen and (max-width: 740px) {
  /* ----------------------------------------------------------------------- */

  div#main {
    margin: 0;
  }

  .mainimage div {
    width: auto;
    height: 80vw;
    margin: 0;
    padding: 0;
  }

  .mainimage {
    width: auto;
    height: 80vw;
    position: relative;
  }
  .mainslide {
    width: auto;
    height: 80vw;
  }
  .top01,
  .top02,
  .top03,
  .top04 {
    width: auto;
    height: 80vw;
  }
  .mainimage p {
    font-size: 16px;
    line-height: 1.5;
    display: inline-block;
    padding: 2vw;
    margin: 2vw;
    max-width: 92vw;
    height: auto;
    left: 0;
  }

  #topnavi {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 15px 10px 5px;
  }

  #topnavi li {
    color: #fff;
    text-align: center;
    width: calc(50vw - 25px);
    background-color: #71a8c5;
    margin: 0 0 10px;
  }

  #front #topnavi li a {
    color: #fff;
    display: block;
    padding: 10px 0;
  }

  #news {
    border-top: solid 2px #006699;
  }

  #news h2 {
    border-bottom: dotted 1px #999;
    box-shadow: inset 0px -1px 1px #fff;
  }

  #news dl {
    display: block;
    margin: 0 20px 10px 15px;
  }

  #news dl dt {
    padding: 0 0 0 5px;
  }

  #news dl dd {
    margin: 5px 0 0 8px;
  }

  #pickup {
    background-color: #e3ebf1;
    position: relative;
    padding: 15px 12px 12px 12px;
    margin: 50px 0 20px 0;
  }

  #pickup h2 {
    position: absolute;
    top: -50px;
    left: 6px;
  }

  #pickup > div {
    display: block;
  }

  #pickup div div {
    text-align: left;
    width: auto;
    padding: 10px;
  }

  #pickup div div + div {
    margin: 12px 0 0 0;
  }

  #pickup div div::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
  }

  p.photo {
    width: 120px;
    float: left;
  }

  #pickup h3,
  #pickup p:not(.photo) {
    display: block;
    padding: 0;
    margin: 0 0 10px 130px;
  }

  #pickup a.link {
    float: right;
    padding: 4px 10px 4px 20px;
    position: static;
  }

  /* ----------------------------------------------------------------------- */
}
