:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #2c2925;
  --sub: #6f6860;
  --line: #e7e0d6;
  --accent: #b65d36;
  --accent-dark: #8f4526;
  --soft: #f3ebe0;
  --hobby: #3d6fb6;
  --gadget: #3f8a7a;
  --fashion: #7a5537;
  --beauty: #c0587e;
  --health: #5b9a45;
  --fortune: #b8892c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.8;
  font-size: 16px;
  overflow-wrap: anywhere;
}
a { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.logo-mark { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.logo b { display: block; font-size: 19px; letter-spacing: .04em; line-height: 1.3; }
.logo small { display: block; font-size: 11px; color: var(--sub); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-link { color: var(--text); padding: 8px; border-radius: 50%; }
.search-link:hover { background: var(--soft); }
.cat-nav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; margin: 0 auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; white-space: nowrap; padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-size: 14px; }
.cat-nav a:hover { background: var(--soft); }

/* hero */
.hero { background: linear-gradient(135deg, #f6e7d6, #faf7f2 60%); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.hero-kicker { color: var(--accent); font-weight: 700; margin: 0 0 6px; letter-spacing: .08em; }
.hero h1 { font-size: clamp(22px, 4vw, 32px); line-height: 1.45; margin: 0 0 10px; }
.hero p { margin: 0; color: var(--sub); }

/* sections & cards */
main > section { margin-top: 48px; }
main > section.hero { margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head a { font-size: 14px; white-space: nowrap; }
.section-title { font-size: 20px; margin: 0 0 16px; padding-left: 12px; border-left: 5px solid var(--accent); line-height: 1.4; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 40, 20, .08); }
.card a { text-decoration: none; color: var(--text); display: block; height: 100%; }
.card-thumb { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.card-thumb img, .card-thumb .noimg { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font-size: 15px; line-height: 1.55; margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body time { font-size: 12px; color: var(--sub); }
.noimg { display: grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: .1em; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; padding: 1px 10px; border-radius: 999px; text-decoration: none; background: var(--sub); }
.chip-hobby, .noimg-hobby { background: var(--hobby); }
.chip-gadget, .noimg-gadget { background: var(--gadget); }
.chip-fashion, .noimg-fashion { background: var(--fashion); }
.chip-beauty, .noimg-beauty { background: var(--beauty); }
.chip-health, .noimg-health { background: var(--health); }
.chip-fortune, .noimg-fortune { background: var(--fortune); }
a.chip { color: #fff; }

/* breadcrumb */
.breadcrumb { font-size: 12px; color: var(--sub); padding-top: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: var(--sub); }
main > .breadcrumb + section, main > .breadcrumb + article { margin-top: 12px; }

/* post */
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 28px; margin-top: 12px; }
.pr-notice { font-size: 12px; color: var(--sub); background: var(--soft); border-radius: 8px; padding: 6px 12px; margin: 0 0 16px; }
.post-header h1 { font-size: clamp(21px, 3.6vw, 28px); line-height: 1.5; margin: 10px 0 8px; }
.post-meta { font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; }
.eyecatch { border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.eyecatch .noimg { aspect-ratio: 16 / 7; font-size: 22px; }
.toc { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; margin: 0 0 28px; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 8px 0 0; padding-left: 1.4em; font-size: 14px; }
.toc ul { list-style: none; padding-left: 1em; margin: 2px 0 4px; font-size: 13px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.post-body h2 { font-size: 21px; line-height: 1.5; margin: 44px 0 16px; padding: 10px 14px; background: var(--soft); border-left: 5px solid var(--accent); border-radius: 0 8px 8px 0; }
.post-body h3 { font-size: 18px; line-height: 1.5; margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.post-body strong { font-weight: 700; background: linear-gradient(transparent 65%, #f8dcc5 65%); }
.post-body h2 strong, .post-body h3 strong, .post-body td strong, .post-body th strong { background: none; }
.post-body img { border-radius: 8px; margin: 16px auto; }
.post-body figure { margin: 16px 0; }
.post-body figcaption { font-size: 12px; color: var(--sub); text-align: center; }
.post-body blockquote { margin: 20px 0; padding: 12px 16px; border-left: 4px solid var(--line); background: var(--bg); color: var(--sub); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.post-body table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; line-height: 1.6; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.post-body thead td, .post-body th { background: var(--soft); font-weight: 700; }
.page .post-body table { min-width: 0; }
.page .post-body th { width: 8em; text-align: left; }
.cta { text-align: center; margin: 24px 0; }
.btn-buy { display: inline-block; background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none; padding: 12px 28px; border-radius: 999px; box-shadow: 0 3px 0 var(--accent-dark); max-width: 100%; }
.btn-buy:hover { background: var(--accent-dark); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; font-size: 14px; }
.share span { color: var(--sub); }
.share a, .share button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 4px 14px; text-decoration: none; font: inherit; cursor: pointer; }
.author-box { display: flex; gap: 14px; margin-top: 28px; padding: 16px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.author-box p { margin: 4px 0; color: var(--sub); }
.author-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 22px; }
.related { margin-bottom: 20px; }

/* category / search / 404 */
.cat-header h1 { font-size: 26px; margin: 0; }
.cat-header p { color: var(--sub); margin: 4px 0 20px; }
.search-page input { width: 100%; font: inherit; font-size: 17px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); }
.search-page input:focus { outline: none; border-color: var(--accent); }
.search-count { color: var(--sub); font-size: 14px; }
.notfound { text-align: center; padding: 40px 16px; }

/* footer */
.site-footer { margin-top: 56px; background: #2f2a25; color: #d9d0c4; font-size: 13px; padding: 28px 0 20px; }
.site-footer a { color: #f1e6d8; }
.footer-pr { margin: 0 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.copy { margin: 0; color: #9c9186; }

@media (max-width: 600px) {
  .post { padding: 18px 16px 22px; border-radius: 0; border-left: 0; border-right: 0; }
  .post-body h2 { font-size: 19px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 8px 10px 10px; }
  .card-body h3 { font-size: 13px; }
  .logo small { max-width: 60vw; }
}
