/* ============================================================
   kuchiko ブログ 共通スタイル (blog.css)
   LPのデザイントークンを踏襲 / 長文SEO記事の可読性に最適化
   ============================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.95;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ----- Design Tokens (LP踏襲) ----- */
:root {
  --primary: #FF6B35;
  --primary-dark: #E85A24;
  --primary-light: #FF8F5E;
  --primary-glow: rgba(255, 107, 53, 0.22);
  --primary-soft: rgba(255, 107, 53, 0.08);
  --accent: #1A1A2E;
  --text: #232336;
  --text-secondary: #5a5a68;
  --text-light: #8a8a96;
  --bg: #fff;
  --bg-page: #FBFAF8;
  --bg-soft: #FAFAFA;
  --bg-warm: #FFF8F5;
  --border: #ECECEC;
  --border-warm: #F4E6DD;
  --blue: #4285F4;
  --green: #2BA84A;
  --green-soft: #EAF7ED;
  --red: #E0483B;
  --red-soft: #FCEEEC;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-sm: 0 2px 10px rgba(28,20,10,0.05);
  --shadow-md: 0 6px 26px rgba(28,20,10,0.07);
  --shadow-lg: 0 14px 50px rgba(28,20,10,0.10);
  --shadow-glow: 0 8px 30px var(--primary-glow);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 720px;
}

/* ----- Header ----- */
.bl-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.bl-header-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 60px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.bl-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 900; font-size: 19px; letter-spacing: -0.01em; color: var(--accent);
}
.bl-logo-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid; place-items: center; color: #fff; font-size: 15px;
  box-shadow: var(--shadow-glow);
}
.bl-header-cta {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--primary); padding: 9px 16px; border-radius: 50px;
  box-shadow: var(--shadow-glow); transition: transform .2s var(--ease-out), background .2s;
}
.bl-header-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ----- Layout ----- */
.bl-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.bl-article { padding-bottom: 40px; }

/* ----- Breadcrumb ----- */
.bl-crumb {
  font-size: 12.5px; color: var(--text-light);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 18px 0 6px;
}
.bl-crumb a { color: var(--text-secondary); transition: color .15s; }
.bl-crumb a:hover { color: var(--primary); }
.bl-crumb span.sep { opacity: .5; }

/* ----- Article Header ----- */
.bl-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 13px; border-radius: 50px; margin: 14px 0 16px;
}
.bl-title {
  font-size: clamp(25px, 6.4vw, 34px); line-height: 1.34;
  font-weight: 900; letter-spacing: -0.018em; color: var(--accent);
}
.bl-title .hl {
  background: linear-gradient(transparent 62%, var(--primary-glow) 62%);
  padding: 0 2px;
}
.bl-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 16px; font-size: 13px; color: var(--text-light);
}
.bl-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-light); }
.bl-hero {
  margin: 22px 0 6px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--bg-warm), #fff);
  position: relative;
}
.bl-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ----- 本文中の図解画像 (ふんだんに使う) ----- */
.bl-figure { margin: 28px 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); background: var(--bg-warm); }
.bl-figure img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.bl-figure figcaption { font-size: 12.5px; color: var(--text-light); padding: 10px 16px; background: #fff; text-align: center; border-top: 1px solid var(--border); }
/* セクション冒頭のワイド画像 */
.bl-sectimg { margin: 22px 0 8px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9; }
.bl-sectimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 2枚並べ */
.bl-imgrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.bl-imgrow figure { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.bl-imgrow img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

/* ----- TL;DR / Summary box (answer-first / AI Overview狙い) ----- */
.bl-tldr {
  margin: 26px 0; padding: 20px 22px;
  background: var(--bg-warm); border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg); position: relative;
}
.bl-tldr h2 {
  font-size: 15px; font-weight: 800; color: var(--primary-dark);
  margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
  border: none; padding: 0;
}
.bl-tldr ul { margin: 0; padding-left: 4px; list-style: none; }
.bl-tldr li {
  position: relative; padding-left: 26px; margin: 7px 0;
  font-size: 14.5px; line-height: 1.75; color: var(--text);
}
.bl-tldr li::before {
  content: '★'; position: absolute; left: 0; top: 1px;
  color: var(--primary); font-size: 13px;
}

/* ----- Table of Contents ----- */
.bl-toc {
  margin: 26px 0; padding: 18px 20px;
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.bl-toc-title { font-size: 13px; font-weight: 800; color: var(--text-secondary); margin-bottom: 10px; letter-spacing: .02em; }
.bl-toc ol { list-style: none; counter-reset: toc; }
.bl-toc li { counter-increment: toc; margin: 4px 0; }
.bl-toc a {
  display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary);
  padding: 4px 0; transition: color .15s; line-height: 1.6;
}
.bl-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--primary); font-weight: 800; font-size: 12px; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.bl-toc a:hover { color: var(--primary); }

