/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* --------------------------------------------------
   Blocksy Child Theme
   トップページの商品カード
-------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 14px 0 6px;
  line-height: 1.4;
  height: 48px;
  overflow: hidden;
}

.card-price {
  font-size: 20px;
  font-weight: bold;
  color: #e60023;
  margin-bottom: 4px;
}

.card-brand {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.compare-btn {
  width: 100%;
  padding: 10px;
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s ease;
}

.compare-btn:hover {
  background: #005fcc;
}

.compare-btn.selected {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.brand-filter{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-bottom:20px;
}

.brand-check{
font-size:14px;
}

.brand-dropdown{
position:relative;
display:block;
width:100%;
}

.brand-toggle{
appearance:none;
-webkit-appearance:none;
width:100%;
height:40px;
padding:0 12px;
border:1px solid #ddd;
border-radius:6px;
background:#f8fafc;
cursor:pointer;
font-size:14px;
text-align:left;
display:flex;
align-items:center;
justify-content:space-between;
}

.brand-toggle::after{
content:"▼";
font-size:10px;
color:#666;
margin-left:auto;
}

.brand-menu{
display:none;
position:absolute;
top:42px;
left:0;
width:100%;
box-sizing:border-box;
background:#fff;
border:1px solid #ddd;
border-radius:6px;
padding:12px;
max-height:240px;
overflow-y:auto;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
z-index:10;
}

.brand-menu.open{
display:block;
}

.brand-check{

display:block;
font-size:14px;
margin-bottom:8px;

}

/* --------------------------------------------------
   トップページ誘導、ランキング
-------------------------------------------------- */
.top-hero {
  text-align:center;
  margin-bottom:30px;
}

.top-recommend div {
  background:#fff;
  padding:10px;
  margin:6px auto;
  border-radius:8px;
  max-width:400px;
}

.ranking-section {
  margin:40px 0;
}

.rank-card {
  display:flex;
  gap:12px;
  background:#fff;
  padding:14px;
  border-radius:10px;
  margin-bottom:12px;
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.rank-card:first-child {
  border:2px solid #ff6b00;
}

.rank-num {
  font-size:20px;
  font-weight:bold;
  color:#ff6b00;
}

.buy-btn {
  display:block;
  margin-top:6px;
  padding:12px;
  background:#ff6b00;
  color:#fff;
  text-align:center;
  border-radius:8px;
  font-weight:bold;
}

.detail-btn {
  display:block;
  margin-top:6px;
  padding:10px;
  border:1px solid #ccc;
  text-align:center;
  border-radius:6px;
}

/* --------------------------------------------------
   フィルターUI
-------------------------------------------------- */

.product-controls{
display:flex;
flex-direction:column;
gap:12px;
margin-bottom:20px;
}

/* --------------------------------------------------
   右下の比較ウィンドウ
-------------------------------------------------- */

#compare-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  width: 220px;
  display: none;
}

#compare-items {
  font-size: 14px;
  margin-bottom: 10px;
}

#go-compare-btn {
  display: block;
  background: #007aff;
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
}

/* ミニカード */
.mini-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.mini-title {
  font-size: 12px;
  line-height: 1.2;
}

.mini-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

/* --------------------------------------------------
   素材・特徴（リスト）
-------------------------------------------------- */
.compare-list {
  margin-top: 0;
  margin-bottom: 8px;
  padding-left: 18px;
}

.compare-list li {
  margin-bottom: 2px;
  line-height: 1.3;
}


/* --------------------------------------------------
   楽天ボタン Yahooボタン
-------------------------------------------------- */

.compare-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 10px 0;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* =========================
   ショップボタン
========================= */

.shop-buttons{
display:flex;
flex-direction:column;
gap:8px;
margin-top:6px;
}

.shop-btn{
display:flex;
align-items:center;
justify-content:center;
gap:6px;

padding:10px 12px;
border-radius:8px;

font-size:14px;
font-weight:600;

text-decoration:none;
color:#fff;

transition:all .2s;
}

/* 楽天 */

.shop-btn.rakuten{
background:#bf0000;
}

