/* ==========================================================
   症例ページCSS（case_study.css）
   ========================================================== */

/* -----------------------------------------------------------
   カテゴリナビ
   ----------------------------------------------------------- */
.case-nav {
  margin: 40px 0 0;
}

.case-nav__group {
  margin-bottom: 40px;
}

.case-nav__label {
  font-size: 14px;
  font-weight: 700;
  color: #c49a9a;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e5b8b8;
}

.case-nav__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e8d8d8;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.case-nav__item::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #c49a9a;
  border-right: 2px solid #c49a9a;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.case-nav__item:hover {
  background: #fdf5f5;
  border-color: #e5b8b8;
  color: #c49a9a;
}

.case-nav__item:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* SP */
@media screen and (max-width: 640px) {
  .case-nav {
    margin: 24px 0 0;
  }

  .case-nav__group {
    margin-bottom: 28px;
  }

  .case-nav__items {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-nav__item {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* -----------------------------------------------------------
   症例カード
   ----------------------------------------------------------- */
.case_card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.case_card_title {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0e8e8;
    text-align: left;
}


/* --- Before / After 画像 --- */
.case_card_inner {
    display: flex;
    gap: 0;
}

.case_card_img {
    flex: 1;
    position: relative;
}

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

.case_card_img p {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: #e5b8b8;
    border-radius: 4px;
    margin: 0;
    letter-spacing: 0.05em;
}

/* -----------------------------------------------------------
   症例詳細テーブル
   ----------------------------------------------------------- */
.case_card_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    line-height: 1.7;
}

.case_card_table th,
.case_card_table td {
    padding: 10px 24px;
    border-bottom: 1px solid #f5eded;
    text-align: left;
    vertical-align: top;
}

.case_card_table th {
    width: 120px;
    white-space: nowrap;
    font-weight: 600;
    color: #b07878;
    background: #fdf8f8;
}

.case_card_table td {
    color: #444;
}

/* -----------------------------------------------------------
   症例カード：施術内容の説明
   ----------------------------------------------------------- */
.case_card_detail {
    padding: 14px 24px;
    background: #fdf5f5;
    border-top: 1px dashed #e8d4d4;
}

.case_card_detail_title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #c49a9a;
    margin-bottom: 4px;
}

.case_card_detail_text {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* -----------------------------------------------------------
   症例カード：リスク・副作用
   ----------------------------------------------------------- */
.case_card_risk {
    margin: 0;
    padding: 14px 24px;
    background: #fdf5f5;
    border-top: 1px dashed #e8d4d4;
}

.case_card_risk_title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 4px;
    padding-left: 1.2em;
    position: relative;
}

.case_card_risk_title::before {
    content: "\26A0";
    position: absolute;
    left: 0;
}

.case_card_risk_text {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.7;
}

/* -----------------------------------------------------------
   症例カード：ドクターコメント
   ----------------------------------------------------------- */
.case_card_doctor {
    margin: 0;
    padding: 14px 24px;
    background: #faf9f4;
    border-top: 1px dashed #e4e2d4;
}

.case_card_doctor_title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b5b3e;
    margin-bottom: 4px;
}

.case_card_doctor_text {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
}

/* -----------------------------------------------------------
   途中CTA
   ----------------------------------------------------------- */
.case_cta_mid {
    text-align: center;
    margin: 50px 0;
}

.case_cta_btn {
    display: inline-block;
    background: #e5b8b8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.case_cta_btn:hover {
    opacity: 0.75;
}

/* -----------------------------------------------------------
   ページネーション
   ----------------------------------------------------------- */
.case_pagination {
    margin: 60px 0 0;
    text-align: center;
}

.case_pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.case_pagination .page-numbers {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.case_pagination .page-numbers.current {
    background: #e5b8b8;
    color: #fff;
    border-color: #e5b8b8;
}

.case_pagination .page-numbers:hover {
    background: #f5e5e5;
}

/* -----------------------------------------------------------
   レスポンシブ（768px以下）
   ----------------------------------------------------------- */
@media screen and (max-width: 768px) {

    .case_card {
        margin-bottom: 48px;
        border-radius: 8px;
    }

    .case_card_title {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .case_card_inner {
        flex-direction: column;
        margin: 0 -0px;
    }

    .case_card_img {
        width: 100% !important;
    }

    .case_card_img p {
        position: static;
        display: block;
        margin: 0;
        padding: 6px 16px;
        font-size: 0.7rem;
        font-weight: 600;
        color: #fff;
        background: rgba(0, 0, 0, 0.45);
        border-radius: 0;
        letter-spacing: 0.08em;
    }

    .case_card_img:last-child p {
        background: #e5b8b8;
    }

    .case_card_table th,
    .case_card_table td {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .case_card_table th {
        width: 100px;
    }

    .case_card_risk {
        padding: 10px 16px;
    }

    .case_card_doctor {
        padding: 10px 16px;
    }

    .case_cta_mid {
        margin: 35px 0;
    }

    .case_cta_btn {
        font-size: 14px;
        padding: 14px 30px;
        display: block;
        margin: 0 auto;
        max-width: 320px;
    }

    .case_pagination {
        margin: 40px 0 0;
    }

    .case_pagination .page-numbers {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 13px;
    }
}