/* ----- Body Typography ----- */
.bl-body { font-size: 16.5px; }
.bl-body > p { margin: 18px 0; color: var(--text); }
.bl-body h2 {
  font-size: clamp(21px, 5vw, 25px); font-weight: 900; letter-spacing: -0.01em;
  color: var(--accent); margin: 44px 0 16px; padding-top: 8px;
  line-height: 1.4; scroll-margin-top: 72px;
}
.bl-body h2 .num {
  display: inline-block; color: var(--primary); margin-right: 10px;
  font-size: 0.82em;
}
.bl-body h3 {
  font-size: clamp(17.5px, 4.2vw, 20px); font-weight: 800;
  color: var(--accent); margin: 30px 0 12px; line-height: 1.5;
  padding-left: 14px; border-left: 4px solid var(--primary); scroll-margin-top: 72px;
}
.bl-body h4 { font-size: 16px; font-weight: 800; color: var(--text); margin: 22px 0 8px; }
.bl-body strong { font-weight: 700; color: var(--accent); background: linear-gradient(transparent 64%, rgba(255,107,53,0.18) 64%); padding: 0 1px; }
.bl-body a:not(.bl-btn) { color: var(--primary-dark); font-weight: 600; border-bottom: 1px solid var(--primary-light); }
.bl-body a:not(.bl-btn):hover { background: var(--primary-soft); }
.bl-body ul, .bl-body ol { margin: 16px 0 16px; padding-left: 4px; }
.bl-body ul li, .bl-body ol li { position: relative; list-style: none; padding-left: 28px; margin: 9px 0; line-height: 1.85; }
.bl-body ul li::before {
  content: ''; position: absolute; left: 6px; top: 12px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--primary); transform: rotate(45deg);
}
.bl-body ol { counter-reset: li; }
.bl-body ol li { counter-increment: li; }
.bl-body ol li::before {
  content: counter(li); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 7px; background: var(--primary-soft);
  color: var(--primary-dark); font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}

/* ----- Callout / Quote ----- */
.bl-body blockquote {
  margin: 22px 0; padding: 16px 20px; background: var(--bg-soft);
  border-radius: var(--radius-md); border-left: 4px solid var(--text-light);
  color: var(--text-secondary); font-size: 15.5px;
}
.bl-point {
  margin: 22px 0; padding: 18px 20px 18px 52px; position: relative;
  background: var(--primary-soft); border-radius: var(--radius-md);
  font-size: 15.5px; line-height: 1.8;
}
.bl-point::before {
  content: '!'; position: absolute; left: 18px; top: 18px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 900; font-size: 14px; display: grid; place-items: center;
}
.bl-point b { color: var(--primary-dark); }

/* ----- Example boxes (Good / NG) ----- */
.bl-ex { margin: 18px 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.bl-ex-head { padding: 11px 16px; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.bl-ex-body { padding: 14px 16px; font-size: 15px; line-height: 1.85; background: #fff; color: var(--text); }
.bl-ex.good .bl-ex-head { background: var(--green-soft); color: var(--green); }
.bl-ex.good .bl-ex-head::before { content: '◎'; font-size: 16px; }
.bl-ex.bad .bl-ex-head { background: var(--red-soft); color: var(--red); }
.bl-ex.bad .bl-ex-head::before { content: '✕'; font-size: 15px; }

/* ----- Tables ----- */
.bl-table-wrap { margin: 22px 0; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.bl-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.bl-body th, .bl-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.bl-body thead th { background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px; }
.bl-body tbody th { background: var(--bg-warm); font-weight: 700; color: var(--accent); }
.bl-body tbody tr:last-child td, .bl-body tbody tr:last-child th { border-bottom: none; }
.bl-body td.hl { color: var(--primary-dark); font-weight: 700; }

/* ----- FAQ ----- */
.bl-faq { margin: 30px 0; }
.bl-faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin: 10px 0; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.bl-faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 50px 16px 18px; position: relative;
  font-weight: 700; font-size: 15px; color: var(--accent); line-height: 1.6;
}
.bl-faq-item summary::-webkit-details-marker { display: none; }
.bl-faq-item summary::before { content: 'Q'; color: var(--primary); font-weight: 900; margin-right: 9px; }
.bl-faq-item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--primary); font-weight: 300; transition: transform .25s;
}
.bl-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bl-faq-item .bl-faq-a { padding: 0 18px 16px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.85; }

/* ----- CTA card (kuchiko誘導) ----- */
.bl-cta {
  margin: 36px 0; padding: 30px 26px; border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #1A1A2E 0%, #2b2143 55%, var(--primary-dark) 130%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bl-cta::before { content: '★'; position: absolute; right: -10px; top: -14px; font-size: 110px; color: rgba(255,255,255,0.06); }
.bl-cta-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--primary-light); margin-bottom: 10px; }
.bl-cta h3 { font-size: clamp(19px, 5vw, 23px); font-weight: 900; line-height: 1.5; margin-bottom: 10px; color: #fff; border: none; padding: 0; }
.bl-cta p { font-size: 14px; color: rgba(255,255,255,0.82); margin-bottom: 20px; line-height: 1.8; }
.bl-btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 15.5px;
  padding: 14px 30px; border-radius: 50px; box-shadow: var(--shadow-glow);
  transition: transform .2s var(--ease-out), background .2s;
}
.bl-btn:hover { background: var(--primary-light); transform: translateY(-2px) scale(1.02); }
.bl-cta small { display: block; margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.6); }

