.trial__compare {
  position: relative;
  padding-top: 280px;
  padding-bottom: 120px;
  margin-top: -100px;
  background-color: #def2ff;
  background-image:
    url(../../images/trial-lesson/safety_bg.png),
    linear-gradient(to bottom, #ffffff 0, #ffffff 25vw, #def2ff 25vw, #def2ff 100%);
  background-size: 100% auto, 100% 100%;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
}
.trial__compare-inner { position: relative; }
.trial__compare-title {
  color: #24799d;
  font-weight: bold;
  font-size: 50px;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 24px;
}
.trial__compare-subtitle {
  color: #1b6f93;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  line-height: 1.55;
  margin: 0 0 90px;
}

.trial__compare-table {
  position: relative;
  max-width: 1194px;
  margin: 0 auto;
}

/* おすすめ! バッジ */
.trial__compare-osusume {
  position: absolute;
  top: -76px;
  left: 35.6%;
  transform: translateX(-50%);
  width: 240px;
  height: auto;
  margin-bottom: 0;
  z-index: 4;
  pointer-events: none;
}
/* LUNA STUDIO ヘッダー (head 行とぴったり合うように 90px、上に 30px はみ出る) */
.trial__compare-luna-header {
  position: absolute;
  top: -30px;
  left: 22.7%;
  width: 25.8%;
  height: 90px;
  background: #1e88b5;
  color: #ffffff;
  font-weight: bold;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 30px 30px 0 0;
  box-sizing: border-box;
  z-index: 3;
}

/* 各行は4セルのグリッド */
.trial__compare-row {
  display: grid;
  grid-template-columns: 22.7% 25.8% 25.8% 25.8%;
  align-items: stretch;
}

.trial__compare-c {
  padding: 18px 14px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #464646;
}

/* ラベル列 */
.trial__compare-c--label {
  background: #f2f2f2;
  color: #24799d;
  font-weight: bold;
  border-left: 2px solid #1e88b5;
  border-bottom: 2px dotted #b5b5b5;
}
.trial__compare-row--head .trial__compare-c--label {
  background: transparent;
  border: 0;
  height: 60px;
}
.trial__compare-row--first .trial__compare-c--label {
  border-top: 2px solid #1e88b5;
  border-top-left-radius: 8px;
}
.trial__compare-row--last .trial__compare-c--label {
  border-bottom: 2px solid #1e88b5;
  border-bottom-left-radius: 8px;
}

/* LUNA 列 */
.trial__compare-c--luna {
  background: #fff9cc;
  color: #24799d;
  font-weight: bold;
  border-left: 8px solid #1e88b5;
  border-right: 8px solid #1e88b5;
  border-bottom: 2px dotted #b5b5b5;
}
.trial__compare-row--head .trial__compare-c--luna {
  height: 60px;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.trial__compare-row--last .trial__compare-c--luna {
  border-bottom: 8px solid #1e88b5;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* 他教室列 */
.trial__compare-c--other {
  background: #ffffff;
  border-right: 2px solid #1e88b5;
  border-bottom: 2px dotted #b5b5b5;
}
.trial__compare-row--first .trial__compare-c--other {
  border-top: 2px solid #1e88b5;
}
.trial__compare-c--other-head {
  background: #f2f2f2;
  color: #24799d;
  font-weight: bold;
  border-top: 2px solid #1e88b5;
  border-right: 2px solid #1e88b5;
  height: 60px;
}
.trial__compare-row--last .trial__compare-c--other {
  border-bottom: 2px solid #1e88b5;
}
.trial__compare-row--last .trial__compare-c--other:last-child {
  border-bottom-right-radius: 8px;
}
.trial__compare-row--head .trial__compare-c--other-head:last-child {
  border-top-right-radius: 8px;
}

/* アイコン */
.trial__compare-mark {
  display: block;
  width: 60px;
  height: auto;
  max-height: 60px;
  margin: 0 auto 6px;
  object-fit: contain;
}

.trial__compare-c-text {
  display: block;
  font-size: 18px;
  line-height: 26px;
}
.trial__compare-c--luna .trial__compare-c-text { color: #24799d; }
.trial__compare-c--text {
  font-size: 18px;
  font-weight: bold;
  color: #24799d;
  padding: 28px 14px;
}
.trial__compare-c--other.trial__compare-c--text {
  color: #24799d;
}
.trial__compare-c--luna.trial__compare-c--text {
  color: #24799d;
}

/* CTA ピル */
.trial__compare-cta {
  position: relative;
  max-width: 1194px;
  margin: 50px auto 0;
  background: #ffffff;
  border-radius: 41px;
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 12px 24px 12px 220px;
  box-sizing: border-box;
}
.trial__compare-cta-cone {
  position: absolute;
  left: 120px;
  bottom: 0;
  width: 80px;
  height: auto;
  pointer-events: none;
}
.trial__compare-cta-text {
  flex: 1;
  text-align: center;
  color: #24799d;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 899px) {
  .trial__compare { padding-top: 180px; padding-bottom: 80px; }
  .trial__compare-title { font-size: 32px;
 }
  .trial__compare-subtitle { font-size: 15px;
 margin-bottom: 60px; line-height: 1.6; padding: 0 16px; }
  .trial__compare-osusume { width: 160px; top: -52px; }
  .trial__compare-luna-header { font-size: 18px;
 padding: 14px 0; height: 65px; top: -20px; }
  .trial__compare-row--head .trial__compare-c--label,
  .trial__compare-row--head .trial__compare-c--luna,
  .trial__compare-c--other-head { height: 50px; }
  .trial__compare-c { padding: 10px 4px; font-size: 12px; }
  .trial__compare-c--text { padding: 14px 4px; font-size: 12px;
 }
  .trial__compare-c--other-head { font-size: 12px;
 }
  .trial__compare-mark { width: 32px; max-height: 32px; margin-bottom: 4px; }
  .trial__compare-c-text { font-size: 11px;
 line-height: 1.4; }
  .trial__compare-cta { padding: 16px 20px; flex-direction: row; align-items: center; gap: 12px; min-height: 0; }
  .trial__compare-cta-cone { position: static; width: 56px; flex-shrink: 0; }
  .trial__compare-cta-text { font-size: 14px;
 }
}
@media (max-width: 480px) {
  .trial__compare { padding-top: 140px; padding-bottom: 60px; }
  .trial__compare-title { font-size: 26px;
 }
  .trial__compare-subtitle { font-size: 13px;
 margin-bottom: 40px; }
  .trial__compare-osusume { width: 130px; top: -42px; }
  .trial__compare-luna-header { font-size: 14px;
 height: 65px; top: -16px; padding: 10px 0; border-radius: 18px 18px 0 0; }
  .trial__compare-c { padding: 8px 2px; font-size: 10px; }
  .trial__compare-c-text, .trial__compare-c--text { font-size: 10px;
 }
  .trial__compare-mark { width: 24px; max-height: 24px; }
  .trial__compare-c--luna { border-left-width: 4px; border-right-width: 4px; }
  .trial__compare-row--last .trial__compare-c--luna { border-bottom-width: 4px; }
}
