@charset "UTF-8";



.l-inner {
  max-width: 1040px;
  margin: auto;
  padding: 0 7.5% !important;
}

.p-treatment__cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  column-gap: 30px;
  row-gap: 40px;
  /* PC：3列 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;

}

@media (max-width: 1024px) {
  .p-treatment__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SP：1列 */
@media (max-width: 767px) {
  .p-treatment__cards {
    grid-template-columns: 1fr;
  }
}

/* .p-treatment__card {
  list-style: none;
  height: 100%;
  box-shadow: 0 6px 11px 0px rgba(0, 0, 0, 0.12);
} */

.p-treatment__card {
  list-style: none;
  height: 100%;
  box-shadow: 0 6px 11px 0px rgba(0, 0, 0, 0.12);
}

/* aがカード全体を構成 */
.p-treatment__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  /* ← 画像に余白を乗せない */
  /* border: 1px solid #998679; */
  text-decoration: none;
  color: inherit;
  transition: opacity 0.5s;
  box-sizing: border-box;
}

.p-treatment__link:hover {
  opacity: 0.6;
}

/* 画像エリア：比率で高さを固定して統一 */
.p-treatment__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  /* ← 好みで変更（例：16/9, 4/3, 1/1） */
  overflow: hidden;
  /* はみ出た部分を隠す */
  background: #f5f5f5;
  /* 画像が無い時の保険 */
}

/* imgを枠いっぱいにフィット（トリミングして高さ統一） */
.p-treatment__image img,
.p-treatment__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* 文字エリアだけに余白 */
.p-treatment__body {
  padding: 20px 12px 20px 18px;
  width: 100%;
  box-sizing: border-box;
}

.p-treatment__title {
  margin: 16px 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  width: 100%;
  color: #998679;
  height: 50px;
  padding-right: 20px;
  /* ここは今まで通りでOK */
}

.p-treatment__summary {
  margin-top: 0;
  font-size: 14px;
  color: #998679;
  line-height: 1.5;
  width: 100%;
  padding-right: 20px;
}

/* 既存の clamp はそのままでOK */
.p-treatment__summary p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  border-top: 1px solid #998679;
  padding-top: 12px;
}

.p-treatment-box {
  margin-top: 60px;
}

.p-treatment-bottom-cta {
  display: block;
  width: 100%;
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;

  /* 念のためレイアウトの影響を遮断 */
  position: relative;
  z-index: 1;
}

/* タブ全体：箱 */

/* タブ並び：PCは4列、余れば2段目へ */
.p-treatment-categories__list {
  margin-top: 55px;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  /* ボタン間の隙間 */
  align-items: stretch;
}

/* li */
.p-treatment-categories__item {
  margin: 0;
}

/* ボタン（非アクティブ） */
.p-treatment-categories__link {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #998679;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  background-color: white;
  border: 1px solid #998679;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
  font-family: inherit;
}

/* 文字が長いときだけ2行にしたい場合 */
.p-treatment-categories__link span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* 最大2行 */
  overflow: hidden;
  padding: 0 10px;
}

/* アクティブ（スクショの黒系） */
.p-treatment-categories__link.is-active {
  background: #998679;
  color: #fff;
}

/* hover */
.p-treatment-categories__link:hover {
  opacity: .9;
}

.p-treatment-categories__link.is-active:hover {
  opacity: 1;
}

/* フォーカス（キーボード操作） */
.p-treatment-categories__link:focus-visible {
  outline: 2px solid rgba(153, 134, 121, .35);
  outline-offset: 2px;
}

/* レスポンシブ：画面幅で列数を落とす */
@media (max-width: 1024px) {
  .p-treatment-categories__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .p-treatment-categories__list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .p-treatment-categories__link {
    padding: 8px 12px;
    font-size: 14px;
    min-height: 40px;
  }
}




.p-treatment__card[hidden] {
  display: none !important;
}

.c-btn.c-btn--primary {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  height: 5rem;
  width: 280px;
  margin: auto;
  padding: 0 4rem;
  border-radius: 100vw;
  background: white;
  background-size: 400%;
  border: 1px solid #998679;
  font-size: 30px;
}

a.c-btn.c-btn--primary {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;

  height: 5rem;
  width: 280px;
  margin: auto;
  padding: 0 4rem;
  border-radius: 100vw;

  background: #fff;
  border: 1px solid #998679;
  font-size: 30px;

  /* hoverが外れたら戻る用 */
  transition: color .3s ease;
}

a.c-btn.c-btn--primary span {
  position: relative;
  z-index: 1;
}

a.c-btn.c-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  /* top/left/width/heightをまとめて指定 */
  border-radius: inherit;

  background: linear-gradient(82.3deg,
      #d8cfc7 10.8%,
      #b6a79c 45%,
      #998679 70%,
      #7f6f64 94.3%);

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .475s ease;
  /* all→transformだけ */
}

/* hoverしたら背景が伸びて、文字色が白に */
a.c-btn.c-btn--primary:hover::before {
  transform: scaleX(1);
}

a.c-btn.c-btn--primary:hover {
  color: #fff;
}

/* クリック中だけ色が変わるのを避けたい場合（必要なら） */
a.c-btn.c-btn--primary:active {
  color: #fff;
  /* hoverと同じにして違和感をなくす */
}

@media (max-width: 767px) {
  a.c-btn.c-btn--primary {
    width: 100%;
    max-width: 280px;
    height: 4rem;
    padding: 0 2rem;
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  a.c-btn.c-btn--primary {
    max-width: 75%;
    height: 3.5rem;
    padding: 0 1.5rem;
    font-size: 18px;
  }
}