/* ===== HippoCheck Blog / コラム styles ===== */
:root {
  --bg: #fafaf7;
  --surface: #f1f1ec;
  --surface-2: #e8e8e2;
  --text: #0a0a0a;
  --text-2: #3a3a3a;
  --text-muted: #8a8a8a;
  --divider: #e2e2dc;
  --accent: #1e6dff;
  --accent-deep: #1557d6;
  --accent-soft: rgba(30,109,255,0.10);
  --accent-tint: #eef4ff;
  --lime: #a3e635;
  --lime-deep: #65a30d;
  --lime-soft: rgba(163,230,53,0.20);
  --orange: #ff6b35;
  --navy: #0c1c3d;
  --radius: 20px;
  --radius-lg: 28px;
  --font: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', sans-serif;
  --shadow-card: 0 8px 30px rgba(20,20,20,0.07);
  --shadow-pop: 0 14px 44px rgba(20,20,20,0.12);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'palt' 1; scroll-behavior: smooth; }
body { font-family: var(--font); font-weight: 500; line-height: 1.85; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
ul, ol { list-style: none; }

.b-wrap { width: min(1080px, 100% - 44px); margin-inline: auto; }
.b-narrow { width: min(760px, 100% - 44px); margin-inline: auto; }

/* ===== Header ===== */
.b-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}
.b-header-inner { width: min(1080px, 100% - 44px); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 20px; }
.b-header-inner .logo img { height: 40px; width: auto; display: block; }
.b-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.b-nav a { font-size: 13.5px; font-weight: 700; color: var(--text-2); padding: 9px 14px; border-radius: 999px; }
.b-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.b-nav a.is-current { color: var(--accent); }
.b-cta { background: var(--accent); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 800; box-shadow: 0 6px 16px rgba(30,109,255,0.28); }
.b-cta:hover { background: var(--accent-deep); }
@media (max-width: 680px) { .b-nav a:not(.b-cta) { display: none; } .b-header-inner .logo img { height: 34px; } }

/* ===== Breadcrumb ===== */
.b-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-muted); padding: 22px 0 0; }
.b-crumb a { color: var(--text-muted); font-weight: 700; }
.b-crumb a:hover { color: var(--accent); }
.b-crumb .sep { opacity: 0.6; }

