/* case.html - Book4 revision 2026-09-25 */
.under main #case_ttl_01 .case-lead-text {
  text-align: center;
}

.under main .case-story {
  margin-bottom: 70px;
}
.under main .case-story__lead {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.under main .case-story--image-right .case-story__lead {
  grid-template-columns: minmax(0, 1fr) 420px;
}
.under main .case-story--image-right .case-story__image {
  grid-column: 2;
  grid-row: 1;
}
.under main .case-story--image-right .case-story__background {
  grid-column: 1;
  grid-row: 1;
}
.under main .case-story__image {
  width: 100%;
  margin: 0 !important;
  text-align: center;
}
.under main .case-story__image img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: cover;
  border-radius: 30px;
}
.under main .case-story__background p,
.under main .case-story__detail p {
  margin-bottom: 24px;
}
.under main .case-story__detail {
  clear: both;
  padding-top: 26px;
}
.under main .case-story__detail p:last-child {
  margin-bottom: 0;
}
.under main .case-story__label,
.under main .case-compare-label {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 5px 13px 6px;
  border-radius: 7px;
  background: #ff2d7f;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

/* Book4 image 06: allow the lead paragraph to sit to the left, never overlap it. */
.under main #case_ttl_02 .case-comparison-illust {
  float: right;
  width: 255px;
  margin: 0 0 22px 34px;
}
.under main #case_ttl_02 .case-comparison-illust img {
  display: block;
  width: 100%;
  height: auto;
}
.under main #case_ttl_02 .case-comparison-lead {
  min-height: 150px;
}
.under main #case_ttl_02 .box_under {
  clear: both;
}

/* Comparison labels: remove the old generated bullet and use pink labels. */
.under main #case_ttl_02 .case-compare-list {
  list-style: none;
  padding-left: 0;
}
.under main #case_ttl_02 .case-compare-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 20px;
}
.under main #case_ttl_02 .case-compare-list li::before {
  content: none !important;
  display: none !important;
}
.under main #case_ttl_02 .case-compare-label {
  margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
  .under main .case-story {
    margin-bottom: 46px;
  }
  .under main .case-story__lead,
  .under main .case-story--image-right .case-story__lead {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .under main .case-story--image-right .case-story__image,
  .under main .case-story--image-right .case-story__background {
    grid-column: auto;
    grid-row: auto;
  }
  .under main .case-story__image {
    order: 1;
  }
  .under main .case-story__background {
    order: 2;
  }
  .under main .case-story__image img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: 20px;
  }
  .under main .case-story__detail {
    padding-top: 18px;
  }
  .under main .case-story__background p,
  .under main .case-story__detail p {
    margin-bottom: 18px;
  }
  .under main .case-story__label,
  .under main .case-compare-label {
    padding: 5px 11px 6px;
    margin-bottom: 10px;
  }
  .under main #case_ttl_02 .case-comparison-illust {
    float: none;
    width: min(72%, 280px);
    margin: 0 auto 18px;
  }
  .under main #case_ttl_02 .case-comparison-lead {
    min-height: 0;
  }
  .under main #case_ttl_02 .case-compare-list li {
    margin-bottom: 18px;
  }
}


/* Follow-up: direct-purchase illustration at bottom-right, original case design preserved */
.under main #case_ttl_02 .frame01_case{
  position:relative;
  overflow:hidden;
}
.under main #case_ttl_02 .frame01_case .case-direct-inline-illust{
  position:absolute;
  right:22px;
  bottom:20px;
  width:200px;
  margin:0;
  z-index:1;
}
.under main #case_ttl_02 .frame01_case .case-direct-inline-illust img{
  display:block;
  width:100%;
  height:auto;
}
/* Only the final explanatory line yields space to the illustration; the outer frame size is not enlarged. */
.under main #case_ttl_02 .frame01_case .case-compare-list li:last-child{
  padding-right:195px;
  min-height:120px;
}

@media screen and (max-width: 900px){
  .under main #case_ttl_02 .frame01_case .case-direct-inline-illust{width:170px;right:16px;bottom:16px;}
  .under main #case_ttl_02 .frame01_case .case-compare-list li:last-child{padding-right:165px;min-height:105px;}
}

@media screen and (max-width: 767px){
  .under main #case_ttl_02 .frame01_case{overflow:visible;}
  .under main #case_ttl_02 .frame01_case .case-direct-inline-illust{
    position:static;
    width:180px;
    margin:12px 0 0 auto;
  }
  .under main #case_ttl_02 .frame01_case .case-compare-list li:last-child{
    padding-right:0;
    min-height:0;
  }
}

/* Follow-up: keep the short lead sentence on one line on PC, while the comparison copy below can wrap around the illustration. */
@media screen and (min-width:901px){
  .under main #case_ttl_02 .frame01_case > p.bold{
    white-space:nowrap;
    font-size:15px;
    letter-spacing:-0.02em;
  }
}
