/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --radius: 12px;
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 28px; align-items: center; }

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTION ===== */
section { padding: 64px 0; }

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 28px;
  background: var(--primary);
  border-radius: 3px;
  flex-shrink: 0;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

/* ===== RANKING ===== */
.ranking-list { display: flex; flex-direction: column; gap: 20px; }

.rank-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  transition: box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.rank-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); }

.rank-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.rank-badge.gold   { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rank-badge.silver { background: linear-gradient(135deg, #94a3b8, #64748b); }
.rank-badge.bronze { background: linear-gradient(135deg, #b45309, #92400e); }
.rank-badge.default{ background: linear-gradient(135deg, #6366f1, #4f46e5); }

.rank-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.rank-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }
.stars span { color: var(--text-muted); font-size: 0.8rem; margin-left: 6px; }

.rank-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.btn-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-cta.accent { background: var(--accent); }
.btn-cta.accent:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

.price-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.article-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.article-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-body { padding: 20px; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: #dbeafe;
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.article-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* ===== PICKUP BANNER ===== */
.pickup-banner {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 40px 0;
}

.pickup-icon { font-size: 3rem; flex-shrink: 0; }

.pickup-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pickup-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--text);
  color: #94a3b8;
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo span { color: var(--accent); }

.footer-desc { font-size: 0.875rem; line-height: 1.8; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #94a3b8; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .rank-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .rank-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .pickup-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== MAROX ARTICLE PAGES ===== */
.marox-article {
  background: #f4ede3;
  color: #292524;
}

.marox-article header {
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid #e3d8c8;
  box-shadow: 0 2px 8px rgba(96, 73, 44, 0.06);
  backdrop-filter: blur(18px);
}

.marox-article nav a { color: #70675e; }
.marox-article nav a:hover { color: #b45309; }

.article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(180,83,9,0.07) 1px, transparent 0) 0 0 / 28px 28px,
    linear-gradient(150deg, #faf8f5 0%, #f2e7d8 55%, #e9d9c5 100%);
}

/* 右側の装飾リング — 写真を入れると自然に隠れる */
.article-hero::after {
  content: '';
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1.5px solid rgba(180,83,9,0.13);
  box-shadow:
    0 0 0 36px rgba(180,83,9,0.04),
    0 0 0 72px rgba(180,83,9,0.025);
  z-index: 1;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(250,248,245,0.94), rgba(250,248,245,0.60) 50%, rgba(250,248,245,0.18)),
    linear-gradient(to bottom, rgba(250,248,245,0.05), rgba(250,248,245,0.50));
  z-index: 2;
}

/* 写真あり: フォトレイヤーを overlay の上に */
.article-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: transparent;
  filter: brightness(1.0) contrast(1.02);
  z-index: 3;
}

.article-hero-inner {
  position: relative;
  z-index: 4;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  padding: 130px 24px 70px;
}

.article-kicker {
  display: inline-flex;
  color: #b45309;
  border: 1px solid rgba(180,83,9,0.3);
  background: rgba(255,253,248,0.82);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.article-hero h1 {
  color: #1c1410;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.article-hero p {
  max-width: 680px;
  color: #57534e;
  line-height: 1.9;
}

.article-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.article-panel {
  background: #f8f5ef;
  color: #292524;
  border-radius: 14px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.32);
}

.article-panel h2 {
  font-size: 1.45rem;
  margin: 36px 0 12px;
}

.article-panel h2:first-child { margin-top: 0; }

.article-panel p,
.article-panel li {
  color: #57534e;
  line-height: 1.95;
  font-size: 0.96rem;
}

.article-panel ul {
  padding-left: 20px;
  margin: 12px 0 24px;
}

.product-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.product-slot {
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.product-slot strong {
  display: block;
  color: #292524;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.product-slot span {
  display: block;
  color: #78716c;
  font-size: 0.92rem;
  line-height: 1.7;
}

.used-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 30px;
}

.used-product {
  overflow: hidden;
  border: 1px solid #e7dcc7;
  border-radius: 14px;
  background: #fffaf0;
  box-shadow: 0 14px 34px rgba(68, 45, 18, 0.08);
}

.used-product img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f4ede3;
}

.used-product-body {
  padding: 16px 18px 18px;
}

.used-product-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.88rem;
  font-weight: 800;
}

.used-product h3 {
  margin: 0 0 8px;
  color: #292524;
  font-size: 1.05rem;
  line-height: 1.55;
}

.used-product p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
}

.affiliate-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.affiliate-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.affiliate-btn.amazon {
  background: #ff9900;
  color: #fff;
}
.affiliate-btn.rakuten {
  background: #bf0000;
  color: #fff;
}

.article-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.article-link-btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: #f59e0b;
  color: #0c0a09;
  font-weight: 900;
  font-size: 1rem;
}

.article-link-btn.secondary {
  background: #292524;
  color: #f5f5f4;
}

@media (max-width: 768px) {
  .article-hero { min-height: 460px; }
  .article-hero-bg { background-size: contain; }
  .article-hero::after { display: none; }
  .product-slots,
  .used-products { grid-template-columns: 1fr; }
}
