@charset "utf-8";
/*
top.css
トップページ用css
*/

/* NextStory
========================================== */
.hakase-next-content {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 65px;
}
.hakase-next-text {
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-size: 36px;
  text-align: center;
  line-height: 1.2;
  white-space: pre-line;
}
.hakase-next-text .jealousy {
  display: inline-block;
  width: 160px;
  height: 59px;
  background-image: url(../images/top/txt_jealousy.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-size: 0 !important;
  text-indent: 100% !important;
  white-space: nowrap !important;
}
.hakase-next-image {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto 40px;
  z-index: 1;
}
.hakase-next-image span {
  display: block;
  width: 100%;
  padding-top: calc(394 / 700 * 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.hakase-next-image::after {
  position: absolute;
  display: block;
  top: -200px;
  right: -253px;
  width: 370px;
  height: 469px;
  background-image: url(../images/top/img_lamp.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
  content: "";
}

@media only screen and (max-width: 1000px) {
  .hakase-next-content {
    padding: 0 20px 45px;
  }
  .hakase-next-image::after {
    top: -240px;
    right: -150px;
    width: 45%;
    height: auto;
    padding-top: calc(938 / 1280 * 100%);
  }
}

@media only screen and (max-width: 600px) {
  .hakase-next-text {
    margin-bottom: 10px;
    font-size: 18px;
  }
  .hakase-next-text .jealousy {
    width: 64px;
    height: 23px;
  }
  .hakase-next-image {
    margin: 0 auto 20px;
    max-width: 360px;
  }
  .hakase-next-image::after {
    top: -100px;
    right: -35px;
    width: calc(247 / 640 * 100%);
    height: auto;
    padding-top: calc(375 / 640 * 100%);
  }
}

/* SNS
========================================== */
.hakase-sns-content {
  position: relative;
  margin: 0 auto;
  padding: 15px 0 100px;
  width: 100%;
  max-width: 1000px;
  z-index: 1;
}
.twitter-timeline-box {
  margin: 0 auto;
  width: 100%;
  max-width: 525px;
  background-color: #fff;
  border: 4px solid #0f3766;
  border-radius: 4px;
}
.twitter-timeline-box iframe {
  height: 450px !important;
}
.hakase-sns-glass-1 {
  position: absolute;
  display: block;
  top: -50px;
  left: -180px;
  width: 432px;
  height: 228px;
  background-image: url(../images/top/img_glass.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(-60deg);
  z-index: -1;
}
.hakase-sns-glass-2 {
  position: absolute;
  display: block;
  top: 30px;
  right: -170px;
  width: 288px;
  height: 152px;
  background-image: url(../images/top/img_glass.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
}
.hakase-sns-glass-3 {
  position: absolute;
  display: block;
  bottom: 0;
  right: -270px;
  width: 576px;
  height: 304px;
  background-image: url(../images/top/img_glass.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(-30deg);
  z-index: -1;
}
@media only screen and (max-width: 1000px) {
  .hakase-sns-content {
    padding: 15px 30px 100px;
  }
}
@media only screen and (max-width: 600px) {
  .twitter-timeline-box iframe {
    height: 250px !important;
  }
  .hakase-sns-content {
    padding: 10px 30px 130px;
  }
  .hakase-sns-glass-1 {
    top: -60px;
    left: -100px;
    width: 288px;
    height: 152px;
  }
  .hakase-sns-glass-2 {
    display: none;
  }
  .hakase-sns-glass-3 {
    bottom: 50px;
    right: -130px;
    width: 288px;
    height: 152px;
  }
}