/* ==========================================================
   6確 解析機種ページ専用CSS
========================================================== */

:root{
  --k6-text:#0f172a;
  --k6-muted:#64748b;
  --k6-border:#e5e7eb;
  --k6-surface:#fff;
}

.mm-main{
  padding-top:24px;
  padding-bottom:40px;
}

.mm-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:24px;
  align-items:start;
}

.mm-content,
.mm-article{
  min-width:0;
}

.mm-article__h1{
  margin:0 0 12px;
  color:var(--k6-text);
  font-size:clamp(24px,3vw,34px);
  line-height:1.4;
  font-weight:900;
  overflow-wrap:anywhere;
}

.mm-article__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin:0 0 20px;
  color:var(--k6-muted);
  font-size:13px;
}

.mm-article__meta span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.mm-hero__icon{
  overflow:hidden;
}

.mm-hero__icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.mm-visual{
  width:100%;
  margin:16px 0 22px;
  overflow:hidden;
  border-radius:10px;
  background:#f1f5f9;
}

.mm-visual__img{
  display:block;
  width:100%;
  height:auto;
}

.mm-machine-icon--ph{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  opacity:.75;
}

.mm-note{
  text-align:left;
  line-height:1.7;
  overflow-wrap:anywhere;
  word-break:normal;
}

.mm-faq__a:not(.hidden){
  display:block;
}

.mm-share-panel{
  margin-top:28px;
  padding:16px;
  border:1px solid var(--k6-border);
  border-radius:12px;
  background:var(--k6-surface);
  box-shadow:0 1px 2px rgba(15,23,42,.05);
}

.mm-share-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.mm-share-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:10px 14px;
  border-radius:8px;
  color:#fff;
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  text-decoration:none;
}

.mm-share-button:hover,
.mm-share-button:focus-visible{
  color:#fff;
  opacity:.88;
}

.mm-share-button--x{
  background:#111;
}

.mm-share-button--line{
  background:#06c755;
}

.mm-share-button--hatena{
  background:#00a4de;
}

.mm-share-button__hatena{
  font-family:Arial,sans-serif;
  font-weight:900;
}

/* ==========================================================
   投稿本文共通
========================================================== */

.mm-content-machine-image{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
}

/* スロットは横200px */
.mm-body--slot .mm-content-machine-image{
  width:200px;
}

/* パチンコは横160px */
.mm-body--pachinko .mm-content-machine-image{
  width:160px;
}

.mm-image-research{
  display:flex;
  width:200px;
  max-width:100%;
  min-height:280px;
  align-items:center;
  justify-content:center;
  margin:0 auto;
  padding:16px;
  border:1px dashed #cbd5e1;
  border-radius:10px;
  background:#f8fafc;
  color:#64748b;
  font-weight:700;
  text-align:center;
  box-sizing:border-box;
}

.mm-image-research--wide{
  width:100%;
  min-height:180px;
}

.mm-panel--spaced{
  margin-top:14px;
}

.mm-howcard{
  text-decoration:none;
}

.mm-color--bronze{
  background:#d6a46c;
  color:#fff;
}

.mm-color--silver{
  background:#cbd5e1;
  color:#334155;
}

.mm-color--kirin{
  background:#f5c542;
  color:#111;
}

.mm-faq__item{
  border:0;
}

.mm-faq__q{
  list-style:none;
  cursor:pointer;
}

.mm-faq__q::-webkit-details-marker{
  display:none;
}

.mm-faq__q::marker{
  content:"";
}

.mm-faq__q i{
  transition:transform .2s ease;
}

.mm-faq__item[open] .mm-faq__q i{
  transform:rotate(180deg);
}

.mm-faq__a{
  display:none;
}

.mm-faq__item[open] .mm-faq__a{
  display:block;
}

.mm-copyright{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:28px 0 20px;
  padding:0 16px;
  color:#64748b;
  font-size:12px;
  line-height:1.8;
  letter-spacing:.01em;
  text-align:center;
  box-sizing:border-box;
}

/* ==========================================================
   設定判別ツール
========================================================== */

.mm-setting-tool-intro{
  margin-bottom:20px;
}

.mm-setting-tool-intro .mm-tip{
  margin-top:16px;
}

.mm-setting-tool-wrap{
  width:100%;
  min-width:0;
}

.mm-setting-tool-wrap > :first-child{
  margin-top:0;
}

.mm-setting-tool-wrap > :last-child{
  margin-bottom:0;
}

