/* ===== block 1 (from page-top.php) ===== */

/* 共通CSS（@font-face）でカバーできないDIN_2014のインポート記述のみ維持 */
@font-face {
  font-family: "DIN_2014";
  src:
    url("/assets/fonts/DIN2014-ExtraBold.woff2") format("woff2"),
    url("/assets/fonts/DIN2014-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* レイアウト構造上、最低限必要な固有スタイル */
.sokuhou_banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: block;
}

.sokuhou_banner img {
  width: 100%;
  height: auto;
  display: block;
}

.watch_select_wrap {
  margin-bottom: 3cqw;
  background-color: #efefef;
  padding: 1rem 0;
}

.watch_select_wrap p {
  text-align: center;
  margin-bottom: 2cqw;
}

.watch_wp_dropdown {
  margin: auto;
  width: 90%;
  max-width: 600px;
}

.card_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3cqw;
  margin-bottom: 5cqw;
}

@media (max-width: 767px) {
  .card_grid {
    width: 90%;
    grid-template-columns: repeat(1, 1fr);
    margin: auto;
  }
}

/* 買取価格カードのコンテナ・グリッド配置用 */
.watch_select-section .purchase_card {
  position: relative;
  padding-bottom: 3cqw;
  box-shadow: 4px 4px 0px var(--color-gray-medium);
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  /* 共通CSSで上書きされないよう固有指定 */
}

/* 日付リボン（固有デザイン構造） */
.watch_select-section .date_ribbon {
  position: absolute;
  top: 16px;
  left: -12px;
  padding: 0.4rem 1.2rem;
  z-index: 1;
}

.watch_select-section .date_ribbon::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0px;
  transform: translateY(10px);
  z-index: 2;
  border-top: 10px solid #700008;
  /* 折り返し影のみカラー固定 */
  border-left: 12px solid transparent;
}

/* 商品情報セクションの横並び構造 */
.watch_select-section .purchase_card__product-info {
  padding: 6cqw 3cqw;
  display: flex;
  gap: 9cqw;
  align-items: flex-start;
}

.watch_select-section .purchase_card__product-title {
  margin: 6cqw 0 3cqw;
  line-height: 1.5;
  text-align: left;
  padding-left: 7rem;
  word-break: break-all;
}

.watch_select-section .purchase_card__product-image {
  flex-shrink: 0;
  width: 40%;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.watch_select-section .purchase_card__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch_select-section .purchase_card__details {
  text-align: left;
  flex-grow: 1;
}

.watch_select-section .purchase_card__brand-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin: 5cqw 0;
}

.watch_select-section .purchase_card__item-details p {
  margin: 1cqw 0;
  line-height: 1.4;
}

/* 買取価格セクション（最下部への固定構造） */
.watch_select-section .purchase_card__price-section {
  padding: 3cqw 0 1cqw;
  width: fit-content;
  margin: auto;
  margin-top: auto;
  /* 他の要素の高さがバラバラでも最下部に揃える設定 */
}

.watch_select-section .purchase_card__price-value {
  margin: 0;
  line-height: 1;
  font-family: "DIN_2014", "sans-serif";
  font-size: 15cqw !important;
  /* コンテナ幅に対するジャストサイズ調整 */
}

/* ページネーション（コンポーネント構造のみ維持） */
.watch_select-section .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3cqw;
  margin-bottom: 5cqw;
}

.watch_select-section .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 8cqw;
  height: 8cqw;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.watch_select-section .page-numbers.dots,
.watch_select-section .page-numbers.prev,
.watch_select-section .page-numbers.next {
  border: none;
  background-color: transparent;
  width: auto;
  height: auto;
}

.watch_select-section .page-numbers.prev::before,
.watch_select-section .page-numbers.next::before {
  content: "";
  display: block;
  width: 2cqw;
  height: 2cqw;
  border-style: solid;
  border-color: transparent;
}

.watch_select-section .page-numbers.prev::before {
  border: 0;
  border-bottom: solid 2px var(--color-red);
  border-left: solid 2px var(--color-red);
  transform: rotate(45deg);
}

.watch_select-section .page-numbers.next::before {
  border: 0;
  border-top: solid 2px var(--color-red);
  border-right: solid 2px var(--color-red);
  transform: rotate(45deg);
}

.btn__wrap {
  margin: 5cqw auto;
  width: fit-content;
}

.watch_select-section .empty_state {
  padding: 10cqw 0 30cqw;
  text-align: center;
}

.postform {
  background-color: #fff;
  font-weight: bold;
}

.purchase_card__disclaimer {
  margin-top: 2cqw;
}

/* ===== block 2 (from page-top.php) ===== */

