/* =========================================================
   /treatment 専用
   トップページ（こんな方へ / サービス / プロフィール）と同じ世界観
   ※ .treatment-card は使わない（style.css のトップ用と衝突するため）
========================================================= */

.treatment-page {
  background-color: #ffffff;
  color: #1E3A5F;
}

.tx-hero,
.tx-section {
  box-sizing: border-box;
}

.tx-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  grid-template-areas: "copy media";
  align-items: stretch;
  min-height: clamp(420px, 56vh, 540px);
  overflow: hidden;
  background-color: #fafafa;
}

.tx-hero-media {
  position: relative;
  z-index: 0;
  grid-area: media;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.tx-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 38%;
  display: block;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 8%,
    #000 20%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 8%,
    #000 20%
  );
}

.tx-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #fafafa 0%,
    rgba(250, 250, 250, 0.42) 10%,
    rgba(250, 250, 250, 0.08) 22%,
    transparent 34%
  );
}

.tx-hero-copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  padding: 96px 8% 72px;
  text-align: left;
}

.tx-hero-copy-inner {
  width: max-content;
  max-width: 100%;
}

.tx-hero-title {
  display: inline-block;
  position: relative;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1E3A5F;
  margin: 0 0 12px;
  padding: 0 0 16px;
}

.tx-hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background-color: #c0a062;
  border-radius: 2px;
}

.tx-hero-lead {
  width: auto;
  max-width: none;
  margin: 24px 0 0;
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 2;
  color: #1E3A5F;
  opacity: 0.86;
}

.tx-section {
  padding: 88px 8% 96px;
  text-align: center;
  background-color: #ffffff;
}

.tx-section--muted {
  background-color: #fafafa;
}

.tx-philosophy {
  padding-top: 72px;
  padding-bottom: 80px;
}

.tx-philosophy-title {
  display: block;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.75;
  color: #1E3A5F;
  margin: 0;
}

.tx-philosophy-body {
  max-width: 34em;
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
}

.tx-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tx-inner--narrow {
  max-width: 640px;
}

.tx-heading {
  display: inline-block;
  position: relative;
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #1E3A5F;
  margin: 0 0 12px;
  padding: 0 0 16px;
}

.tx-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70px;
  height: 2.5px;
  background-color: #c0a062;
  border-radius: 2px;
}

.tx-heading--left {
  display: block;
  text-align: left;
}

.tx-heading--left::after {
  left: 0;
  transform: none;
}

.tx-body {
  margin: 36px auto 0;
  text-align: left;
}

.tx-body p {
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 2.05;
  color: #1E3A5F;
  opacity: 0.86;
  margin: 0 0 1.1em;
}

.tx-body p:last-child {
  margin-bottom: 0;
}

.tx-body--left {
  margin-top: 20px;
}

.tx-section-lead {
  margin: 28px auto 0;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  line-height: 2;
  color: #1E3A5F;
  opacity: 0.86;
}

.tx-catch {
  margin: 20px 0 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #1E3A5F;
  text-align: left;
}

.tx-eyebrow {
  font-family: "Playfair Display", serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #c0a062;
  margin: 0 0 10px;
  text-align: left;
}

/* ---------- 3本柱 ---------- */
.tx-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 36px;
  margin-top: 56px;
  text-align: left;
}

.tx-pillar-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 22px;
}

.tx-pillar-image img,
.tx-beauty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tx-pillar-name {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: #1E3A5F;
  margin: 0 0 12px;
}

.tx-num {
  font-family: "Playfair Display", "Noto Sans JP", serif;
  font-size: 0.86em;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #c0a062;
}

.tx-pillar-title {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #1E3A5F;
  margin: 0 0 14px;
}

.tx-pillar-text {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 2;
  color: #1E3A5F;
  opacity: 0.82;
  margin: 0;
}

/* ---------- 美容鍼 ---------- */
.tx-beauty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  text-align: left;
}

.tx-beauty-image {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 16px;
}

/* ---------- 補助アプローチ ---------- */
.tx-extra-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  text-align: left;
}

.tx-extra-list li {
  padding: 16px 0 16px 18px;
  border-top: 1px solid #eee8dc;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: #1E3A5F;
  position: relative;
}

.tx-extra-list li:last-child {
  border-bottom: 1px solid #eee8dc;
}

.tx-extra-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #c0a062;
}

/* ---------- テキストリンク / CTA ---------- */
.tx-text-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #1E3A5F;
  border-bottom: 1px solid #c0a062;
  padding-bottom: 3px;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.tx-text-link:hover {
  color: #8fa3c1;
}

.tx-cta-section {
  padding-bottom: 140px;
}