/* ==========================================================
   参考情報・自動更新履歴
========================================================== */

.mm-sources-section{
  clear:both;
  margin-top:32px;
}

.mm-sources-section > .section-title{
  margin-top:0;
  margin-bottom:20px;
}

.mm-sources-section .mm-card{
  margin-top:0;
}

.mm-sources-section .mm-card__h{
  margin-top:0;
}

.mm-update-history{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #dfe4ea;
}

.mm-update-history__title{
  margin-bottom:14px;
}

.mm-update-history__list{
  display:grid;
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
}

.mm-update-history__item{
  position:relative;
  padding-left:18px;
}

.mm-update-history__item::before{
  position:absolute;
  top:.65em;
  left:2px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#14b8a6;
  content:"";
}

.mm-update-history__date{
  display:block;
  margin-bottom:5px;
  font-weight:700;
  line-height:1.5;
}

.mm-update-history__text,
.mm-update-history__changes{
  margin:0;
}

.mm-update-history__changes{
  display:grid;
  gap:4px;
  padding-left:1.25em;
}

.mm-update-history__changes li{
  line-height:1.7;
}

.mm-update-history__empty{
  margin:0;
  color:#667085;
  line-height:1.7;
}

.mm-sources-section + .mm-share-panel{
  margin-top:28px;
}

/* ==========================================================
   パチンコ本文追加CSS
========================================================== */

.mm-video{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:10px;
  background:#000;
}

.mm-video-frame{
  display:block;
  width:100%;
  height:100%;
  border:0;
}

.mm-spec-list{
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  margin:0;
}

.mm-spec-list dt,
.mm-spec-list dd{
  margin:0;
  padding:12px 14px;
  border-bottom:1px solid #e5e7eb;
}

.mm-spec-list dt{
  background:#f8fafc;
  color:#334155;
  font-weight:700;
}

.mm-spec-list dd{
  min-width:0;
  overflow-wrap:anywhere;
}

@media(min-width:768px){
  .mm-note{
    text-align:right;
  }
}

