#wrapper {
  background-color: #f7f0eb;
  min-height: 100vh;
  position: relative;
  padding-bottom: 250px;
}

#main-rules {
  margin: 0 auto;
  padding: 8rem 0 8rem 0;
  width: 900px;
}

.main-rules-title {
  font-family: 'Hiragino Maru Gothic W4 JIS2004','M PLUS Rounded 1c', sans-serif !important;
}

.main-rules-desc {
  margin: 5rem 0 0 0;
}

.main-rules-desc-ul {
  padding-left: 1.5em;
}

.main-rules-desc-li-table {
  border-left: 1px solid #000000;
  border-top: 1px solid #000000;
  margin: .5em;
}

.main-rules-desc-li-th,
.main-rules-desc-li-td {
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
  padding: .2rem 2rem;
}

.main-rules-desc-li-th {
  font-weight: normal;
  text-align: center;
}

.main-rules-cancel-date {
  text-align: center;
}

.main-rules-cancel-percent {
  text-align: right;
}

.main-rules-desc-reserve {
  margin: 5rem auto 0 auto;
  text-align: center;
}

.main-rules-desc-reserve .btneffect {
  background: #aab235;
  border: 4px solid #b2aa35;
  border-radius: 3rem;
  font-family: 'Hiragino Maru Gothic W4 JIS2004','Zen Maru Gothic', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  height: 6rem;
  line-height: 5.0rem;
  padding: 0 !important;
  width: 200px;
}

.main-rules-desc-reserve .btneffect span {
  color: #ffffff;
}

.main-rules-desc-reserve .btneffect:hover span {
  color: #b2aa35;
}

.main-rules-desc-reserve .btneffect.bgright::before {
  background: #ffffff;
}

.main-rules-checkinout {
  margin: 2em 0 0 0;
}

.main-rules-checkinout-list {
  display: block;
}

.main-rules-checkinout-title {
  display: inline-block;
  width: 10em;
}

.main-rules-checkinout-annotation {
  display: block;
  padding: 0 0 0 1em;
  text-indent: -1em;
}

#footer {
  position: absolute;
  bottom: 0;
}

@media screen and (min-width: 1500px) {
  #wrapper {
    padding-bottom: 290px;
  }

  #main-rules {
    width: 1000px;
  }

  .main-rules-desc-reserve .btneffect {
    width: 250px;
  }
}

@media screen and (max-width: 640px) {
  #wrapper {
    padding-bottom: 290px;
  }

  #main-rules {
    font-size: 1.6rem;
    margin: 5rem auto;
    padding: 0 2rem;
    width: 100%;
  }

  .main-rules-desc-reserve .btneffect:hover span {
    color: #ffffff;
  }

  .main-rules-desc-reserve .btneffect.bgright::before {
    background-color: #aab235;
  }
}

@media screen and (max-width: 500px) {
  .main-rules-title {
    font-size: 2.4rem;
    line-height: 1.8rem;
  }
}

@media screen and (max-width: 410px) {
  #wrapper {
    padding-bottom: 360px;
  }
}

@media screen and (max-width: 360px) {
  .main-rules-title {
    font-size: 2.2rem;
    line-height: 1.6rem;
  }
}

/* ipad */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .main-rules-desc-reserve .btneffect:hover span {
    color: #ffffff;
  }

  .main-rules-desc-reserve .btneffect.bgright::before {
    background-color: #aab235;
  }
}