
/* リセット */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
img,
table,
th,
tr,
td,
figure,
figcaption,
header,
footer {
  margin: 0;
  padding: 0;
}

li {
  list-style-type: none;
}

img {
  vertical-align: bottom;
  border: bottom;
  width: 100%;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
  max-height: 95vh;
}

a {
  text-decoration: none;
  color: var(--white);
}

body {
  background-color: var(--basecolor);
  font-family: "Helvetica Neue", "Verdana", "Hiragino Maru Gothic Pro W4", "Yu Gothic", sans-serif;
}

html {
  font-size: calc(62.5% + 0.25vw);
}

/* 変数 */
:root {
  --f1: 2rem;
  --f2: 1.8rem;
  --f3: 1.6rem;
  --f4: 1.4rem;
  --fn: 1.2rem;
  --f5: 1rem;
  --f6: 0.8rem;

  --basecolor: #1e2e53;
  --maincolor: #FFEF98;
  --accentcolor: rgb(233, 88, 154);
  --white: #f8f8f8;
  --brack: #222222;
  --deepgray: #d8d8d8;
}

h1 {
  color: var(--accentcolor);
  font-size: var(--f1);
}

h2 {
  font-size: var(--f2);
  color: var(--maincolor);
  margin: 12px 0;
}

h3 {
  font-size: var(--f3);
  color: var(--maincolor);
}

h4 {
  font-size: var(--f4);
  margin-bottom: 12px;
}

h5 {
  font-size: var(--f5);
}

h6 {
  font-size: var(--f6);
}


p a {
  background: linear-gradient(rgba(255, 255, 255, 0) 80%, rgba(233, 88, 154, .5) 80%);
  border-radius: 4px;
  list-style-type: none;
  margin: 4px;
  padding: 0.5% 1%;
}

p a:hover{
  background: linear-gradient(rgba(255, 255, 255, 0) 60%, rgba(233, 88, 154, .5) 60%);
}

p a img{
  background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 0%);
}

p a img:hover{
  background: none;
}

.wrapper p,
td {
  font-size: var(--fn);
  color: var(--white);
  line-height: 2;
}

.wrapper {
  min-height: 100vh;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  color: var(--white);
}

.wapper,
.wrapper::before,
.wrapper::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

