/* ============================================================
   DRASENAS Blog — shared foundations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* DRASENAS palette */
  --bg-base:       #dce2d4;
  --bg-light:      #edf0e8;
  --bg-card:       #ffffff;
  --bg-muted:      #c8cfbf;
  --fg-primary:    #303030;
  --fg-secondary:  #9f9f9f;
  --fg-tertiary:   #c0c0c0;
  --accent-green:  #1a8a5c;
  --accent-green-dark: #14704a;
  --accent-orange: #e8600a;
  --accent-green-50:  rgba(26,138,92,.08);
  --accent-green-100: rgba(26,138,92,.14);
  --accent-orange-50: rgba(232,96,10,.08);
  --rule:          rgba(48,48,48,.12);
  --rule-strong:   rgba(48,48,48,.24);

  /* Fonts */
  --font-en:    'Montserrat', system-ui, sans-serif;
  --font-jp:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Shadows */
  --shadow-card: 0 2px 1px rgba(48,48,48,.02), 0 6px 20px -8px rgba(48,48,48,.08);
  --shadow-md:   0 4px 12px rgba(48,48,48,.06), 0 2px 4px rgba(48,48,48,.04);
  --shadow-lg:   0 18px 40px -12px rgba(48,48,48,.14), 0 4px 10px rgba(48,48,48,.04);

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-jp);
  color: var(--fg-primary);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
  /* ドロワーやtransformで移動した要素が横スクロールを生まないように clip
     （clip 非対応ブラウザ向けに hidden を先にフォールバック） */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

img { max-width: 100%; display: block; }

/* Eyebrow — EN uppercase tracked */
.eyebrow {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-green);
}

/* Category badge — 6 semantic colors all derived from green accent */
.cat-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-green-50);
  color: var(--accent-green);
  white-space: nowrap;
}
.cat-badge.c-strategy  { background: rgba(26,138,92,.10);  color: #14704a; }
.cat-badge.c-security  { background: rgba(48,48,48,.08);   color: #303030; }
.cat-badge.c-ai        { background: rgba(232,96,10,.10);  color: #c4540a; }
.cat-badge.c-automation{ background: rgba(26,138,92,.10);  color: #1a8a5c; }
.cat-badge.c-support   { background: rgba(200,207,191,.55);color: #4a574a; }
.cat-badge.c-growth    { background: rgba(232,96,10,.10);  color: #e8600a; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s ease-out;
  line-height: 1;
}
.btn-primary {
  background: var(--accent-green);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--accent-green-dark); }
.btn-secondary {
  background: #fff;
  color: var(--fg-primary);
  box-shadow: var(--shadow-card);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-primary);
}

/* Utility */
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip: rect(0,0,0,0); border:0; }


/* ============================================================
   DRASENAS Blog — layout (MINT / CARD固定)
   ============================================================ */

/* ============================================================
   VARIANT BC — B (Sage Journal) + C left sidebar
   ============================================================ */

.vBC {
  background: var(--bg-light);
  color: var(--fg-primary);
  font-family: var(--font-jp);
}

/* ---------- Top bar ---------- */
.vBC-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237,240,232,.94);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.vBC-topbar-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 28px;
  padding: 16px 32px;
}
.vBC-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--fg-primary);
}
.vBC-logo img { width: 34px; height: 34px; }
.vBC-logo .txt {
  font-family: var(--font-en); font-weight: 800;
  font-size: 15px; letter-spacing: .24em;
}
.vBC-logo .sub {
  display: block; font-family: var(--font-jp); font-weight: 400;
  font-size: 10px; letter-spacing: .05em;
  color: var(--fg-secondary); margin-top: 2px;
}
.vBC-search {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid transparent;
  max-width: 520px; width: 100%;
  justify-self: center;
  box-shadow: var(--shadow-card);
}
.vBC-search:focus-within { border-color: var(--accent-green); }
.vBC-search input {
  border: none; background: none; outline: none;
  font-family: var(--font-jp); font-size: 13.5px;
  flex: 1;
}
.vBC-search kbd {
  font-family: var(--font-mono); font-size: 10px;
  background: #f2f0ea; padding: 2px 6px; border-radius: 4px;
  color: var(--fg-secondary);
}
.vBC-topbar-right { display: flex; gap: 10px; align-items: center; }

