/* =========================================================
   ▼ オリジナルのblog-app.CSS（デザイン維持のため全て記述）
   ========================================================= */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0}
img,svg,video,canvas{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}
button{-webkit-tap-highlight-color:transparent}
a{color:inherit}
html{scrollbar-gutter:stable}
body{overflow-y:scroll}

:root{
  --bg:#f3f4f6;--text:#333;--white:#fff;--muted:#6b7280;
  --border:#e5e7eb;--border2:#e2e8f0;
  --teal:#14b8a6;--teal-700:#0f766e;--green:#16a34a;--red:#ef4444;
  --blue:#2563eb;--yellow:#eab308;--purple:#7c3aed;--pink:#ec4899;
  --shadow-sm:0 1px 2px rgba(0,0,0,.06);
  --shadow:0 6px 18px rgba(0,0,0,.08);
}

.mm-body{
  font-family:"Noto Sans JP",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);color:var(--text);
}
.mm-app{min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
.font-num{font-family:"Roboto",system-ui,sans-serif}
.hidden{display:none!important}
.rotate-180{transform:rotate(180deg)}
.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-fw-700{font-weight:700}
.mm-right{text-align:right}
.mm-center{text-align:center}
.mm-muted{color:var(--muted)}
.mm-txt-red{color:var(--red)}
.mm-txt-blue{color:var(--blue)}
.mm-txt-green{color:var(--green)}
.mm-txt-purple{color:var(--purple)}
.mm-txt-yellow{color:var(--yellow)}
.mm-txt-gray{color:#9ca3af}

.mm-container{width:100%;max-width:1200px;margin:0 auto;padding:0 16px}
.mm-main{padding:4px 0 24px;flex:1}
.mm-layout{padding:0 8px;display:flex;flex-direction:column;gap:16px}
.mm-content,.mm-sidebar{min-width:0}
@media(min-width:768px){.mm-main{padding-top:24px}.mm-layout{padding:0;gap:24px}}
@media(min-width:1024px){.mm-layout{flex-direction:row;align-items:flex-start}.mm-content{width:72%}.mm-sidebar{width:28%}}

.mm-card{
  background:var(--white);border:1px solid #d1d5db;border-radius:10px;
  padding:12px;box-shadow:var(--shadow-sm);margin-bottom:16px;
}
.mm-card__h{
  margin:0 0 12px;padding:0 0 8px;border-bottom:1px solid var(--border);
  font-weight:700;font-size:14px;color:#374151;
}
.mm-card--center{text-align:center}
.mm-pad-lg{padding:16px}
.mm-note{margin:8px 0 0;font-size:12px;color:var(--muted);text-align:right}
.mm-small{font-size:12px;color:#4b5563;line-height:1.6}
.mm-micro{font-size:10px;color:#9ca3af}
.mm-block{margin-bottom:24px}
.mm-block:last-child{margin-bottom:0}

.analysis-table{width:100%;border-collapse:collapse;background:#fff;font-size:.8rem;min-width:100%}
.analysis-table th{
  background:#f8fafc;color:#334155;font-weight:700;border:1px solid var(--border2);
  padding:8px 4px;white-space:nowrap;text-align:center;
}
.analysis-table td{border:1px solid var(--border2);padding:8px 4px;color:#334155}
.analysis-table tr:nth-child(even){background:#f8fafc}
.table-scroll{
  overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 12px;
  border:1px solid var(--border);border-radius:6px;max-width:100%;
}
.no-scrollbar::-webkit-scrollbar{display:none}
.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}

.section-title{
  margin:0 0 18px;padding-left:10px;border-left:5px solid #0d9488;
  font-size:1.1rem;font-weight:800;color:#1f2937;
}
.mm-section{margin-bottom:48px;scroll-margin-top:128px}

/* アコーディオン：JSでmax-heightを動的に入れる方式 */
.accordion-content{
  max-height:0;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  transition:max-height .35s ease, opacity .2s ease;
}

.accordion-content.open{
  opacity:1;
  visibility:visible;
}

/* 開いたときに中身が詰まって見える用（必要なら） */
.accordion-content .mm-small,
.accordion-content p,
.accordion-content ul,
.accordion-content ol{
  margin-top:0;
}

/*
 * 開いた高さは max-height に scrollHeight を入れて作るが、
 * scrollHeight には最後の子要素の下マージンが含まれない。
 * そのままだと下マージンが切り捨てられ、
 * 開いた直後だけカード下端が詰まって見える。
 */
.accordion-content > :last-child{
  margin-bottom:0;
}

.accordion-toggle i{transition:transform .3s}
.accordion-toggle.active i{transform:rotate(180deg)}
.mm-acc-btn.active{background:#ecfeff}
.mm-acc-btn--purple.active{background:#f5f3ff}
.mm-acc-btn--pink.active{background:#fdf2f8}
.mm-acc-btn--green.active{background:#f0fdf4}
.mm-grid-2{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:16px}
@media(min-width:768px){.mm-grid-2{grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px}}
.mm-grid-3{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:768px){.mm-grid-3{grid-template-columns:repeat(3,1fr);gap:16px}}
.mm-grid-5{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:768px){.mm-grid-5{grid-template-columns:repeat(5,1fr);gap:16px}}

.mm-ph{background:#f3f4f6;border:1px solid #d1d5db;border-radius:10px}
.mm-ph--tall{aspect-ratio:1/2;max-width:200px;margin:0 auto}
.mm-ph--reel{aspect-ratio:3/4;max-width:250px;margin:0 auto}
.mm-ph--payout{aspect-ratio:4/1;border-radius:8px}

.mm-header-mobile{background:#fff;box-shadow:var(--shadow-sm);z-index:50}
.mm-header-mobile__logo{
  padding:12px 0;border-bottom:1px solid var(--border);
  display:flex;justify-content:center;
}
.mm-logo{height:32px;width:auto;display:block}
.mm-logo-link{display:inline-block;text-decoration:none;transition:opacity .2s}
.mm-logo-link:hover{opacity:.85}


.mm-header-mobile__search{padding:10px 12px;border-bottom:1px solid #f3f4f6}
.mm-search{position:relative}
.mm-search__icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9ca3af;font-size:14px}
.mm-search__input{
  width:100%;padding:10px 12px 10px 34px;border-radius:999px;
  border:1px solid #d1d5db;background:#f3f4f6;outline:none;font-size:14px;
}
.mm-search__input:focus{border-color:var(--teal);background:#fff}

.mm-header-mobile__navgrid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1px;background:#e5e7eb;border-bottom:1px solid #e5e7eb;
}
.mm-navgrid__item{
  background:#fff;padding:12px 8px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:6px;
  text-decoration:none;color:#4b5563;font-weight:900;font-size:10px;
}
.mm-navgrid__item:hover{background:#f9fafb}
.mm-navgrid__item i{font-size:18px}
.mm-navgrid__item:nth-child(1) i{color:var(--teal)}
.mm-navgrid__item:nth-child(2) i{color:var(--purple)}
.mm-navgrid__item:nth-child(3) i{color:#f97316}
.mm-navgrid__item:nth-child(4) i{color:var(--pink)}
.mm-navgrid__item:nth-child(5) i{color:var(--green)}
.mm-navgrid__item:nth-child(6) i{color:var(--blue)}

.mm-header-top{
    background:#222;
    border-top:2px solid #14b8a6;
    border-bottom:1px solid #333;
}

.mm-header-top__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 16px;
}

.mm-header-top__links{
  display:flex;
  gap:24px;
  font-size:12px;
  font-weight:900;
  color:#fff;
}

.mm-header-top__link{
  text-decoration:none;
  color:#fff;
}

.mm-header-top__link:hover{
  color:var(--teal);
}
.mm-header-top__link i{margin-right:6px}

.mm-hero {
  position: relative;
  z-index: 20;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, .22);
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
}

.mm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mm-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(.96) contrast(1.03);
  transform: scale(1.01);
}

.mm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(8, 15, 28, .92) 0%,
      rgba(8, 15, 28, .78) 34%,
      rgba(8, 15, 28, .45) 67%,
      rgba(8, 15, 28, .18) 100%
    ),
    linear-gradient(
      0deg,
      rgba(8, 15, 28, .72) 0%,
      rgba(8, 15, 28, .06) 58%
    );
}

.mm-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 210px;
  align-items: flex-end;
  padding-top: 24px;
  padding-bottom: 24px;
}

.mm-hero__left {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(820px, 100%);
  min-width: 0;
}

.mm-hero__icon {
  display: flex;
  width: 96px;
  height: 138px;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
}

.mm-machine-icon {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 11px;
  background: rgba(255, 255, 255, .92);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .30),
    0 0 0 1px rgba(15, 23, 42, .14);
}

.mm-machine-icon__img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.mm-machine-icon--ph {
  flex-direction: column;
  gap: 7px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.mm-machine-icon--ph i {
  color: #94a3b8;
  font-size: 24px;
}

.mm-hero__text {
  min-width: 0;
  padding-bottom: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .34);
}

.mm-hero__eyebrow {
  margin: 0 0 7px;
  color: #5eead4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.mm-hero__title {
  display: -webkit-box;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -.018em;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mm-hero__maker {
  margin: 8px 0 0;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.mm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.mm-hero__meta-item {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  background: rgba(15, 23, 42, .58);
  color: #f8fafc;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: none;
}

.mm-hero__meta-item i {
  color: #5eead4;
  font-size: 10px;
}

/*
 * 機種タイトル・更新日はヒーローへ統合済み。
 * 本文カードは解析内容から開始する。
 */
.mm-article--machine-content {
  padding-top: 18px;
}

@media (max-width: 767px) {
  .mm-hero {
    min-height: 184px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .10);
  }

  .mm-hero__bg img {
    object-position: center;
  }

  .mm-hero__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(8, 15, 28, .90) 0%,
        rgba(8, 15, 28, .68) 52%,
        rgba(8, 15, 28, .27) 100%
      ),
      linear-gradient(
        0deg,
        rgba(8, 15, 28, .82) 0%,
        rgba(8, 15, 28, .10) 68%
      );
  }

  .mm-hero__inner {
    min-height: 184px;
    padding: 16px 12px;
  }

  .mm-hero__left {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .mm-hero__icon {
    width: 68px;
    height: 100px;
    align-self: center;
    border-radius: 11px;
    transform: translateY(-3px);
  }

  .mm-machine-icon {
    padding: 2px;
    border-radius: 9px;
  }

  .mm-machine-icon__img {
    border-radius: 7px;
  }

  .mm-hero__eyebrow {
    margin-bottom: 5px;
    font-size: 8px;
    letter-spacing: .11em;
  }

  .mm-hero__title {
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.32;
  }

  .mm-hero__maker {
    margin-top: 5px;
    font-size: 10px;
  }

  .mm-hero__meta {
    gap: 5px;
    margin-top: 9px;
  }

  .mm-hero__meta-item {
    min-height: 24px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 8px;
  }

  .mm-hero__meta-item i {
    font-size: 8px;
  }

  .mm-article--machine-content {
    padding-top: 12px;
  }
}

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

  .mm-hero__icon {
    width: 60px;
    height: 90px;
    transform: translateY(-2px);
  }

  .mm-hero__meta-item {
    padding-right: 6px;
    padding-left: 6px;
  }
}

.mm-subnav{
  display:none;background:#fff;border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:30;box-shadow:var(--shadow-sm);
}
.mm-subnav__inner{display:flex;justify-content:space-between;align-items:center;gap:12px}
.mm-subnav__nav{display:flex;overflow-x:auto;white-space:nowrap;font-weight:900;color:#4b5563}
.mm-subnav__item{
  display:inline-flex;align-items:center;gap:6px;padding:12px 16px;
  text-decoration:none;color:#4b5563;border-bottom:2px solid transparent;
}
.mm-subnav__item:hover{color:var(--teal);background:#f9fafb}
.mm-subnav__search{flex:0 0 auto;padding:0 8px}
.mm-search--small .mm-search__input{padding:7px 10px 7px 30px;font-size:12px;width:190px;background:#f3f4f6}
@media(min-width:768px){
  .mm-header-mobile,
  .mm-header-mobile__logo,
  .mm-header-mobile__search,
  .mm-header-mobile__navgrid{
    display:none !important;
  }

  .mm-header-top,
  .mm-hero,
  .mm-subnav{
    display:block !important;
  }
}

.mm-breadcrumb{background:#f8f9fa;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted)}
.mm-breadcrumb__inner{padding:8px 16px;overflow-x:auto;white-space:nowrap}
.mm-breadcrumb__list{display:flex;align-items:center;gap:8px;list-style:none;padding:0;margin:0}
.mm-breadcrumb__link{text-decoration:none;color:var(--teal-700)}
.mm-breadcrumb__link:hover{text-decoration:underline}
.mm-breadcrumb__sep i{font-size:10px;color:#9ca3af}
.mm-breadcrumb__current{font-weight:700}

.mm-article{
  background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-sm);
  padding:12px;
}
@media(max-width:767px){
  .mm-article{border-radius:0;border-left:none;border-right:none;border-top:none}
}
@media(min-width:768px){.mm-article{padding:24px}}

.mm-article__title-pc{display:none}
.mm-article__title-sp{display:block;margin:0 0 12px;padding:0 4px}
@media(min-width:768px){.mm-article__title-pc{display:block}.mm-article__title-sp{display:none}}

.mm-article__h1{margin:0 0 10px;font-size:30px;font-weight:900;color:#111827;line-height:1.25}
.mm-article__meta{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;font-size:12px;color:var(--muted);margin-bottom:16px}
.mm-article__h1--sp{margin:0 0 8px;font-size:18px;font-weight:900;color:#111827;line-height:1.35}
.mm-article__meta-sp{
  display:flex;justify-content:space-between;align-items:center;
  border-bottom:1px solid #f3f4f6;padding-bottom:8px;font-size:12px;color:var(--muted);
}
.mm-meta-link{
  color:var(--teal-700);text-decoration:none;font-weight:900;
  background:#ecfeff;border:1px solid #99f6e4;padding:2px 10px;border-radius:999px;
}

.mm-pill{
  display:inline-flex;align-items:center;gap:8px;
  background:#ecfeff;border:1px solid #99f6e4;color:var(--teal-700);
  font-weight:900;padding:6px 12px;border-radius:999px;text-decoration:none;
}
.mm-pill:hover{background:#d9f99d1f}
.mm-pill__sep{border-left:1px solid #5eead4;padding-left:8px}

.mm-visual{
  border:1px solid var(--border);border-radius:10px;
  background:linear-gradient(135deg,#111827,#374151);
  aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;
  overflow:hidden;box-shadow:var(--shadow-sm);margin:12px 0 18px;
}
@media(min-width:768px){.mm-visual{aspect-ratio:2.35/1;box-shadow:var(--shadow)}}
.mm-visual__center{text-align:center;color:#9ca3af}
.mm-visual__center i{font-size:56px;opacity:.5;display:block;margin-bottom:6px}
.mm-visual__center span{font-size:14px;font-weight:900;color:#d1d5db}

.mm-points{
  background:#fef2f2;border-left:4px solid var(--red);
  border-radius:0 10px 10px 0;padding:12px;box-shadow:var(--shadow-sm);
  margin:0 4px 18px;
}
@media(min-width:768px){.mm-points{margin:0 0 18px;padding:16px}}
.mm-points__title{
  margin:0 0 10px;color:#b91c1c;font-weight:900;font-size:14px;
  display:flex;align-items:center;gap:8px;
}
.mm-points__list{margin:0;padding-left:18px;font-size:13px;color:#111827;line-height:1.7}
.mm-points__list li::marker{color:#fca5a5}


.game-flow{display:flex;flex-direction:column;align-items:center;padding:16px;background:#fff;border:1px solid var(--border2);border-radius:10px}
.mm-flowimg{
  width:100%;max-width:720px;aspect-ratio:4/3;background:#f3f4f6;border:2px dashed #d1d5db;border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9ca3af;gap:6px;
}
.mm-flowimg i{font-size:32px}
.mm-flowimg__title{font-weight:900;color:var(--muted)}
.mm-flowimg__sub{font-size:12px}

/* =========================================================
   公式PV・YouTube埋め込み
   ========================================================= */

.mm-video{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  margin:0 0 18px;
  overflow:hidden;
  border:2px solid #1f2937;
  border-radius:12px;
  background:#000;
  box-shadow:var(--shadow-sm);
}

/* YouTubeを枠いっぱいに表示 */
.mm-video iframe{
  position:absolute;
  inset:0;
  display:block;
  width:100% !important;
  height:100% !important;
  margin:0;
  padding:0;
  border:0;
}

/* 旧サムネイル表示にも対応 */
.mm-video img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.6;
  transition:opacity .25s;
}

.mm-video:hover img{
  opacity:.7;
}

.mm-video__yt{
  position:absolute;
  top:50%;
  left:50%;
  color:#dc2626;
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-size:64px;
  box-shadow:var(--shadow);
  transform:translate(-50%,-50%);
}

.mm-video__cap{
  position:absolute;
  right:12px;
  bottom:10px;
  color:#d1d5db;
  font-size:12px;
  font-weight:900;
}

.mm-subhead{
  margin:0 0 12px;font-weight:900;color:#111827;font-size:16px;
  padding-left:12px;border-left:4px solid var(--teal);
}
.mm-subhead--red{border-left-color:var(--red)}
.mm-subhead--yellow{border-left-color:var(--yellow)}
.mm-subhead--green{border-left-color:#22c55e}

/*
 * margin-top:0 のままだと、直前のカード・アコーディオン・本文と
 * くっついて見える。各ブロック先頭の小見出しだけは従来どおり詰める。
 * 隣接マージンは相殺されるため、実際の間隔はこの値になる。
 */
.mm-subhead:not(:first-child){
  margin-top:28px;
}

/*
 * 小見出しが無名divの先頭に置かれ、そのdiv自体に前の兄弟がある形。
 * 打ち方アコーディオンを開いたときに直前のカード群と密着する。
 */
.accordion-content > * + * .mm-subhead:first-child,
.mm-card > * + * .mm-subhead:first-child{
  margin-top:28px;
}

.mm-ddt{
  display:flex;flex-direction:column;gap:12px;background:#f9fafb;border:1px solid #f3f4f6;border-radius:12px;
  padding:16px;margin:0 0 16px;
}
@media(min-width:768px){.mm-ddt{flex-direction:row;align-items:center;gap:18px}}
.mm-ddt__img{width:150px;max-width:150px;aspect-ratio:1/1;background:#fff;border:1px solid #d1d5db;border-radius:10px;box-shadow:var(--shadow-sm)}
@media(max-width:767px){.mm-ddt__img{width:100%;max-width:150px;margin:0 auto}}
.mm-ddt__txt{min-width:0;flex:1}
.mm-ddt__lead{margin:0 0 8px;font-weight:900;font-size:18px;display:flex;align-items:center;gap:10px}
@media(max-width:767px){.mm-ddt__lead{font-size:16px}}
.mm-ddt__desc{margin:0;font-size:13px;color:#4b5563;line-height:1.7}

.mm-badge{display:inline-block;background:#111827;color:#fff;font-weight:900;font-size:12px;padding:4px 10px;border-radius:8px}
.mm-badge--red{background:var(--red)}

.mm-stepcard{
  background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;min-height:100%;transition:box-shadow .2s;
}
.mm-stepcard:hover{box-shadow:var(--shadow)}
.mm-stepcard__ph{aspect-ratio:1/1;border-radius:10px;background:#f3f4f6;border:1px solid var(--border);margin:0 0 10px}
.mm-stepcard__h{margin:0 0 8px;font-size:13px;font-weight:900;color:#111827;border-bottom:1px solid #f3f4f6;padding:0 0 8px}
.mm-stepcard__p{margin:0 0 10px;font-size:12px;color:#4b5563;line-height:1.6}
.mm-chip{
  display:block;font-size:10px;font-weight:900;color:var(--muted);background:#f3f4f6;border-radius:8px;padding:6px 10px;
  text-align:center;margin-top:auto;
}
.mm-chip--red{background:#fee2e2;color:#dc2626}
.mm-chip--green{background:#dcfce7;color:#16a34a}

.mm-howcard{
  position:relative;background:#fff;border:2px solid var(--border);border-radius:12px;padding:14px;box-shadow:var(--shadow-sm);text-align:center;
}
.mm-howcard--important{border-color:#fee2e2}
.mm-important{
  position:absolute;top:-10px;left:50%;transform:translateX(-50%);
  background:var(--red);color:#fff;font-size:10px;font-weight:900;padding:4px 10px;border-radius:999px;box-shadow:var(--shadow-sm);
}
.mm-howcard__top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px}
.mm-howcard__top p{margin:0;font-weight:900;color:#111827;font-size:13px}
.mm-pillstep{font-size:12px;font-weight:900;color:#fff;padding:6px 12px;border-radius:999px}
.mm-pillstep--dark{background:#111827}
.mm-pillstep--red{background:#dc2626}
.mm-pillstep--blue{background:#2563eb}
.mm-pillstep--green{background:#16a34a}
.mm-howcard__ph{background:#f3f4f6;border:1px solid #d1d5db;border-radius:10px;aspect-ratio:16/9;margin:0 0 10px}
.mm-howcard__txt{
  margin:0;text-align:left;font-size:13px;color:#374151;line-height:1.6;
  background:#f9fafb;border-radius:10px;padding:10px;
}
.mm-howcard--important .mm-howcard__txt{background:#fef2f2}

.mm-acc-head{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #f3f4f6;padding:0 0 10px;margin:0 0 10px}
.mm-acc-title{margin:0;font-size:13px;font-weight:900;color:#111827;padding-left:10px;border-left:4px solid var(--teal)}
.mm-acc-title--purple{border-left-color:var(--purple)}
.mm-acc-title--pink{border-left-color:var(--pink)}
.mm-acc-title--green{border-left-color:#22c55e}
.mm-acc-btn{
  font-size:12px;font-weight:900;border:1px solid var(--teal);background:#fff;
  color:var(--teal-700);padding:6px 12px;border-radius:999px;cursor:pointer;
}
.mm-acc-btn:hover{background:#ecfeff}
.mm-acc-btn--purple{color:var(--purple);border-color:var(--purple)}
.mm-acc-btn--purple:hover{background:#f5f3ff}
.mm-acc-btn--pink{color:var(--pink);border-color:var(--pink)}
.mm-acc-btn--pink:hover{background:#fdf2f8}
.mm-acc-btn--green{color:var(--green);border-color:var(--green)}
.mm-acc-btn--green:hover{background:#f0fdf4}

.mm-tip{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:10px 12px;font-size:12px;color:#92400e;margin:10px 0 8px}
.mm-tip i{margin-right:6px}

.mm-panel{background:#f9fafb;border:1px solid #f3f4f6;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:14px}
.mm-panel__h{margin:0 0 8px;font-weight:900;color:#6d28d9;border-bottom:1px solid #ede9fe;padding:0 0 6px}
.mm-stage{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;color:#374151;font-size:12px}
.mm-tag{display:inline-block;font-size:10px;font-weight:900;background:#e5e7eb;color:#374151;padding:2px 8px;border-radius:6px;margin-right:8px}
.mm-tag--y{background:#fef9c3;color:#92400e}
.mm-tag--r{background:#fee2e2;color:#dc2626}

.mm-info{background:#f9fafb;border:1px solid var(--border);border-radius:12px;padding:14px}
.mm-info__h{margin:0 0 8px;font-weight:900;font-size:13px;color:#4b5563;border-bottom:1px solid #d1d5db;padding:0 0 6px}
.mm-info__big{margin:10px 0 0;font-size:26px;font-weight:900;color:#111827}
.mm-info__big span{font-size:14px;font-weight:400;color:var(--muted)}
.mm-info__row{display:flex;align-items:center;gap:10px;margin-top:10px}
.mm-info__row p{margin:0;font-size:12px;font-weight:900;color:#374151}
.mm-info__mid{margin:10px 0 6px;font-size:18px;font-weight:900}

.mm-tool{border-radius:12px;overflow:hidden;box-shadow:var(--shadow);background:#111827;color:#fff}
.mm-tool__head{background:#0b1220;padding:16px;border-bottom:1px solid #374151;display:flex;justify-content:space-between;align-items:center}
.mm-tool__head h3{margin:0;font-size:16px;font-weight:900}
.mm-tool__head span{font-size:12px;color:#9ca3af;font-weight:900}
.mm-tool__body{padding:16px}
.mm-tool__row{display:flex;gap:16px;margin:0 0 14px}
@media(max-width:767px){.mm-tool__row{flex-direction:column}}
.mm-field{flex:1}
.mm-field label{display:block;font-size:12px;font-weight:900;color:#d1d5db;margin:0 0 8px}
.mm-field input{
  width:100%;padding:12px;border-radius:10px;border:none;outline:none;
  font-weight:900;color:#111827;background:#f3f4f6;
}
.mm-field input:focus{box-shadow:0 0 0 3px rgba(20,184,166,.35);background:#fff}
.mm-btn{
  width:100%;border:none;cursor:pointer;border-radius:12px;padding:14px 16px;background:var(--teal);color:#fff;
  font-weight:900;box-shadow:var(--shadow);transition:transform .12s,background .12s;
}
.mm-btn:hover{background:#2dd4bf;transform:scale(1.01)}
.mm-result{margin-top:14px;background:#374151;border:1px solid #4b5563;border-radius:12px;padding:14px;text-align:center}
.mm-result__cap{margin:0 0 6px;color:#d1d5db;font-size:12px;font-weight:900}
.mm-result__big{margin:0;font-size:28px;font-weight:900}
.mm-result__verdict{margin:0;font-size:16px;font-weight:900;color:#fde047}
.mm-divider{height:1px;background:#4b5563;margin:10px 0}

.mm-colorcard{text-align:center}
.mm-color{
  border-radius:12px;border:2px solid var(--border);aspect-ratio:16/9;
  display:flex;align-items:center;justify-content:center;font-weight:900;font-size:12px;margin:0 0 8px;
}
.mm-color--blue{background:#dbeafe;border-color:#bfdbfe;color:#1e40af}
.mm-color--yellow{background:#fef9c3;border-color:#fde68a;color:#92400e}
.mm-color--green{background:#dcfce7;border-color:#bbf7d0;color:#166534}
.mm-color--purple{background:#ede9fe;border-color:#ddd6fe;color:#5b21b6}
.mm-color--rainbow{background:linear-gradient(90deg,#fecaca,#fde68a,#bfdbfe);border-color:#d1d5db;color:#111827;box-shadow:var(--shadow-sm)}

.mm-hr{border-top:1px solid var(--border);margin:18px 0}

.mm-trophy{list-style:none;padding:0;margin:10px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;color:#374151}
@media(min-width:768px){.mm-trophy{grid-template-columns:repeat(4,1fr)}}
.mm-trophy li{background:#f9fafb;border-radius:10px;padding:8px 10px;border:1px solid #f3f4f6}

.mm-freeze{
  position:relative;border-radius:12px;padding:18px;background:linear-gradient(135deg,#1f2937,#000);
  color:#fff;border:1px solid #374151;box-shadow:var(--shadow);overflow:hidden;
}
.mm-freeze__glow{position:absolute;right:-20px;top:-20px;width:140px;height:140px;background:#a855f7;border-radius:999px;filter:blur(60px);opacity:.2}
.mm-freeze__top{position:relative;z-index:1;display:flex;gap:14px;align-items:flex-start;margin:0 0 14px}
.mm-freeze__top i{font-size:34px;color:#fde047;margin-top:2px;animation:pulse 1.6s infinite}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
.mm-freeze__name{margin:0 0 4px;font-size:20px;font-weight:900;color:#fde047}
.mm-freeze__box{
  position:relative;z-index:1;background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:14px;margin:0 0 10px;
}
.mm-freeze__h{margin:0 0 10px;font-weight:900;color:#67e8f9;border-bottom:1px solid rgba(255,255,255,.2);padding:0 0 6px}
.mm-freeze__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.mm-freeze__list i{color:#fde047;font-size:11px;margin-right:8px}

.mm-faq{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-sm);overflow:hidden}
.mm-faq__item{border-bottom:1px solid #f3f4f6}
.mm-faq__item:last-child{border-bottom:none}
.mm-faq__q{
  width:100%;text-align:left;border:none;background:#fff;padding:14px;
  font-weight:900;font-size:13px;color:#111827;
  display:flex;justify-content:space-between;align-items:center;cursor:pointer;
}
.mm-faq__q:hover{background:#f9fafb}
.mm-faq__q i{color:#9ca3af;font-size:12px;transition:transform .2s}
.mm-faq__a{padding:0 14px 14px 34px;font-size:12px;color:#4b5563;line-height:1.7}
.mm-q{color:var(--teal);font-weight:900;margin-right:8px}
.mm-a{color:var(--red);font-weight:900;margin-right:8px}

.mm-review-top{display:flex;gap:16px;align-items:stretch;border-bottom:1px solid #f3f4f6;padding-bottom:16px;margin-bottom:16px}
@media(max-width:767px){.mm-review-top{flex-direction:column}}
.mm-rating{flex:1;text-align:center;border-right:1px solid #f3f4f6;padding-right:16px}
@media(max-width:767px){.mm-rating{border-right:none;padding-right:0}}
.mm-rating__num{margin:6px 0;font-size:52px;font-weight:900;color:var(--yellow)}
.mm-rating__stars{color:#facc15;font-weight:900}
.mm-review-desc{flex:2;color:#4b5563;font-size:13px;display:flex;align-items:center}
.mm-review-desc p{margin:0;line-height:1.7}
.mm-review-list{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}
.mm-review{background:#f9fafb;border:1px solid #f3f4f6;border-radius:12px;padding:14px}
.mm-review__head{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:8px}
.mm-review__head span{white-space:nowrap}
.mm-review__user{width:24px;height:24px;border-radius:999px;background:#d1d5db;color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;flex:0 0 auto}
.mm-review__stars{color:#facc15;font-weight:900;font-size:12px;margin-bottom:8px}
.mm-more{width:100%;border:none;background:#f3f4f6;color:var(--teal-700);font-weight:900;font-size:12px;border-radius:12px;padding:12px;cursor:pointer}
.mm-more:hover{background:#e5e7eb}

.mm-sidebar{display:flex;flex-direction:column;gap:18px;overflow-x:hidden}
.mm-sidecard{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:var(--shadow-sm)}
.mm-sidecard__head{
  padding:12px 14px;font-weight:900;color:#fff;font-size:14px;display:flex;align-items:center;gap:8px;
  border-left:4px solid var(--teal);
}
.mm-sidecard__head--dark{background:#222}
.mm-sidecard__head--dark i{color:var(--yellow)}
.mm-sidecard__head--slate{background:#3b4252}
.mm-sidecard__head--slate i{color:var(--yellow)}

.mm-tabs{display:flex;border-bottom:1px solid var(--border)}
.mm-tab{flex:1;padding:10px 8px;font-weight:900;font-size:12px;border:none;background:#fff;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent}
.mm-tab:hover{background:#f9fafb}
.mm-tab.is-active{color:var(--teal-700);background:#f9fafb;border-bottom-color:var(--teal)}

.mm-rank__list{list-style:none;margin:0;padding:0}
.mm-rank__item{display:flex;gap:12px;padding:12px;align-items:flex-start;cursor:pointer;border-bottom:1px solid #f3f4f6}
.mm-rank__item:last-child{border-bottom:none}
.mm-rank__item:hover{background:#f9fafb}
.mm-thumb{position:relative;width:64px;height:40px;border-radius:8px;overflow:hidden;background:#e5e7eb;flex:0 0 auto}
.mm-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mm-thumb--plain{border-radius:8px}
.mm-badge-rank{
  position:absolute;left:0;top:0;width:18px;height:18px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:900;font-size:10px;border-radius:0 0 8px 0;z-index:2;
}
.mm-badge-rank--gold{background:var(--yellow)}
.mm-badge-rank--silver{background:#94a3b8}
.mm-badge-rank--bronze{background:#b45309}
.mm-rank__txt{min-width:0}
.mm-rank__title{margin:0;font-size:12px;font-weight:900;color:var(--teal-700)}
.mm-rank__item:hover .mm-rank__title{text-decoration:underline}

.mm-cal__date{background:#f0fdfa;border-bottom:1px solid var(--border);padding:10px 12px;font-size:12px;font-weight:900;color:#374151}
.mm-cal__list{list-style:none;margin:0;padding:0}
.mm-cal__item{display:flex;gap:12px;padding:12px;border-bottom:1px solid #f3f4f6;cursor:pointer}
.mm-cal__item:hover{background:#f9fafb}
.mm-cal__item:last-child{border-bottom:none}

.mm-ad{
  background:#e5e7eb;height:256px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;font-size:12px;color:#9ca3af;
}

.mm-related{background:#fff;border-top:1px solid var(--border);padding:40px 0}
.mm-related__h{margin:0 0 18px;font-size:18px;font-weight:900;color:#111827;border-left:4px solid var(--teal);padding-left:12px}
.mm-related__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(min-width:768px){.mm-related__grid{grid-template-columns:repeat(4,1fr);gap:18px}}
.mm-related__item{text-decoration:none;color:#111827}
.mm-related__ph{background:#e5e7eb;border-radius:12px;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;font-size:12px;color:#9ca3af;margin:0 0 8px}
.mm-related__item p{margin:0;font-weight:900;font-size:14px}
.mm-related__item:hover p{color:var(--teal-700)}

.mm-footer{
  background:#222;
  border-top:1px solid #333;
  padding:36px 0;
  color:#d1d5db;
  font-size:13px;
}
.mm-footer__top{display:flex;flex-direction:column;gap:18px;margin-bottom:18px}
@media(min-width:768px){.mm-footer__top{flex-direction:row;justify-content:space-between;align-items:flex-start;gap:24px}}
.mm-footer__brand p{
  margin:8px 0 0;
  font-size:12px;
  color:#d1d5db;
  line-height:1.7;
}
.mm-footer__links{display:flex;flex-wrap:wrap;gap:10px 18px;font-weight:900;font-size:12px;color:var(--muted)}
.mm-footer__links a{
  color:#e5e7eb;
  text-decoration:none;
}

.mm-footer__links a:hover{
  color:var(--teal);
}
.mm-footer__bottom{
  border-top:1px solid #333;
  padding-top:16px;
  text-align:center;
  font-size:12px;
  color:#9ca3af;
}

/* =========================================================
   画面右：Game8風スライドドロワー
========================================================= */

body.mm-toc-drawer-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* 背景オーバーレイ */
.mm-toc-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1998;
  background: rgba(15, 23, 42, .58);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition:
    opacity .24s ease,
    visibility .24s ease;
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}

.mm-toc-drawer__backdrop[hidden] {
  display: none !important;
}

.mm-toc-drawer__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* 右ドロワー本体 */
.mm-toc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1999;
  display: flex;
  width: min(420px, 88vw);
  height: 100dvh;
  max-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid #dbe3ea;
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, .22);
  visibility: hidden;
  transform: translateX(100%);
  transition:
    transform .26s cubic-bezier(.22, 1, .36, 1),
    visibility .26s ease;
}

.mm-toc-drawer[hidden] {
  display: none !important;
}

.mm-toc-drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}

/* 上部ヘッダー */
.mm-toc-drawer__header {
  display: flex;
  min-height: 68px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding:
    max(12px, env(safe-area-inset-top))
    16px
    12px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.mm-toc-drawer__header-text {
  min-width: 0;
}

.mm-toc-drawer__eyebrow {
  display: block;
  margin: 0 0 2px;
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.mm-toc-drawer__title {
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.mm-toc-drawer__close {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition:
    border-color .16s ease,
    background-color .16s ease,
    color .16s ease;
}

.mm-toc-drawer__close i {
  font-size: 19px;
  line-height: 1;
}

.mm-toc-drawer__close:hover,
.mm-toc-drawer__close:focus-visible {
  border-color: #7dd3c7;
  background: #ecfdfb;
  color: #0f766e;
}

.mm-toc-drawer__close:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .20);
  outline-offset: 2px;
}

/* ドロワー内スクロール領域 */
.mm-toc-drawer__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f4f6f8;
  scrollbar-gutter: stable;
}

/* 現在のページ */
.mm-toc-drawer__page {
  padding: 15px 16px;
  border-bottom: 1px solid #dfe5eb;
  background:
    linear-gradient(
      135deg,
      #effcf9 0%,
      #ffffff 74%
    );
}

.mm-toc-drawer__page-label {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.mm-toc-drawer__page-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #0f766e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 各セクション */
.mm-toc-drawer__section {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #dfe5eb;
  background: #fff;
}

.mm-toc-drawer__section-title {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #e6ebf0;
  background: #eef1f5;
  color: #273244;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.mm-toc-drawer__section-title i {
  width: 18px;
  color: #64748b;
  text-align: center;
}

/* ページ内目次 */
.mm-toc-drawer__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
}

.mm-toc-drawer__toc-list > li {
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e7ebef;
}

.mm-toc-drawer__toc-list > li:last-child {
  border-bottom: 0;
}

.mm-toc-drawer__toc-link {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  padding: 11px 44px 11px 34px;
  background: #fff;
  color: #1f5f8f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    background-color .15s ease,
    color .15s ease;
}

/* 番号等、静的目次の装飾はドロワーで非表示 */
.mm-toc-drawer__toc-link > span {
  display: none !important;
}

.mm-toc-drawer__toc-link::before {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8b4c2;
  content: "";
  transform: translateY(-50%);
}

.mm-toc-drawer__toc-link::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #7c8b9a;
  border-right: 2px solid #7c8b9a;
  content: "";
  transform:
    translateY(-50%)
    rotate(45deg);
}

.mm-toc-drawer__toc-link:hover,
.mm-toc-drawer__toc-link:focus-visible,
.mm-toc-drawer__toc-link.is-current,
.mm-toc-drawer__toc-link[aria-current="location"] {
  background: #eefcf9;
  color: #0f766e;
}

.mm-toc-drawer__toc-link:hover::before,
.mm-toc-drawer__toc-link:focus-visible::before,
.mm-toc-drawer__toc-link.is-current::before,
.mm-toc-drawer__toc-link[aria-current="location"]::before {
  background: var(--teal);
}

.mm-toc-drawer__toc-link:hover::after,
.mm-toc-drawer__toc-link:focus-visible::after,
.mm-toc-drawer__toc-link.is-current::after,
.mm-toc-drawer__toc-link[aria-current="location"]::after {
  border-color: var(--teal-700);
}

.mm-toc-drawer__toc-link:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(20, 184, 166, .18);
  outline-offset: -3px;
}

/* サイトメニュー */
.mm-toc-drawer__site-links {
  display: grid;
  background: #fff;
}

.mm-toc-drawer__site-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 12px;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid #e7ebef;
  color: #273244;
  text-decoration: none;
  transition:
    background-color .15s ease,
    color .15s ease;
}

.mm-toc-drawer__site-link:last-child {
  border-bottom: 0;
}

.mm-toc-drawer__site-link:hover,
.mm-toc-drawer__site-link:focus-visible,
.mm-toc-drawer__site-link.is-current {
  background: #f0fdfa;
  color: #0f766e;
}

.mm-toc-drawer__site-link:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(20, 184, 166, .18);
  outline-offset: -3px;
}

.mm-toc-drawer__site-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #edf2f7;
  color: #536273;
}

.mm-toc-drawer__site-link:hover
  .mm-toc-drawer__site-icon,
.mm-toc-drawer__site-link:focus-visible
  .mm-toc-drawer__site-icon,
.mm-toc-drawer__site-link.is-current
  .mm-toc-drawer__site-icon {
  background: #d8f7f1;
  color: #0f766e;
}

.mm-toc-drawer__site-body {
  min-width: 0;
}

.mm-toc-drawer__site-body strong,
.mm-toc-drawer__site-body small {
  display: block;
}

.mm-toc-drawer__site-body strong {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.mm-toc-drawer__site-body small {
  margin-top: 2px;
  color: #748091;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

.mm-toc-drawer__site-arrow {
  color: #9aa6b3;
  font-size: 10px;
}

/* スクロールバー */
.mm-toc-drawer__body::-webkit-scrollbar {
  width: 8px;
}

.mm-toc-drawer__body::-webkit-scrollbar-track {
  background: #eef1f4;
}

.mm-toc-drawer__body::-webkit-scrollbar-thumb {
  border: 2px solid #eef1f4;
  border-radius: 999px;
  background: #a8b4c2;
}

.mm-toc-drawer__body {
  scrollbar-width: thin;
  scrollbar-color: #a8b4c2 #eef1f4;
}

/* 右下操作ボタン */
.mm-float {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 1900;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.mm-float__btns {
  display: flex;
  gap: 10px;
}

.mm-fbtn {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, .18),
    0 3px 8px rgba(15, 23, 42, .12);
  cursor: pointer;
  transition:
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.mm-fbtn i {
  font-size: 17px;
  line-height: 1;
}

.mm-fbtn:hover {
  background: #0d9488;
  transform: translateY(-2px);
}

.mm-fbtn:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .28);
  outline-offset: 3px;
}

#tocBtn[aria-expanded="true"] {
  background: #0f766e;
  box-shadow:
    0 0 0 4px rgba(20, 184, 166, .20),
    0 12px 28px rgba(15, 23, 42, .20);
}

.mm-fbtn--dark {
  background: #334155;
}

.mm-fbtn--dark:hover {
  background: #1f2937;
}

/* スマホ */
@media (max-width: 767px) {
  .mm-toc-drawer {
    width: min(360px, 86vw);
  }

  .mm-toc-drawer__header {
    min-height: 62px;
    padding:
      max(10px, env(safe-area-inset-top))
      12px
      10px;
  }

  .mm-toc-drawer__title {
    font-size: 16px;
  }

  .mm-toc-drawer__close {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .mm-toc-drawer__page {
    padding: 13px 14px;
  }

  .mm-toc-drawer__page-title {
    font-size: 12px;
  }

  .mm-toc-drawer__section-title {
    min-height: 46px;
    padding: 11px 14px;
    font-size: 12px;
  }

  .mm-toc-drawer__toc-link {
    min-height: 49px;
    padding:
      10px
      40px
      10px
      31px;
    font-size: 11px;
  }

  .mm-toc-drawer__toc-link::before {
    left: 15px;
  }

  .mm-toc-drawer__toc-link::after {
    right: 16px;
  }

  .mm-toc-drawer__site-link {
    grid-template-columns: 34px minmax(0, 1fr) 10px;
    min-height: 61px;
    gap: 10px;
    padding: 9px 14px;
  }

  .mm-toc-drawer__site-icon {
    width: 34px;
    height: 34px;
  }

  .mm-float {
    right: 12px;
    bottom:
      max(
        76px,
        calc(env(safe-area-inset-bottom) + 76px)
      );
  }
}

@media (max-width: 360px) {
  .mm-toc-drawer {
    width: 90vw;
  }

  .mm-toc-drawer__site-body small {
    display: none;
  }

  .mm-float {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-toc-drawer,
  .mm-toc-drawer__backdrop,
  .mm-fbtn,
  .mm-toc-drawer__toc-link,
  .mm-toc-drawer__site-link {
    transition: none;
  }
}


#app-wrapper,.mm-container,.mm-layout,.mm-content,.mm-sidebar{min-width:0}
.mm-sidebar *{min-width:0}
.mm-sidebar img,.mm-sidebar video,.mm-sidebar iframe,.mm-sidebar svg{max-width:100%;height:auto}

@media(max-width:767px){
  .mm-container{padding-left:8px;padding-right:8px}
  .mm-layout{padding-left:0;padding-right:0}
  .mm-article{padding:10px}
  .mm-article__title-sp{padding-left:0;padding-right:0}
  .mm-points{margin-left:0;margin-right:0}
}


/* =========================================================
   SP：ロゴ・検索エリアの表示調整
   ========================================================= */

@media (max-width: 767px){

  .mm-header-top{
    display:none !important;
  }

  .mm-header-mobile{
    background:#111 !important;
    border:none !important;
  }

  .mm-header-mobile__logo{
    display:flex !important;
    justify-content:center;
    align-items:center;
    min-height:52px;
    padding:7px 0;
    background:#111 !important;
    border-top:2px solid var(--teal) !important;
    border-bottom:none !important;
  }

  .mm-header-mobile__logo .mm-logo{
    height:36px;
    width:auto;
  }

  /* 検索帯は白のまま */
  .mm-header-mobile__search{
    background:#fff !important;
  }

  /* ロゴ画像 */
  .mm-logo{
    filter:brightness(1);
  }

  /* 検索フォーム周り（必要なら） */
  .mm-search{
    background:transparent !important;
  }

  /* 入力欄を白に（元は #f3f4f6 なので上書き） */
  .mm-search__input{
    background:#fff !important;
    border:1px solid #d1d5db !important;
  }

  /* フォーカス時も白のまま */
  .mm-search__input:focus{
    background:#fff !important;
  }


} /* @media (max-width: 767px) をここで終了 */


.mm-related__ph{
  overflow:hidden;
}

.mm-related__ph img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#fff;
}

.mm-related__maker{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:var(--muted);
}

/* =========================================================
   6確 トップページ
   機種ページの既存デザインに統一
========================================================= */

.mm-home{
  background:var(--bg);
  color:var(--text);
  padding-bottom:32px;
}

.mm-home .mm-container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding-left:16px;
  padding-right:16px;
}

/* ファーストビュー：機種ページの黒基調ヘッダーに寄せる */
.mm-home-hero{
  position:relative;
  overflow:hidden;
  background:#222;
  color:#fff;
  border-top:2px solid var(--teal);
  border-bottom:1px solid #333;
  box-shadow:var(--shadow-sm);
}

.mm-home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(20,184,166,.12),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.03),rgba(0,0,0,.08));
  pointer-events:none;
}

.mm-home-hero__inner{
  position:relative;
  z-index:1;
  max-width:920px;
  margin:0 auto;
  padding:38px 0 32px;
  text-align:left;
}

.mm-home-hero__eyebrow{
  margin:0 0 8px;
  color:#5eead4;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.mm-home-hero__title{
  margin:0;
  color:#fff;
  font-size:clamp(28px,4vw,44px);
  font-weight:900;
  line-height:1.3;
  letter-spacing:-.025em;
}

.mm-home-hero__lead{
  margin:12px 0 0;
  color:#d1d5db;
  font-size:14px;
  line-height:1.8;
}

/* 検索：既存検索フォームの雰囲気に合わせる */
.mm-home-search{
  max-width:720px;
  margin:24px 0 0;
}

.mm-home-search__box{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border:1px solid #4b5563;
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.mm-home-search__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  margin-left:8px;
  color:#9ca3af;
}

.mm-home-search__input{
  flex:1 1 auto;
  min-width:0;
  height:44px;
  padding:0 6px;
  border:0;
  outline:0;
  background:#fff;
  color:#111827;
  font-size:14px;
}

.mm-home-search__input::placeholder{
  color:#9ca3af;
}

.mm-home-search__button{
  flex:0 0 auto;
  min-width:92px;
  height:44px;
  border:0;
  border-radius:8px;
  background:var(--teal);
  color:#fff;
  cursor:pointer;
  font-size:13px;
  font-weight:900;
}

.mm-home-search__button:hover{
  background:#0d9488;
}

/* 各セクション */
.mm-home-section{
  padding:32px 0 0;
}

.mm-home-section--muted{
  background:transparent;
}

.mm-home-section--updates{
  padding-top:24px;
}

.mm-home-section--quick{
  padding-top:20px;
}

.mm-home-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
}

.mm-home-heading--compact{
  margin-bottom:12px;
}

.mm-home-heading__sub{
  margin:0 0 4px;
  color:var(--teal-700);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}

.mm-home-heading__title{
  margin:0;
  padding-left:10px;
  border-left:5px solid var(--teal);
  color:#1f2937;
  font-size:21px;
  font-weight:900;
  line-height:1.4;
}

.mm-home-heading__link{
  flex:0 0 auto;
  color:var(--teal-700);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

.mm-home-heading__link:hover{
  text-decoration:underline;
}

/* 更新情報：機種ページのサイドカード・一覧に合わせる */
.mm-update-list{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.mm-update-list__item{
  display:grid;
  grid-template-columns:92px 62px 68px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:10px 14px;
  border-bottom:1px solid #f3f4f6;
  color:#374151;
  text-decoration:none;
}

.mm-update-list__item:last-child{
  border-bottom:0;
}

.mm-update-list__item:hover{
  background:#f9fafb;
}

.mm-update-list__date{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.mm-update-list__badge,
.mm-update-list__type{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 7px;
  border-radius:6px;
  font-size:9px;
  font-weight:900;
}

.mm-update-list__badge--new{
  background:#dcfce7;
  color:#15803d;
}

.mm-update-list__badge--update{
  background:#fef3c7;
  color:#92400e;
}

.mm-update-list__type--slot{
  background:#e0f2fe;
  color:#0369a1;
}

.mm-update-list__type--pachinko{
  background:#fce7f3;
  color:#be185d;
}

.mm-update-list__title{
  overflow:hidden;
  color:#111827;
  font-size:13px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mm-update-list__arrow{
  color:var(--teal);
  font-size:21px;
  line-height:1;
}

/* 主要メニュー：機種ページのカードに統一 */
.mm-home-quick{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.mm-home-quick__item{
  position:relative;
  min-height:126px;
  padding:18px 38px 18px 18px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:#111827;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
}

.mm-home-quick__item--slot,
.mm-home-quick__item--pachinko{
  background:#fff;
}

.mm-home-quick__item::after{
  position:absolute;
  top:50%;
  right:15px;
  color:#9ca3af;
  content:"›";
  font-size:26px;
  transform:translateY(-50%);
}

.mm-home-quick__item:hover{
  border-color:#99f6e4;
  background:#f0fdfa;
}

.mm-home-quick__label{
  display:block;
  margin-bottom:10px;
  color:var(--teal-700);
  font-size:9px;
  font-weight:900;
  letter-spacing:.1em;
}

.mm-home-quick__title{
  display:block;
  margin-bottom:7px;
  font-size:16px;
  font-weight:900;
}

.mm-home-quick__text{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  line-height:1.6;
}

/* 最新機種：既存の関連機種・記事カードに寄せる */
.mm-machine-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.mm-machine-card{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.mm-machine-card:hover{
  box-shadow:var(--shadow);
}

.mm-machine-card__link{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none;
}

.mm-machine-card__image{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:16/9;
  overflow:hidden;
  border-bottom:1px solid var(--border);
  background:#f3f4f6;
}

.mm-machine-card__image img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}

.mm-machine-card__placeholder{
  color:#9ca3af;
  font-size:11px;
  font-weight:900;
}

.mm-machine-card__type,
.mm-machine-card__status{
  position:absolute;
  top:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  padding:3px 8px;
  border-radius:6px;
  color:#fff;
  font-size:9px;
  font-weight:900;
}

.mm-machine-card__type{
  left:9px;
}

.mm-machine-card__status{
  right:9px;
  background:var(--teal);
}

.mm-machine-card__type--slot{
  background:#2563eb;
}

.mm-machine-card__type--pachinko{
  background:#db2777;
}

.mm-machine-card__body{
  padding:14px;
}

.mm-machine-card__maker{
  margin:0 0 5px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}

.mm-machine-card__title{
  margin:0;
  color:#111827;
  font-size:14px;
  font-weight:900;
  line-height:1.55;
}

.mm-machine-card__meta{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid #f3f4f6;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

/* 新台導入スケジュール */
.mm-schedule-list{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.mm-schedule-list__item{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 18px;
  align-items:center;
  gap:14px;
  min-height:78px;
  padding:10px 14px;
  border-bottom:1px solid #f3f4f6;
  color:inherit;
  text-decoration:none;
}

.mm-schedule-list__item:last-child{
  border-bottom:0;
}

.mm-schedule-list__item:hover{
  background:#f9fafb;
}

.mm-schedule-list__date{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:58px;
  border:1px solid #ccfbf1;
  border-radius:8px;
  background:#f0fdfa;
}

.mm-schedule-list__month{
  color:var(--teal-700);
  font-size:9px;
  font-weight:900;
}

.mm-schedule-list__day{
  color:#111827;
  font-size:21px;
  line-height:1.05;
}

.mm-schedule-list__weekday{
  color:var(--muted);
  font-size:8px;
  font-weight:900;
}

.mm-schedule-list__labels{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:5px;
}

.mm-schedule-list__type{
  display:inline-flex;
  padding:3px 7px;
  border-radius:5px;
  font-size:9px;
  font-weight:900;
}

.mm-schedule-list__type--slot{
  background:#e0f2fe;
  color:#0369a1;
}

.mm-schedule-list__type--pachinko{
  background:#fce7f3;
  color:#be185d;
}

.mm-schedule-list__maker{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}

.mm-schedule-list__title{
  margin:0;
  color:#111827;
  font-size:14px;
  font-weight:900;
  line-height:1.5;
}

.mm-schedule-list__arrow{
  color:var(--teal);
  font-size:22px;
}

/* 解析メニュー */
.mm-link-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.mm-link-card{
  position:relative;
  min-height:96px;
  padding:16px 36px 16px 16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:#111827;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
}

.mm-link-card::after{
  position:absolute;
  top:50%;
  right:14px;
  color:#9ca3af;
  content:"›";
  font-size:23px;
  transform:translateY(-50%);
}

.mm-link-card:hover{
  border-color:#99f6e4;
  background:#f0fdfa;
}

.mm-link-card strong{
  display:block;
  margin-bottom:6px;
  font-size:14px;
  font-weight:900;
}

.mm-link-card span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

/* 初心者ガイド */
.mm-guide-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.mm-guide-card{
  min-height:150px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
}

.mm-guide-card:hover{
  border-color:#99f6e4;
  background:#f0fdfa;
}

.mm-guide-card__number{
  display:block;
  margin-bottom:13px;
  color:var(--teal);
  font-size:10px;
  font-weight:900;
}

.mm-guide-card strong{
  display:block;
  margin-bottom:8px;
  color:#111827;
  font-size:16px;
  font-weight:900;
}

.mm-guide-card p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  line-height:1.7;
}

/* サイト説明：フッターと同じ黒基調 */
.mm-home-about{
  margin-top:32px;
  padding:34px 0;
  border-top:1px solid #333;
  background:#222;
  color:#fff;
}

.mm-home-about__inner{
  max-width:860px;
}

.mm-home-about__label{
  margin:0 0 7px;
  color:#5eead4;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}

.mm-home-about__title{
  margin:0;
  font-size:23px;
  font-weight:900;
  line-height:1.45;
}

.mm-home-about__text{
  margin:14px 0 0;
  color:#d1d5db;
  font-size:13px;
  line-height:1.9;
}

/* 空表示 */
.mm-empty{
  padding:22px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:var(--muted);
  text-align:center;
  box-shadow:var(--shadow-sm);
}

.mm-empty p{
  margin:0;
  font-size:12px;
  font-weight:700;
}

@media(max-width:960px){
  .mm-home-quick{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .mm-machine-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .mm-link-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:767px){
  .mm-home .mm-container{
    padding-left:8px;
    padding-right:8px;
  }

  .mm-home-hero__inner{
    padding:28px 4px 24px;
  }

  .mm-home-hero__title{
    font-size:27px;
  }

  .mm-home-hero__lead{
    font-size:12px;
  }

  .mm-home-search{
    margin-top:18px;
  }

  .mm-home-search__box{
    border-radius:9px;
  }

  .mm-home-search__icon{
    display:none;
  }

  .mm-home-search__input{
    height:42px;
    padding:0 8px;
    font-size:13px;
  }

  .mm-home-search__button{
    min-width:72px;
    height:42px;
    font-size:12px;
  }

  .mm-home-section{
    padding-top:24px;
  }

  .mm-home-heading{
    align-items:flex-start;
    margin-bottom:11px;
  }

  .mm-home-heading__title{
    font-size:18px;
  }

  .mm-home-heading__link{
    margin-top:5px;
    font-size:10px;
  }

  .mm-update-list__item{
    grid-template-columns:76px 52px minmax(0,1fr) 14px;
    gap:6px;
    padding:9px 10px;
  }

  .mm-update-list__date{
    font-size:10px;
  }

  .mm-update-list__type{
    display:none;
  }

  .mm-update-list__title{
    font-size:11px;
  }

  .mm-home-quick{
    gap:8px;
  }

  .mm-home-quick__item{
    min-height:112px;
    padding:15px 30px 15px 14px;
  }

  .mm-home-quick__title{
    font-size:14px;
  }

  .mm-home-quick__text{
    font-size:10px;
  }

  .mm-machine-grid{
    gap:10px;
  }

  .mm-machine-card__body{
    padding:11px;
  }

  .mm-machine-card__title{
    font-size:12px;
  }

  .mm-schedule-list__item{
    grid-template-columns:55px minmax(0,1fr) 14px;
    gap:10px;
    padding:8px 10px;
  }

  .mm-schedule-list__date{
    min-height:53px;
  }

  .mm-schedule-list__title{
    font-size:12px;
  }

  .mm-link-grid{
    gap:8px;
  }

  .mm-link-card{
    min-height:88px;
    padding:14px 30px 14px 13px;
  }

  .mm-link-card strong{
    font-size:13px;
  }

  .mm-link-card span{
    font-size:10px;
  }

  .mm-guide-grid{
    grid-template-columns:1fr;
    gap:9px;
  }

  .mm-guide-card{
    min-height:auto;
    padding:15px;
  }

  .mm-home-about{
    padding:28px 0;
  }

  .mm-home-about__title{
    font-size:19px;
  }

  .mm-pc-only{
    display:none;
  }
}

@media(max-width:420px){
  .mm-home-quick,
  .mm-machine-grid,
  .mm-link-grid{
    grid-template-columns:1fr;
  }

  .mm-home-heading{
    display:block;
  }

  .mm-home-heading__link{
    display:inline-block;
    margin-top:7px;
  }
}


/* =========================================================
   新台導入日一覧ページ
   Template: page-new-machine.php
========================================================= */

.mm-new-machine-page {
  padding-bottom: 64px;
}

.mm-new-machine-page *,
.mm-new-machine-page *::before,
.mm-new-machine-page *::after {
  box-sizing: border-box;
}

/* パンくず */
.mm-new-machine-page .mm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  color: #6b7280;
  font-size: 13px;
}

.mm-new-machine-page .mm-breadcrumb a {
  color: #374151;
  text-decoration: none;
}

.mm-new-machine-page .mm-breadcrumb a:hover {
  text-decoration: underline;
}

/* ページヒーロー */
.mm-new-machine-page .mm-page-hero {
  margin-bottom: 28px;
  background: linear-gradient(
    135deg,
    #1f2937 0%,
    #374151 100%
  );
  color: #fff;
}

.mm-new-machine-page .mm-page-hero__inner {
  padding: 34px 32px;
}

.mm-new-machine-page .mm-page-hero__eyebrow {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mm-new-machine-page .mm-page-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.35;
}

.mm-new-machine-page .mm-page-hero__description {
  max-width: 760px;
  margin: 14px 0 0;
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.9;
}

/* メイン＋サイドバー */
.mm-new-machine-page .mm-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.mm-new-machine-page .mm-content-layout__main,
.mm-new-machine-page .mm-content-layout__sidebar {
  min-width: 0;
}

/* 月別ナビ */
.mm-new-machine-page .mm-new-month-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.mm-new-machine-page .mm-new-month-nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.mm-new-machine-page .mm-new-month-nav a:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

/* 共通見出し */
.mm-new-machine-page .mm-section-title {
  margin: 40px 0 22px;
  padding-left: 12px;
  border-left: 5px solid #374151;
  color: #111827;
  font-size: 21px;
  line-height: 1.5;
}

.mm-new-machine-page .mm-section-heading {
  margin: 0;
  padding: 12px 14px;
  font-size: 18px;
  line-height: 1.5;
}

.mm-new-machine-page .mm-section-heading--dark {
  border-radius: 8px 8px 0 0;
  background: #374151;
  color: #fff;
}

.mm-new-machine-page .mm-section-heading__icon {
  margin-right: 5px;
}

/* 今月注目の新台 */
.mm-new-machine-page .mm-featured-new {
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.mm-new-machine-page .mm-featured-new__body {
  padding: 20px 18px;
  background: repeating-linear-gradient(
    0deg,
    #fff,
    #fff 3px,
    #fbfbfb 3px,
    #fbfbfb 6px
  );
}

.mm-new-machine-page .mm-featured-new__body p {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.mm-new-machine-page .mm-featured-new__body p + p {
  margin-top: 14px;
}

.mm-new-machine-page .mm-featured-new__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mm-new-machine-page .mm-featured-new__links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* 月ごとの新台セクション */
.mm-new-machine-page .mm-new-machine-section {
  scroll-margin-top: 100px;
  margin-top: 42px;
}

.mm-new-machine-page .mm-new-machine-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #374151;
}

.mm-new-machine-page .mm-new-machine-section__label {
  display: block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mm-new-machine-page .mm-new-machine-section__heading h2 {
  margin: 0;
  color: #111827;
  font-size: 23px;
  line-height: 1.5;
}

.mm-new-machine-page .mm-new-machine-section__count {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

/* 導入日ごとのグループ */
.mm-new-machine-page .mm-new-date-group + .mm-new-date-group {
  margin-top: 30px;
}

.mm-new-machine-page .mm-new-date-group__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: #374151;
  font-size: 16px;
  line-height: 1.5;
}

.mm-new-machine-page .mm-new-date-group__title span {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 6px;
  background: #374151;
  color: #fff;
}

/* 新台カード一覧 */


.mm-new-machine-page .mm-new-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  overflow: hidden;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.mm-new-machine-page .mm-new-card__image {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #f4f6f9;
  text-decoration: none;
}

.mm-new-machine-page .mm-new-card__image img {
  display: block;
  width: 100%;
  max-width: 96px;
  height: auto;
  max-height: 170px;
  object-fit: contain;
}

.mm-new-machine-page .mm-new-card__no-image {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}





.mm-new-machine-page .mm-new-card__badge {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}



.mm-new-machine-page .mm-new-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}



.mm-new-machine-page .mm-new-card__title a:hover {
  color: #2563eb;
}







.mm-new-machine-page .mm-new-card__info dt {
  color: #6b7280;
  font-weight: 700;
}

.mm-new-machine-page .mm-new-card__info dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.mm-new-machine-page .mm-new-card__button {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.mm-new-machine-page .mm-new-card__button:hover {
  background: #1d4ed8;
  color: #fff;
}

/* 情報なし表示 */




/* アンケート */
.mm-new-machine-page .mm-new-poll {
  scroll-margin-top: 100px;
}



.mm-new-machine-page .mm-poll-box__header {
  padding: 13px 15px;
  background: #2563eb;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}













.mm-new-machine-page .mm-poll-item__button {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 37px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mm-new-machine-page .mm-poll-item__button:hover {
  background: #1d4ed8;
}

.mm-new-machine-page .mm-poll-item__button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}





.mm-new-machine-page .mm-poll-item__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 0.35s ease;
}





.mm-new-machine-page .mm-poll-message {
  min-height: 24px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
}





/* タブレット */
@media (max-width: 1100px) {
  .mm-new-machine-page .mm-content-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
  }

  .mm-new-machine-page .mm-new-card-grid {
    grid-template-columns: 1fr;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .mm-new-machine-page {
    padding-bottom: 40px;
  }

  .mm-new-machine-page .mm-page-hero {
    margin-bottom: 20px;
  }

  .mm-new-machine-page .mm-page-hero__inner {
    padding: 25px 18px;
  }

  .mm-new-machine-page .mm-page-hero__description {
    font-size: 14px;
    line-height: 1.8;
  }

  .mm-new-machine-page .mm-content-layout {
    display: block;
  }

  .mm-new-machine-page .mm-content-layout__sidebar {
    margin-top: 36px;
  }

  .mm-new-machine-page .mm-new-month-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-new-machine-page .mm-featured-new__body {
    padding: 17px 15px;
  }

  .mm-new-machine-page .mm-featured-new__body p {
    font-size: 14px;
    line-height: 1.9;
  }

  .mm-new-machine-page .mm-new-machine-section {
    margin-top: 34px;
  }

  .mm-new-machine-page .mm-new-machine-section__heading {
    align-items: flex-start;
  }

  .mm-new-machine-page .mm-new-machine-section__heading h2 {
    font-size: 20px;
  }

  .mm-new-machine-page .mm-new-card-grid {
    grid-template-columns: 1fr;
  }

  .mm-new-machine-page .mm-new-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .mm-new-machine-page .mm-new-card__image {
    min-height: 178px;
    padding: 8px;
  }

  .mm-new-machine-page .mm-new-card__image img {
    max-width: 84px;
    max-height: 155px;
  }

  .mm-new-machine-page .mm-new-card__body {
    padding: 12px;
  }

  .mm-new-machine-page .mm-new-card__title {
    font-size: 15px;
  }

  .mm-new-machine-page .mm-poll-box__body {
    padding: 15px;
  }

  .mm-new-machine-page .mm-poll-item {
    padding: 11px 12px;
  }

  .mm-new-machine-page .mm-poll-item__top strong {
    font-size: 13px;
  }
}


/* =========================================================
   新台導入日一覧：最終統合版
   shindai.php は既存ヘッダー／mm-layout／get_sidebar()を使用
========================================================= */

.mm-new-machine-page {
  padding-bottom: 8px;
}

.mm-new-page-header {
  margin-bottom: 24px;
}

.mm-new-page-header__en {
  margin: 0 0 7px;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.mm-new-page-header__description {
  margin: 14px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.9;
}

/* 旧独自レイアウトを完全に無効化 */
.mm-new-machine-page .mm-content-layout,
.mm-new-machine-page .mm-content-layout__main,
.mm-new-machine-page .mm-content-layout__sidebar,
.mm-new-machine-page .mm-page-hero,
.mm-new-machine-page .mm-page-hero__inner,
.mm-new-machine-page .mm-page-hero__eyebrow,
.mm-new-machine-page .mm-page-hero__title,
.mm-new-machine-page .mm-page-hero__description {
  all: unset;
}

/* 月ナビ */
.mm-new-machine-page .mm-new-month-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
}

.mm-new-machine-page .mm-new-month-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.mm-new-machine-page .mm-new-month-nav a:hover {
  border-color: var(--teal);
  background: #f0fdfa;
  color: var(--teal-700);
}

/* 今月注目 */
.mm-new-machine-page .mm-featured-new {
  overflow: hidden;
  margin: 0 0 34px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mm-new-machine-page .mm-section-heading {
  margin: 0;
  padding: 12px 14px;
  font-size: 17px;
  line-height: 1.5;
}

.mm-new-machine-page .mm-section-heading--dark {
  background: #3b4252;
  color: #fff;
}

.mm-new-machine-page .mm-featured-new__body {
  padding: 18px;
  background: repeating-linear-gradient(0deg,#fff,#fff 3px,#fbfbfb 3px,#fbfbfb 6px);
}

.mm-new-machine-page .mm-featured-new__body p {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.mm-new-machine-page .mm-featured-new__body p + p {
  margin-top: 12px;
}

.mm-new-machine-page .mm-featured-new__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mm-new-machine-page .mm-featured-new__links a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

/* 月セクション */
.mm-new-machine-page .mm-new-machine-section {
  margin-top: 40px;
  scroll-margin-top: 100px;
}

.mm-new-machine-page .mm-new-machine-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 11px;
  border-bottom: 3px solid #374151;
}

.mm-new-machine-page .mm-new-machine-section__label {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.mm-new-machine-page .mm-new-machine-section__heading h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.45;
}

.mm-new-machine-page .mm-new-machine-section__count {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
}

.mm-new-machine-page .mm-new-date-group + .mm-new-date-group {
  margin-top: 28px;
}

.mm-new-machine-page .mm-new-date-group__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: #374151;
  font-size: 15px;
  line-height: 1.5;
}

.mm-new-machine-page .mm-new-date-group__title span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 6px;
  background: #374151;
  color: #fff;
}

/* 新台カード */
.mm-new-machine-page .mm-new-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mm-new-machine-page .mm-new-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  overflow: hidden;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mm-new-machine-page .mm-new-card__image {
  display: flex;
  min-height: 188px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #f4f6f9;
  text-decoration: none;
}

.mm-new-machine-page .mm-new-card__image img {
  display: block;
  width: 100%;
  max-width: 96px;
  height: auto;
  max-height: 168px;
  object-fit: contain;
}

.mm-new-machine-page .mm-new-card__no-image {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.mm-new-machine-page .mm-new-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
}

.mm-new-machine-page .mm-new-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.mm-new-machine-page .mm-new-card__badge {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.mm-new-machine-page .mm-new-card__badge--type {
  background: #374151;
}

.mm-new-machine-page .mm-new-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.mm-new-machine-page .mm-new-card__title a {
  color: #111827;
  text-decoration: none;
}

.mm-new-machine-page .mm-new-card__title a:hover {
  color: var(--teal-700);
}

.mm-new-machine-page .mm-new-card__maker {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.mm-new-machine-page .mm-new-card__info {
  margin: 12px 0 0;
}

.mm-new-machine-page .mm-new-card__info div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #edf0f4;
  font-size: 12px;
}

.mm-new-machine-page .mm-new-card__info dt {
  color: #6b7280;
  font-weight: 900;
}

.mm-new-machine-page .mm-new-card__info dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

.mm-new-machine-page .mm-new-card__button {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.mm-new-machine-page .mm-new-card__button:hover {
  background: var(--teal-700);
  color: #fff;
}

.mm-new-machine-page .mm-empty-box {
  padding: 22px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: #f8fafc;
  color: #374151;
  text-align: center;
}

.mm-new-machine-page .mm-empty-box p {
  margin: 7px 0 0;
  color: #6b7280;
  font-size: 13px;
}

/* アンケート */
.mm-new-machine-page .mm-new-poll {
  margin-top: 38px;
  scroll-margin-top: 100px;
}

.mm-new-machine-page .mm-section-title {
  margin: 0 0 20px;
  padding-left: 10px;
  border-left: 5px solid #374151;
  color: #111827;
  font-size: 20px;
  line-height: 1.5;
}

.mm-new-machine-page .mm-poll-box {
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
}

.mm-new-machine-page .mm-poll-box__header {
  padding: 13px 15px;
  background: var(--teal);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.mm-new-machine-page .mm-poll-box__body {
  padding: 20px;
}

.mm-new-machine-page .mm-poll-box__body h3 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 17px;
  line-height: 1.6;
}

.mm-new-machine-page .mm-poll-list {
  display: grid;
  gap: 11px;
}

.mm-new-machine-page .mm-poll-item {
  padding: 12px 15px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: #f8fafc;
}

.mm-new-machine-page .mm-poll-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mm-new-machine-page .mm-poll-item__top strong {
  color: #172033;
  font-size: 14px;
  line-height: 1.5;
}

.mm-new-machine-page .mm-poll-item__button {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 37px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.mm-new-machine-page .mm-poll-item__button:hover {
  background: var(--teal-700);
}

.mm-new-machine-page .mm-poll-item__button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.mm-new-machine-page .mm-poll-item__result {
  margin-top: 9px;
}

.mm-new-machine-page .mm-poll-item__bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
}

.mm-new-machine-page .mm-poll-item__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width .35s ease;
}

.mm-new-machine-page .mm-poll-item__numbers {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
  color: #6b7280;
  font-size: 11px;
}

.mm-new-machine-page .mm-poll-total {
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 12px;
  text-align: right;
}

.mm-new-machine-page .mm-poll-message {
  min-height: 24px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 900;
}

.mm-new-machine-page .mm-poll-message.is-success { color: #15803d; }
.mm-new-machine-page .mm-poll-message.is-error { color: #dc2626; }

@media (max-width: 1100px) {
  .mm-new-machine-page .mm-new-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .mm-new-page-header {
    margin-bottom: 20px;
  }

  .mm-new-page-header__description {
    font-size: 13px;
    line-height: 1.8;
  }

  .mm-new-machine-page .mm-new-month-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-new-machine-page .mm-featured-new__body {
    padding: 16px 14px;
  }

  .mm-new-machine-page .mm-new-machine-section {
    margin-top: 34px;
  }

  .mm-new-machine-page .mm-new-machine-section__heading {
    align-items: flex-start;
  }

  .mm-new-machine-page .mm-new-machine-section__heading h2 {
    font-size: 19px;
  }

  .mm-new-machine-page .mm-new-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .mm-new-machine-page .mm-new-card__image {
    min-height: 176px;
    padding: 8px;
  }

  .mm-new-machine-page .mm-new-card__image img {
    max-width: 84px;
    max-height: 154px;
  }

  .mm-new-machine-page .mm-new-card__body {
    padding: 12px;
  }

  .mm-new-machine-page .mm-poll-box__body {
    padding: 15px;
  }
}


/* =========================================================
   新台導入日一覧：メイン画像と概要の表示調整
========================================================= */

.mm-new-machine-page .mm-new-page-visual {
  aspect-ratio: auto;
  min-height: 0;
  margin: 14px 0 18px;
  background: #111827;
  border-radius: 10px;
}

.mm-new-machine-page .mm-new-page-visual .mm-visual__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.mm-new-machine-page .mm-new-page-summary {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
}

.mm-new-machine-page .mm-new-page-summary p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 767px) {
  .mm-new-machine-page .mm-new-page-visual {
    margin: 12px 0 14px;
    border-radius: 8px;
  }

  .mm-new-machine-page .mm-new-page-summary {
    margin-bottom: 18px;
    padding: 12px 13px;
  }

  .mm-new-machine-page .mm-new-page-summary p {
    font-size: 13px;
    line-height: 1.8;
  }
}


/* =========================================================
   トップページ・スマホ：ランキングタブと筐体画像の調整
========================================================= */

@media (max-width: 767px) {

  /* タブ外枠を過度な丸型から、内側ボタンと合う角丸に変更 */
  .mm-home .mm-sidebar .mm-tabs {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    background: #f8fafc;
    overflow: hidden;
  }

  .mm-home .mm-sidebar .mm-tab {
    flex: 0 0 auto;
    min-width: 78px;
    padding: 9px 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    line-height: 1;
  }

  .mm-home .mm-sidebar .mm-tab:hover {
    background: #eef2f7;
  }

  .mm-home .mm-sidebar .mm-tab.is-active {
    border-bottom-color: transparent;
    border-radius: 7px;
    background: var(--teal);
    color: #fff;
    box-shadow: 0 3px 8px rgba(20,184,166,.22);
  }

  /* ランキングカード内の筐体画像と枠の間に余白を確保 */
  .mm-home .mm-sidebar .mm-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 92px;
    flex: 0 0 76px;
    padding: 7px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
  }

  .mm-home .mm-sidebar .mm-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }

  .mm-home .mm-sidebar .mm-rank__item {
    gap: 12px;
    padding: 12px;
    align-items: center;
  }
}


/* =========================================================
   スマホ：サイドバーランキングの最終上書き
   ※ .mm-home 配下に限定しない。固定ページ・一覧ページでも適用。
========================================================= */

@media (max-width: 767px) {

  /* タブ全体 */
  .mm-sidebar .mm-tabs {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    overflow: visible !important;
  }

  /* 各タブ */
  .mm-sidebar .mm-tab {
    flex: 0 0 auto !important;
    min-width: 78px !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #64748b !important;
    line-height: 1 !important;
  }

  .mm-sidebar .mm-tab.is-active {
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 6px !important;
    background: var(--teal) !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(20,184,166,.22) !important;
  }

  /* ランキング1件の余白 */
  .mm-sidebar .mm-rank__item {
    gap: 12px !important;
    padding: 12px !important;
    align-items: center !important;
  }

  /* 筐体画像の外枠 */
  .mm-sidebar .mm-thumb {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 82px !important;
    height: 104px !important;
    flex: 0 0 82px !important;
    padding: 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  /* 筐体画像本体 */
  .mm-sidebar .mm-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 62px !important;
    max-height: 84px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  /* 順位バッジが画像余白を潰さないよう少し内側へ */
  .mm-sidebar .mm-badge-rank {
    left: 4px !important;
    top: 4px !important;
    border-radius: 999px !important;
  }
}


/* =========================================================
   スマホ：人気機種ランキング最終修正
   トップページ本体・サイドバーの両方に適用
========================================================= */

@media (max-width: 767px) {

  /* タブ外枠：カプセル型をやめる */
  .mm-tabs,
  .mm-sidecard .mm-tabs,
  .mm-home .mm-tabs {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
    margin: 0 !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
  }

  /* タブ本体 */
  .mm-tab,
  .mm-sidecard .mm-tab,
  .mm-home .mm-tab {
    flex: 0 0 auto !important;
    min-width: 78px !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #64748b !important;
    line-height: 1 !important;
  }

  .mm-tab.is-active,
  .mm-sidecard .mm-tab.is-active,
  .mm-home .mm-tab.is-active {
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 5px !important;
    background: var(--teal) !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(20,184,166,.22) !important;
  }

  /* ランキング項目 */
  .mm-rank__item,
  .mm-sidecard .mm-rank__item,
  .mm-home .mm-rank__item {
    box-sizing: border-box !important;
  }

  /* 筐体画像エリア：枠と画像の間に余白を作る */
  .mm-thumb,
  .mm-sidecard .mm-thumb,
  .mm-home .mm-thumb {
    box-sizing: border-box !important;
    padding: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  .mm-thumb img,
  .mm-sidecard .mm-thumb img,
  .mm-home .mm-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  /* 横型リストで使われる場合 */
  .mm-rank__item:not([style*="display: block"]) .mm-thumb {
    min-width: 76px !important;
    min-height: 94px !important;
  }

  /* カード型ランキングで使われる場合 */
  .mm-rank__item .mm-thumb[style],
  .mm-rank__item > .mm-thumb:first-child {
    border-bottom-color: #e5e7eb !important;
  }

  /* 順位バッジを画像に密着させない */
  .mm-badge-rank {
    left: 7px !important;
    top: 7px !important;
  }
}


/* =========================================================
   トップページ本文：人気機種ランキング最終修正
   対象クラス：
   .mm-home-tabs / .mm-home-tab
   .mm-home-rank__image
========================================================= */

@media (max-width: 767px) {

  /* 外枠を内側タブに合わせた角丸へ変更 */
  .mm-home-tabs {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
    margin: 0 0 16px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
  }

  .mm-home-tab {
    flex: 0 0 auto !important;
    min-width: 78px !important;
    min-height: 38px !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .mm-home-tab.is-active {
    border-radius: 6px !important;
    background: var(--teal) !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(20,184,166,.22) !important;
  }

  /* ランキングカードの筐体画像表示領域 */
  .mm-home-rank__image {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 116px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--border) !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  .mm-home-rank__image img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 92px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    background: transparent !important;
  }
}

/* PCでも筐体画像が枠へ密着しないようにする */
@media (min-width: 768px) {
  .mm-home-rank__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #fff;
  }

  .mm-home-rank__image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    object-position: center;
  }
}


/* =========================================================
   トップページ：最新の解析機種の筐体画像余白
========================================================= */

.mm-machine-card__image {
  padding: 14px !important;
  background: #fff !important;
}

.mm-machine-card__image img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  .mm-machine-card__image {
    padding: 10px 12px !important;
  }

  .mm-machine-card__image img {
    max-width: calc(100% - 4px) !important;
    max-height: calc(100% - 4px) !important;
  }
}


/* =========================================================
   トップページ：最新の解析機種
   実際の使用クラス .mm-home-machine-card__image に適用
========================================================= */

.mm-home-machine-card__image {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 170px !important;
  padding: 14px !important;
  border-bottom: 1px solid var(--border) !important;
  background: #fff !important;
  overflow: hidden !important;
}

.mm-home-machine-card__image img {
  display: block !important;
  width: auto !important;
  max-width: calc(100% - 8px) !important;
  height: auto !important;
  max-height: 142px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  .mm-home-machine-card__image {
    min-height: 118px !important;
    padding: 10px 12px !important;
  }

  .mm-home-machine-card__image img {
    max-width: calc(100% - 6px) !important;
    max-height: 96px !important;
  }
}


/* =========================================================
   トップページ：人気機種ランキング画像エリアの余白を適正化
   以前追加した min-height / aspect-ratio の影響をリセット
========================================================= */

@media (max-width: 767px) {
  .mm-home-rank__image {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 166px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  .mm-home-rank__image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 12px) !important;
    max-height: 146px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}


/* =========================================================
   トップページ：人気機種ランキングのタブ形状をPC/SPで統一
   PC表示をスマホ表示と同じ角丸ボックス型にする
========================================================= */

@media (min-width: 768px) {
  .mm-home-tabs {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
    margin: 0 0 16px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
  }

  .mm-home-tab {
    flex: 0 0 auto !important;
    min-width: 78px !important;
    min-height: 38px !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .mm-home-tab.is-active {
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 6px !important;
    background: var(--teal) !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(20,184,166,.22) !important;
  }
}


/* =========================================================
   トップページ：人気機種ランキング PC画像余白をスマホに近づける
========================================================= */

@media (min-width: 768px) {
  .mm-home-rank__image {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  .mm-home-rank__image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 12px) !important;
    max-height: 160px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}


/* =========================================================
   サイドバー：ランキング／新台カレンダーの筐体画像調整
   デザインは維持し、画像だけ大きく・全体表示
========================================================= */

.mm-sidebar .mm-rank__item,
.mm-sidebar .mm-cal__item{
  align-items:center;
}

.mm-sidebar .mm-thumb{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:82px;
  height:104px;
  flex:0 0 82px;
  padding:8px;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.mm-sidebar .mm-thumb img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  background:transparent;
}

.mm-sidebar .mm-thumb--plain{
  width:72px;
  height:92px;
  flex-basis:72px;
  padding:7px;
  background:#fff;
}

.mm-sidebar .mm-badge-rank{
  left:4px;
  top:4px;
  border-radius:999px;
}

@media(max-width:767px){
  .mm-sidebar .mm-thumb{
    width:76px;
    height:96px;
    flex-basis:76px;
    padding:7px;
  }

  .mm-sidebar .mm-thumb--plain{
    width:68px;
    height:86px;
    flex-basis:68px;
    padding:6px;
  }
}


/* =========================================================
   サイドバー：スマホのランキングタブをPC表示と統一
========================================================= */

@media (max-width: 767px) {
  .mm-sidebar .mm-tabs {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  .mm-sidebar .mm-tab {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    min-height: auto !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #6b7280 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: normal !important;
  }

  .mm-sidebar .mm-tab:hover {
    background: #f9fafb !important;
  }

  .mm-sidebar .mm-tab.is-active {
    border: 0 !important;
    border-bottom: 2px solid var(--teal) !important;
    border-radius: 0 !important;
    background: #f9fafb !important;
    color: var(--teal-700) !important;
    box-shadow: none !important;
  }
}


/* =========================================================
   噂・リーク情報一覧ページ
   Template: reak.php
========================================================= */

.mm-reak-page{
  padding-bottom:10px;
}

.mm-reak-header{
  margin-bottom:24px;
}

.mm-reak-header__en,
.mm-reak-list-head__en{
  display:block;
  margin:0 0 6px;
  color:var(--teal-700);
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
}

.mm-reak-visual{
  aspect-ratio:auto;
  min-height:0;
  margin:14px 0 18px;
  background:#111827;
}

.mm-reak-visual .mm-visual__img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  object-position:center;
}

.mm-reak-summary{
  margin:0;
  padding:15px 17px;
  border:1px solid var(--border);
  border-left:4px solid var(--teal);
  border-radius:0 9px 9px 0;
  background:#f8fafc;
}

.mm-reak-summary p{
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.9;
}

.mm-reak-section-title{
  margin:0;
  color:#111827;
  font-size:20px;
  font-weight:900;
  line-height:1.45;
}

.mm-reak-guide{
  margin:0 0 24px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}

.mm-reak-guide .mm-reak-section-title{
  margin-bottom:16px;
  padding-left:10px;
  border-left:5px solid var(--teal);
}

.mm-reak-steps{
  display:flex;
  align-items:center;
  gap:8px;
}

.mm-reak-steps > i{
  flex:0 0 auto;
  color:#cbd5e1;
}

.mm-reak-step{
  display:flex;
  min-width:0;
  flex:1 1 0;
  min-height:92px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:10px 7px;
  border:1px solid #e5e7eb;
  border-radius:9px;
  background:#f8fafc;
  text-align:center;
}

.mm-reak-step__number{
  display:flex;
  width:24px;
  height:24px;
  align-items:center;
  justify-content:center;
  margin-bottom:6px;
  border-radius:999px;
  background:#374151;
  color:#fff;
  font-size:10px;
  font-weight:900;
}

.mm-reak-step strong{
  color:#111827;
  font-size:12px;
}

.mm-reak-step small{
  margin-top:3px;
  color:#64748b;
  font-size:9px;
  line-height:1.35;
}

.mm-reak-filters{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:26px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#f8fafc;
}

.mm-reak-filter{
  min-height:36px;
  padding:7px 13px;
  border:1px solid #dbe3ef;
  border-radius:7px;
  background:#fff;
  color:#475569;
  cursor:pointer;
  font-size:11px;
  font-weight:900;
}

.mm-reak-filter:hover{
  border-color:#99f6e4;
  color:var(--teal-700);
}

.mm-reak-filter.is-active{
  border-color:var(--teal);
  background:var(--teal);
  color:#fff;
}

.mm-reak-list-section{
  margin-top:4px;
}

.mm-reak-list-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
  padding-bottom:11px;
  border-bottom:3px solid #374151;
}

.mm-reak-count{
  flex:0 0 auto;
  padding:5px 10px;
  border-radius:999px;
  background:#eef2f7;
  color:#475569;
  font-size:11px;
  font-weight:900;
}

.mm-reak-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.mm-reak-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.mm-reak-card:hover{
  border-color:#99f6e4;
  box-shadow:var(--shadow);
}

.mm-reak-card__link{
  display:flex;
  height:100%;
  flex-direction:column;
  color:inherit;
  text-decoration:none;
}

.mm-reak-card__image{
  position:relative;
  display:flex;
  aspect-ratio:16/9;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-bottom:1px solid var(--border);
  background:#111827;
}

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

.mm-reak-card__placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color:#94a3b8;
  font-size:10px;
  font-weight:900;
}

.mm-reak-card__placeholder i{
  font-size:28px;
}

.mm-reak-card__stage,
.mm-reak-card__new{
  position:absolute;
  top:9px;
  z-index:2;
  padding:4px 9px;
  border-radius:999px;
  color:#fff;
  font-size:9px;
  font-weight:900;
}

.mm-reak-card__stage{
  left:9px;
  background:#7c3aed;
}

.mm-reak-card__new{
  right:9px;
  background:#ef4444;
}

.mm-reak-card__body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  padding:14px;
}

.mm-reak-card__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:#64748b;
  font-size:10px;
}

.mm-reak-card__type{
  display:inline-flex;
  padding:3px 7px;
  border-radius:5px;
  font-size:9px;
  font-weight:900;
}

.mm-reak-card__type--slot{
  background:#e0f2fe;
  color:#0369a1;
}

.mm-reak-card__type--pachinko{
  background:#fce7f3;
  color:#be185d;
}

.mm-reak-card__type--common{
  background:#f3f4f6;
  color:#475569;
}

.mm-reak-card__title{
  margin:0;
  color:#111827;
  font-size:16px;
  font-weight:900;
  line-height:1.55;
}

.mm-reak-card__excerpt{
  margin:9px 0 0;
  color:#64748b;
  font-size:12px;
  line-height:1.7;
}

.mm-reak-card__info{
  margin:12px 0 0;
  border-top:1px solid #f1f5f9;
}

.mm-reak-card__info div{
  display:grid;
  grid-template-columns:70px minmax(0,1fr);
  gap:8px;
  padding:7px 0;
  border-bottom:1px solid #f1f5f9;
  font-size:11px;
}

.mm-reak-card__info dt{
  color:#64748b;
  font-weight:700;
}

.mm-reak-card__info dd{
  margin:0;
  color:#111827;
  font-weight:900;
}

.mm-reak-card__more{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  margin-top:auto;
  padding-top:13px;
  color:var(--teal-700);
  font-size:11px;
  font-weight:900;
}

.mm-reak-empty{
  padding:34px 20px;
  border:1px dashed #cbd5e1;
  border-radius:10px;
  background:#f8fafc;
  color:#64748b;
  text-align:center;
}

.mm-reak-empty i{
  display:block;
  margin-bottom:10px;
  color:#94a3b8;
  font-size:34px;
}

.mm-reak-empty strong{
  display:block;
  color:#334155;
  font-size:15px;
}

.mm-reak-empty p{
  margin:8px 0 0;
  font-size:11px;
  line-height:1.7;
}

.mm-reak-no-result{
  padding:20px;
  border:1px dashed #cbd5e1;
  border-radius:10px;
  color:#64748b;
  text-align:center;
  font-size:12px;
}

.mm-reak-notice{
  margin-top:34px;
  padding:18px;
  border:1px solid #fde68a;
  border-radius:10px;
  background:#fffbeb;
}

.mm-reak-notice .mm-reak-section-title{
  margin-bottom:12px;
  color:#92400e;
  font-size:17px;
}

.mm-reak-notice ul{
  margin:0;
  padding-left:20px;
  color:#78350f;
  font-size:12px;
  line-height:1.8;
}

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

  .mm-reak-steps{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
  }

  .mm-reak-steps > i{
    display:none;
  }
}

@media(max-width:767px){
  .mm-reak-header{
    margin-bottom:20px;
  }

  .mm-reak-summary{
    padding:12px 13px;
  }

  .mm-reak-summary p{
    font-size:13px;
    line-height:1.8;
  }

  .mm-reak-guide{
    padding:14px;
  }

  .mm-reak-steps{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .mm-reak-step{
    min-height:78px;
  }

  .mm-reak-filters{
    gap:5px;
    padding:7px;
  }

  .mm-reak-filter{
    min-height:34px;
    padding:6px 10px;
    font-size:10px;
  }

  .mm-reak-section-title{
    font-size:18px;
  }

  .mm-reak-card__title{
    font-size:14px;
  }

  .mm-reak-card__body{
    padding:12px;
  }
}


/* =========================================================
   ホール攻略トップ
   Template: hall.php
========================================================= */

.mm-hall-page{
  padding-bottom:10px;
}

.mm-hall-header{
  margin-bottom:26px;
}

.mm-hall-header__en,
.mm-hall-section-head__en{
  display:block;
  margin:0 0 6px;
  color:var(--teal-700);
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
}

.mm-hall-visual{
  aspect-ratio:auto;
  min-height:0;
  margin:14px 0 18px;
  background:#111827;
}

.mm-hall-visual .mm-visual__img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  object-position:center;
}

.mm-hall-summary{
  padding:15px 17px;
  border:1px solid var(--border);
  border-left:4px solid var(--teal);
  border-radius:0 9px 9px 0;
  background:#f8fafc;
}

.mm-hall-summary p{
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.9;
}

.mm-hall-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
  padding-bottom:11px;
  border-bottom:3px solid #374151;
}

.mm-hall-section-title{
  margin:0;
  color:#111827;
  font-size:20px;
  font-weight:900;
  line-height:1.45;
}

.mm-hall-upcoming,
.mm-hall-region-search,
.mm-hall-featured-section{
  margin-top:36px;
  scroll-margin-top:90px;
}

.mm-hall-upcoming-list{
  display:grid;
  gap:10px;
}

.mm-hall-upcoming-card{
  display:grid;
  grid-template-columns:68px minmax(0,1fr) 18px;
  align-items:center;
  gap:12px;
  min-height:92px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
}

.mm-hall-upcoming-card:hover{
  border-color:#99f6e4;
  background:#f0fdfa;
}

.mm-hall-upcoming-card__date{
  display:flex;
  min-height:66px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #ccfbf1;
  border-radius:8px;
  background:#f0fdfa;
}

.mm-hall-upcoming-card__date strong{
  color:var(--teal-700);
  font-size:18px;
}

.mm-hall-upcoming-card__date span{
  color:#64748b;
  font-size:9px;
  font-weight:900;
}

.mm-hall-upcoming-card__body{
  min-width:0;
}

.mm-hall-upcoming-card__meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin-bottom:5px;
  color:#64748b;
  font-size:10px;
}

.mm-hall-upcoming-card__type{
  padding:3px 7px;
  border-radius:5px;
  background:#ede9fe;
  color:#6d28d9;
  font-weight:900;
}

.mm-hall-upcoming-card h3{
  margin:0;
  color:#111827;
  font-size:14px;
  font-weight:900;
  line-height:1.5;
}

.mm-hall-upcoming-card p{
  margin:5px 0 0;
  color:#475569;
  font-size:12px;
  font-weight:700;
}

.mm-hall-upcoming-card small{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:10px;
  line-height:1.5;
}

.mm-hall-upcoming-card > i{
  color:var(--teal);
}

.mm-hall-map{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
}

.mm-hall-map__regions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:16px;
  background:#f8fafc;
}

.mm-hall-map__region{
  display:flex;
  min-height:72px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid #dbe3ef;
  border-radius:9px;
  background:#fff;
  color:#475569;
  cursor:pointer;
  font-size:12px;
  font-weight:900;
}

.mm-hall-map__region i{
  color:var(--teal);
  font-size:18px;
}

.mm-hall-map__region:hover,
.mm-hall-map__region.is-active{
  border-color:var(--teal);
  background:#ecfeff;
  color:var(--teal-700);
}

.mm-hall-prefectures{
  padding:16px;
  border-top:1px solid var(--border);
}

.mm-hall-prefectures__guide{
  margin:0;
  color:#64748b;
  font-size:11px;
}

.mm-hall-prefecture-group strong{
  display:block;
  margin-bottom:10px;
  color:#111827;
  font-size:14px;
}

.mm-hall-prefecture-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.mm-hall-prefecture-button{
  min-height:34px;
  padding:6px 11px;
  border:1px solid #dbe3ef;
  border-radius:7px;
  background:#fff;
  color:#475569;
  cursor:pointer;
  font-size:10px;
  font-weight:900;
}

.mm-hall-prefecture-button:hover,
.mm-hall-prefecture-button.is-active{
  border-color:var(--teal);
  background:var(--teal);
  color:#fff;
}

.mm-hall-result-count{
  flex:0 0 auto;
  padding:5px 10px;
  border-radius:999px;
  background:#eef2f7;
  color:#475569;
  font-size:11px;
  font-weight:900;
}

.mm-hall-filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:18px;
  padding:9px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#f8fafc;
}

.mm-hall-filter{
  min-height:35px;
  padding:7px 12px;
  border:1px solid #dbe3ef;
  border-radius:7px;
  background:#fff;
  color:#475569;
  cursor:pointer;
  font-size:10px;
  font-weight:900;
}

.mm-hall-filter:hover{
  border-color:#99f6e4;
  color:var(--teal-700);
}

.mm-hall-filter.is-active{
  border-color:var(--teal);
  background:var(--teal);
  color:#fff;
}

.mm-hall-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.mm-hall-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.mm-hall-card:hover{
  border-color:#99f6e4;
  box-shadow:var(--shadow);
}

.mm-hall-card__link{
  display:flex;
  height:100%;
  flex-direction:column;
  color:inherit;
  text-decoration:none;
}

.mm-hall-card__image{
  position:relative;
  display:flex;
  aspect-ratio:16/9;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-bottom:1px solid var(--border);
  background:#f3f4f6;
}

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

.mm-hall-card__placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color:#94a3b8;
  font-size:10px;
  font-weight:900;
}

.mm-hall-card__placeholder i{
  font-size:28px;
}

.mm-hall-card__attention{
  position:absolute;
  top:9px;
  right:9px;
  padding:4px 9px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:9px;
  font-weight:900;
}

.mm-hall-card__body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  padding:14px;
}

.mm-hall-card__area{
  margin-bottom:6px;
  color:var(--teal-700);
  font-size:10px;
  font-weight:900;
}

.mm-hall-card__area i{
  margin-right:4px;
}

.mm-hall-card__title{
  margin:0;
  color:#111827;
  font-size:16px;
  font-weight:900;
  line-height:1.5;
}

.mm-hall-card__upcoming{
  margin-top:11px;
  padding:10px;
  border:1px solid #ede9fe;
  border-radius:8px;
  background:#f5f3ff;
}

.mm-hall-card__upcoming span{
  display:inline-flex;
  margin-bottom:5px;
  padding:2px 6px;
  border-radius:5px;
  background:#7c3aed;
  color:#fff;
  font-size:9px;
  font-weight:900;
}

.mm-hall-card__upcoming strong{
  display:block;
  color:#4c1d95;
  font-size:11px;
  line-height:1.5;
}

.mm-hall-card__trend{
  margin-top:10px;
  padding:10px;
  border-left:4px solid var(--teal);
  background:#f0fdfa;
}

.mm-hall-card__trend span{
  display:block;
  margin-bottom:4px;
  color:var(--teal-700);
  font-size:9px;
  font-weight:900;
}

.mm-hall-card__trend p{
  margin:0;
  color:#334155;
  font-size:11px;
  line-height:1.6;
}

.mm-hall-card__old-event{
  margin:9px 0 0;
  color:#64748b;
  font-size:10px;
}

.mm-hall-card__more{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  margin-top:auto;
  padding-top:13px;
  color:var(--teal-700);
  font-size:11px;
  font-weight:900;
}

.mm-hall-empty,
.mm-hall-no-result{
  padding:26px 18px;
  border:1px dashed #cbd5e1;
  border-radius:10px;
  background:#f8fafc;
  color:#64748b;
  text-align:center;
  font-size:11px;
}

.mm-hall-empty i{
  display:block;
  margin-bottom:9px;
  color:#94a3b8;
  font-size:30px;
}

.mm-hall-empty strong{
  display:block;
  color:#334155;
  font-size:15px;
}

.mm-hall-empty p{
  margin:7px 0 0;
}

.mm-hall-about{
  margin-top:34px;
  padding:18px;
  border:1px solid #fde68a;
  border-radius:10px;
  background:#fffbeb;
}

.mm-hall-about .mm-hall-section-title{
  margin-bottom:12px;
  color:#92400e;
  font-size:17px;
}

.mm-hall-about ul{
  margin:0;
  padding-left:20px;
  color:#78350f;
  font-size:12px;
  line-height:1.8;
}

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

@media(max-width:767px){
  .mm-hall-header{
    margin-bottom:20px;
  }

  .mm-hall-summary{
    padding:12px 13px;
  }

  .mm-hall-summary p{
    font-size:13px;
    line-height:1.8;
  }

  .mm-hall-section-title{
    font-size:18px;
  }

  .mm-hall-upcoming,
  .mm-hall-region-search,
  .mm-hall-featured-section{
    margin-top:30px;
  }

  .mm-hall-upcoming-card{
    grid-template-columns:58px minmax(0,1fr) 14px;
    gap:9px;
    padding:9px;
  }

  .mm-hall-upcoming-card__date{
    min-height:58px;
  }

  .mm-hall-map__regions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:12px;
  }

  .mm-hall-map__region{
    min-height:62px;
  }

  .mm-hall-prefectures{
    padding:12px;
  }

  .mm-hall-filter-bar{
    gap:5px;
    padding:7px;
  }

  .mm-hall-filter{
    min-height:33px;
    padding:6px 9px;
  }

  .mm-hall-card__body{
    padding:12px;
  }

  .mm-hall-card__title{
    font-size:14px;
  }
}


/* ========================================
   通常記事・運営者情報
======================================== */
.mm-article .k6-operator{
  color:#1f2937;
  font-size:15px;
  line-height:1.9;
}

.mm-article .k6-operator__section{
  margin:0 0 36px;
}

.mm-article .k6-operator__section:last-child{
  margin-bottom:0;
}

.mm-article .k6-operator h2{
  position:relative;
  margin:0 0 18px;
  padding:10px 14px 10px 18px;
  border:0;
  border-left:5px solid #14b8a6;
  border-radius:0 8px 8px 0;
  background:#f8fafc;
  color:#111827;
  font-size:22px;
  font-weight:900;
  line-height:1.5;
}

.mm-article .k6-operator p{
  margin:0 0 16px;
}

.mm-article .k6-operator a{
  color:#0f766e;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

.mm-article .k6-operator a:hover{
  color:#14b8a6;
}

/* テーブル */
.mm-article .k6-operator__table-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid #dbe3ea;
  border-radius:10px;
  background:#fff;
  -webkit-overflow-scrolling:touch;
}

.mm-article .k6-operator__table{
  width:100%;
  min-width:560px;
  margin:0;
  border:0;
  border-collapse:collapse;
  border-spacing:0;
  background:#fff;
}

.mm-article .k6-operator__table th,
.mm-article .k6-operator__table td{
  padding:14px 16px;
  border:0;
  border-bottom:1px solid #e5e7eb;
  text-align:left;
  vertical-align:top;
  line-height:1.7;
}

.mm-article .k6-operator__table tr:last-child th,
.mm-article .k6-operator__table tr:last-child td{
  border-bottom:0;
}

.mm-article .k6-operator__table th{
  width:190px;
  background:#f1f5f9;
  color:#111827;
  font-weight:900;
  white-space:nowrap;
}

.mm-article .k6-operator__table td{
  background:#fff;
  color:#334155;
}

/* リスト */
.mm-article .k6-operator__list{
  margin:0;
  padding:0;
  list-style:none;
}

.mm-article .k6-operator__list li{
  position:relative;
  margin:0 0 10px;
  padding:12px 14px 12px 40px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  line-height:1.75;
}

.mm-article .k6-operator__list li:last-child{
  margin-bottom:0;
}

.mm-article .k6-operator__list li::before{
  position:absolute;
  top:15px;
  left:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:17px;
  height:17px;
  border-radius:50%;
  background:#14b8a6;
  color:#fff;
  content:"✓";
  font-size:10px;
  font-weight:900;
  line-height:1;
}

@media(max-width:767px){
  .mm-article .k6-operator{
    font-size:14px;
  }

  .mm-article .k6-operator__section{
    margin-bottom:28px;
  }

  .mm-article .k6-operator h2{
    margin-bottom:14px;
    padding:9px 11px 9px 14px;
    font-size:19px;
  }

  .mm-article .k6-operator__table{
    min-width:0;
  }

  .mm-article .k6-operator__table,
  .mm-article .k6-operator__table tbody,
  .mm-article .k6-operator__table tr,
  .mm-article .k6-operator__table th,
  .mm-article .k6-operator__table td{
    display:block;
    width:100%;
  }

  .mm-article .k6-operator__table tr{
    border-bottom:1px solid #dbe3ea;
  }

  .mm-article .k6-operator__table tr:last-child{
    border-bottom:0;
  }

  .mm-article .k6-operator__table th{
    padding:10px 13px 5px;
    border-bottom:0;
    background:#f1f5f9;
    white-space:normal;
  }

  .mm-article .k6-operator__table td{
    padding:7px 13px 12px;
    border-bottom:0;
  }

  .mm-article .k6-operator__list li{
    padding:11px 12px 11px 36px;
  }

  .mm-article .k6-operator__list li::before{
    top:14px;
    left:12px;
  }
}

/* =========================================================
   SPレイアウト最終補正
   サイドバーをコンテンツ幅いっぱいに統一
========================================================= */
@media (max-width: 767px) {
  .mm-main,
  .mm-layout,
  .mm-content,
  .mm-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mm-layout {
    display: flex;
    flex-direction: column;
  }

  .mm-content,
  .mm-sidebar {
    flex: 0 0 auto !important;
  }

  .mm-sidebar {
    margin: 0 !important;
    overflow-x: clip;
  }

  .mm-sidebar > *,
  .mm-sidecard,
  .mm-ad {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

/* =========================================================
   SP：表下の注釈文を左寄せ
========================================================= */
@media (max-width: 767px) {
  .mm-note {
    text-align: left;
  }
}

/* =========================================================
   打ち方画像：PC/SP共通の最終指定
========================================================= */

/*
 * 画像ショートコード側に固定幅やmax-widthが残っていても、
 * 打ち方カードの幅を超えないよう、画像までのラッパーをすべて
 * カード幅へ合わせる。
 */
.mm-hitikata .mm-ddt,
.mm-hitikata .mm-grid-2,
.mm-hitikata .mm-grid-3,
.mm-hitikata .mm-stepcard,
.mm-hitikata .mm-ddt__img,
.mm-hitikata .mm-stepcard__ph {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.mm-hitikata .mm-stepcard {
  overflow: hidden;
}

.mm-hitikata .mm-ddt__img,
.mm-hitikata .mm-stepcard__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 365 / 215;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f3f4f6;
  box-shadow: var(--shadow-sm);
}

/* ショートコードが出力する中間ラッパーの固定幅を解除 */
.mm-hitikata .mm-ddt__img > *,
.mm-hitikata .mm-stepcard__ph > *,
.mm-hitikata .mm-ddt__img figure,
.mm-hitikata .mm-stepcard__ph figure,
.mm-hitikata .mm-ddt__img picture,
.mm-hitikata .mm-stepcard__ph picture,
.mm-hitikata .mm-ddt__img a,
.mm-hitikata .mm-stepcard__ph a {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.mm-hitikata .mm-ddt__img img,
.mm-hitikata .mm-stepcard__ph img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* スマホ：固定300pxを廃止し、カード内を広く使う */
@media (max-width: 767px) {
  .mm-hitikata .mm-grid-2,
  .mm-hitikata .mm-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-hitikata .mm-ddt {
    width: 100%;
    padding: 12px;
  }

  .mm-hitikata .mm-ddt__img,
  .mm-hitikata .mm-stepcard__ph {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 3px;
  }

  .mm-hitikata .mm-ddt__img {
    max-width: 380px;
  }

  .mm-hitikata .mm-stepcard {
    padding: 12px;
  }
}

/* PC：3列をminmax(0,1fr)にして右端カードのはみ出しを防ぐ */
@media (min-width: 768px) {
  .mm-hitikata .mm-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-hitikata .mm-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mm-hitikata .mm-ddt {
    display: grid;
    grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
  }

  .mm-hitikata .mm-ddt__img {
    width: 100%;
    max-width: 320px;
    margin: 0;
    padding: 4px;
  }

  .mm-hitikata .mm-stepcard__ph {
    width: 100%;
    max-width: 100%;
    padding: 3px;
  }
}

/* =========================================================
   解析表：横スクロール共通処理（最終統合版）
========================================================= */

/*
 * JavaScriptが動かない場合のフォールバック。
 * 本文側は次の構造だけでよい。
 *
 * <div class="table-scroll">
 *   <table class="analysis-table">...</table>
 * </div>
 */
.table-scroll {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

/* JS適用後は、内側のviewportだけをスクロールさせる */
.table-scroll.mm-table-ready {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* 横スクロール案内 */
.table-scroll__guide {
  display: none;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin: 0 auto 8px;
  padding: 4px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* 実際に横スクロールする領域 */
.table-scroll__viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.table-scroll__viewport:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.25);
  outline-offset: 3px;
}

/*
 * JSが列数・文章量から設定した最小幅。
 * PCでも本文幅が足りない場合だけ横スクロールになる。
 */
.table-scroll.mm-table-wide .analysis-table {
  width: 100%;
  min-width: var(--mm-table-min-width, 720px);
}

/* 実際にスクロール可能な表だけ案内を表示 */
.table-scroll.is-scrollable .table-scroll__guide {
  display: flex;
}

/* 一度操作した後は案内を少し控えめにする */
.table-scroll.is-touched .table-scroll__guide {
  opacity: 0.58;
  transform: translateY(-1px);
}

/* 左右端のフェード */
.table-scroll.mm-table-ready::before,
.table-scroll.mm-table-ready::after {
  position: absolute;
  z-index: 5;
  top: 36px;
  bottom: 0;
  width: 34px;
  content: "";
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.table-scroll.mm-table-ready::before {
  left: 0;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0)
    );
}

.table-scroll.mm-table-ready::after {
  right: 0;
  background:
    linear-gradient(
      to left,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0)
    );
}

/* 左へ戻れる状態 */
.table-scroll.is-scrollable:not(.is-at-start)::before {
  opacity: 1;
}

/* 右に続きがある状態 */
.table-scroll.is-scrollable:not(.is-at-end)::after {
  opacity: 1;
}

/* 任意の短いセルだけ改行を止めたい場合のユーティリティ */
.mm-nowrap {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .table-scroll__viewport .analysis-table th,
  .table-scroll__viewport .analysis-table td {
    padding: 10px 12px;
    vertical-align: middle;
  }

  /* 見出しは細切れ改行を防止 */
  .table-scroll.mm-table-wide
    .table-scroll__viewport
    .analysis-table
    thead
    th {
    white-space: nowrap;
  }

  /* 左端の項目名はth・tdを問わず最低幅を確保 */
  .table-scroll.mm-table-wide
    .table-scroll__viewport
    .analysis-table
    tr > :first-child {
    min-width: 120px;
    white-space: nowrap;
  }
}

/* =========================================================
   v35 最終統合：解析テーブルの視認性・横スクロール・判断パネル
   ※ blog-app.css / main-app.css 共通
========================================================= */

/* ---------------------------------------------------------
   テーブル外枠
   - table-scroll と viewport の二重枠を廃止
   - 右端に残る空白枠を防止
   - 実際の外枠は analysis-table の1本だけ
--------------------------------------------------------- */
.table-scroll,
.table-scroll.mm-table-ready {
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.table-scroll__viewport {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  scrollbar-gutter: auto !important;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* JS未適用時は外側ラッパーをスクロール領域として使用 */
.table-scroll:not(.mm-table-ready) {
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  scrollbar-gutter: auto !important;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------
   左右端の白い靄・フェードを完全廃止
   数値や文字の上へ疑似要素を重ねない
--------------------------------------------------------- */
.table-scroll.mm-table-ready::before,
.table-scroll.mm-table-ready::after,
.table-scroll.is-scrollable:not(.is-at-start)::before,
.table-scroll.is-scrollable:not(.is-at-end)::after {
  display: none !important;
  width: 0 !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 横スクロール案内は表の外側上部に表示 */
.table-scroll__guide {
  min-height: 26px;
  margin: 0 0 7px auto;
  padding: 3px 10px;
  border: 1px solid #b9d9d5;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.table-scroll.is-touched .table-scroll__guide {
  opacity: .72;
  transform: none;
}

/* ---------------------------------------------------------
   スクロールバー
--------------------------------------------------------- */
.table-scroll,
.table-scroll__viewport {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #eef2f6;
}

.table-scroll::-webkit-scrollbar,
.table-scroll__viewport::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-track,
.table-scroll__viewport::-webkit-scrollbar-track {
  background: #eef2f6;
  border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-thumb,
.table-scroll__viewport::-webkit-scrollbar-thumb {
  border: 2px solid #eef2f6;
  border-radius: 999px;
  background: #94a3b8;
}

.table-scroll::-webkit-scrollbar-thumb:hover,
.table-scroll__viewport::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ---------------------------------------------------------
   解析テーブル本体
   - シンプルでクールな配色へ調整
   - 数値の見やすさを優先
   - 設定6以上の強調を整理
--------------------------------------------------------- */
.analysis-table {
  width: 100%;
  min-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6dee8;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  color: #1f2937;
  font-size: .82rem;
  line-height: 1.6;
}

.analysis-table th,
.analysis-table td {
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid #dde5ee;
  border-bottom: 1px solid #dde5ee;
  vertical-align: middle;
}

.analysis-table tr > :last-child {
  border-right: 0;
}

.analysis-table tbody tr:last-child > * {
  border-bottom: 0;
}

/* 見出し行 */
.analysis-table thead th {
  background: #edf5f8;
  color: #163847;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 -2px 0 #8db3c0;
}

/* 左側の項目列 */
.analysis-table tbody th {
  background: #f7fafc;
  color: #22384a;
  font-weight: 800;
  text-align: center;
}

/* 数値・説明セル */
.analysis-table tbody td {
  background: #ffffff;
  color: #334155;
}

.analysis-table td,
.analysis-table .font-num {
  font-variant-numeric: tabular-nums;
}

/* ゼブラ表示 */
.analysis-table tbody tr:nth-child(even) td {
  background: #f9fbfd;
}

.analysis-table tbody tr:nth-child(even) th {
  background: #f1f5f9;
}

@media (hover: hover) {
  .analysis-table tbody tr:hover > th,
  .analysis-table tbody tr:hover > td {
    background: #f2fafc;
  }
}

.analysis-table caption {
  padding: 0 0 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

/* 高設定域・設定6・設定6超え
   classは tr / th / td のいずれに付与しても反映する */
.analysis-table .mm-setting-high,
.analysis-table tr.mm-setting-high > th,
.analysis-table tr.mm-setting-high > td {
  background: #f3efff !important;
  color: #5b21b6 !important;
  font-weight: 900;
}

.analysis-table .mm-setting-max,
.analysis-table tr.mm-setting-max > th,
.analysis-table tr.mm-setting-max > td {
  background: #fff1f2 !important;
  color: #b4232e !important;
  font-weight: 900;
}

.analysis-table .mm-setting-top,
.analysis-table .mm-setting-over6,
.analysis-table .mm-setting-h,
.analysis-table .mm-setting-ultimate,
.analysis-table tr.mm-setting-top > th,
.analysis-table tr.mm-setting-top > td,
.analysis-table tr.mm-setting-over6 > th,
.analysis-table tr.mm-setting-over6 > td,
.analysis-table tr.mm-setting-h > th,
.analysis-table tr.mm-setting-h > td,
.analysis-table tr.mm-setting-ultimate > th,
.analysis-table tr.mm-setting-ultimate > td {
  background: #ecfeff !important;
  color: #0f766e !important;
  font-weight: 900;
}

.analysis-table thead .mm-setting-high {
  box-shadow: inset 0 -2px 0 #9b87df;
}

.analysis-table thead .mm-setting-max {
  box-shadow: inset 0 -2px 0 #e56b75;
}

.analysis-table thead .mm-setting-top,
.analysis-table thead .mm-setting-over6,
.analysis-table thead .mm-setting-h,
.analysis-table thead .mm-setting-ultimate {
  box-shadow: inset 0 -2px 0 #2cb6ab;
}

@media (max-width: 900px) {
  .table-scroll__viewport .analysis-table th,
  .table-scroll__viewport .analysis-table td,
  .table-scroll:not(.mm-table-ready) .analysis-table th,
  .table-scroll:not(.mm-table-ready) .analysis-table td {
    padding: 9px 10px;
  }
}

/* ---------------------------------------------------------
   続行・終了判断
   「続行」「ヤメ」を各条件で繰り返さず、
   パネル見出し1回＋根拠カテゴリで整理する
--------------------------------------------------------- */
.mm-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.mm-decision-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
}

.mm-decision-panel__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid #dbe3ec;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.mm-decision-panel__mark {
  display: inline-grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.mm-decision-panel--continue {
  border-color: #a7ded6;
}

.mm-decision-panel--continue .mm-decision-panel__title {
  border-bottom-color: #b8e7df;
  background: #ecfdf8;
  color: #0f6159;
}

.mm-decision-panel--continue .mm-decision-panel__mark {
  background: #0f766e;
}

.mm-decision-panel--stop {
  border-color: #f2c2c6;
}

.mm-decision-panel--stop .mm-decision-panel__title {
  border-bottom-color: #f3cdd0;
  background: #fff5f5;
  color: #9f2731;
}

.mm-decision-panel--stop .mm-decision-panel__mark {
  background: #d83b48;
}

.mm-decision-list {
  margin: 0;
  padding: 4px 12px 8px;
  list-style: none;
}

.mm-decision-list li {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed #dbe3ec;
}

.mm-decision-list li:last-child {
  border-bottom: 0;
}

.mm-decision-list strong {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.55;
}

.mm-decision-list span {
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .mm-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .mm-decision-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* =========================================================
   v37 最終上書き
   1. ここがポイント（短文1行の見え方に統一）
   2. ホール実戦メニュー（スマホでも2列・説明文なし）
   3. 表セル内の箇条書き（点が枠外へ出るのを修正）
   4. 続行・終了パネル（文章が枠外で切れるのを修正）
   5. よくある質問（details/summaryへデザインを適用）

   ※ blog-app.css と main-app.css の両方の一番最後へ追記する。
     既存の「v36.1 最終上書き」ブロックより後ろに置くこと。
========================================================= */

/* ---------------------------------------------------------
   1. ここがポイント
--------------------------------------------------------- */
.mm-points__list{
  margin:0;
  padding-left:20px;
  list-style:disc outside;
}

.mm-points__list li{
  margin:0 0 8px;
  color:#111827;
  font-size:13px;
  font-weight:600;
  line-height:1.75;
  overflow-wrap:anywhere;
}

.mm-points__list li:last-child{
  margin-bottom:0;
}

.mm-points__list li::marker{
  color:#fca5a5;
}

@media (max-width:767px){
  .mm-points__list{
    padding-left:18px;
  }

  .mm-points__list li{
    font-size:12.5px;
    line-height:1.7;
  }
}

/* ---------------------------------------------------------
   3. 表セル内の箇条書き
   ulのpadding依存をやめ、点が必ずセル内側に入るようにする
--------------------------------------------------------- */
.analysis-table td ul,
.analysis-table th ul,
.analysis-table td ol,
.analysis-table th ol{
  margin:0;
  padding:0 0 0 1.35em;
  list-style-position:outside;
}

.analysis-table td ul,
.analysis-table th ul{
  list-style-type:disc;
}

.analysis-table td li,
.analysis-table th li{
  margin:0 0 6px;
  color:#334155;
  font-weight:600;
  line-height:1.7;
  text-align:left;
  overflow-wrap:anywhere;
}

.analysis-table td li:last-child,
.analysis-table th li:last-child{
  margin-bottom:0;
}

.analysis-table td li::marker,
.analysis-table th li::marker{
  color:#94a3b8;
}

/* 箇条書きを含むセルは左右余白を少し広く取り、点と枠線を離す */
.analysis-table td:has(> ul),
.analysis-table td:has(> ol),
.analysis-table th:has(> ul){
  padding-left:14px !important;
  padding-right:14px !important;
  text-align:left !important;
}

.analysis-table td li strong,
.analysis-table th li strong{
  color:#0f172a;
  font-weight:900;
}

@media (max-width:767px){
  .analysis-table td ul,
  .analysis-table th ul,
  .analysis-table td ol,
  .analysis-table th ol{
    padding-left:1.25em;
  }

  .analysis-table td:has(> ul),
  .analysis-table td:has(> ol),
  .analysis-table th:has(> ul){
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

/* ---------------------------------------------------------
   4. 続行・終了を判断する材料
   liを2カラムgridで固定すると3要素目が枠外に出るため、
   インラインで折り返す形へ変更する
--------------------------------------------------------- */
.mm-decision-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}

.mm-decision-panel{
  min-width:0;
  overflow:hidden;
}

.mm-decision-list{
  margin:0;
  padding:2px 12px 8px;
  list-style:none;
}

.mm-decision-list li{
  display:block;
  grid-template-columns:none;
  gap:0;
  min-width:0;
  max-width:100%;
  padding:10px 0;
  border-bottom:1px dashed #dbe3ec;
  color:#334155;
  font-size:12px;
  font-weight:650;
  line-height:1.8;
  overflow-wrap:anywhere;
  word-break:normal;
}

.mm-decision-list li:last-child{
  border-bottom:0;
}

.mm-decision-list li > strong,
.mm-decision-list li > span,
.mm-decision-list li > em,
.mm-decision-list li .font-num{
  display:inline;
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}

.mm-decision-list li > strong{
  margin-right:2px;
  color:#0f172a;
  font-weight:900;
}

@media (min-width:768px){
  .mm-decision-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:420px){
  .mm-decision-list li{
    display:block;
    grid-template-columns:none;
    gap:0;
  }
}

/* ---------------------------------------------------------
   5. よくある質問
   details / summary へ既存デザインを適用する
--------------------------------------------------------- */
.mm-faq{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.mm-faq__item{
  border-bottom:1px solid #eef2f6;
  background:#fff;
}

.mm-faq__item:last-child{
  border-bottom:0;
}

details.mm-faq__item > summary.mm-faq__q{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin:0;
  padding:14px;
  border:0;
  background:#fff;
  color:#111827;
  cursor:pointer;
  font-size:14px;
  font-weight:800;
  line-height:1.6;
  text-align:left;
  list-style:none;
  overflow-wrap:anywhere;
}

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

details.mm-faq__item > summary.mm-faq__q::marker{
  content:"";
}

details.mm-faq__item > summary.mm-faq__q:hover{
  background:#f9fafb;
}

details.mm-faq__item[open] > summary.mm-faq__q{
  background:#f5fbfa;
  color:#0f172a;
}

.mm-faq__q .mm-q{
  display:inline-grid;
  flex:0 0 24px;
  width:24px;
  height:24px;
  margin:0;
  place-items:center;
  border-radius:50%;
  background:var(--teal);
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.mm-faq__q i{
  flex:0 0 auto;
  margin-left:auto;
  color:#9ca3af;
  font-size:12px;
  transition:transform .2s ease;
}

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

.mm-faq__a{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:0 14px 15px;
  color:#4b5563;
  font-size:13px;
  line-height:1.85;
  overflow-wrap:anywhere;
}

.mm-faq__a .mm-a{
  display:inline-grid;
  flex:0 0 24px;
  width:24px;
  height:24px;
  margin:0;
  place-items:center;
  border-radius:50%;
  background:#fff0f1;
  color:var(--red);
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.mm-faq__a .table-scroll,
.mm-faq__a p{
  margin-top:0;
}

@media (max-width:767px){
  details.mm-faq__item > summary.mm-faq__q{
    padding:12px;
    font-size:13px;
  }

  .mm-faq__a{
    padding:0 12px 13px;
    font-size:12px;
  }
}

/* =========================================================
   v37 最終上書き
   1. ここがポイント（短文1行の見え方に統一）
   2. ホール実戦メニュー（スマホでも2列・説明文なし）
   3. 表セル内の箇条書き（点が枠外へ出るのを修正）
   4. 続行・終了パネル（文章が枠外で切れるのを修正）
   5. よくある質問（details/summaryへデザインを適用）

   ※ blog-app.css と main-app.css の両方の一番最後へ追記する。
     既存の「v36.1 最終上書き」ブロックより後ろに置くこと。
========================================================= */

/* ---------------------------------------------------------
   1. ここがポイント
--------------------------------------------------------- */
.mm-points__list{
  margin:0;
  padding-left:20px;
  list-style:disc outside;
}

.mm-points__list li{
  margin:0 0 8px;
  color:#111827;
  font-size:13px;
  font-weight:600;
  line-height:1.75;
  overflow-wrap:anywhere;
}

.mm-points__list li:last-child{
  margin-bottom:0;
}

.mm-points__list li::marker{
  color:#fca5a5;
}

@media (max-width:767px){
  .mm-points__list{
    padding-left:18px;
  }

  .mm-points__list li{
    font-size:12.5px;
    line-height:1.7;
  }
}

/* ---------------------------------------------------------
   3. 表セル内の箇条書き
   ulのpadding依存をやめ、点が必ずセル内側に入るようにする
--------------------------------------------------------- */
.analysis-table td ul,
.analysis-table th ul,
.analysis-table td ol,
.analysis-table th ol{
  margin:0;
  padding:0 0 0 1.35em;
  list-style-position:outside;
}

.analysis-table td ul,
.analysis-table th ul{
  list-style-type:disc;
}

.analysis-table td li,
.analysis-table th li{
  margin:0 0 6px;
  color:#334155;
  font-weight:600;
  line-height:1.7;
  text-align:left;
  overflow-wrap:anywhere;
}

.analysis-table td li:last-child,
.analysis-table th li:last-child{
  margin-bottom:0;
}

.analysis-table td li::marker,
.analysis-table th li::marker{
  color:#94a3b8;
}

/* 箇条書きを含むセルは左右余白を少し広く取り、点と枠線を離す */
.analysis-table td:has(> ul),
.analysis-table td:has(> ol),
.analysis-table th:has(> ul){
  padding-left:14px !important;
  padding-right:14px !important;
  text-align:left !important;
}

.analysis-table td li strong,
.analysis-table th li strong{
  color:#0f172a;
  font-weight:900;
}

@media (max-width:767px){
  .analysis-table td ul,
  .analysis-table th ul,
  .analysis-table td ol,
  .analysis-table th ol{
    padding-left:1.25em;
  }

  .analysis-table td:has(> ul),
  .analysis-table td:has(> ol),
  .analysis-table th:has(> ul){
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

/* ---------------------------------------------------------
   4. 続行・終了を判断する材料
   liを2カラムgridで固定すると3要素目が枠外に出るため、
   インラインで折り返す形へ変更する
--------------------------------------------------------- */
.mm-decision-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}

.mm-decision-panel{
  min-width:0;
  overflow:hidden;
}

.mm-decision-list{
  margin:0;
  padding:2px 12px 8px;
  list-style:none;
}

.mm-decision-list li{
  display:block;
  grid-template-columns:none;
  gap:0;
  min-width:0;
  max-width:100%;
  padding:10px 0;
  border-bottom:1px dashed #dbe3ec;
  color:#334155;
  font-size:12px;
  font-weight:650;
  line-height:1.8;
  overflow-wrap:anywhere;
  word-break:normal;
}

.mm-decision-list li:last-child{
  border-bottom:0;
}

.mm-decision-list li > strong,
.mm-decision-list li > span,
.mm-decision-list li > em,
.mm-decision-list li .font-num{
  display:inline;
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}

.mm-decision-list li > strong{
  margin-right:2px;
  color:#0f172a;
  font-weight:900;
}

@media (min-width:768px){
  .mm-decision-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:420px){
  .mm-decision-list li{
    display:block;
    grid-template-columns:none;
    gap:0;
  }
}

/* ---------------------------------------------------------
   5. よくある質問
   details / summary へ既存デザインを適用する
--------------------------------------------------------- */
.mm-faq{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.mm-faq__item{
  border-bottom:1px solid #eef2f6;
  background:#fff;
}

.mm-faq__item:last-child{
  border-bottom:0;
}

details.mm-faq__item > summary.mm-faq__q{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin:0;
  padding:14px;
  border:0;
  background:#fff;
  color:#111827;
  cursor:pointer;
  font-size:14px;
  font-weight:800;
  line-height:1.6;
  text-align:left;
  list-style:none;
  overflow-wrap:anywhere;
}

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

details.mm-faq__item > summary.mm-faq__q::marker{
  content:"";
}

details.mm-faq__item > summary.mm-faq__q:hover{
  background:#f9fafb;
}

details.mm-faq__item[open] > summary.mm-faq__q{
  background:#f5fbfa;
  color:#0f172a;
}

.mm-faq__q .mm-q{
  display:inline-grid;
  flex:0 0 24px;
  width:24px;
  height:24px;
  margin:0;
  place-items:center;
  border-radius:50%;
  background:var(--teal);
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.mm-faq__q i{
  flex:0 0 auto;
  margin-left:auto;
  color:#9ca3af;
  font-size:12px;
  transition:transform .2s ease;
}

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

.mm-faq__a{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:0 14px 15px;
  color:#4b5563;
  font-size:13px;
  line-height:1.85;
  overflow-wrap:anywhere;
}

.mm-faq__a .mm-a{
  display:inline-grid;
  flex:0 0 24px;
  width:24px;
  height:24px;
  margin:0;
  place-items:center;
  border-radius:50%;
  background:#fff0f1;
  color:var(--red);
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.mm-faq__a .table-scroll,
.mm-faq__a p{
  margin-top:0;
}

@media (max-width:767px){
  details.mm-faq__item > summary.mm-faq__q{
    padding:12px;
    font-size:13px;
  }

  .mm-faq__a{
    padding:0 12px 13px;
    font-size:12px;
  }
}

/* ---------------------------------------------------------
   6. 結論カードの大きい数値（mm-info__big）
   既存の「.mm-info__big span を小さくする」指定が
   font-num にも当たり、範囲表記の「〜」だけが大きく残るため、
   class付きspanは親のサイズ・太さを継承させる。
   単位（枚・G など）はclassを付けないspanで書くと従来どおり小さくなる。
--------------------------------------------------------- */
.mm-info__big span[class]{
  font-family:inherit;
  font-size:inherit;
  font-weight:inherit;
  color:inherit;
  letter-spacing:inherit;
}

/*
 * font-num は Roboto 指定だが、読み込まれている Roboto に900が無いため
 * font-weight:900 を指定しても細く描画される。
 * mm-info__big の中だけは本文フォント（Noto Sans JP）を継承させ、
 * 隣のカードの見出しと同じ太さ・濃さに揃える。
 * 表の中の font-num は従来どおり Roboto のまま。
 */
.mm-info__big .font-num,
.mm-info__mid .font-num{
  font-family:inherit;
  font-weight:inherit;
  font-variant-numeric:tabular-nums;
}

/* 範囲表記が途中で折り返さないようにする */
.mm-info__big{
  overflow-wrap:anywhere;
}

/* 色の指定だけは各ユーティリティを優先させる */
.mm-info__big .mm-txt-red{color:var(--red)}
.mm-info__big .mm-txt-blue{color:var(--blue)}
.mm-info__big .mm-txt-green{color:var(--green)}
.mm-info__big .mm-txt-purple{color:var(--purple)}
.mm-info__big .mm-txt-yellow{color:var(--yellow)}
.mm-info__big .mm-txt-gray{color:#9ca3af}

/* mm-info__mid も同じ扱いに揃える */
.mm-info__mid span[class]{
  font-family:inherit;
  font-size:inherit;
  font-weight:inherit;
  color:inherit;
}

/* ---------------------------------------------------------
   7. スマホの2列テーブル（条件｜理由 など長文×長文）
   縦見出し列が広がりすぎて本文列が1文字ずつ潰れるのを防ぐ。
   ・thは上寄せ・折り返し可・最大45%
   ・tdは残り幅をすべて使う
--------------------------------------------------------- */
.analysis-table th,
.analysis-table td{
  vertical-align:top;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* 行見出し（tbody内の左端th）は幅を取りすぎない */
.analysis-table tbody th:first-child{
  width:38%;
  max-width:45%;
  min-width:96px;
  text-align:left;
  font-weight:800;
  line-height:1.65;
}

@media (max-width:767px){
  .analysis-table tbody th:first-child{
    width:36%;
    min-width:84px;
    padding:10px 8px;
    font-size:11.5px;
  }

  .analysis-table td{
    padding:10px 10px;
    font-size:12px;
    line-height:1.75;
  }
}

/* 長文×長文の2列表はスマホでは縦積みに切り替える。
   HTML側で table-scroll に mm-table--stack を併記した表だけが対象。 */
@media (max-width:767px){
  .mm-table--stack table,
  .mm-table--stack thead,
  .mm-table--stack tbody,
  .mm-table--stack tr,
  .mm-table--stack th,
  .mm-table--stack td{
    display:block;
    width:100% !important;
    max-width:100% !important;
  }

  .mm-table--stack thead{
    display:none;
  }

  .mm-table--stack tr{
    margin:0 0 10px;
    border:1px solid #dbe3ef;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
  }

  .mm-table--stack tr:last-child{
    margin-bottom:0;
  }

  .mm-table--stack tbody th:first-child{
    padding:10px 12px;
    background:#f1f5f9;
    border-bottom:1px solid #e2e8f0;
    font-size:12.5px;
    font-weight:900;
    color:#0f172a;
  }

  .mm-table--stack tbody td{
    padding:10px 12px;
    border:0;
    font-size:12px;
    line-height:1.8;
    color:#475569;
  }

  /* 縦積み時はスクロール表示・案内チップを無効化 */
  .mm-table--stack{
    overflow:visible;
  }

  .mm-table--stack::before,
  .mm-table--stack::after{
    display:none !important;
    content:none !important;
  }
}

/* ---------------------------------------------------------
   8. 設定判別ポイント（重要度バッジ＋長文）の可読性
   バッジと本文が一体で「文字の壁」になるのを、
   カード型（バッジ行＋見出し＋本文）に整える。
--------------------------------------------------------- */
.mm-points__list li .mm-badge,
.mm-points__list li .mm-badge--red{
  display:inline-block;
  margin:0 6px 4px 0;
  vertical-align:middle;
}

/* 設定判別ポイント専用リスト。
   HTML側で ul.mm-points__list に mm-points__list--rank を併記して使う。 */
.mm-points__list--rank{
  padding-left:0;
  list-style:none;
}

.mm-points__list--rank li{
  position:relative;
  margin:0 0 10px;
  padding:12px 12px 12px 14px;
  border:1px solid #e2e8f0;
  border-left:4px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  font-size:12.5px;
  font-weight:500;
  line-height:1.85;
  color:#475569;
}

.mm-points__list--rank li:last-child{
  margin-bottom:0;
}

.mm-points__list--rank li::marker{
  content:"";
}

/* 重要度で左帯の色を変える（li側に併記するclass） */
.mm-points__list--rank li.mm-rank-s{border-left-color:var(--red)}
.mm-points__list--rank li.mm-rank-a{border-left-color:#f59e0b}
.mm-points__list--rank li.mm-rank-b{border-left-color:#3b82f6}
.mm-points__list--rank li.mm-rank-c{border-left-color:#94a3b8}

/* 1行目：バッジ＋項目名（strong） */
.mm-points__list--rank li > strong{
  display:block;
  margin:0 0 4px;
  font-size:13.5px;
  font-weight:900;
  color:#0f172a;
  line-height:1.5;
}

.mm-points__list--rank .mm-badge,
.mm-points__list--rank .mm-badge--red{
  margin-right:6px;
  vertical-align:1px;
}

/* 本文の中の数値・サンプル条件を拾いやすくする */
.mm-points__list--rank .font-num{
  font-weight:800;
  color:#0f172a;
}

.mm-points__list--rank .mm-point-sample{
  display:inline-block;
  margin-top:6px;
  padding:2px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:11px;
  font-weight:700;
}

@media (max-width:767px){
  .mm-points__list--rank li{
    padding:11px 10px 11px 12px;
    font-size:12px;
    line-height:1.8;
  }

  .mm-points__list--rank li > strong{
    font-size:13px;
  }
}

/* ---------------------------------------------------------
   9. 2列テーブルの自動最適化（HTML変更なしで効く）
   JSが付ける最小幅（--mm-table-min-width 既定720px）のせいで、
   2列表でも横スクロールになり、720pxの内側で比率を分け合うため
   右の本文が狭く見える。列数を :has() で判定して切り替える。

   ・430px以下 … 2列表は縦積みカードにする（見出し帯＋本文）
   ・431〜767px … 最小幅を解除して画面幅に収め、本文側を6割強にする
   ・3列以上 … 従来どおり横スクロール（最小幅だけ少し詰める）
   縦積みにしたくない表は table-scroll に mm-table--keep を併記する。
--------------------------------------------------------- */

/* 2列表＝tbodyの行の2番目のセルが最後のセル */
@media (max-width:767px){
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table{
    min-width:0 !important;
    width:100% !important;
    table-layout:fixed;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody th:first-child{
    width:37%;
  }

  /* 収まるので横スクロール案内は出さない */
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .table-scroll__guide{
    display:none !important;
  }

  /* 3列以上は最小幅を詰めてセル余白も圧縮 */
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(3)) .analysis-table{
    min-width:min(var(--mm-table-min-width,720px),560px);
  }
}

/* 430px以下は2列表を縦積みカードへ */
@media (max-width:430px){
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep){
    overflow:visible;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tr,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table th,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table td{
    display:block;
    width:100% !important;
    max-width:100% !important;
    border-right:0 !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table{
    border:0 !important;
    box-shadow:none !important;
    table-layout:auto;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table thead{
    display:none;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr{
    margin:0 0 10px;
    border:1px solid #dbe3ef !important;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr:last-child{
    margin-bottom:0;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody th:first-child{
    padding:10px 12px !important;
    border-bottom:1px solid #e2e8f0 !important;
    background:#f1f5f9 !important;
    color:#0f172a !important;
    font-size:12.5px;
    font-weight:900;
    text-align:left !important;
    line-height:1.7;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody td{
    padding:11px 12px !important;
    border-bottom:0 !important;
    background:#fff !important;
    color:#475569 !important;
    font-size:12px;
    line-height:1.85;
  }
}

/* :has() 非対応ブラウザ向けの保険。
   HTML側で mm-table--stack を併記した表は従来指定で縦積みになる。 */
@supports not selector(:has(*)){
  @media (max-width:767px){
    .analysis-table tbody th:first-child{
      width:34%;
      min-width:80px;
    }
  }
}

/* ---------------------------------------------------------
   10. 左端セルのはみ出し修正（優先度の競合解消）
   既存CSSの
     @media(max-width:900px){ .table-scroll.mm-table-wide ...
       .analysis-table tr > :first-child{ min-width:120px; white-space:nowrap } }
   が効いていて、幅を絞ったセルの中で折り返せず枠外へ出る。
   同じ条件で明示的に解除する。
--------------------------------------------------------- */
@media (max-width:900px){
  .analysis-table tr > :first-child,
  .table-scroll .analysis-table tr > :first-child,
  .table-scroll.mm-table-wide .analysis-table tr > :first-child,
  .table-scroll.mm-table-wide .table-scroll__viewport .analysis-table tr > :first-child,
  .table-scroll:not(.mm-table-ready) .analysis-table tr > :first-child{
    min-width:0 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal;
  }

  /* 見出し行だけは短いので折り返さない方が読みやすい */
  .analysis-table thead th{
    white-space:nowrap;
  }
}

/* 数値セルは途中で改行させない（1/1598.4 が割れるのを防ぐ） */
.analysis-table .font-num{
  white-space:nowrap;
}

/*
 * 生成HTML側で、数値ではない長文まで .font-num で囲まれている場合がある。
 * nowrap のままだと表は100%幅のままで文字だけセル内で見切れ、
 * 表が広がらないので横スクロールもできない。
 * JS側で長文と判定したものだけ折り返す。
 */
.analysis-table .font-num.mm-num-wrap{
  white-space:normal;
}

/* 縦積みへ切り替える画面幅を480pxまで広げる（360/390/430の実機を確実に含める） */
@media (max-width:480px){
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep){
    overflow:visible;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tr,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table th,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table td{
    display:block;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    border-right:0 !important;
    white-space:normal !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table{
    border:0 !important;
    box-shadow:none !important;
    table-layout:auto !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table thead{
    display:none !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr{
    margin:0 0 10px;
    border:1px solid #dbe3ef !important;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr:last-child{
    margin-bottom:0;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > *:first-child{
    padding:10px 12px !important;
    border-bottom:1px solid #e2e8f0 !important;
    background:#f1f5f9 !important;
    color:#0f172a !important;
    font-size:12.5px !important;
    font-weight:900 !important;
    text-align:left !important;
    line-height:1.7;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > *:last-child{
    padding:11px 12px !important;
    border-bottom:0 !important;
    background:#fff !important;
    color:#475569 !important;
    font-size:12px !important;
    line-height:1.85;
    text-align:left !important;
  }

  /* 縦積みでは高設定の強調色を帯だけに残す */
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > .mm-setting-max:first-child{
    background:#fff1f2 !important;
    color:#be123c !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > .mm-setting-high:first-child{
    background:#eef2ff !important;
    color:#4338ca !important;
  }
}

/* ---------------------------------------------------------
   11. 縦積みカードの見た目をサイトのデザインに馴染ませる
   ・サイト共通の「左に細い帯」モチーフ（section-title / mm-subhead /
     mm-acc-title と同じ言語）を見出しへ適用
   ・親のmm-card枠と二重に見えないよう、枠線と影を軽くする
   ・ゼブラを止めて縦のリズムを揃える
--------------------------------------------------------- */
@media (max-width:480px){
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep){
    margin:0 0 4px;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr{
    margin:0 0 8px;
    border:1px solid #e6ebf1 !important;
    border-radius:9px;
    background:#fff;
    box-shadow:none !important;
  }

  /* 見出し帯：左に teal の細い線、背景はごく薄いグレー */
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > *:first-child{
    padding:9px 12px 9px 14px !important;
    border-bottom:1px solid #eef2f6 !important;
    background:#f8fafc !important;
    box-shadow:inset 3px 0 0 var(--teal) !important;
    color:#111827 !important;
    font-size:12.5px !important;
    font-weight:800 !important;
    line-height:1.65;
  }

  /* 本文：本文用の文字色・行間に合わせる */
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > *:last-child{
    padding:10px 14px 12px !important;
    background:#fff !important;
    color:#4b5563 !important;
    font-size:12px !important;
    line-height:1.85;
  }

  /* ゼブラ無効化（縦積みでは色が飛んで見える） */
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr:nth-child(even) > *:first-child{
    background:#f8fafc !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr:nth-child(even) > *:last-child{
    background:#fff !important;
  }

  /* 高設定・最高設定の行は帯の色だけ変える（背景は白のまま） */
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > .mm-setting-max:first-child{
    background:#fff5f6 !important;
    box-shadow:inset 3px 0 0 #be123c !important;
    color:#9f1239 !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > .mm-setting-high:first-child{
    background:#f5f6ff !important;
    box-shadow:inset 3px 0 0 #4338ca !important;
    color:#3730a3 !important;
  }

  /* 「即ヤメ」「確認してから」などの小見出しと表の間隔を詰める */
  .mm-card .mm-subhead{
    margin-bottom:10px;
  }

  .mm-card .mm-subhead + .table-scroll{
    margin-top:0;
  }

  /* 表が続く場合の間隔 */
  .table-scroll + .mm-subhead{
    margin-top:18px;
  }
}

/* ---------------------------------------------------------
   12. 縦積みカードの見出し（第11節の上書き・最終版）
   ・tealの左帯は削除。小見出し側の帯と重なってくどく見えるため
   ・見出し帯の色はサイトのカード見出し（mm-card__h）寄りに寄せて、
     本文との段差を弱める
--------------------------------------------------------- */
@media (max-width:480px){
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr{
    margin:0 0 10px;
    border:1px solid #dbe3ef !important;
    border-radius:10px;
    background:#fff;
    box-shadow:none !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > *:first-child,
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr:nth-child(even) > *:first-child{
    padding:10px 13px !important;
    border-bottom:1px solid #e8edf3 !important;
    background:#f6f8fb !important;
    box-shadow:none !important;
    color:#374151 !important;
    font-size:12.5px !important;
    font-weight:800 !important;
    line-height:1.7;
  }

  /* 高設定・最高設定の行は文字色だけで示す（帯は付けない） */
  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > .mm-setting-max:first-child{
    background:#fdf6f7 !important;
    box-shadow:none !important;
    color:#9f1239 !important;
  }

  .table-scroll:has(.analysis-table tbody tr > *:nth-child(2):last-child):not(.mm-table--keep)
    .analysis-table tbody tr > .mm-setting-high:first-child{
    background:#f7f8fd !important;
    box-shadow:none !important;
    color:#3730a3 !important;
  }
}

/* ---------------------------------------------------------
   13. 表の縦横の使い分け（まとめ・仕様メモ）

   ● 縦積みカードにする（スマホ480px以下・自動）
     2列で、値が長い文章の表。
     例：条件｜理由／確認すること｜理由／項目｜内容／突入契機｜内容
     → HTML側の指定は不要。:has() で列数を判定して自動適用。

   ● 横型のまま維持する
     (a) 3列以上の表。設定別の数値比較・期待値表・小役確率など。
         縦積みにすると列の対応が読めなくなるため絶対に縦にしない。
     (b) 2列でも値が短い表（最長16文字以下）。
         例：成立役｜確率／ランプ色｜契機役／パターン｜示唆内容
         → table-scroll に mm-table--keep を併記する。
         付けないと縦に伸びて逆に読みにくくなる（quickcheckが検出）。

   ● 迷ったときの基準
     「セルの中身が1行で収まるか」。収まるなら横型、文章なら縦積み。
--------------------------------------------------------- */

/* 横型維持の表はスマホでも比率と余白を最適化する */
@media (max-width:480px){
  .table-scroll.mm-table--keep .analysis-table{
    min-width:0 !important;
    width:100% !important;
    table-layout:auto;
  }

  .table-scroll.mm-table--keep .analysis-table tbody th:first-child{
    width:auto;
    max-width:56%;
    padding:9px 10px;
    font-size:11.5px;
    line-height:1.6;
  }

  .table-scroll.mm-table--keep .analysis-table tbody td{
    padding:9px 10px;
    font-size:12px;
    text-align:right;
    white-space:nowrap;
  }

  /* 値が数値でない場合（示唆内容など）は右寄せをやめる */
  .table-scroll.mm-table--keep .analysis-table tbody td:not(:has(.font-num)){
    text-align:left;
    white-space:normal;
  }

  .table-scroll.mm-table--keep .table-scroll__guide{
    display:none !important;
  }
}

/* ---------------------------------------------------------
   14. 設定判別ポイントの羅列感をさらに抑える
   ・バッジを小さくして項目名を主役にする
   ・本文とサンプルチップの間に余白を入れて塊を分ける
--------------------------------------------------------- */
.mm-points__list--rank .mm-badge,
.mm-points__list--rank .mm-badge--red{
  min-width:0;
  min-height:0;
  margin:0 7px 0 0;
  padding:2px 7px;
  border-radius:5px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.02em;
  vertical-align:2px;
}

.mm-points__list--rank li > strong{
  display:block;
  margin:0 0 6px;
  padding:0 0 6px;
  border-bottom:1px dashed #e8edf3;
  font-size:13px;
  font-weight:900;
  color:#111827;
  line-height:1.55;
}

.mm-points__list--rank li{
  padding:12px 13px;
  border:1px solid #e6ebf1;
  border-radius:10px;
  background:#fff;
  box-shadow:none;
}

.mm-points__list--rank .mm-point-sample{
  margin-top:8px;
  padding:3px 9px;
  background:#f4f7fa;
  color:#475569;
  font-size:10.5px;
  font-weight:800;
}

@media (max-width:480px){
  .mm-points__list--rank li{
    padding:11px 11px;
    font-size:12px;
    line-height:1.85;
  }

  .mm-points__list--rank li > strong{
    font-size:12.5px;
  }
}

/* ---------------------------------------------------------
   15. フッターの関連機種（.mm-related）
   4カラム（1枠約285px）に筐体画像が素置きされており、
   縦長の筐体がそのまま巨大に表示されるのを抑える。
   画像ラッパー（__ph / __image）が有る場合と、
   .mm-related__item 直下にimgがある場合の両方に対応。
--------------------------------------------------------- */
.mm-related{
  padding:32px 0;
}

.mm-related__h{
  margin:0 0 16px;
  padding-left:12px;
  border-left:4px solid var(--teal);
  color:#111827;
  font-size:18px;
  font-weight:900;
  line-height:1.4;
}

.mm-related__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(132px,160px));
  justify-content:start;
  gap:14px;
}

.mm-related__item,
.mm-related__grid > a{
  display:flex;
  min-width:0;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.mm-related__item:hover,
.mm-related__grid > a:hover{
  border-color:#99f6e4;
  box-shadow:var(--shadow-sm);
}

/* 画像ラッパーがある場合 */
.mm-related__ph,
.mm-related__image{
  display:flex;
  width:100%;
  height:150px;
  min-height:0;
  align-items:center;
  justify-content:center;
  aspect-ratio:auto;
  margin:0;
  padding:8px;
  overflow:hidden;
  border:0;
  border-bottom:1px solid var(--border);
  border-radius:0;
  background:#f8fafc;
  box-sizing:border-box;
}

.mm-related__ph img,
.mm-related__image img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:134px;
  margin:0 auto;
  object-fit:contain;
  background:transparent;
}

/* ラッパーが無く .mm-related__item 直下にimgがある場合 */
.mm-related__item > img,
.mm-related__grid > a > img{
  display:block;
  width:100%;
  height:150px;
  padding:8px;
  border-bottom:1px solid var(--border);
  background:#f8fafc;
  object-fit:contain;
  box-sizing:border-box;
}

/* 機種名 */
.mm-related__item p,
.mm-related__title,
.mm-related__grid > a p{
  display:-webkit-box;
  overflow:hidden;
  margin:0;
  padding:9px 10px 11px;
  color:#1f2937;
  font-size:12.5px;
  font-weight:700;
  line-height:1.5;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.mm-related__item:hover p,
.mm-related__grid > a:hover p{
  color:var(--teal-700);
}

.mm-related__maker{
  display:block;
  padding:0 10px 10px;
  margin:0;
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
}

@media (max-width:767px){
  .mm-related{
    padding:24px 0;
  }

  .mm-related__h{
    margin-bottom:13px;
    font-size:16px;
  }

  .mm-related__grid{
    grid-template-columns:repeat(auto-fill,minmax(118px,1fr));
    gap:10px;
  }

  .mm-related__ph,
  .mm-related__image,
  .mm-related__item > img,
  .mm-related__grid > a > img{
    height:128px;
  }

  .mm-related__ph img,
  .mm-related__image img{
    max-height:112px;
  }

  .mm-related__item p,
  .mm-related__title,
  .mm-related__grid > a p{
    padding:8px 9px 10px;
    font-size:11.5px;
  }
}

/* 1件しかない場合に枠が横いっぱいへ伸びないようにする */
.mm-related__grid:has(> :only-child){
  grid-template-columns:minmax(132px,160px);
}

/* =========================================================
   関連機種：長い機種名を省略せず全文表示
   2026-07-27
========================================================= */

.mm-related,
.mm-related__grid {
  overflow: visible !important;
}

.mm-related__grid {
  align-items: stretch !important;
}

.mm-related__item {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

.mm-related__body {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 58px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 10px 12px 12px !important;
}

/* 現在のsingle.php用 */
.mm-related__title,
/* 旧single.phpの<p>出力にも対応 */
.mm-related__item p {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

@media (max-width: 767px) {
  .mm-related__body {
    min-height: 54px !important;
    padding: 9px 10px 11px !important;
  }

  .mm-related__title,
  .mm-related__item p {
    font-size: 13px !important;
  }
}

/* =========================================================
   機種解析ページ 文字選択停止対策 v20

   長大な解析本文内ではCSS containmentを使わない。
   シリーズ・メーカーページには適用しない。
========================================================= */

body.single-post .mm-content,
body.single-post .mm-content *,
body.single-post .mm-article,
body.single-post .mm-article * {
  contain: none !important;
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

/*
 * 過去の切り分けCSSが残っていても、
 * 本文の文字選択と画像への通常マウス操作を復元する。
 */
body.single-post .mm-article,
body.single-post .mm-article p,
body.single-post .mm-article li,
body.single-post .mm-article td,
body.single-post .mm-article th,
body.single-post .mm-article h1,
body.single-post .mm-article h2,
body.single-post .mm-article h3,
body.single-post .mm-article h4,
body.single-post .mm-article figcaption {
  -webkit-user-select: text !important;
  user-select: text !important;
}

body.single-post .mm-article img {
  pointer-events: auto !important;
}

/* Chromeのリンク・画像ドラッグによるクリック不成立対策 */
.mm-body a,
.mm-body img {
  -webkit-user-drag: none;
}

/* =========================================================
   解析ページ：現在地ナビと目次の最終統合版
   旧メニュー用の重複CSSは削除済み
========================================================= */

/* 旧ホール実戦メニューは表示しない */
.mm-hall-menu,
.mm-machine-menu {
  display: none;
}

/* PC上部ナビ：現在の解析サイト */
.mm-subnav__item.is-current,
.mm-subnav__item[aria-current="page"] {
  border-bottom-color: var(--teal);
  background: #f0fdfa;
  color: var(--teal-700);
}

.mm-subnav__item.is-current i,
.mm-subnav__item[aria-current="page"] i {
  color: var(--teal-700);
}

/* スマホ上部ナビ：現在の解析サイト */
.mm-navgrid__item.is-current,
.mm-navgrid__item[aria-current="page"] {
  position: relative;
  background: #f0fdfa;
  color: var(--teal-700);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.mm-navgrid__item.is-current i,
.mm-navgrid__item[aria-current="page"] i {
  color: var(--teal-700);
}

/* =========================================================
   機種ページ目次
========================================================= */

.mm-toc {
  margin: 8px 0 28px;
  overflow: hidden;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}

.mm-toc__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #e6ebf0;
  border-radius: 0;
  background: #fff;
  color: #172033;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  text-align: left;
}

.mm-toc__label::before {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  content: "≡";
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.mm-toc__label::after {
  margin-left: auto;
  color: #8a96a5;
  content: "見たい項目へ移動";
  font-size: 10px;
  font-weight: 700;
}

.mm-toc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
  background: #f7f9fc;
}

.mm-toc__grid > li {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.mm-toc__grid a {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  padding: 11px 48px 11px 14px;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  background: #fff;
  color: #263244;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    border-color .16s ease,
    background-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

/* 既存HTMLに入っている目次番号を非表示 */
.mm-toc__grid a > span {
  display: none;
}

/* SVG背景を使い、矢印を円の中央へ正確に固定 */
.mm-toc__grid a::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e7f7f4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  content: "";
  transform: translateY(-50%);
}

.mm-toc__grid a:hover,
.mm-toc__grid a:focus-visible {
  border-color: #78d6cc;
  background: #f0fdfa;
  color: #0f766e;
  box-shadow: 0 5px 14px rgba(15, 118, 110, .08);
}

.mm-toc__grid a:hover::after,
.mm-toc__grid a:focus-visible::after {
  background-color: #ccfbf1;
}

.mm-toc__grid a:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .18);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .mm-toc__grid {
    gap: 11px 12px;
    padding: 16px;
  }

  .mm-toc__grid a {
    min-height: 58px;
    padding-left: 16px;
    font-size: 12.5px;
  }
}

@media (max-width: 767px) {
  .mm-toc {
    margin: 6px 0 22px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .045);
  }

  .mm-toc__label {
    padding: 12px 13px;
    font-size: 13px;
  }

  .mm-toc__label::before {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 7px;
    font-size: 15px;
  }

  .mm-toc__label::after {
    content: "タップで移動";
    font-size: 9px;
  }

  .mm-toc__grid {
    gap: 8px;
    padding: 10px;
  }

  .mm-toc__grid a {
    min-height: 56px;
    padding: 9px 39px 9px 11px;
    border-radius: 9px;
    font-size: 10.5px;
    line-height: 1.35;
  }

  .mm-toc__grid a::after {
    right: 10px;
    width: 21px;
    height: 21px;
    background-size: 10px 10px;
  }

  .mm-toc__grid a:hover,
  .mm-toc__grid a:active,
  .mm-toc__grid a:focus-visible {
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  .mm-toc__grid {
    gap: 6px;
    padding: 8px;
  }

  .mm-toc__grid a {
    min-height: 58px;
    padding: 8px 34px 8px 8px;
    font-size: 9.5px;
  }

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

  .mm-toc__label::after {
    display: none;
    content: none;
  }
}


/* =========================================================
   テーブル表示統一
   - 単純な2列表は36%／64%・本文左揃え
   - 3列以上の比較表は従来どおり横スクロール
   - 筐体画像・リール配列はスマホ横スワイプ
========================================================= */

/* ---------------------------------------------------------
   単純な2列表：PC・スマホ共通ルール
--------------------------------------------------------- */

.table-scroll.mm-table--two-column {
  width: 100% !important;
  max-width: 100% !important;
}

.table-scroll.mm-table--two-column
  .analysis-table--two-column {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

/* 見出し行は中央揃えで統一 */
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  thead
  th {
  text-align: center !important;
}

/*
 * 1列目＝項目名、2列目＝内容。
 * thead・tbody・colgroupのどれに幅指定があっても、
 * 境界位置を36%／64%へ統一する。
 */
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  col:first-child,
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  tr
  > :first-child {
  width: 36% !important;
}

.table-scroll.mm-table--two-column
  .analysis-table--two-column
  col:nth-child(2),
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  tr
  > :nth-child(2):last-child {
  width: 64% !important;
}

/* 本文セルは左右とも左揃え */
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  tbody
  tr
  > :first-child,
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  tbody
  tr
  > :nth-child(2):last-child {
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* 左列がthの場合だけ項目名として太字を維持 */
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  tbody
  th:first-child {
  font-weight: 800 !important;
}

/* 右列は説明・値を問わず通常ウェイト */
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  tbody
  tr
  > :nth-child(2):last-child {
  font-weight: 400 !important;
}

/*
 * font-numなどの独自フォントサイズで、
 * 右列だけ大きく見える状態を防止する。
 */
.table-scroll.mm-table--two-column
  .analysis-table--two-column
  tbody
  tr
  > :nth-child(2):last-child
  .font-num {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/*
 * 2列表は画面幅内に収めるため、
 * 横スクロール案内・矢印・フェードは表示しない。
 */
.table-scroll.mm-table--two-column
  .table-scroll__guide,
.table-scroll.mm-table--two-column
  .table-scroll__arrow,
.table-scroll.mm-table--two-column::before,
.table-scroll.mm-table--two-column::after {
  display: none !important;
  content: none !important;
}


/* ---------------------------------------------------------
   設定比較表
   設定列を細くし、数値をパッと比較できる比率へ統一
--------------------------------------------------------- */

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

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

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

/* 設定＋数値の2列表：24%／76% */
.table-scroll.mm-table--setting-two-column
  .analysis-table--setting-two-column
  col:first-child,
.table-scroll.mm-table--setting-two-column
  .analysis-table--setting-two-column
  tr
  > :first-child {
  width: 24% !important;
}

.table-scroll.mm-table--setting-two-column
  .analysis-table--setting-two-column
  col:nth-child(2),
.table-scroll.mm-table--setting-two-column
  .analysis-table--setting-two-column
  tr
  > :nth-child(2):last-child {
  width: 76% !important;
}

/* 設定＋数値2項目の3列表：14%／43%／43% */
.table-scroll.mm-table--setting-three-column
  .analysis-table--setting-three-column
  col:first-child,
.table-scroll.mm-table--setting-three-column
  .analysis-table--setting-three-column
  tr
  > :first-child {
  width: 14% !important;
}

.table-scroll.mm-table--setting-three-column
  .analysis-table--setting-three-column
  col:nth-child(2),
.table-scroll.mm-table--setting-three-column
  .analysis-table--setting-three-column
  tr
  > :nth-child(2) {
  width: 43% !important;
}

.table-scroll.mm-table--setting-three-column
  .analysis-table--setting-three-column
  col:nth-child(3),
.table-scroll.mm-table--setting-three-column
  .analysis-table--setting-three-column
  tr
  > :nth-child(3) {
  width: 43% !important;
}

/* 設定比較表は見出し・数値とも中央揃え */
.table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  th,
.table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  td {
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  vertical-align: middle !important;
}

/* 右側の値だけ独自フォントで大きくならないよう統一 */
.table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  td
  *,
.table-scroll.mm-table--setting-comparison
  .analysis-table--setting-comparison
  .font-num {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* 画面内に収まるため横スクロール案内は表示しない */
.table-scroll.mm-table--setting-comparison
  .table-scroll__guide,
.table-scroll.mm-table--setting-comparison
  .table-scroll__arrow,
.table-scroll.mm-table--setting-comparison::before,
.table-scroll.mm-table--setting-comparison::after {
  display: none !important;
  content: none !important;
}

/* ---------------------------------------------------------
   数値比較型2列表
   設定別確率・出玉率などは縦方向の余白を抑える
--------------------------------------------------------- */

/*
 * 短い設定名に対して左列が広くなりすぎないよう、
 * 数値比較型だけ34%／66%にする。
 */
.table-scroll.mm-table--compact-comparison
  .analysis-table--compact-comparison
  col:first-child,
.table-scroll.mm-table--compact-comparison
  .analysis-table--compact-comparison
  tr
  > :first-child {
  width: 34% !important;
}

.table-scroll.mm-table--compact-comparison
  .analysis-table--compact-comparison
  col:nth-child(2),
.table-scroll.mm-table--compact-comparison
  .analysis-table--compact-comparison
  tr
  > :nth-child(2):last-child {
  width: 66% !important;
}

/* ---------------------------------------------------------
   スマホ
--------------------------------------------------------- */

@media (max-width: 767px) {

  /* 筐体画像・リール配列は横並びでスワイプ */
  #spec > .mm-grid-2:first-of-type {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    width: auto !important;
    margin-right: -2px !important;
    margin-left: -2px !important;
    padding: 0 2px 9px !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;
  }

  #spec > .mm-grid-2:first-of-type::-webkit-scrollbar {
    height: 7px;
  }

  #spec > .mm-grid-2:first-of-type::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #eef2f6;
  }

  #spec > .mm-grid-2:first-of-type::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94a3b8;
  }

  #spec > .mm-grid-2:first-of-type > .mm-card {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 min(78vw, 286px) !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  /*
   * 2列表はJS適用前・適用後とも横スクロールさせない。
   */
  .table-scroll.mm-table--two-column,
  .table-scroll.mm-table--two-column.mm-table-ready {
    overflow: visible !important;
  }

  .table-scroll.mm-table--two-column
    .table-scroll__viewport {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .table-scroll.mm-table--two-column
    .analysis-table--two-column {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  .table-scroll.mm-table--two-column
    .analysis-table--two-column
    > thead {
    display: table-header-group !important;
  }

  .table-scroll.mm-table--two-column
    .analysis-table--two-column
    > tbody {
    display: table-row-group !important;
    width: auto !important;
  }

  .table-scroll.mm-table--two-column
    .analysis-table--two-column
    tr {
    display: table-row !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .table-scroll.mm-table--two-column
    .analysis-table--two-column
    th,
  .table-scroll.mm-table--two-column
    .analysis-table--two-column
    td {
    display: table-cell !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 9px 10px !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: 11.5px !important;
    line-height: 1.65 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    vertical-align: middle !important;
    box-shadow: none !important;
  }

  /*
   * セル内にspan・small・strongがあっても、
   * 文字サイズと行間はセルへ揃える。
   * 太字指定そのものはstrongに残す。
   */
  .table-scroll.mm-table--two-column
    .analysis-table--two-column
    tbody
    td
    * {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  /* -------------------------------------------------------
     設定比較表をコンパクト表示
  ------------------------------------------------------- */

  .mm-card:has(.mm-table--setting-comparison) {
    padding: 10px !important;
  }

  .mm-card:has(.mm-table--setting-comparison)
    > .mm-card__h {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }

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

  .table-scroll.mm-table--setting-comparison
    .analysis-table--setting-comparison
    > thead {
    display: table-header-group !important;
  }

  .table-scroll.mm-table--setting-comparison
    .analysis-table--setting-comparison
    > tbody {
    display: table-row-group !important;
  }

  .table-scroll.mm-table--setting-comparison
    .analysis-table--setting-comparison
    tr {
    display: table-row !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .table-scroll.mm-table--setting-comparison
    .analysis-table--setting-comparison
    th,
  .table-scroll.mm-table--setting-comparison
    .analysis-table--setting-comparison
    td {
    display: table-cell !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    padding: 6px 6px !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: normal !important;
    vertical-align: middle !important;
    box-shadow: none !important;
  }

  .table-scroll.mm-table--setting-comparison
    .analysis-table--setting-comparison
    thead
    th {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .table-scroll.mm-table--setting-comparison
    .analysis-table--setting-comparison
    td
    > :first-child {
    margin-top: 0 !important;
  }

  .table-scroll.mm-table--setting-comparison
    .analysis-table--setting-comparison
    td
    > :last-child {
    margin-bottom: 0 !important;
  }

  /* -------------------------------------------------------
     数値比較型2列表をコンパクト表示
  ------------------------------------------------------- */

  /*
   * カード自体の余白と見出し下の余白も少し抑え、
   * 設定差を一画面で確認しやすくする。
   */
  .mm-card:has(.mm-table--compact-comparison) {
    padding: 10px !important;
  }

  .mm-card:has(.mm-table--compact-comparison)
    > .mm-card__h {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }

  .table-scroll.mm-table--compact-comparison
    .analysis-table--compact-comparison
    thead
    th {
    padding: 7px 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .table-scroll.mm-table--compact-comparison
    .analysis-table--compact-comparison
    tbody
    th,
  .table-scroll.mm-table--compact-comparison
    .analysis-table--compact-comparison
    tbody
    td {
    height: auto !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  /*
   * 設定値・確率値は左揃えを維持しつつ、
   * セル内の余計な上下マージンを消す。
   */
  .table-scroll.mm-table--compact-comparison
    .analysis-table--compact-comparison
    tbody
    td
    > :first-child {
    margin-top: 0 !important;
  }

  .table-scroll.mm-table--compact-comparison
    .analysis-table--compact-comparison
    tbody
    td
    > :last-child {
    margin-bottom: 0 !important;
  }

}


/* =========================================================
   v11 上部メニュー：現在地表示の全ページ統一
   is-active / is-current / aria-current を同じ見た目にする
========================================================= */

/* PC上部メニュー：噂・リークページの表示へ統一 */
body .mm-subnav .mm-subnav__item.is-active,
body .mm-subnav .mm-subnav__item.is-current,
body .mm-subnav .mm-subnav__item[aria-current="page"] {
  position: relative !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 2px solid #0d9488 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(
    180deg,
    #fff 0%,
    #f0fdfa 100%
  ) !important;
  color: #0f766e !important;
  box-shadow: none !important;
}

body .mm-subnav .mm-subnav__item.is-active i,
body .mm-subnav .mm-subnav__item.is-current i,
body .mm-subnav .mm-subnav__item[aria-current="page"] i {
  color: #0d9488 !important;
}

/* スマホ6分割メニューも同じトーンへ統一 */
body .mm-header-mobile__navgrid .mm-navgrid__item.is-active,
body .mm-header-mobile__navgrid .mm-navgrid__item.is-current,
body .mm-header-mobile__navgrid .mm-navgrid__item[aria-current="page"] {
  position: relative !important;
  border-color: #99f6e4 !important;
  border-radius: 0 !important;
  background: #f0fdfa !important;
  color: #0f766e !important;
  box-shadow: none !important;
}

body .mm-header-mobile__navgrid .mm-navgrid__item.is-active i,
body .mm-header-mobile__navgrid .mm-navgrid__item.is-current i,
body .mm-header-mobile__navgrid .mm-navgrid__item[aria-current="page"] i,
body .mm-header-mobile__navgrid .mm-navgrid__item.is-active span,
body .mm-header-mobile__navgrid .mm-navgrid__item.is-current span,
body .mm-header-mobile__navgrid .mm-navgrid__item[aria-current="page"] span {
  color: #0f766e !important;
}

body .mm-header-mobile__navgrid .mm-navgrid__item.is-active::after,
body .mm-header-mobile__navgrid .mm-navgrid__item.is-current::after,
body .mm-header-mobile__navgrid .mm-navgrid__item[aria-current="page"]::after {
  position: absolute !important;
  right: 8px !important;
  bottom: 5px !important;
  left: 8px !important;
  display: block !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #0d9488 !important;
  content: "" !important;
}

/* =========================================================
   スマホ下部オーバーレイ広告
========================================================= */
.k6-overlay-ad[hidden] {
  display: none !important;
}

.k6-overlay-ad {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99998;

  width: 100%;
  box-sizing: border-box;

  padding-bottom: env(safe-area-inset-bottom);

  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.22);

  transform: translate3d(0, 0, 0);
}

.k6-overlay-ad__bar {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  width: min(100%, 420px);
  margin: 0 auto;
  padding: 3px 8px;
  box-sizing: border-box;

  color: #cbd5e1;
  font-size: 9px;
  line-height: 1;
}

.k6-overlay-ad__close {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  gap: 4px;

  padding: 2px 7px;

  border: 0;
  border-radius: 5px;

  background: rgba(255, 255, 255, 0.14);
  color: #fff;

  font: inherit;
  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
}

.k6-overlay-ad__inner {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  text-align: center;
}

.k6-overlay-ad__inner > div {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
}

/* 広告の高さ分だけ本文下部に余白を確保 */
body.k6-has-overlay-ad {
  padding-bottom: calc(
    var(--k6-overlay-ad-height, 80px) + 8px
  ) !important;
}

/* PCでは表示しない */
@media (min-width: 768px) {
  .k6-overlay-ad {
    display: none !important;
  }

  body.k6-has-overlay-ad {
    padding-bottom: 0 !important;
  }
}

/* =========================================================
   v39 追記

   1. 基本スペック：筐体 ＋ 主要3数値（新構造）
   2. 機種情報テーブル（新構造・PCは2列）
   3. 目次3層
   4. 打ち方の結論を常時表示
   5. やめどき判断フロー
   6. 打ち方：リール配列・停止形画像
   7. 配当表
   8. 余白圧縮
   9. 旧構造の救済（公開済みページ用）

   ※ blog-app.css と main-app.css の一番最後へ追記する。
     以前追記した v37.10 / v37.11 / v38 のブロックはすべて削除して
     このブロック1つに置き換えること。

   新しく作るページは新構造、公開済みのページは旧構造のまま
   どちらも崩れないように書いてある。
========================================================= */

/* ---------------------------------------------------------
   1. 基本スペック：筐体 ＋ 主要3数値

   筐体は縦長なので、横に長い表を置くと必ず余白が出る。
   高さを3分割した数値ブロックを置くことで隙間をなくす。
--------------------------------------------------------- */

.mm-spec-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.mm-spec-hero__img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0.5px solid var(--line, #e2e8f0);
  border-radius: 10px;
  background: #f8fafc;
}

.mm-spec-hero__img img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
}

.mm-spec-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.mm-spec-key__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f5f9;
}

.mm-spec-key__label {
  color: var(--muted, #64748b);
  font-size: 11px;
  line-height: 1.3;
}

.mm-spec-key__value {
  color: var(--ink, #0f172a);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-all;
}

.mm-spec-key__unit {
  margin-left: 1px;
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 767px) {
  .mm-spec-hero {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .mm-spec-hero__img {
    padding: 6px;
  }

  .mm-spec-hero__img img {
    max-height: 168px;
  }

  /* 3項目を縦に積んで筐体の高さを使い切る */
  .mm-spec-key {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-content: stretch;
  }

  .mm-spec-key__item {
    padding: 6px 0;
    border-bottom: 0.5px solid var(--line, #e2e8f0);
    border-radius: 0;
    background: transparent;
  }

  .mm-spec-key__item:last-child {
    border-bottom: 0;
  }

  .mm-spec-key__label {
    font-size: 10.5px;
  }

  .mm-spec-key__value {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .mm-spec-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .mm-spec-hero__img img {
    max-height: 150px;
  }

  .mm-spec-key__value {
    font-size: 15.5px;
  }
}

/* ---------------------------------------------------------
   2. 機種情報テーブル（PCは2列に分けて縦を詰める）
--------------------------------------------------------- */

.mm-spec-table table {
  width: 100%;
  table-layout: fixed;
}

.mm-spec-table th {
  width: 132px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .mm-spec-table table,
  .mm-spec-table tbody {
    display: block;
  }

  .mm-spec-table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .mm-spec-table tr {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: start;
    border-bottom: 0.5px solid var(--line, #e2e8f0);
  }

  .mm-spec-table th,
  .mm-spec-table td {
    width: auto;
    padding: 6px 4px;
    border: 0;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .mm-spec-table th {
    background: transparent;
    color: var(--muted, #64748b);
    font-weight: 500;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .mm-spec-table th {
    width: 96px;
  }
}

/* ---------------------------------------------------------
   3. 目次3層
--------------------------------------------------------- */

.mm-toc-primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.mm-toc-primary__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--brand, #14b8a6);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
}

.mm-toc-primary__label {
  color: var(--ink, #0f172a);
  font-size: 12.5px;
  font-weight: 700;
}

.mm-toc-primary__value {
  color: var(--brand-dark, #0d9488);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.mm-toc-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.mm-toc-secondary__item {
  padding: 5px 12px;
  border: 0.5px solid var(--line, #e2e8f0);
  border-radius: 99px;
  background: #fff;
  color: var(--ink, #0f172a);
  font-size: 12px;
  text-decoration: none;
}

.mm-toc-more {
  border-top: 0.5px solid var(--line, #e2e8f0);
  padding-top: 8px;
}

.mm-toc-more > summary {
  cursor: pointer;
  color: var(--muted, #64748b);
  font-size: 12px;
  list-style: none;
}

.mm-toc-more > summary::-webkit-details-marker {
  display: none;
}

.mm-toc-more > summary::after {
  content: "▼";
  margin-left: 6px;
  font-size: 9px;
}

.mm-toc-more[open] > summary::after {
  content: "▲";
}

.mm-toc-more .mm-toc__grid {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .mm-toc-primary {
    grid-template-columns: 1fr 1fr;
  }

  .mm-toc-primary__value {
    font-size: 14px;
  }
}

/* ---------------------------------------------------------
   4. 打ち方の結論（アコーディオンを開かずに読める位置）
--------------------------------------------------------- */

.mm-howto-lead {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mm-howto-lead__label {
  color: var(--muted, #64748b);
  font-size: 11.5px;
}

.mm-howto-lead__target {
  color: var(--ink, #0f172a);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.mm-howto-lead__sub {
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .mm-howto-lead__target {
    font-size: 19px;
  }
}

/* ---------------------------------------------------------
   5. やめどき判断フロー
--------------------------------------------------------- */

.mm-flowcheck {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mm-flowcheck__step {
  position: relative;
  padding: 10px 10px 10px 30px;
  border-bottom: 0.5px solid var(--line, #e2e8f0);
}

.mm-flowcheck__step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 10px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--brand, #14b8a6);
  border-radius: 50%;
}

.mm-flowcheck__step::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: -1px;
  left: 14px;
  width: 2px;
  background: var(--line, #e2e8f0);
}

.mm-flowcheck__step:last-of-type::after {
  display: none;
}

.mm-flowcheck__q {
  margin: 0 0 3px;
  color: var(--ink, #0f172a);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.mm-flowcheck__a {
  margin: 0;
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.6;
}

.mm-flowcheck__result {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--ink, #0f172a);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   6. 打ち方：リール配列と停止形画像

   リール配列は3列×約21コマの縦長画像。
   高さで縛ると幅が潰れて図柄が読めなくなるため、幅を基準にする。
--------------------------------------------------------- */

.mm-hitikata .mm-reel-card {
  text-align: center;
}

.mm-hitikata .mm-reel-card img {
  width: auto;
  max-width: min(100%, 340px);
  height: auto;
  max-height: 760px;
  margin: 0 auto;
  border: 0.5px solid var(--line, #e2e8f0);
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .mm-hitikata .mm-reel-card img {
    max-width: min(100%, 280px);
    max-height: 620px;
  }
}

/* 停止形などの打ち方画像：原寸を超えて拡大しない
   既存の width:100%!important; height:100%!important が
   小さい画像も枠いっぱいへ引き伸ばしていた。
   object-fit:contain は縦横比を守るだけで拡大は止めない。 */

.mm-hitikata .mm-ddt__img,
.mm-hitikata .mm-stepcard__ph {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.mm-hitikata .mm-ddt__img {
  width: 100% !important;
  max-width: 320px !important;
  height: 190px !important;
  margin: 0 !important;
}

.mm-hitikata .mm-stepcard__ph {
  width: 100% !important;
  max-width: 100% !important;
  height: 145px !important;
  margin: 0 0 10px !important;
}

.mm-hitikata .mm-ddt__img > *,
.mm-hitikata .mm-stepcard__ph > *,
.mm-hitikata .mm-ddt__img figure,
.mm-hitikata .mm-stepcard__ph figure,
.mm-hitikata .mm-ddt__img picture,
.mm-hitikata .mm-stepcard__ph picture,
.mm-hitikata .mm-ddt__img a,
.mm-hitikata .mm-stepcard__ph a {
  overflow: hidden !important;
}

.mm-hitikata .mm-ddt__img img,
.mm-hitikata .mm-stepcard__ph img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  border-radius: 6px !important;
  object-fit: contain !important;
}

@media (max-width: 767px) {
  .mm-hitikata .mm-ddt__img,
  .mm-hitikata .mm-stepcard__ph {
    padding: 7px !important;
  }

  .mm-hitikata .mm-ddt__img {
    max-width: 100% !important;
    height: 180px !important;
    margin: 0 auto !important;
  }

  .mm-hitikata .mm-stepcard__ph {
    max-width: 300px !important;
    height: 165px !important;
    margin: 0 auto 10px !important;
  }
}

@media (max-width: 380px) {
  .mm-hitikata .mm-ddt__img {
    height: 162px !important;
  }

  .mm-hitikata .mm-stepcard__ph {
    max-width: 268px !important;
    height: 150px !important;
  }
}

/* ---------------------------------------------------------
   7. 配当表

   新構造：#spec 直下は spec-hero → 機種情報 → 配当表 の順
   旧構造：#spec 直下は mm-grid-2 → 配当表 の順
   どちらも拾えるよう2通りのセレクタを書く。
--------------------------------------------------------- */

#spec > div:nth-of-type(2),
#spec > div:nth-of-type(3) {
  overflow: hidden;
}

#spec > div:nth-of-type(2) img,
#spec > div:nth-of-type(3) img {
  display: block;
  width: auto;
  max-width: min(100%, 460px);
  height: auto;
  max-height: 210px;
  margin: 0 auto;
  object-fit: contain;
}

#spec > div:nth-of-type(2) table:not(.mm-spec-table table),
#spec > div:nth-of-type(3) table {
  max-width: 560px !important;
  margin: 0 auto !important;
  table-layout: fixed !important;
}

@media (max-width: 767px) {
  #spec > div:nth-of-type(2) img,
  #spec > div:nth-of-type(3) img {
    max-width: 100%;
    max-height: 170px;
  }
}

/* ---------------------------------------------------------
   8. 余白圧縮

   section間48px × 16 と カード余白40px × 30 で
   スマホ3画面分の空白が生まれていた。
--------------------------------------------------------- */

.mm-article .mm-section {
  margin-bottom: 30px;
}

.mm-article .mm-card {
  margin-bottom: 12px;
  padding: 11px;
}

.mm-article .table-scroll {
  margin-bottom: 10px;
}

.mm-article .mm-note {
  text-align: left;
}

@media (max-width: 767px) {
  .mm-article .mm-section {
    margin-bottom: 24px;
  }

  .mm-article .mm-card {
    margin-bottom: 10px;
    padding: 10px;
  }
}

/* ---------------------------------------------------------
   9. 旧構造の救済（公開済みページ用）

   #spec 直下の mm-grid-2 に筐体とリールが並ぶ形。
   縦横比が違う2枚で高さが揃わないため枠を固定し、
   スマホの横スワイプは2カラム固定へ変える。
--------------------------------------------------------- */

#spec > .mm-grid-2 .mm-card--center img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
}

#spec > .mm-grid-2 .mm-card--center > *:not(.mm-card__h) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 196px;
  padding: 6px;
  border-radius: 8px;
  background: #f8fafc;
}

@media (max-width: 767px) {
  #spec > .mm-grid-2:first-of-type {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 8px !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  #spec > .mm-grid-2:first-of-type > .mm-card {
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
    scroll-snap-align: none !important;
  }

  #spec > .mm-grid-2 .mm-card--center > *:not(.mm-card__h) {
    height: 132px;
  }
}

/* ---------------------------------------------------------
   10. 基本スペック：筐体 ＋ 機種情報 ＋ タグ（v40）

   配当表は図柄画像を持つため横に置くと必ず重くなる。
   筐体の横は機種情報にして、配当表は下の全幅カードへ。

   ショートコードが img を figure / a などで包む場合、
   max-width:100% が包み要素の原寸に対して解決されてはみ出すため、
   包み要素まで幅を縛る。
--------------------------------------------------------- */

.mm-spec-hero {
  display: grid !important;
  grid-template-columns: 186px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

.mm-spec-hero__img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  min-width: 0 !important;
  padding: 10px !important;
  border: 0.5px solid var(--line, #e2e8f0) !important;
  border-radius: 10px !important;
  background: linear-gradient(#fff, #f8fafc) !important;
}

.mm-spec-hero__img > *,
.mm-spec-hero__img figure,
.mm-spec-hero__img picture,
.mm-spec-hero__img a,
.mm-spec-hero__img span,
.mm-spec-hero__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;
}

.mm-spec-hero__img img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 268px !important;
  margin: 0 auto !important;
  border-radius: 6px !important;
  object-fit: contain !important;
}

/* ---- タグ ---- */

.mm-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.mm-spec-tag {
  padding: 3px 9px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--muted, #64748b);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
}

.mm-spec-tag:nth-child(1) {
  background: #e6fffa;
  color: #0d9488;
}

.mm-spec-tag:nth-child(2) {
  background: #eff6ff;
  color: #2563eb;
}

.mm-spec-tag:nth-child(3) {
  background: #fff1f2;
  color: #be123c;
}

/* ---- 機種情報テーブル ---- */

.mm-spec-table table {
  width: 100% !important;
  table-layout: fixed !important;
}

.mm-spec-table th {
  width: 104px !important;
  padding: 6px 9px !important;
  background: #f8fafc !important;
  color: var(--muted, #64748b) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-align: left !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}

.mm-spec-table td {
  padding: 6px 9px !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
}

/* ---- 配当表（全幅・空欄が出ないカード型） ---- */

.mm-payout-card .table-scroll,
.mm-payout-card .table-scroll__viewport {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}

.mm-payout-card table,
.mm-payout-card tbody {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
}

/* 行を2列に折り返してカード化する */
.mm-payout-card tbody {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 6px !important;
}

.mm-payout-card tr {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
}

.mm-payout-card th,
.mm-payout-card td {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  vertical-align: middle !important;
  white-space: normal !important;
}

/* 空セルは詰める（払い出しのないボーナス行の穴を消す） */
.mm-payout-card td:empty {
  display: none !important;
}

.mm-payout-card td:last-child {
  margin-left: auto !important;
  font-weight: 700 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.mm-payout-card img {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  height: 21px !important;
  max-height: 21px !important;
  margin: 0 1px !important;
  vertical-align: middle !important;
  object-fit: contain !important;
}

.mm-payout-card .table-scroll__guide,
.mm-payout-card .table-scroll__arrow {
  display: none !important;
}

@media (max-width: 767px) {
  /* 横並びだと表のほうが3倍近く長く、筐体の下に大きな空白が出る。
     スマホは筐体を上に置いて全幅で使い切る。 */
  .mm-spec-hero {
    display: block !important;
  }

  .mm-spec-hero__img {
    width: 100% !important;
    max-width: 208px !important;
    margin: 0 auto 10px !important;
    padding: 8px !important;
  }

  .mm-spec-hero__img img {
    max-height: 262px !important;
  }

  .mm-spec-tags {
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
  }

  .mm-spec-tag {
    padding: 3px 8px;
    font-size: 10px;
  }

  .mm-spec-table th {
    width: 82px !important;
    padding: 5px 6px !important;
    font-size: 10.5px !important;
  }

  .mm-spec-table td {
    padding: 5px 6px !important;
    font-size: 11px !important;
  }

  .mm-payout-card tbody {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .mm-payout-card th,
  .mm-payout-card td {
    font-size: 10px !important;
  }

  .mm-payout-card img {
    height: 19px !important;
    max-height: 19px !important;
  }
}

@media (max-width: 380px) {
  .mm-spec-hero__img {
    max-width: 178px !important;
  }

  .mm-spec-hero__img img {
    max-height: 224px !important;
  }

  .mm-spec-table th {
    width: 72px !important;
  }
}

/* ---------------------------------------------------------
   11. 目次のデザイン調整（v40）
--------------------------------------------------------- */

.mm-toc-primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 0;
}

.mm-toc-primary__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid var(--brand, #14b8a6);
  border-radius: 9px;
  background: #fff;
  text-decoration: none;
}

.mm-toc-secondary {
  margin-bottom: 12px;
}

/* 「くわしい解析」を押せる見た目にする */
.mm-toc-more {
  border-top: 0;
  padding-top: 0;
}

.mm-toc-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  color: var(--muted, #64748b);
  font-size: 11.5px;
  list-style: none;
}

.mm-toc-more > summary::-webkit-details-marker {
  display: none;
}

.mm-toc-more > summary::after {
  content: "▼";
  font-size: 9px;
}

.mm-toc-more[open] > summary::after {
  content: "▲";
}

.mm-toc-more .mm-toc__grid {
  margin-top: 10px;
}

/* 目次カードの内側に余白を確保する */
.mm-toc {
  padding: 0 !important;
  overflow: hidden;
}

.mm-toc__label {
  margin: 0 !important;
  padding: 11px 14px !important;
  border-bottom: 0.5px solid var(--line, #e2e8f0);
}

.mm-toc > .mm-toc-primary,
.mm-toc > .mm-toc-secondary,
.mm-toc > .mm-toc-more,
.mm-toc > .mm-toc__grid {
  margin-inline: 14px !important;
}

.mm-toc > .mm-toc-primary {
  margin-top: 12px !important;
}

.mm-toc > .mm-toc-more {
  margin-bottom: 14px !important;
}

@media (max-width: 767px) {
  .mm-toc-primary {
    grid-template-columns: 1fr 1fr;
  }

  .mm-toc__label {
    padding: 10px 12px !important;
  }

  .mm-toc > .mm-toc-primary,
  .mm-toc > .mm-toc-secondary,
  .mm-toc > .mm-toc-more,
  .mm-toc > .mm-toc__grid {
    margin-inline: 12px !important;
  }
}

/* =========================================================
   PC：設定示唆「まず押さえる示唆」のカード間余白 v2
   marginではなく親をgrid化してgapを使う。
   これなら隣接ブロックのmargin相殺/上書きの影響を受けない。
========================================================= */
@media (min-width: 768px) {
  #suggest > .mm-card:first-of-type {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 12px !important;
  }

  #suggest > .mm-card:first-of-type > .mm-card__h {
    margin-bottom: 0 !important;
  }

  #suggest > .mm-card:first-of-type > .mm-info {
    margin: 0 !important;
  }
}

/* =========================================================
   設定差：実戦推移から見えるポイント
   既存HTML（h4 + ul）のまま自動でカード化
========================================================= */

/* 「実戦推移から見えるポイント」の見出し */
#suggest .accordion-content h4:has(+ ul) {
  position: relative;
  margin: 20px 0 0 !important;
  padding: 12px 14px 12px 42px;
  border: 1px solid #cfe3e0;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fffd 100%);
  color: #0f3f3a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

#suggest .accordion-content h4:has(+ ul)::before {
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

/* 直後の箇条書きを2列カードへ */
#suggest .accordion-content h4 + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 4px !important;
  padding: 12px !important;
  border: 1px solid #cfe3e0;
  border-top: 0;
  border-radius: 0 0 11px 11px;
  background: #fbfefd;
  list-style: none !important;
}

#suggest .accordion-content h4 + ul > li {
  position: relative;
  min-width: 0;
  margin: 0 !important;
  padding: 11px 12px 11px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

#suggest .accordion-content h4 + ul > li::before {
  position: absolute;
  top: 12px;
  left: 11px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #dff8f3;
  color: #0f766e;
  content: "●";
  font-size: 7px;
  line-height: 1;
}

#suggest .accordion-content h4 + ul > li::marker {
  content: "";
}

/* 数字を少し拾いやすく */
#suggest .accordion-content h4 + ul .font-num {
  color: #0f172a;
  font-weight: 800;
}

@media (max-width: 767px) {
  #suggest .accordion-content h4:has(+ ul) {
    margin-top: 16px !important;
    padding: 11px 12px 11px 39px;
    font-size: 13px;
  }

  #suggest .accordion-content h4 + ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 9px !important;
  }

  #suggest .accordion-content h4 + ul > li {
    padding: 10px 10px 10px 31px;
    font-size: 11.5px;
    line-height: 1.7;
  }

  #suggest .accordion-content h4 + ul > li::before {
    top: 11px;
    left: 10px;
  }
}

/* =========================================================
   v4 最終修正：設定示唆「実戦推移から見えるポイント」
   実際のHTMLは #setting ではなく #suggest 内。
========================================================= */
#suggest .accordion-content h4:has(+ ul) {
  position: relative !important;
  margin: 20px 0 0 !important;
  padding: 12px 14px 12px 42px !important;
  border: 1px solid #cfe3e0 !important;
  border-bottom: 0 !important;
  border-radius: 11px 11px 0 0 !important;
  background: linear-gradient(180deg,#f0fdfa 0%,#f8fffd 100%) !important;
  color: #0f3f3a !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
}

#suggest .accordion-content h4:has(+ ul)::before {
  position: absolute !important;
  top: 50% !important;
  left: 14px !important;
  display: grid !important;
  width: 20px !important;
  height: 20px !important;
  place-items: center !important;
  border-radius: 6px !important;
  background: var(--teal) !important;
  color: #fff !important;
  content: "✓" !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

#suggest .accordion-content h4 + ul {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 10px !important;
  margin: 0 0 4px !important;
  padding: 12px !important;
  border: 1px solid #cfe3e0 !important;
  border-top: 0 !important;
  border-radius: 0 0 11px 11px !important;
  background: #fbfefd !important;
  list-style: none !important;
}

#suggest .accordion-content h4 + ul > li {
  position: relative !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 13px 12px 35px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
  list-style: none !important;
  overflow-wrap: anywhere !important;
}

#suggest .accordion-content h4 + ul > li::marker {
  content: "" !important;
}

#suggest .accordion-content h4 + ul > li::before {
  position: absolute !important;
  top: 13px !important;
  left: 12px !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: var(--teal) !important;
  content: "" !important;
}

@media (max-width: 767px) {
  #suggest .accordion-content h4:has(+ ul) {
    margin-top: 16px !important;
    padding: 11px 12px 11px 39px !important;
    font-size: 13px !important;
  }

  #suggest .accordion-content h4 + ul {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 7px !important;
    padding: 9px !important;
  }

  #suggest .accordion-content h4 + ul > li {
    padding: 10px 11px 10px 32px !important;
    font-size: 11.5px !important;
    line-height: 1.7 !important;
  }

  #suggest .accordion-content h4 + ul > li::before {
    top: 12px !important;
    left: 11px !important;
  }
}

/* =========================================================
   v5：テーブル間の補足説明文の下余白
   「表 → 補足文 → 次の表」のときだけ余白を追加。
   他のmm-smallには影響させない。
========================================================= */
.table-scroll + p.mm-small:has(+ .table-scroll) {
  margin-top: 8px !important;
  margin-bottom: 18px !important;
}

@media (max-width: 767px) {
  .table-scroll + p.mm-small:has(+ .table-scroll) {
    margin-top: 7px !important;
    margin-bottom: 16px !important;
  }
}

/* =========================================================
   v6：小見出しの直下がテーブルのときの余白
   h4 → table-scroll が直結している箇所だけ対象。
========================================================= */
.mm-article .mm-card h4 + .table-scroll {
  margin-top: 12px !important;
}

@media (max-width: 767px) {
  .mm-article .mm-card h4 + .table-scroll {
    margin-top: 10px !important;
  }
}

/* =========================================================
   v7：小見出し → テーブルの間隔を見出し側で確保
   v6のtable側margin-topではなく、h4側のmargin-bottomを固定。
========================================================= */
.mm-article h4:has(+ .table-scroll) {
  margin-bottom: 14px !important;
}

.mm-article h4:has(+ .table-scroll) + .table-scroll {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .mm-article h4:has(+ .table-scroll) {
    margin-bottom: 10px !important;
  }
}

/* =========================================================
   v8：テーブル直前の小見出しを「見出し」と分かるデザインへ
   例：神を喰らえ｜成立役ごとの上乗せ保証枚数
========================================================= */
.mm-article .mm-card h4:has(+ .table-scroll) {
  position: relative !important;
  margin: 22px 0 14px !important;
  padding: 10px 12px 10px 15px !important;
  border: 0 !important;
  border-left: 4px solid var(--teal) !important;
  border-radius: 0 8px 8px 0 !important;
  background: #f0fdfa !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
}

.mm-article .mm-card h4:has(+ .table-scroll) + .table-scroll {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .mm-article .mm-card h4:has(+ .table-scroll) {
    margin: 18px 0 10px !important;
    padding: 9px 10px 9px 13px !important;
    border-left-width: 4px !important;
    border-radius: 0 7px 7px 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

/* =========================================================
   v9：設定差・設定判別「目的から探す」
   SPは4枚を2×2にして縦長を解消。
   既存HTMLの mm-grid-2 / mm-info 構造をそのまま利用する。
========================================================= */

/*
 * 設定判別ツール・設定示唆へのリンクを含む「目的から探す」だけを対象。
 * 他セクションの mm-grid-2 には影響させない。
 */
#setting .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"]) {
  overflow: hidden;
  border-color: #d7e2e8;
  background:
    linear-gradient(180deg, #fbfefd 0, #fff 105px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 22px rgba(15, 23, 42, .045);
}

/* 「目的から探す｜設定差・設定判別」 */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
> .mm-card__h {
  position: relative;
  margin: -1px -1px 12px !important;
  padding: 11px 13px 11px 34px !important;
  border: 0 !important;
  border-bottom: 1px solid #dce8e6 !important;
  border-radius: 10px 10px 0 0;
  background:
    linear-gradient(90deg, #eafaf7 0%, #f7fcfb 72%, #fff 100%);
  color: #173a3a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
> .mm-card__h::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  content: "";
  transform: translateY(-58%);
}

#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
> .mm-card__h::after {
  position: absolute;
  top: calc(50% + 5px);
  left: 23px;
  width: 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

/* 目的カード一覧 */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 {
  gap: 9px !important;
  margin-bottom: 0 !important;
}

/* 各リンクをカード全体のクリック領域へ */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 > a {
  position: relative;
  display: block;
  min-width: 0;
  height: 100%;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

/* 中身のカード */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 .mm-info {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 96px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 12px 30px 12px 12px !important;
  overflow: hidden;
  border: 1px solid #dfe6eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .025);
  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

/* 左上のアクセント */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 .mm-info::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 10px 0 0 10px;
  background: var(--teal);
  content: "";
}

/* 右矢印 */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 .mm-info::after {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #9ba8b3;
  content: "›";
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

/* タイトル */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 .mm-info__h {
  margin: 0 0 6px !important;
  padding: 0 0 6px !important;
  border-bottom: 1px solid #e8edf1 !important;
  color: #263847;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none !important;
}

/* 説明 */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 .mm-small {
  margin: 0 !important;
  color: #667482;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.55;
}

/* 4枚を少しだけ色分け。派手にしすぎない */
#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 > :nth-child(2) .mm-info::before {
  background: #3b82f6;
}

#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 > :nth-child(3) .mm-info::before {
  background: #8b5cf6;
}

#setting
.mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
.mm-grid-2 > :nth-child(4) .mm-info::before {
  background: #e59b28;
}

@media (hover: hover) {
  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 > a:hover .mm-info {
    border-color: #9fd8d1;
    background: #fbfffe;
    box-shadow: 0 6px 15px rgba(15, 118, 110, .08);
    transform: translateY(-1px);
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 > a:hover .mm-info::after {
    color: var(--teal-700);
  }
}

/* SP：必ず2列×2段 */
@media (max-width: 767px) {
  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"]) {
    padding: 10px !important;
    border-radius: 10px;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  > .mm-card__h {
    margin: -10px -10px 10px !important;
    padding: 10px 11px 10px 32px !important;
    border-radius: 10px 10px 0 0;
    font-size: 12px;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  > .mm-card__h::before {
    left: 11px;
    width: 9px;
    height: 9px;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  > .mm-card__h::after {
    left: 20px;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 .mm-info {
    min-height: 92px;
    padding: 10px 22px 10px 10px !important;
    border-radius: 9px;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 .mm-info__h {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
    font-size: 11px;
    line-height: 1.4;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 .mm-small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 .mm-info::after {
    right: 8px;
    font-size: 17px;
  }
}

/*
 * フォールバック：
 * 現行HTMLでリンクがmm-info内側にある場合にも2列化する。
 */
@media (max-width: 767px) {
  #setting
  .mm-grid-2:has(.mm-info a[href="#setting-tool"]):has(.mm-info a[href="#suggest"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

/* =========================================================
   v10：テーブル直後の補足文との間隔を統一
   margin同士の相殺を避け、テーブル側に下余白を持たせる。
========================================================= */
.mm-article .table-scroll:has(+ p.mm-small) {
  margin-bottom: 16px !important;
}

.mm-article .table-scroll + p.mm-small {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

@media (max-width: 767px) {
  .mm-article .table-scroll:has(+ p.mm-small) {
    margin-bottom: 14px !important;
  }

  .mm-article .table-scroll + p.mm-small {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
  }
}

/* =========================================================
   v11：AT・ST「目的からすぐ探す」スマホ2列化
   実HTMLの #at-menu を直接指定する。
========================================================= */
#at-menu {
  overflow: hidden;
  border-color: #d7e2e8;
  background:
    linear-gradient(180deg, #fbfefd 0, #fff 110px);
}

/* ATメニュー見出し */
#at-menu > .mm-card__h {
  position: relative;
  margin: -1px -1px 10px !important;
  padding: 11px 13px 11px 34px !important;
  border: 0 !important;
  border-bottom: 1px solid #dce8e6 !important;
  border-radius: 10px 10px 0 0;
  background:
    linear-gradient(90deg, #eafaf7 0%, #f7fcfb 72%, #fff 100%);
  color: #173a3a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

#at-menu > .mm-card__h::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  content: "";
  transform: translateY(-58%);
}

#at-menu > .mm-card__h::after {
  position: absolute;
  top: calc(50% + 5px);
  left: 23px;
  width: 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

/* 導入文 */
#at-menu > p.mm-small {
  margin: 0 0 10px !important;
  color: #64748b;
  line-height: 1.65;
}

/* カード一覧 */
#at-menu > .mm-grid-2 {
  gap: 9px !important;
  margin-bottom: 0 !important;
}

#at-menu > .mm-grid-2 > .mm-info {
  position: relative;
  min-width: 0;
  min-height: 96px;
  padding: 12px 30px 12px 12px !important;
  overflow: hidden;
  border: 1px solid #dfe6eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15,23,42,.03);
}

#at-menu > .mm-grid-2 > .mm-info::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 10px 0 0 10px;
  background: var(--teal);
  content: "";
}

#at-menu > .mm-grid-2 > .mm-info::after {
  position: absolute;
  top: 50%;
  right: 10px;
  color: #9ba8b3;
  content: "›";
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

#at-menu > .mm-grid-2 > .mm-info:nth-child(2)::before {
  background: #3b82f6;
}

#at-menu > .mm-grid-2 > .mm-info:nth-child(3)::before {
  background: #8b5cf6;
}

#at-menu > .mm-grid-2 > .mm-info:nth-child(4)::before {
  background: #e59b28;
}

#at-menu > .mm-grid-2 > .mm-info:nth-child(5)::before {
  background: #e25f74;
}

#at-menu > .mm-grid-2 > .mm-info:nth-child(6)::before {
  background: #0f766e;
}

#at-menu > .mm-grid-2 > .mm-info .mm-info__h {
  margin: 0 0 6px !important;
  padding: 0 0 6px !important;
  border-bottom: 1px solid #e8edf1 !important;
  font-size: 12px;
  line-height: 1.45;
}

#at-menu > .mm-grid-2 > .mm-info .mm-info__h a {
  display: block;
  color: #263847;
  font-weight: 900;
  text-decoration: none !important;
}

#at-menu > .mm-grid-2 > .mm-info .mm-small {
  margin: 0 !important;
  color: #667482;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.55;
}

/* スマホ：2列×必要段数 */
@media (max-width: 767px) {
  #at-menu {
    padding: 10px !important;
    border-radius: 10px;
  }

  #at-menu > .mm-card__h {
    margin: -10px -10px 9px !important;
    padding: 10px 11px 10px 32px !important;
    border-radius: 10px 10px 0 0;
    font-size: 12px;
  }

  #at-menu > .mm-card__h::before {
    left: 11px;
    width: 9px;
    height: 9px;
  }

  #at-menu > .mm-card__h::after {
    left: 20px;
  }

  #at-menu > p.mm-small {
    margin-bottom: 9px !important;
    padding: 0 2px;
    font-size: 10px;
    line-height: 1.55;
  }

  #at-menu > .mm-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  #at-menu > .mm-grid-2 > .mm-info {
    min-height: 94px !important;
    margin: 0 !important;
    padding: 10px 22px 10px 10px !important;
    border-radius: 9px;
  }

  #at-menu > .mm-grid-2 > .mm-info .mm-info__h {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
    font-size: 10.8px !important;
    line-height: 1.4 !important;
  }

  #at-menu > .mm-grid-2 > .mm-info .mm-small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9.2px !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #at-menu > .mm-grid-2 > .mm-info::after {
    right: 7px;
    font-size: 16px;
  }
}

/* =========================================================
   v12：機種ページ「目的から探す」共通化＋SP薄型化
   対象：
   - #setting の目的カード
   - #at-menu
   - #suggest の目的カード
   既存の通常情報カードには適用しない。
========================================================= */

/* ------------------------------
   設定示唆側も同じデザインへ
------------------------------ */
#suggest > .mm-card:has(> .mm-grid-2) {
  overflow: hidden;
  border-color: #d7e2e8;
  background:
    linear-gradient(180deg, #fbfefd 0, #fff 105px);
  box-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 8px 22px rgba(15,23,42,.045);
}

#suggest > .mm-card:has(> .mm-grid-2) > .mm-card__h {
  position: relative;
  margin: -1px -1px 10px !important;
  padding: 10px 12px 10px 33px !important;
  border: 0 !important;
  border-bottom: 1px solid #dce8e6 !important;
  border-radius: 10px 10px 0 0;
  background:
    linear-gradient(90deg,#eafaf7 0%,#f7fcfb 72%,#fff 100%);
  color: #173a3a;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.45;
}

#suggest > .mm-card:has(> .mm-grid-2) > .mm-card__h::before {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  content: "";
  transform: translateY(-58%);
}

#suggest > .mm-card:has(> .mm-grid-2) > .mm-card__h::after {
  position: absolute;
  top: calc(50% + 4px);
  left: 21px;
  width: 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

#suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 {
  gap: 9px !important;
  margin-bottom: 0 !important;
}

#suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 > .mm-info {
  position: relative;
  min-width: 0;
  min-height: 88px;
  padding: 10px 27px 10px 11px !important;
  overflow: hidden;
  border: 1px solid #dfe6eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15,23,42,.025);
}

#suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 > .mm-info::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 10px 0 0 10px;
  background: var(--teal);
  content: "";
}

#suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 > .mm-info::after {
  position: absolute;
  top: 50%;
  right: 9px;
  color: #9ba8b3;
  content: "›";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

#suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 > .mm-info:nth-child(2)::before {
  background: #3b82f6;
}
#suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 > .mm-info:nth-child(3)::before {
  background: #8b5cf6;
}
#suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 > .mm-info:nth-child(4)::before {
  background: #e59b28;
}

#suggest > .mm-card:has(> .mm-grid-2) .mm-info__h {
  margin: 0 0 5px !important;
  padding: 0 0 5px !important;
  border-bottom: 1px solid #e8edf1 !important;
  color: #263847;
  font-size: 11.5px;
  line-height: 1.4;
}

#suggest > .mm-card:has(> .mm-grid-2) .mm-small {
  margin: 0 !important;
  color: #667482;
  font-size: 10px;
  line-height: 1.5;
}

/* ------------------------------
   SP：3種類とも2列＋薄型へ統一
------------------------------ */
@media (max-width: 767px) {

  /* 目的カードを持つ外枠を少し薄く */
  #setting .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"]),
  #at-menu,
  #suggest > .mm-card:has(> .mm-grid-2) {
    padding: 8px !important;
    border-radius: 9px !important;
  }

  /* 上部見出しも高さを圧縮 */
  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  > .mm-card__h,
  #at-menu > .mm-card__h,
  #suggest > .mm-card:has(> .mm-grid-2) > .mm-card__h {
    margin: -8px -8px 7px !important;
    min-height: 38px !important;
    padding: 8px 9px 8px 29px !important;
    border-radius: 9px 9px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  > .mm-card__h::before,
  #at-menu > .mm-card__h::before,
  #suggest > .mm-card:has(> .mm-grid-2) > .mm-card__h::before {
    left: 9px !important;
    width: 8px !important;
    height: 8px !important;
    border-width: 2px !important;
  }

  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  > .mm-card__h::after,
  #at-menu > .mm-card__h::after,
  #suggest > .mm-card:has(> .mm-grid-2) > .mm-card__h::after {
    left: 17px !important;
    width: 5px !important;
    height: 2px !important;
  }

  /* AT側の説明文は1行相当に圧縮 */
  #at-menu > p.mm-small {
    display: -webkit-box !important;
    margin: 0 1px 7px !important;
    overflow: hidden !important;
    font-size: 9px !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  /* 3箇所とも必ず2列 */
  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2,
  #at-menu > .mm-grid-2,
  #suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  /* カード自体を約70pxまで薄型化 */
  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 .mm-info,
  #at-menu > .mm-grid-2 > .mm-info,
  #suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 > .mm-info {
    min-height: 70px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 18px 7px 8px !important;
    border-radius: 8px !important;
  }

  /* タイトルを詰める */
  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 .mm-info__h,
  #at-menu > .mm-grid-2 > .mm-info .mm-info__h,
  #suggest > .mm-card:has(> .mm-grid-2) .mm-info__h {
    margin: 0 0 3px !important;
    padding: 0 0 3px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  /* 説明は最大2行 */
  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 .mm-small,
  #at-menu > .mm-grid-2 > .mm-info .mm-small,
  #suggest > .mm-card:has(> .mm-grid-2) .mm-small {
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    font-size: 8.5px !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /* 右矢印も小型化 */
  #setting
  .mm-card:has(a[href="#setting-tool"]):has(a[href="#suggest"])
  .mm-grid-2 .mm-info::after,
  #at-menu > .mm-grid-2 > .mm-info::after,
  #suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 > .mm-info::after {
    right: 6px !important;
    font-size: 14px !important;
  }

  /* 設定示唆側の直下gridに古い1列指定があっても上書き */
  #suggest > .mm-card:has(> .mm-grid-2) > .mm-grid-2 {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

/* =========================================================
   v14：CSSのみで「目的から探す」を全6箇所共通化
   HTML変更不要
   対象：天井 / 設定差 / 設定示唆 / 通常時 / CZ / AT
========================================================= */

/* 各セクションの見出し直後にある最初のカード＝目的ナビ */
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card {
  overflow: hidden !important;
  border-color: #d7e2e8 !important;
  background: linear-gradient(180deg, #fbfefd 0, #fff 100%) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 6px 18px rgba(15, 23, 42, .035) !important;
}

/* 「目的から探す｜○○」 */
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-card__h {
  position: relative !important;
  margin: -1px -1px 10px !important;
  padding: 10px 12px 10px 33px !important;
  border: 0 !important;
  border-bottom: 1px solid #dce8e6 !important;
  border-radius: 10px 10px 0 0 !important;
  background: linear-gradient(90deg, #eafaf7 0%, #f7fcfb 72%, #fff 100%) !important;
  color: #173a3a !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-card__h::before {
  position: absolute !important;
  top: 50% !important;
  left: 12px !important;
  width: 9px !important;
  height: 9px !important;
  border: 3px solid var(--teal) !important;
  border-radius: 50% !important;
  content: "" !important;
  transform: translateY(-58%) !important;
}

:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-card__h::after {
  position: absolute !important;
  top: calc(50% + 4px) !important;
  left: 21px !important;
  width: 6px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: var(--teal) !important;
  content: "" !important;
  transform: rotate(45deg) !important;
  transform-origin: left center !important;
}

/* 2列グリッド */
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}

/* 各目的カード */
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-grid-2
> .mm-info {
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 9px 25px 9px 11px !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid #dfe6eb !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .025) !important;
}

:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-grid-2
> .mm-info::before {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 3px !important;
  height: 100% !important;
  border-radius: 9px 0 0 9px !important;
  background: var(--teal) !important;
  content: "" !important;
}

:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-grid-2
> .mm-info::after {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  color: #9ba8b3 !important;
  content: "›" !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

/* 控えめに色分け */
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(2)::before {
  background: #3b82f6 !important;
}
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(3)::before {
  background: #8b5cf6 !important;
}
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(4)::before {
  background: #e59b28 !important;
}
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(5)::before {
  background: #e25f74 !important;
}
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(6)::before {
  background: #0f766e !important;
}

/* カード内タイトル */
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-grid-2
.mm-info__h {
  margin: 0 0 4px !important;
  padding: 0 0 4px !important;
  border-bottom: 1px solid #e8edf1 !important;
  color: #263847 !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-grid-2
.mm-info__h a {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
}

/* 説明 */
:is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
> .section-title
+ .mm-card
> .mm-grid-2
.mm-small {
  margin: 0 !important;
  color: #667482 !important;
  font-size: 9.8px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

/* =========================================================
   SP：2列固定＋さらに薄型
========================================================= */
@media (max-width: 767px) {

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card {
    padding: 7px !important;
    border-radius: 9px !important;
  }

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card
  > .mm-card__h {
    min-height: 34px !important;
    margin: -7px -7px 6px !important;
    padding: 7px 8px 7px 27px !important;
    border-radius: 9px 9px 0 0 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card
  > .mm-card__h::before {
    left: 8px !important;
    width: 8px !important;
    height: 8px !important;
    border-width: 2px !important;
  }

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card
  > .mm-card__h::after {
    left: 16px !important;
    width: 5px !important;
    height: 2px !important;
  }

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card
  > .mm-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin: 0 !important;
  }

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card
  > .mm-grid-2
  > .mm-info {
    min-height: 60px !important;
    height: auto !important;
    padding: 6px 17px 6px 8px !important;
    border-radius: 7px !important;
  }

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card
  > .mm-grid-2
  .mm-info__h {
    margin-bottom: 3px !important;
    padding-bottom: 3px !important;
    font-size: 9.6px !important;
    line-height: 1.25 !important;
  }

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card
  > .mm-grid-2
  .mm-small {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 8.1px !important;
    line-height: 1.32 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  :is(#ceiling, #setting, #suggest, #normal, #bonus, #at)
  > .section-title
  + .mm-card
  > .mm-grid-2
  > .mm-info::after {
    right: 5px !important;
    font-size: 13px !important;
  }
}

/* =========================================================
   v15：ページメニューの複数選択に見える問題を修正
   原因：
   hover / focus-visible と is-current が同じティール背景だったため、
   スマホ・DevToolsで「現在地＋触れている項目」の2件が選択状態に見えた。
========================================================= */

/* hover / focus は「現在地」と明確に別デザイン */
.mm-toc-drawer__toc-link:hover:not(.is-current):not([aria-current="location"]),
.mm-toc-drawer__toc-link:focus-visible:not(.is-current):not([aria-current="location"]) {
  background: #f7f9fb !important;
  color: #273244 !important;
}

.mm-toc-drawer__toc-link:hover:not(.is-current):not([aria-current="location"])::before,
.mm-toc-drawer__toc-link:focus-visible:not(.is-current):not([aria-current="location"])::before {
  background: #a8b4c2 !important;
}

.mm-toc-drawer__toc-link:hover:not(.is-current):not([aria-current="location"])::after,
.mm-toc-drawer__toc-link:focus-visible:not(.is-current):not([aria-current="location"])::after {
  border-color: #7c8b9a !important;
}

/* 現在地だけをティールで強調 */
.mm-toc-drawer__toc-link.is-current,
.mm-toc-drawer__toc-link[aria-current="location"] {
  background: #eefcf9 !important;
  color: #0f766e !important;
}

.mm-toc-drawer__toc-link.is-current::before,
.mm-toc-drawer__toc-link[aria-current="location"]::before {
  background: var(--teal) !important;
}

.mm-toc-drawer__toc-link.is-current::after,
.mm-toc-drawer__toc-link[aria-current="location"]::after {
  border-color: var(--teal-700) !important;
}

/*
 * タッチ端末ではhover/focusが残留して見えることがあるため、
 * 現在地以外は通常背景へ戻す。
 */
@media (hover: none), (pointer: coarse) {
  .mm-toc-drawer__toc-link:hover:not(.is-current):not([aria-current="location"]),
  .mm-toc-drawer__toc-link:focus:not(.is-current):not([aria-current="location"]),
  .mm-toc-drawer__toc-link:focus-visible:not(.is-current):not([aria-current="location"]) {
    background: #fff !important;
    color: #273244 !important;
  }

  .mm-toc-drawer__toc-link:hover:not(.is-current):not([aria-current="location"])::before,
  .mm-toc-drawer__toc-link:focus:not(.is-current):not([aria-current="location"])::before,
  .mm-toc-drawer__toc-link:focus-visible:not(.is-current):not([aria-current="location"])::before {
    background: #a8b4c2 !important;
  }

  .mm-toc-drawer__toc-link:hover:not(.is-current):not([aria-current="location"])::after,
  .mm-toc-drawer__toc-link:focus:not(.is-current):not([aria-current="location"])::after,
  .mm-toc-drawer__toc-link:focus-visible:not(.is-current):not([aria-current="location"])::after {
    border-color: #7c8b9a !important;
  }

  /* タッチ端末でも現在地は必ず1件だけティール表示 */
  .mm-toc-drawer__toc-link.is-current,
  .mm-toc-drawer__toc-link[aria-current="location"] {
    background: #eefcf9 !important;
    color: #0f766e !important;
  }
}

/* =========================================================
   v16：CSSのみで「目的から探す」を全対象へ共通適用
   打ち方 / 天井 / 狙い目 / 設定差 / 設定判別ツール /
   設定示唆 / 朝一 / 通常時 / CZ / AT / 小役 / ゲームフロー
========================================================= */

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card {
  overflow: hidden !important;
  border-color: #d7e2e8 !important;
  background: linear-gradient(180deg,#fbfefd 0%,#fff 100%) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04),0 6px 18px rgba(15,23,42,.035) !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-card__h {
  position: relative !important;
  margin: -1px -1px 10px !important;
  padding: 10px 12px 10px 33px !important;
  border: 0 !important;
  border-bottom: 1px solid #dce8e6 !important;
  border-radius: 10px 10px 0 0 !important;
  background: linear-gradient(90deg,#eafaf7 0%,#f7fcfb 72%,#fff 100%) !important;
  color: #173a3a !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-card__h::before {
  position: absolute !important;
  top: 50% !important;
  left: 12px !important;
  width: 9px !important;
  height: 9px !important;
  border: 3px solid var(--teal) !important;
  border-radius: 50% !important;
  content: "" !important;
  transform: translateY(-58%) !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-card__h::after {
  position: absolute !important;
  top: calc(50% + 4px) !important;
  left: 21px !important;
  width: 6px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: var(--teal) !important;
  content: "" !important;
  transform: rotate(45deg) !important;
  transform-origin: left center !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info {
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 9px 25px 9px 11px !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid #dfe6eb !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(15,23,42,.025) !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info::before {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 3px !important;
  border-radius: 9px 0 0 9px !important;
  background: var(--teal) !important;
  content: "" !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info::after {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  color: #9ba8b3 !important;
  content: "›" !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(2)::before { background:#3b82f6 !important; }
:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(3)::before { background:#8b5cf6 !important; }
:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(4)::before { background:#e59b28 !important; }
:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(5)::before { background:#e25f74 !important; }
:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info:nth-child(6)::before { background:#0f766e !important; }

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 .mm-info__h {
  margin: 0 0 4px !important;
  padding: 0 0 4px !important;
  border-bottom: 1px solid #e8edf1 !important;
  color: #263847 !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 .mm-info__h a {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 .mm-small {
  margin: 0 !important;
  color: #667482 !important;
  font-size: 9.8px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

@media (max-width:767px) {
  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card {
    padding: 7px !important;
    border-radius: 9px !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-card__h {
    min-height: 34px !important;
    margin: -7px -7px 6px !important;
    padding: 7px 8px 7px 27px !important;
    border-radius: 9px 9px 0 0 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-card__h::before {
    left: 8px !important;
    width: 8px !important;
    height: 8px !important;
    border-width: 2px !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-card__h::after {
    left: 16px !important;
    width: 5px !important;
    height: 2px !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 5px !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info {
    min-height: 60px !important;
    height: auto !important;
    padding: 6px 17px 6px 8px !important;
    border-radius: 7px !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 .mm-info__h {
    margin-bottom: 3px !important;
    padding-bottom: 3px !important;
    font-size: 9.6px !important;
    line-height: 1.25 !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 .mm-small {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 8.1px !important;
    line-height: 1.32 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info::after {
    right: 5px !important;
    font-size: 13px !important;
  }
}

/* =========================================================
   v17：設定判別ツール
   「判別する / 入力をリセット」ボタンと直下コンテンツの間隔
   HTML変更不要
========================================================= */

/* 2つ以上のボタンを直接持つ操作行 */
.mm-setting-tool-wrap
:is(div, p, section, form):has(> button:nth-of-type(2)) {
  margin-bottom: 14px !important;
}

/* button / input が混在する実装にも対応 */
.mm-setting-tool-wrap
:is(div, p, section, form):has(> button):has(> input[type="reset"]) {
  margin-bottom: 14px !important;
}

.mm-setting-tool-wrap
:is(div, p, section, form):has(> input[type="submit"]):has(> input[type="reset"]) {
  margin-bottom: 14px !important;
}

/* 万一、次要素側の指定で詰まる場合も確実に空ける */
.mm-setting-tool-wrap
:is(div, p, section):has(> button:nth-of-type(2)) + *,
.mm-setting-tool-wrap
:is(div, p, section):has(> button):has(> input[type="reset"]) + *,
.mm-setting-tool-wrap
:is(div, p, section):has(> input[type="submit"]):has(> input[type="reset"]) + * {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .mm-setting-tool-wrap
  :is(div, p, section, form):has(> button:nth-of-type(2)),
  .mm-setting-tool-wrap
  :is(div, p, section, form):has(> button):has(> input[type="reset"]),
  .mm-setting-tool-wrap
  :is(div, p, section, form):has(> input[type="submit"]):has(> input[type="reset"]) {
    margin-bottom: 12px !important;
  }
}

/* =========================================================
   v18：「目的から探す」のカード全体をクリック可能に
   HTML変更不要
========================================================= */

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info {
  cursor: pointer !important;
  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info .mm-info__h a {
  position: static !important;
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info .mm-info__h a::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
  content: "" !important;
}

@media (hover:hover) {
  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info:hover {
    border-color: #9fd8d1 !important;
    background: #fbfffe !important;
    box-shadow: 0 5px 14px rgba(15,118,110,.08) !important;
    transform: translateY(-1px) !important;
  }

  :is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info:hover::after {
    color: var(--teal-700) !important;
  }
}

:is(#howto,#ceiling,#aim,#setting,#setting-tool,#suggest,#reset,#normal,#bonus,#at,#small-role,#flow) > .section-title + .mm-card > .mm-grid-2 > .mm-info:has(a:focus-visible) {
  outline: 2px solid var(--teal) !important;
  outline-offset: 2px !important;
}

/* =========================================================
   4列以上の解析テーブル：左端列の潰れ防止
   HTML変更不要
========================================================= */

/*
 * 4列以上は画面内へ無理に押し込まない
 */
body .mm-app .mm-article
.table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(4))
.analysis-table {
  width: 100% !important;
  min-width: 720px !important;
  table-layout: auto !important;
}

/*
 * 7列以上はさらに横幅を確保
 * 演目 × リプレイ × ベル × 赤 × 緑 × 紫 × 複合など
 */
body .mm-app .mm-article
.table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(7))
.analysis-table {
  min-width: 880px !important;
}


/* =========================================================
   左端の項目列
========================================================= */

body .mm-app .mm-article
.table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(4))
.analysis-table tr > :first-child {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 160px !important;

  padding-left: 10px !important;
  padding-right: 10px !important;

  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;

  line-height: 1.65 !important;
}

/*
 * 7列表は全体とのバランスを取って少しだけ細く
 */
body .mm-app .mm-article
.table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(7))
.analysis-table tr > :first-child {
  width: 132px !important;
  min-width: 132px !important;
  max-width: 148px !important;
}


/* =========================================================
   スマホ
========================================================= */

@media (max-width: 767px) {

  /*
   * 4～6列
   */
  body .mm-app .mm-article
  .table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(4))
  .analysis-table {
    min-width: 700px !important;
  }

  /*
   * 7列以上
   */
  body .mm-app .mm-article
  .table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(7))
  .analysis-table {
    min-width: 820px !important;
  }

  /*
   * 左端列
   */
  body .mm-app .mm-article
  .table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(4))
  .analysis-table tr > :first-child {
    width: 126px !important;
    min-width: 126px !important;
    max-width: 138px !important;

    padding-left: 8px !important;
    padding-right: 8px !important;

    font-size: 11.5px !important;
    line-height: 1.6 !important;
  }

  /*
   * 横スクロールしても項目名を見失わない
   */
  body .mm-app .mm-article
  .table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(4))
  .analysis-table tbody tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 2;

    background: #f7fafc;
    box-shadow: 1px 0 0 #dbe3ec;
  }

  body .mm-app .mm-article
  .table-scroll.mm-table--tight:has(.analysis-table tbody tr > *:nth-child(4))
  .analysis-table thead tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 3;

    background: #edf5f8;
    box-shadow: 1px 0 0 #dbe3ec;
  }
}


/* =========================================================
   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;
  }
}

/* =========================================================
   v19 6確V50：機種TOP「今の状況から見る」、FAQ行の位置調整、
   「目的から探す」への安定フックclass付与
   HTML側は .k6-situation-guide > .k6-situation-card を使用。
   「詳しい解析を見る」「この機種の他の解析ページ」は新規コンポーネントを
   作らず、既存の承認済みリストUI（.mm-toc > .mm-toc__grid.mm-toc__grid--all）
   をそのまま再利用する（本ブロックでの追加定義は不要）。
========================================================= */

/* 今の状況から見る：装飾効果に頼らず、罫線と余白の階層だけで構成する固定UI */
.k6-situation-guide{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.k6-situation-card{
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  border-right:1px solid var(--border);
}

.k6-situation-card:nth-child(2n){
  border-right:0;
}

.k6-situation-card:nth-last-child(-n+2){
  border-bottom:0;
}

.k6-situation-card__head{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 8px;
}

.k6-situation-card__icon{
  display:inline-grid;
  place-items:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:8px;
  background:#ecfeff;
  border:1px solid #99f6e4;
  color:var(--teal-700);
  font-size:13px;
}

.k6-situation-card__title{
  margin:0;
  font-size:14.5px;
  font-weight:800;
  color:#111827;
  line-height:1.4;
}

.k6-situation-card__text{
  margin:0 0 10px;
  font-size:12.5px;
  line-height:1.85;
  color:#4b5563;
}

.k6-situation-card__link{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12.5px;
  font-weight:700;
  color:var(--teal-700);
  text-decoration:none;
}

.k6-situation-card__link i{
  font-size:10px;
}

.k6-situation-card__link:hover{
  text-decoration:underline;
}

@media (max-width:767px){
  .k6-situation-guide{
    grid-template-columns:1fr;
  }
  .k6-situation-card{
    border-right:0;
  }
  .k6-situation-card:nth-last-child(-n+2){
    border-bottom:1px solid var(--border);
  }
  .k6-situation-card:last-child{
    border-bottom:0;
  }
}

/*
 * 目的から探すへの安定フックclass。
 * 実際の見た目はv18（:is(#howto,#ceiling,...) > .section-title + .mm-card
 * > .mm-grid-2 > .mm-info）が担っており、このclass自体には見た目のルールを
 * 持たせない。id依存を薄くし、将来の置き場所変更でも見失わないための目印。
 */
.k6-purpose-nav{}

/* FAQ：質問行を常に左揃えで確定し、直後のカードと密着しないよう余白を確保 */
.mm-faq{
  margin-bottom:28px;
}

details.mm-faq__item > summary.mm-faq__q{
  justify-content:flex-start;
}