/* ねこの手Online の見た目。色はアイコンの黄色と、元のブログの淡いクリーム色に合わせている */
:root {
  --text: #333;
  --muted: #6b6b6b;
  --bg: #fffdf7;
  --surface: #fff;
  --line: #ece4cf;
  --accent: #f6c445;
  --accent-soft: #fff6d6;
  --link: #1a5fd0;
  --frame-bg: #fffff0;
  --card-border: #9aa5b1;
  --pr-bg: #eee;
  --amazon: #f5a623;
  --amazon-text: #222;
  --rakuten: #bf0000;
  --rakuten-text: #fff;
  --radius: 12px;
  --content: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }

/* ---- ヘッダー ---- */
.site-header { background: var(--accent-soft); border-bottom: 3px solid var(--accent); }
.site-header-inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 16px 10px;
  display: flex; align-items: center; gap: 12px;
}
.site-logo img { width: 48px; height: 48px; border-radius: 50%; display: block; }
.site-title { margin: 0; font-size: 24px; line-height: 1.3; }
.site-title a { color: var(--text); text-decoration: none; }
.site-tagline { margin: 0; font-size: 13px; color: var(--muted); }
.site-nav { max-width: 1080px; margin: 0 auto; padding: 0 16px 10px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: bold; }
.site-nav a:hover { text-decoration: underline; }

/* ---- 本文の枠 ---- */
main { max-width: var(--content); margin: 0 auto; padding: 24px 16px 48px; }
main.wide { max-width: 1080px; }
.page-heading { font-size: 22px; margin: 8px 0 4px; }
.page-lead { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

/* ---- 記事一覧のカード ---- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card a.post-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.post-card a.post-card-link:hover .post-card-title { text-decoration: underline; }
.post-card-thumb { aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card-cat { font-size: 12px; color: var(--muted); }
.post-card-title { margin: 0; font-size: 16px; line-height: 1.5; }
.post-card-excerpt { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.post-card-date { margin-top: auto; font-size: 12px; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }

/* ---- 記事 ---- */
.post-cat { margin: 0; font-size: 13px; }
.post-cat a { color: var(--muted); }
.post-title { font-size: 26px; line-height: 1.45; margin: 4px 0 8px; }
.post-meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.pr-notice { display: inline-block; margin: 0 0 16px; padding: 2px 10px; font-size: 12px; background: var(--pr-bg); color: var(--muted); border-radius: 4px; }
.eyecatch { margin: 0 0 24px; }
.eyecatch img { width: 100%; border-radius: var(--radius); display: block; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 0 0 28px; font-size: 14px; }
.toc summary { font-weight: bold; cursor: pointer; }
.toc ol { margin: 8px 0 0; padding-left: 1.4em; }

.post-body h2 {
  font-size: 21px; line-height: 1.5; margin: 44px 0 16px; padding: 10px 14px;
  background: var(--accent-soft); border-left: 6px solid var(--accent); border-radius: 4px;
}
.post-body h3 { font-size: 18px; margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.post-body h4 { font-size: 16px; margin: 24px 0 8px; }
.post-body p { margin: 0 0 18px; }
.post-body figure { margin: 0 0 22px; }
.post-body figure img { border-radius: 8px; display: block; margin: 0 auto; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 1.5em; }
.post-body blockquote { margin: 0 0 18px; padding: 8px 16px; border-left: 4px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.post-body th { background: var(--accent-soft); }

/* 吹き出し */
.speech { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; }
.speech-icon { margin: 0; flex: 0 0 56px; }
/* 本文の画像の角丸（.post-body figure img）より優先させるため、.post-body から書く */
.post-body .speech-icon img { width: 56px; height: 56px; border-radius: 50%; display: block; }
.speech-balloon { position: relative; flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.speech-balloon p { margin: 0; }

/* ポイントの囲み */
.point-box { margin: 0 0 22px; padding: 12px 16px; background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: var(--radius); }
.point-label { margin: 0 0 4px !important; font-weight: bold; font-size: 14px; }
.point-box p:last-child { margin-bottom: 0; }

/* 動画 */
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 22px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* 商品カード。淡い黄色の枠の中に白いカード */
.pc-frame { margin: 24px 0; padding: 12px; background: var(--frame-bg); }
.product-card { display: flex; gap: 20px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); }
.pc-image { flex: 0 0 180px; text-align: center; }
.pc-image img { display: block; width: 180px; height: 180px; object-fit: contain; background: #fff; margin: 0 auto; }
.pc-noimage { width: 180px; height: 180px; display: grid; place-items: center; background: #f0f0f0; color: #999; border-radius: 8px; font-size: 13px; }
.pc-body { flex: 1; min-width: 0; }
.pc-pr { display: inline-block; padding: 0 8px; font-size: 12px; background: var(--pr-bg); color: var(--muted); border-radius: 4px; }
.post-body .pc-name { margin: 6px 0 4px; font-size: 15px; line-height: 1.5; }
.post-body .pc-desc { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.pc-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pc-btn { flex: 0 1 auto; display: block; padding: 4px 18px; text-align: center; font-weight: bold; font-size: 13px; text-decoration: none; border-radius: 999px; }
.pc-btn:hover { opacity: 0.85; }
.pc-amazon { background: var(--amazon); color: var(--amazon-text); }
.pc-rakuten { background: var(--rakuten); color: var(--rakuten-text); }

/* 関連記事 */
.related { margin-top: 48px; }
.related h2 { font-size: 18px; margin: 0 0 12px; }

/* ---- フッター ---- */
.site-footer { background: var(--accent-soft); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer-inner { max-width: 1080px; margin: 0 auto; padding: 20px 16px 28px; }
.site-footer ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 4px 0; }

/* ---- スマホ ---- */
@media (max-width: 600px) {
  .site-title { font-size: 20px; }
  .post-title { font-size: 22px; }
  .post-body h2 { font-size: 19px; }
  /* 商品カードは写真を上、文字とボタンを下に。ボタンは押しやすいよう横いっぱいに広げる */
  .product-card { flex-direction: column; align-items: stretch; }
  .pc-image { flex-basis: auto; }
  .pc-image img, .pc-noimage { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; margin: 0 auto; }
  .pc-btn { flex: 1 1 120px; padding: 8px 12px; }
}
