﻿* {
margin: 0;
padding: 0;
font-family: serif;
}
html {
  width: 100%;
  height: 100%;
}
body {
  width: 100%;
  height: 100%;
  animation: fadeIn 2s ease 0s 1 normal;
  -webkit-animation: fadeIn 2s ease 0s 1 normal;
}
@keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}
@-webkit-keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

div.sp {
  display: none;
}

#container {
  width: 100%;
  min-width: 1300px;
  height: 100%;
  margin: 0 auto;
}

h1 {
  width: 100%;
  font-size: 3em;
  color: #c3ad0e;
  padding: 30px 0 20px;
  letter-spacing: 0.2em;
  box-sizing: border-box;
}
h2 {
  width: 100%;
  font-size: 1.8em;
  line-height: 1.2em;
  color: #fff;
  padding: 0 0 10px;
  box-sizing: border-box;
}
h3 {
  width: 100%;
  margin-bottom: 10px;
}
h3 p {
  font-size: 1.3em;
}

div.fair {
  width: 100%;
  height: 100vh;
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg1.png) no-repeat top left,
	     url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg2.png) no-repeat top right;
  position: relative;
  background-color: #fff;
  z-index: 999;
}
header {
  width: 100%;
  height: 40%;
  text-align: center;
}
header img {
  max-width: 100%;
  height: 100%;
}
header div.header {
  display: block;
  width: auto;
  height: 100%;
}
div.pc img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: 100%;
}

nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  height: 60%;
  padding: 0 10px;
  box-sizing: border-box;
}
.plan {
  width: 33.33333%; /*未対応用*/
  width: -webkit-calc(100% / 3);
  width: calc(100% / 3);
  max-width: 550px;
  height: 100%;
  text-align: center;
  padding: 30px 50px 20px;
  letter-spacing: 0.2em;
  box-sizing: border-box;
}
.p01 {
  display: flex;
  flex-direction: column;
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame1.png) no-repeat top left / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame2.png) no-repeat top right / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame3.png) no-repeat bottom left / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame4.png) no-repeat bottom right / 18% auto;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  padding: 0 10px;
  box-shadow: 0 0 0 20px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}
.p02 {
  display: flex;
  flex-direction: column;
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame1.png) no-repeat top left / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame2.png) no-repeat top right / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame3.png) no-repeat bottom left / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame4.png) no-repeat bottom right / 18% auto;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  padding: 0 10px;
  box-shadow: 0 0 0 20px rgba(0,0,0,0.8);
  box-sizing: border-box;
}
.p03 {
  display: flex;
  flex-direction: column;
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame1.png) no-repeat top left / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame2.png) no-repeat top right / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame3.png) no-repeat bottom left / 18% auto,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/frame4.png) no-repeat bottom right / 18% auto;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  padding: 0 10px;
  box-shadow: 0 0 0 20px rgba(0,0,0,0.8);
  box-sizing: border-box;
}

.plan p {
  font-size: 0.95em;
  line-height: 1.6em;
  color: #fff;
  flex-direction: column;
}
.plan p > span {
  font-size: 1.2em;
}
.plan div.btn {
  margin-top: auto;
}
div.btn a {
  font-size: 6em;
  color: #c3ad0e;
  text-decoration: none;
}
div.btn p {
  color: #c3ad0e;
  font-weight: 500;
  font-size: 0.25em;
  letter-spacing: 0.3em;
  margin-bottom: -35px;
}