.shop-btn.rakuten:hover{
background:#990000;
}

/* Yahoo */

.shop-btn.yahoo{
background:#2a7de1;
}

.shop-btn.yahoo:hover{
background:#1c64c7;
}

/* Amazon */

.shop-btn.amazon{
background:#ff9900;
}

.shop-btn.amazon:hover{
background:#e88a00;
}

/* アイコン */

.shop-icon{
width:18px;
height:18px;
object-fit:contain;
}

@media (max-width:768px){

.shop-btn{

font-size:15px;
padding:12px;

}

}

/* =========================
   最安値表示
========================= */

.lowest-price-box{

font-weight:700;
color:#bf0000;

background:#fff3f3;

border:1px solid #ffd5d5;

border-radius:8px;

padding:8px;

text-align:center;

font-size:15px;

}

/* 最安値ショップ強調 */

.shop-btn.best-price{

box-shadow:0 0 0 2px #ffcc00;

transform:scale(1.03);

}

/* 最安値CTA */

.shop-btn.best-cta{

background:#ffcc00;
color:#000;
font-weight:700;
font-size:15px;

}

.shop-btn.best-cta:hover{

background:#ffb800;

}

/* =========================
   比較ページレイアウト
========================= */

.compare-layout{
display:flex;
gap:30px;
align-items:flex-start;
}

/* サイドバー */
.compare-sidebar{
width:240px;
flex-shrink:0;
position:sticky;
top:120px;
height:fit-content;
}

/* PC 表示項目 */
.sidebar-checklist{
display:flex;
flex-direction:column;
gap:6px;
}

.sidebar-checklist label{
display:block;
font-size:14px;
}

/* メイン */
.compare-main{
flex:1;
}

.compare-radar{
width:260px;
height:260px;
margin:auto;
}

/* 総合評価中央 */
.field-total_score{
text-align:center;
}

/* 画像中央 */
.field-image{
text-align:center;
}

/* 画像サイズ */
.mobile-img{
    display:block;
    margin:0 auto;
    max-width:120px;
}

/* レーダーチャート */
.compare-radar{
width:260px;
margin:auto;
}

.compare-radar-wrap{
display:flex;
gap:40px;
margin-top:40px;
flex-wrap:wrap;
}

.radar-item{
width:300px;
text-align:center;
}

.radar-title{
font-size:14px;
margin-bottom:10px;
}

/* ×ボタン */
.compare-head{
position:relative;
}

.compare-remove{

position:absolute;
top:4px;
right:6px;

font-size:18px;
cursor:pointer;

display:none;
}

.compare-head:hover .compare-remove{

display:block;

}

/* =========================
   比較商品なし
========================= */

.compare-empty{

text-align:center;
padding:80px 20px;
max-width:420px;
margin:0 auto;

}

.compare-empty-text{

font-size:18px;
margin-bottom:20px;

}

.compare-select-btn{

display:inline-block;
background:#333;
color:#fff;
padding:14px 28px;
border-radius:8px;
text-decoration:none;
font-weight:600;

}

.compare-select-btn:hover{

background:#111;

}

/* ============================
   横スクロールテーブル（PC/スマホ共通）
============================ */

/* @media を外してここに移動 ↓ */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
}

.compare-table-mobile {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
  font-size: 14px;
}

.compare-table-mobile th,
.compare-table-mobile td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.compare-table-mobile th:first-child {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 3;
  border-right: 1px solid #ddd;
  min-width: 110px;
}

.compare-table-mobile thead th {
  background: #f5f7fa;
  text-align: center;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 2px solid #ddd;
}

.compare-table-mobile thead th:first-child {
  z-index: 5;
}

.compare-table-mobile td:nth-child(even) {
  background: #fcfcfc;
}

.compare-table-mobile td {
  white-space: normal;
  font-weight: 500;   /* ← 2つのメディアクエリを1つにまとめる */
}

.compare-table-mobile td strong,
.compare-table-mobile td .compare-price {
  color: #e60023;
  font-weight: 700;
  font-size: 16px;
}

