/* 見逃したら損：スマホ優先。チャンネルの赤・金・黒に合わせ、読みやすさのため本文は白地 */
:root {
  --red: #c8141e;
  --red-dark: #8f0d14;
  --gold: #ffd038;
  --ink: #1c1008;
  --text: #1f1f1f;
  --muted: #666;
  --bg: #f7f5f2;
  --surface: #fff;
  --line: #e6e1da;
  --rakuten: #bf0000;
  --amazon: #ff9900;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
main { max-width: 960px; margin: 0 auto; padding: 0 16px 32px; }

.pr { margin: 0; padding: 6px 16px; background: var(--ink); color: #fff; font-size: 12px; text-align: center; }
.pr a { color: var(--gold); }

.site-header {
  background: radial-gradient(circle at 50% -40%, #e8432c 0%, var(--red) 45%, var(--red-dark) 100%);
  padding: 10px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; max-width: 960px; margin: 0 auto; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand span {
  color: var(--gold); font-weight: 900; font-size: 24px; letter-spacing: .02em;
  text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}

.hero { text-align: center; padding: 20px 0 8px; }
.hero h1 { font-size: 22px; margin: 0 0 4px; line-height: 1.4; }
.hero p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.search { display: flex; gap: 8px; margin: 12px 0; }
.search input {
  flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 2px solid var(--ink);
  border-radius: 999px; background: #fff;
}
.search button {
  font: inherit; font-weight: 700; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; cursor: pointer; min-height: 48px;
}

.band {
  display: inline-block; margin: 28px 0 12px; padding: 4px 14px; background: var(--ink); color: #fff;
  font-size: 18px; border-left: 6px solid var(--gold);
}
.page-title { font-size: 24px; margin: 20px 0 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: #fff; border: 2px solid var(--red); color: var(--red); font-weight: 700; text-decoration: none;
}

.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.card-body { padding: 12px 14px 16px; }
.card-buy { padding: 0 14px 14px; }
.card-buy .buttons { margin: 0; }
.card .placeholder { aspect-ratio: 16 / 9; } /* 画像がない間の文字の画像は横長にして、一度に多く見えるようにする */
.grid.compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .grid.compact { grid-template-columns: repeat(4, 1fr); } }
.compact .card-body { padding: 8px 10px 12px; }
.compact h3 { font-size: 15px; }
.compact p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.compact .placeholder { aspect-ratio: 1 / 1; padding: 8px; }
.compact .placeholder strong { font-size: 17px; }
.card h3 { margin: 2px 0 4px; font-size: 18px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--red); text-decoration: none; }

.visual { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.visual img { width: 100%; height: 100%; object-fit: contain; }
.video-thumb img { object-fit: cover; }
.visual .badge { position: absolute; left: 8px; top: 8px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.visual .credit { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: var(--muted); background: rgba(255,255,255,.8); padding: 0 4px; }
.placeholder {
  flex-direction: column; gap: 6px; padding: 16px; text-align: center;
  background: radial-gradient(circle at 50% 30%, #e8432c 0%, var(--red) 55%, var(--red-dark) 100%);
}
.placeholder span { color: #fff; font-size: 13px; font-weight: 700; }
.placeholder strong {
  color: var(--gold); font-size: 22px; line-height: 1.3; font-weight: 900;
  text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}
.affiliate-image { padding: 8px; }

.latest .grid { margin-top: 12px; }
.video { background: var(--surface); border-radius: var(--radius); padding: 12px; margin: 8px 0; }
.video-title { margin: 0 0 8px; font-weight: 700; }
.video-title small { display: block; color: var(--muted); font-weight: 400; }
.yt { position: relative; display: block; max-width: 320px; margin: 0 auto; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--red); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.yt iframe { width: 100%; height: 100%; border: 0; }
.sns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; justify-content: center; }
.sns a { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; }

.product { background: var(--surface); border-radius: var(--radius); padding: 0 0 20px; margin-top: 16px; overflow: hidden; }
.product > :not(.visual) { margin-left: 16px; margin-right: 16px; }
.product h1 { font-size: 24px; line-height: 1.4; margin: 4px 16px 4px; }
.product h2 { font-size: 18px; margin-top: 24px; border-left: 6px solid var(--gold); padding-left: 8px; }
.product .meta { color: var(--muted); font-size: 14px; margin-top: 0; }
.product .summary { font-size: 17px; }
.features { padding-left: 1.2em; }
.features li { margin: 4px 0; }
.note { font-size: 13px; color: var(--muted); }

/* 購入ボタン：楽天のHTMLは改変せず、外側からボタンの見た目にする */
.buttons { display: grid; gap: 10px; margin: 16px 0 8px; }
.buy a {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 16px;
  border-radius: 12px; font-size: 18px; font-weight: 800; text-decoration: none; text-align: center;
  background: var(--ink); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.buy-rakuten a { background: var(--rakuten); color: #fff; }
.buy-amazon a { background: var(--amazon); color: var(--ink); }
.buy-official a { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.buy img { display: none; } /* 楽天のテキストリンクに付く計測用の画像は表示しない（HTMLは改変しない） */
.buy a:active { transform: translateY(2px); box-shadow: none; }

.doc { background: var(--surface); border-radius: var(--radius); padding: 4px 16px 16px; margin-top: 16px; }
.doc h2 { font-size: 17px; margin-top: 20px; }
.button-link { display: inline-block; padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 700; }
.empty { color: var(--muted); }

.site-footer { background: var(--ink); color: #ddd; padding: 20px 16px 32px; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: 960px; margin: 0 auto 12px; }
.site-footer a { color: #fff; }
.site-footer p { max-width: 960px; margin: 6px auto; }
.foot-cats a { color: var(--gold); }

/* ASPのHTMLボタン：中のリンクは発行されたまま。上に「楽天で見る」を出し、ボタン全体を押せるようにする */
.buy-html {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 64px; padding: 8px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,.25); text-align: center;
}
.buy-html.buy-rakuten { background: var(--rakuten); }
.buy-html.buy-amazon { background: var(--amazon); color: var(--ink); }
.buy-html .buy-label { font-size: 18px; font-weight: 800; pointer-events: none; }
.buy-html a {
  display: block; min-height: 0; padding: 0; background: none; box-shadow: none; color: inherit;
  font-size: 12px; font-weight: 400; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.buy-html a::after { content: ""; position: absolute; inset: 0; } /* ボタンのどこを押してもリンクが開く */
.pr-note { margin: 0; font-size: 12px; color: var(--muted); }
