/* dokode-miru 共通（AFFINGER の CSS の上に重ねる） */
:root { --dm-main: #039BE5; --dm-dark: #0277BD; --dm-bg: #f5f7fa; --dm-line: #e3e8ee; --dm-text: #333; }
body.dm { background: var(--dm-bg); color: var(--dm-text); }
#wrapper.colum1 #content-w, body.dm #content { background: transparent; }
body.dm main { background: #fff; padding: 20px 16px 30px; border-radius: 8px; }
@media (min-width: 960px) { body.dm main { padding: 30px 40px 40px; } }

/* ヘッダー */
.dm-head { background: #fff; border-bottom: 1px solid var(--dm-line); }
.dm-head__in { max-width: 1060px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dm-logo { font-size: 24px; font-weight: bold; color: var(--dm-dark) !important; text-decoration: none; line-height: 1.2; }
.dm-logo small { display: block; font-size: 11px; color: #888; font-weight: normal; }
.dm-search { display: flex; flex: 1 1 260px; max-width: 420px; }
.dm-search input { flex: 1; min-width: 0; padding: 8px 12px; border: 2px solid var(--dm-main); border-right: 0; border-radius: 6px 0 0 6px; font-size: 15px; }
.dm-search button { padding: 0 16px; background: var(--dm-main); color: #fff; border: 0; border-radius: 0 6px 6px 0; font-weight: bold; cursor: pointer; }
.dm-search--big { max-width: 560px; margin: 16px auto 0; }
.dm-search--big input { padding: 12px 14px; font-size: 16px; }
.dm-nav { background: var(--dm-main); }
.dm-nav ul { max-width: 1060px; margin: 0 auto; padding: 0 8px; display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; }
.dm-nav li { flex: 0 0 auto; margin: 0; }
.dm-nav a { display: block; padding: 10px 14px; color: #fff !important; font-weight: bold; font-size: 14px; text-decoration: none; white-space: nowrap; }
.dm-nav a:hover { background: var(--dm-dark); }

/* パンくず */
body.dm #breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 14px; list-style: none; font-size: 12px; }
body.dm #breadcrumb li { margin: 0; color: #888; }
body.dm #breadcrumb a { color: #666; }

/* 目次（st-toc 相当） */
.dm-toc { border: 1px solid var(--dm-line); background: #fafcff; border-radius: 6px; padding: 14px 18px; margin: 0 0 40px; }
.dm-toc__head { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: bold; }
.dm-toc__btn { font-size: 12px; background: none; border: 0; color: var(--dm-main); cursor: pointer; }
.dm-toc ol { margin: 10px 0 0; padding: 0 0 0 1.4em; counter-reset: none; }
.dm-toc li { margin: 4px 0; font-size: 14px; line-height: 1.5; }
.dm-toc li a { color: var(--dm-text); text-decoration: none; }
.dm-toc li a:hover { color: var(--dm-main); text-decoration: underline; }
.dm-toc ul { margin: 4px 0 6px; padding-left: 1.2em; list-style: circle; }
.dm-toc ul li { font-size: 13px; }
.dm-toc__body { position: relative; }
.dm-toc.is-folded .dm-toc__body { max-height: 200px; overflow: hidden; }
.dm-toc.is-folded .dm-toc__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(250,252,255,0), #fafcff 90%); pointer-events: none; }
.dm-toc__more { display: block; margin: 10px auto 0; padding: 6px 22px; border: 1px solid var(--dm-main); border-radius: 18px; background: #fff; color: var(--dm-dark); font-size: 13px; font-weight: bold; cursor: pointer; }
.dm-toc__more::after { content: " ▼"; font-size: 10px; }
.dm-toc__more[aria-expanded="true"]::after { content: " ▲"; }
.dm-toc.is-short .dm-toc__more { display: none; }

/* 一覧 */
.dm-h1 { font-size: 24px; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 3px solid var(--dm-main); }
.dm-lead { color: #555; font-size: 14px; }
.dm-sec { font-size: 20px; margin: 36px 0 14px; padding-left: 10px; border-left: 5px solid var(--dm-main); background: none !important; color: var(--dm-text) !important; }
.dm-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0 0 20px; }
@media (min-width: 600px) { .dm-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .dm-cards { grid-template-columns: repeat(4, 1fr); } }
.dm-card { margin: 0; }
.dm-card a { display: block; height: 100%; background: #fff; border: 1px solid var(--dm-line); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--dm-text); transition: box-shadow .15s; }
.dm-card a:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.dm-card img, .dm-card__noimg { display: block; width: 100%; aspect-ratio: 300/158; object-fit: cover; background: #e9eef3; margin: 0; }
.dm-card__t { display: block; padding: 8px 10px 2px; font-size: 14px; font-weight: bold; line-height: 1.45; }
.dm-card__m { display: block; padding: 0 10px 10px; font-size: 11px; line-height: 1.5; color: #888; }
.dm-kids { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 24px; }
.dm-kids li { margin: 0; }
.dm-kids a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 1px solid var(--dm-main); border-radius: 20px; color: var(--dm-dark); font-weight: bold; text-decoration: none; font-size: 14px; }
.dm-kids a span { font-size: 11px; color: #888; font-weight: normal; }
.dm-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 24px 0 0; }
.dm-pager a, .dm-pager .cur { padding: 6px 12px; border: 1px solid var(--dm-line); border-radius: 4px; text-decoration: none; font-size: 14px; }
.dm-pager .cur { background: var(--dm-main); color: #fff; border-color: var(--dm-main); }
.dm-pager__all { width: 100%; text-align: center; font-size: 12px; color: #888; }
.dm-more { text-align: center; }
.dm-more a { display: inline-block; padding: 10px 24px; border-radius: 24px; background: var(--dm-main); color: #fff !important; text-decoration: none; font-weight: bold; }
.dm-related { margin-top: 40px; }

/* トップ */
.dm-hero { text-align: center; padding: 20px 0 10px; }
.dm-hero h1 { font-size: 24px; margin: 0 0 8px; }
.dm-hero p { color: #555; font-size: 14px; margin: 0; }
.dm-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .dm-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dm-tiles { grid-template-columns: repeat(3, 1fr); } }
.dm-tile { border: 1px solid var(--dm-line); border-radius: 8px; padding: 14px; background: #fff; }
.dm-tile__p { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: bold; color: var(--dm-dark) !important; text-decoration: none; margin-bottom: 8px; }
.dm-tile__p span { font-size: 12px; color: #888; font-weight: normal; }
.dm-tile ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.dm-tile li { margin: 0; }
.dm-tile li a { display: block; padding: 4px 10px; background: var(--dm-bg); border-radius: 14px; font-size: 13px; color: var(--dm-text); text-decoration: none; }

/* 検索 */
.dm-results { list-style: none; padding: 0; }
.dm-results li { margin: 0; border-bottom: 1px solid var(--dm-line); }
.dm-results a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px; text-decoration: none; color: var(--dm-text); }
.dm-results span { font-size: 12px; color: #888; white-space: nowrap; }

/* フッター */
body.dm #footer, body.dm #footer-wrapper { background: var(--dm-main) !important; background-image: none !important; color: #fff; }
.dm-foot-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 1060px; margin: 0 auto 20px; padding: 0 8px; text-align: left; }
@media (min-width: 960px) { .dm-foot-cats { grid-template-columns: repeat(6, 1fr); } }
.dm-foot-cats a { display: block; color: #e1f5fe !important; font-size: 12px; text-decoration: none; margin: 3px 0; }
.dm-foot-cats a.dm-foot-p { color: #fff !important; font-weight: bold; font-size: 14px; margin-bottom: 6px; }
body.dm .copyr, body.dm .copyr small { color: #e1f5fe; text-align: center; }
.dm-foot-links { text-align: center; margin: 0 0 8px; }
.dm-foot-links a { color: #fff !important; font-size: 12px; text-decoration: none; margin: 0 10px; }
.dm-foot-links a:hover { text-decoration: underline; }

/* AFFINGER 側の指定を打ち消す */
body.dm #breadcrumb { display: block !important; }
body.dm h2.dm-sec { border: 0 !important; border-left: 5px solid var(--dm-main) !important; padding: 4px 10px !important; background: none !important; font-size: 20px !important; line-height: 1.4 !important; }
body.dm h2.dm-sec::before, body.dm h2.dm-sec::after { display: none !important; }

/* トップ・カテゴリ一覧・検索：ごく薄い水色の背景（カードは白で浮かせる） */
body.dm-list main { background: #f2f8fc; }
body.dm-list .dm-card a, body.dm-list .dm-tile { background: #fff; border-color: #dbe7f0; }
body.dm-list .dm-kids a { background: #fff; }
body.dm-list .dm-tile li a { background: #eaf4fb; }
body.dm-list .dm-h1, body.dm-list .dm-hero h1 { color: #1f2d36; }
body.dm-list .dm-lead, body.dm-list .dm-hero p { color: #44525c; }

/* 記事下のジャンル・年代 */
.dm-facets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; padding: 14px 16px; background: #f2f8fc; border-radius: 8px; }
.dm-facets > span { font-size: 13px; font-weight: bold; color: #44525c; }
.dm-facets ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.dm-facets li { margin: 0; }
.dm-facets a { display: block; padding: 4px 12px; background: #fff; border: 1px solid #dbe7f0; border-radius: 14px; font-size: 13px; color: var(--dm-dark); text-decoration: none; }

/* スカパー記事・ハブ：登録手順の開閉ボタン（目立たせる） */
.dm-steps.st-slidebox-c { padding: 0; background: none; }
.dm-steps .st-btn-open { display: block; margin: 6px auto 14px; max-width: 460px; padding: 16px 20px; text-align: center;
  border: 0; border-radius: 30px; background: linear-gradient(to bottom, #29B6F6, #039BE5); color: #fff !important;
  font-size: 17px; font-weight: bold; letter-spacing: .03em; box-shadow: 0 4px 0 #0277BD, 0 6px 14px rgba(3,155,229,.35);
  position: relative; transition: transform .1s, box-shadow .1s; animation: dm-pulse 2.4s ease-in-out infinite; }
.dm-steps .st-btn-open .st-slidebox-btn-text { color: #fff !important; }
.dm-steps .st-btn-open::after { content: "▼"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: .9; }
.dm-steps.is-expanded .st-btn-open, .dm-steps[data-st-slidebox-expanded="true"] .st-btn-open { animation: none; background: #fff; color: var(--dm-dark) !important; border: 2px solid var(--dm-main); box-shadow: none; }
.dm-steps[data-st-slidebox-expanded="true"] .st-btn-open .st-slidebox-btn-text { color: var(--dm-dark) !important; }
.dm-steps[data-st-slidebox-expanded="true"] .st-btn-open::after { content: "▲"; }
.dm-steps .st-btn-open:hover { transform: translateY(1px); box-shadow: 0 3px 0 #0277BD, 0 4px 10px rgba(3,155,229,.3); }
.dm-steps .st-btn-open:active { transform: translateY(4px); box-shadow: 0 0 0 #0277BD; }
.dm-steps .st-slidebox { padding-top: 6px; }
@keyframes dm-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .dm-steps .st-btn-open { animation: none; } }

/* ハブの料金表：番組ページから来たチャンネルの行を目立たせる */
.dm-ch-table tr.dm-hit td { background: #fff8e1 !important; font-weight: bold; }

/* テレビ放送（スカパー）の記事・ハブ：加入ボタンも開閉ボタンと同じ形（丸いボタン・影・ゆっくり拡大縮小）。色は緑のまま */
body.dm-tv .st-mcbtn-box .st-mybtn { max-width: 460px; width: 100% !important; margin: 6px auto 10px !important; border: 0 !important;
  border-radius: 30px !important; background: linear-gradient(to bottom, #66BB6A, #43A047) !important;
  box-shadow: 0 4px 0 #2E7D32, 0 6px 14px rgba(67,160,71,.35) !important; animation: dm-pulse 2.4s ease-in-out infinite;
  transition: transform .1s, box-shadow .1s; }
body.dm-tv .st-mcbtn-box .st-mybtn a { display: block; padding: 16px 44px 16px 20px !important; font-size: 17px; color: #fff !important; position: relative; }
body.dm-tv .st-mcbtn-box .st-mybtn a .st-fa { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
body.dm-tv .st-mcbtn-box .st-mybtn:hover { transform: translateY(1px); box-shadow: 0 3px 0 #2E7D32, 0 4px 10px rgba(67,160,71,.3) !important; }
body.dm-tv .st-mcbtn-box .st-mybtn:active { transform: translateY(4px); box-shadow: 0 0 0 #2E7D32 !important; }
@media (prefers-reduced-motion: reduce) { body.dm-tv .st-mcbtn-box .st-mybtn { animation: none; } }

/* スカパー番組ページ：見る方法の箱の中のハブへのボタン */
.dm-hub-btns { margin: 14px 0 4px; text-align: center; }
.dm-hub-btns__t { margin: 0 0 6px !important; font-size: 12px; font-weight: bold; color: var(--dm-dark); }
.dm-hub-btn { display: block; max-width: 460px; margin: 0 auto 10px; padding: 12px 40px 12px 16px; border: 2px solid var(--dm-main); border-radius: 26px;
  background: #fff; color: var(--dm-dark) !important; font-weight: bold; font-size: 15px; text-decoration: none !important; position: relative; }
.dm-hub-btn::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-52%); font-size: 22px; line-height: 1; }
.dm-hub-btn:hover { background: #eaf6fd; }

/* =========================================================
   スカパー番組ページ（body.dm-prog）：LP・公式サイト風のデザイン（2026-10-15）
   中身は同じで見た目だけ。AFFINGER の見出し・表の指定を上書きする
   ========================================================= */
body.dm-prog { background: #f4f7fb; }
body.dm-prog main { max-width: 820px; margin: 0 auto; background: #fff; padding: 28px 20px 48px; border-radius: 16px; box-shadow: 0 2px 20px rgba(16,42,67,.06); }
@media (min-width: 960px) { body.dm-prog main { padding: 40px 56px 64px; margin-top: 24px; } }
body.dm-prog .entry-content, body.dm-prog .entry-content p { color: #23303d; font-size: 15px; line-height: 1.9; }
body.dm-prog .entry-content p { margin-bottom: 1.2em; }
body.dm-prog .st-catgroup .catname { background: none !important; color: #8a99a8 !important; border: 1px solid #d7e0e8; border-radius: 4px; font-size: 11px; padding: 2px 8px; }
body.dm-prog h1.entry-title { font-size: 26px !important; line-height: 1.45 !important; color: #102a43 !important; font-weight: 800; letter-spacing: .01em; margin: 10px 0 6px !important; background: none !important; border: 0 !important; padding: 0 !important; }
@media (max-width: 599px) { body.dm-prog h1.entry-title { font-size: 22px !important; } }
body.dm-prog .blogbox { margin-bottom: 18px; }
body.dm-prog .kdate { color: #8a99a8; font-size: 12px; }
body.dm-prog .st-eyecatch-under img { border-radius: 14px; box-shadow: 0 8px 28px rgba(16,42,67,.15); }
body.dm-prog .st-eyecatch-under { margin-bottom: 28px; }

/* 見出し */
body.dm-prog .entry-content h2 { position: relative; margin: 64px 0 22px !important; padding: 0 0 14px 18px !important; font-size: 21px !important; line-height: 1.5 !important;
  color: #102a43 !important; font-weight: 800; text-align: left !important; background: none !important; border: 0 !important; border-bottom: 1px solid #e3eaf2 !important; }
body.dm-prog .entry-content h2::before { content: "" !important; display: block !important; position: absolute !important; left: 0 !important; right: auto !important;
  top: 4px !important; bottom: 18px !important; width: 6px !important; height: auto !important; margin: 0 !important; transform: none !important; border-radius: 3px !important;
  background: linear-gradient(180deg, #29B6F6, #0277BD) !important; border: 0 !important; }
body.dm-prog .entry-content h2 { padding-left: 20px !important; }
body.dm-prog .entry-content h2::after { display: none !important; }
body.dm-prog .entry-content h3 { margin: 40px 0 16px !important; padding: 0 0 8px !important; font-size: 17px !important; color: #102a43 !important; font-weight: 700;
  background: none !important; border: 0 !important; border-bottom: 2px solid #e3eaf2 !important; text-align: left !important; }
body.dm-prog .entry-content h3::before, body.dm-prog .entry-content h3::after { display: none !important; }
@media (max-width: 599px) { body.dm-prog .entry-content h2 { font-size: 19px !important; } body.dm-prog .entry-content, body.dm-prog .entry-content p { font-size: 14.5px; } }

/* 番組情報の表・配信の表：カード型 */
body.dm-prog .entry-content table { width: 100% !important; border-collapse: separate !important; border-spacing: 0; border: 1px solid #dfe8f1 !important; border-radius: 12px; overflow: hidden; margin: 8px 0 28px; }
body.dm-prog .entry-content table th, body.dm-prog .entry-content table td { border: 0 !important; border-bottom: 1px solid #edf2f7 !important; padding: 12px 14px !important; font-size: 14px; vertical-align: middle !important; }
body.dm-prog .entry-content table tr:last-child th, body.dm-prog .entry-content table tr:last-child td { border-bottom: 0 !important; }
body.dm-prog .entry-content table th { width: 34% !important; background: #f2f8fd !important; color: #0b4f7c !important; font-weight: 700; text-align: left !important; }
body.dm-prog .entry-content table td { background: #fff !important; text-align: left !important; color: #23303d; }
body.dm-prog .entry-content table th strong { font-weight: 700; color: inherit; }

/* 画像 */
body.dm-prog .entry-content img { border-radius: 10px; }
body.dm-prog .entry-content .dm-svc img { border-radius: 0; }

/* 視聴できるサービス */
body.dm-prog .dm-svc { margin: 36px 0 8px; padding: 26px 18px 18px; background: linear-gradient(180deg, #f2f8fd, #fff); border: 1px solid #dfe8f1; border-radius: 16px; text-align: center; }
body.dm-prog .dm-svc__t { margin: 0 0 18px !important; font-size: 16px !important; font-weight: 800; color: #102a43 !important; line-height: 1.5 !important; }
body.dm-prog .dm-svc__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 0 !important; margin: 0 auto 14px !important; max-width: 640px; }
@media (min-width: 600px) { body.dm-prog .dm-svc__list { grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: none; } }
body.dm-prog .dm-svc__list li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.dm-prog .dm-svc__list li::before { display: none !important; }
body.dm-prog .dm-svc__list img { display: block; width: 100%; height: auto; margin: 0 auto; transition: transform .15s; }
body.dm-prog .dm-svc__list a:hover img { transform: translateY(-3px); }
body.dm-prog .dm-svc__note { margin: 0 !important; font-size: 13px !important; color: #5b6b7a !important; line-height: 1.7 !important; }

/* ハブへのボタン */
body.dm-prog .dm-hub-btns { margin: 18px 0 8px; }
body.dm-prog .dm-hub-btn { background: #0277BD; border-color: #0277BD; color: #fff !important; box-shadow: 0 4px 12px rgba(2,119,189,.25); }
body.dm-prog .dm-hub-btn:hover { background: #01579B; }

/* マーカー・強調・公式リンク */
body.dm-prog .st-mymarker-s { background: linear-gradient(transparent 62%, #ffe8a3 62%) !important; font-weight: 700; }
body.dm-prog .hutoaka { color: #d32f2f !important; font-weight: 700; }
body.dm-prog .entry-content p > a[target="_blank"]:only-child { display: inline-block; padding: 2px 0 2px 18px; position: relative; color: #0b6fb0; font-weight: 600; }
body.dm-prog .entry-content p > a[target="_blank"]:only-child::before { content: "›"; position: absolute; left: 2px; top: 0; font-size: 18px; color: #29B6F6; }

/* 運営者情報・プライバシーポリシー（TOPページと同じ見出し・背景） */
body.dm-fixed .dm-doc { background: #fff; border: 1px solid #dbe7f0; border-radius: 8px; padding: 8px 24px 24px; margin: 16px 0 8px; font-size: 15px; line-height: 1.9; color: #1f2d36; }
body.dm-fixed .dm-doc > p:first-child { margin-top: 16px; }
body.dm-fixed .dm-doc h2.dm-sec { margin: 28px 0 12px !important; }
body.dm-fixed .dm-doc h3 { font-size: 16px !important; margin: 22px 0 8px !important; padding: 0 0 4px !important; color: #0277bd !important; background: none !important; border: 0 !important; border-bottom: 1px solid #dbe7f0 !important; text-align: left !important; line-height: 1.5 !important; }
body.dm-fixed .dm-doc h3::before, body.dm-fixed .dm-doc h3::after { display: none !important; }
body.dm-fixed .dm-doc p, body.dm-fixed .dm-doc li { margin: 0 0 12px; font-size: 15px !important; line-height: 1.9 !important; }
body.dm-fixed .dm-doc li { margin: 4px 0; }
body.dm-fixed .dm-doc ul { margin: 0 0 14px 1.4em; padding: 0; }
body.dm-fixed .dm-doc li { margin: 4px 0; }
body.dm-fixed .dm-doc table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
body.dm-fixed .dm-doc th, body.dm-fixed .dm-doc td { border: 1px solid #dbe7f0; padding: 12px 14px; font-size: 14px; text-align: left; vertical-align: middle; }
body.dm-fixed .dm-doc th { width: 32% !important; background: #eaf4fb; color: #1f2d36; font-weight: bold; }
body.dm-fixed .dm-doc td { width: auto !important; }
@media (max-width: 599px) { body.dm-fixed .dm-doc { padding: 4px 14px 18px; font-size: 14.5px; } body.dm-fixed .dm-doc p, body.dm-fixed .dm-doc li { font-size: 14.5px !important; } body.dm-fixed .dm-doc th { width: 36% !important; } }