/* ----- インラインCTA (本文の節々に散りばめる小さな誘導) ----- */
.bl-inline-cta {
  display: flex; align-items: center; gap: 13px;
  margin: 22px 0; padding: 13px 16px 13px 18px;
  background: linear-gradient(135deg, var(--primary-soft), var(--bg-warm));
  border: 1px solid var(--border-warm); border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
}
.bl-inline-cta::before { content: '★'; color: var(--primary); font-size: 15px; flex-shrink: 0; }
.bl-inline-cta-text { flex: 1; font-size: 14px; font-weight: 700; color: var(--accent); line-height: 1.65; }
/* .bl-body a:not(.bl-btn) より詳細度を高く+後置して、本文リンク色(オレンジ)/下線がCTAボタンを上書きしないようにする */
.bl-body .bl-inline-cta a {
  flex-shrink: 0; font-size: 13px; font-weight: 800; color: #fff; border-bottom: none;
  background: var(--primary); padding: 8px 15px; border-radius: 50px;
  white-space: nowrap; box-shadow: var(--shadow-glow);
  transition: background .2s, transform .2s var(--ease-out);
}
.bl-body .bl-inline-cta a:hover { background: var(--primary-dark); transform: translateY(-1px); }
@media (max-width: 480px) {
  .bl-inline-cta { flex-wrap: wrap; }
  .bl-inline-cta a { width: 100%; text-align: center; }
}

/* ----- Author / share ----- */
.bl-author { display: flex; align-items: center; gap: 12px; margin: 30px 0; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }
.bl-author-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; flex-shrink: 0; }
.bl-author-name { font-weight: 800; font-size: 14px; color: var(--accent); }
.bl-author-desc { font-size: 12.5px; color: var(--text-light); margin-top: 2px; }

/* ----- Related ----- */
.bl-related { margin: 40px 0 10px; }
.bl-related-title { font-size: 18px; font-weight: 900; color: var(--accent); margin-bottom: 16px; }
.bl-related-grid { display: grid; gap: 14px; }
.bl-card {
  display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
}
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-warm); }
.bl-card-cat { font-size: 11.5px; font-weight: 800; color: var(--primary); letter-spacing: .03em; }
.bl-card-title { font-size: 16px; font-weight: 800; color: var(--accent); line-height: 1.55; margin: 6px 0 6px; }
.bl-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.bl-card-arrow { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary); }

/* ----- 記事下部「ブログ一覧へ」ボタン ----- */
.bl-tolist { text-align: center; margin: 38px 0 6px; }
.bl-tolist-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: 50px;
  background: #fff; border: 2px solid var(--primary); color: var(--primary-dark);
  font-weight: 800; font-size: 15px;
  transition: background .2s var(--ease-out), color .2s, transform .2s;
}
.bl-tolist-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ----- Footer ----- */
.bl-footer { background: var(--accent); color: rgba(255,255,255,0.7); margin-top: 50px; padding: 36px 20px 28px; }
.bl-footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.bl-footer-logo { font-weight: 900; font-size: 20px; color: #fff; margin-bottom: 14px; }
.bl-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 18px; }
.bl-footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); transition: color .15s; }
.bl-footer-links a:hover { color: var(--primary-light); }
.bl-footer-copy { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ----- Article list (index) ----- */
.bl-hero-section { background: linear-gradient(160deg, var(--bg-warm), #fff 70%); border-bottom: 1px solid var(--border-warm); padding: 40px 0 34px; text-align: center; }
.bl-hero-section h1 { font-size: clamp(26px, 7vw, 36px); font-weight: 900; color: var(--accent); letter-spacing: -0.02em; line-height: 1.3; }
.bl-hero-section p { font-size: 15px; color: var(--text-secondary); margin-top: 12px; line-height: 1.8; }
.bl-list { padding: 28px 0; display: grid; gap: 16px; }
.bl-list-card { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out), box-shadow .2s; }
.bl-list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bl-list-thumb { width: 84px; height: 84px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--primary-soft), var(--bg-warm)); display: grid; place-items: center; font-size: 30px; overflow: hidden; flex-shrink: 0; }
.bl-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-list-hero { margin: 0 0 8px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 21 / 9; }
.bl-list-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-list-featured { display: block; margin-bottom: 8px; }
.bl-list-featured .bl-list-thumb { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: var(--radius-lg); }
.bl-list-body { min-width: 0; }
.bl-list-cat { font-size: 11.5px; font-weight: 800; color: var(--primary); }
.bl-list-title { font-size: 15.5px; font-weight: 800; color: var(--accent); line-height: 1.5; margin: 4px 0; }
.bl-list-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ----- Reveal animation (控えめ) ----- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s var(--ease-out) forwards; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* ----- Responsive ----- */
@media (min-width: 760px) {
  .bl-body { font-size: 17px; }
  .bl-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .bl-list-card { grid-template-columns: 1fr; }
  .bl-list-thumb { width: 100%; height: 120px; }
}
