/* トークン：DESIGN_進撃のAI君.md の組み方のまま、色だけ青基調へ（2026-09-30 本人指示「青っぽいデザインがいい」） */
:root{
  --bg:#ffffff; --surface:#ffffff;
  --accent:#1565c0; --accent-strong:#0d47a1; --gold:#d4a017;
  --tint-quote:#f9f9f9;
  --text:#333333; --muted:#555555;
  --cta-bg:#1565c0; --cta-text:#ffffff;
  --font-ja:"Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;
  --font-num:"Roboto","Roboto Flex",sans-serif;
  --r-card:12px; --r-btn:9999px;
  --e-card:0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
  --e-hover:0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23);
  --enter:cubic-bezier(0.05,0.7,0.1,1);
  --exit:cubic-bezier(0.3,0,0.8,0.15);
  --gutter:16px;
}
@media (min-width:768px){ :root{ --gutter:24px; } }
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; color:var(--text); }
body{ margin:0; background:var(--bg); color:var(--text); font-family:var(--font-ja); font-size:16px; line-height:1.65; overflow-wrap:anywhere; }
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; }
a:focus-visible,button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 var(--gutter); }
.num{ font-family:var(--font-num); }

/* ボタン（CTA）：hover で elevation 3 ＋ 8% オーバーレイ、pressed 10% */
.btn{ position:relative; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:12px 24px; border-radius:var(--r-btn); overflow:hidden;
  font-size:14px; line-height:20px; font-weight:700; text-decoration:none; letter-spacing:.02em;
  transition:box-shadow 200ms var(--exit); }
.btn::after{ content:""; position:absolute; inset:0; background:var(--cta-text); opacity:0; transition:opacity 200ms var(--exit); pointer-events:none; }
.btn-primary{ background:var(--cta-bg); color:var(--cta-text); }
.btn-primary:hover{ box-shadow:var(--e-hover); }
.btn-primary:hover::after{ opacity:.08; }
.btn-primary:active::after{ opacity:.10; }
.btn-secondary{ background:var(--surface); color:var(--accent); box-shadow:inset 0 0 0 2px var(--accent); }
.btn-secondary::after{ background:var(--accent); }
.btn-secondary:hover{ box-shadow:inset 0 0 0 2px var(--accent), var(--e-hover); }
.btn-secondary:hover::after{ opacity:.08; }
.btn-secondary:active::after{ opacity:.10; }
.btn-lg{ min-height:56px; padding:16px 32px; font-size:16px; line-height:24px; }
.btn-block{ display:flex; width:100%; }

/* ヘッダー */
.site-header{ position:sticky; top:0; z-index:10; background:var(--surface); box-shadow:var(--e-card); }
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:64px; }
.brand{ display:inline-flex; align-items:center; min-height:48px; text-decoration:none; font-size:16px; line-height:24px; font-weight:700; }
.brand b{ color:var(--accent); }
.nav{ display:flex; align-items:center; gap:8px; }
.nav-link{ position:relative; display:none; align-items:center; min-height:48px; padding:0 16px; border-radius:var(--r-btn); text-decoration:none; font-size:14px; line-height:20px; font-weight:500; color:var(--muted); overflow:hidden; }
.nav-link::after{ content:""; position:absolute; inset:0; background:var(--text); opacity:0; transition:opacity 200ms var(--exit); }
.nav-link:hover::after{ opacity:.08; } .nav-link:active::after{ opacity:.10; }
@media (min-width:768px){ .nav-link{ display:inline-flex; } }
.nav .btn{ padding:4px 16px; line-height:20px; }
.btn-stack{ display:flex; flex-direction:column; align-items:center; }
.btn-stack small{ font-size:14px; line-height:20px; font-weight:400; }

/* ヒーロー */
.hero{ padding:48px 0 48px; }
.eyebrow{ margin:0 0 16px; font-size:14px; line-height:20px; font-weight:700; color:var(--accent); letter-spacing:.04em; }
.hero h1{ margin:0 0 24px; font-size:32px; line-height:40px; font-weight:700; letter-spacing:.01em; }
.hero h1 span{ display:inline-block; }
.hero h1 em{ font-style:normal; color:var(--accent); }
.hero .lead{ margin:0 0 32px; max-width:66ch; font-size:16px; line-height:24px; color:var(--muted); }
.hero-actions{ display:flex; flex-direction:column; gap:16px; }
.with-hint{ display:flex; flex-direction:column; gap:8px; }
.hero .hint{ margin:0; font-size:14px; line-height:20px; color:var(--muted); text-align:center; }
@media (min-width:768px){
  .hero{ padding:96px 0 48px; }
  .hero-actions{ flex-direction:row; align-items:flex-start; }
}
@media (min-width:1024px){
  .hero h1{ font-size:57px; line-height:64px; }
}
.rule{ width:48px; height:4px; margin:0 0 24px; background:var(--accent); color:var(--accent); border:0; border-radius:4px; }

