/* ============================================
   ティファクリニック新宿東口 — style.css
   ============================================ */

/* -- Custom Properties -- */
:root {
  --color-primary: #7c9a94;
  --color-primary-dark: #5f7f78;
  --color-accent: #b0838a;
  --color-accent-light: #f3eae9;
  --color-bg: #f6f6f4;
  --color-text: #3d3530;
  --color-heading: #3a4441;
  --color-muted: #8b9490;
  --color-border: #e3e4e0;
  --color-white: #ffffff;
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-width: 1100px;
  --header-height: 70px;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,.06);
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.header-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: .04em;
}
.header-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-muted);
  letter-spacing: .08em;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--color-heading);
  transition: color .2s;
}
.nav a:hover { color: var(--color-primary); }
.nav-cta {
  font-size: 13px !important;
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--color-primary-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-heading);
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-heading);
  letter-spacing: .06em;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(75,168,160,.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-line {
  background: #06C755;
  color: var(--color-white);
}
.btn-line:hover {
  background: #05b04c;
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(135deg, #daf0ed 0%, #f9faf8 45%, #f3eae9 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,168,160,.08) 0%, transparent 70%);
  top: -120px; right: -120px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,160,181,.1) 0%, transparent 70%);
  bottom: -60px; left: 40px;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 4px 16px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: .06em;
  line-height: 1.5;
  margin-bottom: .5rem;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: .1em;
  margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Section common ── */
.section {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 3px 14px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: .06em;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.section-text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 2;
  max-width: 680px;
}

/* Center variant */
.section--center { text-align: center; }
.section--center .section-text { margin: 0 auto; }

/* ── Concept ── */
.concept-bg {
  background: linear-gradient(180deg, var(--color-bg) 0%, #f0f7f6 100%);
}

/* ── Treatment Grid ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.menu-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.menu-card-img {
  height: 160px;
  background: linear-gradient(135deg, #ebedea, #f9eef2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
}
.menu-card-body {
  padding: 1.2rem 1.4rem;
}
.menu-card-body h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: .4rem;
}
.menu-card-body p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Doctor ── */
.doctor {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}
.doctor-photo {
  flex-shrink: 0;
  width: 260px;
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ebedea, #f9eef2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
}
.doctor-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: .3rem;
}
.doctor-info .doctor-title {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.doctor-info p {
  font-size: 14px;
  line-height: 2;
}

/* ── Clinic Info ── */
.info-bg {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.info-table { width: 100%; }
.info-table th {
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--color-muted);
  padding: .6rem 0;
  width: 100px;
  vertical-align: top;
}
.info-table td {
  font-size: 14px;
  padding: .6rem 0;
}
.map-placeholder {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ebedea, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
  border: 1px dashed var(--color-border);
}

/* ── Footer ── */
.footer {
  background: var(--color-heading);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: .5rem;
}
.footer-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,.5);
}
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--color-white); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}
.footer-social a:hover {
  background: rgba(255,255,255,.1);
  color: var(--color-white);
}
.footer-copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 80vh; padding: 5rem 1.5rem 3rem; }
  .hero h1 { font-size: 26px; }
  .hero-tagline { font-size: 16px; }

  .section { padding: 3rem 1.5rem; }
  .section-title { font-size: 20px; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .menu-card-img { height: 120px; }

  .doctor { flex-direction: column; text-align: center; }
  .doctor-photo { width: 200px; height: 240px; }

  .info-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
}
@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ============================================
   下層ページ（施術メニュー詳細）
   ============================================ */

/* -- Header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-heading);
  letter-spacing: .04em;
}
.global-nav ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.global-nav a {
  font-size: 13px;
  color: var(--color-heading);
  transition: color .2s;
  white-space: nowrap;
}
.global-nav a:hover { color: var(--color-primary); }
.header-ig { display: inline-flex; align-items: center; gap: .4em; flex: none; font-size: 12.5px; font-weight: 600; color: var(--color-accent); background: var(--color-accent-light); border: 1px solid var(--color-accent-light); border-radius: 999px; padding: 8px 14px; white-space: nowrap; transition: .2s; }
.header-ig:hover { background: var(--color-surface, #fff); border-color: var(--color-accent); }
.header-ig svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 768px) { .header-ig .lbl { display: none; } .header-ig { padding: 9px; } }

/* -- Breadcrumb -- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 12px;
  color: var(--color-muted);
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* -- Page hero -- */
.page-hero {
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, #daf0ed 0%, #f9faf8 50%, #f3eae9 100%);
}
.page-hero-inner { max-width: 720px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 30px;
  color: var(--color-heading);
  letter-spacing: .04em;
  line-height: 1.5;
  margin: .6rem 0;
}
.hero-sub { font-size: 15px; color: var(--color-muted); line-height: 1.9; }

