@charset "utf-8";
/* base setting */
body {
  color: #333;
}
a, a:link, a:visited {
  color: #333;
  text-decoration: none;
}
a:hover, a:active {
  color: #aaa;
}
img {
  vertical-align: bottom;
  border: 0;
  width: 100%;
  height: auto;
}
.inner {
  position: relative;
  padding-right: 10px;
  padding-left: 10px;
}
@media screen and (min-width: 961px) {
  .inner {
    width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
}
.center_middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hide {
  opacity: 0;
  height: 0;
}
.hide a {
  cursor: default;
}
/* page setting */
body {
  background: url(../img/bg_body.png);
  /*min-height: 100vh;
    height: auto;*/
}
.wrapper {
  position: relative;
}
@media screen and (min-width: 961px) {
  .wrapper {
    height: auto;
    min-height: 100vh;
  }
}
.header, .footer {
  background: rgba(255, 255, 255, 0.7);
}
.header {
  font-family: 'Montserrat', sans-serif;
  padding-top: 10px;
  padding-bottom: 10px;
}
h1 {
  font-size: 2.2rem;
}
@media screen and (min-width: 961px) {
  h1 {
    font-size: 3rem;
  }
}
h1 span {
  font-size: 0.9rem;
}
@media screen and (min-width: 961px) {
  h1 span {
    font-size: 1.2rem;
  }
}
.main {
  padding-top: 50px;
  padding-bottom: calc(50px + 20px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
@media screen and (min-width: 961px) {
  .main {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}
.main div.graduation {
  width: 47%;
  height: auto;
  margin-bottom: calc(20px + 20px); /*margin-bottomの初期値 + 棚を下にずらした値20px*/
  position: relative;
  border-radius: 5px;
}
@media screen and (min-width: 961px) {
  .main div.graduation {
    width: 30%;
    margin-bottom: calc(20px + 100px);
  }
}
.main div.graduation:nth-of-type(2n+1)::before {
  content: "";
  display: block;
  background: url(../img/tana3.svg) no-repeat;
  background-size: cover;
  width: calc(212.7659% + 10px); /*親の47%使っている + 棚の左右張り出し分5px ×2*/
  height: 20px;
  position: absolute;
  left: -5px;
  bottom: -20px;
  z-index: -1;
}
@media screen and (min-width: 961px) {
  .main div.graduation:nth-of-type(2n+1)::before {
    content: "";
    display: none;
  }
  .main div.graduation:nth-of-type(3n+1)::before {
    content: "";
    display: block;
    background: url(../img/tana3.svg) no-repeat;
    background-size: cover;
    width: calc(320% + 60px); /*親の90%使っている + 棚の左右張り出し分5px ×2*/
    height: 30px;
    position: absolute;
    left: -10px;
    bottom: -22px;
    z-index: -1;
  }
}
.main div.graduation:first-of-type::after {
  content: "";
  display: block;
  background: url(../img/flower.png) no-repeat;
  width: 100px;
  height: 75px;
  background-size: contain;
  position: absolute;
  bottom: -10px;
  right: -40px;
  z-index: 2;
}
.main div.graduation a {
  display: block;
  width: 100%;
  height: 100%;
}
.main div.graduation a img {
  border-radius: 5px;
  transition: 0.3s;
  transform-origin: center bottom;
}
.main div.graduation a:hover img, .main div.graduation a:active img {
  transform: scale(1.05);
}
.main p.graduation_hover {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  opacity: 0;
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  transform: scale(0);
  transition: 0.2s;
  transform-origin: center bottom;
}
main div.graduation a:hover p.graduation_hover, main div.graduation a:active p.graduation_hover {
  opacity: 1;
  transform: scale(1.05);
}
.footer {
  padding-top: 20px;
  padding-bottom: 20px;
}
@media screen and (min-width: 961px) {
  .footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
}
.footer small {
  display: block;
  text-align: center;
}
/* page_top */
#back-top {
  position: fixed;
  right: 10px;
  bottom: calc(40px + 100px + 30px);
  width: 50px;
  height: 50px;
}
@media screen and (min-width: 961px) {
  #back-top {
    right: max(100px, 5%);
  }
}
#back-top a {
  display: inline-block;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 2.6rem;
  text-align: center;
  vertical-align: middle;
  color: #333;
}
.icon-arrow-up2:before {
  position: relative;
  top: 3px;
}
/* IconFont */
@font-face {
  font-family: 'icomoon';
  src: url('fonts/icomoon.eot?dgtctl');
  src: url('fonts/icomoon.eot?dgtctl#iefix') format('embedded-opentype'), url('fonts/icomoon.ttf?dgtctl') format('truetype'), url('fonts/icomoon.woff?dgtctl') format('woff'), url('fonts/icomoon.svg?dgtctl#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-home:before {
  content: "\e900";
}
.icon-arrow-up2:before {
  content: "\ea3a";
}