/* v1のスタイルをbaseレイヤーに配置 */
@layer base {
  @import url("./style.cs");
}

/* v2のスタイル(レイヤー外なので最優先) */
.v2_slider {
  ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  li {
    height: 40px;
    max-width: 100px;
    img {
      object-fit: contain;
      width: 100%;
      height: 100%;
    }
  }

  /* PC版では6個目以降を非表示 */
  li:nth-child(n + 6) {
    display: none;
  }

  @media (max-width: 768px) {
    overflow: hidden;
    width: 100%;

    ul {
      justify-content: flex-start;
      animation: marquee 20s linear infinite;
      width: max-content;
    }
    li {
      flex-shrink: 0;
    }

    /* SP版では全て表示 */
    li:nth-child(n + 6) {
      display: block;
    }
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tab_compare_content {
  table.v2_compare_table {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

    .crown {
      width: clamp(1rem, 5.35vw, 2.3rem);
    }

    .compare_table_score {
      font-size: clamp(1rem, 4.19vw, 1.58rem);
      font-family: "Noto Sans JP", sans-serif;
      font-weight: bold;
    }

    span.compare_table_color-red {
      font-size: clamp(0.875rem, 3.26vw, 1.4rem);
      font-weight: 500;
      color: #1d2655;
      letter-spacing: 1;
      font-family: "Inter", sans-serif;
      font-optical-sizing: auto;
      font-style: normal;
      font-weight: bold;
    }

    a.compare_table_textlink {
      padding-block: 8px;
      line-height: 1.3;
      width: calc(100% - 8px);
    }

    a.compare_table_textlink:before {
      display: none;
    }

    a.compare_table_logobottomlink{
      font-size: 20px;
      color: #008ABF;
    }

    .feature {
      text-align: center;
      padding-inline: 0px;
      text-align: left;
    }

    .detail {
      padding-inline: 2px;
    }

    .ev_icon {
      width: clamp(1rem, 5.12vw, 2.2rem);
    }

    tr.first td span.__yellow {
      background: linear-gradient(transparent 50%, #ff6 50%);
    }

    .first {
      background: #fffae0;
    }

    .feature p {
      font-size:clamp(0.688rem, 0.356rem + 1.36vw, 1.375rem);
    }

    th {
      background: white;
      border-bottom: solid 1px #ddd;
    }
  }
}

.tab_compare_content table.compare_table th {
  background: white;
  border-bottom: solid 1px #ddd;
}

.compare_review ul li dl {
  border: 1px solid #d9d9d9;
}

.stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.info {
  padding-inline: 4px;
}

.stars .compare_table_score_starimg {
  width: unset;
  margin: unset;
  flex-shrink: 0;
}

.stars .compare_table_score_starimg img {
  width: clamp(0.875rem, 3.72vw, 1rem);
}
.stars .compare_table_score_starimg li {
  width: unset;
}

.stars {
  font-size: clamp(0.875rem, 3.26vw, 1rem);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  display: inline;
  color: #e869a0;
}

a.compare_table_logo_wrap {
  margin: 0 auto 5%;
}

.tab1:after {
  display: none;
}

table.compare_table tr td:not(:last-child):before,
table.compare_table tr td:not(:last-child):after {
  display: none;
}

@media screen and (max-width:768px) {
  .tab_compare_content {
    table.v2_compare_table {
      a.compare_table_logobottomlink{
        font-size: 10px;
      }
    }
  }
}

/* 条件別に探すセクション */
.search_by_condition {
  padding: 60px 20px;
  background-color: #fff;
}

.search_by_condition_title {
  display: inline-block;
  position: relative;
  height: 50px;
  line-height: 50px;
  text-align: center;
  padding: 0 30px;
  font-size: 18px;
  background: #00b8bf;
  color: #FFF;
  box-sizing: border-box;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
  .search_by_condition_title {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    padding: 0 25px;
    margin-bottom: 30px;
  }
}

.search_by_condition_title:before,
.search_by_condition_title:after {
  position: absolute;
  content: '';
  width: 0px;
  height: 0px;
  z-index: 1;
}

.search_by_condition_title:before {
  top: 0;
  left: -1px;
  border-width: 25px 0px 25px 15px;
  border-color: transparent transparent transparent #fff;
  border-style: solid;
}

@media screen and (max-width: 768px) {
  .search_by_condition_title:before {
    border-width: 20px 0px 20px 12px;
  }
}

.search_by_condition_title:after {
  top: 0;
  right: -1px;
  border-width: 25px 15px 25px 0px;
  border-color: transparent #fff transparent transparent;
  border-style: solid;
}

@media screen and (max-width: 768px) {
  .search_by_condition_title:after {
    border-width: 20px 12px 20px 0px;
  }
}

.search_by_condition_box {
  max-width: 800px;
  margin: 0 auto 40px;
}

.search_by_condition_subtitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #333;
}

@media screen and (max-width: 768px) {
  .search_by_condition_subtitle {
    font-size: 18px;
    margin-bottom: 15px;
  }
}

.search_by_condition_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .search_by_condition_list {
    gap: 10px;
  }
}

.search_by_condition_button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: #f3f3f3;
  border: 2px solid #00b8bf;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
  font-weight: normal;
  transition: all 0.3s ease;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .search_by_condition_button {
    padding: 12px 15px;
    font-size: 14px;
  }
}

.search_by_condition_button::after {
  content: ">";
  font-size: 20px;
  flex-shrink: 0;
  margin-left: 10px;
  font-weight: bold;
  color: #008ABF;
}

@media screen and (max-width: 768px) {
  .search_by_condition_button::after {
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  .search_by_condition {
    padding: 40px 15px;
  }
}