/* -- Section body text (詳細ページのみ: .section 直下) -- */
.section > p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.section > ul { margin: 1rem 0; }
.section > ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .6rem;
  line-height: 1.8;
}
.section > ul li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* -- Photo placeholder -- */
/* バナー画像はトリミング済みの実寸（横1200・高さ可変）を、余白なく自然な高さで表示する */
.photo-placeholder {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;                 /* 角丸で画像を切り抜く */
  background: linear-gradient(135deg, #ebedea, #f9eef2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
}
/* 画像は元の縦横比のまま（object-fitで切り抜かず上下の白帯も出さない）。inline styleを上書き */
.photo-placeholder img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  border-radius: inherit;
}
/* 院長写真スロットだけは縦長（4:5）を維持し中央寄せ */
.photo-placeholder.doctor-photo-slot { aspect-ratio: 4 / 5; max-width: 320px; margin: 0 auto 1.5rem; }
.photo-placeholder.doctor-photo-slot img { height: 100% !important; object-fit: cover !important; }

/* -- 院内写真ギャラリー（アクセスページ） -- */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin: 1.5rem 0; }
.photo-grid .photo-placeholder {
  margin: 0; display: block; background: none; overflow: visible; border-radius: 0;
}
.photo-grid .photo-placeholder img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover !important; display: block;
  border-radius: var(--radius);
}
.photo-grid figcaption {
  margin-top: .6rem; font-size: 12.5px; color: var(--color-muted); text-align: center;
}
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr; gap: 1.1rem; } }

/* -- Price table -- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th, .price-table td {
  padding: .9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14.5px;
}
.price-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
}
.price-table td:last-child, .price-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

/* -- FAQ -- */
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: .8rem;
}
.faq-item h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-heading);
  margin-bottom: .4rem;
}
.faq-item p { font-size: 14px; line-height: 1.9; color: var(--color-text); }

/* -- Treatment flow -- */
.treatment-flow { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.flow-num {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.flow-content h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-heading);
  margin-bottom: .2rem;
}
.flow-content p { font-size: 14px; line-height: 1.8; color: var(--color-muted); }

/* -- CTA section -- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin-top: 3rem;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-section .section-title { color: var(--color-white); }
.cta-section p { font-size: 14.5px; line-height: 1.9; opacity: .95; margin-bottom: 1.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: all .2s;
}
.cta-button-primary { background: #06C755; color: #fff; }
.cta-button-primary:hover { background: #05b04c; transform: translateY(-1px); }
.cta-button-secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.8); }
.cta-button-secondary:hover { background: rgba(255,255,255,.14); }
.cta-note { font-size: 12.5px; opacity: .9; margin-top: 1.2rem; }

/* -- Detail footer -- */
.site-footer { background: var(--color-heading); color: rgba(255,255,255,.7); padding: 2.5rem 1.5rem; }
.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  text-align: center;
}
.footer-name { font-family: var(--font-heading); color: var(--color-white); font-size: 15px; }
.footer-info p { font-size: 13px; line-height: 1.8; }
.site-footer .footer-copy { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 1rem; }

@media (max-width: 768px) {
  .global-nav ul { gap: .8rem; }
  .page-hero h1 { font-size: 23px; }
  .section > p { font-size: 14px; }
}

/* ── IA拡張コンポーネント（悩み/コラム/ハブ/症例） ── */
.treat-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.treat-card { display: block; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.treat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(42,74,71,.12); }
.treat-card h3 { font-family: var(--font-heading); font-weight: 500; font-size: 16px; color: var(--color-heading); margin-bottom: .5rem; line-height: 1.6; }
.treat-card p { font-size: 13px; color: var(--color-text); line-height: 1.8; margin-bottom: .8rem; }
.treat-card-more { font-size: 12.5px; color: var(--color-primary-dark); font-weight: 500; }
.tag-director { display: inline-block; font-family: var(--font-body); font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--color-white); background: var(--color-primary); border-radius: 4px; padding: 2px 10px; vertical-align: 2px; }

