/* SEEDAS AI推進ノート — 色・文字の決まりは BRAND.md */
:root {
  --ink: #0b1f33;
  --ink-2: #16314d;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --line: #e3e1d9;
  --muted: #5b6573;
  --text: #1c2733;
  --seed: #0e7a5a;
  --sprout: #d4f25a;
  --c-kenshu: #c2410c;
  --c-claude-code: #0e7a5a;
  --c-kaizen: #1d4ed8;
  --radius: 10px;
  --head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.8; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.small { font-size: 12px; color: #8a94a3; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.logo b { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; }
.mark { position: relative; width: 22px; height: 22px; flex: none; }
.mark i { position: absolute; width: 11px; height: 14px; border-radius: 2px; }
.mark i:first-child { left: 0; bottom: 0; background: var(--seed); }
.mark i:last-child { right: 0; top: 0; background: var(--sprout); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 31, 51, .96); color: #fff; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.nav { display: flex; gap: 22px; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: #c9d3de; white-space: nowrap; }
.nav a:hover { color: var(--sprout); }

/* eyebrow / labels */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--seed); margin: 0 0 6px; }
.eyebrow-light { color: var(--sprout); }
.cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.cat i { width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.cat-kenshu i { background: var(--c-kenshu); }
.cat-claude-code i { background: var(--c-claude-code); }
.cat-kaizen i { background: var(--c-kaizen); }
.aud { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; background: var(--surface); }

/* hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before, .page-head::before, .series-band::before, .article-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-inner { position: relative; padding: 72px 20px 64px; }
.hero h1 { font-family: var(--head); font-size: clamp(30px, 5vw, 52px); line-height: 1.35; margin: 8px 0 20px; letter-spacing: .01em; }
.hl { background: linear-gradient(transparent 62%, rgba(212, 242, 90, .9) 62%); color: #fff; padding: 0 2px; }
.hero .hl { color: var(--ink); background: var(--sprout); padding: 0 8px; border-radius: 4px; }
.hero-lead { max-width: 640px; color: #c9d3de; margin: 0 0 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); overflow: hidden; max-width: 720px; }
.hero-stats div { background: var(--ink); padding: 16px 18px; }
.hero-stats b { display: block; font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--sprout); line-height: 1.2; }
.hero-stats small { font-size: 14px; }
.hero-stats span { font-size: 12px; color: #c9d3de; }

/* blocks */
.block { padding: 56px 20px 8px; }
.block-head { margin-bottom: 24px; position: relative; }
.block-head h2 { font-family: var(--head); font-size: 26px; margin: 0 0 6px; line-height: 1.4; }
.block-head p { margin: 0; color: var(--muted); max-width: 640px; }
.block-head .more { position: absolute; right: 0; bottom: 0; font-size: 14px; color: var(--seed); text-decoration: none; font-weight: 700; }

/* paths */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--ink); }
.path-no { font-family: var(--mono); color: var(--seed); margin: 0; font-size: 13px; }
.path h3 { font-family: var(--head); font-size: 20px; margin: 4px 0 4px; }
.path-a { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.path ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.path li { border-bottom: 1px solid var(--line); }
.path li a { display: block; padding: 10px 0; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.6; }
.path li a::after { content: " →"; color: var(--seed); }
.path li a:hover { color: var(--seed); }

/* series band */
.series-band { background: var(--ink); color: #fff; position: relative; margin-top: 56px; padding: 56px 0; }
.series-band .wrap { position: relative; }
.series-band .block-head p { color: #c9d3de; }
.series-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.series-list a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); text-decoration: none; }
.series-list .no { font-family: var(--mono); color: var(--sprout); }
.series-list .t { font-weight: 700; line-height: 1.6; }
.series-list .m { font-size: 12px; color: #8fa0b3; }
.series-list a:hover .t { color: var(--sprout); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11, 31, 51, .1); border-color: #cfd5dc; }
.card-thumb { aspect-ratio: 1200 / 630; background: var(--ink); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.card h3 { font-family: var(--head); font-size: 17px; line-height: 1.55; margin: 0 0 8px; }
.card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; gap: 12px; font-family: var(--mono); font-size: 12px; color: #8a94a3; }

/* page head */
.page-head, .article-head { background: var(--ink); color: #fff; position: relative; }
.page-head .wrap, .article-head .wrap { position: relative; padding-top: 48px; padding-bottom: 44px; }
.page-head h1 { font-family: var(--head); font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.page-head p { color: #c9d3de; margin: 0; max-width: 680px; }
.page-head a { color: var(--sprout); }

/* article */
.crumbs { font-size: 12px; color: #8fa0b3; margin: 0 0 16px; display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.article-head .article-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.article-head .cat { color: #fff; }
.article-head .aud { background: transparent; color: #c9d3de; border-color: rgba(255,255,255,.25); }
.article-title { font-family: var(--head); font-size: clamp(24px, 3.6vw, 36px); line-height: 1.45; margin: 0 0 14px; max-width: 860px; }
.article-lead { color: #c9d3de; max-width: 780px; margin: 0 0 18px; }
.article-sub { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 12px; color: #8fa0b3; margin: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding-top: 32px; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.toc, .series-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 13px; }
.toc ol, .series-box ol { margin: 0; padding: 0; list-style: none; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); line-height: 1.5; border-bottom: 1px dashed var(--line); }
.toc a:hover { color: var(--seed); }
.series-name { font-weight: 700; margin: 0 0 8px; }
.series-box a { display: grid; grid-template-columns: 28px 1fr; padding: 6px 0; text-decoration: none; color: var(--muted); line-height: 1.5; }
.series-box span { font-family: var(--mono); color: var(--seed); }
.series-box .on a { color: var(--ink); font-weight: 700; }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 44px 44px; overflow: hidden; }
.article-cover { margin: 0 -44px 32px; width: calc(100% + 88px); max-width: none; }
.about .prose { padding-top: 12px; }
.prose h2 { font-family: var(--head); font-size: 23px; line-height: 1.5; margin: 52px 0 18px; padding-top: 18px; border-top: 2px solid var(--ink); position: relative; }
.prose h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--sprout); box-shadow: 0 0 0 0 transparent; }
.prose h2:first-child { margin-top: 8px; }
.prose h3 { font-family: var(--head); font-size: 18px; margin: 32px 0 10px; padding-left: 12px; border-left: 4px solid var(--seed); line-height: 1.5; }
.prose p { margin: 0 0 1.2em; }
.prose strong { background: linear-gradient(transparent 64%, rgba(212, 242, 90, .75) 64%); }
.prose a { color: var(--seed); font-weight: 700; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.6em 0; padding: 14px 20px; background: #f3f6ee; border-left: 4px solid var(--seed); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: #f1f0eb; padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--ink); color: #e6edf3; padding: 16px 18px; border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.65; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: #faf9f6; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }

.article-after { padding-top: 24px; }
.author { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: calc(100% - 320px); font-size: 14px; }
.author-mark { width: 52px; height: 52px; flex: none; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.author-name { font-weight: 700; margin: 0 0 4px; font-size: 16px; }
.author-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.author p { margin: 0; }

/* cta */
.cta { margin: 56px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 28px; align-items: center; border-left: 6px solid var(--seed); }
.cta h2 { font-family: var(--head); font-size: 22px; margin: 0 0 6px; }
.cta p { margin: 0; font-size: 14px; color: var(--muted); }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.services li { display: grid; grid-template-columns: 9em 1fr; gap: 8px; }
.services b { color: var(--ink); }
.services span { color: var(--muted); }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 8px; white-space: nowrap; }
.btn:hover { background: var(--seed); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* footer */
.site-footer { margin-top: 72px; background: var(--ink); color: #c9d3de; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 20px; }
.logo-footer { color: #fff; margin: 0 0 8px; }
.footer-lead { margin: 0; font-size: 13px; max-width: 420px; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--sprout); }

/* responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paths { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .side .toc { display: none; }
  .author { max-width: none; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: auto; padding-top: 10px; padding-bottom: 8px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { gap: 16px; font-size: 13px; width: 100%; }
  .hero-inner { padding: 44px 16px 40px; }
  .hero h1 { font-size: 27px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; }
  .grid { grid-template-columns: 1fr; }
  .block { padding: 40px 16px 0; }
  .block-head .more { position: static; display: inline-block; margin-top: 8px; }
  .series-list { grid-template-columns: 1fr; }
  .prose { padding: 0 18px 28px; }
  .article-cover { margin: 0 -18px 24px; width: calc(100% + 36px); }
  .prose h2 { font-size: 20px; }
  .cta { padding: 22px; }
  .services li { grid-template-columns: 1fr; gap: 0; }
}