.mobile-img {
  width: 120px;
  display: block;
  margin: 0 auto;
}

.compare-link {
  display: block;
  text-align: center;
  padding: 10px;
  background: #e60023;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 6px;
  text-decoration: none;
}

.compare-table-mobile tr:hover td {
  background: #f9fbff;
}


/* ============================
   比較ページだけ完全フル幅
============================ */
@media (max-width: 768px) {

  /* テーマコンテナ制限解除 */
  .ct-container,
  .container,
  .site-container,
  .content-area,
  .site-main {
    max-width: 100vw !important;
    width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 比較エリアも強制フル幅 */
  #compare-result,
  .compare-area,
  .table-scroll {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }

}

/* ============================
   スマホ固定CTA
============================ */
@media (max-width: 768px) {

  .mobile-fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #e60023;
    padding: 12px 16px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  }

  .mobile-fixed-cta a {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: block;
  }

  /* ボタンに隠れないよう余白追加 */
  #compare-result {
    padding-bottom: 70px;
  }
}

.star-wrap{
display:inline-flex;
gap:2px;
}

.star{
width:18px;
height:18px;
}

.mobile-filter{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-bottom:10px;
font-size:14px;
}

/* =========================
   モバイル フィルターUI
========================= */
@media (max-width:768px){

.mobile-filter{
display:flex;
flex-wrap:wrap;
gap:8px;
margin:10px 10px 15px;
}

/* チップ */
.mobile-filter label{
display:inline-flex;
align-items:center;
cursor:pointer;
}

/* ボタンデザイン */
.mobile-filter label span{
display:inline-block;
padding:8px 14px;
border-radius:20px;
border:1px solid #ddd;
background:#f7f7f7;
font-size:13px;
font-weight:500;
line-height:1;
transition:all .2s;
}

/* チェックボックス非表示 */
.mobile-filter input{
display:none;
}

/* ON状態 */
.mobile-filter input:checked + span{
background:#4CAF50;
border-color:#4CAF50;
color:#fff;
}

/* タップアニメーション */
.mobile-filter label:active span{
transform:scale(0.94);
}

/* hover（PCブラウザでスマホ幅確認時） */
.mobile-filter label:hover span{
background:#eee;
}

}

/* フィルター枠 */
.mobile-filter-wrap{
border:1px solid #e5e5e5;
border-radius:10px;
padding:12px;
margin-bottom:15px;
background:#fafafa;
}

/* タイトル */
.mobile-filter-title{
font-size:13px;
font-weight:600;
margin-bottom:8px;
color:#555;
}

@media (max-width:768px){

.compare-radar{
width:200px;
height:200px;
}

}

/* =========================
   スマホレイアウト
========================= */

@media (max-width:768px){

.compare-layout{
flex-direction:column;
}

.compare-main{
order:1;
}

/* サイドバーを上に */
.compare-sidebar{
width:100%;
position:static;
order:2;
margin-bottom:20px;
}

/* 並び替え */
.sidebar-select{
width:100%;
margin-bottom:10px;
}

/* フィルターを横並び */
.sidebar-checklist{
display:flex;
flex-direction:column;
gap: 6px;
}

/* フィルターチップ化 */
.sidebar-checklist label{
display:block;
align-items:center;
background:#f5f5f5;
border-radius:20px;
padding:6px 10px;
font-size:14px;
}

}

@media (max-width:768px){

}

/* =========================
   商品ページ
========================= */

.bc-single-wrap{
max-width:1100px;
margin:auto;
}

.bc-single-title{
font-size:28px;
font-weight:700;
margin-bottom:25px;
}

.bc-single-main{
display:flex;
gap:40px;
margin-bottom:30px;
flex-wrap:wrap;
}

.bc-single-image img{
max-width:420px;
width:100%;
}

.bc-single-buttons{
display:flex;
flex-direction:column;
gap:10px;
}

.bc-single-btn{
display:block;
padding:12px 16px;
border-radius:8px;
color:#fff;
text-align:center;
font-weight:600;
text-decoration:none;
}

.bc-rakuten{
background:#bf0000;
}