.g-nav {
  display: none;
  width: 100%;
  z-index: 1;
}
.g-nav-menu {
  text-align: center;
  background: #000;
  color: #c3ad0e;
  padding: 10px;
}
.g-nav-menu li {
  padding: 5px 30px 0px;
  list-style-type: none;
  display: inline-block;
  border-left: 1px solid #c3ad0e;
}
 .g-nav-menu li:last-child {
  border-right: 1px solid #c3ad0e;
}
.g-nav-menu li a {
  color: #c3ad0e;
  display: inline-block;
  line-height: 1.2em;
  font-size: 1.0em;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-decoration: none;
}
.fixed {
  position: fixed;
  top: 0;
  left: 0;
  display: block !important;
}
.fixed .g-nav-menu li {
  line-height: 30px;
}
main {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 30px 30px -20px #d7d5c1;
}
.text {
  width: 100%;
  margin: 30px auto;
  font-weight: 400;
}
.text p {
  font-size: 0.9em;
  font-weight: 500;
  color: #000;
}
.text img {
  height: 350px;
  width: auto;
  filter: drop-shadow(0px 0px 5px #d7d5c1);
  margin: 20px auto;
}
.cart {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 464px;
  max-width: 80%;
  margin: 0 20px 30px;
  box-sizing: border-box;
}
.cart a {
  display: block;
  width: 100%;
  transition: 0.3s;
}
.cart a:hover {
  filter: drop-shadow(0px 0px 5px #d7d5c1);
}
.cart img {
  display: block;
  width: 100%;
  height: auto;
}

#plan1 {
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg.png) fixed no-repeat top left / auto 100%,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/side_bg.png) repeat-y top right;
}
#plan2 {
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg2.png) fixed no-repeat top right / auto 100%,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/side_bg.png) repeat-y top left;
}
#plan3 {
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg1.png) fixed no-repeat top left / auto 100%,
	      url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/side_bg.png) repeat-y top right;
}
.plan1 {
  display: inline-block;
  width: 100%;
  min-width: 1300px;
  height: 100%;
  margin: 0 auto;
  background: rgba(255,255,255,0.7);
  padding: 70px 0 80px;
  box-sizing: border-box;
}
.plan2 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-width: 1300px;
  height: 100%;
  margin: 0 auto;
  background: rgba(255,255,255,0.5);
  padding: 70px 0 80px;
  box-sizing: border-box;
}
.plan3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  min-width: 1300px;
  height: 100%;
  margin: 0 auto;
  background: rgba(255,255,255,0.5);
  padding: 70px 0 80px;
  box-sizing: border-box;
}
.t_wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 80%;
  text-align: center;
  margin: 0 auto 50px;
}
.t_wrap img {
  width: 100%;
  max-width: 800px;
  height: auto;
  filter: drop-shadow(0 0 5px #d7d5c1);
}
.merogen {
  text-align: center;
}
.merogen img {
  max-width: 100%;
  height: auto;
}
.tokuten {
  width: calc(100% / 2);
}
.tokuten img {
  width: 300px;
  max-width: 100%;
}
.c_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.vote {
  width: 100%;
  min-width: 1300px;
  10px auto 30px;
}
.vote p {
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: 0.2em;
}
.vote span {
  font-size: 1.3em;
}

.vote a {
  display: block;
  width: 464px;
  max-width: 80%;
  transition: 0.3s;
}
.cart a:hover {
  filter: drop-shadow(0px 0px 5px #d7d5c1);
}

.situation {
  margin: 20px auto;
}
.situation p {
  width: 35%;
  max-width: 500px;
  line-height: 1.8em;
  border-bottom: 1px dashed #c3ad0e;
  margin: 15px auto 0;
}
.btn {
  margin-top: 30px;
  text-align: center;
}

.top .btn p {
  margin-top: -35px;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  margin: 60px auto 0;
  padding: 10px 0;
}
footer .share {
  margin-bottom: 10px;
}
footer .share a {
  margin-bottom: 10px;
  margin: 0 10px;
}

.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s;
}

.framewrap {
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}
.youtube {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  margin: 0 auto 50px;
}
.youtube iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@media screen and (max-width: 1024px) {
#container {
  width: 100%;
  min-width: initial;
}
.g-nav-menu {
  padding: 5px;
}
div.fair {
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg1.png) no-repeat top left / 50% auto,
              url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg2.png) no-repeat top right / 50% auto;
}
h1 {
  font-size: 2em;
  padding: 20px 0 10px;
}
h2 {
  font-size: 1.3em;
}
.plan {
  letter-spacing: 0.1em;
  padding: 20px 30px 20px;
}
.plan p {
  font-size: 0.8em;
  margin-top: 2px;
}
.plan p > span {
  font-size: 1.2em;
  line-height: 2em;
}
.p01, .p02, .p03 {
  padding: 0;
}
div.btn a {
  font-size: 5em;
}
div.btn p {
  margin-bottom: -30px;
}

