/* 記事の頁の部品の見た目 (0.5.0、masao-i88.37)。header.css の後に読む */

/* 研究部カード */
.masao .cta__ink{display:none}
.masao .cta--v2{grid-template-columns:minmax(0,1fr);row-gap:0;padding:32px 36px 30px}
.masao .cta::after{content:none}
.cta__art{float:right;width:236px;height:auto;aspect-ratio:560/418;margin:-8px -10px 8px 20px}
.masao .cta__kicker{font-family:'M PLUS Rounded 1c',sans-serif;font-weight:800;font-size:14px;color:#123d9b;display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.masao .cta__count{margin-left:0}
.cta__pricechip{display:inline-block;padding:2px 10px;border-radius:999px;background:#FFD84C;box-shadow:none;font-size:12.5px;font-weight:800;color:#092853}
.masao .cta__title{font-family:'M PLUS Rounded 1c',sans-serif;font-weight:800;font-size:26px;line-height:1.45;color:#092853;margin:6px 0 12px}
.masao .cta__body,.masao .cta__note{font-size:15.5px;line-height:1.85;color:#3a4660;max-width:400px;margin:0;word-break:auto-phrase;text-wrap:pretty}
.masao .cta__note{margin-top:10px}
/* 特典: 白いパネル、PC 2 列 (5 個目は横いっぱい) / スマホ 1 列 */
.masao .cta__list{clear:both;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.masao .cta__list li{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:16px 8px 14px;border-radius:12px;background:#fff;box-shadow:none;text-align:center;font-size:12.5px;font-weight:700;line-height:1.5;color:#092853;word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance;min-width:0}
.masao .cta__list li::before{content:"";position:static;flex:none;width:40px;height:40px;margin:0;border-radius:0;box-shadow:none;background:center/contain no-repeat}
.masao .cta__list li:nth-child(1)::before{background-image:url("../img/ic-doc-lock.png")}
.masao .cta__list li:nth-child(2)::before{background-image:url("../img/ic-calendar.png")}
.masao .cta__list li:nth-child(3)::before{background-image:url("../img/ic-video.png")}
.masao .cta__list li:nth-child(4)::before{background-image:url("../img/ic-chat.png")}
.masao .cta__list li:nth-child(5)::before{background-image:url("../img/ic-code.png")}
/* 限定記事: 1 行ずつ */
.masao .cta__inside-label{margin:26px 0 4px;font-family:'M PLUS Rounded 1c',sans-serif;font-size:14px;font-weight:800;letter-spacing:.04em;color:#123d9b}

.masao .cta__inside li{display:block;position:relative;padding:9px 2px 9px 24px;font-size:13.5px;line-height:1.5;color:#3a4660;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.masao .cta__inside li::before{content:"";position:absolute;left:2px;top:50%;margin-top:-8px;width:16px;height:16px;background:url("../img/ic-lock.png") center/contain no-repeat}
.masao .cta__inside li>span{overflow:hidden;text-overflow:ellipsis}
/* ひとこと: アイコン付きの吹き出し */
.masao .cta__voice{display:flex;flex-direction:row-reverse;justify-content:center;align-items:center;gap:12px;margin:0 0 18px;padding:0;border:0;max-width:420px}
.masao .cta__voice p{text-wrap:balance;word-break:auto-phrase;position:relative;background:#fff;border-radius:16px;padding:12px 18px;font-size:16px;font-weight:700;line-height:1.6;color:#092853}
.masao .cta__voice footer{flex-direction:column;gap:2px;margin:0;font-size:12px;font-weight:700;color:#586b80;flex:none}
.masao .cta__voice footer img{width:44px;height:44px;box-shadow:none}
/* 価格とボタン: 中央寄せの縦並び */
.masao .cta__side{margin-top:28px;padding:26px 24px 20px;border-radius:16px;background:#fff;box-shadow:none;
  display:flex;flex-direction:column;align-items:center;gap:0;text-align:center}
.masao .cta__price{justify-content:center}
.masao .cta__yen{font-family:'M PLUS Rounded 1c',sans-serif;font-size:48px;font-weight:800;letter-spacing:0;color:#092853;line-height:1.1}
.masao .cta__per{font-size:17px;font-weight:700;color:#123d9b}
.masao .cta__side .btn{margin-top:14px;min-width:420px;min-height:62px;padding:0 40px;font-size:20px}
.cta__trust{margin:16px 0 0;font-size:13px;font-weight:700;color:#123d9b}
.masao .cta__src{margin:14px 0 0;font-size:12px;color:#6b7280}
@media (max-width:760px){.masao .cta__list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){
  .masao .cta--v2{padding:24px 18px 24px}
  .cta__art{float:none;display:block;width:210px;margin:0 auto 10px}
  .masao .cta__title{font-size:22px}
  .masao .cta__body,.masao .cta__note{font-size:15px}
  .masao .cta__list{grid-template-columns:1fr;gap:0;padding:6px 16px;border-radius:12px;background:#fff;box-shadow:none}
  .masao .cta__list li{flex-direction:row;justify-content:flex-start;gap:12px;padding:10px 0;border-radius:0;box-shadow:none;background:none;text-align:left;font-size:15px;}
  .masao .cta__list li:last-child{border-bottom:0}
  .masao .cta__list li::before{width:30px;height:30px}
  .masao .cta__inside li{white-space:normal;line-height:1.6;max-height:calc(3.2em + 18px);overflow:hidden}
  .masao .cta__inside li::before{top:12px;margin-top:0}
  .masao .cta__voice{margin-bottom:14px}
  .masao .cta__voice p{font-size:15px}
  .masao .cta__voice footer img{width:44px;height:44px}
  .masao .cta__side{padding:20px 16px 18px}
  .masao .cta__yen{font-size:40px}
  .masao .cta__side .btn{min-width:0;width:100%;min-height:58px;font-size:18px}
}

/* 囲み: 注記 = 電球 / 要点 = バッジ (結論は元から目印があるので触らない) */
:is(.article,.is-root-container) .is-style-note,
:is(.article,.is-root-container) .is-style-key-points{position:relative}
:is(.article,.is-root-container) .is-style-note::after,
:is(.article,.is-root-container) .is-style-key-points::after{content:"";position:absolute;top:-14px;left:-14px;width:34px;height:34px;background:center/contain no-repeat}
:is(.article,.is-root-container) .is-style-note::after{background-image:url("../img/ic-bulb.png")}
:is(.article,.is-root-container) .is-style-key-points::after{background-image:url("../img/ic-badge.png")}

/* 関連リンク: サムネが無いときの予備 (img に onerror で差し替え、または data-fallback) */
.masao .links__thumb{background:#eef4ff center/cover no-repeat}

/* フッター: 手を振るライオン */
.footer__lion{display:block;width:72px;height:auto;aspect-ratio:191/200;margin:0 auto 6px}
.masao .footer__links a{font-family:'M PLUS Rounded 1c',sans-serif;font-weight:700}

/* 会話の引用のアバター (CSS の背景で出ているので上書き) */
:is(.article,.is-root-container) .wp-block-quote.is-style-speech::before{background-image:url("../img/avatar.webp")!important;background-size:cover!important}

/* 本文の強調マーカーを控えめに */
:is(.article,.is-root-container) strong{background:linear-gradient(transparent 64%,rgba(21,86,223,.13) 64%)!important;padding:0 1px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
/* ヒントの囲み: 元の水色の丸を消し、アイコンを枠線の上に載せる */
:is(.article,.is-root-container) .is-style-note::before{display:none!important}
:is(.article,.is-root-container) .is-style-note::after,
:is(.article,.is-root-container) .is-style-key-points::after{top:-16px;left:18px;width:32px;height:32px}
:is(.article,.is-root-container) .is-style-note{padding-top:22px}
/* まとめ直後の小さな案内帯 */
.cta-mini{display:flex;align-items:center;gap:14px;margin:36px 0 8px;padding:14px 18px;border-radius:12px;background:#eef4ff;box-shadow:none}
.cta-mini img{width:52px;height:52px;flex:none}
.cta-mini p{margin:0;flex:1;min-width:0;line-height:1.5}
.cta-mini b{display:block;font-family:'M PLUS Rounded 1c',sans-serif;font-weight:800;font-size:16px;color:#092853}
.cta-mini span{font-size:13px;color:#3a4660}
.cta-mini .btn{flex:none;min-height:44px;padding:8px 18px;font-size:14px}
@media (max-width:600px){.cta-mini{flex-wrap:wrap}.cta-mini .btn{width:100%}}
/* カードとフッターの間 */
.masao .cta{margin-bottom:56px!important}
.masao .site-footer{padding-top:24px}
.masao .footer .hair{background:#1556df!important;height:2px;opacity:.6}

/* 読み進み具合: ナビの直下の細いバー (今どこまで読んだか・残りがどれだけか) */
.read-progress{position:fixed;left:0;right:0;top:72px;height:3px;z-index:30;background:rgba(21,86,223,.12);pointer-events:none}
.read-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#1556df,#FF8A1F);transition:width 80ms linear}
@media (max-width:600px){.read-progress{top:60px}}
/* 目次: 文字を濃く、今の章は太字と縦線の上の塗りの点（左の青い線と淡い面は 0.5.5 で外した。面が縦線の上端を隠し、帯・点・太字の三重になっていた。岡島さん 10/11 22:08・23:12・23:23 のスクショの丸、ld8.8） */
.masao .toc a{color:#3a4660;font-size:13.5px}
.masao .toc a[aria-current="location"]{color:#092853;font-weight:700;background:none}
.masao .toc .toc__title{font-family:'M PLUS Rounded 1c',sans-serif;letter-spacing:.08em;font-weight:800;color:#123d9b}
/* 章の区切り: 章番号を丸ゴシックで目立たせる */
:is(.article,.is-root-container) h2{scroll-margin-top:96px}
/* 画像: 読み込み前から寸法と地色を確保 */
:is(.article,.is-root-container) .wp-block-image img{background:#eef4ff;height:auto}
:is(.article,.is-root-container) video{background:#0b1f4d;width:100%}
.masao .links__thumb{background:#eef4ff url("../img/avatar.webp") center/36px no-repeat}

/* 図: タップで拡大 */
.zoom-btn{position:static;display:inline-flex;align-items:center;margin:6px 0 0;height:30px;padding:0 12px;border-radius:999px;border:2px solid #092853;background:#fff;box-shadow:2px 2px 0 #092853;font-family:'M PLUS Rounded 1c',sans-serif;font-weight:800;font-size:12px;color:#092853;cursor:zoom-in}
.zoom-btn::before{content:'⤢ '}
/* 0.5.4 (masao-i88.44): 中央寄せの flex では画面より広い図の左がスクロールで届かなかった (390 で 195px)。img の margin:auto で中央に寄せる */
.zoom-layer{position:fixed;inset:0;z-index:100;background:rgba(9,40,83,.92);display:flex;overflow:auto;-webkit-overflow-scrolling:touch;cursor:zoom-out}
.zoom-layer img{margin:auto;flex:none;max-width:none;width:min(1400px,200vw);height:auto;background:#fff;border-radius:8px}
@media (min-width:601px){.zoom-layer img{width:min(1400px,94vw)}}
.zoom-layer button{position:fixed;top:14px;right:14px;width:44px;height:44px;border-radius:50%;border:2px solid #092853;background:#FFD84C;font-size:20px;font-weight:900;color:#092853;box-shadow:3px 3px 0 #092853}
/* スマホ: 今の章の札 (右下)。タップで目次へ */
.chapter-chip{display:none}
@media (max-width:600px){.chapter-chip{display:flex;align-items:center;gap:6px;position:fixed;right:12px;bottom:14px;z-index:40;height:38px;padding:0 14px;border-radius:999px;background:#fff;border:2px solid #092853;box-shadow:3px 3px 0 #092853;font-family:'M PLUS Rounded 1c',sans-serif;font-weight:800;font-size:13px;color:#092853;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none}
 .chapter-chip.on{opacity:1;transform:none;pointer-events:auto}.chapter-chip small{font-size:11px;color:#586b80;font-weight:700}}

/* フッター前の空き: 記事全体の枠の下余白を詰める */
.masao .layout{padding-bottom:48px!important}

/* 記事上部の公式 LINE の入口 (mu-plugin masao-line-entry.php、masao-bjx.30.2) を案内帯と同じ型に。文は mu-plugin のまま
   ボタンは箱の内側に収める (幅 100% に左右の余白が足されて、スマホで頁の幅が広がっていた) */
.masao .masao-line-top{gap:14px;padding:14px 18px;background:#eef4ff;box-shadow:none}
.masao .masao-line-top::before{content:"";flex:none;width:52px;height:52px;background:url("../img/avatar.webp") center/contain no-repeat}
.masao .masao-line-top__text b{font-family:'M PLUS Rounded 1c',sans-serif;font-weight:800;font-size:16px;color:#092853}
.masao .masao-line-top__text span{font-size:13px;color:#3a4660;word-break:auto-phrase;text-wrap:pretty}
.masao .masao-line-top__btn{box-sizing:border-box;min-height:44px;padding:8px 18px;border:2px solid #092853;border-radius:8px;box-shadow:4px 4px 0 #092853;background:#06C755;color:#092853!important;font-family:'M PLUS Rounded 1c',sans-serif;font-weight:800;font-size:14px}
.masao .masao-line-top__btn:hover{background:#05b04b}
@media (max-width:600px){.masao .masao-line-top{padding:14px 18px}.masao .masao-line-top__btn{width:100%}}
/* 記事の下の同じテーマの記事 (mu-plugin masao-related.php、masao-bjx.30.1): 見出しを丸ゴシックに、題を文節で折る */
.masao .masao-related__title{font-family:'M PLUS Rounded 1c',sans-serif;font-weight:800;color:#123d9b}
.masao .masao-related a{word-break:auto-phrase;text-wrap:pretty}

/* ============================================================
   0.5.6（2026-10-12、ld8.8、岡島さん「いいよゴリゴリによろしく」）: 縁で区切らない。
   部品の 1px の輪・ずらした硬い影・落ち影と、区切りの罫は宣言から外した（道具は ~/tmp/theme-056/strip_edges.py・strip_borders.py）。
   面は役割のある 5 つだけ（ヒント・要点・著者欄・吹き出し・会員の枠）。目次・関連リンク・注意は面を敷かず、字と余白と印で読む
   （盲検 r1: 全部を同じ淡い面にすると、どこで終わるか・何の囲みかが消える）。
   残す線: ボタンと帯の吹き出し（本人の選択）、拡大と章の札のボタン、focus の輪、目次の開閉の矢印、手順と目次をつなぐ縦の線（時間軸）
   ============================================================ */
:is(.article,.is-root-container) :is(.is-style-note,.is-style-key-points){background:#eef4ff}
.masao .author{background:#eef4ff}
.masao .author__sns a{background:#ffffff}
:is(.article,.is-root-container) blockquote.is-style-speech::after{background:#eef4ff}
/* 吹き出しの尾も面で（灰色の線の尾を外す） */
:is(.article,.is-root-container) blockquote.is-style-speech > p:first-of-type::before{background:#eef4ff}
:is(.article,.is-root-container) blockquote.is-style-speech > p:first-of-type::after{content:none}
/* 目次・関連リンク: 面も枠も敷かない */
.toc__panel,.masao .toc{background:none}
:is(.article,.is-root-container) .is-style-links a:has(.links__thumb){background:none;padding-left:0}
/* 注意: ヒントと同じ淡い面で、「!」の丸をボタンの黄色にして分ける（盲検 r2: 注意だけ面が無いと地の文と境が読めない）。見出しの語の下線と蛍光ペンの帯はリンク・強調に見えるので外す */
:is(.article,.is-root-container) .is-style-warning{background:#eef4ff}
:is(.article,.is-root-container) .is-style-warning::before{background:#ffd84c}
:is(.article,.is-root-container) .is-style-warning::after{background:#092853}
:is(.article,.is-root-container) :is(.is-style-note,.is-style-warning) .callout-label{text-decoration:none;color:#092853;background:none!important}
/* 表: 外枠と行の罫をやめ、頭の行を線の色の面に、行は交互の淡い面で読む */
:is(.article,.is-root-container) thead th,:is(.article,.is-root-container) tr:first-child > th{background:#dce6f1}
:is(.article,.is-root-container) tbody tr:nth-child(even) td{background:#eef4ff}
/* 会員の枠の一言: 紺の線の吹き出しをやめ、淡い面と面の尾 */
.masao .cta__voice p{background:#eef4ff}
.masao .cta__voice p::before{content:"";position:absolute;left:-9px;top:50%;margin-top:-8px;width:0;height:0;border-style:solid;border-width:8px 10px 8px 0;border-color:transparent #eef4ff transparent transparent}
/* チェックの四角は輪で描いていたので、線の色の塗りの四角に */
:is(.article,.is-root-container) .is-style-checklist > li::before{background:#dce6f1}
/* スマホで行を縦に積む表（.is-stack）は、交互の面をやめて行ごとに淡い面の札 */
:is(.article,.is-root-container) .is-stack tr{background:#eef4ff}
:is(.article,.is-root-container) .is-stack tbody tr:nth-child(even) td{background:none}
