/* ===== 基本設定 ===== */
:root {
  --black: #111;
  --gray: #767676;
  --line: #e5e5e5;
  --bg-soft: #f6f6f6;
  --accent: #111;
  --pr: #b8860b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--black);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px 0;
  text-align: center;
}

.logo {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.12em;
}

.tagline {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.global-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  scrollbar-width: none;
}
.global-nav::-webkit-scrollbar { display: none; }
.global-nav a:hover { color: var(--gray); }

/* ===== 3列レイアウト（左広告 / 記事 / 右広告） ===== */
.layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.side-ad {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 広告枠（A8.netなどの広告コードをこの中に貼る） */
.ad-slot {
  background: var(--bg-soft);
  border: 1px dashed #ccc;
  color: #aaa;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ad-slot--sky { width: 160px; height: 600px; }
.ad-slot--rect { width: 300px; max-width: 100%; height: 250px; margin: 32px auto; }
.ad-label {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 4px;
}

/* スマホ・タブレット用の広告（記事の間に表示） */
.ad-mobile { display: none; }

/* 画面が狭いときは左右の広告を消して、記事の間に広告を出す */
@media (max-width: 1199px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-ad { display: none; }
  .ad-mobile { display: block; }
}

/* ===== トップページ ===== */
.section-title {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  border-bottom: 2px solid var(--black);
  padding-bottom: 8px;
  margin: 48px 0 24px;
}
.section-title:first-child { margin-top: 0; }

.feature {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  align-items: center;
}
.feature .thumb { aspect-ratio: 4 / 3; }
.feature h2 { font-size: 24px; line-height: 1.5; margin: 8px 0 12px; }
.feature p { font-size: 14px; color: var(--gray); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
}
.card .thumb { aspect-ratio: 4 / 5; margin-bottom: 10px; }
.card h3 { font-size: 14px; line-height: 1.6; font-weight: 600; }
.card:hover h3, .feature:hover h2 { text-decoration: underline; }

.meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.05em;
}
.meta .cat { color: var(--black); font-weight: 700; }
.pr-badge {
  border: 1px solid var(--pr);
  color: var(--pr);
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  line-height: 1.6;
}

/* 画像の仮置き（本番は<img>に差し替え） */
.thumb {
  background: linear-gradient(135deg, #ddd, #f2f2f2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 11px;
  letter-spacing: 0.15em;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.ranking { list-style: none; counter-reset: rank; }
.ranking li {
  counter-increment: rank;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.ranking li::before {
  content: counter(rank);
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 800;
  min-width: 28px;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
}

/* ===== 記事ページ ===== */
.article { max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 11px; color: var(--gray); margin-bottom: 16px; }
.article h1 { font-size: 26px; line-height: 1.5; margin: 10px 0 14px; }
.article .hero { aspect-ratio: 16 / 10; margin: 24px 0; }

.lead {
  background: var(--bg-soft);
  padding: 20px 24px;
  font-size: 15px;
  margin-bottom: 32px;
}
.lead strong { display: block; font-size: 12px; letter-spacing: 0.15em; margin-bottom: 6px; }

.article h2 {
  font-size: 20px;
  border-left: 4px solid var(--black);
  padding-left: 12px;
  margin: 48px 0 16px;
}
.article p { margin-bottom: 20px; font-size: 15px; }

/* アイテム紹介カード（アフィリエイトリンク用） */
.item-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  padding: 20px;
  margin: 24px 0;
}
.item-card .thumb { aspect-ratio: 1; }
.item-brand { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; color: var(--gray); }
.item-name { font-size: 16px; font-weight: 700; margin: 2px 0 6px; }
.item-price { font-size: 15px; margin-bottom: 12px; }
.btn {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.75; }

.pr-note {
  font-size: 11px;
  color: var(--gray);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .logo { font-size: 22px; }
  .global-nav { justify-content: flex-start; gap: 22px; }
  .article h1 { font-size: 21px; }
  .item-card { grid-template-columns: 1fr; }
  .item-card .thumb { max-width: 220px; margin: 0 auto; }
  .item-card .btn { display: block; text-align: center; }
}

/* ===== 固定ページ（運営者情報・プライバシーポリシーなど） ===== */
.page { max-width: 720px; margin: 0 auto; }
.page h1 { font-size: 24px; margin-bottom: 24px; }
.page h2 { font-size: 17px; margin: 32px 0 10px; }
.page p, .page li { font-size: 14px; margin-bottom: 10px; }
.page ul { padding-left: 20px; }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page th, .page td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; }
.page th { width: 30%; color: var(--gray); font-weight: 600; }

/* ===== フッター ===== */
.site-footer {
  background: var(--black);
  color: #fff;
  text-align: center;
  padding: 40px 16px;
  font-size: 12px;
}
.site-footer .logo { font-size: 20px; display: block; margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; }
.footer-links a { color: #ccc; }
.footer-sns { margin-bottom: 16px; }
.footer-sns a { color: #fff; font-weight: 700; letter-spacing: 0.05em; }
.copyright { color: #888; font-size: 11px; }
