:root {
  --font-sans: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --amber-900: #78350f;
  --amber-50: #fffbeb;
  --white: #fff;
  --content-width: 72rem;
  --article-width: 45rem;
  --radius-sm: .75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-card: 0 1px 3px rgb(15 23 42 / .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--slate-900);
  background: var(--slate-50);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald-800); text-underline-offset: .2em; }
a:hover { color: var(--emerald-900); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #34d399; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .75rem 1rem; border-radius: .5rem; background: var(--slate-950); color: var(--white); }
.skip-link:focus { transform: none; }
.site-header { z-index: 20; border-bottom: 1px solid var(--slate-200); background: rgb(255 255 255 / .96); }
.site-header__inner, .site-footer__inner { width: min(100% - 2.5rem, var(--content-width)); margin-inline: auto; }
.site-header__inner { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 1rem; }
.site-logo { color: var(--emerald-800); font-weight: 700; text-decoration: none; }
.header-link { color: var(--slate-700); font-size: .875rem; font-weight: 600; text-decoration: none; }
.page-shell { width: min(100% - 2.5rem, var(--content-width)); margin-inline: auto; }
.page-shell--index { padding-block: 4rem 5rem; }
.page-intro { max-width: 45rem; }
.page-intro h1 { margin: .5rem 0 0; color: var(--slate-950); font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.25; letter-spacing: -.025em; }
.page-intro > p:last-child { margin-top: 1rem; color: var(--slate-600); font-size: 1.0625rem; line-height: 1.8; }
.media-category { margin-top: 4rem; }
.media-category + .media-category { margin-top: 4.5rem; }
.media-category .article-cards { margin-top: 1.75rem; }
.media-category__description { max-width: 45rem; margin: .75rem 0 0; color: var(--slate-600); line-height: 1.8; }

.breadcrumbs { padding-block: 1rem; color: var(--slate-500); font-size: .75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--slate-300); }
.breadcrumbs a { color: inherit; }
.article-header { max-width: var(--article-width); margin: 2.5rem auto 0; }
.category { display: inline-flex; width: fit-content; border-radius: 999px; padding: .35rem .7rem; background: var(--emerald-100); color: var(--emerald-800); font-size: .75rem; font-weight: 700; text-decoration: none; }
.article-header h1 { margin: 1rem 0 0; color: var(--slate-950); font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.3; letter-spacing: -.025em; }
.article-summary { margin: 1.25rem 0 0; color: var(--slate-600); font-size: 1.125rem; line-height: 1.9; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; color: var(--slate-500); font-size: .75rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--article-width)); justify-content: center; gap: 2.5rem; margin-top: 3rem; }
.toc { grid-row: 1; padding: 1.25rem; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-card); }
.toc h2 { margin: 0; color: var(--slate-950); font-size: 1rem; }
.toc ol { margin: .75rem 0 0; padding-left: 1.25rem; }
.toc ol ol { margin-top: .4rem; }
.toc li + li { margin-top: .5rem; }
.toc a { color: var(--slate-600); font-size: .875rem; line-height: 1.6; text-decoration: none; }
.toc a:hover { color: var(--emerald-800); text-decoration: underline; }
.article-body { min-width: 0; color: var(--slate-700); font-size: 1rem; line-height: 2; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 1.25rem 0 0; }
.article-body .lead { padding: 1.25rem; border-left: 4px solid var(--emerald-700); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--emerald-50); }
.article-body section { margin-top: 3.5rem; }
.article-body h2 { margin: 0 0 1.25rem; padding-bottom: .65rem; border-bottom: 2px solid var(--emerald-700); color: var(--slate-950); font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.5; letter-spacing: -.015em; }
.article-body h3 { margin: 2.5rem 0 0; padding-left: .75rem; border-left: 4px solid var(--emerald-700); color: var(--slate-900); font-size: 1.25rem; line-height: 1.6; }
.article-body h4 { margin: 2rem 0 0; color: var(--slate-900); font-size: 1.0625rem; line-height: 1.6; }
.article-body ul, .article-body ol { margin: 1.25rem 0 0; padding: 1.25rem 1.25rem 1.25rem 2.5rem; border-radius: var(--radius-sm); background: var(--slate-100); }
.article-body li + li { margin-top: .5rem; }
.article-body blockquote { margin: 1.5rem 0 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--slate-300); color: var(--slate-600); }
.article-body code { border-radius: .25rem; padding: .1em .35em; background: var(--slate-100); font-size: .9em; }
.article-body pre { overflow-x: auto; margin: 1.5rem 0 0; padding: 1rem; border-radius: var(--radius-sm); background: var(--slate-950); color: var(--slate-50); line-height: 1.7; }
.article-body pre code { padding: 0; background: transparent; }
.table-scroll { overflow-x: auto; margin-top: 1.5rem; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.article-body caption { margin-bottom: .5rem; color: var(--slate-600); text-align: left; }
.article-body th, .article-body td { padding: .75rem; border: 1px solid var(--slate-200); text-align: left; vertical-align: top; }
.article-body th { background: var(--slate-100); color: var(--slate-900); }
.callout { margin-top: 2rem; padding: 1.25rem; border-radius: var(--radius-md); }
.callout p { margin-top: .4rem; }
.callout--info { border: 1px solid #a7f3d0; background: var(--emerald-50); color: var(--emerald-900); }
.callout--caution { border: 1px solid #fde68a; background: var(--amber-50); color: var(--amber-900); }
.article-visual { margin: 1.75rem 0 0; }
.article-visual figcaption { margin-top: .75rem; color: var(--slate-500); font-size: .75rem; line-height: 1.7; }
.visual-flow { display: grid; gap: .75rem; }
.visual-flow__item { position: relative; padding: 1rem; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--white); }
.visual-flow__item strong { display: block; color: var(--emerald-800); }
.visual-flow__item span { display: block; margin-top: .25rem; color: var(--slate-600); font-size: .875rem; line-height: 1.65; }
.visual-flow__item:not(:last-child)::after { content: "↓"; position: absolute; z-index: 1; right: 50%; bottom: -.95rem; color: var(--emerald-700); font-weight: 800; transform: translateX(50%); }
.funding-bar { display: flex; min-height: 4.5rem; overflow: hidden; border-radius: var(--radius-sm); color: var(--slate-950); font-size: .8125rem; font-weight: 700; line-height: 1.4; }
.funding-bar__self, .funding-bar__loan { display: grid; place-items: center; padding: .6rem; text-align: center; }
.funding-bar__self { width: 25.93%; background: var(--emerald-100); color: var(--emerald-900); }
.funding-bar__loan { width: 74.07%; background: var(--slate-200); color: var(--slate-900); }
.sales-formula { display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: center; gap: .5rem; padding: 1.25rem; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); text-align: center; }
.sales-formula__term { min-width: 5.25rem; }
.sales-formula__term strong { display: block; color: var(--slate-950); font-size: 1.125rem; line-height: 1.4; }
.sales-formula__term span { display: block; color: var(--slate-500); font-size: .75rem; line-height: 1.4; }
.sales-formula__operator { color: var(--emerald-700); font-size: 1.25rem; font-weight: 800; }
.profit-flow { display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: center; gap: .5rem; padding: 1.25rem; border-radius: var(--radius-md); background: var(--slate-100); text-align: center; }
.profit-flow__value strong { display: block; color: var(--slate-950); font-size: 1.125rem; line-height: 1.4; }
.profit-flow__value span { display: block; color: var(--slate-500); font-size: .75rem; line-height: 1.4; }
.profit-flow__value--result strong { color: var(--emerald-800); }
.profit-flow__operator { color: var(--slate-500); font-weight: 800; }
.article-cta { margin-top: 3.5rem; padding: clamp(1.5rem, 5vw, 2.5rem); border-radius: var(--radius-lg); background: var(--slate-950); color: var(--white); text-align: center; }
.article-cta h2 { margin-top: .5rem; padding: 0; border: 0; color: var(--white); }
.article-cta p { color: var(--slate-300); }
.eyebrow { margin: 0; color: #6ee7b7; font-size: .875rem; font-weight: 700; }
.eyebrow--brand { color: var(--emerald-700); }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 1.25rem; border-radius: var(--radius-sm); padding: .875rem 1.5rem; background: var(--emerald-700); color: var(--white); font-weight: 700; line-height: 1.25; text-decoration: none; }
.button:hover { background: var(--emerald-800); color: var(--white); }
.button--small { margin: 0; padding: .65rem 1rem; font-size: .875rem; }
.article-notes { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-200); color: var(--slate-500); font-size: .75rem; line-height: 1.8; }
.recommended { margin-top: 5rem; padding: 4rem 0; border-top: 1px solid var(--slate-200); }
.section-heading .eyebrow { color: var(--emerald-700); }
.section-heading h2 { margin: .4rem 0 0; color: var(--slate-950); font-size: 1.875rem; }
.article-cards { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.article-card { overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.article-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.article-card__link:hover h2, .article-card__link:hover h3 { color: var(--emerald-800); }
.article-card__visual { display: grid; min-height: 9rem; place-items: center; padding: 1.5rem; background: linear-gradient(135deg, var(--emerald-50), var(--slate-100)); color: var(--emerald-800); font-size: 2rem; font-weight: 800; }
.article-card__body { padding: 1.25rem; }
.article-card h2, .article-card h3 { margin: .8rem 0 0; color: var(--slate-950); font-size: 1.125rem; line-height: 1.5; }
.article-card p { margin: .5rem 0 0; color: var(--slate-600); font-size: .875rem; line-height: 1.7; }
.site-footer { border-top: 1px solid var(--slate-200); background: var(--white); color: var(--slate-500); font-size: .75rem; }
.site-footer__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.site-footer a { color: inherit; }

@media (min-width: 48rem) {
  .visual-flow { grid-template-columns: repeat(4, 1fr); }
  .visual-flow__item:not(:last-child)::after { content: "→"; right: -.65rem; bottom: 50%; transform: translateY(50%); }
  .article-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__inner { flex-direction: row; align-items: center; }
}
@media (min-width: 64rem) {
  .article-layout { grid-template-columns: minmax(0, var(--article-width)) 15rem; align-items: start; }
  .article-body { grid-column: 1; grid-row: 1; }
  .toc { position: sticky; top: 1.5rem; grid-column: 2; grid-row: 1; }
}
@media (max-width: 39.99rem) {
  .site-header nav .header-link { display: none; }
  .article-header { margin-top: 1.5rem; }
  .article-layout { margin-top: 2rem; }
  .sales-formula, .profit-flow { grid-template-columns: 1fr; }
  .sales-formula__operator { transform: rotate(90deg); }
  .profit-flow__operator { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
