/* =========================================================
   A-I Works — 共通スタイル（下層ページ用）
   LP(index.html) のトークン/ヘッダー・フッターを移植し、
   全ページで一貫したブランド表現（LAB 白基調）を担保する。
   ヘッダー/フッターのマークアップは site.js が焼き込む前提。
   ========================================================= */
:root{
  --bg:#F6F8FD; --card:#FFFFFF; --ink:#0F1E33; --sub:#48586E; --faint:#8593A8;
  --line:#DCE3EF; --line-soft:#E8EDF6;
  --primary:#2F5AC8; --primary-d:#244aa8; --primary-soft:#EAF0FC;
  --accent:#1F8FBF; --accent-soft:#E4F3F8;
  --dark:#0F1E33;
  --ok:#1F8A52; --ok-soft:#E8F7EE;
  --shadow:0 30px 60px -42px rgba(15,30,51,.5);
  --shadow-sm:0 16px 34px -26px rgba(15,30,51,.45);
  --shadow-xs:0 8px 20px -16px rgba(15,30,51,.4);
  --head:'Zen Kaku Gothic New','Hiragino Kaku Gothic ProN',sans-serif;
  --body:'Noto Sans JP','Hiragino Sans',sans-serif;
  --mono:'DM Mono',monospace;
  --sans:'DM Sans','Noto Sans JP',sans-serif;
  --wrap:1240px;
}
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:hidden; }
body{ margin:0; background:var(--bg); color:var(--ink); font-family:var(--body); font-weight:400; line-height:1.7;
  -webkit-font-smoothing:antialiased; overflow-x:hidden; width:100%; max-width:100%; position:relative; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--accent); color:#fff; }
h1,h2,h3,h4{ margin:0; font-family:var(--head); text-wrap:balance; word-break:keep-all; overflow-wrap:break-word; }
p{ margin:0; text-wrap:pretty; word-break:keep-all; overflow-wrap:break-word; }
.ph{ display:inline-block; }
.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 32px; }

/* reveal */
.js .reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in{ opacity:1; transform:none; }
.js .reveal.d1{ transition-delay:.07s; } .js .reveal.d2{ transition-delay:.14s; } .js .reveal.d3{ transition-delay:.21s; }
@media (prefers-reduced-motion:reduce){ .js .reveal{ opacity:1!important; transform:none!important; transition:none!important; } html{ scroll-behavior:auto; } }

