/* ======================================
   CASE：基本レイアウト
====================================== */

.lp-case .lp-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.lp-case-list{
  margin-top: 72px;
}

/* 1事例カード */
.case-block{
  border: 1px solid #e6eef4;
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 120px;
  background: #fff;
}

/* 横並び（PC） */
.case-inner{
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

/* 事例②反転 */
.case-inner.is-reverse{
  flex-direction: row-reverse;
}

/* ======================================
   画像
====================================== */

.case-media{
  flex: 0 0 420px;
}

.case-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.case-video-link{
  position: relative;
  display: block;
}

.case-video-badge{
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: transform .25s ease, background .25s ease;
}

.case-video-link:hover .case-video-badge{
  transform: translateY(-2px);
  background: rgba(0,0,0,.85);
}

/* ======================================
   テキスト
====================================== */

.case-body{
  flex: 1;
}

.case-meta{
  font-size: 14px;
  font-weight: 700;
  color: #0099cc;
  margin-bottom: 12px;
  letter-spacing: .02em;
}

.case-title{
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ======================================
   Phase（Before / Approach / After）
====================================== */

.case-phase{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.case-phase::before{
  content: "";
  width: 4px;
  height: 1.2em;
  border-radius: 2px;
  background: currentColor;
}

.case-phase.before{ color:#0099cc; }
.case-phase.approach{ color:#00a8a8; }
.case-phase.after{ color:#2b7cff; }

/* ======================================
   Before
====================================== */

.case-before{
  list-style: none;
  background: #f5f8fc;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 12px 0 32px;
}

.case-before li{
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.case-before li::before{
  content:"●";
  position:absolute;
  left:0;
  top:.35em;
  font-size:12px;
  color:#0099cc;
}

/* ======================================
   After
====================================== */

.case-after{
  list-style:none;
  background:#eef4ff;
  border-radius:12px;
  padding:20px 24px;
  margin:12px 0 24px;
}

.case-after li{
  position:relative;
  padding-left:20px;
  margin-bottom:8px;
  line-height:1.7;
}

.case-after li::before{
  content:"●";
  position:absolute;
  left:0;
  top:.35em;
  font-size:12px;
  color:#2b7cff;
}

/* 結論（👉 行） */
.case-result{
  margin-top:24px;
  padding:14px 18px;
  border-left:4px solid #2b7cff;
  background: linear-gradient(
    90deg,
    rgba(43,124,255,.08),
    rgba(43,124,255,.02)
  );
  font-weight:700;
  line-height:1.7;
}

/* ======================================
   アコーディオン
====================================== */

.case-more{
  display:inline-block;
  margin-top:20px;
  padding:10px 28px;
  font-size:14px;
  font-weight:600;
  border-radius:999px;
  background:#0099cc;
  color:#fff;
  border:none;
  cursor:pointer;
  transition:background .25s ease, transform .2s ease;
}

.case-more:hover{
  background:#007fb0;
  transform:translateY(-1px);
}

.case-detail{
  overflow:hidden;
  max-height:0;
  opacity:0;
  transition:max-height .45s ease, opacity .3s ease;
}

.case-detail.is-open{
  opacity:1;
}

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

@media (max-width:768px){

  .lp-case-list{
    margin-top:32px;
  }

  .case-block{
    padding:28px 20px 32px;
    margin-bottom:64px;
  }

  .case-inner,
  .case-inner.is-reverse{
    flex-direction:column;
    gap:24px;
  }

  .case-media{
    width:100%;
  }

  .case-title{
    font-size:20px;
  }

  .case-result{
    font-size:14px;
  }
}
@media (max-width: 768px) {

  .lp-section.lp-case {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

}
/* ===============================
CASE：SP 余白殺し
=============================== */
@media (max-width: 768px) {

  /* セクション下の余白をリセット */
  .lp-section {
    padding-bottom: 0;
  }

  /* CASEカード全体の下余白 */
  .lp-case,
  .lp-case-item {
    margin-bottom: 0;
  }

  /* 画像下に出る謎の余白対策 */
  .lp-case-image,
  .lp-case-image img {
    display: block;
    margin-bottom: 0;
  }

  /* ボタン下の余白 */
  .lp-case .lp-btn {
    margin-bottom: 0;
  }
}
@media (max-width: 768px) {
  .lp-case-card,
  .case-card,
  .lp-case-item {
    min-height: auto !important;
    height: auto !important;
  }
}
@media (max-width: 768px) {
  .lp-case-image,
  .case-image,
  .lp-case-media {
    aspect-ratio: auto !important;
    padding-top: 0 !important;
    height: auto !important;
  }

  .lp-case-image img,
  .case-image img {
    position: static !important;
    height: auto !important;
  }
}
@media (max-width: 768px) {
  .case-media {
    padding-top: 0 !important;
    aspect-ratio: auto !important;
  }

  .case-media img,
  .case-media video {
    display: block;
    width: 100%;
    height: auto;
  }
}
