/* =========================================================
 * メソッド記事ページ（single-method.php）
 * 改修案ワイヤフレーム「メソッド改修案 7つの習慣」をもとにした表示
 * ========================================================= */
.msr {
  --msr-teal: #00a7bf;
  --msr-teal-d: #00788a;
  --msr-teal-l: #e5f6f9;
  --msr-yellow: #f5d33f;
  --msr-ink: #111;
  --msr-sub: #555;
  --msr-mute: #888;
  --msr-line: #e2e2e2;
}
/* テーマの main（overflow:hidden）だとサイドバーの追従（sticky）が効かないため、見た目が同じ clip にする */
body.single-method .global_contents { overflow: clip; }
.msr a { text-decoration: none; }
/* テーマ側の ul（flex＋gap）を打ち消す */
.msr .msr-learn ul,
.msr .msr-rel,
.msr .msr-consult ul { display: block; gap: 0; }

/* ---------- ボタン ---------- */
.msr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--msr-ink, #111); background: #fff; color: #111;
}
.msr-btn--p { background: #f5d33f; border-color: #f5d33f; color: #111; }
.msr-btn--t { background: #55a6bf; border-color: #55a6bf; color: #fff; }
.msr-btn--s { font-size: 12px; padding: 7px 14px; }

/* ---------- 著者 ---------- */
.msr-author {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--msr-line); border-radius: 8px; padding: 16px; margin-top: 24px;
}
.msr-author__ph { flex: none; border-radius: 50%; }
.msr-author__ph img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
a.msr-author__ph:hover img { opacity: .85; }
.msr-author__bd { min-width: 0; }
.msr-author__l { font-size: 11px; color: var(--msr-mute); margin: 0; line-height: 1.6; }
.msr-author__n { font-weight: 700; font-size: 15px; margin: 0; line-height: 1.6; }
.msr-author__n a { color: inherit; }
.msr-author__n a:hover { text-decoration: underline; }
.msr-author__n .msr-author__prof { font-size: 12px; font-weight: 400; color: var(--msr-teal-d); margin-left: 10px; text-decoration: underline; white-space: nowrap; }
.msr-author__r { font-size: 12.5px; color: var(--msr-sub); line-height: 1.7; margin: 4px 0 0; }
.msr-author__ask { font-size: 12.5px; color: var(--msr-teal-d); margin-top: 8px; display: inline-block; text-decoration: underline !important; }

/* ---------- この記事でわかること ---------- */
.msr-learn { background: var(--msr-teal-l); border-radius: 8px; padding: 14px 18px; margin-top: 20px; }
.msr-learn__h { color: var(--msr-teal-d); font-size: 13px; font-weight: 700; letter-spacing: .05em; margin: 0; }
.msr-learn ul { margin: 6px 0 0; padding: 0; font-size: 14px; line-height: 1.8; list-style: none; }
.msr-learn li { margin: 0; padding: 0 0 0 1.1em; position: relative; list-style: none; }
.msr-learn li::before { content: ""; position: absolute; left: .3em; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--msr-teal-d); }
.msr-learn li::marker { content: none; }
.msr-learn__src { font-size: 12px; color: var(--msr-sub); margin: 6px 0 0; }

/* ---------- 目次（Table of Contents Plus） ---------- */
.msr #toc_container {
  width: auto !important; display: block; background: #fff;
  border: 1px solid var(--msr-line); border-radius: 8px; padding: 12px 18px; margin: 14px 0 24px;
  font-size: 13px; line-height: 1.9;
}
.msr #toc_container .toc_title { text-align: left; font-weight: 700; margin: 0; }
.msr #toc_container a { color: var(--msr-teal-d); }
.msr #toc_container a:hover { text-decoration: underline; }
.msr .block-editor_wrap h2,
.msr .block-editor_wrap h3 { scroll-margin-top: 90px; }

/* ---------- 人型のイラスト ---------- */
.msr-person { display: block; flex: none; border-radius: 50%; overflow: hidden; }
.msr-person svg { display: block; width: 100%; height: 100%; }
.msr-person--56 { width: 56px; height: 56px; }
.msr-opt__ic--face .msr-person { width: 100%; height: 100%; }
/* 3択アイコン用の「svg を30pxにする」指定がイラストにも効いて小さくなるのを打ち消す */
.msr-opt__ic--face .msr-person svg { width: 100%; height: 100%; }

