.durex-compare {
  width: 100%;
  padding: 70px 0;
  color: #14295e;
}

.durex-compare__inner {
  width: min(100% - 40px, 780px);
  margin: 0 auto;
}

/* =========================
   Heading
========================= */

.durex-compare__heading {
  margin-bottom: 36px;
  text-align: center;
}

.durex-compare__heading span {
  display: block;
  margin-bottom: 6px;
  color: #2c67ba;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.durex-compare__heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
}

.durex-compare__heading h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 16px auto 0;
  background: #2c67ba;
  border-radius: 10px;
}

.durex-compare__heading p {
  margin: 18px 0 0;
  color: #65718c;
  font-size: 14px;
  line-height: 1.8;
}

/* =========================
   Card
========================= */

.durex-compare__list {
  display: grid;
  gap: 18px;
}

.compare-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce4f1;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(20, 41, 94, 0.05);
}

/* =========================
   Product
========================= */

.compare-card__product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 25px;
  text-align: center;
}

.compare-card__number {
  position: absolute;
  top: 12px;
  left: 14px;
  color: rgba(44, 103, 186, 0.17);
  font-size: 42px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}

.compare-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  margin-bottom: 14px;
}

.compare-card__image img {
  display: block;
  width: auto;
  max-width: 100px;
  max-height: 130px;
}

.compare-card__name span {
  display: block;
  margin-bottom: 3px;
  color: #5982bc;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.compare-card__name h3 {
  margin: 0;
  color: #0c3177;
  font-size: 16px;
  line-height: 1.45;
}

.compare-card__name h3 a:hover {
  background: linear-gradient(transparent 60%, #ffff00 60%);
}

/* =========================
   Specifications
========================= */

.compare-card__spec {
  margin: 0;
}

.compare-card__spec > div {
  display: grid;
  grid-template-columns: 95px 1fr;
  min-height: 54px;
  border-bottom: 1px solid #e5e9f1;
}

.compare-card__spec > div:last-child {
  border-bottom: none;
}

.compare-card__spec dt,
.compare-card__spec dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 14px;
  box-sizing: border-box;
}

.compare-card__spec dt {
  justify-content: center;
  background: #f4f6fa;
  color: #243b70;
  font-weight: 700;
  text-align: center;
}

.compare-card__spec dd {
  color: #3f485b;
  line-height: 1.65;
}

.compare-card__spec ul {
  margin: 0;
  padding-left: 1.3em;
  list-style: disc;
  margin-left: 0.25em;
}

.compare-card__spec li + li {
  margin-top: 2px;
}

/* =========================
   Smartphone
========================= */

@media (max-width: 600px) {
  .durex-compare {
    padding: 50px 0;
  }

  .durex-compare__inner {
    width: calc(100% - 30px);
  }

  .durex-compare__heading h2 {
    font-size: 23px;
  }

  .compare-card {
    grid-template-columns: 1fr;
  }

  .compare-card__product {
    display: grid;
    grid-template-columns: 90px 1fr;
    min-height: 115px;
    padding: 15px 20px;
    text-align: left;
  }

  .compare-card__number {
    top: 8px;
    left: 10px;
    font-size: 34px;
  }

  .compare-card__image {
    height: 90px;
    margin: 0;
  }

  .compare-card__image img {
    max-width: 65px;
    max-height: 90px;
  }

  .compare-card__name {
    padding-left: 15px;
  }

  .compare-card__name h3 {
    font-size: 16px;
  }

  .compare-card__spec > div {
    grid-template-columns: 85px 1fr;
  }

  .compare-card__spec dt,
  .compare-card__spec dd {
    padding: 9px 10px;
  }
}

/* ========================================
   DUREX 潤滑剤比較
======================================== */

.lubricant-compare {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 30px;
  box-sizing: border-box;
  color: #172b5c;
}

/* ========================================
   Main heading
======================================== */

.lubricant-compare__heading {
  margin-bottom: 45px;
  text-align: center;
}

.lubricant-compare__en {
  display: block;
  margin-bottom: 7px;
  color: #3976bc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.lubricant-compare__heading h2 {
  margin: 0;
  color: #133978;
  font-size: 27px;
  line-height: 1.4;
}

.lubricant-compare__heading h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 15px auto 0;
  border-radius: 10px;
  background: #3976bc;
}

.lubricant-compare__heading p {
  margin: 15px 0 0;
  color: #69768d;
  line-height: 1.8;
}

/* ========================================
   Series
======================================== */

.compare-series + .compare-series {
  margin-top: 55px;
}

.compare-series__heading {
  position: relative;
  margin-bottom: 18px;
  padding-left: 18px;
}

.compare-series__heading::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 2px;
  left: 0;
  width: 4px;
  border-radius: 10px;
  background: #236bc0;
}

