/**
 * 美容皮膚科：症状詳細・施術詳細ページ（タクソノミーアーカイブ）専用スタイル。
 *
 * assets/css/beauty-filter.css（一覧ページの絞り込み・カード）と対になるファイルで、
 * 配色・角丸・余白のトークンはそちら（＝モックの実際の配色）にそろえている。
 * プレフィックスは cwt-tf-detail。
 */

/* ============================================================
 * ヒーロー（グラデーション背景 + パンくず + タイトル）
 * ============================================================ */
.cwt-tf-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px;
  background: linear-gradient(135deg, #F4C4E0 0%, #E8B4D9 30%, #CD9ED7 60%, #B8A0E0 100%);
}
@media (min-width: 768px) {
  .cwt-tf-detail-hero {
    padding: 96px 24px;
  }
}
.cwt-tf-detail-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.cwt-tf-detail-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 40px;
  font-size: 14px;
  color: rgba(58, 34, 61, 0.7);
}
.cwt-tf-detail-hero__breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.cwt-tf-detail-hero__breadcrumb a:hover {
  color: #3A223D;
}
.cwt-tf-detail-hero__breadcrumb .is-current {
  font-weight: 600;
  color: #3A223D;
}
.cwt-tf-detail-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}
.cwt-tf-detail-hero__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 30px;
  font-weight: 700;
  color: #3A223D;
  line-height: 1.3;
  margin: 0;
}
@media (min-width: 768px) {
  .cwt-tf-detail-hero__title {
    font-size: 40px;
  }
}
.cwt-tf-detail-hero__eyebrow {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 13px;
  color: rgba(58, 34, 61, 0.6);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-bottom: 6px;
}

/* ============================================================
 * イントロ（グループ説明文）
 * ============================================================ */
.cwt-tf-detail-intro {
  padding: 48px 24px;
  background: #FFFFFF;
}
.cwt-tf-detail-intro__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.cwt-tf-detail-intro__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}
.cwt-tf-detail-intro__bar {
  width: 6px;
  height: 40px;
  border-radius: 999px;
  background: #CD9ED7;
  flex-shrink: 0;
}
.cwt-tf-detail-intro__heading h2 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 24px;
  font-weight: 700;
  color: #3A223D;
  margin: 0;
}
.cwt-tf-detail-intro__lead {
  font-size: 16px;
  color: #6B526F;
  line-height: 1.9;
  max-width: 760px;
  margin: 0 0 0 22px;
}

/* ============================================================
 * 詳細ブロック一覧
 *
 * 「セクションごとに枠へ入れる」カード構成をやめ、一般皮膚科ページ
 * （wp-block-heading.is-style-sub の左バー見出し＋本文＋点線区切り）と
 * 同じ、枠なしで見出し・区切り線だけの流し込みレイアウトにする。
 * 共有CSS（block-styles.css）への依存は増やさず、同じ見た目をここで再現する。
 * ============================================================ */
.cwt-tf-detail-list {
  /* 一般皮膚科などの固定ページ本文（.entry-content、assets/css/patterns.css）と
     同じ上下の余白に揃える。 */
  padding: 100px 24px;
  background: #FFFFFF;
}
@media (max-width: 767px) {
  .cwt-tf-detail-list {
    padding: 60px 24px;
  }
}
.cwt-tf-detail-list__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cwt-tf-detail-block {
  scroll-margin-top: 96px;
}

/* 見出し（wp-block-heading.is-style-subと同じ見た目：左に4pxのバー） */
.cwt-tf-detail-heading {
  position: relative;
  margin: 0 0 16px;
  padding-left: 16px;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 22px;
  font-weight: 700;
  color: #3A223D;
  line-height: 1.4;
}
.cwt-tf-detail-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #CD9ED7;
}

/* セクション間の区切り線（wp-block-separator.is-style-dotsと同じ見た目） */
.cwt-tf-detail-separator {
  border: none;
  height: auto;
  line-height: 1;
  text-align: center;
  margin: 40px 0;
}
.cwt-tf-detail-separator::before {
  content: "···";
  color: #CD9ED7;
  font-family: serif;
  font-size: 1.5em;
  letter-spacing: 2em;
  padding-left: 2em;
}