.plan1, .plan2, .plan3 {
  min-width: initial;
}
.t_wrap img {
  width: 90%;
  height: auto;
}
.text {
  width: 90%;
}
.vote {
  width: 90%;
  min-width: initial;
}
.situation p {
  width: 65%;
}
}

@media screen and (max-width: 640px) {
.pc {
  display: none !important;
}
div.sp {
  display: block;
}
div.fair {
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/side_bg.png) repeat-y top left / 15% auto,
              url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/side_bg.png) repeat-y top right / 15% auto;
  width: 100%;
  height: auto;
}
div.pc img {
  width: 80%;
  height: auto;
}

header img {
    max-width: 100%;
    height: initial;
}

.heading {
  display: flex !important;
  width: 100%;
  height: 200px;
}
.heading1 {
  width: 33.33333%; /*未対応用*/
  width: -webkit-calc(100% / 3);
  width: calc(100% / 3);
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg1.png) no-repeat top center / auto 170%;
}
.heading2 {
  width: 33.33333%; /*未対応用*/
  width: -webkit-calc(100% / 3);
  width: calc(100% / 3);
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg.png) no-repeat top left / auto 150%;
}
.heading3 {
  width: 33.33333%; /*未対応用*/
  width: -webkit-calc(100% / 3);
  width: calc(100% / 3);
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/header_bg2.png) no-repeat top center / auto 170%;
}

div.navmenu {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
}
ul.navmenu {
  text-align: center;
  background: #000;
  color: #c3ad0e;
  padding: 10px;
}
ul.navmenu li {
  padding: 5px 20px 0px;
  list-style-type: none;
  display: inline-block;
  border-left: 1px solid #c3ad0e;
}
ul.navmenu li:last-child {
  border-right: 1px solid #c3ad0e;
}
ul.navmenu li a {
  color: #c3ad0e;
  display: inline-block;
  line-height: 1.2em;
  font-size: 1.0em;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-decoration: none;
}

#plan1 {
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/side_bg.png) repeat-y top right / 15% auto;
}
#plan2 {
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/side_bg.png) repeat-y top left / 15% auto;
}
#plan3 {
  background: url(https://www.melonbooks.co.jp/special/a/1/sp/2020/tonaten/img/side_bg.png) repeat-y top right / 15% auto;
}

h1 {
  font-size: 1.5em;
  line-height: 1.5em;
}
h2 {
  display: none;
}
h3 {
  font-size: 1.0em;
}
.plan p {
  display: none;
}
.plan1, .plan2, .plan3 {
  background: rgba(255,255,255,0.8);
  padding: 50px 0 10px;
}
div.btn a {
  font-size: 3em;
}
.t_wrap {
  margin: 0 auto 30px;
}
.t_wrap img {
  width: 100%;
  max-width: 100%;
  height: auto!important;
}
.tokuten {
  width: 90%;
  margin-bottom: 20px;
}
.tokuten img {
  width: 80%;
  height: auto;
}
.text {
  width: 90%;
}
.text img {
  height: 300px;
  margin: 20px auto 0;
}
.text p {
  font-size: 0.8em;
}
.cart {
  margin: 0 20px 20px;
}
.vote {
  width: 90%;
  margin: 0 auto;
}
.vote p {
  font-size: 1.0em;
  line-height: 1.4em;
}
.vote span {
  font-size: 1.0em;
}
.situation p {
  width: 75%;
}
.btn {
  margin: 20px auto 30px !important;
}
.top .btn p {
  margin-top: -20px;
}
}