header {
  background-position: center center;
    justify-content: space-between;
    background: url('img/main.png'),url('img/bg06.svg'), url('img/bg05.svg'), linear-gradient(180deg, #F39800, #FFDE00, #FFEF98);
    background-repeat: no-repeat, repeat, repeat,no-repeat;
    background-position: center 60%,left top,left top,center center;
    background-size: contain,100%,90%,cover;
  display: flex;
  flex-flow: column;
  min-height: 80vh;
  max-height: 800px;
}

header .contents:last-child {
  margin-top: auto;
}

header .contents:nth-child(1) {
  background-image: url('img/bg01.svg');
  text-align: right;
  padding-bottom: 15%;
  margin-top: 0;
}

header .contents:nth-child(2) {
  margin: 0;
  padding: 0;
  height: 50vh;
}

header .contents:nth-child(3) {
  padding-top: 20%;
  background-image: url('img/bg02.svg');
  margin-bottom: 0;
}

main {
  padding-left: 12px;
  padding-right: 12px;
}

.contents {
  margin-top: 30px;
  margin-bottom: 30px;
  padding-top: 5%;
  padding-bottom: 5%;
  padding-left: 5%;
  padding-right: 5%;
}

section {
  margin: 24px auto;
}

ul {
  margin-top: 24px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

ul li {
  list-style-type: circle;
  padding-top: 4px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px auto;
}

table th {
  font-size: var(--f4);
  text-align: center;
  padding-top: 4%;
  padding-bottom: 4%;
}

table td {
  padding-top: 4%;
  padding-bottom: 4%;
  padding-left: 4%;
}

table tr {
  border-bottom: solid 1px #f8f8f8;
}

table tr td:nth-child(2n+1) {
  width: 25%;
}

.dojinsai tr td:nth-child(2n+1){
  width: 50%;
}

.dojinsai tr td{
  text-align: center;
}

nav ul {
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  padding-left: 5%;
  padding-right: 5%;
}

nav ul li {
  background: linear-gradient(rgba(255, 255, 255, 0) 80%, rgba(233, 88, 154, .5) 80%);
  border-radius: 4px;
  display: inline-block;
  list-style-type: none;
  margin: 4px;
  padding: 0.5% 1%;
}

nav ul li:hover{
  background: linear-gradient(rgba(255, 255, 255, 0) 60%, rgba(233, 88, 154, .5) 60%);
}

.youtube {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 36px;
  margin-bottom: 36px;
}

.youtube iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 24px 12px;
  margin-top: 36px;
}

.card h3 {
  margin: 12px auto;
}

.card p {
  line-height: 1.2;
  margin-top: 6px;
}

.tag {
  background-color: var(--accentcolor);
  border-radius: 5px;
  display: inline-block;
  font-size: var(--f6);
  font-weight: bold;
  margin: 0 6px;
  padding: 2px 6px;
}

.tagB{
  background-color: var(--maincolor);
  border-radius: 5px;
  color: var(--basecolor);
  display: inline-block;
  font-size: var(--f6);
  font-weight: bold;
  margin: 0 6px;
  padding: 2px 6px;
}

.price tr td:nth-child(1) {
  width: 60%;
}

.price tr td:nth-child(2) {
  font-size: var(--f4);
}

.soldout{
  position: relative;
}

.soldout a img{
  opacity: 0.5;
}

.soldout figcaption{
  color: var(--white);
  font-size: 3rem;
  font-weight: bold;
  width: 100%;
  position: absolute;
  top:50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  vertical-align: middle;
}

.button{
  background: linear-gradient(rgba(255, 255, 255, 0) 0, rgba(233, 88, 154, .7) 0);
  border-radius: 4px;
  width: 200px;
  margin: 0 auto;
  text-align: center;
  transition: .3s;
}

.button:hover{
  background-color: var(--accentcolor);
}

.button p a{
  background: none;
  display: block;
  margin: 0;
  padding: 2% 0;
  width: 100%;
  height: 100%;
}

.sutuday{
  color: #7fbfff;
}

.sunday{
  color: #ff7f7f;
}

.googlemap {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 30px auto;
}

.googlemap iframe,
.googlemap object,
.googlemap embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.corona {
  grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
}

h6 {
  color: var(--white);
  text-align: center;
  padding: 2% 0;
}

/****************
モーダル
****************/

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #EEE;
  display: none;
  width: 80%;
  height: auto;
  max-width: 400px;
  padding: 36px 12px;
  z-index: 999;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.modal p {
  color: var(--brack);
  margin-bottom: 12px;
}

.modal p:nth-child(1) {
  margin-bottom: 36px;
}

.modal li a {
  color: var(--basecolor);
}

.modal li:nth-child(1) a {
  color: var(--white);
}

.modal span {
  font-size: 2rem;
  text-align: center;
  padding: 36px 0;
}

.modal_button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  margin: 12px auto;
  text-align: center;
  font-size: var(--f3);
}

.modal_button li {
  border-radius: 12px;
  padding: 12px;
  width: 30%;
  list-style-type: none;
}

.modal_button li:nth-child(1) {
  background-color: var(--accentcolor);
}

.close_modal {
  display: block;
  width: 100%;
  height: 100%;
}

.close_modal:hover {
  cursor: pointer;
}

@media screen and (min-width:500px) {

  .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
  }

  .contents {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 2%;
    padding-right: 2%;
  }

  header {
    background-position: center center;
    justify-content: space-between;
    background-size: contain,40%,60%,cover;
  }

  header .contents:nth-child(1) {
    background-image: url(img/bg03.svg);
    width: 60%;
    margin-left: auto;
  }

  header .contents:nth-child(2) {
    display: none;
  }

  header .contents:nth-child(3) {
    background-image: url(img/bg04.svg);
    width: 60%;
  }
  
  h1{
    font-size: calc(var(--f1) + 0.5vw);
  }

  nav {
    margin-top: 48px;
  }

  nav ul {
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  table {
    margin: 24px 0;
  }

  table td {
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 4%;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 24px 24px;
  }

  .price tr {
    display: flex;
    flex-flow: column nowrap;
  }


  .price tr td:nth-child(1) {
    width: 100%;
  }

  .price tr td:nth-child(2) {
    font-size: var(--fn);
    width: 100%;
    text-align: right;
  }

  .corona {
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  }

}