/* ---------- Layout ---------- */
.vBC-layout {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 65px);
}
.vBC-layout > * { min-width: 0; }

/* Left sidebar */
.vBC-sidebar {
  padding: 36px 20px 48px 32px;
  position: sticky; top: 66px;
  align-self: start;
  max-height: calc(100vh - 66px);
  overflow-y: auto;
  border-right: 1px solid var(--rule);
}
.vBC-side-section { margin-bottom: 32px; }
.vBC-side-label {
  font-family: var(--font-en); font-weight: 700;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-green);
  margin: 0 0 14px; padding: 0 12px;
}
.vBC-side-nav { list-style: none; padding: 0; margin: 0; }
.vBC-side-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px;
  font-family: var(--font-jp); font-size: 13.5px; font-weight: 500;
  color: var(--fg-primary); text-decoration: none;
  line-height: 1.4;
  transition: background .12s;
}
.vBC-side-nav a:hover { background: rgba(255,255,255,.5); }
.vBC-side-nav a.active {
  background: #fff; color: var(--accent-green);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
.vBC-side-nav .cnt {
  font-family: var(--font-en); font-size: 10.5px;
  color: var(--fg-secondary); letter-spacing: .05em; font-weight: 600;
}
.vBC-side-nav a.active .cnt { color: var(--accent-green); }
.vBC-side-nav .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 10px; vertical-align: middle;
  background: var(--accent-green);
}
.vBC-side-nav .d-sec { background: #303030; }
.vBC-side-nav .d-ai { background: var(--accent-orange); }
.vBC-side-nav .d-auto { background: #94c4a7; }
.vBC-side-nav .d-sup { background: var(--bg-muted); }
.vBC-side-nav .d-grow { background: #e8c88a; }
.vBC-side-nav .en {
  font-family: var(--font-en); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; font-size: 11.5px;
}

.vBC-side-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.vBC-side-tag {
  padding: 5px 10px; border-radius: 999px;
  background: #fff;
  font-size: 11.5px; font-weight: 500;
  color: var(--fg-primary); text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: all .12s;
}
.vBC-side-tag:hover { color: var(--accent-green); }

.vBC-side-about {
  padding: 18px;
  background: var(--bg-base);
  border-radius: 12px;
  margin: 0 4px;
  position: relative; overflow: hidden;
}
.vBC-side-about::before {
  content: ''; position: absolute;
  right: -40px; bottom: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid rgba(26,138,92,.3);
}
.vBC-side-about-title {
  font-family: var(--font-jp); font-weight: 700;
  font-size: 13px; line-height: 1.55; margin: 0 0 8px;
  position: relative;
}
.vBC-side-about p {
  font-size: 12px; line-height: 1.75;
  color: #525252; margin: 0 0 12px;
  position: relative;
}
.vBC-side-about a {
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-green); text-decoration: none;
  position: relative;
}

/* Main */
.vBC-main {
  min-width: 0;
  padding: 0;
}

/* =========== ARTICLE =========== */


.vBC-article-hero {
  padding: 56px 56px 36px;
  position: relative;
}
.vBC-article-hero::after {
  content: ''; position: absolute;
  right: 56px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid rgba(26,138,92,.22);
  pointer-events: none;
}
.vBC-article-hero::before {
  content: ''; position: absolute;
  right: 100px; top: -20px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(26,138,92,.34);
  pointer-events: none;
}
.vBC-crumbs {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--fg-secondary);
  margin-bottom: 32px;
  position: relative;
}
.vBC-crumbs a { color: var(--fg-secondary); text-decoration: none; }
.vBC-crumbs a:hover { color: var(--accent-green); }
.vBC-crumbs .sep { margin: 0 10px; color: var(--fg-tertiary); }

.vBC-article-cat {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px; position: relative;
}
.vBC-article-cat-num {
  font-family: var(--font-en); font-weight: 700;
  font-size: 11px; letter-spacing: .22em;
  color: var(--fg-secondary);
}
.vBC-article-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-wrap: balance;
  max-width: 22em;
  position: relative;
}
.vBC-article-desc {
  font-size: 16px; line-height: 1.9;
  color: #525252;
  max-width: 38em; margin: 0 0 32px;
  position: relative;
}
.vBC-article-meta {
  display: flex; gap: 22px; align-items: center;
  padding: 18px 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  max-width: 46em;
  position: relative;
}
.vBC-article-meta .author {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.vBC-article-meta .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-green-50);
  color: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 700; font-size: 12px;
}
.vBC-article-meta .v-sep {
  width: 1px; height: 20px; background: var(--rule);
}
.vBC-article-meta .meta-item {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-en); font-size: 12px;
  letter-spacing: .08em; color: var(--fg-secondary);
}
.vBC-article-meta .meta-item strong {
  color: var(--fg-primary); font-weight: 600;
  font-family: var(--font-jp);
}
.vBC-article-meta .spacer { flex: 1; }
.vBC-article-meta .share { display: flex; gap: 6px; }
.vBC-article-meta .share button {
  width: 30px; height: 30px; border-radius: 50%;
  background: #f2f0ea; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.vBC-article-meta .share button:hover { background: var(--accent-green-50); }

/* Body area */
.vBC-article-body-wrap {
  padding: 36px 56px 100px;
  display: grid; grid-template-columns: 1fr 240px;
  gap: 64px;
}
/* grid item は min-width: auto のままだと <pre> 等の intrinsic 幅で
   はみ出すので、子要素を min-width: 0 に矯正する */
.vBC-article-body-wrap > * { min-width: 0; }
.vBC-body {
  font-size: 16px;
  line-height: 2.0;
  color: #303030;
  max-width: 42em;
}
.vBC-body > * + * { margin-top: 1.4em; }
.vBC-body h2 {
  font-family: var(--font-jp); font-weight: 700;
  font-size: 26px; line-height: 1.5;
  margin: 2.6em 0 0.7em;
  padding: 0.3em 0 0.3em 18px;
  border-left: 4px solid var(--accent-green);
  letter-spacing: -0.005em;
}
.vBC-body h3 {
  font-family: var(--font-jp); font-weight: 700;
  font-size: 19px; line-height: 1.6;
  margin: 1.8em 0 0.5em;
}
.vBC-body p { margin: 0; }
.vBC-body strong { font-weight: 700; color: var(--fg-primary); }
.vBC-body a {
  color: var(--accent-green); text-decoration: none;
  border-bottom: 1px solid var(--accent-green-100);
}
.vBC-body a:hover { border-bottom-color: var(--accent-green); }
.vBC-body ul { padding-left: 0; list-style: none; }
.vBC-body ul li { position: relative; padding-left: 1.4em; }
.vBC-body ul li::before {
  content: ''; position: absolute; left: 0; top: 0.85em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green);
}
.vBC-body li + li { margin-top: 0.4em; }
.vBC-body blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  background: #fff;
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: #525252; font-size: 15.5px;
  box-shadow: var(--shadow-card);
}
.vBC-body code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: #fff; border: 1px solid var(--rule);
  padding: 2px 6px; border-radius: 4px;
  color: #c4540a;
}
.vBC-body pre {
  font-family: var(--font-mono);
  background: #1a1f1c;
  color: #e6eadd;
  border-radius: var(--r-md);
  /* codebar(言語ラベル/コピーボタン) をスクロールさせないため、
     外側 pre は overflow:hidden のまま。中の <code> を横スクロール担当にする */
  overflow: hidden;
  padding: 0;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  border: 1px solid #2a2f2c;
  max-width: 100%;
}
.vBC-body pre .codebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  background: #23281e;
  border-bottom: 1px solid #2a2f2c;
}
.vBC-body pre .codebar .lang {
  font-family: var(--font-mono); font-size: 11px;
  color: #94c4a7; letter-spacing: .12em;
  text-transform: uppercase;
}
.vBC-body pre .codebar .copy {
  font-family: var(--font-mono); font-size: 11px;
  color: #7a8570; background: none; border: none;
  cursor: pointer; padding: 2px 6px;
}
.vBC-body pre .codebar .copy:hover { color: #e6eadd; }
.vBC-body pre code {
  display: block; padding: 16px 18px;
  background: none; border: none; color: inherit;
  line-height: 1.78;
  /* 長い行は code 内で横スクロール。codebar は固定のまま。 */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  white-space: pre;
  max-width: 100%;
}
.vBC-body pre .tok-k { color: #94c4a7; }
.vBC-body pre .tok-s { color: #e8c88a; }
.vBC-body pre .tok-c { color: #7a8570; font-style: italic; }
.vBC-body pre .tok-f { color: #b8d4e0; }
.vBC-body pre .tok-n { color: #d4c88a; }

/* Tables (GFM) */
.vBC-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 14px;
  line-height: 1.7;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.vBC-body thead {
  background: var(--inner-bg, #eef5ee);
}
.vBC-body th,
.vBC-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.vBC-body th:last-child,
.vBC-body td:last-child {
  border-right: none;
}
.vBC-body tbody tr:last-child td {
  border-bottom: none;
}
.vBC-body tbody tr:nth-child(even) {
  background: #fafcf9;
}

/* TOC */
.vBC-toc {
  position: sticky; top: 90px;
  align-self: start;
  background: #fff;
  border-radius: var(--r-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
}
.vBC-toc-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-en); font-weight: 700;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.vBC-toc ul { list-style: none; padding: 0; margin: 0; }
.vBC-toc a {
  display: block; padding: 7px 10px;
  color: var(--fg-secondary); text-decoration: none;
  line-height: 1.5; border-radius: 6px;
  border-left: 2px solid transparent;
  font-size: 13px;
}
.vBC-toc a:hover { color: var(--fg-primary); }
.vBC-toc a.active {
  color: var(--accent-green); font-weight: 600;
  background: var(--accent-green-50);
  border-left-color: var(--accent-green);
}
.vBC-toc li.lv2 a { padding-left: 22px; font-size: 12px; }

/* CTA */
.vBC-cta {
  margin-top: 72px;
  padding: 52px 56px;
  background: var(--bg-base);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  max-width: 44em;
}
.vBC-cta-orbits {
  position: absolute; right: -80px; bottom: -80px;
  width: 320px; height: 320px; pointer-events: none;
}
.vBC-cta-orbits div {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(26,138,92,.4);
}
.vBC-cta-orbits div:nth-child(2) { inset: 30px; opacity: .6; }
.vBC-cta-orbits div:nth-child(3) { inset: 60px; opacity: .4; }
.vBC-cta-orbits div:nth-child(4) {
  inset: 110px; background: var(--accent-green);
  border: none; opacity: .85;
}
.vBC-cta-eyebrow {
  font-family: var(--font-en); font-weight: 700;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-green); margin-bottom: 16px;
  position: relative; z-index: 1;
}
.vBC-cta-title {
  font-family: var(--font-jp); font-weight: 700;
  font-size: 26px; line-height: 1.5; margin: 0 0 14px;
  letter-spacing: -0.005em; position: relative; z-index: 1;
}
.vBC-cta-body {
  font-size: 14.5px; line-height: 1.9; color: #525252;
  margin: 0 0 28px; max-width: 26em;
  position: relative; z-index: 1;
}
.vBC-cta-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.vBC-quote-line {
  font-family: var(--font-jp); font-weight: 500;
  font-size: 13px; color: var(--fg-secondary);
  margin-top: 22px; position: relative; z-index: 1;
  letter-spacing: 0.02em;
}

/* Prev/Next */
.vBC-prevnext {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 44em;
}
.vBC-prevnext a {
  text-decoration: none; color: var(--fg-primary);
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .18s;
}
.vBC-prevnext a:hover { transform: translateY(-2px); }
.vBC-prevnext .dir {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-green);
  margin-bottom: 8px; font-weight: 700;
}
.vBC-prevnext .title { font-size: 13.5px; font-weight: 600; line-height: 1.55; }
.vBC-prevnext .next { text-align: right; }
.vBC-prevnext .next .dir { justify-content: flex-end; }

/* =========== INDEX / LIST =========== */
.vBC-index-hero {
  padding: 56px 56px 32px;
  position: relative;
}
.vBC-index-hero-deco {
  position: absolute; right: 56px; top: 32px;
  width: 240px; height: 240px; pointer-events: none;
}
.vBC-index-hero-deco div {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(26,138,92,.28);
}
.vBC-index-hero-deco div:nth-child(2) { inset: 32px; opacity: .7; }
.vBC-index-hero-deco div:nth-child(3) { inset: 62px; opacity: .5; }
.vBC-index-hero-deco div:nth-child(4) {
  inset: 94px; background: var(--accent-orange);
  border: none; opacity: .85;
}
.vBC-index-eyebrow {
  font-family: var(--font-en); font-weight: 700;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent-green); margin-bottom: 18px;
}
.vBC-index-title {
  font-family: var(--font-jp); font-weight: 700;
  font-size: 48px; line-height: 1.2; margin: 0 0 18px;
  letter-spacing: -0.02em; max-width: 12em;
}
.vBC-index-sub {
  font-size: 15.5px; line-height: 1.9; color: #525252;
  max-width: 34em; margin: 0;
}

.vBC-index-body {
  padding: 20px 56px 100px;
}
.vBC-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.vBC-toolbar .result-count {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .18em;
  color: var(--fg-secondary);
}

/* List */
.vBC-list { display: flex; flex-direction: column; gap: 12px; }
.vBC-list-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 26px; align-items: start;
  padding: 24px 28px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  text-decoration: none; color: var(--fg-primary);
  transition: transform .18s, box-shadow .18s;
}
.vBC-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.vBC-list-item:hover .vBC-list-title { color: var(--accent-green); }

.vBC-list-date {
  display: flex; flex-direction: column;
  padding-top: 4px;
}
.vBC-list-date .day {
  font-family: var(--font-en); font-weight: 800;
  font-size: 30px; line-height: 1; letter-spacing: -.02em;
  color: var(--fg-primary);
}
.vBC-list-date .my {
  font-family: var(--font-en); font-weight: 600;
  font-size: 10px; letter-spacing: .2em;
  color: var(--fg-secondary); margin-top: 6px;
}
.vBC-list-main {}
.vBC-list-cats {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.vBC-list-title {
  font-family: var(--font-jp); font-weight: 700;
  font-size: 20px; line-height: 1.5;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  transition: color .12s;
}
.vBC-list-desc {
  font-size: 13.5px; line-height: 1.8;
  color: #666; margin: 0 0 10px;
  max-width: 50em;
}
.vBC-list-tags {
  display: flex; gap: 5px; flex-wrap: wrap;
}
.vBC-list-tags .tag {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 2px 7px; background: #f2f0ea; border-radius: 3px;
  color: var(--fg-secondary); text-decoration: none;
}
.vBC-list-right {
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end;
  padding-top: 4px;
}
.vBC-list-time {
  font-family: var(--font-en); font-size: 11px;
  letter-spacing: .1em; color: var(--fg-secondary);
  display: flex; align-items: center; gap: 5px;
}

/* Pagination */
.vBC-pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 56px;
}
.vBC-pagination a {
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 12.5px; font-weight: 700;
  color: var(--fg-secondary); text-decoration: none;
  transition: all .12s;
}
.vBC-pagination a:hover { background: #fff; color: var(--fg-primary); }
.vBC-pagination a.active {
  background: var(--accent-green); color: #fff;
}

/* =========== CATEGORY =========== */
.vBC-cat-hero {
  padding: 56px 56px 40px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: start;
}
.vBC-cat-hero-eyebrow {
  font-family: var(--font-en); font-weight: 800;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent-green); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.vBC-cat-hero-eyebrow::before {
  content: ''; width: 34px; height: 1px; background: var(--accent-green);
}
.vBC-cat-hero h1 {
  font-family: var(--font-jp); font-weight: 700;
  font-size: 44px; line-height: 1.3; margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.vBC-cat-hero p {
  font-size: 15.5px; line-height: 1.9; color: #525252;
  max-width: 36em; margin: 0;
}
.vBC-cat-hero-right {
  width: 220px; height: 220px; position: relative;
  flex-shrink: 0;
}
.vBC-cat-hero-right div {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(26,138,92,.28);
}
.vBC-cat-hero-right div:nth-child(2) { inset: 30px; }
.vBC-cat-hero-right div:nth-child(3) { inset: 60px; }
.vBC-cat-hero-right div:nth-child(4) {
  inset: 88px; background: var(--accent-green);
  border: none; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-en); font-weight: 800;
  font-size: 13px; letter-spacing: .14em;
}
.vBC-cat-stats {
  display: flex; gap: 36px;
  padding-top: 28px; margin-top: 28px;
  border-top: 1px solid var(--rule);
  grid-column: 1 / -1;
}
.vBC-cat-stats .stat strong {
  display: block;
  font-family: var(--font-en); font-weight: 800;
  font-size: 28px; color: var(--fg-primary);
  letter-spacing: -.02em; line-height: 1;
}
.vBC-cat-stats .stat span {
  font-family: var(--font-en); font-size: 10px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--fg-secondary); margin-top: 8px; display: block;
}

.vBC-tag-filter {
  padding: 0 56px 36px;
}
.vBC-tag-filter-label {
  font-family: var(--font-en); font-weight: 700;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-secondary); margin-bottom: 14px;
}
.vBC-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.vBC-tag {
  padding: 6px 14px; border-radius: 999px;
  background: #fff;
  font-size: 12.5px; font-weight: 500;
  color: var(--fg-primary); text-decoration: none;
  transition: all .12s; cursor: pointer;
  box-shadow: var(--shadow-card);
}
.vBC-tag:hover { color: var(--accent-green); }
.vBC-tag.active { background: var(--accent-green); color: #fff; }
.vBC-tag .count {
  color: var(--fg-secondary); margin-left: 6px; font-weight: 400;
  font-family: var(--font-en); font-size: 11px;
}
.vBC-tag.active .count { color: rgba(255,255,255,.7); }

/* ============================================================
   ARTICLE CARD SHELL — MINT tone fixed (PROD patch)
   ============================================================ */

.vBC-article-shell {
  padding: 0;
  position: relative;
}
.vBC-carded .vBC-article-shell {
  margin: 36px 40px 72px;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 4px 24px -10px rgba(48,48,48,.08),
    0 1px 3px rgba(48,48,48,.04);
}

/* Mint tone (fixed) inner surfaces */
.vBC-carded {
  --inner-bg:      #eef5ee;
  --inner-bg-soft: #f4f8f4;
}

.vBC-carded .vBC-article-meta {
  background: var(--inner-bg);
  box-shadow: none;
}
.vBC-carded .vBC-body blockquote {
  background: var(--inner-bg);
  box-shadow: none;
}
/* インラインコード（pre の外）だけを MINT 背景に。
   pre 内の <code> は背景透明のまま pre の dark bg を通したいので除外する。 */
.vBC-carded .vBC-body p code,
.vBC-carded .vBC-body li code,
.vBC-carded .vBC-body td code,
.vBC-carded .vBC-body th code,
.vBC-carded .vBC-body a code,
.vBC-carded .vBC-body strong code,
.vBC-carded .vBC-body em code,
.vBC-carded .vBC-body blockquote code,
.vBC-carded .vBC-body h2 code,
.vBC-carded .vBC-body h3 code,
.vBC-carded .vBC-body h4 code {
  background: var(--inner-bg);
  border-color: transparent;
}

/* コードブロック本体の可読性補強 */
.vBC-body pre {
  background: #1b2420;             /* 緑味の黒 — シンタックスハイライト無しでもコントラスト確保 */
  color: #eef2e4;                   /* クリーム白。元 #e6eadd より少し明るめ */
  font-size: 14px;
  line-height: 1.85;
}
.vBC-body pre code {
  color: #eef2e4;                   /* 明示指定で ancestor からの上書きを防ぐ */
  -webkit-font-smoothing: antialiased;
  font-weight: 500;                 /* 細字で潰れないよう少し太く */
  letter-spacing: 0.01em;
}
/* GFM fenced の language-* クラスが付いていても見え方は維持 */
.vBC-body pre code[class*="language-"] { color: #eef2e4; }
.vBC-carded .vBC-toc {
  background: var(--inner-bg);
  box-shadow: none;
}
.vBC-carded .vBC-cta {
  background: var(--inner-bg);
}
.vBC-carded .vBC-prevnext a {
  background: var(--inner-bg);
  box-shadow: none;
}

@media (max-width: 960px) {
  .vBC-carded .vBC-article-shell {
    margin: 20px 16px 56px;
    border-radius: 14px;
  }
}

/* ============================================================
   RESPONSIVE — mobile optimization
   ============================================================ */

/* Hamburger button (PC 非表示、モバイルで有効化) */
.vBC-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0; margin: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.vBC-menu-btn span {
  display: block; width: 18px; height: 2px;
  background: var(--fg-primary); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.vBC-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.vBC-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.vBC-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Sidebar overlay (モバイルドロワー用) */
.vBC-overlay {
  position: fixed; inset: 0;
  background: rgba(20,25,20,.42);
  z-index: 39;
  animation: vBC-fade-in .18s ease-out;
}
@keyframes vBC-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}

/* ------ 1024px: 右目次を本文下に降ろす ------ */
@media (max-width: 1024px) {
  .vBC-article-body-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 40px 72px;
  }
  .vBC-toc {
    position: static;
    max-width: 100%;
  }
  .vBC-article-hero {
    padding: 44px 40px 28px;
  }
  .vBC-article-hero::after,
  .vBC-article-hero::before { display: none; }
  .vBC-cta { padding: 40px 36px; }
  .vBC-index-hero { padding: 48px 40px 28px; }
  .vBC-index-hero-deco { display: none; }
  .vBC-index-body { padding: 16px 40px 72px; }
  .vBC-cat-hero { padding: 48px 40px 32px; grid-template-columns: 1fr; }
  .vBC-cat-hero-right { display: none; }
  .vBC-tag-filter { padding: 0 40px 28px; }
}

/* ------ 860px: 左サイドバーをドロワー化 ------ */
@media (max-width: 860px) {
  .vBC-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    max-width: 100%;
    overflow: hidden;
  }
  .vBC-menu-btn { display: inline-flex; order: 1; flex: 0 0 auto; }
  .vBC-logo { order: 2; flex: 1 1 0; min-width: 0; gap: 10px; overflow: hidden; }
  .vBC-logo img { width: 28px; height: 28px; flex-shrink: 0; }
  .vBC-logo .txt { font-size: 13px; letter-spacing: .2em; white-space: nowrap; }
  .vBC-logo .sub { display: none; }
  .vBC-topbar-right { order: 3; flex: 0 0 auto; }
  .vBC-search {
    order: 4;
    flex: 1 1 100%;
    max-width: none;
    padding: 8px 12px;
  }
  .vBC-search input { font-size: 13px; }
  .vBC-topbar-right .btn,
  .vBC-topbar-right .btn[style] {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  .vBC-layout { grid-template-columns: 1fr; }
  .vBC-sidebar {
    /* transform ではなく left 負値で隠す。こうすることで html の scrollWidth
       を押し広げずに済み、意図しない横スクロールを防げる。 */
    position: fixed;
    top: 0; bottom: 0;
    width: min(84vw, 320px);
    left: calc(-1 * min(84vw, 320px));
    max-height: 100vh;
    padding: 80px 16px 24px 20px;
    background: var(--bg-light);
    border-right: 1px solid var(--rule);
    z-index: 40;
    transition: left .25s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .vBC-sidebar.is-open {
    left: 0;
    box-shadow: var(--shadow-lg);
  }

  .vBC-carded .vBC-article-shell {
    margin: 16px 12px 48px;
    border-radius: 12px;
  }
  .vBC-article-hero { padding: 32px 24px 22px; }
  .vBC-article-body-wrap { padding: 24px 24px 56px; gap: 24px; }
  .vBC-cta {
    margin-top: 48px;
    padding: 32px 24px;
    border-radius: 18px;
  }
  .vBC-cta-orbits { display: none; }

  .vBC-index-hero { padding: 36px 24px 22px; }
  .vBC-index-body { padding: 12px 24px 64px; }
  .vBC-cat-hero { padding: 36px 24px 24px; }
  .vBC-tag-filter { padding: 0 24px 22px; }
}

/* ------ 長英字・長URL・画像などの安全ブレーク(全モバイル共通) ------ */
@media (max-width: 860px) {
  .vBC-article-title,
  .vBC-index-title,
  .vBC-cat-hero h1,
  .vBC-cta-title,
  .vBC-body h1,
  .vBC-body h2,
  .vBC-body h3,
  .vBC-body h4 {
    overflow-wrap: anywhere;
    word-break: normal;
    max-width: 100%;
  }
  .vBC-body p,
  .vBC-body li,
  .vBC-body blockquote {
    overflow-wrap: anywhere;
  }
  .vBC-body img,
  .vBC-body video,
  .vBC-body iframe {
    max-width: 100%;
    height: auto;
  }
  .vBC-article-meta {
    max-width: 100%;
    flex-wrap: wrap;
  }
}

/* ------ 560px: 文字・余白・CTA を縮小 ------ */
@media (max-width: 560px) {
  .vBC-article-title {
    font-size: 26px;
    line-height: 1.45;
  }
  .vBC-article-desc { font-size: 14.5px; line-height: 1.8; }
  .vBC-article-hero { padding: 24px 18px 18px; }
  .vBC-article-body-wrap { padding: 18px 18px 48px; }
  .vBC-body { font-size: 15px; line-height: 1.9; max-width: 100%; }
  .vBC-body h2 { font-size: 20px; margin: 2em 0 0.6em; padding-left: 12px; }
  .vBC-body h3 { font-size: 17px; }
  .vBC-body pre { font-size: 12.5px; }
  .vBC-body pre code { padding: 14px; }

  .vBC-article-meta {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }
  .vBC-article-meta .v-sep { display: none; }

  .vBC-cta {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .vBC-cta-title { font-size: 22px; }
  .vBC-cta-body { font-size: 14px; }
  .vBC-cta-buttons { flex-direction: column; }
  .vBC-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .vBC-prevnext {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .vBC-prevnext a { padding: 16px 18px; }
  .vBC-prevnext .next { text-align: left; }
  .vBC-prevnext .next .dir { justify-content: flex-start; }

  .vBC-index-title { font-size: 32px; line-height: 1.25; }
  .vBC-index-sub { font-size: 14.5px; }
  .vBC-index-hero { padding: 28px 18px 18px; }
  .vBC-index-body { padding: 8px 18px 56px; }

  .vBC-list-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 18px;
  }
  .vBC-list-date { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
  .vBC-list-date .day { font-size: 22px; }
  .vBC-list-date .my { margin-top: 0; }
  .vBC-list-title { font-size: 17px; }
  .vBC-list-right {
    align-items: flex-start;
    padding-top: 0;
  }

  .vBC-cat-hero h1 { font-size: 30px; }
  .vBC-cat-stats { gap: 20px; flex-wrap: wrap; }
  .vBC-cat-stats .stat strong { font-size: 22px; }

  .vBC-pagination { gap: 4px; margin-top: 40px; }
  .vBC-pagination a { min-width: 34px; height: 34px; font-size: 12px; }

  .vBC-crumbs { font-size: 10px; margin-bottom: 22px; }
  .vBC-article-cat { margin-bottom: 16px; }

  /* 360px 前後のごく狭い端末では、上部の「お問い合わせ」ボタンを隠す
     （サイドバーの about 経由で /about / /contact に辿れるため） */
  .vBC-topbar-right { display: none; }
}