.compare-series__heading > span {
  display: block;
  margin-bottom: 3px;
  color: #4380c4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.compare-series__heading h3 {
  margin: 0;
  color: #153d80;
  font-size: 22px;
  line-height: 1.4;
}

.compare-series__heading p {
  margin: 7px 0 0;
  color: #69768d;
  line-height: 1.7;
}

/* Naturals */

.compare-series--naturals {
  padding: 25px 20px 20px;
  margin-right: -10px;
  margin-left: -10px;
  border-radius: 18px;
}

.compare-series--naturals .compare-series__heading::before {
  background: #56a989;
}

.compare-series--naturals .compare-series__heading > span {
  color: #56a989;
}

.compare-series--naturals .compare-series__heading h3 {
  color: #26785e;
}

/* ========================================
   Table
======================================== */

.compare-table {
  overflow: hidden;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: #fff;
}

/* Header */

.compare-table__header {
  display: grid;
  grid-template-columns: 190px 100px 1fr;
  background: #163d7d;
  color: #fff;
}

.compare-table__header > div {
  padding: 10px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.compare-table__header > div:last-child {
  border-right: none;
}

/* Row */

.compare-table__row {
  display: grid;
  grid-template-columns: 190px 100px 1fr;
  min-height: 120px;
  border-bottom: 1px solid #e2e7ef;
}

.compare-table__row:last-child {
  border-bottom: none;
}

.compare-table__row > div {
  border-right: 1px solid #e2e7ef;
}

.compare-table__row > div:last-child {
  border-right: none;
}

/* ========================================
   Product
======================================== */

.compare-product {
  display: grid;
  grid-template-columns: 65px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  box-sizing: border-box;
}

.compare-product__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95px;
}

.compare-product__image img {
  display: block;
  width: auto;
  max-width: 60px;
  max-height: 90px;
}

.compare-product__name span {
  display: block;
  margin-bottom: 4px;
  color: #7184a5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.compare-product__name strong {
  display: block;
  color: #173c7a;
  line-height: 1.5;
}
.compare-product__name strong a:hover {
  background: linear-gradient(transparent 60%, #ffff00 60%);
}

/* ========================================
   Type
======================================== */

.compare-type {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.compare-type__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 6px 7px;
  border-radius: 30px;
  box-sizing: border-box;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.compare-type__label--water {
  background: #e4f4fc;
  color: #2677a8;
}

.compare-type__label--silicone {
  background: #eee8fa;
  color: #7154a5;
}

/* ========================================
   Point
======================================== */

.compare-point {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 16px;
  box-sizing: border-box;
}

.compare-point__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.compare-point__tags span {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  background: #edf3fb;
  color: #3167a6;
  font-weight: 700;
  line-height: 1.2;
}

.compare-point__tags--natural span {
  background: #e8f5ef;
  color: #3d8b6d;
}

.compare-point p {
  margin: 0;
  color: #465269;
  line-height: 1.5;
}

/* ========================================
   Hover
======================================== */

@media (hover: hover) {
  .compare-table__row {
    transition: background-color 0.25s ease;
  }

  .compare-table__row:hover {
    background: #f8fbff;
  }

  .compare-series--naturals .compare-table__row:hover {
    background: #f8fcfa;
  }
}

/* ========================================
   SP
======================================== */

@media screen and (max-width: 600px) {
  .lubricant-compare {
    padding: 50px 15px;
  }

  .lubricant-compare__heading {
    margin-bottom: 35px;
  }

  .lubricant-compare__heading h2 {
    font-size: 22px;
  }

  .compare-series__heading h3 {
    font-size: 19px;
  }

  /* 表のヘッダーはSPでは非表示 */

  .compare-table__header {
    display: none;
  }

  /* 1商品ずつカード表示 */

  .compare-table {
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .compare-table__row {
    display: grid;
    grid-template-columns: 1fr 90px;
    min-height: 0;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 10px;
    background: #fff;
  }

  .compare-table__row:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid #dce3ed;
  }

  /* 商品 */

  .compare-product {
    grid-template-columns: 55px 1fr;
    min-height: 90px;
    padding: 10px 12px;
    border-right: 1px solid #e2e7ef;
  }

  .compare-product__image {
    height: 70px;
  }

  .compare-product__image img {
    max-width: 45px;
    max-height: 68px;
  }

  /* タイプ */

  .compare-type {
    border-right: none !important;
  }

  /* 特長 */

  .compare-point {
    grid-column: 1 / -1;
    padding: 12px 15px 14px;
    border-top: 1px solid #e2e7ef;
    border-right: none !important;
  }

  /* Naturals */

  .compare-series--naturals {
    margin-right: 0;
    margin-left: 0;
    padding: 20px 12px 12px;
  }
}
