@charset "UTF-8";
/* CSS Document */

/* 症例カード全体 */
.mirai-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

/* 1カード */
.mirai-case-card {
  overflow: hidden;
  padding: 18px 14px 22px;
  background: #fff;
  border: 1px solid #e8e1d8;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(60, 45, 25, 0.05);
}

/* 症例名 */
.mirai-case-title {
  position: relative;
  margin: 0 0 16px;
  padding-top: 15px;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.mirai-case-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 1px;
  background: #e88da3;
  transform: translateX(-50%);
}

/* Before / Afterスライダー */
.ba-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1080 / 476;
  background: #eee;
  user-select: none;
  touch-action: pan-y;
}

.ba-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after,
.ba-before {
  position: absolute;
  inset: 0;
}

.ba-before {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
}

.ba-before img {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

/* ラベル */
.ba-label {
  position: absolute;
  bottom: 0;
  z-index: 3;
  padding: 5px 12px;
  color: #fff;
  background: rgba(25, 20, 18, 0.65);
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.2;
}

.ba-label-before {
  left: 0;
}

.ba-label-after {
  right: 0;
}

/* スライダー操作ボタン */
.ba-handle {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  width: 42px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: #e88da3;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: ew-resize;
  transform: translate(-50%, -50%);
}

.ba-handle span {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -2px;
}

/* テキスト */
.mirai-case-text {
  padding: 14px 8px 0;
}

.mirai-case-period {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.6;
}

.mirai-case-period strong {
  color: #b8872e;
}

.mirai-case-comment {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

/* タブレット */
@media screen and (max-width: 900px) {
  .mirai-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* スマホ */
@media screen and (max-width: 600px) {
  .mirai-case-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
