body {
  text-align: center;
  color: #6f4a3b;
  overflow: hidden;
  width: 100%;
  background: #e6f9f5;
}

a {
  text-decoration: none;
  outline: unset;
}

a img:hover {
  opacity: 0.6;
}

html {
  overflow-x: hidden;
  background-color: #ffffff;
}

ul li {
  list-style: none;
}

img {
  max-width: 100%;
}

/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc {
  display: block !important;
}

.sp {
  display: none !important;
}

/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 700px) {
  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
  }
}

img.sp {
  width: 100%;
}

/*header*/
header {
  position: fixed;
  background-color: rgb(84 3 184 / 50%);
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  z-index: 2;
  padding: 0;
  /*  overflow-x: hidden;*/
}

header img {
  width: 30%;
  max-width: 200px;
  margin: 1%;
  vertical-align: middle;
}

header .header_logo {
  /*display: flex;*/
  flex-direction: row;
  align-items: center;
  width: 19%;
  min-width: 150px;
  text-align: left;
  padding: 0 0 0 8px;
}

/*↓ロゴの横並び表示　スマホ表示*/
@media screen and (max-width: 480px) {
  header .header_logo {
    display: flex;
  }
}

header .header_logo a {
  width: 100%;
}

header .header_logo a img {
  width: 84%;
}

header #melonlogo {
  width: 48%;
}

.pc {
  width: 100%;
}

nav.pc {
  width: 100%;
}

nav.pc ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
  padding: 0;
}

nav.pc ul li {
  padding: 10px 0;
}

nav.pc ul li:not(:last-child) {
  border-right: 2px solid #fff;
}

nav.pc ul li>a {
  color: #ffffff;
  padding: 0 17px;
  margin-right: 13px;
  display: block;
  font-size: 32px;
}

nav.pc ul li>a img {
  height: auto;
  width: auto;
}

/*main */
div#main {
  width: 100%;
}

.base {
  margin: 0 auto;
  position: relative;
  width: 100%;
  max-width: 1300px;
  background: #fff;

}

.base>img {
  width: 100%;
}

/*↓メニュー押して飛んだ先の位置調整　PC表示*/
@media screen and (min-width: 480px) {

  #event,
  #sign {
    margin-top: -80px;
    padding-top: 80px;
  }
}

.info_enki {
  position: absolute;
  top: 44%;
  left: 6%;
  width: 58%;
}
.info_sign {
  position: absolute;
  top: 69%;
  left:50%;
  transform: translateX(-50%);
  width: 89%;
}
.entas {
  position: absolute;
  top: 67.9%;
  left: 50%;
  transform: translateX(-50%);
  width: 66%;
  height: 18%;
}

.entas_hp {
  position: absolute;
  top: 64.4%;
  left: 20.5%;
  width: 30%;
  height: auto;
}

.access {
  position: absolute;
  top: 86.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 67%;
  height: auto;
}

.karory_twitter {
  position: absolute;
  top: 88.8%;
  left: 40.5%;
  width: 10%;
  height: auto;
}

.karory_pixiv {
  position: absolute;
  top: 88.8%;
  left: 58%;
  width: 10%;
  height: auto;
}

.karory_hp {
  position: absolute;
  top: 88.8%;
  left: 75.5%;
  width: 10%;
  height: auto;
}

.entas_hp img,
.access img,
.karory_twitter img,
.karory_pixiv img,
.karory_hp img {
  width: 100%;
}

.karory_melon{
  width: 90%;
  margin: 0 auto;
  /*border: 3px solid #fff;
  position: relative;
  background: #BBA8FA;
  padding: 1%;*/
}
.karory_melon:hover{
  opacity: 0.7;
}
.karory_melon a{
  /*display: inline-block;*/
  width: 97%;
  height: auto;
/*  padding: 1%;
  margin: 0 auto;
    border: 3px solid #fff;*/
}

.karory_melon p{
  text-align: center;
font-size: 2em;
color:#fff;
font-weight: bold;
}


.btn {
  position: absolute;
  width: 25%;
  z-index: 100;
}

.btn img {
  width: 100%;
}

.buy1 {
  top: 11.5%;
  right: 21%;
}

.buy2 {
  top: 18.3%;
  left: 34%;
}

.buy3 {
  top: 24.0%;
  left: 34%;
}

.buy4 {
  top: 29.1%;
  left: 34%;
}

.buy5 {
  top: 34.8%;
  left: 34%;
}

.buy6 {
  top: 40.5%;
  left: 34%;
}

.buy7 {
  top: 46.3%;
  left: 34%;
}

.buy8 {
  top: 52.0%;
  left: 34%;
}

.buy9 {
  top: 57.8%;
  left: 58%;
}

.buy10 {
  top: 63.5%;
  left: 34%;
}

.buy11 {
  top: 69.2%;
  left: 34%;
}

.buy12 {
  top: 75.0%;
  left: 34%;
}

.buy13 {
  top: 80.2%;
  left: 34%;
}

.buy14 {
  top: 85.8%;
  left: 34%;
}

.buy15 {
  top: 91.3%;
  left: 34%;
}