.cwt-tf-detail-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.cwt-tf-detail-block__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #7A4A82;
  background: #F5EDF7;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
a.cwt-tf-detail-block__tag:hover {
  background: #EAD8EE;
  color: #3A223D;
}

.cwt-tf-detail-block__desc {
  font-size: 16px;
  color: #5F4663;
  line-height: 1.9;
  margin: 0;
}

/* ---- 症状ブロック専用の補助要素（原因・種類／概要） ---- */
.cwt-tf-detail-block__label {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 18px;
  font-weight: 700;
  color: #3A223D;
  line-height: 1.4;
  margin: 32px 0 16px;
}
.cwt-tf-detail-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cwt-tf-detail-block__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: #5F4663;
  line-height: 1.8;
}
.cwt-tf-detail-block__list li + li {
  margin-top: 8px;
}
.cwt-tf-detail-block__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CD9ED7;
}
.cwt-tf-detail-block__overview {
  font-size: 14px;
  color: #A087A3;
  line-height: 1.8;
  border-left: 2px solid #F2E6F5;
  padding-left: 16px;
  margin: 20px 0 0;
}
/* ---- 料金 ---- */
.cwt-tf-detail-block__price {
  max-width: 420px;
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #FDF9FE 0%, #F5EDF7 100%);
  border: 1px solid #EAD8EE;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(154, 95, 166, 0.08);
}
.cwt-tf-detail-block__price-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #3A223D;
  margin: 0 0 12px;
}
.cwt-tf-detail-block__price-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #D9AEE2, #9A5FA6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(154, 95, 166, 0.35);
}
.cwt-tf-detail-block__price-lead {
  font-size: 13px;
  color: #A087A3;
  line-height: 1.7;
  margin: 0 0 12px;
}
.cwt-tf-detail-block__price-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  border-radius: 10px;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(154, 95, 166, 0.08);
}
.cwt-tf-detail-block__price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-top: 1px solid #F2E6F5;
  border-left: 1px solid #F2E6F5;
  margin-top: -1px;
  margin-left: -1px;
}
.cwt-tf-detail-block__price-row dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #A087A3;
  margin: 0;
}
.cwt-tf-detail-block__price-row dd {
  font-size: 17px;
  font-weight: 800;
  color: #6B526F;
  white-space: nowrap;
  margin: 0;
  line-height: 1.2;
}
.cwt-tf-detail-block__price-row:first-child dd {
  background: linear-gradient(135deg, #C77FD4, #9A5FA6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
}

/* ---- サイドの関連リンク一覧（詳細ページ最下部・簡易版） ---- */
.cwt-tf-detail-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cwt-tf-detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #7A4A82;
  background: #F5EDF7;
  border: 1px solid #EAD8EE;
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cwt-tf-detail-nav a:hover {
  background: #EAD8EE;
  border-color: #CD9ED7;
  color: #3A223D;
}

/* ============================================================
 * パンくず（ページ最下部・.cwt-page-breadcrumb-bar）
 *
 * このルール自体は assets/css/patterns.css にある共通スタイルと同じだが、
 * patterns.cssは is_singular(post/page) のページでしか読み込まれず、
 * タクソノミーアーカイブ（症状・施術の詳細ページ）には効かないため、
 * 他の固定ページと同じ「右寄せ」の見た目をここで再現する。
 * ============================================================ */
.cwt-page-breadcrumb-bar {
  max-width: 1200px;
  margin-inline: auto;
  padding-block: 10px;
  padding-inline: 20px;
  background-color: #FFFFFF;
}
.cwt-page-breadcrumb-bar .cwt-breadcrumb__list {
  justify-content: flex-end;
  font-size: 14px;
}
@media (max-width: 767px) {
  .cwt-page-breadcrumb-bar {
    display: none;
  }
}