.bc-amazon{
background:#ff9900;
}

.bc-yahoo{
background:#2a7de1;
}

.bc-single-heading{
font-size:20px;
margin-top:40px;
margin-bottom:14px;
}

.bc-single-table{
width:100%;
border-collapse:collapse;
}

.bc-single-table th{
width:180px;
background:#fafafa;
padding:10px;
border:1px solid #eee;
text-align:left;
}

.bc-single-table td{
padding:10px;
border:1px solid #eee;
}

.bc-single-text{
line-height:1.7;
}

.bc-single-compare{
margin-top:40px;
}

.bc-compare-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
gap:18px;
align-items:stretch;
}

.bc-compare-card{
display:flex;
flex-direction:column;
justify-content:space-between;
background:#fff;
padding:14px;
border-radius:12px;
box-shadow:0 3px 10px rgba(0,0,0,0.08);
text-align:center;
text-decoration:none;
color:#333;
transition:all .2s;
height:100%;
}

.bc-compare-card:hover{
transform:translateY(-4px);
box-shadow:0 6px 20px rgba(0,0,0,0.12);
}

.bc-compare-img img{
width:100%;
height:140px;
object-fit:contain;
}

.bc-compare-title{
font-size:14px;
margin-top:8px;
font-weight:600;
}

.bc-compare-btn{
margin-top:8px;
background:#007aff;
color:#fff;
padding:6px;
border-radius:6px;
font-size:13px;
}

/* =========================
   ★ デザイン統一（最終上書き）
========================= */


section {
  margin-bottom: 40px;
}

/* コンテナ余白 */
.ct-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* 見出し統一 */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.03em;
}

h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

