/* =======================================================
   menu.css（施術メニュー＋お客様の声：差分のみ）
   ※ セクションの器（.section / .section-header / .section-title / .needle-icon / 背景・余白）は common.css 管轄
======================================================= */

/* --- menu専用アニメーション --- */
@keyframes menuFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuFadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================================
   施術メニュー（差分）
======================================================= */

.treatment-block {
  display: flex;
  flex-wrap: wrap;
  gap: 60px 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.treatment {
  width: 80%;
  background: #fff;
  border-radius: 16px;
  padding: 30px 25px 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
  animation: menuFadeSlideUp 1s ease-out forwards;
}

.treatment-sub {
  font-size: 20px;
  color: #E36B71;
  text-align: center;
  margin: 5px 0 15px 0;
}

.treatment-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.treatment-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin: 15px 0 25px 0;
  line-height: 1.2;
}

.treatment-features {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.symptom-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.symptom-group {
  flex: 1 1 calc(33.33% - 1rem);
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  min-width: 250px;
  opacity: 0;
  animation: menuFadeSlideUp 1s ease-out forwards;
}

.treatment.animate,
.symptom-group.animate {
  animation: menuFadeSlideUp 1s ease-out forwards;
}

.symptom-group h4 {
  color: #E36B71;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  border-bottom: none;
  padding-bottom: 0.3rem;
  transition: border-bottom 0.3s ease;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.symptom-group h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: #E36B71;
  transition: width 0.4s ease-in-out;
}

.symptom-group h4.active {
  border-bottom: 1px solid #E36B71;
}

.symptom-group h4.active::after {
  width: 100%;
}

.symptom-group ul {
  list-style: disc;
  margin-left: 1.2rem;
  margin-top: 15px;
  display: none;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.3s ease;
  line-height: 1.8;
}

.symptom-group ul.open {
  display: block;
  opacity: 1;
  transform: scaleY(1);
}

/* ---------- タブレット（768～1199px） ---------- */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .treatment {
    width: 86%;
    margin: 0 auto;
  }

  .treatment-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .treatment-title {
    font-size: 25px;
  }

  .treatment-features {
    line-height: 1.8;
    min-height: 140px;
  }

  .symptom-groups {
    gap: 2rem 1rem;
    margin: 1.5rem 0 0 0;
  }

  .symptom-group {
    flex: 0 0 35%;
    max-width: 35%;
    min-width: 0;
  }

  .symptom-group ul {
    font-size: 15px;
  }
}

/* ---------- PC（1200px～） ---------- */
@media screen and (min-width: 1200px) {
  .treatment-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .treatment-title {
    font-size: 28px;
  }

  .treatment-features {
    line-height: 1.8;
    min-height: 100px;
  }

  .treatment-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
  }

  .treatment-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(227, 107, 113, 0.2);
  }

  .symptom-groups {
    gap: 2rem;
    margin: 1.5rem 0.5rem 0 0.5rem;
  }

  .symptom-group {
    flex: 0 0 35%;
    max-width: 35%;
    min-width: 0;
  }
}


/* =======================================================
   recommend（お客様の声）：差分のみ
   ※ セクションの器は common.css（.section / .section--bg-soft）
======================================================= */

.recommend-description {
  font-size: 18px;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* スライダー本体 */
.course-slider {
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
}

.course-card {
  background: linear-gradient(to bottom right, #fce6e3, #fff8f6);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: "Times New Roman", "Lusitana", "Yu Mincho", "メイリオ", serif;
  height: 100%;
  box-sizing: border-box;
}

/* Before/After 画像エリア */
.image-area {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 260px;
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .image-area {
    max-height: none;      /* 高さ制限解除 */
    margin-bottom: 20px;   /* 余白は好みで */
  }
}

.image-item {
  width: 48%;
  text-align: center;
}

.image-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 2s ease-out;
  border-radius: 12px;
}

.image-area:hover .image-item img {
  transform: scale(1.05);
}

.image-label {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  color: #E36B71;
  letter-spacing: 0.05em;
}

.course-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 6px;
  display: inline;
  background-image: linear-gradient(transparent 60%, #f8c1c8 60%);
  background-size: 100% 1em;
  background-repeat: no-repeat;
  background-position: 0 100%;
}

.course-note {
  font-size: 16px;
  margin: 20px 0;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .course-note {
    min-height: 4.2em;
  }
}

/* （HTMLに登場しないなら将来整理候補） */
.price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.discount-amount {
  color: #E36B71;
  font-weight: bold;
  text-decoration: underline;
}

.feature-label {
  font-weight: bold;
  margin: 20px 0 10px;
  font-size: 16px;
}

.feature-label::before {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  transform: scale(1.2);
}

.feature-list li {
  position: relative;
  padding-left: 1.5em;
  margin: 10px 0 30px 0;
  font-size: 15px;
  color: #000;
  line-height: 1.5;
}

/* Swiper（course-slider）ナビ：矢印はbackgroundで確実に表示 */
.course-slider .swiper-button-prev,
.course-slider .swiper-button-next {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
  display: block;
  z-index: 10;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
  font-size: 0;
  color: transparent;
}

/* Swiperのデフォルト疑似要素は無効化（競合防止） */
.course-slider .swiper-button-prev::after,
.course-slider .swiper-button-next::after {
  content: none !important;
}

/* 左右位置 */
.course-slider .swiper-button-prev { left: 10px; }
.course-slider .swiper-button-next { right: 10px; }

/* 左矢印（#E36B71） */
.course-slider .swiper-button-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E36B71' d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

/* 右矢印（#E36B71） */
.course-slider .swiper-button-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E36B71' d='m8.59 16.59 1.41 1.41 6-6-6-6-1.41 1.41L13.17 12z'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .course-slider .swiper-button-prev,
  .course-slider .swiper-button-next {
    width: 28px;
    height: 28px;
    background-size: 24px 24px;
  }

  .course-slider .swiper-button-prev { left: 6px; }
  .course-slider .swiper-button-next { right: 6px; }
}