/* ---------- header（LP と同一） ---------- */
.hd{ position:sticky; top:0; z-index:60; background:rgba(246,248,253,.82); backdrop-filter:saturate(140%) blur(14px); border-bottom:1px solid transparent; transition:border-color .3s, box-shadow .3s, background .3s; }
.hd.scrolled{ border-bottom-color:var(--line); box-shadow:0 10px 30px -26px rgba(15,30,51,.5); }
.hd-in{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.logo{ display:flex; align-items:center; gap:12px; }
.logo-mk{ width:40px; height:40px; border-radius:11px; background:linear-gradient(150deg,var(--primary),#3f74e6); display:flex; align-items:center; justify-content:center; box-shadow:0 12px 22px -12px rgba(47,90,200,.75); }
.logo-mk span{ font-family:var(--sans); font-weight:700; color:#fff; font-size:21px; }
.logo-tx{ display:flex; flex-direction:column; line-height:1.05; }
.logo-tx b{ font-family:var(--head); font-weight:900; font-size:19px; letter-spacing:.01em; }
.logo-tx small{ font-family:var(--mono); font-size:9.5px; letter-spacing:.24em; color:var(--faint); margin-top:2px; }
.nav{ display:flex; align-items:center; gap:30px; }
.nav a{ font-size:14.5px; font-weight:500; color:var(--sub); transition:color .2s; }
.nav a:hover,.nav a.active{ color:var(--primary); }
.nav .cta{ font-family:var(--head); font-weight:700; font-size:14.5px; color:#fff; background:var(--primary); padding:11px 22px; border-radius:999px; box-shadow:0 14px 26px -16px rgba(47,90,200,.8); transition:transform .2s, background .2s; }
.nav .cta:hover{ background:var(--primary-d); transform:translateY(-1px); color:#fff; }
.burger{ display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:11px; background:#fff; cursor:pointer; align-items:center; justify-content:center; flex-direction:column; gap:5px; }
.burger span{ width:18px; height:2px; background:var(--ink); border-radius:2px; transition:.25s; }
.mnav{ position:fixed; inset:0 0 0 auto; width:min(82vw,320px); background:#fff; z-index:80; box-shadow:-20px 0 60px -30px rgba(15,30,51,.6); padding:26px 24px; transform:translateX(100%); transition:transform .3s cubic-bezier(.2,.7,.2,1); }
.mnav.open{ transform:none; }
.mnav-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.mnav-close{ width:42px; height:42px; border:1px solid var(--line); border-radius:11px; background:#fff; font-size:20px; cursor:pointer; color:var(--ink); }
.mnav a{ display:block; padding:15px 4px; font-family:var(--head); font-weight:700; font-size:17px; border-bottom:1px solid var(--line-soft); }
.mnav .cta{ margin-top:22px; text-align:center; background:var(--primary); color:#fff; border-radius:12px; padding:15px; border:none; }
.scrim{ position:fixed; inset:0; background:rgba(15,30,51,.4); z-index:70; opacity:0; pointer-events:none; transition:opacity .3s; }
.scrim.open{ opacity:1; pointer-events:auto; }

/* ---------- section frame（LP と同一） ---------- */
section{ position:relative; }
.sec{ padding:96px 0; }
.sec-tight{ padding:76px 0; }
.sec.alt{ background:#fff; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.kick{ display:flex; align-items:center; gap:14px; margin-bottom:20px; flex-wrap:wrap; }
.kick-en{ font-family:var(--mono); font-size:13px; letter-spacing:.2em; color:var(--primary); text-transform:uppercase; }
.kick-bar{ width:38px; height:2px; background:var(--primary); opacity:.45; }
.kick-jp{ font-family:var(--head); font-weight:700; font-size:13.5px; letter-spacing:.06em; color:var(--faint); }
.h2{ font-family:var(--head); font-weight:900; font-size:clamp(28px,4vw,44px); line-height:1.26; letter-spacing:.01em; }
.h2 .pri{ color:var(--primary); } .h2 .acc{ color:var(--accent); }
.lead{ font-size:clamp(15px,1.6vw,18px); line-height:1.95; color:var(--sub); margin-top:20px; max-width:42em; }
.lead.wide{ max-width:none; }
.lead.oneline{ max-width:none; font-size:clamp(13px,1.45vw,18px); }
@media (min-width:900px){ .lead.oneline{ white-space:nowrap; } }
.center{ text-align:center; } .center .kick{ justify-content:center; } .center .lead{ margin-left:auto; margin-right:auto; }

/* ---------- breadcrumb ---------- */
.crumb{ padding:18px 0 0; }
.crumb ol{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0; padding:0; font-family:var(--sans); font-size:12.5px; color:var(--faint); }
.crumb li{ display:flex; align-items:center; gap:8px; }
.crumb li::after{ content:"/"; color:var(--line); }
.crumb li:last-child::after{ content:none; }
.crumb a{ color:var(--sub); } .crumb a:hover{ color:var(--primary); }
.crumb li[aria-current]{ color:var(--ink); font-weight:600; }

/* ---------- page hero（下層ページ共通の導入） ---------- */
.phero{ position:relative; overflow:hidden; padding:44px 0 66px; }
.phero::before{ content:""; position:absolute; inset:0; z-index:0; background:
    radial-gradient(760px 420px at 88% 0%, rgba(47,90,200,.09), transparent 62%),
    radial-gradient(560px 420px at 0% 100%, rgba(31,143,191,.08), transparent 60%); }
.phero .wrap{ position:relative; z-index:1; }
.phero h1{ font-family:var(--head); font-weight:900; font-size:clamp(28px,4.4vw,50px); line-height:1.24; letter-spacing:.01em; margin-top:20px; }
.phero h1 .pri{ color:var(--primary); }
.phero-sub{ font-size:clamp(15px,1.7vw,19px); line-height:1.9; color:var(--sub); margin-top:22px; max-width:38em; }
.phero-sub.oneline{ max-width:none; }
@media (min-width:900px){ .phero-sub.oneline{ white-space:nowrap; } }
.phero-meta{ display:flex; gap:12px; align-items:center; margin-top:24px; flex-wrap:wrap; font-family:var(--sans); font-size:13px; color:var(--faint); }

/* ---------- buttons ---------- */
.btn{ font-family:var(--head); font-weight:700; font-size:15.5px; border-radius:13px; padding:15px 28px; display:inline-flex; align-items:center; gap:10px; cursor:pointer; transition:transform .2s, box-shadow .2s, background .2s; }
.btn-pri{ background:var(--primary); color:#fff; box-shadow:0 20px 36px -18px rgba(47,90,200,.85); }
.btn-pri:hover{ background:var(--primary-d); transform:translateY(-2px); color:#fff; }
.btn-ghost{ background:#fff; color:var(--primary); border:1.5px solid var(--line); }
.btn-ghost:hover{ border-color:var(--primary); transform:translateY(-2px); }
.btn-row{ display:flex; gap:13px; flex-wrap:wrap; margin-top:30px; }

/* ---------- cards / grid ---------- */
.card{ background:var(--card); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-sm); }
.grid{ display:grid; gap:22px; }
.g3{ grid-template-columns:repeat(3,1fr); } .g2{ grid-template-columns:repeat(2,1fr); }
.grid > *, .flow > *, .hub > *, .split2 > *{ min-width:0; }

/* AIO 回答ブロック（各ページ冒頭） */
.answer{ display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:start; padding:30px 34px; border-radius:18px; background:linear-gradient(160deg,#eef4fe,#e6f3f8); border:1px solid #fff; box-shadow:var(--shadow-sm); }
.answer > *{ min-width:0; }
.answer .qmark{ width:52px; height:52px; border-radius:14px; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--head); font-weight:900; font-size:26px; }
.answer h2{ font-family:var(--head); font-weight:900; font-size:clamp(19px,2.2vw,25px); line-height:1.45; }
.answer p{ font-size:15px; line-height:1.95; color:var(--sub); margin-top:12px; }
.answer p b{ color:var(--ink); font-weight:700; }
@media (max-width:560px){ .answer{ grid-template-columns:1fr; gap:14px; padding:24px 22px; } }

/* 汎用: 見出し + 説明のカード */
.feat{ padding:28px 26px; }
.feat .ic{ width:54px; height:54px; border-radius:14px; background:var(--primary-soft); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.feat h3{ font-family:var(--head); font-weight:700; font-size:18px; line-height:1.45; }
.feat p{ font-size:14px; line-height:1.8; color:var(--sub); margin-top:11px; }
.feat .k{ margin-top:16px; display:inline-block; background:var(--primary-soft); color:var(--primary); font-weight:700; font-size:13px; padding:7px 15px; border-radius:999px; }
.feat .num{ font-family:var(--mono); font-weight:500; font-size:19px; color:var(--primary); }

/* 名前ピル（PEPO アクター名など） */.names{ display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.names span{ font-family:var(--head); font-weight:700; font-size:16px; color:var(--primary); background:var(--primary-soft); border-radius:999px; padding:12px 26px; }

/* PEPO（system）とペポ（mascot）の使い分けカード */
.np{ padding:0; overflow:hidden; display:flex; flex-direction:column; }
.np .vis{ height:200px; display:flex; align-items:center; justify-content:center; gap:22px; padding:24px 26px; background:var(--primary-soft); border-bottom:1px solid var(--line); }
.np.mas .vis{ background:var(--accent-soft); border-bottom-color:#C9E6EF; }
.np .vis > div{ text-align:center; }
.np .mark{ font-family:var(--head); font-weight:900; font-size:clamp(36px,4.2vw,52px); line-height:1.05; color:var(--primary); }
.np.mas .mark{ color:var(--accent); }
.np .vis .sub{ display:block; font-family:var(--mono); font-size:10.5px; letter-spacing:.15em; color:var(--faint); margin-top:12px; }
.np .vis img{ width:150px; height:150px; flex:none; }
.np .body{ padding:26px 28px 30px; }
.np .lab{ font-family:var(--mono); font-size:11px; letter-spacing:.16em; color:var(--faint); }
.np .role{ font-family:var(--head); font-weight:700; font-size:16.5px; line-height:1.5; margin-top:10px; }
.np .desc{ font-size:14px; line-height:1.85; color:var(--sub); margin-top:11px; }
@media (max-width:640px){ .np .vis{ height:156px; gap:16px; padding:20px; } .np .vis img{ width:108px; height:108px; } }
@media (max-width:640px){ .names{ gap:9px; } .names span{ font-size:14.5px; padding:10px 18px; } }

/* 安心ストリップ */
.safe{ margin-top:26px; display:flex; align-items:center; gap:15px; background:var(--accent-soft); border:1px solid #C9E6EF; border-radius:16px; padding:20px 26px; font-size:15px; line-height:1.7; color:var(--sub); }
.safe b{ color:var(--ink); font-weight:700; } .safe svg{ flex:none; }

/* ---------- FAQ ---------- */
.faq{ margin-top:36px; display:grid; gap:14px; }
.faq > *{ min-width:0; }
.faq-item{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px 28px; box-shadow:var(--shadow-xs); }
.faq-item h3{ font-family:var(--head); font-weight:700; font-size:17px; line-height:1.5; display:flex; gap:12px; min-width:0; flex-wrap:wrap; overflow-wrap:anywhere; }
.faq-item h3::before{ content:"Q"; font-family:var(--sans); font-weight:700; color:var(--primary); flex:none; }
.faq-item p{ font-size:14.5px; line-height:1.9; color:var(--sub); margin-top:12px; padding-left:26px; overflow-wrap:anywhere; }

/* ---------- compare table ---------- */
.cmp{ margin-top:32px; overflow-x:auto; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:var(--shadow-xs); }
.cmp table{ border-collapse:collapse; width:100%; min-width:560px; }
.cmp th,.cmp td{ padding:16px 20px; text-align:left; border-bottom:1px solid var(--line-soft); vertical-align:top; font-size:14px; line-height:1.7; }
.cmp thead th{ font-family:var(--head); font-size:13.5px; background:#F7F9FD; color:var(--sub); }
.cmp thead th.us{ background:var(--primary); color:#fff; }
.cmp tbody th{ font-family:var(--head); font-weight:700; font-size:13.5px; color:var(--ink); background:#FBFCFE; width:26%; }
.cmp td{ color:var(--sub); }
.cmp td.us{ background:var(--primary-soft); color:var(--ink); font-weight:500; }
.cmp tr:last-child th,.cmp tr:last-child td{ border-bottom:none; }

/* ---------- prose（記事本文） ---------- */
.prose{ max-width:42em; }
.prose h2{ font-family:var(--head); font-weight:900; font-size:clamp(21px,2.4vw,27px); line-height:1.4; margin:44px 0 4px; padding-top:12px; }
.prose h3{ font-family:var(--head); font-weight:700; font-size:19px; line-height:1.5; margin:30px 0 0; }
.prose p{ font-size:15.5px; line-height:2; color:var(--sub); margin-top:16px; }
.prose p b, .prose li b{ color:var(--ink); font-weight:700; }
.prose ul{ margin:16px 0 0; padding-left:0; list-style:none; }
.prose li{ position:relative; padding-left:24px; font-size:15.5px; line-height:1.9; color:var(--sub); margin-top:11px; }
.prose li::before{ content:""; position:absolute; left:5px; top:13px; width:7px; height:7px; border-radius:3px; background:var(--primary); }
.prose a{ color:var(--primary); border-bottom:1px solid rgba(47,90,200,.35); }
.prose a:hover{ border-color:var(--primary); }
.prose .callout{ margin:26px 0 0; padding:22px 26px; background:var(--primary-soft); border-radius:14px; border-left:4px solid var(--primary); }
.prose .callout .l{ font-family:var(--mono); font-size:12px; letter-spacing:.14em; color:var(--primary); }
.prose .callout p{ margin-top:8px; color:var(--ink); font-size:15px; }
.article-wrap{ display:grid; grid-template-columns:1fr 260px; gap:52px; align-items:start; }
.article-wrap > *{ min-width:0; }
.aside-box{ position:sticky; top:96px; }
.aside-box .card{ padding:22px 22px; }
.aside-box .h{ font-family:var(--mono); font-size:11px; letter-spacing:.16em; color:var(--faint); text-transform:uppercase; }
.aside-box a{ display:block; font-size:13.5px; color:var(--sub); padding:8px 0; border-bottom:1px solid var(--line-soft); line-height:1.5; }
.aside-box a:last-child{ border-bottom:none; }
.aside-box a:hover{ color:var(--primary); }
@media (max-width:900px){ .article-wrap{ grid-template-columns:1fr; gap:34px; } .aside-box{ position:static; } }

/* リスト型リンクカード（一覧ページ） */
.linklist{ display:grid; gap:16px; margin-top:32px; }
.linkrow{ display:flex; align-items:center; gap:20px; padding:24px 28px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-xs); transition:transform .2s, box-shadow .2s; }
.linkrow:hover{ transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.linkrow > *{ min-width:0; }
.linkrow .lr-b{ flex:1; }
.linkrow .lr-b b{ font-family:var(--head); font-weight:700; font-size:17px; color:var(--ink); }
.linkrow .lr-b p{ font-size:13.5px; color:var(--sub); margin-top:6px; line-height:1.7; }
.linkrow .lr-go{ flex:none; color:var(--primary); }
.linkrow .lr-no{ flex:none; font-family:var(--sans); font-weight:700; font-size:22px; color:var(--primary); opacity:.2; width:40px; text-align:center; }

/* 用語集 */
.terms{ display:grid; gap:0; margin-top:28px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; }
.term{ display:grid; grid-template-columns:220px 1fr; gap:24px; padding:22px 28px; border-bottom:1px solid var(--line-soft); }
.term:last-child{ border-bottom:none; }
.term > *{ min-width:0; }
.term dt{ font-family:var(--head); font-weight:700; font-size:16px; color:var(--ink); }
.term dt .en{ display:block; font-family:var(--mono); font-size:11px; color:var(--faint); margin-top:4px; letter-spacing:.04em; }
.term dd{ margin:0; font-size:14.5px; line-height:1.85; color:var(--sub); }
@media (max-width:640px){ .term{ grid-template-columns:1fr; gap:8px; } }

/* CTA band */
.ctaband{ background:
    radial-gradient(640px 520px at 80% 10%, rgba(63,116,230,.28), transparent 60%),
    radial-gradient(520px 460px at 10% 100%, rgba(31,143,191,.22), transparent 60%),
    var(--dark); color:#fff; text-align:center; }
.ctaband .kick{ justify-content:center; } .ctaband .kick-en{ color:#8FB0F5; } .ctaband .kick-jp{ color:#A9BBDA; } .ctaband .kick-bar{ background:#8FB0F5; }
.ctaband h2{ font-family:var(--head); font-weight:900; font-size:clamp(26px,4vw,44px); line-height:1.25; color:#fff; }
.ctaband h2 .pri{ color:#9EC2FF; }
.ctaband .lead{ color:#C4D2EA; margin-left:auto; margin-right:auto; max-width:34em; }
.ctaband .btn-pri{ background:#fff; color:var(--primary); }
.ctaband .btn-pri:hover{ background:#EAF1FF; color:var(--primary); }
.ctaband .btn-row{ justify-content:center; }

/* ---------- footer（LP と同一） ---------- */
.ft{ background:#0a1426; color:#aebacd; padding:54px 0 40px; }
.ft-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.ft-brand b{ font-family:var(--head); font-weight:900; font-size:20px; color:#fff; }
.ft-brand p{ font-size:13.5px; color:#8493ac; margin-top:10px; max-width:34em; line-height:1.7; }
.ft-cols{ display:flex; gap:52px; flex-wrap:wrap; }
.ft-col h4{ font-family:var(--head); font-weight:700; font-size:13px; color:#dbe3f0; margin-bottom:12px; letter-spacing:.03em; }
.ft-col a{ display:block; font-size:13px; color:#aebacd; padding:5px 0; transition:color .2s; }
.ft-col a:hover{ color:#fff; }
.ft-bottom{ margin-top:40px; padding-top:22px; border-top:1px solid rgba(255,255,255,.08); display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; font-family:var(--sans); font-size:12px; color:#6f7e98; }

/* ---------- before / after ---------- */
.ba{ display:grid; gap:18px; margin-top:28px; }
.ba-item{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:26px 30px; box-shadow:var(--shadow-xs); }
.ba-item .tag{ display:inline-block; font-family:var(--head); font-weight:700; font-size:14px; color:var(--ink); background:#EEF2FB; border-radius:9px; padding:7px 15px; margin-bottom:18px; }
.ba-cols{ display:grid; grid-template-columns:1fr auto 1fr; gap:20px; align-items:center; }
.ba-cols > *{ min-width:0; }
.ba .lbl{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; color:var(--faint); display:block; margin-bottom:7px; }
.ba .lbl.aft{ color:var(--primary); }
.ba .bf{ font-size:14px; line-height:1.78; color:var(--sub); }
.ba .af{ background:var(--primary-soft); border-radius:12px; padding:16px 18px; }
.ba .af p{ font-size:14px; line-height:1.78; color:var(--ink); font-weight:500; }
.ba .arrow{ color:var(--primary); opacity:.6; }
@media (max-width:640px){ .ba-cols{ grid-template-columns:1fr; gap:12px; } .ba .arrow{ transform:rotate(90deg); justify-self:center; } }

/* ---------- responsive ---------- */
@media (max-width:980px){
  .sec{ padding:72px 0; } .sec-tight{ padding:60px 0; }
  .g3{ grid-template-columns:repeat(2,1fr); }
  .hub{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .wrap{ padding:0 20px; }
  .sec{ padding:56px 0; } .sec-tight{ padding:48px 0; }
  .nav{ display:none; } .burger{ display:flex; }
  .g3,.g2{ grid-template-columns:1fr; }
  .btn-row .btn{ flex:1; justify-content:center; }
}
@media (max-width:480px){
  .phero h1{ font-size:clamp(24px,7.2vw,36px); }
  .h2{ font-size:clamp(23px,6.4vw,34px); }
}
