a.btn-backtolist {
  max-width: 300px;
  margin: 10px auto;
  display: block;
  font-weight: bold;
  font-size: 16px;
  background: #222;
  padding: 7px 20px;
  color: #fff;
  border-radius: 40px;
  transition: 0.2s;
}

a.btn-backtolist:hover {
  background: #666;
}

a.btn-backtolist:focus {
  outline: none;
  text-decoration: none;
}

#special-content {
  min-height: 500px;
}

#itemlist > ul {
  display: flex;
  flex-wrap: wrap;
  margin: 20px auto 0;
  max-width: 1000px;
  min-height: 400px;
  transition: 0.5s;
  position: relative;
}

#itemlist > ul a:focus {
  outline: none;
  text-decoration: none;
}

#itemlist:not(.loaded) > * {
  opacity: 0;
}

.cplwrap {
  position: relative;
}

.cplwrap:not(:has(.loaded))::before {
  position: absolute;
  top: 50px;
  left: calc(50% - 20px);
  width: 40px;
  height: 40px;
  content: "";
  animation-name: spin;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  border: solid 5px;
  border-color: #999 #00000010 #00000010;
  border-radius: 50%;
}

.cplwrap:not(:has(.loaded))::after {
  position: absolute;
  top: 95px;
  left: 0;
  content: "読み込み中";
  font-size: 11px;
  color: #999;
  width: 100%;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#itemlist.loaded > ul > li {
  opacity: 1;
}

@media (max-width: 1199px) {
  #itemlist > ul {
    max-width: 750px;
  }
}

#itemlist > ul li {
  padding: 15px;
  text-align: left;
  max-width: 250px;
  width: 33.33%;
  position: relative;
  transition: 0.5s;
}

.item_name {
  font-size: 13px;
  color: #333;
  padding: 5px 0 0;
  min-height: 24px;
  max-height: 4.8em;
  overflow: hidden;
}

.item_price {
  font-size: 25px;
  font-weight: bold;
  color: #d91f1f;
  min-height: 37px;
}

.item_price small.tax {
  padding-left: 3px;
}

.item_price small {
  font-weight: bold;
}

h1 {
  font-weight: bold;
  font-size: 30px;
  color: #333;
  margin: 5px 0 0;
}

h2 {
  font-size: 23px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 5px;
  color: #333;
}

#couponname {
  font-size: 13px;
  display: inline-block;
  padding: 3px 20px 2px;
  background: #eee;
  border-radius: 30px;
  margin-top: 30px;
}

.coupon_price {
  background: #d91f1f;
  border: 1px solid #d91f1f;
  color: #fff;
  padding: 2px 7px 0px 5px;
  font-weight: bold;
  display: inline-block;
  font-size: 12px;
  border-radius: 3px;
  min-height: 20px;
  margin: 0 3px 3px 0;
}

.coupon_price span {
  display: inline-block;
  font-weight: bold;
}

.coupon_price span.limit {
  padding-right: 5px;
}

.coupon_period {
  font-size: 11px;
  min-height: 16px;
  color: #777;
  padding-top: 3px;
  min-height: 19px;
}

.item_link {
  display: block;
}

.item_link:hover {
  opacity: 0.7;
}

#itemlist:not(.loaded) > ul {
  opacity: 0;
  transition: 0.5s;
}

#itemlist.loaded > ul {
  opacity: 1;
  transition: 0.5s;
}

.cpfinished::before,
.cpnotstart::before,
.cpsold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 10;
  opacity: 0.5;
}

.cpnotstart::after {
  content: "開始前クーポンです\Aお楽しみに！";
  position: absolute;
  top: 40%;
  left: 10%;
  width: 80%;
  padding: 10px;
  text-align: center;
  z-index: 11;
  font-weight: bold;
  background: #222;
  opacity: 0.75;
  color: #fff;
  white-space: pre;
}

.cpfinished::after {
  content: "こちらのクーポンは\A終了しました！";
  position: absolute;
  top: 40%;
  left: 10%;
  width: 80%;
  padding: 10px;
  text-align: center;
  z-index: 11;
  font-weight: bold;
  background: #222;
  opacity: 0.75;
  color: #fff;
  white-space: pre;
}

.cpsold::after {
  content: "こちらのクーポンは\A完売しました！";
  position: absolute;
  top: 40%;
  left: 10%;
  width: 80%;
  padding: 10px;
  text-align: center;
  z-index: 11;
  font-weight: bold;
  background: #222;
  opacity: 0.75;
  color: #fff;
  white-space: pre;
}

#special-content {
  padding: 20px 0 !important;
  border: 0 !important;
}

@media (max-width: 991px) {
  #itemlist > ul > li:not(.cpnotstart) .period_start {
    display: none;
  }

  #itemlist > ul > li.cpnotstart .period_end {
    display: none;
  }
}

@media (max-width: 700px) {
  #itemlist > ul li {
    width: 50%;
    padding: 5px;
  }

  #itemlist > ul {
    max-width: 450px;
  }

  #main {
    padding: 0 !important;
  }

  #contents .container {
    padding: 0 !important;
  }

  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 20px;
  }

  .item_price {
    font-size: 20px;
    min-height: 20px;
  }
}