/* ---------- 次の一歩（3択） ---------- */
.msr-next { margin-top: 64px; border-top: 2px solid var(--msr-ink); padding-top: 20px; }
.msr-next__q { font-size: 19px; font-weight: 800; margin: 0 0 16px; line-height: 1.5; }
.msr-next__qs { font-size: 13px; color: var(--msr-sub); margin: 0 0 16px; }
.msr-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.msr-opt {
  border: 1px solid var(--msr-line); border-radius: 10px; background: #fff; color: #111;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 16px 16px; transition: box-shadow .15s, transform .15s;
}
.msr-opt:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); }
.msr-opt--hot .msr-opt__h { color: #2b7d93; }
.msr-opt__ic { width: 52px; height: 52px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.msr-opt__ic svg { width: 26px; height: 26px; }
.msr-opt__ic--y { background: #f5d33f; color: #222; }
.msr-opt__ic--t { background: #55a6bf; color: #fff; }
.msr-opt__ic--face { border-radius: 50%; padding: 2px; border: 2px solid #55a6bf; background: #fff; }
.msr-opt__ic--face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.msr-opt__tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.msr-opt__st { font-size: 11.5px; color: var(--msr-mute); letter-spacing: .05em; }
.msr-opt__h { font-weight: 800; font-size: 16px; line-height: 1.5; }
.msr-opt__d { font-size: 12.5px; color: var(--msr-sub); line-height: 1.6; }
.msr-opt .msr-btn { margin-top: 12px; padding: 8px 24px; }

/* ---------- 関連する研修／関連メソッド ---------- */
.msr-sec { margin-top: 40px; }
#msr-service { scroll-margin-top: 110px; }
.msr-sec__st { font-size: 17px; font-weight: 800; margin: 0 0 12px; }
.msr-sec__st small { font-size: 11px; color: var(--msr-mute); margin-left: 8px; letter-spacing: .12em; font-weight: 400; }
.msr-svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.msr-sc { border: 1px solid var(--msr-line); border-radius: 8px; overflow: hidden; background: #fff; color: #111; display: flex; align-items: stretch; }
.msr-sc:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.msr-sc__im { width: 160px; flex: none; background: #f4f4f4; display: flex; align-items: center; }
/* サムネイルは切り取らず全体を見せる */
.msr-sc__im img { width: 100%; height: auto; object-fit: contain; display: block; }
.msr-sc__bd { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.msr-sc__tg { font-size: 11px; color: var(--msr-teal-d); line-height: 1.5; }
.msr-sc__h { font-weight: 800; font-size: 14.5px; line-height: 1.5; }
.msr-sc__lk { font-size: 12.5px; color: var(--msr-teal-d); font-weight: 700; margin-top: auto; }
.msr-rel { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--msr-line); }
.msr-rel li { border-bottom: 1px solid var(--msr-line); margin: 0; }
.msr-rel a { display: block; padding: 9px 4px; font-size: 13.5px; line-height: 1.6; color: #111; }
.msr-rel a::before { content: "›"; color: var(--msr-teal); font-weight: 700; margin-right: 8px; }
.msr-rel a:hover { text-decoration: underline; }

/* ---------- サイドバー ---------- */
.msr-side { display: flex; flex-direction: column; gap: 22px; }
.msr-sb__h {
  font-size: 14px; font-weight: 800; display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--msr-ink); padding-bottom: 6px; margin: 0 0 10px;
}
.msr-sb__h small { font-size: 10px; color: var(--msr-mute); letter-spacing: .15em; font-weight: 400; }
.msr-doc { display: flex; gap: 10px; align-items: center; border: 1px solid var(--msr-line); border-radius: 8px; padding: 10px; background: #fff; color: #111; }
.msr-doc:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.msr-doc__im { width: 96px; flex: none; }
.msr-doc__im img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; border: 1px solid var(--msr-line); display: block; }
.msr-doc__bd { display: flex; flex-direction: column; min-width: 0; }
.msr-doc__t { font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.msr-pdf { align-self: flex-start; font-size: 10px; font-weight: 700; color: #c92a2a; border: 1px solid #c92a2a; border-radius: 3px; padding: 0 5px; margin-top: 4px; line-height: 1.5; }
.msr-cover {
  width: 72px; aspect-ratio: 210 / 297; flex: none; background: #fff; border: 1px solid #d6d6d6; border-radius: 2px;
  box-shadow: 3px 3px 0 #ececec, 6px 6px 0 #f4f4f4; padding: 7px 5px 6px 9px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; margin-right: 6px;
}
.msr-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--msr-teal); }
.msr-cover .c1 { font-size: 6.5px; color: var(--msr-teal-d); font-weight: 700; line-height: 1.3; }
.msr-cover .c2 { font-size: 8.5px; font-weight: 800; line-height: 1.35; }
.msr-cover .c3 { font-size: 6.5px; letter-spacing: .14em; font-weight: 800; }
.msr-cover .c3 b { color: var(--msr-teal); }
.msr-ss { display: flex; flex-direction: column; gap: 8px; }
.msr-si { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 8px; align-items: start; border-radius: 6px; border: 1px solid var(--msr-line); background: #fff; padding: 6px 8px 8px; color: #111; }
.msr-si:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.msr-si__dt { grid-column: 1 / -1; font-size: 11px; font-weight: 700; color: var(--msr-teal-d); line-height: 1.4; }
.msr-si__im { width: 120px; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; border-radius: 4px; }
.msr-si__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msr-si__bd { font-size: 11.5px; line-height: 1.5; min-width: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.msr-more { font-size: 12px; color: var(--msr-teal-d); text-align: right; display: block; margin-top: 6px; }
.msr-more:hover { text-decoration: underline; }
/* top は method-single.js がヘッダー（ログイン中は管理バー分も）と画面の高さに合わせて設定する */
.msr-stick { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
body.admin-bar .msr-stick { top: 132px; }
.msr-consult { border: 2px solid var(--msr-teal); border-radius: 10px; padding: 14px; background: #fbfeff; }
.msr-consult__who { display: flex; gap: 10px; align-items: center; }
.msr-consult__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.msr-consult__ttl { font-size: 14px; font-weight: 800; line-height: 1.5; margin: 0; }
.msr-consult ul { margin: 10px 0 12px; padding-left: 18px; font-size: 12px; color: var(--msr-sub); line-height: 1.7; list-style: disc; }
.msr-consult .msr-btn { width: 100%; border-radius: 4px; }
.msr-consult__sub { display: block; text-align: center; font-size: 12px; color: var(--msr-teal-d); margin-top: 8px; text-decoration: underline !important; }
.msr-prog { height: 4px; background: var(--msr-line); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.msr-prog i { display: block; height: 100%; width: 0; background: var(--msr-teal); }
.msr-rank { counter-reset: msr-r; }
.msr-mini { display: flex; gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.5; padding: 8px 0; border-bottom: 1px solid var(--msr-line); color: #111; counter-increment: msr-r; }
.msr-mini::before { content: counter(msr-r); font-weight: 800; color: var(--msr-teal); width: 14px; flex: none; }
.msr-mini img { width: 70px; height: 46px; object-fit: cover; border-radius: 4px; flex: none; }
.msr-mini:hover span { text-decoration: underline; }

/* ---------- スマホ下部の相談バー ---------- */
.msr-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  align-items: center; justify-content: space-between; gap: 10px;
  background: #111; color: #fff; padding: 10px 16px; font-size: 13px; line-height: 1.5;
}
.msr-bar small { display: block; color: #bbb; font-size: 11px; }

/* ---------- 画面幅ごと ---------- */
@media (max-width: 1000px) {
  .msr-stick { position: static; }
  .msr-consult { display: none; }
  .msr-bar { display: flex; }
  body.single-method { padding-bottom: 64px; }
}
@media (max-width: 760px) {
  .msr-three { grid-template-columns: 1fr; }
  .msr-opt { flex-direction: row; text-align: left; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
  .msr-opt__ic { width: 52px; height: 52px; margin: 0; }
  .msr-opt__ic--face { width: 58px; height: 58px; margin: 0; }
  .msr-opt__tx { min-width: 0; flex: 1; }
  .msr-opt .msr-btn { margin-top: 4px; width: 100%; }
  .msr-svc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .msr-author { padding: 14px; gap: 12px; }
  .msr-author__ph img { width: 56px; height: 56px; }
  .msr-author__n .msr-author__prof { display: block; margin: 2px 0 0; }
}
