* {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
}

img {
  height: auto;
}

ul,
li {
  list-style: none;
}

.pc {
  display: block;
}

.sp {
  display: none !important;
}

h2 {
  margin-top: 20px;
  text-align: center;
  color: #111111;
}

@media screen and (max-width: 820px) {
  h2 {
    margin-top: 10px;
    font-size: 14px;
  }

  h2 img {
    width: 20px;
  }
}

.main-content {
  background: #ffffff;
  min-height: 100vh;
}

.special-1 {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow: hidden;
  z-index: 1;
}

.bg-blue-1 {
  position: absolute;
  top: 47%;
  transform: translateY(-50%);
  right: 0;
  width: 80%;
  height: 70%;
  /* background-color: #f8fcfc; */
  /* background-color: #27cece; */
  z-index: -1;
}

.pipe-line {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipe {
  height: 20px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.line {
  width: 50%;
  border: solid 1px #555555;
  border-left: none;
  border-top: none;
  border-bottom: none;
  z-index: 50;
}

.white {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  width: 20px;
  height: 30px;
  z-index: 49;
}

.green {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f1fffb;
  width: 20px;
  height: 30px;
  z-index: 49;
}

.blue {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fcfc;
  width: 20px;
  height: 30px;
  z-index: 49;
}

.white_blue {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5ffff;
  width: 20px;
  height: 30px;
  z-index: 49;
}

.content-1 {
  /* display: flex; */
  /* flex-wrap: wrap; */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 0 15% 50px 15%;
  padding: 30px;
  border: solid 1px;
  border-color: #555555;
  border-radius: 20px;
  justify-content: space-between;
  z-index: 0;
}

.card-1 {
  /* width: calc(70% / 5.5); */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.card-1 h3,
.card-1 p {
  width: 100%;
  /* margin: 10px 30px 10px 30px;*/
}

.card-1 a,
.card-1 a img {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
}

.card-1 h3 {
  border: solid 2px #109f98;
  padding-left: 5px;
  border-right: none;
  border-top: none;
  border-bottom: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* 表示したい行数 */
  overflow: hidden;
  color: #111111;
}

@media screen and (max-width: 840px) {
  .special-1 {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .content-1 {
    margin: 0 3% 20px 3%;
    padding: 20px;
    border-radius: 10px;
  }

  .card-1 h3,
  .card-1 p {
    /* margin: 5px 20px 5px 20px;*/
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .content-1 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.special-2 {
  display: flex;
  flex-direction: column;
  background-color: #f1fffb;
  padding-top: 50px;
  padding-bottom: 50px;
}

.content-2 {
  /* display: flex; */
  /* flex-wrap: wrap; */
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0 15% 50px 15%;
  padding: 30px 0;
  border: solid 1px;
  border-bottom: none;
  border-right: none;
  border-left: none;
  border-color: #555555;
  justify-content: flex-start;
  /* gap: 0.5%; */
  gap: 16px;
}

.lank {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to top left, transparent 50%, #fffb0c 50%);
  color: black;
  font-weight: bold;
  z-index: 20;
  text-align: center;
  width: 20%;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
  aspect-ratio: 1/1;
}

.lank-num {
  position: absolute;
  left: 15%;
  font-size: 16px;
}

@media screen and (max-width: 840px) {
  .lank-num {
    font-size: 2cqw;
  }
}

.card-2 {
  /* width: calc(100% / 7 - 10px); */
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.card-2 h3,
.card-2 p {
  width: 100%;
  /*margin: 10px 30px 10px 30px;*/
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-width: 600px;
  margin: 0 auto;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-2 a,
.card-2 a img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.card-2 h3 {
  border: solid 2px #109f98;
  padding-left: 5px;
  border-right: none;
  border-top: none;
  border-bottom: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* 表示したい行数 */
  overflow: hidden;
}

.osusume {
  font-size: 16px;
}

.osusume p {
  font-weight: normal;
}

/* add 20250608 */
.special-4 {
  display: flex;
  flex-direction: column;
  background-color: #f5ffff;
  padding-top: 50px;
  padding-bottom: 50px;
}

.content-4 {
  /* display: flex; */
  /* flex-wrap: wrap; */
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  margin: 0 15% 0px 15%;
  padding: 30px 0;
  justify-content: space-between;
  gap: 0.5%;
  border-top: 1px solid;
}

.content-4.pc {
  display: grid;
}

.content-4.sp {
  display: none;
}

.link {
  margin: 0 auto;
}

.bg-blue-3 {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  left: 0;
  width: 80%;
  height: 85%;
  background-color: #f5ffff;
  /* background-color: #27cece; */
  z-index: -1;
}

@media screen and (max-width: 840px) {
  .special-2 {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .content-2 {
    margin: 0 3% 20px 3%;
    padding: 20px 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .card-2 {
    /* width: calc(100% / 3 - 10px); */
  }

  .card-2 h3,
  .card-2 p {
    /*margin: 5px 20px 5px 20px;*/
    font-size: 14px;
  }

  .content-4 .card-1 {
    width: calc(100% / 3 - 10px);
  }

  .content-4.pc {
    display: none;
  }

  .content-4.sp {
    display: flex !important;
    margin: 0 3% 0px 3%;
    padding: 24px 0;
  }
}

.special-3 {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow: hidden;
  z-index: 1;
}

.bg-blue-2 {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  left: 0;
  width: 80%;
  height: 85%;
  background-color: #f8fcfc;
  /* background-color: #27cece; */
  z-index: -1;
}

.content-3 {
  margin: 0 15% 50px 15%;
  padding: 30px;
  border: solid 1px;
  border-color: #555555;
  border-radius: 20px;
  justify-content: space-between;
  z-index: 1;
}

.sub-cont {
  margin-top: 15px;
  margin-bottom: 15px;
}

.con-title {
  margin-bottom: 20px;
}

.list-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 2px solid #109f98;
  border-radius: 50px;
  overflow: hidden;
  /* ← はみ出さないように！ */
  background-color: #ffffff;
  color: #109f98;
}

.list-btn {
  padding: 5px 20px;
  font-weight: bold;
  font-size: 16px;
  color: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 840px) {
  .list-btn.showlist {
    padding-right: 30px;
  }
}

.btn-l {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #109f98;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.zone {
  /* display: flex; */
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding-bottom: 15px;
  flex-wrap: wrap;
  border: solid 1px;
  border-color: #555555;
  border-top: none;
  border-right: none;
  border-left: none;
  justify-content: flex-start;
  gap: 2.5%;
}

.sub-cont:last-of-type .zone {
  border-bottom: none;
}

.card-3 {
  /*width: 18%;*/
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.card-3 h4,
.card-3 p {
  width: 100%;
  /*margin: 10px 30px 10px 30px;*/
}

.card-3 a,
.card-3 a img {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
}

.con-title h3,
.card-3 h4 {
  border: solid 2px #109f98;
  padding: 0 10px 0 5px;
  border-right: none;
  border-top: none;
  border-bottom: none;
  color: #111111;
}

@media screen and (max-width: 840px) {
  .special-3 {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .content-3 {
    margin: 0 3% 20px 3%;
    padding: 20px;
    border-radius: 10px;
  }

  .con-title h3 {
    font-size: 14px;
  }

  .card-3 {
    /* width: calc(100% / 3 - 10px); */
  }

  .card-3 h4,
  .card-3 p {
    /* margin: 5px 20px 5px 20px;*/
    font-size: 14px;
  }

  .list-btn {
    margin-left: 5px;
    width: 90px;
    padding: 5px 10px 5px 10px;
    font-size: 12px;
  }

  .btn-l {
    width: 29px;
    height: 29px;
    border-radius: 50px;
    margin-left: -28px;
  }
}

@media screen and (max-width: 840px) {
  .zone {
    grid-template-columns: repeat(4, 1fr);
  }
}

.con-title,
.list-link,
.list-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  z-index: 10;
  margin-left: 10px;
}

.con-title {
  margin-bottom: 20px;
  margin-left: 0;
}

.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* 左矢印を、中央スライドの左側へ */
.slick-prev {
  left: 25vw;
  transform: translate(-150%, -50%);
  /* -150% は適宜調整 */
  width: 3vw;
}

/* 右矢印を、中央スライドの右側へ */
.slick-next {
  right: 25vw;
  transform: translate(150%, -50%);
  /* 150% は適宜調整 */
  width: 3vw;
}

.slick-next::before,
.slick-prev::before {
  font-size: 3vw;
  color: #000;
}

.description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.carousel {
  opacity: 0;
}

.carousel.slick-initialized {
  opacity: 1;
}

.new {
  position: absolute;
  top: -1%;
  left: -2%;
  width: 41%;
  background: linear-gradient(to top left, transparent 50%, #df0b75 50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: top left;
  container-type: inline-size;
  color: white;
  clip-path: polygon(0 60%, 60% 0, 100% 0, 0 100%);
  aspect-ratio: 1 / 1;
}

.new-text {
  position: absolute;
  color: #ffffff;
  font-weight: bold;
  font-size: 20cqw;
  text-align: center;
  line-height: 3em;
  transform: rotate(-45.5deg) translate(0%, -25%);
}

.carousel img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* テスト */

/* 「人気カテゴリー」のサムネ画像比率を1:1に変更 */
.content-1 .card-1 a,
.content-1 .card-1 a img {
  aspect-ratio: 1 / 1;
}

/* 「最近チェックした商品」のサムネ画像比率を3:2に変更 */
.content-4 .card-1 a,
.content-4 .card-1 a img {
  aspect-ratio: 3 / 2;
}

/* 「検索カテゴリー」のサムネ画像比率を1:1に変更 */
.content-3 .card-3 a,
.content-3 .card-3 a img {
  aspect-ratio: 1 / 1;
}

/*1/15 追加分*/
.slick-dots {
  position: absolute;
  bottom: 10px;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li button:before {
  font-size: 5px;
  color: white;
  opacity: 0.5;
  transition: all 0.3s;
}

.slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
  font-size: 14px;
}

@media screen and (max-width: 820px) {
  .slick-dots {
    display: none !important;
  }
}