@media(max-width:980px){
  .mm-layout{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .mm-main{
    padding-top:18px;
    padding-bottom:28px;
  }

  .mm-article__h1{
    font-size:24px;
  }

  .mm-share-panel{
    padding:12px;
  }

  .mm-share-buttons{
    grid-template-columns:1fr;
    gap:8px;
  }

  .mm-copyright{
    margin:24px 0 16px;
    padding:0 12px;
    font-size:11px;
    line-height:1.75;
  }

  .mm-setting-tool-intro{
    margin-bottom:16px;
  }

  .mm-setting-tool-intro .mm-tip{
    margin-top:14px;
  }

  .mm-setting-tool-wrap{
    overflow-x:hidden;
  }

  .mm-sources-section{
    margin-top:24px;
  }

  .mm-sources-section > .section-title{
    margin-bottom:16px;
  }

  .mm-update-history{
    margin-top:18px;
    padding-top:16px;
  }

  .mm-sources-section + .mm-share-panel{
    margin-top:22px;
  }

  .mm-spec-list{
    grid-template-columns:1fr;
  }

  .mm-spec-list dt{
    border-bottom:0;
  }
}

/* =========================================================
   記事下部の更新履歴
========================================================= */

.mm-update-summary {
  margin-top: 28px;
}

.mm-update-summary__latest {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.mm-update-summary__latest i {
  color: var(--teal);
}

.mm-update-summary__details {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.mm-update-summary__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-700);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.mm-update-summary__toggle::-webkit-details-marker {
  display: none;
}

.mm-update-summary__toggle::after {
  content: "＋";
  font-size: 14px;
  font-weight: 900;
}

.mm-update-summary__details[open] .mm-update-summary__toggle::after {
  content: "−";
}

.mm-update-summary__toggle:hover {
  background: #f0fdfa;
}

.mm-update-summary__content {
  margin-top: 16px;
}

/* 折りたたみ内で既存の更新履歴タイトルが重複する場合は非表示 */
.mm-update-summary__content > section > h2:first-child,
.mm-update-summary__content > div > h2:first-child {
  display: none;
}

/* =========================================================
   k6-analysis-mobile.css

   single-machine.css の一番最後へ追記する。
   既存の v39 / v40 ブロックより後ろに置くこと。

   1. 識別ブロック（.k6-ident）＋ ヒーローの重複解消
   2. 目次16件の常時表示（.mm-toc__grid--all）
   3. 下部追従バー（既存ドロワーを開く）
   4. 打ち方の停止形カードを横スワイプ
   5. #spec の位置依存指定の無効化
   6. 1列目が短い表を詰める（.mm-table--tight）
   7. ページメニューの表示崩れ
   ========================================================= */

/* ---------------------------------------------------------
   1. 識別ブロック（筐体 ＋ 基本情報）

   ページ最上部。パッと見で機種を判別させる。
   スマホでも筐体を左・情報を右に並べ、縦を使わない。
--------------------------------------------------------- */

.k6-ident {
  display: grid !important;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 12px !important;
  padding: 12px !important;
}

.k6-ident__img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  padding: 6px;
  border: 0.5px solid var(--border2, #e2e8f0);
  border-radius: 10px;
  background: linear-gradient(#fff, #f8fafc);
}

/* ショートコードが img を figure / a などで包む場合の保険 */
.k6-ident__img > *,
.k6-ident__img figure,
.k6-ident__img picture,
.k6-ident__img a,
.k6-ident__img span,
.k6-ident__img div {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.k6-ident__img img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 168px !important;
  margin: 0 auto !important;
  border-radius: 6px !important;
  object-fit: contain !important;
}

.k6-ident__body {
  min-width: 0;
}

.k6-ident__tags {
  margin: 0 0 4px !important;
  justify-content: flex-start !important;
}

.k6-ident__rows {
  margin: 0;
}

.k6-ident__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 0.5px solid var(--border2, #e2e8f0);
}

.k6-ident__row:last-child {
  border-bottom: 0;
}

.k6-ident__row dt {
  margin: 0;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
}

.k6-ident__row dd {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.k6-ident__row dd .font-num {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .k6-ident {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 18px;
    padding: 16px !important;
  }

  .k6-ident__img img {
    max-height: 246px !important;
  }

  .k6-ident__row {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 7px 0;
  }

  .k6-ident__row dd {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .k6-ident {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
  }

  .k6-ident__img img {
    max-height: 140px !important;
  }

  .k6-ident__row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .k6-ident__row dd {
    font-size: 12.5px;
  }
}

/* ---- ヒーローとの重複解消 ----------------------------------
 *
 * ヒーロー（.mm-hero）と識別ブロックで筐体画像が2枚、
 * 機種名・メーカーが2回出ていた。
 * 役割を次のように分けて、それぞれ1箇所だけにする。
 *
 *   ヒーロー   … 機種名・メーカー・導入日・更新日
 *   識別ブロック … 筐体画像・タグ・実戦数値
 *
 * ヒーローは背景に機種のアートが入っているため、
 * 小さな筐体アイコンが無くても機種は判別できる。
 */

.mm-hero__icon {
  display: none !important;
}

.mm-hero__left {
  display: block !important;
  grid-template-columns: none !important;
}

/*
 * 逆の方針を採る場合。
 * ヒーローを主役にして、識別ブロックから筐体画像を消す。
 * 上の2つを削って、こちらを有効にする。
 */
/*
.mm-hero__icon { display: flex !important; }
.k6-ident { grid-template-columns: minmax(0, 1fr) !important; }
.k6-ident__img { display: none !important; }
*/

/* ---------------------------------------------------------
   2. 目次16件の常時表示

   details を廃止して全件出すため1件あたりの高さを詰める。
   需要の高い4件（.is-key）は枠を強調し、数値を2行目へ出す。
--------------------------------------------------------- */

.mm-toc > .mm-toc__grid--all {
  margin-inline: 14px !important;
  margin-bottom: 14px !important;
  padding: 10px !important;
  border-radius: 10px;
}

.mm-toc__grid--all a {
  flex-wrap: wrap;
  align-content: center;
  min-height: 44px !important;
  padding: 8px 34px 8px 10px !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}

/* 番号を表示する（全件表示では位置の手がかりになる） */
.mm-toc__grid--all a > span {
  display: inline !important;
  flex: 0 0 auto;
  margin-right: 5px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
}

.mm-toc__grid--all a::after {
  right: 9px !important;
  width: 19px !important;
  height: 19px !important;
  background-size: 9px 9px !important;
}

/* 需要の高い4件 */
.mm-toc__grid--all .is-key > a {
  min-height: 52px !important;
  border-color: var(--teal, #14b8a6) !important;
}

.mm-toc__grid--all .mm-toc__value {
  display: block;
  flex: 0 0 100%;
  margin-top: 2px;
  color: var(--teal-700, #0f766e);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .mm-toc > .mm-toc__grid--all {
    margin-inline: 12px !important;
    margin-bottom: 12px !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  .mm-toc__grid--all a {
    min-height: 42px !important;
    padding: 7px 28px 7px 8px !important;
    font-size: 10.5px !important;
  }

  .mm-toc__grid--all .is-key > a {
    min-height: 50px !important;
  }

  .mm-toc__grid--all a > span {
    margin-right: 4px;
    font-size: 9.5px;
  }

  .mm-toc__grid--all a::after {
    right: 7px !important;
    width: 17px !important;
    height: 17px !important;
    background-size: 8px 8px !important;
  }

  .mm-toc__grid--all .mm-toc__value {
    font-size: 10px;
  }
}

/* ---------------------------------------------------------
   3. 下部追従バー

   ▼ 前提
   ・目次UIは既存の .mm-toc-drawer をそのまま使う。新規に作らない。
   ・広告の高さは .k6-overlay-ad が出している
     --k6-overlay-ad-height を読むだけでよい。
   ・広告を覆わない。24px の緩衝帯を必ず空ける。
   ・タップ要素は左寄せ。右端はアンカー広告の閉じるボタンの真上になる。
   ・バーを表示する間は既存の .mm-float を隠す（ナビの二重化を避ける）。
--------------------------------------------------------- */

.k6-bar {
  --k6-bar-gap: 24px;
  --k6-bar-safe: env(safe-area-inset-bottom, 0px);

  position: fixed;
  right: 0;
  bottom: calc(var(--k6-bar-gap) + var(--k6-bar-safe));
  left: 0;
  z-index: 1901;

  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  padding: 5px 6px;

  border: 1px solid #dbe3ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.16);

  font-size: 13px;
  line-height: 1;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    bottom 0.18s ease;
}

/* 広告が出ているときはその上へ退避。safe-area は広告側が持っている */
body.k6-has-overlay-ad .k6-bar {
  --k6-bar-safe: 0px;
  bottom: calc(
    var(--k6-overlay-ad-height, 82px) + var(--k6-bar-gap)
  );
}

.k6-bar.is-hidden {
  transform: translateY(calc(100% + var(--k6-bar-gap) + 12px));
  opacity: 0;
  pointer-events: none;
}

/* バーを出す間は既存のフロートボタンを隠す */
body.k6-bar-on .mm-float {
  display: none;
}

/* PC・印刷では不要（PCは .mm-subnav が追従している） */
@media print, (min-width: 768px) {
  .k6-bar {
    display: none !important;
  }

  body.k6-bar-on .mm-float {
    display: flex;
  }
}

.k6-bar__btn {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.k6-bar__btn:active {
  background: #f1f5f9;
}

.k6-bar__btn i {
  font-size: 14px;
}

.k6-bar__btn--primary {
  border-color: var(--teal-700, #0f766e);
  background: var(--teal-700, #0f766e);
  color: #fff;
}

.k6-bar__btn--primary:active {
  background: #0b5d57;
}

/*
 * 現在セクション名。
 * タップできないテキストなので、広告の閉じるボタン側へ寄せても
 * 誤クリックの原因にならない。
 */
.k6-bar__now {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 6px;
  overflow: hidden;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .k6-bar {
    transition: none;
  }
}

/* ---------------------------------------------------------
   4. 打ち方の停止形カードを横スワイプ

   既存指定はスマホで1列縦積みになり、3枚で縦に長くなる。
   1.15枚見せの横スワイプにして「続きがある」ことを見せる。
--------------------------------------------------------- */

@media (max-width: 767px) {
  .mm-hitikata .mm-step-swipe {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    margin-inline: -2px !important;
    padding: 0 2px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #eef2f6;
  }

  .mm-hitikata .mm-step-swipe::-webkit-scrollbar {
    height: 6px;
  }

  .mm-hitikata .mm-step-swipe::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #eef2f6;
  }

  .mm-hitikata .mm-step-swipe::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94a3b8;
  }

  .mm-hitikata .mm-step-swipe > .mm-stepcard {
    flex: 0 0 min(80vw, 262px) !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  /* 横並びでは画像を枠幅に合わせる */
  .mm-hitikata .mm-step-swipe .mm-stepcard__ph {
    max-width: 100% !important;
    height: 140px !important;
    margin: 0 0 9px !important;
  }
}

/* ---------------------------------------------------------
   5. #spec の位置依存指定を無効化

   既存CSSに
     #spec > div:nth-of-type(2) img { max-height:210px }
     #spec > div:nth-of-type(3) table { max-width:560px; margin:0 auto }
   があり、#spec の中身を並べ替えると意図しない要素へ当たる。
   詳細スペック側では明示的に打ち消す。
--------------------------------------------------------- */

#spec > .mm-payout-card img {
  max-height: 21px !important;
}

#spec > .mm-card:not(.mm-payout-card) table {
  max-width: 100% !important;
  margin: 0 !important;
}

/* ---------------------------------------------------------
   6. 1列目が短い表を詰める（.mm-table--tight）

   ▼ 横スクロールが出ていた原因は2つ
   (a) 既存CSS  .analysis-table tbody th:first-child { width:38%; min-width:96px }
       「設定」「S」「3,000G」のような短い値に対して列が広すぎる。
   (b) 表拡張JS が --mm-table-min-width（既定720px）を入れており、
       本文幅より広い最小幅が確保されて必ずスクロールになる。

   両方を打ち消し、1列目だけ内容に合わせた幅へ固定する。
   幅はHTML側でインラインに --k6-first-col を指定して調整する。
     <div class="table-scroll mm-table--tight" style="--k6-first-col: 3.4em">
--------------------------------------------------------- */

.table-scroll.mm-table--tight,
.table-scroll.mm-table--tight.mm-table-ready {
  overflow: visible !important;
}

.table-scroll.mm-table--tight .table-scroll__viewport {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

/* (b) の最小幅を解除し、本文幅に収める */
.table-scroll.mm-table--tight .analysis-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

/* (a) の 38% / min-width:96px を解除して内容幅へ */
.table-scroll.mm-table--tight .analysis-table tr > :first-child,
.table-scroll.mm-table--tight .analysis-table tbody th:first-child,
.table-scroll.mm-table--tight .analysis-table col:first-child {
  width: var(--k6-first-col, 4.5em) !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-right: 6px !important;
  padding-left: 6px !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* 空いた幅を数値側へ回す。数値は中央寄せで桁を揃える */
.table-scroll.mm-table--tight .analysis-table thead th,
.table-scroll.mm-table--tight .analysis-table tbody td {
  padding-right: 8px !important;
  padding-left: 8px !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.table-scroll.mm-table--tight .analysis-table .font-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 収まるのでスクロール案内は出さない */
.table-scroll.mm-table--tight .table-scroll__guide,
.table-scroll.mm-table--tight .table-scroll__arrow {
  display: none !important;
}

/* 6列のまいる帯だけは収まりきらないため案内を残す */
.table-scroll.mm-table--tight.mm-table--matrix .analysis-table {
  table-layout: auto !important;
}

.table-scroll.mm-table--tight.mm-table--matrix .table-scroll__guide {
  display: flex !important;
}

@media (max-width: 767px) {
  .table-scroll.mm-table--tight .analysis-table thead th,
  .table-scroll.mm-table--tight .analysis-table tbody th,
  .table-scroll.mm-table--tight .analysis-table tbody td {
    padding-right: 5px !important;
    padding-left: 5px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 380px) {
  .table-scroll.mm-table--tight .analysis-table thead th,
  .table-scroll.mm-table--tight .analysis-table tbody th,
  .table-scroll.mm-table--tight .analysis-table tbody td {
    padding-right: 3px !important;
    padding-left: 3px !important;
    font-size: 10.5px !important;
  }
}

/* ---------------------------------------------------------
   7. ページメニュー（.mm-toc-drawer）の表示崩れ

   ドロワーは静的目次のHTMLを流用しているため、
   目次へ足した .mm-toc__value（数値）がそのまま入り込み、
   flex の中で 100% 幅を取って見出しが縦1文字ずつに潰れていた。

   ・.mm-toc__value の 100% 指定は静的目次だけに限定する
   ・ドロワー内では数値を出さない（一覧の可読性を優先）
--------------------------------------------------------- */

.mm-toc-drawer .mm-toc__value,
.mm-toc-drawer__toc-link .mm-toc__value {
  display: none !important;
}

.mm-toc-drawer__toc-link {
  flex-wrap: nowrap !important;
  white-space: normal !important;
}


/* =========================================================
   v48.11.4 設定比較表：左端「設定」列の余白を最小化
   ---------------------------------------------------------
   ・2〜4列：画面内に収める
   ・5〜6列：設定列だけ細く固定して横スクロール
   ・既存の mm-table--tight / 4列以上ルールより後で上書き
========================================================= */

body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison
.table-scroll__viewport {
  width: 100% !important;
  max-width: 100% !important;
}

/* 2〜4列は横スクロールさせず本文幅へ収める */
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison.mm-table--setting-fit
.table-scroll__viewport {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison.mm-table--setting-fit
.analysis-table--setting-comparison {
  display: table !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

/* 5〜6列だけ横スクロール */
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison.mm-table--setting-scroll
.table-scroll__viewport {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison.mm-table--setting-scroll
.analysis-table--setting-comparison {
  display: table !important;
  width: 100% !important;
  min-width: var(
    --k6-setting-table-min-width,
    760px
  ) !important;
  max-width: none !important;
  table-layout: fixed !important;
}

/*
 * 最重要：
 * 「設定」列は割合ではなく実寸で固定する。
 * 旧38%・140px・24%・14%指定をすべて上書きする。
 */
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison
.analysis-table--setting-comparison
col:first-child,
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison
.analysis-table--setting-comparison
tr > :first-child,
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison
.analysis-table--setting-comparison
tbody th:first-child {
  width: var(
    --k6-setting-first-col,
    58px
  ) !important;
  min-width: var(
    --k6-setting-first-col,
    58px
  ) !important;
  max-width: var(
    --k6-setting-first-col,
    58px
  ) !important;
  padding-right: 6px !important;
  padding-left: 6px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  vertical-align: middle !important;
}

/* 残りの列は空いた幅を均等利用 */
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison
.analysis-table--setting-comparison
th:not(:first-child),
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison
.analysis-table--setting-comparison
td:not(:first-child) {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-right: 9px !important;
  padding-left: 9px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* 数字は1/398.8などの途中で折らない */
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison
.analysis-table--setting-comparison
.font-num {
  white-space: nowrap !important;
}

/* 2〜4列は案内チップ不要 */
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison.mm-table--setting-fit
.table-scroll__guide,
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison.mm-table--setting-fit
.table-scroll__arrow {
  display: none !important;
}

/* 5〜6列は実際にスクロールするときだけ案内 */
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison.mm-table--setting-scroll.is-scrollable
.table-scroll__guide {
  display: flex !important;
}

/* 列数別の設定列幅 */
body .mm-app .mm-article
.table-scroll.mm-table--setting-2-column {
  --k6-setting-first-col: 72px;
}

body .mm-app .mm-article
.table-scroll.mm-table--setting-3-column {
  --k6-setting-first-col: 64px;
}

body .mm-app .mm-article
:is(
  .table-scroll.mm-table--setting-4-column,
  .table-scroll.mm-table--setting-5-column,
  .table-scroll.mm-table--setting-6-column
) {
  --k6-setting-first-col: 58px;
}

/*
 * 現行4列表
 * 設定 / CZ初当り / AT初当り / 出玉率
 * はPC・SPとも画面内に収める。
 */
body .mm-app .mm-article
.table-scroll.mm-table--setting-4-column
.analysis-table--setting-comparison {
  min-width: 0 !important;
  table-layout: fixed !important;
}

/* 既存mm-table--tightが併記されてもこちらを優先 */
body .mm-app .mm-article
.table-scroll.mm-table--setting-comparison.mm-table--tight
.analysis-table--setting-comparison
tr > :first-child {
  width: var(
    --k6-setting-first-col,
    58px
  ) !important;
  min-width: var(
    --k6-setting-first-col,
    58px
  ) !important;
  max-width: var(
    --k6-setting-first-col,
    58px
  ) !important;
}

@media (max-width: 767px) {
  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison {
    --k6-setting-first-col: 54px;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--setting-2-column {
    --k6-setting-first-col: 62px;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--setting-3-column {
    --k6-setting-first-col: 56px;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  th,
  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  tr > :first-child {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  th:not(:first-child),
  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  td:not(:first-child) {
    padding-right: 5px !important;
    padding-left: 5px !important;
  }
}

@media (max-width: 380px) {
  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison {
    --k6-setting-first-col: 50px;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--setting-2-column {
    --k6-setting-first-col: 58px;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  th,
  body .mm-app .mm-article
  .table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  td {
    font-size: 10.5px !important;
  }
}


/* =========================================================
   v48.11.5 優先度ガイド型3列表をコンパクト化
   ---------------------------------------------------------
   対象：
   優先 / 数える対象 / 注意
   重要度 / 項目 / 理由
   ランク / 対象 / 補足
   順位 / 対象 / 注意

   左端のS/A/B/C等へ無駄な幅を与えず、
   右の説明列へ幅を回す。
========================================================= */

body .mm-app .mm-article
.table-scroll.mm-table--priority-guide,
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide.mm-table-ready {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.table-scroll__viewport {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide {
  display: table !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

/* 1列目：S/A/B/Cなど。割合指定を全解除して実寸化 */
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
col:first-child,
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
tr > :first-child,
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
tbody th:first-child {
  width: var(--k6-priority-first-col, 64px) !important;
  min-width: var(--k6-priority-first-col, 64px) !important;
  max-width: var(--k6-priority-first-col, 64px) !important;
  padding-right: 7px !important;
  padding-left: 7px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  vertical-align: middle !important;
}

/* 2列目：数える対象。必要量だけ確保 */
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
col:nth-child(2),
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
tr > :nth-child(2) {
  width: var(--k6-priority-second-col, 180px) !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* 3列目：注意・理由。残り幅をすべて使う */
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
col:nth-child(3),
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
tr > :nth-child(3) {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* ヘッダーは中央、本文は2・3列を左揃え */
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
thead th {
  text-align: center !important;
  vertical-align: middle !important;
}

body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
tbody tr > :nth-child(2),
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.analysis-table--priority-guide
tbody tr > :nth-child(3) {
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  vertical-align: middle !important;
}

/* 一般3列表の横スクロール案内は出さない */
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.table-scroll__guide,
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide
.table-scroll__arrow {
  display: none !important;
}

/* mm-table--tightが併記されても優先度表の幅を優先 */
body .mm-app .mm-article
.table-scroll.mm-table--priority-guide.mm-table--tight
.analysis-table--priority-guide
tr > :first-child {
  width: var(--k6-priority-first-col, 64px) !important;
  min-width: var(--k6-priority-first-col, 64px) !important;
  max-width: var(--k6-priority-first-col, 64px) !important;
}

@media (max-width: 767px) {
  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide {
    --k6-priority-first-col: 52px;
    --k6-priority-second-col: 132px;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide
  .analysis-table--priority-guide
  th,
  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide
  .analysis-table--priority-guide
  td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide
  .analysis-table--priority-guide
  tr > :first-child {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide
  .analysis-table--priority-guide
  tr > :nth-child(2),
  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide
  .analysis-table--priority-guide
  tr > :nth-child(3) {
    padding-right: 7px !important;
    padding-left: 7px !important;
  }
}

@media (max-width: 380px) {
  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide {
    --k6-priority-first-col: 48px;
    --k6-priority-second-col: 118px;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide
  .analysis-table--priority-guide
  th,
  body .mm-app .mm-article
  .table-scroll.mm-table--priority-guide
  .analysis-table--priority-guide
  td {
    font-size: 10.5px !important;
  }
}

/* ==========================================================
   V50.1 公開レイアウト
========================================================== */

.k6-situation-guide{
  margin:22px 0;
  padding:18px;
  border:1px solid #dbe5e7;
  border-radius:14px;
  background:#f8fbfb;
  box-sizing:border-box;
}
.k6-situation-guide__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid #dbe5e7;
}
.k6-situation-guide__badge{
  display:inline-block;
  margin-bottom:6px;
  color:#0f766e;
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
}
.k6-situation-guide h2{
  margin:0;
  color:#0f172a;
  font-size:20px;
  line-height:1.4;
  font-weight:900;
}
.k6-situation-guide__lead{
  max-width:390px;
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.7;
  text-align:left;
}
.k6-situation-guide__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.k6-situation-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:142px;
  padding:14px 40px 14px 15px;
  border:1px solid #d7e1e5;
  border-left:4px solid #14b8a6;
  border-radius:10px;
  background:#fff;
  color:#0f172a;
  text-decoration:none !important;
  box-sizing:border-box;
}
.k6-situation-card__label{
  margin-bottom:5px;
  color:#0f766e;
  font-size:11px;
  line-height:1.4;
  font-weight:900;
}
.k6-situation-card__answer{
  display:block;
  margin-bottom:7px;
  color:#0f172a;
  font-size:14px;
  line-height:1.55;
  font-weight:900;
}
.k6-situation-card__desc{
  display:block;
  color:#475569;
  font-size:12px;
  line-height:1.65;
}
.k6-situation-card__link{
  display:block;
  margin-top:auto;
  padding-top:9px;
  color:#0f766e;
  font-size:11px;
  line-height:1.4;
  font-weight:900;
}
.k6-situation-card__link b{
  position:absolute;
  top:50%;
  right:14px;
  color:#94a3b8;
  font-size:20px;
  font-weight:400;
  transform:translateY(-50%);
}
.k6-detail-toc,
.k6-child-toc{
  margin:22px 0;
  overflow:hidden;
  border:1px solid #dbe3e8;
  border-radius:12px;
  background:#fff;
}
.k6-detail-toc .mm-toc__label,
.k6-child-toc .mm-toc__label{
  margin:0;
  padding:12px 14px 10px;
  border-bottom:1px solid #e2e8f0;
  color:#0f172a;
  font-size:14px;
  font-weight:900;
}
.k6-purpose-nav{
  margin:16px 0 18px !important;
  padding:12px !important;
  border:1px solid #cfe2e2 !important;
  border-radius:12px !important;
  background:#f3fbfa !important;
}
.k6-purpose-nav > .mm-card__h{
  position:relative;
  margin:0 0 10px !important;
  padding:2px 0 9px 22px !important;
  border-bottom:1px solid #d7e5e5 !important;
  color:#0f172a !important;
  font-size:13px !important;
  font-weight:900 !important;
}
.k6-purpose-nav > .mm-card__h::before{
  content:"●";
  position:absolute;
  left:2px;
  top:1px;
  color:#14b8a6;
  font-size:12px;
}
.k6-purpose-nav .mm-grid-2{gap:9px !important;}
.k6-purpose-nav .mm-info{
  position:relative;
  min-height:78px;
  padding:12px 32px 11px 12px !important;
  border:1px solid #d8e1e7 !important;
  border-left:3px solid #14b8a6 !important;
  border-radius:9px !important;
  background:#fff !important;
  box-shadow:none !important;
}
.k6-purpose-nav .mm-info::after{
  content:"›";
  position:absolute;
  top:50%;
  right:10px;
  color:#94a3b8;
  font-size:20px;
  line-height:1;
  transform:translateY(-50%);
}
.k6-purpose-nav .mm-info__h{
  margin:0 0 5px !important;
  padding:0 !important;
  border:0 !important;
  font-size:12px !important;
  line-height:1.5 !important;
}
.k6-purpose-nav .mm-info__h a{
  color:#0f172a !important;
  font-weight:900 !important;
  text-decoration:none !important;
}
.k6-purpose-nav .mm-small{
  margin:0 !important;
  color:#64748b !important;
  font-size:11px !important;
  line-height:1.55 !important;
}
.mm-faq{
  margin:22px 0 26px;
  overflow:hidden;
  border:1px solid #dbe3e8;
  border-radius:12px;
  background:#fff;
}
.mm-faq__item{
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#fff;
}
.mm-faq__item + .mm-faq__item{
  border-top:1px solid #e5eaf0 !important;
}
.mm-faq__q{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  min-height:52px;
  padding:12px 14px !important;
  color:#0f172a !important;
  font-size:13px !important;
  line-height:1.55 !important;
  font-weight:900 !important;
  text-align:left !important;
}
.mm-faq__q .mm-q{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  margin:0 !important;
  border-radius:50%;
  background:#14b8a6;
  color:#fff !important;
  font-size:10px;
  line-height:1;
  font-weight:900;
}
.mm-faq__a{
  margin:0 !important;
  padding:12px 14px 14px 48px !important;
  border-top:1px solid #eef2f5;
  color:#334155;
  font-size:12px;
  line-height:1.75;
  text-align:left !important;
}
.mm-faq__a .mm-a{display:none !important;}

@media (max-width:767px){
  .k6-situation-guide{padding:14px 12px;}
  .k6-situation-guide__head{display:block;}
  .k6-situation-guide__lead{margin-top:7px;max-width:none;}
  .k6-situation-guide__grid{grid-template-columns:1fr;}
  .k6-situation-card{min-height:0;}
  .k6-purpose-nav .mm-grid-2{grid-template-columns:1fr !important;}
  .mm-faq__q{padding:11px 12px !important;}
  .mm-faq__a{padding:11px 12px 13px 46px !important;}
}
