/* =========================================================
     MOSHIMOOO.AI 記事詳細ページ（ブロックUI）
     ・デザインシステム：Wantedly風 × ブランドネイビー #193c72
     ・本文をブロック単位のカードで分節し、読みやすさを優先
     ========================================================= */
  :root {
    --navy: #193c72;
    --navy-dark: #213662;
    --navy-deep: #12305c;
    --navy-tint: rgba(25,60,114,0.08);
    --heading: #24282a;
    --t84: rgba(0,0,0,0.84);
    --t74: rgba(0,0,0,0.74);
    --t56: rgba(0,0,0,0.56);
    --t40: rgba(0,0,0,0.4);
    --white: #ffffff;
    --s1: #f5f5f5;
    --s2: #eeeeee;
    --s3: rgba(0,0,0,0.06);
    --line: rgba(0,0,0,0.06);
    --caution: #b3541e;
    --caution-bg: #fdf6ef;
    --accent: #e8a13c;
    --accent-deep: #c97d16;

    --head: Poppins, "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
    --body: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", メイリオ, Meiryo, sans-serif;
    --mono: "SFMono-Regular", Consolas, Menlo, monospace;
    --maxw: 860px;

    --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --hover-shadow: 0 8px 24px rgba(0,0,0,0.1);
    --pill-shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.1) 0 0 0 1px;
  }
  * { box-sizing: border-box; }
  html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    margin: 0;
    background:
      radial-gradient(90rem 60rem at 10% 6%, #d2ddf1 0%, rgba(210,221,241,0) 60%),
      radial-gradient(70rem 50rem at 85% 18%, #dde2f4 0%, rgba(221,226,244,0) 62%),
      radial-gradient(85rem 65rem at 78% 82%, #e2dcf2 0%, rgba(226,220,242,0) 60%),
      radial-gradient(60rem 45rem at 18% 68%, #e9edf9 0%, rgba(233,237,249,0) 58%),
      #f1f3fb;
    background-attachment: fixed; color: var(--t84);
    font-family: var(--body); font-size: 16px; line-height: 1.9; letter-spacing: normal;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  h1,h2,h3,h4 { font-family: var(--head); color: var(--heading); margin: 0; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

  /* ============ ヘッダー ============ */
  header.site { background: rgba(241,243,251,0.32); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border-bottom: 1px solid rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 50; }
  .site-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 78px; display: flex; align-items: center; justify-content: center; position: relative; }
  .site-inner .menu-btn { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
  .site-inner .menu-btn:hover { transform: translateY(calc(-50% - 1px)); }
  .logo { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--navy); line-height: 1; white-space: nowrap; }
  .logo-img { display: block; height: 26px; width: auto; }
  @media (max-width: 767px) {
    .site-inner { padding: 0 16px; }
    .site-inner .menu-btn { right: 16px; width: 44px; padding: 0; justify-content: center; }
    .mb-label { display: none; }
    .logo-img { height: 20px; }
  }
  nav.global {
    position: absolute; top: 78px; left: 0; right: 0; z-index: 60;
    background: #eef1fa; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(18,32,64,0.18);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
    pointer-events: none;
  }
  body.nav-open nav.global { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 40; background: rgba(18,28,56,0.6);
    visibility: hidden; opacity: 0; transition: opacity .28s ease, visibility .28s;
  }
  body.nav-open .nav-backdrop { visibility: visible; opacity: 1; }
  nav.global::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #16407e, #3d3d8f 55%, #7a3d9c); }
  .gnav-inner {
    max-width: 1140px; margin: 0 auto; padding: 30px 20px 26px;
    display: grid; grid-template-columns: 300px 1fr; gap: 0 40px;
  }
  .gnav-brand { border-right: 1px solid var(--line); padding-right: 36px; display: flex; flex-direction: column; }
  .gnav-catch { font-family: var(--head); font-size: 31px; font-weight: 900; color: var(--navy-deep); line-height: 1.42; letter-spacing: 0.01em; margin: 2px 0 12px; }
  .gnav-catch b { color: var(--accent-deep); }
  /* 決めのフレーズにアンバーのマーカー下線 */
  .gnav-catch em {
    font-style: normal;
    background: linear-gradient(transparent 66%, rgba(232,161,60,0.38) 66%, rgba(232,161,60,0.38) 94%, transparent 94%);
    padding: 0 3px; margin: 0 -3px;
  }
  .gnav-desc { font-size: 12.5px; color: var(--t74); line-height: 1.9; margin: 0 0 20px; }
  /* メガメニュー内 検索ボックス（WP版のみ出力される） */
  .gnav-search { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; }
  .gnav-search input {
    flex: 1; min-width: 0; height: 40px; padding: 0 16px;
    border: 1.5px solid rgba(25,60,114,0.35); border-radius: 100px;
    background: var(--white); font-family: var(--body); font-size: 13.5px; color: var(--t84);
    outline: none; transition: border-color .18s, box-shadow .18s;
  }
  .gnav-search input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(25,60,114,0.12); }
  .gnav-search input::placeholder { color: var(--t40); }
  .gnav-search button {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    border: none; background: var(--navy); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .18s;
  }
  .gnav-search button:hover { background: var(--navy-deep); }
  .gnav-search button svg { width: 18px; height: 18px; fill: currentColor; }
  /* E-E-A-Tリンク：カテゴリの下に全幅横並びで配置（2026-07-15・ブランドゾーンから移動） */
  .gnav-sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
  .gnav-sub a { font-size: 12.5px; color: var(--t74); transition: color .15s; }
  .gnav-sub a::before { content: ""; display: inline-block; width: 12px; height: 1px; background: var(--accent-deep); margin-right: 9px; vertical-align: 0.28em; }
  .gnav-sub a:hover { color: var(--navy); }
  .gnav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
  .gnav-grid a {
    display: flex; align-items: center; gap: 14px; position: relative;
    padding: 11px 6px; border-bottom: 1px solid var(--line);
    transition: padding-left .18s ease;
  }
  .gnav-grid a::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 0; background: var(--accent); border-radius: 2px; transition: height .18s ease;
  }
  .gnav-thumb {
    width: 60px; height: 40px; flex: none; border-radius: 6px; object-fit: cover;
    box-shadow: 0 2px 6px rgba(18,32,64,0.16); transition: transform .18s ease;
  }
  .gnav-ph {
    display: grid; place-items: center; background: linear-gradient(135deg, #193c72, #12305c);
    font-family: var(--head); font-size: 15px; font-weight: 800; color: rgba(255,255,255,0.85);
  }
  .gnav-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .gnav-txt b { font-family: var(--head); font-size: 15.5px; font-weight: 800; color: var(--navy-deep); line-height: 1.3; transition: color .15s; }
  .gnav-ja { font-size: 11.5px; color: var(--t74); transition: color .15s; }
  .gnav-grid a:hover { padding-left: 14px; }
  .gnav-grid a:hover::before { height: 66%; }
  .gnav-grid a:hover .gnav-thumb { transform: scale(1.05); }
  .gnav-grid a:hover .gnav-txt b { color: var(--navy); }
  .gnav-grid a:hover .gnav-ja { color: var(--t56); }
  body.nav-open .gnav-grid a { animation: gnavIn .34s both; }
  body.nav-open .gnav-grid a:nth-child(1) { animation-delay: .04s; }
  body.nav-open .gnav-grid a:nth-child(2) { animation-delay: .07s; }
  body.nav-open .gnav-grid a:nth-child(3) { animation-delay: .10s; }
  body.nav-open .gnav-grid a:nth-child(4) { animation-delay: .13s; }
  body.nav-open .gnav-grid a:nth-child(5) { animation-delay: .16s; }
  body.nav-open .gnav-grid a:nth-child(6) { animation-delay: .19s; }
  body.nav-open .gnav-grid a:nth-child(7) { animation-delay: .22s; }
  body.nav-open .gnav-grid a:nth-child(8) { animation-delay: .25s; }
  @keyframes gnavIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
  @media (max-width: 767px) {
    .gnav-inner { grid-template-columns: 1fr; gap: 0; padding: 20px 16px 22px; }
    .gnav-brand { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 6px; }
    .gnav-catch { font-size: 27px; margin-bottom: 10px; }
    .gnav-desc { font-size: 13.5px; margin-bottom: 14px; }
    .gnav-sub { gap: 9px 18px; margin-top: 16px; padding-top: 14px; }
    .gnav-sub a { font-size: 13px; }
    .gnav-grid { grid-template-columns: 1fr 1fr; gap: 2px 16px; }
    .gnav-grid a { gap: 12px; padding: 11px 4px; }
    .gnav-thumb { width: 62px; height: 42px; }
    .gnav-txt { gap: 2px; }
    .gnav-txt b { font-size: 16px; }
    .gnav-ja { font-size: 12.5px; }
  }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 9px;
    height: 42px; padding: 0 18px 0 16px;
    background: rgba(255,255,255,0.65); border: 1.5px solid var(--navy); border-radius: 100px;
    cursor: pointer; transition: background .22s, box-shadow .22s, transform .22s;
  }
  .menu-btn:hover { background: var(--navy); box-shadow: 0 5px 14px rgba(25,60,114,0.28); transform: translateY(-1px); }
  .mb-lines { display: flex; flex-direction: column; gap: 5px; width: 18px; }
  .mb-lines span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s, width .25s, background .22s; }
  .mb-lines span:nth-child(2) { width: 66%; }
  .menu-btn:hover .mb-lines span { background: var(--white); width: 100%; }
  .mb-label { font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .16em; color: var(--navy); line-height: 1; transition: color .22s; }
  .mb-label::before { content: "MENU"; }
  .menu-btn:hover .mb-label { color: var(--white); }
  body.nav-open .menu-btn { background: var(--navy); }
  body.nav-open .mb-lines span { background: var(--white); width: 100%; }
  body.nav-open .mb-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .mb-lines span:nth-child(2) { opacity: 0; }
  body.nav-open .mb-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open .mb-label { color: var(--white); }
  body.nav-open .mb-label::before { content: "CLOSE"; }

  /* ============ パンくず ============ */
  .breadcrumb { padding: 16px 0 0; font-family: var(--body); font-size: 12px; color: var(--t40); }
  .breadcrumb a:hover { color: var(--navy-dark); text-decoration: underline; }
  .breadcrumb span.sep { margin: 0 6px; }

  /* ============ 記事ヒーロー ============ */
  .article-hero { padding: 20px 0 28px; }
  .hero-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .tag-pill {
    font-family: var(--head); font-size: 12px; font-weight: 600; color: var(--navy-deep);
    background: var(--navy-tint); border-radius: 100px; padding: 4px 14px; display: inline-block;
  }
  .ep-label { font-family: var(--head); font-size: 12px; font-weight: 600; color: var(--t40); letter-spacing: 0.06em; }
  .article-hero h1 { font-weight: 900; font-size: 38px; line-height: 1.4; letter-spacing: 0.01em; margin: 0 0 12px; }
  .article-hero .sub { font-size: 18px; font-weight: 500; color: var(--t84); line-height: 1.8; margin-top: 4px; }
  .article-hero .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--body); font-size: 13px; color: var(--t40); }

  /* ============ ブロック共通 ============ */
  .block {
    background: var(--white); border-radius: 8px; box-shadow: var(--card-shadow);
    padding: 34px 34px 30px; margin: 0 0 20px;
  }
  article.block { box-shadow: none; }
  .block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .block-no {
    font-family: var(--head); font-weight: 700; font-size: 13px; color: #fff;
    background: var(--navy); border-radius: 100px; padding: 4px 14px; line-height: 1.5; white-space: nowrap;
  }
  .block-head h2, .block-head h3 { font-family: var(--head); color: var(--heading); font-weight: 700; font-size: 20px; line-height: 1.5; margin: 0; }
  .block p { margin: 0 0 16px; }
  .block p:last-child { margin-bottom: 0; }

  /* リード画像ブロック */
  .block.lead-block { padding: 0; overflow: hidden; }
  .lead-block img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
  .lead-block .cap { font-size: 13px; color: var(--t40); padding: 12px 20px; }

  /* 悩み翻訳チップ */
  .worry-block { display: flex; align-items: flex-start; gap: 14px; background: var(--white); border-radius: 8px; box-shadow: var(--card-shadow); padding: 22px 26px; margin-bottom: 20px; }
  .worry-label { font-family: var(--head); font-size: 11px; font-weight: 600; color: var(--navy-deep); background: var(--navy-tint); border-radius: 100px; padding: 4px 12px; white-space: nowrap; margin-top: 2px; }
  .worry-text { font-size: 15.5px; color: var(--t74); line-height: 1.8; }

  /* メッセージ（POINT）コールアウト */
  .msg {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--navy-tint); border-left: 3px solid var(--navy);
    border-radius: 6px; padding: 14px 18px; margin: 0 0 22px;
    font-family: var(--head); font-weight: 600; font-size: 15.5px; color: var(--navy-deep); line-height: 1.7;
  }
  .msg .m-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: #fff;
    background: var(--navy); border-radius: 100px; padding: 3px 10px; margin-top: 3px; white-space: nowrap;
  }

  /* AIのセリフ（吹き出し風） */
  .ai-say {
    position: relative; background: #f6f4ee; border: 1px solid rgba(0,0,0,0.10);
    border-radius: 10px; padding: 18px 22px 18px 56px; margin: 28px 0;
    color: var(--t74); font-size: 15.5px; line-height: 1.85; font-family: var(--mono);
  }
  .ai-say:last-child { margin-bottom: 4px; }
  .ai-say::before {
    content: "AI"; position: absolute; left: 14px; top: 21px;
    font-family: var(--head); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    color: #fff; background: var(--navy); border-radius: 4px; padding: 3px 8px; line-height: 1.4;
  }

  /* プロンプトブロック */
  .block.prompt-block { padding: 0; overflow: hidden; margin: 20px 0; }
  .prompt-block .pr-head {
    background: var(--navy); color: #fff; font-family: var(--head);
    font-weight: 600; font-size: 14px; padding: 14px 26px;
  }
  .prompt-block .pr-body {
    font-family: var(--mono); font-size: 15px; line-height: 1.9;
    background: var(--white); padding: 24px 26px; white-space: pre-wrap; color: var(--t84);
  }
  .prompt-block .pr-note {
    background: var(--s1); border-top: 1px dashed rgba(0,0,0,0.2);
    font-size: 14px; color: var(--t74); line-height: 1.8; padding: 16px 26px;
  }

  /* フレームワークブロック */
  .fw-name {
    font-family: var(--head); font-weight: 700; font-size: 17px;
    padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
  }
  .fw-desc { font-size: 15px; color: var(--t84); margin: 0 0 16px; line-height: 1.8; }
  .fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .fw-cell {
    background: var(--s1); border: 1px solid rgba(0,0,0,0.07); border-radius: 8px;
    padding: 18px 20px; font-size: 15px; line-height: 1.8; color: var(--t74);
  }
  .fw-cell b {
    display: block; font-family: var(--head); font-size: 12.5px; font-weight: 700;
    color: var(--navy); padding-bottom: 7px; margin-bottom: 9px;
    border-bottom: 1px dashed rgba(25,60,114,0.25);
  }

  /* AIへの一言（ネイビー帯） */
  .closing-block {
    background: linear-gradient(135deg, #16407e, #3d3d8f 55%, #7a3d9c); border-radius: 8px;
    color: #fff; padding: 36px 34px; margin: 28px 0 28px; text-align: left;
  }
  .closing-block .c-label {
    display: inline-block; font-family: var(--head); font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; color: #2c3f7e; background: #fff; border-radius: 100px;
    padding: 4px 14px; margin-bottom: 14px;
  }
  .closing-block .c-quote { display: block; font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.85; }

  /* 補足コラム */
  .column-block { border: 1px solid rgba(0,0,0,0.12); background: var(--white); box-shadow: none; }
  .column-block .dc-head {
    display: inline-block; font-family: var(--head); font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; color: var(--navy-deep); background: var(--navy-tint);
    border-radius: 100px; padding: 4px 14px; margin-bottom: 12px;
  }
  .column-block .dc-title { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.6; margin-bottom: 12px; color: var(--heading); }
  .column-block p { font-size: 15.5px; color: var(--t74); }
  .column-block .dc-fig { color: var(--navy); font-weight: 700; }

  /* 関連記事 */
  .related { padding: 8px 0 48px; }
  .related h4 { font-family: var(--head); font-weight: 700; font-size: 20px; margin: 24px 0 16px; }
  .rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .rel-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); transition: box-shadow .15s, transform .15s; }
  .rel-card:hover { box-shadow: var(--hover-shadow); transform: translateY(-2px); }
  .rel-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg,#193c72,#12305c); position: relative; }
  .rel-card .thumb.alt { background: linear-gradient(135deg,#2f5390,#193c72); }
  .rel-card .tag-pill { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,0.92); }
  .rel-card .body { padding: 14px 16px 16px; }
  .rel-card .title { font-family: var(--head); font-weight: 700; font-size: 14.5px; line-height: 1.55; color: var(--t84); }
  .rel-card:hover .title { color: var(--navy-dark); }
  .rel-card .date { font-size: 12px; color: var(--t40); margin-top: 6px; }

  /* フッター */
  footer.site { background: var(--white); border-top: 1px solid var(--line); padding: 32px 0; }
  .foot-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .foot-inner .copy { font-size: 12px; color: var(--t40); }

  @media (max-width: 767px) {
    .article-hero h1 { font-size: 26px; }
    .block { padding: 26px 20px 24px; }
    .fw-grid { grid-template-columns: 1fr; }
    /* H1はSPでは読点での強制改行をやめて自然に流す（span.twの強度で後方の基底inline-blockに勝つ） */
    .article-hero h1 span.tw { display: inline; }
    .article-hero h1 { word-break: auto-phrase; }
    /* POINT・ブロック番号・悩みチップのラベルはSPでは上に置き、テキストを下に */
    .msg { flex-direction: column; gap: 8px; word-break: auto-phrase; }
    .msg .m-label { align-self: flex-start; margin-top: 0; }
    .block-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .worry-block { flex-direction: column; gap: 8px; }
    .worry-label { align-self: flex-start; margin-top: 0; }
    /* 関連カードはSPでは横並びのコンパクト行に（縦積みの巨大サムネ回避） */
    .rel-grid { grid-template-columns: 1fr; gap: 12px; }
    .rel-card { display: flex; align-items: stretch; }
    .rel-card .thumb { width: 118px; min-width: 118px; aspect-ratio: auto; min-height: 84px; }
    .rel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
    .rel-card .tag-pill { display: none; }
    .rel-card .thumb .thumb-ep { font-size: 8.5px; letter-spacing: 0.1em; }
    .rel-card .body { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
    .rel-card .title { font-size: 13.5px; }
    .rel-card .date { margin-top: 4px; }
  }
  /* リード画像プレースホルダ（画像が無い話用・ネイビーグラデ） */
  .lead-ph {
    width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg,#193c72,#12305c);
    display: flex; align-items: center; justify-content: center;
  }
  .lead-ph span {
    font-family: var(--head); font-weight: 700; font-size: 14px;
    letter-spacing: 0.14em; color: rgba(255,255,255,0.85);
  }


  /* ============ 記事ページ拡張（目次・ページャー・コピー・進捗） ============ */
  .progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep)); z-index: 999;
  }
  .block[id] { scroll-margin-top: 94px; }
  .block-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }

  /* 目次 */
  .toc-block { padding: 20px 24px 14px; }
  .toc-block .toc-title {
    font-family: var(--head); font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; color: var(--t40); margin-bottom: 6px;
  }
  .toc-list a {
    display: flex; align-items: baseline; gap: 12px; padding: 11px 0;
    border-bottom: 1px solid var(--line); font-size: 15px; color: var(--t74);
    transition: color .15s;
  }
  .toc-list a:last-child { border-bottom: none; }
  .toc-list a:hover { color: var(--navy-dark); }
  .toc-list .t-no { font-family: var(--head); font-weight: 700; font-size: 12px; color: var(--navy); }

  /* 前後の話 */
  .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 16px; }
  .pager a {
    background: var(--white); border-radius: 8px; box-shadow: var(--card-shadow);
    padding: 16px 18px; display: block; transition: box-shadow .15s, transform .15s;
  }
  .pager a:hover { box-shadow: var(--hover-shadow); transform: translateY(-2px); }
  .pager .p-label {
    display: block; font-family: var(--head); font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; color: var(--t40); margin-bottom: 6px;
  }
  .pager .p-title { font-family: var(--head); font-weight: 700; font-size: 13.5px; line-height: 1.55; color: var(--t84); }
  .pager a:hover .p-title { color: var(--navy-dark); }
  .pager .p-next { text-align: right; }

  /* リード画像プレースホルダの情報 */
  .lead-ph { flex-direction: column; gap: 6px; }
  .lead-ph .ph-cat {
    font-family: var(--head); font-size: 10px; font-weight: 600;
    letter-spacing: 0.24em; color: rgba(255,255,255,0.5);
  }

  @media (max-width: 767px) {
    .pager { grid-template-columns: 1fr; }
    .pager .p-next { text-align: left; }
  }

  /* 本文の行長制御（約42字） */
  /* text-wrap:pretty はChrome専用でiPhone(WebKit)非対応→改行位置がズレるため不使用。
     全ブラウザ共通の標準greedy折返しに統一（2026-07-15） */
  /* 本文は左揃えの自然な流し込み（日本語標準・justifyは文字間が広がり読みにくいため不採用） */
  .block p, .ai-say, .worry-text { text-align: left; }
  .block p { font-size: 16.5px; line-height: 1.8; }
  .ai-say { line-height: 1.8; }
  .block-head h2 {
    text-wrap: balance;
    word-break: auto-phrase; /* 日本語の文節単位で改行（対応ブラウザのみ） */
  }
  /* タイトルの折り返し単位（読点でspan分割。spanは行を跨がないため改行は必ず読点直後） */
  .article-hero h1 .tw, .hero-card .hero-title .tw {
    display: inline-block; max-width: 100%;
    word-break: auto-phrase; /* 3行になる場合の span 内改行も文節単位に */
  }
  /* カード類のタイトルも文節単位で改行 */
  .rel-card .title, .side-card .title, .rank-row .title, .pick-row .title,
  .p-title, .toc-list a, .foot-links a {
    word-break: auto-phrase;
  }

  /* 見出しのアクセントティック */
  .toc-block .toc-title::before, .related h4::before {
    content: ""; display: inline-block; width: 4px; height: 0.9em;
    background: var(--accent); border-radius: 2px; margin-right: 10px;
    vertical-align: -0.08em;
  }

  /* カードサムネの実画像（EP_IMAGES登録話のみ・coverでヒーローと同じ画角） */
  .thumb > img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
  }

  /* ============ 広告スロット ============ */
  .ad-slot { margin: 24px auto; text-align: center; }
  .ad-slot .ad-label {
    display: block; font-family: var(--head); font-size: 9px; font-weight: 600;
    letter-spacing: 0.18em; color: var(--t40); margin-bottom: 6px;
  }
  .ad-frame {
    margin: 0 auto; display: flex; align-items: center; justify-content: center;
    background: var(--s2); border: 1px dashed rgba(0,0,0,0.16); border-radius: 4px;
    color: var(--t40); font-family: var(--head); font-size: 11px; letter-spacing: 0.08em;
  }
  .ad-banner { max-width: 728px; height: 90px; }
  .ad-rect { width: 300px; max-width: 100%; height: 250px; }
  @media (max-width: 767px) {
    .ad-banner { height: 100px; }
  }

  /* =========================================================
     INDEX PAGE（トップ・WEBメディアレイアウト）
     ========================================================= */
  .sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .top-wrap { max-width: 1140px; margin: 0 auto; padding: 28px 20px 64px; }

  /* サムネ共通（EPISODE番号入りネイビーグラデ） */
  .thumb-ep {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    text-align: center; font-family: var(--head); font-weight: 700; font-size: 11px;
    letter-spacing: 0.14em; color: rgba(255,255,255,0.85); pointer-events: none;
  }
  .badge-new {
    position: absolute; right: 10px; top: 10px; z-index: 1;
    font-family: var(--head); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    color: #fff; background: var(--accent-deep); border-radius: 100px; padding: 3px 10px;
  }

  /* ══ ヒーロー：センターピーク・カルーセル（全幅） ══ */
  .hero-carousel { position: relative; width: 100%; margin-top: 24px; }
  .hc-viewport { overflow: hidden; width: 100%; }
  .hc-track { display: flex; gap: 24px; will-change: transform; }
  .hs-slide {
    flex: 0 0 70%; position: relative; display: block;
    border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow);
  }
  .hs-slide img { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
  /* 画像が無い話のスライド（ネイビーグラデ＋カテゴリ英名の透かし） */
  .hs-ph {
    width: 100%; aspect-ratio: 2/1; background: linear-gradient(135deg, #193c72, #12305c);
    display: flex; align-items: center; justify-content: center;
  }
  .hs-ph span { font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: 0.3em; color: rgba(255,255,255,0.14); }
  .hs-slide .overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: flex-end; gap: 8px; padding: 28px 32px;
    background: linear-gradient(180deg, rgba(18,48,92,0) 40%, rgba(10,24,48,0.82) 100%);
  }
  .hs-slide .hero-tags { display: flex; align-items: center; gap: 10px; }
  .hs-slide .tag-pill { background: rgba(255,255,255,0.92); }
  .hs-slide .ep-label { color: rgba(255,255,255,0.75); }
  .hs-slide .hero-title { font-size: 32px; font-weight: 900; line-height: 1.45; color: #fff; }
  .hs-slide .sub { font-size: 13px; color: rgba(255,255,255,0.75); margin: 0; }
  .hs-slide .date { font-size: 12px; color: rgba(255,255,255,0.6); }

  .hc-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.92); color: var(--navy);
    font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--card-shadow); transition: background .15s, transform .15s;
  }
  .hc-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
  .hc-prev { left: 24px; }
  .hc-next { right: 24px; }
  .hc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .hc-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
    background: rgba(25,60,114,0.22); cursor: pointer;
    transition: background .15s, transform .15s;
  }
  .hc-dots button.on { background: var(--accent-deep); transform: scale(1.3); }

  /* シェアボタン */
  .share-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; padding: 0 4px; }
  .share-label { font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--t56); }
  .share-label::before { content: ""; display: inline-block; width: 4px; height: 0.9em; background: var(--accent); border-radius: 2px; margin-right: 9px; vertical-align: -0.08em; }
  .share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
  .share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; border-radius: 50%;
    border: 1.5px solid var(--navy); background: var(--white); color: var(--navy);
    cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
  }
  .share-btn svg { width: 17px; height: 17px; fill: currentColor; }
  .sb-fb svg { width: 15px; height: 15px; }
  .sb-line svg { width: 20px; height: 20px; }
  .share-btn:hover { transform: translateY(-1px); color: #fff; }
  .sb-x:hover { background: #0f1419; border-color: #0f1419; }
  .sb-fb:hover { background: #1877f2; border-color: #1877f2; }
  .sb-line:hover { background: #06c755; border-color: #06c755; }
  .sb-copy:hover { background: var(--navy); }
  .sb-copy .ic-check { display: none; }
  .sb-copy.copied { background: var(--navy); border-color: var(--navy); color: #fff; }
  .sb-copy.copied .ic-link { display: none; }
  .sb-copy.copied .ic-check { display: block; }
  @media (max-width: 767px) { .share-row { gap: 12px; } .share-btn { width: 38px; height: 38px; } }

  /* フィクション注記（E-E-A-T） */
  .article-note {
    font-size: 12.5px; color: var(--t56); line-height: 1.9;
    margin: 0 0 20px; padding: 0 4px;
  }
  .article-note a { color: var(--navy); text-decoration: underline; }
  .article-note a:hover { color: var(--navy-dark); }

  /* フッターの運営情報ナビ */
  .foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 18px; }
  .foot-nav a { font-size: 12px; color: rgba(255,255,255,0.75); }
  .foot-nav a:hover { color: #fff; text-decoration: underline; }

  /* お問い合わせのメールアドレス画像（迷惑メール対策で平文にしない） */
  .mail-line { margin: 4px 0 10px; }
  .mail-img { height: 24px; width: auto; }
  .mail-note { font-size: 12.5px; color: var(--t56); line-height: 1.8; }

  /* 静的ページ（about/privacy/contact）の下マージン・本文リンクの可視化 */
  .static-main { padding-bottom: 88px; }
  .static-main .block p a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
  .static-main .block p a:hover { color: var(--navy-dark); }
  @media (max-width: 767px) { .static-main { padding-bottom: 56px; } }

  /* ══ カテゴリ一覧ページ ══ */
  .top-wrap .breadcrumb { padding: 4px 0 0; }
  .cat-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin: 18px 0 26px; border-bottom: 2px solid var(--heading); padding-bottom: 14px; }
  .cat-hero h1 { font-family: var(--head); font-weight: 900; font-size: 38px; letter-spacing: 0.02em; }
  .cat-hero h1 em { font-style: normal; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--t56); margin-left: 12px; }
  .cat-hero .cnt { font-family: var(--head); font-size: 12.5px; font-weight: 600; color: var(--t40); }
  .cat-list-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 24px; }
  @media (max-width: 767px) {
    .cat-hero h1 { font-size: 30px; }
    .cat-hero h1 em { font-size: 15px; }
    /* カード内テキストを大きく（視認性向上・横型コンパクト行） */
    .cat-list-grid { grid-template-columns: 1fr; gap: 16px; }
    .cat-list-grid .rel-card .title { font-size: 16.5px; line-height: 1.55; }
    .cat-list-grid .rel-card .body { padding: 15px 18px 17px; }
    .cat-list-grid .rel-card .date { font-size: 12.5px; margin-top: 7px; }
    .cat-list-grid .rel-card .tag-pill { font-size: 11.5px; }
  }

  /* ══ 2カラム ══ */
  .top-cols { display: grid; grid-template-columns: 1fr 300px; gap: 36px; margin-top: 44px; }
  .top-section { margin-bottom: 44px; }
  .top-section:last-child { margin-bottom: 0; }
  .sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--heading); padding-bottom: 10px; }
  .sec-title { font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; color: var(--heading); }
  .sec-title::before {
    content: ""; display: inline-block; width: 4px; height: 0.9em;
    background: var(--accent); border-radius: 2px; margin-right: 10px;
    vertical-align: -0.08em;
  }
  .sec-sub { font-size: 12px; color: var(--t40); }

  /* 新着（メイン2列グリッド） */
  .new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .new-grid .rel-card .title { font-size: 14.5px; }
  .rel-card .cat-line { font-family: var(--head); font-size: 10.5px; font-weight: 600; color: var(--navy-deep); margin-bottom: 4px; }

  /* Editor's Pick（横型カード） */
  .pick-list { display: flex; flex-direction: column; gap: 16px; }
  .pick-row {
    display: grid; grid-template-columns: 240px 1fr; background: var(--white);
    border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow);
    transition: box-shadow .15s, transform .15s;
  }
  .pick-row:hover { box-shadow: var(--hover-shadow); transform: translateY(-2px); }
  .pick-row .thumb { position: relative; background: linear-gradient(135deg,#193c72,#12305c); min-height: 130px; }
  .pick-row .thumb.alt { background: linear-gradient(135deg,#2f5390,#193c72); }
  .pick-row .thumb .tag-pill { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,0.92); }
  .pick-row .body { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
  .pick-row .title { font-family: var(--head); font-weight: 700; font-size: 15.5px; line-height: 1.55; color: var(--t84); }
  .pick-row:hover .title { color: var(--navy-dark); }
  .pick-row .excerpt { font-size: 13px; color: var(--t56); line-height: 1.7; }
  .pick-row .date { font-size: 11px; color: var(--t40); }

  /* ══ サイドバー ══ */
  .top-side { display: flex; flex-direction: column; gap: 36px; }
  .side-sec-head { border-bottom: 2px solid var(--heading); padding-bottom: 8px; margin-bottom: 14px; }
  .side-sec-head .sec-title { font-size: 16px; }

  .rank-list { display: flex; flex-direction: column; }
  .rank-row { display: grid; grid-template-columns: 24px 88px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rank-row:last-child { border-bottom: none; }
  .rank-row .no { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--accent-deep); text-align: center; }
  .rank-row.low .no { color: var(--t40); }
  .rank-row .thumb { position: relative; aspect-ratio: 16/10; border-radius: 6px; background: linear-gradient(135deg,#193c72,#12305c); overflow: hidden; }
  .rank-row .thumb.alt { background: linear-gradient(135deg,#2f5390,#193c72); }
  .rank-row .thumb .thumb-ep { font-size: 8px; letter-spacing: 0.1em; }
  .rank-row .title { font-family: var(--head); font-weight: 700; font-size: 12.5px; line-height: 1.5; color: var(--t84); }
  .rank-row:hover .title { color: var(--navy-dark); }
  .rank-row .cat { font-size: 10.5px; color: var(--t40); margin-top: 3px; }

  .cat-list { display: flex; flex-direction: column; }
  .cat-row {
    display: flex; align-items: center; gap: 10px; padding: 11px 4px;
    border-bottom: 1px solid var(--line); font-size: 13px; color: var(--t74);
  }
  .cat-row:last-child { border-bottom: none; }
  .cat-row:hover { color: var(--navy-dark); }
  .cat-row .en { font-family: var(--head); font-weight: 600; font-size: 12.5px; color: var(--navy-deep); min-width: 86px; }
  .cat-row .cnt { margin-left: auto; font-size: 11px; color: var(--t40); }
  .cat-row .arrow { color: var(--t40); font-size: 12px; }

  .about-box {
    position: relative; background: var(--white); border: 2px solid var(--navy);
    border-radius: 8px; padding: 22px 20px 20px;
    display: flex; flex-direction: column; gap: 10px;
    box-shadow: 4px 4px 0 var(--navy-tint);
  }
  .about-box .ab-label {
    position: absolute; top: -12px; left: 16px;
    font-family: var(--head); font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em; color: #fff; background: var(--navy); border-radius: 100px;
    padding: 4px 14px;
  }
  .about-box .ab-title {
    font-family: var(--head); font-weight: 900; font-size: 17px; line-height: 1.6;
    color: var(--heading); margin-top: 6px;
  }
  .about-box .ab-title em { font-style: normal; color: var(--accent-deep); }
  .about-box p { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--t74); }
  .about-box .ab-cta {
    align-self: flex-start; font-family: var(--head); font-size: 13px; font-weight: 700;
    color: #fff; background: linear-gradient(90deg, #16407e, #3d3d8f 55%, #7a3d9c);
    border-radius: 100px; padding: 10px 22px;
    margin-top: 4px; transition: opacity .15s, transform .15s;
  }
  .about-box .ab-cta:hover { opacity: 0.88; transform: translateY(-1px); }

  /* ══ リッチフッター（index専用） ══ */
  footer.site-rich { background: var(--navy-deep); color: #fff; margin-top: 0; }
  footer.site-rich::before {
    content: ""; display: block; height: 4px;
    background: linear-gradient(90deg, #16407e, #3d3d8f 45%, #7a3d9c 80%, var(--accent));
  }
  .foot-head::before {
    content: ""; display: inline-block; width: 4px; height: 0.9em;
    background: var(--accent); border-radius: 2px; margin-right: 8px; vertical-align: -0.08em;
  }
  .foot-cols {
    max-width: 1140px; margin: 0 auto; padding: 48px 20px 40px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .foot-cols .logo { color: #fff; font-family: var(--head); font-weight: 700; font-size: 20px; }
  .foot-logo-img { display: block; height: 24px; width: auto; margin: 0 auto 8px; }
  .foot-cols .logo small { display: block; font-family: var(--body); font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.5); margin-top: 3px; }
  .foot-cols .desc { font-size: 12.5px; line-height: 2; color: rgba(255,255,255,0.65); margin-top: 16px; max-width: 560px; }
  .foot-head { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
  .foot-links { display: flex; flex-direction: column; gap: 8px; }
  .foot-links a { font-size: 12.5px; color: rgba(255,255,255,0.78); }
  .foot-links a:hover { color: #fff; text-decoration: underline; }
  .foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
  .foot-bottom .inner { max-width: 1140px; margin: 0 auto; padding: 16px 20px; font-size: 11px; color: rgba(255,255,255,0.45); text-align: center; }

  /* トップへ戻るボタン（全ページ共通・400px以上スクロールで出現） */
  .to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 30;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(18,32,64,0.3);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
  }
  .to-top.show { opacity: 1; visibility: visible; transform: none; }
  .to-top:hover { background: var(--navy-deep); transform: translateY(-2px); }
  .to-top svg { width: 20px; height: 20px; fill: currentColor; }
  @media (max-width: 767px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

  @media (max-width: 900px) {
    .hs-slide { flex-basis: 88%; }
    .top-cols { grid-template-columns: 1fr; }
    .foot-cols { padding: 36px 20px 30px; }
    .foot-bottom .inner { text-align: center; }
  }
  @media (max-width: 767px) {
    .hs-slide img { aspect-ratio: 1/1; }
    .hs-ph { aspect-ratio: 1/1; }
    .hs-ph span { font-size: 22px; }
    .hs-slide .hero-title { font-size: 21px; }
    .hs-slide .overlay { padding: 18px 18px 20px; }
    .hc-arrow { display: none; }
    .new-grid { grid-template-columns: 1fr; }
    .pick-row { grid-template-columns: 1fr; }
    .pick-row .thumb { aspect-ratio: 16/9; }
  }
