/* できるゾウ｜他社比較表 専用CSS ( /comparison )
   本文テンプレ: templates/page/comparison.html から <link> で読込
   全ルール #dz-cmp 配下にスコープ（サイト全体へ非干渉） */

#dz-cmp {
  --main: #40a1c0;
  --main-dark: #358aa6;
  --main-tint: #e4f2f8;
  --main-tint2: #d3e9f2;
  --line: #dfe4e6;
  --good-bg: #edf6e3;
  --good: #5a9e2a;
  --ok-bg: #f7f1e0;
  --ok: #c2941f;
  --warn-bg: #f0eeea;
  --warn: #a49e94;
  --list-bg: #eef1f2;
  --list: #9aa0a3;
  --axisW: 168px;
  color: #333;
  line-height: 1.75;
  position: relative;
  z-index: 0
}
#dz-cmp * {
  box-sizing: border-box
}
#dz-cmp .lead {
  font-size: 18px;
  color: #555;
  margin: 0 0 22px
}
#dz-cmp .dz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #666;
  margin: 18px auto 2px
}
#dz-cmp .dz-legend .k {
  display: inline-flex;
  align-items: center;
  gap: 6px
}
#dz-cmp .dz-legend .mk {
  font-size: 18px;
  font-weight: 700;
  line-height: 1
}
#dz-cmp .mk.good {
  color: var(--good)
}
#dz-cmp .mk.ok {
  color: var(--ok)
}
#dz-cmp .mk.warn {
  color: var(--warn)
}
#dz-cmp .dz-hint {
  text-align: center;
  color: var(--main-dark);
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 0
}
#dz-cmp .dz-hint .sp {
  display: none
}
#dz-cmp .dz-scroll-hint {
  display: none;
  text-align: center;
  color: var(--main-dark);
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0 -2px
}

#dz-cmp .dz-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(20, 40, 51, .08);
  background: #fff
}
#dz-cmp table.dz-tbl {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 13px;
  table-layout: fixed;
  min-width: 760px
}
#dz-cmp table.dz-tbl th,
#dz-cmp table.dz-tbl td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  padding: 0;
  line-height: 1.5;
  vertical-align: middle
}
#dz-cmp thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #eef2f3;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: #333;
  border-bottom: 2px solid #cdd6d9;
  height: 76px;
  padding: 8px 5px;
  vertical-align: middle
}
#dz-cmp thead th.col-axis {
  z-index: 5;
  background: #e7edef
}
#dz-cmp thead th.col-own {
  z-index: 4;
  background: var(--main);
  color: #fff;
  border-bottom-color: var(--main-dark)
}
#dz-cmp .col-axis {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f5f8f9;
  width: var(--axisW);
  min-width: var(--axisW);
  box-shadow: 2px 0 0 var(--line)
}
#dz-cmp tbody th.col-axis {
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 12px;
  cursor: pointer;
  color: #333
}
#dz-cmp tbody th.col-axis .arw {
  display: inline-block;
  color: var(--main);
  font-size: 11px;
  margin-left: 5px;
  transition: transform .18s
}
#dz-cmp tr.open th.col-axis .arw {
  transform: rotate(180deg)
}
#dz-cmp tbody th.col-axis .detail-link {
  display: block;
  font-size: 14px;
  color: var(--main-dark);
  font-weight: 500;
  margin-top: 3px
}
#dz-cmp td.cell {
  height: 64px;
  font-size: 40px;
  font-weight: 700
}
#dz-cmp td.cell.good {
  background: var(--good-bg);
  color: var(--good)
}
#dz-cmp td.cell.ok {
  background: var(--ok-bg);
  color: var(--ok)
}
#dz-cmp td.cell.warn {
  background: var(--warn-bg);
  color: var(--warn)
}
#dz-cmp td.cell.list {
  background: var(--list-bg);
  color: var(--list);
  font-size: 28px
}
#dz-cmp td.col-own {
  position: sticky;
  left: var(--axisW);
  z-index: 1;
  box-shadow: 2px 0 0 var(--line)
}
#dz-cmp td.col-own.good,
#dz-cmp td.col-own.ok,
#dz-cmp td.col-own.warn,
#dz-cmp td.col-own.list {
  background: var(--main-tint)
}
#dz-cmp td.col-own.good {
  background: var(--main-tint2)
}
#dz-cmp tbody tr.axis-row:hover td.cell {
  filter: brightness(.97)
}

#dz-cmp tr.detail-row>td {
  padding: 0;
  background: #f2f8fa;
  border-right: none;
  vertical-align: top
}
#dz-cmp .detail-inner {
  padding: 18px 22px 22px;
  display: none;
  text-align: left
}
#dz-cmp tr.detail-row.show .detail-inner {
  display: block
}
#dz-cmp .detail-inner h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--main-dark);
  font-weight: 700;
  border: none;
  padding: 0;
  background: none;
  text-align: left
}
#dz-cmp .detail-inner h3::before,
#dz-cmp .detail-inner h3::after {
  display: none;
  content: none
}
#dz-cmp .d-own {
  background: #fff;
  border: 2px solid var(--main);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px
}
#dz-cmp .d-own .nm {
  font-weight: 700;
  color: var(--main-dark);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px
}
#dz-cmp .d-own p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #22424f
}
#dz-cmp .d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px
}
#dz-cmp .d-item {
  border-top: 1px solid #e2e8ea;
  padding: 9px 2px
}
#dz-cmp .d-item .nm {
  font-weight: 700;
  font-size: 16px;
  color: #4a5054;
  margin-bottom: 2px
}
#dz-cmp .d-item .mk {
  font-size: 17px;
  margin-right: 5px
}
#dz-cmp .d-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555
}

#dz-cmp .dz-note {
  color: #666;
  font-size: 12px;
  margin: 14px 2px 0;
  text-align: right
}
#dz-cmp .dz-bnr {
  text-align: center;
  margin: 28px auto 0;
  max-width: 1160px
}
#dz-cmp .dz-bnr a {
  display: inline-block
}
#dz-cmp .dz-bnr img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom
}

@media screen and (max-width:767px) {
  #dz-cmp {
    --axisW: 120px
  }
  #dz-cmp .dz-scroll-hint {
    display: block
  }
  #dz-cmp .dz-hint .pc {
    display: none
  }
  #dz-cmp .dz-hint .sp {
    display: inline
  }
  #dz-cmp .detail-link .pc-txt {
    display: none
  }
  #dz-cmp .dz-note {
    text-align: left
  }
  #dz-cmp thead th {
    font-size: 13px;
    height: 66px
  }
  #dz-cmp tbody th.col-axis {
    font-size: 13px
  }
  #dz-cmp td.cell {
    font-size: 34px;
    height: 56px
  }
  #dz-cmp td.cell.list {
    font-size: 24px
  }
  #dz-cmp td.col-own {
    position: static;
    left: auto;
    box-shadow: none
  }
  #dz-cmp .d-grid {
    grid-template-columns: 1fr
  }
  #dz-cmp tr.detail-row .detail-inner {
    position: sticky;
    left: 0;
    width: calc(100vw - 24px)
  }
}