/* ============================================================
   管理釣り場消耗品ポータル - 共通スタイル
   ============================================================ */

/* --- リセット & ベース --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #0d6efd;
  --primary-d:  #0a58ca;
  --accent:     #ff6b00;
  --accent-d:   #e05a00;
  --amazon:     #ff9900;
  --amazon-d:   #e68900;
  --rakuten:    #bf0000;
  --rakuten-d:  #990000;
  --success:    #198754;
  --bg:         #f8f9fa;
  --surface:    #ffffff;
  --border:     #dee2e6;
  --text:       #212529;
  --muted:      #6c757d;
  --radius:     8px;
  --shadow:     0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:  0 4px 20px rgba(0,0,0,.14);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- レイアウト --- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section    { padding: 48px 0; }
.section-sm { padding: 28px 0; }

/* --- ヘッダー --- */
.site-header {
  background: #1a2a1a;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo .logo-icon { font-size: 1.4rem; }
.site-logo:hover { text-decoration: none; color: #a8d5a2; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  color: #cce5cc;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
}
.nav-cta:hover { background: var(--accent-d) !important; }

.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* --- ヒーロー --- */
.hero {
  background: linear-gradient(135deg, #1a2a1a 0%, #2d4a2d 50%, #1a3d2b 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: .05em;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; line-height: 1.3; margin-bottom: 16px; }
.hero h1 span { color: #a8e6a3; }
.hero p  { font-size: 1rem; color: #cce5cc; max-width: 560px; margin: 0 auto 28px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .15s;
  line-height: 1;
  text-decoration: none !important;
}
.btn-primary  { background: var(--primary);  color: #fff; }
.btn-primary:hover  { background: var(--primary-d); color: #fff; }
.btn-accent   { background: var(--accent);   color: #fff; }
.btn-accent:hover   { background: var(--accent-d); color: #fff; }
.btn-amazon   { background: var(--amazon);   color: #111; }
.btn-amazon:hover   { background: var(--amazon-d); }
.btn-rakuten  { background: var(--rakuten);  color: #fff; }
.btn-rakuten:hover  { background: var(--rakuten-d); }
.btn-outline  { background: transparent; border: 2px solid currentColor; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Amazon/楽天 ペアCTA */
.dual-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.dual-cta .btn { flex: 1; min-width: 140px; justify-content: center; font-size: .88rem; padding: 10px 14px; }

/* --- セクション見出し --- */
.section-heading {
  text-align: center;
  margin-bottom: 36px;
}
.section-heading h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.section-heading p { color: var(--muted); margin-top: 10px; }

/* --- カテゴリカード --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none !important;
  color: var(--text);
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.cat-icon { font-size: 2.8rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cat-card p  { font-size: .82rem; color: var(--muted); }
.cat-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

/* --- 商品カード --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); }

.product-badge-wrap { position: relative; }
.product-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e9ecef;
}
.product-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .85rem;
  color: #fff;
}
.rank-1 { background: #ffd700; color: #333; }
.rank-2 { background: #adb5bd; }
.rank-3 { background: #cd7f32; }
.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-body { padding: 16px; }
.product-body h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.product-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.price-tag { font-size: 1.1rem; font-weight: 700; color: #c0392b; }
.price-sub { font-size: .78rem; color: var(--muted); }
.stars { color: #ffc107; font-size: .85rem; }
.review-count { font-size: .78rem; color: var(--muted); }

.product-desc { font-size: .82rem; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }

/* --- 比較テーブル --- */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 640px;
}
.compare-table th {
  background: #1a2a1a;
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table tr:nth-child(even) td { background: #f8f9fa; }
.compare-table tr:hover td { background: #e8f5e9; }
.recommend-row td { background: #fffbea !important; }
.recommend-row td:first-child { border-left: 4px solid var(--accent); }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
}
.tag-green { background: #d4edda; color: #155724; }
.tag-blue  { background: #cce5ff; color: #004085; }
.tag-orange{ background: #ffeaa7; color: #856404; }
.tag-red   { background: #f8d7da; color: #721c24; }

/* --- おすすめバナー --- */
.pickup-banner {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 2px solid var(--amazon);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pickup-icon { font-size: 3rem; flex-shrink: 0; }
.pickup-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.pickup-content p  { font-size: .85rem; color: var(--muted); }
.pickup-cta { margin-left: auto; }

/* --- ランキング --- */
.ranking-list { list-style: none; }
.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: box-shadow .2s;
}
.ranking-item:hover { box-shadow: var(--shadow-lg); }
.rank-num {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  min-width: 44px;
  text-align: center;
}
.rank-num.r1 { color: #ffc107; }
.rank-num.r2 { color: #adb5bd; }
.rank-num.r3 { color: #cd7f32; }
.rank-thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.rank-info { flex: 1; }
.rank-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.rank-info .why { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }

/* --- パンくず --- */
.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

/* --- バッジ類 --- */
.badge-consummable {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d4edda;
  color: #155724;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
.monthly-badge {
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* --- フッター --- */
.site-footer {
  background: #1a2a1a;
  color: #adb5bd;
  padding: 40px 0 24px;
  margin-top: 64px;
  font-size: .85rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.footer-desc  { font-size: .82rem; line-height: 1.7; }
.footer-nav h4 { color: #fff; font-size: .88rem; margin-bottom: 12px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a  { color: #adb5bd; font-size: .82rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  text-align: center;
  font-size: .78rem;
}
.affiliate-note {
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: .78rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* --- ユーティリティ --- */
.bg-white   { background: var(--surface); }
.bg-light   { background: #f0f4f0; }
.bg-dark    { background: #1a2a1a; color: #fff; }
.text-muted { color: var(--muted); }
.text-center{ text-align: center; }
.fw-bold    { font-weight: 700; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }

/* --- 収益施策: 固定バー --- */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a2a1a;
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,.3);
  font-size: .85rem;
}
.sticky-bottom-bar .sticky-text { flex: 1; }
.sticky-bottom-bar .sticky-btns { display: flex; gap: 8px; }
.sticky-close {
  background: none;
  border: none;
  color: #adb5bd;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #1a2a1a;
    padding: 12px;
    gap: 4px;
  }

  .hero { padding: 40px 0 36px; }
  .hero-btns { gap: 8px; }

  .footer-inner { grid-template-columns: 1fr; gap: 20px; }

  .compare-table th,
  .compare-table td { padding: 8px 10px; font-size: .8rem; }

  .pickup-banner { flex-direction: column; text-align: center; }
  .pickup-cta { margin-left: 0; width: 100%; }
  .pickup-cta .btn { width: 100%; justify-content: center; }

  .sticky-bottom-bar .sticky-text { display: none; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-body { padding: 12px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
}
