/* =============================================
   Reasons：REVLO 統一デザイン（2カラム維持版）
============================================= */

/* セクション全体の基本設定 */
.reasons .wrap--serviceIntro {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

/* リスト構造：PCで2カラム並び */
.reasonsList {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

/* 900px以上で2列にする */
@media (min-width: 900px) {
  .reasonsList {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* パネル本体：カラーを #58a0ca に統一 */
.reasonPanel {
  border-radius: 22px;
  overflow: hidden;
  background: #58a0ca; /* メインの青色 */
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  height: 100%; /* 高さを揃える */
}

/* 上部タイトルエリア */
.reasonPanel__top {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 15px;
  padding: 20px 20px 14px;
}

.reasonPanel__title {
  margin: 0;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: #ffe600; /* タイトルを黄色にして視認性アップ */
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* 破線の区切り */
.reasonPanel__divider {
  height: 8px;
  margin: 0 20px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.7) 0,
    rgba(255,255,255,0.7) 12px,
    transparent 12px,
    transparent 16px
  );
}

/* コンテンツエリア（画像とテキスト） */
.reasonPanel__content {
  padding: 16px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1.3fr; /* 画像を少し小さめ、テキストを広め */
  gap: 16px;
  align-items: center;
}

/* reason--reverse（PCで左右反転） */
.reason--reverse .reasonPanel__content {
  grid-template-columns: 1.3fr 1fr;
}
.reason--reverse .reasonPanel__img { order: 2; }
.reason--reverse .reasonPanel__text { order: 1; }

.reasonPanel__img img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: block;
}

.reasonPanel__text p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.7;
  font-size: 15px;
}

/* ハイライト */
.reasonPanel__text .hl {
  color: #ffe600;
  font-weight: 900;
}

/* REASON スタンプ（番号） */
.reasonStamp {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 4px solid rgba(255,255,255,0.9);
}

.reasonStamp__label {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.reasonStamp__num {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

/* =============================================
   スマホ対応（640px以下：縦積み1カラム）
============================================= */
@media (max-width: 640px) {
  .reasonPanel__top {
    grid-template-columns: 70px 1fr;
  }
  
  .reasonPanel__title {
    font-size: 18px;
  }

  .reasonStamp {
    width: 66px;
    height: 66px;
  }

  .reasonPanel__content {
    display: flex !important; /* スマホは縦並び */
    flex-direction: column !important;
    gap: 14px;
  }

  .reason--reverse .reasonPanel__img,
  .reason--reverse .reasonPanel__text {
    order: unset !important;
  }

  .reasonPanel__img { order: 1 !important; }
  .reasonPanel__text { order: 2 !important; }
}

/* =============================================
   BLOG Section (横並び・4:6比率版)
============================================= */
.blog {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.blogList {
  display: flex;
  flex-direction: column; /* カード自体は縦に積む */
  gap: 12px;
  max-width: 800px;
  margin: 10px auto 0;
}

.blogCard {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blogCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* リンク要素をフレックスボックスにして横並びにする */
.blogCard__link {
  display: flex;       /* 横並び */
  align-items: stretch; /* 高さを揃える */
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* 画像エリア（4割） */
.blogCard__thumb {
  margin: 0;
  width: 40%;        /* ★比率 4 */
  flex-shrink: 0;    /* 縮まないように固定 */
  position: relative;
  background: #eee;
  overflow: hidden;
}

.blogCard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠いっぱいにトリミングして表示 */
  vertical-align: bottom;
  transition: transform 0.3s ease;
}

.blogCard:hover .blogCard__thumb img {
  transform: scale(1.05);
}

/* テキストエリア（6割） */
.blogCard__content {
  width: 60%;        /* ★比率 6 */
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 上下中央寄せ */
}

/* 日付 */
.blogCard__meta {
  margin-bottom: 8px;
  font-size: 13px;
  color: #888;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* タイトル */
.blogCard__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  color: #333;
}

/* 抜粋文 */
.blogCard__excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  
  /* 2行以上は省略リーダー(...)にする設定 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   スマホ対応 (SP: 600px以下)
   スマホでは見づらくなるため、縦積みに戻すのが一般的ですが
   もしスマホでも「横並び」を維持したい場合は、
   以下の media query 内の指定を削除してください。
============================================= */
@media (max-width: 600px) {
  .blogCard__link {
    flex-direction: column; /* スマホでは縦積みに */
  }
  
  .blogCard__thumb {
    width: 100%;     /* 幅100% */
    height: 180px;   /* 高さを指定 */
  }
  
  .blogCard__content {
    width: 100%;
    padding: 16px;
  }
  
  .blogCard__title {
    font-size: 16px;
  }
}

/* =============================================
   スマホ対応 (SP: 600px以下)
   横並びレイアウトを維持しつつ、文字サイズなどを調整
============================================= */
@media (max-width: 600px) {
  
  /* 横並びを維持（縦積みにしない） */
  .blogCard__link {
    flex-direction: row; 
    align-items: stretch;
  }
  
  /* 画像エリア（4割維持） */
  .blogCard__thumb {
    width: 40%;
    height: auto; /* 高さは自動調整（または親要素に追従） */
    min-height: 110px; /* 画像が小さくなりすぎないよう最低高さを確保 */
  }
  
  .blogCard__thumb img {
    height: 100%;
    object-fit: cover;
  }
  
  /* テキストエリア（6割維持） */
  .blogCard__content {
    width: 60%;
    padding: 12px 14px; /* 余白をPCより少し狭くする */
  }
  
  /* スマホ用にフォントサイズを少し小さく調整 */
  .blogCard__title {
    font-size: 14px; /* タイトルを少し小さく */
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .blogCard__meta {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .blogCard__excerpt {
    font-size: 11px;
    line-height: 1.5;
    -webkit-line-clamp: 2; /* 2行で省略 */
  }
}

/* =============================================
   SALES RECORD Section (取引実績カルーセル)
============================================= */
.sales {
  padding: 60px 0;
  background: #fff;
  overflow: hidden; /* 横スクロールバーを出さない */
}

/* カルーセル全体 */
.salesCarousel {
  padding-bottom: 40px !important; /* ドット（ページネーション）用の余白確保 */
  width: 100%;
}

/* カード本体 */
.salesCard {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.salesCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* 画像エリア */
.salesCard__thumb {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3; /* 画像比率を4:3に固定 */
  position: relative;
  background: #f4f4f4;
}

.salesCard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠に合わせてトリミング */
  transition: transform 0.4s ease;
}

.salesCard:hover .salesCard__thumb img {
  transform: scale(1.05); /* ホバー時に画像を少しズーム */
}

/* プラットフォームバッジ（共通） */
.salesCard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 0.05em;
}

/* --- バッジの色分け設定 --- */

/* 海外（eBayなど）: 青 */
.badge--overseas {
  background: #0064D2;
}

/* メルカリ: 赤 */
.badge--mercari {
  background: #ea352d; 
}

/* ヤフオク: 黄色（文字色は黒） */
.badge--yahoo {
  background: #ffcc00;
  color: #111;
}

/* その他（国内） */
.badge--domestic {
  background: #333;
}

/* コンテンツエリア */
.salesCard__content {
  padding: 16px;
}

.salesCard__date {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* 商品名 */
.salesCard__name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.5;
  color: #333;
  
  /* 2行で省略リーダー(...)を表示 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3em; /* 高さ確保 */
}

/* 金額エリア */
.salesCard__priceArea {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px dashed #eee;
  padding-top: 10px;
}

.salesCard__label {
  font-size: 11px;
  color: #666;
  font-weight: bold;
}

.salesCard__price {
  font-size: 20px;
  font-weight: 900;
  color: #d32f2f; /* 赤文字 */
  margin: 0;
  font-family: sans-serif;
  letter-spacing: -0.02em;
}

/* Swiperのページネーション（点々）の色調整 */
.swiper-pagination-bullet-active {
  background: #58a0ca !important; /* メインカラーに合わせる */
}

/* =============================================
   スマホ対応 (SP)
============================================= */
@media (max-width: 600px) {
  /* スマホでは画像を少し横長（3:2）にして見やすくする */
  .salesCard__thumb {
    aspect-ratio: 3 / 2;
  }
  
  .salesCard__name {
    font-size: 14px;
  }
  
  .salesCard__price {
    font-size: 18px;
  }
}