/* 記事一覧 */
.section{ padding:48px 0; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 24px; }
.section-head h2{ margin:0; font-size:24px; line-height:32px; font-weight:700; }
.section-head .count{ font-size:14px; line-height:20px; color:var(--muted); }
.grid{ display:grid; grid-template-columns:1fr; gap:24px; margin:0; padding:0; list-style:none; }
@media (min-width:768px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px){ .grid{ grid-template-columns:repeat(3,1fr); gap:32px; } }
.card{ position:relative; display:flex; flex-direction:column; height:100%; max-width:600px; background:var(--surface); border-radius:var(--r-card); box-shadow:var(--e-card); overflow:hidden; text-decoration:none;
  transition:box-shadow 200ms var(--exit); animation:enter 500ms var(--enter) both; }
.card::after{ content:""; position:absolute; inset:0; background:var(--text); opacity:0; transition:opacity 200ms var(--exit); pointer-events:none; }
.card:hover{ box-shadow:var(--e-hover); }
.card:hover::after{ opacity:.08; } .card:active::after{ opacity:.10; }
.card .thumb{ aspect-ratio:16/9; width:100%; object-fit:cover; background:var(--tint-quote); }
.card .thumb-left{ object-position:left center; } /* 横長の画像は左の文字を残す */
.greet[hidden]{ display:none; } /* 抜粋の頭の挨拶だけ表示から外す（文言はそのまま） */
.card .body{ display:flex; flex-direction:column; flex:1; padding:16px 24px 24px; }
.card time{ font-family:var(--font-num); font-size:14px; line-height:20px; color:var(--muted); letter-spacing:.04em; }
.card h3{ margin:8px 0 8px; font-size:22px; line-height:28px; font-weight:700; }
.card p{ margin:0 0 16px; font-size:14px; line-height:20px; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.card .more{ margin-top:auto; font-size:14px; line-height:20px; font-weight:500; color:var(--accent); }
.badge{ display:inline-block; margin-left:8px; padding:0 8px; border-radius:4px; background:var(--accent); color:var(--cta-text); font-family:var(--font-ja); font-size:14px; line-height:20px; font-weight:500; vertical-align:top; }
.grid li:nth-child(2) .card{ animation-delay:60ms; } .grid li:nth-child(3) .card{ animation-delay:120ms; }
.grid li:nth-child(4) .card{ animation-delay:180ms; } .grid li:nth-child(5) .card{ animation-delay:240ms; }
@keyframes enter{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ .card{ animation:none; } }

/* マガジンCTA */
.cta-card{ max-width:600px; margin:0 auto; padding:32px 16px; background:var(--surface); border-radius:var(--r-card); box-shadow:var(--e-card); text-align:center; }
@media (min-width:768px){ .cta-card{ padding:48px 48px; } }
.cta-card .eyebrow{ margin-bottom:8px; }
.cta-card h2{ margin:0 0 16px; font-size:24px; line-height:32px; font-weight:700; }
.cta-card h2 span{ display:inline-block; } .cta-card h2 span:first-child{ display:block; }
.cta-card p{ margin:0 0 24px; font-size:16px; line-height:1.65; }
.cta-card .note{ margin:16px 0 0; font-size:14px; line-height:20px; color:var(--muted); }

/* フッター */
.site-footer{ margin-top:48px; padding:32px 0 48px; box-shadow:0 -1px 0 rgba(0,0,0,.12); }
.site-footer .wrap{ display:flex; flex-direction:column; gap:16px; }
@media (min-width:768px){ .site-footer .wrap{ flex-direction:row; align-items:center; justify-content:space-between; } }
.site-footer .brand{ min-height:48px; }
.footer-links{ display:flex; gap:8px; margin:0; padding:0; list-style:none; }
.footer-links a{ position:relative; display:inline-flex; align-items:center; min-height:48px; padding:0 16px; margin-left:-16px; border-radius:var(--r-btn); font-size:14px; line-height:20px; color:var(--muted); text-decoration:none; overflow:hidden; }
.footer-links a::after{ content:""; position:absolute; inset:0; background:var(--text); opacity:0; transition:opacity 200ms var(--exit); }
.footer-links a:hover::after{ opacity:.08; } .footer-links a:active::after{ opacity:.10; }
.copy{ margin:0; font-family:var(--font-num); font-size:14px; line-height:20px; color:var(--muted); }

/* 記事ページ */
.crumb{ padding:24px 0 0; }
.crumb a{ position:relative; display:inline-flex; align-items:center; min-height:48px; padding:0 16px; margin-left:-16px; border-radius:var(--r-btn); font-size:14px; line-height:20px; font-weight:500; color:var(--muted); text-decoration:none; overflow:hidden; }
.crumb a::after{ content:""; position:absolute; inset:0; background:var(--text); opacity:0; transition:opacity 200ms var(--exit); }
.crumb a:hover::after{ opacity:.08; } .crumb a:active::after{ opacity:.10; }
.article-wrap{ max-width:648px; margin:0 auto; padding:0 var(--gutter); }
@media (min-width:768px){ .article-wrap{ max-width:648px; } }
.article-head{ padding:16px 0 32px; }
.article-head h1{ margin:0 0 16px; font-size:24px; line-height:32px; font-weight:700; }
@media (min-width:768px){ .article-head{ padding:24px 0 48px; } .article-head h1{ font-size:32px; line-height:40px; } }
.meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin:0; font-size:14px; line-height:20px; color:var(--muted); }
.meta time{ font-family:var(--font-num); letter-spacing:.04em; }
.meta .author{ font-weight:500; color:var(--text); }
.article-head .rule{ margin:24px 0 0; }
.prose{ max-width:66ch; }
.prose p{ margin:0 0 16px; }
.prose h2{ margin:48px 0 24px; padding:0 0 0 16px; box-shadow:inset 4px 0 0 var(--accent); font-size:22px; line-height:28px; font-weight:700; }
.prose figure{ margin:24px 0 32px; }
.prose figure img{ width:100%; border-radius:var(--r-card); box-shadow:var(--e-card); }
.prose .sign{ margin-top:32px; font-weight:700; }
.article-cta{ padding:48px 0 0; }
.related{ padding:48px 0 0; }
.related h2{ margin:0 0 24px; font-size:24px; line-height:32px; font-weight:700; }
.related-list{ display:flex; flex-direction:column; gap:16px; margin:0 0 32px; padding:0; list-style:none; }
.row-card{ position:relative; display:grid; grid-template-columns:112px 1fr; gap:16px; align-items:center; padding:16px; background:var(--surface); border-radius:var(--r-card); box-shadow:var(--e-card); text-decoration:none; overflow:hidden; transition:box-shadow 200ms var(--exit); }
@media (min-width:768px){ .row-card{ grid-template-columns:160px 1fr; gap:24px; } }
.row-card::after{ content:""; position:absolute; inset:0; background:var(--text); opacity:0; transition:opacity 200ms var(--exit); pointer-events:none; }
.row-card:hover{ box-shadow:var(--e-hover); } .row-card:hover::after{ opacity:.08; } .row-card:active::after{ opacity:.10; }
.row-card img{ width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:8px; background:var(--tint-quote); }
.row-card time{ display:block; font-family:var(--font-num); font-size:14px; line-height:20px; color:var(--muted); letter-spacing:.04em; }
.row-card h3{ margin:4px 0 0; font-size:16px; line-height:24px; font-weight:500; }

/* 記事本文（見本に無い要素：見出し3・4、箇条書き、強調、リンク。トークンの値だけで組む） */
.prose h3{ margin:32px 0 16px; font-size:16px; line-height:24px; font-weight:700; color:var(--accent-strong); }
.prose h4{ margin:24px 0 16px; font-size:16px; line-height:24px; font-weight:700; }
.prose ul,.prose ol{ margin:0 0 16px; padding-left:24px; }
.prose li{ margin:0 0 8px; }
.prose strong{ font-weight:700; }
.prose a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.prose a:hover{ color:var(--accent-strong); }

/* 404 */
.notfound{ padding:48px 0; }
.notfound h1{ margin:0 0 16px; font-size:24px; line-height:32px; font-weight:700; }
.notfound p{ margin:0 0 32px; color:var(--muted); }
@media (min-width:768px){ .notfound{ padding:96px 0 48px; } .notfound h1{ font-size:32px; line-height:40px; } }
