@charset "UTF-8";

/* =======================================
   Treatment hero slider
======================================= */
.treat-hero-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.treat-hero-text__catch {
  font-size: 4rem;
  color: #bd7171;
 font-family: "Noto Serif JP", serif;
}

p.treat-hero-text__sub {
  font-size: 2.2rem;
}

.treat-hero-text {
  width: 35%;
  text-align: center;
}

.treat-hero {
  width: 65%;
  overflow: hidden;
}

   /* Swiper本体 */
   .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: relative;
   }

.treat-hero .swiper {
  max-width: 1600px; /* あっても害はない。気になるなら削除してもOK */
  width: 100%;
}

.swiper-wrapper {
  height: auto;
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

/* ==========================
   画像レイアウト
========================== */
.pic {
  position: relative;
  padding-top: 50%; /* 比率（高さ）調整：50% = 横幅の1/2の高さ */
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
}

.pic img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  filter: grayscale(0.5);
  object-fit: cover;
  z-index: 1;
}

   /* 画像ズームアウト */
.zoomOut img {
  transform: scale(1.2) translate(0, 0);
  transition: transform 7s ease;
}

.zoomOut.swiper-slide-active img {
  transform: scale(1.2) translate(-50px, 0px);
}


   /* キャプション */
.caption {
  color: #2f2d2d;
  text-shadow: 2px 2px 5px #eee, -2px -2px 5px #eee;
  font-size: 40px;
  font-weight: bold;
  text-align: right;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translateX(-50%) translateY(-50%);
  z-index: 5;
}


/* フェードアップアニメ */
.swiper-slide-active .caption .fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateX(-100px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.caption div:nth-of-type(1) {
  animation-delay: 1s;
   /* font-family: "Kiwi Maru", serif; */
   font-family: "Noto Serif JP", serif;
}

.caption div:nth-of-type(2) {
  color: #700;
  animation-delay: 2s;
  font-size: 0.8em;
font-family: "Noto Serif JP", serif;
   /* font-family: "Kiwi Maru", serif; */
}

/* ページネーション */
.swiper-pagination-bullet {
  --swiper-theme-color: rgb(0, 0, 0);
  --swiper-pagination-bullet-width: 4px;
  --swiper-pagination-bullet-height: 4px;
  --swiper-pagination-bullet-border-radius: none;
  transition: .5s;
}

.swiper-pagination-bullet-active {
  --swiper-pagination-bullet-width: 20px;
}

@media screen and (max-width: 1024px) {

  .treat-hero-section {
    align-items: center;
    flex-direction: column-reverse;
  }

  .treat-hero-text {
    position: static;
    transform: none;
    width: 90%;
    max-width: 600px;
    margin: 1.5rem auto;
    text-align: center;
  }

  .treat-hero-text__catch {
    font-size: 2.4rem;
    line-height: 1.4;
  }

  .treat-hero-text__sub {
    font-size: 1.5rem;
  }

  .treat-hero {
    width: 100%;
    margin-left: 0;
  }

   .caption {
    width: 450px;
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {

  .treat-hero-text__catch {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 2.2rem;
  }

  p.treat-hero-text__sub {
    font-size: 1.2rem;
  }

  .treat-hero-text {
    width: 100%;
  }

  .treat-hero {
    width: 100%;
    margin-top: 5%;
  }

  .caption {
    width: 250px;
    font-size: 18px;
  }
}



/* =======================================
  treat-nav
======================================= */
#treat-nav {
  background-color: #9ebfcc;
  padding: 4rem 0 4.5rem;
}

#treat-nav .section-title {
  color: #fff;
}

.treat-nav__list {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
}

/* PC：1アイテムの幅（3列） */
.treat-nav__item {
  width: calc((100% - 1.6rem * 2) / 3); 
  /* ＝100% - 2列分の余白 → 約3列 */
}

/* ボタン */
.treat-nav__item a {
  display: block;
  text-align: center;
  padding: 18px 16px; 
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  font-size: 1.6rem;
   font-family: "Kiwi Maru", serif;
  color: #234353;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: .2s ease;
}


@media (hover: hover) {
  .treat-nav__item a:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }
}

/* タブレット（2列） */
@media screen and (max-width: 1024px) {
  .treat-nav__item {
    width: calc((100% - 1.6rem) / 2); 
  }
}

/* スマホ（1列） */
@media screen and (max-width: 820px) {
 ul.treat-nav__list {
    margin: 0 20px;
}
}
@media screen and (max-width: 640px) {
  .treat-nav__item {
    width: 80%;
    margin: 0 auto;
  }
}
@media screen and (max-width: 640px) {
  .treat-nav__item {
    width: 80%;
    margin: 0 auto;
  }

  .treat-nav__item a {
    font-size: 1.5rem;
  }
}

@media screen and (max-width:768px) {
  .treat-nav__item a {
  padding: 7px 10px; 
}

ul.treat-nav__list {
      margin: 0;
      
    }
}

/* treat-detail__inner */
.treat-detail__inner {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.treat-detail__image {
  width: 40%;
}

.treat-detail__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px; /* 画像も同じ角丸にする */
}
.treat-detail__label {
  color: #234353;
  font-size: 2rem;

}

/* テキスト側 */
.treat-detail__text {
  width: 60%;
}


/* ===============================
   タブレット（768〜1024px）
================================ */
@media screen and (max-width: 1024px) {
  .treat-detail__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .treat-detail__image {
    width: 60%;  /* タブレットでは少し大きめに */
    margin: 0 auto;
  }

  .treat-detail__text {
    width: 90%;
    margin: 0 auto;
  }
}


/* ===============================
   スマホ（〜767px）
================================ */
@media screen and (max-width: 767px) {
  .treat-detail__image {
    width: 100%;
  }
  .treat-detail__image img {
    width: 70%;
    margin: 0 auto;
  }
  .treat-detail__text {
    width: 100%;
  }

  .treat-detail__title {
    font-size: 2.2rem;
    line-height: 1.4;
     text-wrap: balance;
  }


}


.treat-detail {
  padding: 4.5rem 0;
}
