:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --ink: #3b3531;
  --sub: #8a7f76;
  --line: #ece4da;
  --accent: #6f9e86;
  --accent-soft: #e6f1ea;
  --warm: #e9a27d;
  --warm-soft: #fcefe6;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16.5px; line-height: 1.9; letter-spacing: .02em;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* ヘッダー */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 760px; margin: 0 auto; padding: 14px 16px 0; text-align: center; }
.site-title { display: inline-block; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; line-height: 1.5; }
.site-title small { display: block; font-size: 12px; color: var(--sub); font-weight: 500; }
.site-nav { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; padding: 8px 0 6px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 4px 12px; border-radius: 99px; }
.site-nav a:hover { background: var(--accent-soft); }

main { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }

/* トップ */
.hero { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; font-size: 15px; }
.section-title { font-size: 18px; margin: 8px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 10px rgba(80, 60, 40, .06); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card .thumb { aspect-ratio: 16 / 9; background: var(--warm-soft) center / cover no-repeat; }
.card .c-body { padding: 12px 14px 14px; }
.card h3 { font-size: 15.5px; line-height: 1.55; margin: 0 0 6px; }
.card p { font-size: 13px; color: var(--sub); margin: 0; line-height: 1.6; }
.card time { font-size: 12px; color: var(--sub); }
.empty { text-align: center; color: var(--sub); padding: 40px 0; }

/* 記事 */
article.post { background: var(--card); border-radius: var(--radius); padding: 24px 20px 32px; box-shadow: 0 2px 10px rgba(80, 60, 40, .05); }
.post-title { font-size: 23px; line-height: 1.5; margin: 0 0 6px; }
.post-meta { font-size: 13px; color: var(--sub); margin-bottom: 18px; }
.post-eyecatch { border-radius: 12px; margin-bottom: 16px; display: block; }
.post-body h2 { font-size: 20px; line-height: 1.5; margin: 40px 0 16px; padding: 10px 14px; background: var(--accent-soft); border-left: 6px solid var(--accent); border-radius: 8px; }
.post-body h3 { font-size: 18px; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 2px dotted var(--accent); }
.post-body h4 { font-size: 16.5px; margin: 24px 0 8px; }
.post-body p { margin: 0 0 1.2em; }
.post-body strong { background: linear-gradient(transparent 62%, #ffe3a3 62%); }
.post-body img { border-radius: 10px; display: block; margin: 12px auto; }
.post-body hr { border: 0; border-top: 1px dashed var(--line); margin: 28px 0; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin: .2em 0; }
.post-body blockquote { margin: 1em 0; padding: 10px 16px; background: #f7f3ee; border-left: 4px solid var(--line); border-radius: 6px; color: #5d544d; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; -webkit-overflow-scrolling: touch; }
.post-body table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14.5px; line-height: 1.6; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.post-body th { background: var(--warm-soft); }

/* 吹き出し */
.balloon { display: flex; gap: 12px; margin: 18px 0; align-items: flex-start; }
.balloon.right { flex-direction: row-reverse; }
.b-person { flex: 0 0 64px; text-align: center; font-size: 11px; color: var(--sub); line-height: 1.3; }
.b-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: #fff; margin: 0 0 3px !important; }
.b-text { position: relative; background: #f6f2ec; border-radius: 14px; padding: 10px 14px; font-size: 15px; line-height: 1.75; min-width: 0; }
.balloon.right .b-text { background: var(--warm-soft); }
.b-text::before { content: ""; position: absolute; top: 20px; left: -8px; border: 8px solid transparent; border-left: 0; border-right-color: #f6f2ec; }
.balloon.right .b-text::before { left: auto; right: -8px; border-left: 8px solid var(--warm-soft); border-right: 0; }
.b-text p { margin: 0 0 .5em; } .b-text p:last-child { margin: 0; }

/* 囲み */
.box { border-radius: 12px; padding: 12px 16px; margin: 18px 0; font-size: 15px; }
.box p:last-child { margin-bottom: 0; }
.box-title { font-weight: 700; margin-bottom: 4px; }
.box.point { background: var(--accent-soft); }
.box.caution { background: #fff1ee; border: 1px solid #f3c7bb; }
.box.memo { background: #f6f2ec; }

/* もくじ */
.toc { background: #fbf8f3; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 20px 0 28px; font-size: 14.5px; }
.toc-title { font-weight: 700; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 1.4em; } .toc a { color: var(--ink); text-decoration: none; } .toc a:hover { color: var(--accent); }

/* 商品リンク */
.raw-html { margin: 16px 0; overflow-x: auto; }
.raw-box { border: 2px dashed var(--warm); border-radius: 12px; padding: 10px 14px; margin: 16px 0; font-size: 14px; background: var(--warm-soft); }

/* 執筆者 */
.author-box { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 16px; margin-top: 24px; font-size: 14px; line-height: 1.7; box-shadow: 0 2px 10px rgba(80, 60, 40, .05); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.author-box b { font-size: 15px; }
.insta-btn { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 99px; background: var(--accent); color: #fff; text-decoration: none; font-size: 13px; }
.more { margin-top: 32px; }

/* フッター */
.site-footer { text-align: center; font-size: 13px; color: var(--sub); padding: 24px 16px 40px; border-top: 1px solid var(--line); background: var(--card); }
.site-footer a { color: var(--sub); margin: 0 8px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  article.post { padding: 20px 16px 28px; border-radius: 0; margin: 0 -16px; box-shadow: none; }
  .post-title { font-size: 21px; }
  .post-body h2 { font-size: 18.5px; }
  .b-person { flex-basis: 54px; } .b-person img { width: 54px; height: 54px; }
}