/* ===== Blog index hero ===== */
.b-hero { background: linear-gradient(180deg, #f3f7ff 0%, var(--bg) 100%); border-bottom: 1px solid var(--divider); }
.b-hero-inner { width: min(1080px, 100% - 44px); margin-inline: auto; padding: clamp(40px,6vw,72px) 0; text-align: center; }
.b-eyebrow { font-family: var(--font-en); font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.b-hero h1 { font-size: clamp(28px,5vw,44px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.35; margin-top: 14px; }
.b-hero p { font-size: clamp(14px,2.2vw,16px); color: var(--text-2); margin-top: 16px; max-width: 600px; margin-inline: auto; }

/* ===== Category chips ===== */
.b-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.b-cat { font-size: 13px; font-weight: 700; color: var(--text-2); background: #fff; border: 1.5px solid var(--divider); border-radius: 999px; padding: 8px 18px; }
.b-cat:hover, .b-cat.is-active { border-color: var(--accent); color: var(--accent); }

/* ===== Article cards grid ===== */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: clamp(40px,6vw,64px) 0 20px; }
.b-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.b-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.b-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.b-card:hover .thumb img { transform: scale(1.05); }
.b-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.b-card .tag { align-self: flex-start; font-size: 11px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; letter-spacing: 0.04em; }
.b-card h2 { font-size: 18px; font-weight: 800; line-height: 1.55; margin-top: 14px; letter-spacing: -0.01em; color: var(--text); }
.b-card p { font-size: 13px; color: var(--text-2); margin-top: 10px; flex: 1; }
.b-card .meta { font-size: 11.5px; color: var(--text-muted); margin-top: 16px; font-family: var(--font-en); font-weight: 600; display: flex; gap: 10px; }
.b-card--feature { grid-column: span 3; flex-direction: row; }
.b-card--feature .thumb { aspect-ratio: auto; flex: 0 0 52%; }
.b-card--feature .body { justify-content: center; padding: clamp(26px,4vw,44px); }
.b-card--feature h2 { font-size: clamp(20px,2.8vw,28px); }
.b-card--feature p { flex: none; font-size: 14.5px; margin-top: 14px; }
@media (max-width: 900px) { .b-grid { grid-template-columns: repeat(2, 1fr); } .b-card--feature { grid-column: span 2; } }
@media (max-width: 640px) {
  .b-grid { grid-template-columns: 1fr; }
  .b-card--feature { grid-column: span 1; flex-direction: column; }
  .b-card--feature .thumb { flex: none; aspect-ratio: 16/10; }
}

/* ===== Article page ===== */
.b-article { padding: 8px 0 0; }
.b-art-head { text-align: left; padding: 16px 0 30px; }
.b-art-head .tag { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 6px 16px; letter-spacing: 0.04em; }
.b-art-head h1 { font-size: clamp(26px,4.4vw,40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.42; margin-top: 18px; }
.b-art-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; font-family: var(--font-en); align-items: center; }
.b-art-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 clamp(28px,5vw,44px); box-shadow: var(--shadow-pop); aspect-ratio: 16/9; }
.b-art-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Prose */
.b-prose { font-size: 16px; line-height: 1.95; color: var(--text-2); }
.b-prose > * + * { margin-top: 1.2em; }
.b-prose h2 { font-size: clamp(21px,3vw,27px); font-weight: 900; color: var(--text); letter-spacing: -0.015em; line-height: 1.45; margin-top: 2em; padding-top: 1.1em; border-top: 2px solid var(--text); }
.b-prose h2 .hx { font-family: var(--font-en); color: var(--accent); margin-right: 12px; font-size: 0.7em; font-weight: 800; }
.b-prose h3 { font-size: clamp(17px,2.4vw,20px); font-weight: 800; color: var(--text); margin-top: 1.8em; letter-spacing: -0.01em; }
.b-prose p { color: var(--text-2); }
.b-prose strong { font-weight: 800; color: var(--text); }
.b-prose a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(30,109,255,0.35); }
.b-prose a:hover { text-decoration-color: var(--accent); }
.b-prose ul, .b-prose ol { padding-left: 0; margin-top: 1.1em; }
.b-prose li { position: relative; padding-left: 30px; margin-bottom: 12px; line-height: 1.8; }
.b-prose ul > li::before { content: ''; position: absolute; left: 8px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); }
.b-prose ol { counter-reset: bl; }
.b-prose ol > li { counter-increment: bl; }
.b-prose ol > li::before { content: counter(bl); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: var(--accent-soft); color: var(--accent); border-radius: 50%; font-family: var(--font-en); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.b-prose blockquote { border-left: 4px solid var(--accent); background: var(--accent-tint); border-radius: 0 12px 12px 0; padding: 16px 22px; font-size: 15px; color: var(--text); font-weight: 600; }

/* Lead paragraph */
.b-lead { font-size: clamp(16px,2.4vw,18px); font-weight: 600; color: var(--text); line-height: 1.85; }

/* Key-point box */
.b-keybox { background: #fff; border: 1px solid var(--divider); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-card); }
.b-keybox .kt { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; font-family: var(--font-en); text-transform: uppercase; }
.b-keybox h3 { margin-top: 8px !important; font-size: 17px; }
.b-keybox ul { margin-top: 12px; }

/* Hippo aside (ヒポくんメモ) */
.b-hippo { display: flex; gap: 16px; align-items: center; background: linear-gradient(120deg, rgba(163,230,53,0.12), rgba(30,109,255,0.07)); border-radius: var(--radius); padding: 20px 24px; }
.b-hippo img { width: 84px; flex-shrink: 0; filter: drop-shadow(0 8px 16px rgba(20,30,60,0.14)); }
.b-hippo .nm { font-size: 11.5px; font-weight: 800; color: var(--accent); letter-spacing: 0.06em; display: block; margin-bottom: 4px; }
.b-hippo p { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 !important; line-height: 1.7; }

/* Table of contents */
.b-toc { background: var(--surface); border-radius: var(--radius); padding: 22px 26px; }
.b-toc .tt { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.b-toc ol { counter-reset: toc; padding: 0; }
.b-toc li { counter-increment: toc; position: relative; padding-left: 30px; margin-bottom: 9px; font-size: 14px; }
.b-toc li::before { content: counter(toc,decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--font-en); font-weight: 800; font-size: 12px; color: var(--accent); }
.b-toc a { color: var(--text-2); font-weight: 600; }
.b-toc a:hover { color: var(--accent); }

/* CTA box */
.b-ctabox { margin-top: clamp(40px,6vw,56px); background: linear-gradient(120deg, #2563ff 0%, #22d3ee 100%); border-radius: var(--radius-lg); padding: clamp(28px,4vw,44px); color: #fff; display: flex; align-items: center; gap: clamp(20px,4vw,36px); overflow: hidden; }
.b-ctabox .txt { flex: 1; }
.b-ctabox h3 { font-size: clamp(20px,3vw,26px); font-weight: 900; color: #fff; letter-spacing: -0.01em; line-height: 1.45; }
.b-ctabox p { font-size: 14px; color: rgba(255,255,255,0.92); margin-top: 10px; }
.b-ctabox .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.b-ctabox .btn { font-weight: 800; border-radius: 999px; padding: 13px 26px; font-size: 14.5px; }
.b-ctabox .btn-w { background: #fff; color: var(--accent); }
.b-ctabox .btn-l { background: var(--lime); color: var(--text); }
.b-ctabox .btn:hover { transform: translateY(-2px); }
.b-ctabox img.hippo { width: clamp(120px,16vw,168px); flex-shrink: 0; filter: drop-shadow(0 14px 30px rgba(4,12,36,0.35)); }
@media (max-width: 640px) { .b-ctabox { flex-direction: column; text-align: center; } .b-ctabox .btns { justify-content: center; } .b-ctabox img.hippo { order: -1; width: 130px; } }

/* Related */
.b-related { margin-top: clamp(48px,7vw,72px); }
.b-related h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; margin-bottom: 22px; }
.b-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 760px) { .b-related-grid { grid-template-columns: 1fr; } }

/* Author / disclaimer */
.b-note { margin-top: 40px; padding: 18px 22px; background: var(--surface); border-radius: 14px; font-size: 12.5px; color: var(--text-muted); line-height: 1.8; }

/* ===== Footer (shared) ===== */
.b-footer { background: var(--navy); color: rgba(255,255,255,0.78); padding: 48px 0; margin-top: clamp(56px,8vw,90px); }
.b-footer-inner { width: min(1080px, 100% - 44px); margin-inline: auto; display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: center; }
.b-footer .logo img { height: 42px; width: auto; }
.b-footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.b-footer nav a { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.78); }
.b-footer nav a:hover { color: #fff; }
.b-footer .cr { width: 100%; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; margin-top: 6px; font-size: 11.5px; color: rgba(255,255,255,0.5); font-family: var(--font-en); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
