/* 記事ページ共通CSS(日英全記事+template.htmlが参照。第4回レビューD1で分離)
   ページ固有のスタイルが必要なときだけ、各HTMLに<style>を追加する。 */
:root{
    --bg:#FFFFFF; --bg2:#F6F8FE; --bg3:#F1F4FB;
    --text:#2E3138; --muted:#6E6E73;
    --accent:#5C7CFA; --accent-soft:#E9EDFE;
    --card:#FFFFFF; --line:#E5E5EA;
    --radius:24px;
  }
  @media (prefers-color-scheme: dark){
    :root{
      --bg:#131315; --bg2:#18181B; --bg3:#23252E;
      --text:#F2F2F7; --muted:#98989F;
      --accent:#5C7CFA; --accent-soft:#232A45;
      --card:#1F1F23; --line:#2C2C31;
    }
  }
  *{margin:0;padding:0;box-sizing:border-box}
  body{
    font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
    background:var(--bg);
    color:var(--text); line-height:2; -webkit-font-smoothing:antialiased;
  }
  .wrap{max-width:680px;margin:0 auto;padding:0 24px}
  header{padding:20px 0}
  .brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
  .brand img{width:32px;height:32px}
  .brand span{font-weight:800;font-size:17px}
  .crumb{font-size:12.5px;color:var(--muted);padding:4px 0 20px}
  .crumb a{color:var(--muted)}
  article{padding-bottom:24px}
  .kicker{display:inline-block;color:var(--accent);font-weight:700;font-size:13px;letter-spacing:.1em;margin-bottom:10px}
  h1{font-size:clamp(24px,4.6vw,32px);font-weight:800;line-height:1.5;margin-bottom:10px;color:var(--accent)}
  .date{font-size:12.5px;color:var(--muted);margin-bottom:28px}
  .meta-line{display:flex;gap:14px;font-size:12.5px;color:var(--muted);margin-bottom:26px}
  .toc{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px 22px 16px;margin:0 0 12px;font-size:14px}
  .toc .tt{display:block;color:var(--muted);font-weight:700;font-size:12px;letter-spacing:.08em;margin-bottom:8px}
  .toc ol{margin:0;padding-left:1.4em;font-size:14px}
  .toc li{margin-bottom:4px}
  .toc a{color:var(--text);text-decoration:none}
  .toc a:hover{color:var(--accent)}
  h3{font-size:16.5px;font-weight:700;line-height:1.6;margin:30px 0 8px}
  .wishes{background:var(--bg3);border-radius:14px;padding:4px 16px;margin:4px 0 26px}
  .wish{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;padding:8px 0}
  .wish + .wish{border-top:1px solid rgba(120,130,160,.10)}
  .wish::before{content:"";width:15px;height:15px;flex:none;border:1.25px solid #C3CBDC;border-radius:50%;box-sizing:border-box;margin-top:7px}
  .wish.done{text-decoration:line-through;color:var(--muted)}
  .wish.done::before{content:"✓";border-color:var(--accent);background:var(--accent);color:#fff;display:grid;place-content:center;font-size:9px;font-weight:700;text-decoration:none}
  .lead-p{margin-bottom:36px}
  h2{font-size:20px;font-weight:800;line-height:1.5;margin:56px 0 14px;padding-top:8px}
  p{font-size:16px;margin-bottom:20px}
  ul,ol{padding-left:1.5em;margin-bottom:20px;font-size:16px}
  li{margin-bottom:6px}
  strong{font-weight:700}
  p a,p a:visited{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
  .marker{background:linear-gradient(transparent 62%, var(--accent-soft) 62%);font-weight:700;padding:0 2px}
  figure{margin:28px 0}
  figure img{width:100%;border-radius:16px;display:block}
  figcaption{font-size:12.5px;color:var(--muted);margin-top:8px;text-align:center}
  .shots{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0 8px}
  .shots img{width:100%;border-radius:14px;border:1px solid var(--line);display:block}
  @media (max-width:560px){ .shots{grid-template-columns:1fr} .shots img{max-width:340px;margin:0 auto} }
  /* CTA: 左テキスト+右スマホ上部クロップの2カラム。スマホ幅でも段組みは
     崩さず、文字とスマホを縮小して収める(ここはイメージ優先のセクション) */
  .cta{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(16px,4vw,30px);align-items:start;background:linear-gradient(135deg,#5C7CFA,#4A66E8);border-radius:var(--radius);padding:clamp(20px,4.6vw,34px) clamp(18px,4.2vw,32px);margin:52px 0 32px;box-shadow:0 14px 38px rgba(74,102,232,.30)}
  .cta .appmark{display:flex;align-items:center;gap:10px;margin:0 0 14px}
  .cta .appmark img{width:clamp(34px,6.5vw,44px);height:auto;display:block;filter:drop-shadow(0 6px 14px rgba(60,90,200,.20))}
  .cta .appmark span{font-weight:800;font-size:clamp(15px,3.4vw,18px);letter-spacing:.01em;color:#fff}
  .cta h3{font-size:clamp(16px,3.8vw,20px);line-height:1.5;margin-bottom:14px;color:#fff}
  .cta .desc{font-size:clamp(12.5px,3vw,14px);color:rgba(255,255,255,.88);margin:0 0 14px}
  .cta p{font-size:clamp(12px,2.9vw,13.5px);line-height:1.9;color:var(--muted);margin-bottom:16px}
  /* 画像は絶対配置で高さ計算から外す: カードの高さはテキスト列
     (〜App Storeバッジ)が決め、スマホはその高さに収まる分だけ見える */
  .cta .shot-crop{width:100%;max-width:250px;justify-self:end;align-self:stretch;position:relative;margin-bottom:calc(clamp(20px,4.6vw,34px) * -1);border-radius:16px 16px 0 0;overflow:hidden;box-shadow:0 12px 32px rgba(30,50,120,.16)}
  .cta .shot-crop img{position:absolute;top:0;left:0;width:100%;height:auto;display:block}
  .cta .chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
  .cta .chip{font-size:12px;font-weight:400;line-height:1;padding:6px 11px;border-radius:999px;border:1px solid rgba(255,255,255,.45);color:rgba(255,255,255,.92)}
  .cta .badge{display:inline-block}
  /* 浮き上がりは本物のリンクだけ(第4回D2) */
  .cta a.badge{transition:transform .2s}
  .cta a.badge:hover{transform:translateY(-2px)}
  .cta .badge img{height:clamp(38px,8vw,48px);display:block}
  .cta .soon{font-size:11.5px;color:rgba(255,255,255,.75);margin:8px 0 0}
  /* スマホ幅: 全体を縮小して2カラムを維持(テキスト列を低くして
     スマホ画像がカード全体に届くように)。影は画像のアルファ形状に
     追従する drop-shadow に切り替え、余り領域の矩形影を出さない */
  @media (max-width:640px){
    .cta{gap:12px;padding:18px 16px}
    .cta .appmark{margin-bottom:8px}
    .cta .appmark img{width:32px}
    .cta .appmark span{font-size:15px}
    .cta h3{font-size:15px;margin-bottom:10px}
    .cta .chips{gap:5px;margin:0 0 12px}
    .cta .chip{font-size:10.5px;padding:5px 9px}
    .cta .badge img{height:36px}
    .cta .soon{font-size:10.5px;margin-top:6px}
    /* 端末まるごと1台を表示(画像自体の角丸+透過を活かす) */
    .cta .shot-crop{align-self:center;aspect-ratio:1206/2622;margin-bottom:0;border-radius:0;overflow:visible;box-shadow:none}
    .cta .shot-crop img{filter:drop-shadow(0 10px 22px rgba(20,40,120,.30))}
  }
  .back{display:inline-block;font-size:14px;color:var(--accent);text-decoration:none;font-weight:700;margin-bottom:48px}
  footer{border-top:1px solid var(--line);padding:32px 0 48px;color:var(--muted);font-size:13px}
  footer a{color:var(--muted)}
