.lesson-hero{
  position: relative;
  width: 100%;
  overflow: visible;
  margin-bottom: 4%;
}

.lesson-hero .hero-grid{
  display: grid;
  grid-template-columns: repeat(3, calc(99% / 3));
  box-sizing: border-box;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.lesson-hero .hero-grid.inview{
  opacity: 1;
  transform: none;
}

.lesson-hero .hero-grid img{
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.lesson-hero .hero-center{
  position: relative;
  display: block;
}

/* 各画像を覆うラッパーを作って、その上にマスクを載せる */
.lesson-hero .hero-item {
  position: relative;
  display: block;
}

.lesson-hero .hero-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* 中央下部のタイトル（h1） */
.lesson-hero .hero-title{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  color: #eeeeee;
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.lesson-hero .hero-grid {
    gap: 0.5%;
    padding: 0;
}

@media (min-width: 768px){
  .lesson-hero .hero-grid{ gap: 14px; padding: 14px; }
}

@media (min-width: 1600px){
  .lesson-hero .hero-grid{ max-width: 1100px; }
}

/* ===== Lesson main (replace from here) ===== */
.lesson{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* セクションの共通余白・色 */
.lesson .section{
  width: 100%;
  margin: 0 auto 80px;
  padding: 0px;
  color: #eeeeee;
}

/* ---------- Intro（中央のグレーカード） ---------- */
.lesson .lesson-intro .split{
    width: 100%;
    margin: 0 auto;
    padding: 0;
/*    background-color: lightblue;*/
}

.lesson .lesson-intro .split-body{
  margin: 0 auto;
  max-width: 768px;
  padding: clamp(22px, 5.6vw, 46px) clamp(22px, 6vw, 56px);
  text-align: center;
  background: rgba(238, 238, 238, 0.08);
}

.lesson .split-eyebrow{
  margin: 0 0 .6rem;
  letter-spacing: .12em;
  opacity: .7;
}
.lesson .split-title{
  margin: 0 0 1.2rem;
  font-weight: 300;
  letter-spacing: .02em;
}
.lesson .lead p{
  line-height: 1.9;
  margin: 0 8% 1rem;
}

/*.lesson .price-line{*/
/*  margin-top: 1.2rem;*/
/*  letter-spacing: .02em;*/
/*  opacity: .9;*/
/*}*/
/*.lesson .price-line .strong{*/
/*    font-weight: 600;*/
/*}*/

.lesson .split-media.two{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px auto 0;
  max-width: 900px;
}
.lesson .split-media.two img{
  width: 90%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  padding: 0 5%;
  display: block;
}