.doctor-note { background: var(--color-accent-light); border-left: 3px solid var(--color-accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem; }
.doctor-note p { font-size: 14px; line-height: 2; }
.doctor-note-sign { text-align: right; font-size: 12.5px; color: var(--color-muted); margin-top: .8rem; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { min-width: 720px; }
.compare-table td, .compare-table th { font-size: 13px; vertical-align: top; }
.compare-table td:first-child a { color: var(--color-primary-dark); font-weight: 500; text-decoration: underline; }
.compare-table td:last-child, .compare-table th:last-child { text-align: left; }
.note-small { font-size: 11.5px; color: var(--color-muted); line-height: 1.8; margin-top: .8rem; }

.article-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.article-card { display: block; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(42,74,71,.12); }
.article-card-meta { display: flex; align-items: center; gap: .7em; font-size: 12px; color: var(--color-muted); margin-bottom: .6rem; }
.article-card h3 { font-family: var(--font-heading); font-weight: 500; font-size: 15.5px; color: var(--color-heading); line-height: 1.7; margin-bottom: .5rem; }
.article-card-summary { font-size: 13px; color: var(--color-text); line-height: 1.8; }

.update-badge, .up-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; border-radius: 3px; padding: 2px 8px; color: var(--color-white); }
.badge-news { background: var(--color-accent); }
.badge-column { background: var(--color-primary); }
.badge-case { background: #a98b93; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .5rem; }
.cat-tabs a, .cat-tabs span { font-size: 12.5px; border: 1px solid var(--color-border); border-radius: 4px; padding: 5px 14px; color: var(--color-muted); }
.cat-tabs a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.cat-tabs .active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

.article-body h2 { font-family: var(--font-heading); font-weight: 500; font-size: 19px; color: var(--color-heading); margin: 2.2rem 0 .9rem; line-height: 1.6; border-left: 3px solid var(--color-primary); padding-left: .7em; }
.article-body h3 { font-family: var(--font-heading); font-weight: 500; font-size: 16px; color: var(--color-heading); margin: 1.6rem 0 .6rem; }
.article-body p { font-size: 14.5px; line-height: 2.05; margin-bottom: 1rem; }
.article-body ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1rem; }
.article-body li { font-size: 14.5px; line-height: 1.95; margin-bottom: .3rem; }
.article-body small { font-size: 11.5px; color: var(--color-muted); line-height: 1.8; }

.related-list li { border-bottom: 1px dashed var(--color-border); }
.related-list a { display: block; padding: .7rem .2rem; font-size: 14px; color: var(--color-primary-dark); }
.related-list a:hover { text-decoration: underline; }

.case-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.case-card { display: block; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.case-card p { font-size: 13.5px; margin-top: .5rem; color: var(--color-heading); }

.btn-outline-link { display: inline-block; font-size: 14px; font-weight: 500; color: var(--color-primary-dark); border: 1px solid var(--color-primary); border-radius: 6px; padding: 10px 26px; transition: background .2s, color .2s; }
.btn-outline-link:hover { background: var(--color-primary); color: var(--color-white); }

.footer-links { margin-top: 1rem; font-size: 12px; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { text-decoration: underline; }
.footer-sns { margin-top: .8rem; font-size: 12.5px; }
.footer-sns a { color: rgba(255,255,255,.85); }
.footer-sns a:hover { text-decoration: underline; }
.cta-sns { margin-top: 1rem; font-size: 13px; }
.cta-sns a { color: var(--color-accent, #b0777f); font-weight: 600; }
.cta-sns a:hover { text-decoration: underline; }

/* ── 料金ページ専用（未定義だったクラスの整備） ── */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; }
.breadcrumb ol li + li::before { content: "›"; margin: 0 .55em; color: var(--color-muted); }
.category-nav-label { font-size: 13px; font-weight: 700; color: var(--color-heading); margin-bottom: .7rem; letter-spacing: .05em; }
.category-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.category-links a { display: inline-block; font-size: 12.5px; border: 1px solid var(--color-border); background: var(--color-white); border-radius: 4px; padding: 6px 14px; color: var(--color-primary-dark); transition: background .2s, color .2s, border-color .2s; }
.category-links a:hover { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-white); }
.notes-box { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: 12.5px; color: var(--color-muted); line-height: 2; }
.price-normal { font-family: var(--font-heading); font-weight: 600; color: var(--color-heading); white-space: nowrap; }
.section-title a { color: inherit; }
.section-title a:hover { color: var(--color-primary-dark); }
.supervise-note { padding-top: 0; }
.supervise-note p { font-size: 12.5px; color: var(--color-muted); line-height: 1.9; border-top: 1px solid var(--color-border); padding-top: 1.2rem; }
.supervise-note a { color: var(--color-primary-dark); text-decoration: underline; }

/* ── 記事の目次・執筆者ボックス ── */
.article-toc { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 2rem; }
.article-toc-label { font-size: 12.5px; font-weight: 700; color: var(--color-heading); letter-spacing: .06em; margin-bottom: .5rem; }
.article-toc ol { list-style: none; counter-reset: toc; display: grid; gap: .35rem; }
.article-toc li { counter-increment: toc; font-size: 13px; line-height: 1.7; padding-left: 1.6em; position: relative; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; font-size: 11px; color: var(--color-primary); font-weight: 700; top: .2em; }
.article-toc a { color: var(--color-text); }
.article-toc a:hover { color: var(--color-primary-dark); text-decoration: underline; }
.author-box { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.author-box-photo { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--color-bg); }
.author-box-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-box-role { font-size: 11px; letter-spacing: .08em; color: var(--color-primary); font-weight: 700; margin-bottom: .2rem; }
.author-box-name { font-family: var(--font-heading); font-size: 16px; color: var(--color-heading); margin-bottom: .35rem; }
.author-box-bio { font-size: 12.5px; color: var(--color-muted); line-height: 1.9; margin-bottom: .4rem; }
.author-box-link a { font-size: 12.5px; color: var(--color-primary-dark); }
.author-box-link a:hover { text-decoration: underline; }

/* ── 料金ページ: 追従カテゴリバー・表の可読性 ── */
.category-nav { position: sticky; top: 0; z-index: 60; background: rgba(250,250,248,.96); backdrop-filter: blur(8px); padding: .7rem .2rem .7rem; border-bottom: 1px solid var(--color-border); }
.section[id] { scroll-margin-top: 96px; }
@media (max-width: 768px) {
  .category-nav-label { display: none; }
  .category-links { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .2rem; scrollbar-width: none; }
  .category-links::-webkit-scrollbar { display: none; }
  .category-links a { white-space: nowrap; flex-shrink: 0; }
}
.price-table tbody tr:nth-child(even) td { background: #f2f2f0; }
.price-wrap { margin-top: .4rem; }

/* ── 批評反映: 比較表の崩壊修正・スクロールの手がかり ── */
.compare-table { min-width: 880px; }
.compare-table td:last-child, .compare-table th:last-child { white-space: normal; }
.compare-table td, .compare-table th { white-space: normal; }
.compare-table td:nth-child(5), .compare-table th:nth-child(5) { white-space: nowrap; }
.table-scroll { position: relative; }
.table-scroll::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 36px;
  background: linear-gradient(to left, rgba(250,250,248,.95), transparent); pointer-events: none; }

/* 記事内の箇条書き二重マーカー修正 */
.article-body ul li { padding-left: 0; }
.article-body ul li::before { content: none; }

/* サブページ: モバイルはヘッダー非追従+1行ナビでコンパクトに */
@media (max-width: 768px) {
  .site-header { position: static; }
  .global-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .2rem; }
  .global-nav ul::-webkit-scrollbar { display: none; }
  .global-nav a { white-space: nowrap; }
  .section[id] { scroll-margin-top: 64px; }
}

/* 料金ページ: カテゴリバーのsticky（wrapper側に付け替え） */
.category-nav { position: static; border-bottom: none; background: transparent; backdrop-filter: none; padding: 0; }
.catnav-wrap { position: sticky; top: 0; z-index: 60; background: rgba(250,250,248,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border);
  padding: .7rem 1.5rem; margin: 0; max-width: none; }
.catnav-wrap .category-nav { max-width: 960px; margin: 0 auto; }
@media (min-width: 769px) { .catnav-wrap { top: 70px; } }

/* 全サブページ共通: 下部固定の相談バー */
.mbar-sub { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: none; gap: .6rem;
  padding: .55rem .8rem; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--color-border); }
.mbar-sub a { flex: 1; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px;
  font-weight: 700; font-size: 14px; padding: 12px 0; letter-spacing: .03em; }
.mbar-sub .ms-line { flex: 2; background: #06C755; color: #fff; }
.mbar-sub .ms-tel { background: #fff; color: var(--color-primary-dark); border: 1px solid var(--color-primary); }
@media (max-width: 768px) { .mbar-sub { display: flex; } body { padding-bottom: 64px; } }

/* 施術ハブ: 主力施術の階層づけ */
.treat-card--featured { background: #eef0ec; border-color: var(--color-primary); }
.treat-card--featured h3 { font-size: 17.5px; }

/* ── ロゴ（英字メイン＋和文サブ） ── */
.site-logo { font-family: var(--font-heading); letter-spacing: .14em; line-height: 1.25; white-space: nowrap; }
.site-logo-sub { display: block; font-family: var(--font-body); font-size: 9.5px; color: var(--color-muted); letter-spacing: .18em; font-weight: 400; }

/* ── モバイルヘッダー: ロゴ＋1行スクロールナビの2段構成（はみ出し防止） ── */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .global-nav { width: 100%; min-width: 0; }
}

/* ============================================================
   下層ページ共通ハンバーガー（トップと挙動を統一）— v3
   後方に置くことで既存の中途半端なモバイルナビ規則を上書き
   ============================================================ */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 1002; }
.hamburger span { display: block; width: 22px; height: 1.6px; background: var(--color-heading); transition: transform .3s, opacity .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 1001; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; background: rgba(246,246,244,.98); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a { font-family: var(--font-heading); font-size: 18px; color: var(--color-heading); letter-spacing: .06em; }
.mobile-nav a:hover { color: var(--color-primary-dark); }
.mobile-nav .mnav-line { margin-top: .8rem; background: #06C755; color: #fff; font-family: var(--font-body); font-size: 14.5px; font-weight: 700; padding: 13px 30px; border-radius: 6px; }

@media (max-width: 768px) {
  /* ハンバーガー方式に統一：横並びナビを隠してバーガーを出す */
  .header-inner { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 1rem; }
  .global-nav { display: none; }
  .hamburger { display: flex; }
  .site-header { position: sticky; top: 0; }
}
@media (min-width: 769px) {
  .hamburger, .mobile-nav { display: none; }
}

/* ── 悩みページ: ヒーロー横に写真（非対称レイアウト）— v3 ── */
.page-hero--photo .page-hero-inner { max-width: 720px; }
@media (min-width: 820px) {
  .page-hero--photo { display: flex; align-items: center; gap: 2.5rem; max-width: var(--max-width); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; text-align: left; }
  .page-hero--photo .page-hero-inner { flex: 1 1 55%; margin: 0; text-align: left; }
  .page-hero--photo .page-hero-photo { flex: 0 0 40%; }
}
.page-hero-photo { position: relative; margin: 1.6rem auto 0; max-width: 460px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }

/* ── ページヒーロー/一覧の背景を新トンマナで強化（寂しさ対策）— v3 ── */
.page-hero { background: linear-gradient(135deg, #e7eeeb 0%, #f6f6f4 52%, #f3ede9 100%); padding: 4rem 1.5rem; }
.page-hero--photo { background: linear-gradient(135deg, #eceeeb 0%, #f6f6f4 60%, #f4ede9 100%); }
/* コラム/悩みハブ/一覧の本文背景に淡いバンドを敷いて余白の寂しさを軽減 */
.article-card-grid, .treat-card-grid { position: relative; }
body { background: linear-gradient(180deg, var(--color-bg) 0%, #f1f1ee 100%); }
/* 記事本文の可読幅を絞る（大画面で1行が長すぎない） */
.article-body { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ── コラム下書きの準備中バナー ── */
.draft-banner { background: #f3ede9; border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 13px; line-height: 1.9; color: var(--color-text); margin-bottom: 1.6rem; }
.draft-banner a { color: var(--color-primary-dark); text-decoration: underline; }