.buy16 {
  top: 97.3%;
  left: 34%;
}

.buy17 {
  top: 29.7%;
  left: 67%;
}

.buy18 {
  top: 58.7%;
  left: 67%;
}

.buy19 {
  top: 63.0%;
  left: 67%;
}

.buy20 {
  top: 92.8%;
  left: 67%;
}

.panel {
  position: absolute;
  top: 81.9%;
  left: 26%;
  width: 35%;
  z-index: 100;
}

.btn3 {
  width: 65%;
  display: block;
}

.goods_gallery1 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 5.5%;
}

.goods_gallery2 {
  position: absolute;
  width: 100%;
  /*height:100%;*/
  top: 40%;
}

.goods_gallery3 {
  position: absolute;
  width: 100%;
  /*height:100%;*/
  top: 75%;
}

@media screen and (max-width: 1000px) {
  .iframe-responsive {
    position: relative;
    width: 100%;
    padding: calc(600 / 1000 * 100%) 0 0;
  }

  .iframe-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/**/
/* online */
.ab_cont {
  position: absolute;
}

.tape {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  width: 76%;
  margin: 0 auto;
}

.tape_left {
  width: 45%;
  margin: 0 0 0 1%;
  position: relative;
}

.tape_slider p {
  font-weight: bold;
  margin: 2% auto;
  line-height: 1em;
  font-size: 0.7em;
}

.tape_slider p span {
  font-size: 0.8em;
}

.tape_slider li a.buy img {
  width: 80%;
  margin: 5% auto;
}

.tape_left>img {
  width: 100%;
}

.slider img {
  height: auto;
  width: 100%;
}

.tape_lineup img {
  width: 95%;
  margin: 2% auto;
}

.tape_thumbnail {
  width: 48%;
  /*justify-content: center;*/
  align-content: center;
  margin: 17% 0 0 36px;
  flex-wrap: wrap;
  flex-direction: row;
  display: flex;
}

.tape_thumbnail li {
  width: 35%;
  margin: 2%;
  height: fit-content;
  position: relative;
}

#genga {
  margin: 7% 0 0 0;
}

#genga_thumbnail {
  width: 50%;
  margin: 1% 0 0 0;
}

#genga_thumbnail li {
  width: 23%;
  margin: 1%;
  height: fit-content;
  position: relative;
}

/*↓タペストリーと原画　スマホ表示*/
@media screen and (max-width: 480px) {
  .tape {
    width: 91%;
  }

  .tape_thumbnail {
    padding-inline-start: 14px;
    margin: 13% 0 0 0;
  }

  #genga_thumbnail {
    width: 37%;
    padding-inline-start: 14px;
  }
}

.mark {
  position: absolute;
  width: 50% !important;
  top: -15%;
  right: -15%;
  z-index: 100;
}

.tape_thumbnail li:hover {
  opacity: 0.7;
}

.tape_thumbnail li img {
  width: 100%;
}

.thumbnail-current {
  box-shadow: 0px 0px 6px 3px #f30da0;
}

@media screen and (max-width:800px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}

/**/
div#goods .cont {
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.cont .absolute {
  position: absolute;
  width: 23%;
}

div#goods .absolute img {
  width: 100%;
}

div#goods .item_cont {
  position: relative;
  tive;
}

div#goods .item_cont .item_cont_btn {
  position: absolute;
  bottom: 3%;
  right: 2%;
  width: 31%;
}

div#goods img {
  width: 100%;
}

div#goods2 {
  background-image: url(../image/goods02.jpg);
  background-size: 100%;
  background-repeat: repeat-y;
  padding-top: 90px;
}

div#goods2 .cont {
  max-width: 1200px;
  margin: auto;
  position: relative;
}

div#goods2 .item_cont {
  position: relative;
}

div#goods2 .item_cont .item_cont_btn {
  position: absolute;
  bottom: 3%;
  right: 2%;
  width: 31%;
}

div#goods2 img {
  width: 100%;
}

/*footer*/
footer {
  background-color: #ffe158;
  text-align: center;
  width: 100%;
}

footer img {
  margin: 36px 98px;
  width: 23%;
}

/*other*/
a>.top {
  position: fixed;
  right: 51px;
  bottom: 32px;
  background-color: #000000;
  padding: 23px 27px;
  border-radius: 14px;
  opacity: .7;
  letter-spacing: 2px;
  font-size: 26px;
  color: #ffffff;
}

div#snsbtn {
  position: absolute;
  top: 115px;
  display: inline-flex;
  right: 0;
}

/* ----- 1050 ----- */
@media screen and (max-width:1050px) {
  div#snsbtn {
    top: 85px;
    /*top: 139px;*/
  }
}

