html,
body {
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium",
    "游ゴシック", "Yu Gothic", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "Meiryo", "メイリオ", "ＭＳ Ｐゴシック", sans-serif;
  font-size: 62.5%; /* 元は62.5%=10px */
  margin: 0;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  font-size: 1.6rem;
  letter-spacing: 0.07em;
  background-color: #61A16C;
  transition: background-color 0.5s ease;
}
a {
  color: #ffffff;
}
.red_bg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #d84045;
  text-align: center;
  position: relative;
}

.s5img_wrapper {
  display: block;
  width: 120px;
  position: absolute;
  z-index: 99;
  text-align: center;
  top: 50px;
  right: 12%;
}

.s5img_wrapper img {
  display: block;
  width: 100%;
}

.s5img_wrapper p {
  font-size: 1.3rem;
  margin: 0 !important;
  font-weight: bold;
}

.s5_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.red_bg img {
  display: block;
  height: auto;
  margin-top: 20px;
}
.total-count strong {
  font-size: 150%;
  text-decoration: underline;
}

.wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.title_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
h1 {
  color: #ffffff !important;
  font-weight: normal !important;
}

.filters_wrapper {
  padding: 10px;
}
.filters h3 {
  margin-top: 20px;
}
.filters ul {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  margin: 0;
}
.filters a {
  padding: 5px;
}
ul.models {
  height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  margin-top: 20px;
}
.show-all {
  margin: 0 10px;
}
.manzoku-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.filter-box {
  border: solid 1px #ccc;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px !important;
}
.filter-box2 {
  border: solid 1px #ccc;
  background-color: rgba(255, 255, 255, 0.1);
}

.cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}
.card {
  height: auto;
  font-weight: bold;
  color: #ffffff;
  transition: opacity 0.5s ease;
  border-bottom: 1px #ffffff dashed;
}
.card img {
  max-width: 100%;
}
.info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.stars {
  color: #fef636;
  padding-left: 10px;
}
.text_right {
  text-align: right;
}

/* モバイルCSS */
@media (max-width: 768px) {
  a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .sp_noshow {
    display: none;
  }
  h1 {
    font-size: 1.6rem;
  }
  .red_bg img {
    width: 90%;
  }
  .total-count {
    font-size: 1.6rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
  }
  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 50px;
  }
  .filters_wrapper {
    width: 100%;
  }
  .filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.5s ease;
  }
  .filter-box2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 5px !important;
  }
  .filter-box2.open {
    max-height: 500px; /* 充分大きい値にする */
  }
  .card {
    width: auto;
    padding: 0;
    opacity: 0;
    transform: none;
    transition: none;
  }
  .card.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }
  .card.visible {
    opacity: 1;
    transform: none;
  }
  .accordion-btn {
    border: 0;
    background: none;
    color: #ffffff;
  }
}

/* デスクトップCSS */
@media (min-width: 769px) {
  .pc_noshow {
    display: none;
  }
  h1 {
    font-size: 1.8rem;
  }
  .red_bg img {
    width: 100%;
    max-width: 450px;
  }
  .total-count {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
  }
  .container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 50px;
  }
  .filters li.active {
    cursor: pointer;
    transition: background 0.3s;
  }
  .filters li.active:hover {
    background: #ddd;
  }
  .filter-box2 {
    padding: 10px !important;
  }
  .filters {
    width: 100%;
    height: fit-content;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.5s ease;
    padding: 10px 0;
  }
  #cards {
    overflow-y: auto;
  }
  .cards {
    min-width: 490px;
  }
  .card {
    width: 454px;
    padding: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .card.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }
  .card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .show-all {
    transition: background 0.3s;
  }
  .show-all:hover {
    background: #ddd;
  }
}