/* =========================
   ヒーロー強化
========================= */
.top-hero {
  background: #f7f9fc;
  padding: 40px 20px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.top-recommend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-recommend div {
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 10px;
}

/* =========================
   ランキング強化
========================= */
.rank-card {
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.rank-card:first-child {
  border: 2px solid #ff6b00;
}

.rank-content {
  flex: 1;
}

.rank-score {
  font-size: 13px;
  color: #777;
}

.rank-reason {
  font-size: 13px;
  color: #555;
}

/* =========================
   商品カード統一
========================= */
.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.product-card h3 {
  font-size: 15px;
  min-height: 44px;
  line-height: 1.4;
}

.product-card img {
  height: 200px;
  object-fit: contain;
}

.card-body {
  flex-grow: 1;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* =========================
   ボタン統一（超重要）
========================= */
.buy-btn {
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a18, #ff4d00);
}

.detail-btn {
  width: 100%;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #ddd;
}

/* =========================
   フィルター統一
========================= */
.product-controls {
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* =========================
   ボタン位置だけ揃える（安全版）
========================= */

/* タイトル高さを統一 */
.card-title {
  height: 48px;
  line-height: 1.4;
  overflow: hidden;
}

/* ボタン共通 */
.detail-btn,
.buy-btn,
.compare-btn {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

/* カード高さを軽く揃える（重要） */
.product-card {
  min-height: 420px;
}

.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
}

.compare-btnburog {
  display: block;
  text-align: center;
  background: #ff7a00;
  color: #fff;
  font-weight: bold;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
  text-decoration: none;
}

.top-articles {
  margin-top: 60px;
}

.article-card {
  margin-bottom: 20px;
}

.article-card img {
  width: 100%;
  border-radius: 10px;
}

/* =========================
   セクション背景デザイン
========================= */

/* 上部SEO */
.seo-top {
  background: #f8f9fb;
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* ファーストビュー */
.top-hero {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* 比較記事 */
.top-compare-articles {
  background: #f9fafc;
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* ランキング */
.ranking-section {
  background: #fff7f0;
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* 商品コントロール */
.product-controls {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* 商品一覧 */
.product-grid {
  background: #f8f9fb;
  padding: 40px 20px;
  border-radius: 12px;
}

/* =========================
   記事カード & ランキングカード
========================= */

/* 対象：記事カード・ランキングカードのみ */
.compare-article-card,
.rank-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

/* ホバー */
.compare-article-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* 記事画像 */
.compare-article-card img {
  width: 100%;
  border-radius: 10px;
}

/* タイトル */
.compare-article-card h3,
.rank-card h3 {
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.4;
}

/* ランキング番号 */
.rank-num {
  font-size: 18px;
  font-weight: bold;
  color: #ff6b00;
  margin-bottom: 6px;
}

/* ランキングカード内余白調整 */
.rank-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-left: 5px solid #ff6b00;
}

/* ランキング中身 */
.rank-content {
  flex: 1;
}

/* =========================
   レイアウト（2カラム）
========================= */

.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

/* サイドバー */
.sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* ボックス */
.sidebar-box {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* タイトル */
.sidebar-box h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* リンク */
.sidebar-box a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.sidebar-box a:hover {
  color: #ff6b00;
}

/* =========================
   CTA強化
========================= */

/* 購入ボタン */
.buy-btn {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a00, #ff3d00);
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: 0.2s;
}

/* ホバー */
.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 100, 0, 0.3);
}

/* 詳細ボタン（弱め） */
.detail-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: #f1f1f1;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.custom-footer-links {
  text-align: center;
  margin-top: 25px;
  line-height: 2;
}

.custom-footer-links a {
  margin: 0 12px;
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
}

.custom-footer-links a:hover {
  color: #fff;
}

/* =========================
   フッター（強化版）
========================= */

.site-footer {
  background: #111;
  color: #fff;
  padding: 50px 20px 30px;
  margin-top: 60px;
}

/* 横並び */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

/* カラム */
.footer-col h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #ccc;
}

/* 説明 */
.footer-desc {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}

/* リスト */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

/* コピー */
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 30px;
}

/* =========================
   ★ 全体のベース強化
========================= */

/* 背景 */
body {
  background: #f4f6f9;
}

/* テキスト全体 */
body, p {
  line-height: 1.7;
  color: #333;
}

/* セクション間余白を統一 */
section {
  margin-bottom: 40px;
}


/* =========================
   ★ グリッド統一（記事・商品）
========================= */

/* 記事一覧 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* 記事カード余白調整 */
.compare-article-card {
  padding: 12px;
}


/* =========================
   ★ カードの完成度アップ
========================= */

/* 共通カードにほんのり境界 */
.compare-article-card,
.rank-card,
.product-card {
  border: 1px solid #eee;
}

/* ホバー時に少し強調 */
.compare-article-card:hover,
.rank-card:hover,
.product-card:hover {
  transform: translateY(-6px);
}


/* =========================
   ★ 見出しの強化
========================= */

h2 {
  position: relative;
  padding-left: 12px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 70%;
  background: #ff6b00;
  border-radius: 2px;
}


/* =========================
   ★ セクションのメリハリ強化
========================= */

/* 比較記事 */
.top-compare-articles {
  border-left: 4px solid #4CAF50;
}

/* ランキング */
.ranking-section {
  border-left: 4px solid #ff6b00;
}

/* 商品一覧 */
.product-grid {
  border-left: 4px solid #007aff;
}


/* =========================
   ★ ボタン改善（クリック率UP）
========================= */

.buy-btn {
  font-size: 16px;
  letter-spacing: 0.03em;
}

.detail-btn {
  font-size: 14px;
}

/* 比較ボタンも強化 */
.compare-btn {
  font-weight: 600;
}


/* =========================
   ★ スマホ最適化（重要）
========================= */

@media (max-width:768px){

  /* セクション余白 */
  section {
    margin-bottom: 30px;
  }

  /* ヒーロー */
  .top-hero {
    padding: 25px 15px;
  }

  /* 見出し */
  h2 {
    font-size: 18px;
  }

  /* カード余白 */
  .product-card,
  .compare-article-card {
    padding: 12px;
  }

}

h2::before {
  display: none;
}

/* おすすめ商品 */
.product-card.featured {
  border: 2px solid #ff6b00;
  position: relative;
}

/* ラベル */
.product-card.featured::before {
  content: "おすすめ";
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6b00;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}