/* ----- 700 ----- */
@media screen and (max-width:700px) {
  div#goods {
    padding-top: 0px;
    margin-top: 30px;
  }

  div#goods2 {
    padding-top: 0px;
    margin-top: 30px;
  }

  footer img {
    width: 45%;
  }

  div#snsbtn {
    position: relative;
    top: 0px;
    right: 0px;
    margin-top: 20px;
  }

  header {
    text-align: center;
    position: relative;
  }

  header img {
    width: 43%;
    margin: 1% 1%;
    vertical-align: middle;
  }

  header .header_logo {
    width: 80%;
    text-align: center;
  }

  a>.top {
    padding: 10px 10px;
  }

  iframe#twitter-widget-0 {
    margin-right: 13px;
  }

  nav.globalMenuSp {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    color: #000;
    text-align: center;
    transform: translateY(-100%);
    transition: all 0.6s;
    width: 100%;
  }

  nav.globalMenuSp ul {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.66);
  }

  nav.globalMenuSp ul li {
    font-size: 1.1em;
    list-style-type: none;
    padding: 0;
    width: 100%;
    border-bottom: 2px dotted #969696;
  }

  /* 最後はラインを描かない */
  nav.globalMenuSp ul li:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  nav.globalMenuSp ul li a {
    display: block;
    color: #ffffff;
    padding: 1.7em 0;
  }

  /* このクラスを、jQueryで付与・削除する */
  nav.globalMenuSp.active {
    transform: translateY(0%);
  }

  .navToggle {
    display: block;
    position: fixed;
    /* bodyに対しての絶対位置指定 */
    right: 13px;
    top: 12px;
    width: 42px;
    height: 51px;
    cursor: pointer;
    z-index: 3;
    background: #ed6492;
    text-align: center;
  }

  .navToggle span {
    display: block;
    position: absolute;
    /* .navToggleに対して */
    width: 30px;
    border-bottom: solid 3px #eee;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
    left: 6px;
  }

  .navToggle span:nth-child(1) {
    top: 9px;
  }

  .navToggle span:nth-child(2) {
    top: 18px;
  }

  .navToggle span:nth-child(3) {
    top: 27px;
  }

  .navToggle span:nth-child(4) {
    border: none;
    color: #eee;
    font-size: 9px;
    font-weight: bold;
    top: 34px;
  }

  /* 最初のspanをマイナス45度に */
  .navToggle.active span:nth-child(1) {
    top: 18px;
    left: 6px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  /* 2番目と3番目のspanを45度に */
  .navToggle.active span:nth-child(2),
  .navToggle.active span:nth-child(3) {
    top: 18px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  img.coming {
    bottom: 0px;
  }
}

/* ----- 450 ----- */
@media screen and (max-width:450px) {
  footer img {
    margin: 12px 0px;
  }
}

.r18 {
  position: fixed;
  display: none;
  z-index: 9999;
  top: 40%;
  left: 50%;
  width: 587px;
  height: 361px;
  margin: -120px 0 0 -220px;
  padding: 2px;
  text-align: center;
  background: #fff url(https://www.melonbooks.co.jp/special/b/0/fair_shoseki/20180405_killtime_onlyshop/images/cushion.gif) right top no-repeat;
  border: solid 4px #f00;
}

.r18 p {
  margin-bottom: 10px;
  line-height: 1em;
  font-size: 0.9em;
}

.r18 a {
  cursor: pointer;
}

.cushion {
  padding: 60px 200px 0 30px;
}

.cushion h2 {
  color: #e40d0d;
  font-size: 26px;
  padding: 0px;
}

.cuhion p {
  font-size: 13px;
  line-height: 1.6;
}

.cushion .mb20 {
  padding: 5px;
}

.cushion a {
  background: url(https://www.melonbooks.co.jp/special/b/0/fair_shoseki/20180405_killtime_onlyshop/images/btn_yesno.gif) left top no-repeat;
  display: inline-block;
  color: rgba(0, 0, 0, 0);
  line-height: 35px;
  width: 169px;
  height: 35px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cushion>a.yes {
  background-position: 0px 0px;
  margin-left: 8px;
}

.cushion>a.no {
  background-position: -169px 0px;
  margin-left: 8px;
}

.cushion>a.yes:hover {
  background-position: 0px -35px;
}

.cushion>a.no:hover {
  background-position: -169px -35px;
}

/*ポップアップ*/
.popup_wrap input {
  display: none;
}

.popup_overlay {
  display: flex;
  justify-content: center;
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(255, 215, 215, 0.4);
  opacity: 0;
  transition: opacity 0.5s, transform 0s 0.5s;
  transform: scale(0);
}

.popup_trigger {
  position: absolute;
  width: 100%;
  height: 100%;
}

.popup_content {
  position: relative;
  align-self: center;
  max-width: 700px;
  width: 80%;
  box-sizing: border-box;
  background: #fff;
  line-height: 1.4em;
  transition: 0.5s;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(94, 94, 94, 0.7);
  padding: 10px 20px;
  height: 90vh;
  overflow-y: scroll;
}

.popup_content p {
  padding: 20px 20px 5px 20px;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: #432f6e;
}

.close_btn {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 30px;
  cursor: pointer;
  color: #37beb0;
}

.popup_wrap input:checked~.popup_overlay {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s;
}

.open_btn {
  position: relative;
  background-color: #ffffff;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.open_btn img {
  max-width: 100%;
}

.open_btn:hover {
  background-color: #f0cdcd;
}

img.opacity:hover {
  opacity: 0.6;
}