.tx-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.tx-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 12px 26px;
  background: #ffffff;
  color: #1E3A5F;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  border-radius: 40px;
  border: 1px solid rgba(30, 58, 95, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tx-cta-btn--outline {
  background: #ffffff;
  color: #1E3A5F;
}

.tx-br-pc {
  display: inline;
}

/* PC：テキスト幅を広げて指定文を1行に。ホバーはポインタデバイスのみ */
@media (min-width: 1025px) {
  .tx-inner--narrow {
    max-width: 900px;
  }

  .tx-cta-section .tx-inner--narrow {
    max-width: 920px;
  }

  .tx-pillar-title {
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.03em;
  }
}

@media (hover: hover) and (min-width: 1025px) {
  .tx-cta-btn:hover,
  .tx-cta-btn--outline:hover {
    background: #1E3A5F;
    color: #ffffff;
    border-color: #1E3A5F;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: none;
  }
}

/* ---------- HOMEボタン ---------- */
.treatment-page .home-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 40px;
  padding: 10px 16px 10px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #1E3A5F;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  z-index: 1000;
}

.treatment-page .home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  background: #f8f9fb;
}

.treatment-page .home-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

/* ===============================
   タブレット
=============================== */
@media (max-width: 1024px) {
  .tx-hero {
    min-height: clamp(380px, 50vh, 500px);
  }

  .tx-hero-copy {
    width: auto;
    max-width: none;
    padding: 88px 7% 64px;
  }

  .tx-hero-media {
    width: 100%;
  }

  .tx-section {
    padding: 72px 8% 80px;
  }

  .tx-pillars {
    gap: 40px 24px;
  }

  .tx-pillar-image {
    height: 200px;
  }

  .tx-pillar-title {
    font-size: 1.08rem;
  }

  .tx-beauty {
    gap: 40px;
  }

  .tx-beauty-image {
    height: 280px;
  }

  .tx-cta-btn {
    min-width: 130px;
    padding: 9px 16px;
    font-size: 0.85rem;
  }
}

/* ===============================
   スマートフォン
=============================== */
@media (max-width: 768px) {
  .tx-hero {
    min-height: clamp(300px, 58vw, 420px);
    background-color: #fafafa;
  }

  .tx-hero-media {
    width: 100%;
    min-height: 0;
  }

  .tx-hero-media img {
    object-position: 82% 46%;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 12%,
      #000 28%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 12%,
      #000 28%
    );
  }

  .tx-hero-media::after {
    background: linear-gradient(
      90deg,
      #fafafa 0%,
      rgba(250, 250, 250, 0.55) 14%,
      rgba(250, 250, 250, 0.12) 28%,
      transparent 42%
    );
  }

  .tx-hero-copy {
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 56px 10% 56px 8%;
  }

  .tx-hero-copy-inner {
    width: 100%;
  }

  .tx-hero-title {
    font-size: 1.7rem;
  }

  .tx-hero-lead {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.95;
    margin-top: 20px;
  }

  .tx-br-pc {
    display: none;
  }

  .tx-section {
    padding: 68px 8% 76px;
  }

  .tx-philosophy {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .tx-philosophy-title {
    font-size: 1.12rem;
  }

  .tx-heading {
    font-size: 1.38rem;
    line-height: 1.55;
    letter-spacing: 0.04em;
  }

  .tx-body {
    margin-top: 28px;
  }

  .tx-body p,
  .tx-section-lead,
  .tx-pillar-text {
    font-size: 0.94rem;
    line-height: 2.05;
  }

  .tx-pillars {
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .tx-beauty {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .tx-pillar + .tx-pillar {
    padding-top: 40px;
    border-top: 1px solid #eee8dc;
  }

  .tx-pillar-image {
    height: 200px;
    margin-bottom: 18px;
  }

  .tx-pillar-title {
    font-size: 1.08rem;
  }

  .tx-beauty-image {
    height: 210px;
  }

  .tx-catch {
    font-size: 1.05rem;
  }

  .tx-extra-list {
    margin-top: 28px;
  }

  .tx-extra-list li {
    padding: 14px 0 14px 16px;
    font-size: 0.95rem;
  }

  .tx-cta-section {
    padding-bottom: 120px;
  }

  .tx-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
  }

  .tx-cta-btn {
    width: 80%;
    min-width: 210px;
    max-width: 260px;
    padding: 11px 22px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .treatment-page .home-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .treatment-page .home-btn img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .tx-hero {
    min-height: clamp(280px, 62vw, 380px);
  }

  .tx-hero-copy {
    padding: 48px 8% 48px 6%;
  }

  .tx-section {
    padding: 64px 6% 72px;
  }

  .tx-heading {
    font-size: 1.28rem;
  }

  .tx-pillar-image,
  .tx-beauty-image {
    height: 180px;
    border-radius: 12px;
  }

  .tx-cta-btn {
    width: 80%;
    min-width: 0;
    max-width: 240px;
    padding: 10px 22px;
    font-size: 0.88rem;
  }
}