.popular_brand_section img {
  max-width: 100%;
}

section.popular_brand_section {
  background-color: #f2f2f2;
  border-radius: 15px;
  padding: 0 4%;
  position: relative;
  padding-top: 36%;
  padding-bottom: 4%;
}

.products_area_content_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.products_area_content_wrap a {
  padding: 0 1%;
  background-color: #ffffff;
  display: flex;
  width: 48%;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 4%;
  border: 1px solid;
  border-radius: 15px;
  height: 130px;
  overflow: hidden;
  text-align: center;
}

.popular_brand_section .purchase_link_img_wrap {
  position: absolute;
  top: -1%;
  left: -2.7%;
}

.products_area_img_wrap {
  width: 40%;
  height: auto;
}

.products_area_img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.popular_brand_section_content {
  position: relative;
  z-index: 1;
}

img.b_arrow {
  width: 5%;
}

.popular_brand_text_area p:nth-child(1) {
  font-size: clamp(12px, 1.2vw, 1.2em);
  font-weight: 500;
  margin-bottom: 5%;
}

.popular_brand_text_area p:nth-child(2) {
  color: #797979;
  font-size: clamp(0.5em, 1vw, 1em);
}

.products_area_content_wrap a:hover .products_area_img_wrap img {
  transform: scale(1.1);
  transition: transform 0.6s ease;
}

.purchase_link_img_inner {
  position: relative;
}

img.purchase_link_img {
  position: absolute;
  width: 33%;
  right: 5%;
  top: -8%;
  z-index: 1;
}

.purchase_link_img_wrap_text_wrap {
  width: 65%;
  position: relative;
  top: 3em;
}

p.purchase_link_img_wrap_read {
  position: absolute;
  bottom: 2%;
  text-align: center;
  left: 10%;
  font-size: clamp(12px, 1.2vw, 1.2em);
}

.purchase_link_img_wrap_text {
  text-align: center;
  position: absolute;
  top: 13%;
  left: 45%;
  transform: translateX(-50%);
  color: #ffffff;
  font-weight: bold;
  line-height: 1.1;
  width: 100%;
}

.purchase_link_img_wrap_text p:nth-child(1) {
  font-size: clamp(0.5em, 3vw, 2em);
  letter-spacing: 5px;
}

.purchase_link_img_wrap_text p:nth-child(2) {
  font-size: clamp(0.5em, 4.5vw, 4em);
  letter-spacing: 5px;
}

.popular_brand_text_area {
  line-height: 1.2;
}

.popular_brand_section .btn__wrap {
  margin: 0rem auto 0;
}

.flex__content {
  padding: 0 !important;
}

.flex__content.active {
  padding: 0 !important;
}

@media (max-width: 767px) {
  .popular_brand_text_area_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }

  .products_area_content_wrap a {
    justify-content: space-evenly;
    height: auto;
    padding: 5% 3%;
    width: 49%;
    margin-bottom: 2%;
    position: relative;
    flex-direction: column;
  }

  .products_area_img_wrap {
    height: 10rem;
    width: auto;
    margin: auto;
    margin-bottom: 6%;
  }

  .popular_brand_text_area p:nth-child(1) {
    font-size: clamp(0.6em, 3.3vw, 1.5em);
  }

  .purchase_link_img_wrap_text p:nth-child(2) {
    font-size: 9vw;
  }

  .popular_brand_text_area p:nth-child(2) {
    font-size: 2vw;
  }

  section.popular_brand_section {
    overflow: inherit;
    padding-top: 59%;
  }

  .purchase_link_img_wrap_text_wrap {
    width: 95%;
    top: 2em;
    left: -2%;
  }

  img.purchase_link_img {
    width: 48%;
    right: 0%;
    top: -2%;
  }

  p.purchase_link_img_wrap_read {
    bottom: -11%;
    font-size: clamp(0.5em, 3.2vw, 1em);
    width: 55%;
  }

  .popular_brand_section .btn__wrap.btn__red {
    margin-top: 1%;
  }

  .purchase_link_img_wrap_text {
    left: 40%;
    top: 13%;
  }

  img.b_arrow {
    width: 10%;
    position: absolute;
    right: 10%;
  }

  .products_area_img_sp {
    width: 50%;
    margin: auto;
  }

  .popular_brand_text_area {
    height: 100%;
  }

  .purchase_link_img_wrap_text p:nth-child(1) {
    margin-bottom: 1.3%;
    font-size: clamp(0.5em, 4.7vw, 2em);
  }
}

/* ===== block 3 (from page-top.php) ===== */

@media (max-width: 767px) {
  .qa__list__q::before {
    border: none !important;
  }
}
