@charset "UTF-8";

/* ==========================================================================
   セラミックLP 症例ブロック（ラミネートベニアの症例ブロックデザインを移植）
   既存の .cases / .cases__title と衝突しないよう cb- プレフィックスで名前空間化
   ========================================================================== */

.cb-cases {
  position: relative;
  overflow: hidden;
  padding: 78px 20px 88px;
  background: url(../images/caseblock/cb-bg-pc.png) no-repeat center top / cover;
  color: #15729f;
  font-family: "Zen Old Mincho", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.cb-cases__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

/* 見出し */
.cb-cases__title {
  text-align: center;
}

.cb-cases__title-main {
  margin: 0;
  color: #15729f;
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 2px;
  font-weight: 900;
}

.cb-cases__title-sub {
  margin: 4px 0 0;
  color: #15729f;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 1.1px;
  font-weight: 900;
}

/* タブ */
.cb-cases__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 860px;
  margin: 54px auto 32px;
}

.cb-cases__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 13px 16px;
  background: #fff;
  border: #f3f3f3 solid 1px;
  box-shadow: 0 4px 12px rgba(24, 80, 120, 0.08);
  color: #0c638e;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.cb-cases__tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 10px 0 10px;
  border-color: #0c638e transparent transparent transparent;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cb-cases__tab.is-active {
  background: #0c638e;
  color: #fff;
  border: none;
  box-shadow: none;
}

.cb-cases__tab.is-active::after {
  opacity: 1;
}

.cb-cases__tab:hover {
  background: #0c638e;
  color: #fff;
}

/* パネル */
.cb-cases__panels {
  position: relative;
}

.cb-case {
  display: none;
  grid-template-columns: 46% 1fr;
  gap: 44px;
  align-items: center;
  padding: 34px 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(20, 72, 120, 0.08);
}

.cb-case.is-active {
  display: grid;
  animation: cbCaseFade 0.35s ease;
}

.cb-case__image {
  width: 100%;
  height: auto;
}

.cb-case__image img {
  display: block;
  width: 100%;
  height: auto;
}

.cb-case__body {
  min-width: 0;
}

.cb-case__title {
  position: relative;
  margin: 0 0 16px;
  padding-left: 34px;
  color: #0c638e;
  font-size: 26px;
  line-height: 1.55;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: left;
}

.cb-case__title::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 24px;
  height: 24px;
  background: url("../images/caseblock/cb-star.svg") no-repeat center/contain;
}

.cb-case__details {
  display: grid;
  gap: 14px;
}

.cb-case__detail {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 15px;
  background: #eef7fc;
  border: 1px solid #bfe9fa;
  color: #485676;
}

.cb-case__detail p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.cb-case__detail strong {
  margin: 0 4px;
  color: #485676;
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
}

.cb-case__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin-right: 18px;
  border-radius: 50%;
}

.cb-case__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* リスク・副作用 */
.cb-case__risk {
  position: relative;
  margin: 28px 0 0;
  padding-top: 20px;
  color: #485676;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.cb-case__risk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 400px);
  height: 1px;
  background: #bfe9fa;
  transform: translateX(-50%);
}

/* もっと見るボタン */
.cb-cases__more {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.cb-cases__more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  min-height: 38px;
  padding: 10px 32px 10px 0;
  box-sizing: border-box;
  border: 1px solid #0c638e;
  background: #fff;
  color: #0c638e;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.cb-cases__more-btn span {
  position: absolute;
  top: 50%;
  right: 24px;
  display: block;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.cb-cases__more-btn span img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cb-cases__more-btn:hover {
  background: #0c638e;
  color: #fff;
}

.cb-cases__more-btn:hover span img {
  filter: brightness(0) invert(1);
}

.cb-cases__note {
  margin: 22px 0 0;
  color: #485676;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
}

@keyframes cbCaseFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スマホ */
@media (max-width: 767px) {
  .cb-cases {
    padding: 44px 8px 62px;
    background: url(../images/caseblock/cb-bg-sp.png) no-repeat center top / cover;
  }

  .cb-cases__inner {
    max-width: 390px;
  }

  .cb-cases__title-main {
    font-size: 36px;
    letter-spacing: 1.8px;
  }

  .cb-cases__title-sub {
    margin-top: 8px;
    font-size: 18px;
    letter-spacing: 0.9px;
  }

  .cb-cases__tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    margin: 34px 14px 28px;
  }

  .cb-cases__tab {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .cb-cases__tab::after {
    display: none;
  }

  .cb-case {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 30px;
  }

  .cb-case__title {
    margin-bottom: 26px;
    padding-left: 26px;
    font-size: 20px;
    line-height: 1.6;
  }

  .cb-case__title::before {
    top: 7px;
    width: 20px;
    height: 20px;
  }

  .cb-case__details {
    gap: 12px;
  }

  .cb-case__detail {
    min-height: 30px;
    padding: 7px 12px;
  }

  .cb-case__detail p {
    font-size: 14px;
  }

  .cb-case__detail strong {
    font-size: 21px;
  }

  .cb-case__icon {
    width: 32px;
    height: 32px;
    margin-right: 13px;
  }

  .cb-case__risk {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #bfe9fa;
    font-size: 13px;
    line-height: 1.7;
  }

  .cb-case__risk::before {
    display: none;
  }

  .cb-cases__more {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
  }

  .cb-cases__more-btn {
    max-width: 300px;
    font-size: 16px;
  }

  .cb-cases__note {
    margin-top: 24px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
  }
}
