/* ==========================================
   店舗カードのスタイル
========================================== */

.shop_result_card {
  display: flex;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #ddd;
  gap: 25px;
  position: relative;
}

.shop_result_card:hover {
  cursor: pointer;
  opacity: 0.7;
}

/* バッジの共通スタイル */
.shop_badge {
  color: #fff;
  padding: 2px 8px;
  border-radius: 15px;
  --f-base: 6;
  display: inline-block;
  vertical-align: middle;
}

/* 買取バッジ独自の色と余白 */
.badge_buy {
  background-color: #e60012;
  margin-right: 5px;
}

/* 販売バッジ独自の色 */
.badge_sell {
  background-color: #cccccc;
}

.main_link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* 重なり順を下の方にする */
}

.shop_result_img {
  flex: 0 0 260px;
}

.shop_result_img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shop_result_body {
  flex: 1;
}

.shop_result_header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.shop_result_title {
  --f-base: 10;
  font-weight: bold;
  margin: 0;
  color: var(--color-main);
}

.shop_result_title a {
  color: var(--color-main);
  text-decoration: none;
}

.shop_result_title a:hover {
  text-decoration: underline;
}
.shop_result_badges {
  text-wrap-mode: nowrap;
}
.shop_result_info {
  --f-base: 6;
  line-height: 1.6;
  width: 90%;
}

.shop_result_card .info_row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.shop_result_card .icon_red {
  color: var(--color-main);
  width: 14px;
  text-align: center;
  margin-top: 3px;
}

.shop_result_card .tel_link {
  color: #00a0e9;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.shop_result_card .tel_link:hover {
  text-decoration: underline;
}

.shop_result_action {
  flex: 0 0 50px;
  display: flex;
  justify-content: center;
  position: absolute;
  right: 0;
}

.shop_result_action::after {
  content: "";
  width: 1.6cqw;
  height: 1.6cqw;
  border: 0;
  border-top: solid 2px #ffffff;
  border-right: solid 2px #ffffff;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  right: 40%;
  bottom: 0;
  margin: auto;
}

.shop_result_card .arrow_btn {
  width: 36px;
  height: 36px;
  background-color: var(--color-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.2s;
}

.shop_result_card .arrow_btn:hover {
  opacity: 0.8;
}

/* スマホ対応 */
@media (max-width: 1024px) {
  .shop_result_card {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .shop_result_img {
    flex: auto;
  }

  .shop_result_header {
    flex-direction: column;
  }

  .shop_result_title {
    --f-base: 22;
  }
  .shop_badge {
    --f-base: 12;
  }
  .shop_result_info {
    --f-base: 12;
  }

  .shop_result_action {
    bottom: 8cqw;
  }
  .shop_result_action::after {
    width: 2.6cqw;
    height: 2.6cqw;
  }
}
