  :root{
    --bg:#f5f5f7; --panel:#ffffff; --text:#1d1d1f; --muted:#6e6e73;
    --line:#e3e3e8; --accent:#0071e3; --accent-soft:#eef5fd;
    --do-border:#b7dfba; --do-bg:#f2faf2; --do-head:#1e7a34;
    --dont-border:#efc4bf; --dont-bg:#fdf3f2; --dont-head:#b3261e;
    --radius:10px;
  }
  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{ margin:0; background:var(--bg); color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic UI",sans-serif;
    font-size:15px; line-height:1.62; -webkit-font-smoothing:antialiased; }
  a{ color:var(--accent); text-decoration:none; }
  a:hover{ text-decoration:underline; }

  /* ---------- header ---------- */
  .site-header{ background:var(--panel); border-bottom:1px solid var(--line); }
  .site-header .inner{ max-width:1340px; margin:0 auto; padding:9px 20px; display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
  .brand{ font-size:19px; font-weight:700; color:var(--text); letter-spacing:.01em; }
  .brand small{ display:block; font-size:11px; font-weight:400; color:var(--muted); }
  .brand:hover{ text-decoration:none; }
  .fan-tag{ font-size:11px; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:2px 10px; }
  .site-nav{ margin-left:auto; display:flex; gap:4px; flex-wrap:wrap; }
  .site-nav a{ color:var(--text); font-size:13.5px; padding:6px 12px; border-radius:8px; }
  .site-nav a:hover{ background:var(--bg); text-decoration:none; }
  .site-nav a.current{ background:var(--accent-soft); color:var(--accent); font-weight:600; }

  /* ---------- breadcrumb ---------- */
  .crumbs{ max-width:1340px; margin:0 auto; padding:8px 20px 0; font-size:12.5px; color:var(--muted); }
  .crumbs a{ color:var(--muted); }
  .crumbs .sep{ margin:0 6px; color:#b9b9c0; }

  /* ---------- 3-column layout ---------- */
  .layout{ max-width:1340px; margin:0 auto; padding:10px 20px 28px;
    display:grid; grid-template-columns:208px minmax(0,1fr) 300px; gap:20px; align-items:start; }

  /* ---------- left sidebar ---------- */
  .sidebar{ position:sticky; top:16px; }
  .side-box{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:10px 0 5px; margin-bottom:12px; }
  .side-box h4{ margin:0 14px 5px; font-size:12px; font-weight:700; color:var(--muted); letter-spacing:.08em; }
  .side-box ul{ list-style:none; margin:0; padding:0; }
  .side-box li a{ display:flex; align-items:center; gap:7px; padding:3.5px 14px; font-size:13.5px; color:var(--text); }
  .side-box li a:hover{ background:var(--bg); text-decoration:none; }
  .side-box li a.current{ background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .side-box .dot{ width:8px; height:8px; border-radius:50%; flex:none; }

  /* ---------- article ---------- */
  .article{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px 26px 4px; min-width:0; }
  .article h1{ font-size:25px; line-height:1.35; margin:0 0 4px; }
  .article-meta{ font-size:12.5px; color:var(--muted); margin-bottom:10px; }
  .lead{ font-size:15px; margin:0 0 12px; }
  .note{ background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:8px 12px; font-size:13px; color:var(--muted); margin:0 0 16px; }
  .note p{ margin:0 0 6px; }
  .note p:last-child{ margin-bottom:0; }

  .toc{ border:1px solid var(--line); border-radius:8px; padding:10px 16px 6px; margin:0 0 16px; }
  .toc h4{ margin:0 0 5px; font-size:13px; color:var(--muted); letter-spacing:.06em; }
  .toc ol{ margin:0; padding-left:20px; columns:2; column-gap:36px; }
  .toc li{ margin:1px 0; font-size:14px; break-inside:avoid; }

  .rank-box{ border:1px solid var(--line); border-radius:8px; padding:10px 16px; margin:0 0 4px; }
  .rank-box h3{ margin:0 0 4px; font-size:16px; }
  .rank-box p{ margin:4px 0; font-size:14px; }

  article.event{ padding-top:16px; margin-top:16px; border-top:1px solid var(--line); }
  article.event:first-of-type{ border-top:none; margin-top:2px; }
  article.event h2{ font-size:21px; line-height:1.4; margin:0 0 2px; padding-left:10px; border-left:5px solid #888; display:flex; align-items:center; flex-wrap:wrap; }
  article.event h2 .en{ font-size:13px; color:var(--muted); font-weight:400; margin-left:8px; }
  article.event h3{ font-size:15.5px; margin:14px 0 6px; padding-bottom:3px; border-bottom:1px solid var(--line); }
  article.event p{ margin:6px 0; }
  article.event ul{ margin:4px 0 8px; padding-left:20px; }
  article.event li{ margin:2px 0; }
  .ev-lead{ font-size:14.5px; margin:4px 0 10px; }

  .stats{ display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 2px; }
  .stat{ background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:5px 10px; }
  .stat span{ display:block; font-size:11.5px; color:var(--muted); }
  .stat b{ font-size:14px; display:flex; align-items:center; gap:5px; }

  table.data{ width:100%; border-collapse:collapse; margin:8px 0 10px; font-size:14px; }
  table.data th, table.data td{ border:1px solid var(--line); padding:5px 10px; text-align:left; }
  table.data th{ background:var(--bg); font-weight:600; white-space:nowrap; }
  table.data td.num, table.data th.num{ text-align:right; }

  .do-dont{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:10px 0 2px; }
  .dd-box{ border:1px solid; border-radius:8px; padding:8px 12px 5px; }
  .dd-box h4{ margin:0 0 4px; font-size:14px; }
  .dd-box ul{ margin:0; padding-left:18px; }
  .dd-box li{ margin:2px 0; font-size:13.5px; }
  .dd-do{ background:var(--do-bg); border-color:var(--do-border); }
  .dd-do h4{ color:var(--do-head); }
  .dd-dont{ background:var(--dont-bg); border-color:var(--dont-border); }
  .dd-dont h4{ color:var(--dont-head); }

  .tool-link{ display:inline-flex; align-items:center; gap:7px; margin:8px 0 10px; padding:6px 13px; border:1px solid var(--accent);
    border-radius:8px; font-size:14px; font-weight:600; background:var(--accent-soft); }
  .tool-link:hover{ text-decoration:none; background:#e0eefc; }

  /* ---------- ad placeholders ---------- */
  .adbox{ border:1.5px dashed #c7c7cc; background:#fafafa; color:#86868b; border-radius:6px;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
    margin:14px auto; text-align:center; padding:8px; }
  .adbox .ad-label{ font-size:10px; letter-spacing:.2em; color:#aeaeb2; }
  .adbox .ad-size{ font-size:13px; font-weight:600; }
  .adbox .ad-note{ font-size:11px; }
  .ad-728{ width:728px; max-width:100%; height:90px; }
  .ad-300x250{ width:300px; max-width:100%; height:250px; margin:0 auto 12px; }
  .ad-320{ width:320px; max-width:100%; height:100px; }
  .ad-sp{ display:none; }

  /* ---------- right rail ---------- */
  .rail{ position:sticky; top:16px; }
  .rail-box{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:11px 14px 6px; margin-bottom:12px; }
  .rail-box h4{ margin:0 0 5px; font-size:13px; letter-spacing:.05em; }
  .rail-box ul{ list-style:none; margin:0; padding:0; }
  .rail-box li{ margin:0 0 5px; font-size:13.5px; }
  .rail-box li a{ display:flex; align-items:center; gap:7px; }
  .rail-box p{ font-size:13px; color:var(--muted); margin:4px 0 8px; }

  /* ---------- game icons (hotlinked real in-game images; hidden on load failure) ---------- */
  .evic{ width:30px; height:30px; object-fit:contain; margin-right:9px; flex:none; }
  .ic{ width:17px; height:17px; object-fit:contain; vertical-align:-3px; flex:none; }
  .side-box .ic, .toc .ic{ width:19px; height:19px; vertical-align:0; }
  .stat .ic{ width:18px; height:18px; vertical-align:0; }
  .zobo-strip{ display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 4px; }
  .zobo-card{ width:104px; background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:7px 6px 5px; text-align:center; }
  .zobo-card img{ width:52px; height:52px; object-fit:contain; display:block; margin:0 auto 3px; }
  .zobo-card b{ display:block; font-size:12.5px; line-height:1.3; }
  .zobo-card span{ display:block; font-size:11px; color:var(--muted); line-height:1.35; margin-top:1px; }
  td .ic{ margin-right:5px; }

  /* ---------- footer ---------- */
  .site-footer{ border-top:1px solid var(--line); background:var(--panel); }
  .site-footer .inner{ max-width:1340px; margin:0 auto; padding:14px 20px 20px; font-size:12.5px; color:var(--muted); }
  .site-footer nav{ margin-bottom:10px; display:flex; gap:16px; flex-wrap:wrap; }
  .site-footer p{ margin:4px 0; }

  /* ---------- responsive ---------- */
  @media (max-width:1120px){
    .layout{ grid-template-columns:190px minmax(0,1fr); }
    .rail{ position:static; grid-column:2; display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
    .rail .adbox{ margin-top:0; }
  }
  @media (max-width:760px){
    .layout{ grid-template-columns:minmax(0,1fr); padding:8px 12px 24px; gap:14px; }
    .sidebar{ position:static; order:2; }
    .rail{ grid-column:auto; order:3; display:block; }
    .article{ padding:14px 15px 4px; }
    .article h1{ font-size:22px; }
    .toc ol{ columns:1; }
    .do-dont{ grid-template-columns:1fr; }
    .ad-pc{ display:none; }
    .ad-sp{ display:flex; }
    .site-nav{ margin-left:0; }
  }
  /* ---------- tabs (site-pages 共通) ---------- */
  .tabs{ display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 14px; }
  .tabs button{ font:inherit; font-size:13.5px; padding:6px 14px; border:1px solid var(--line); background:var(--panel);
    border-radius:999px; cursor:pointer; color:var(--text); }
  .tabs button:hover{ background:var(--bg); }
  .tabs button.active{ background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
  .tab-panel{ display:none; }
  .tab-panel.active{ display:block; }

  /* ---------- stage board (stages.html) ---------- */
  .stage-picker{ display:flex; flex-wrap:wrap; gap:5px; margin:8px 0 12px; max-height:220px; overflow:auto; }
  .stage-picker button{ font:inherit; font-size:12.5px; padding:4px 10px; border:1px solid var(--line); background:var(--panel); border-radius:7px; cursor:pointer; }
  .stage-picker button.active{ background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
  .board{ display:grid; gap:5px; margin:10px 0; }
  .cell{ background:var(--bg); border:1px solid var(--line); border-radius:8px; min-height:74px; padding:5px 3px 4px; text-align:center; }
  .cell.empty{ background:#fbfbfc; border-style:dashed; }
  .cell img{ width:40px; height:40px; object-fit:contain; display:block; margin:0 auto 2px; }
  .cell b{ display:block; font-size:11px; line-height:1.25; font-weight:600; }
  .cell span{ display:block; font-size:10px; color:var(--muted); line-height:1.2; }
  .entry-switch{ display:flex; gap:6px; flex-wrap:wrap; margin:6px 0; }
  .entry-switch button{ font:inherit; font-size:12.5px; padding:4px 11px; border:1px solid var(--line); background:var(--panel); border-radius:999px; cursor:pointer; }
  .entry-switch button.active{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent); font-weight:600; }

  /* ---------- character mascots & daily touches (キャラアイコンは全てホットリンク、読込失敗時は自動で隠れる) ---------- */
  .brand{ position:relative; padding-left:49px; }
  .brand-mascot{ position:absolute; left:0; top:50%; transform:translateY(-50%); width:39px; height:39px; object-fit:contain; }
  .page-hero{ display:flex; gap:18px; align-items:flex-start; }
  .page-hero .hero-main{ flex:1; min-width:0; }
  .hero-char{ width:106px; height:106px; object-fit:contain; flex:none; margin-top:2px; filter:drop-shadow(0 3px 6px rgba(0,0,0,.16)); }
  .h2-ic{ width:34px; height:34px; object-fit:contain; margin-right:9px; flex:none; }
  .sec-h{ display:flex; align-items:center; }
  .tabs button{ display:inline-flex; align-items:center; }
  .tab-ic{ width:19px; height:19px; object-fit:contain; margin-right:5px; flex:none; }
  .char-strip{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:18px 0 6px; padding:10px 16px;
    background:var(--bg); border:1px dashed #cfcfd6; border-radius:10px; }
  .char-strip .cs-label{ font-size:11.5px; font-weight:700; color:var(--muted); letter-spacing:.14em; }
  .char-strip figure{ margin:0; text-align:center; width:58px; }
  .char-strip img{ width:44px; height:44px; object-fit:contain; display:block; margin:0 auto 1px; }
  .char-strip figcaption{ font-size:10.5px; color:var(--muted); line-height:1.25; }
  .daily-band{ display:flex; gap:18px; align-items:center; border:1px solid var(--line); border-radius:10px;
    padding:12px 18px; margin:0 0 16px; background:var(--accent-soft); }
  .daily-band .db-feature{ text-align:center; flex:none; width:108px; }
  .daily-band .db-feature img{ width:88px; height:88px; object-fit:contain; display:block; margin:0 auto; filter:drop-shadow(0 3px 6px rgba(0,0,0,.16)); }
  .daily-band .db-feature b{ display:block; font-size:13px; margin-top:2px; line-height:1.3; }
  .daily-band .db-feature span{ display:block; font-size:11px; color:var(--muted); }
  .daily-band .db-main{ flex:1; min-width:0; }
  .daily-band h3{ margin:0 0 3px; font-size:16.5px; }
  .daily-band p{ margin:0; font-size:13px; color:var(--muted); }
  .daily-band .db-others{ display:flex; gap:10px; margin-top:9px; flex-wrap:wrap; }
  .daily-band .db-others figure{ margin:0; text-align:center; width:54px; }
  .daily-band .db-others img{ width:40px; height:40px; object-fit:contain; display:block; margin:0 auto 1px; }
  .daily-band .db-others figcaption{ font-size:10px; color:var(--muted); line-height:1.2; }
  .page-card{ display:flex; gap:13px; align-items:flex-start; }
  .page-card .card-ic{ width:54px; height:54px; object-fit:contain; flex:none; margin-top:2px; }
  .page-card .card-body{ flex:1; min-width:0; }
  .evo-strip{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:12px 0 4px; }
  .evo-strip figure{ margin:0; text-align:center; width:66px; }
  .evo-strip img{ width:54px; height:54px; object-fit:contain; display:block; margin:0 auto 1px; }
  .evo-strip figcaption{ font-size:11px; color:var(--muted); line-height:1.25; }
  .evo-strip .evo-arrow{ font-size:19px; font-weight:700; color:#b9b9c0; padding-bottom:14px; }
  .foot-chars{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; padding:2px 0 12px; }
  .foot-chars img{ width:42px; height:42px; object-fit:contain; }
  @media (max-width:760px){
    .hero-char{ width:74px; height:74px; }
    .daily-band{ flex-direction:column; text-align:center; }
    .daily-band .db-others{ justify-content:center; }
    .brand{ padding-left:44px; }
    .brand-mascot{ width:35px; height:35px; }
  }
