/* ============================================================
   Maruoka TFT Hub — Main Stylesheet
   Medical Beauty Content Hub for 医療法人丸岡医院
   Design: Luxury minimalist — Noto Serif JP headings, restrained green palette
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --tft-green:        #1f6b40;
  --tft-green-mid:    #2E8B57;
  --tft-green-light:  #e8f5ee;
  --tft-gold:         #b8963e;
  --tft-bg:           #ffffff;
  --tft-bg-soft:      #fafaf8;
  --tft-text:         #1a1a1a;
  --tft-text-mid:     #4a4a4a;
  --tft-text-light:   #888888;
  --tft-line:         #00B900;
  --tft-border:       #e5e5e5;
  --tft-radius:       4px;
  --tft-radius-lg:    8px;
  --container:        1100px;
  --container-narrow: 760px;
  --header-h:         64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN',
               'Hiragino Sans', Meiryo, sans-serif;
  color: var(--tft-text);
  background: var(--tft-bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--tft-green); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* --- Typography: headings use Noto Serif JP for refinement --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--tft-text);
}

/* --- Layout Utilities --- */
.tft-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.tft-container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.tft-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.tft-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tft-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--tft-green);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.tft-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tft-bg);
  border-bottom: 1px solid var(--tft-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

/* The container inside the flex header must stretch to full width,
   otherwise margin-left:auto on hamburger/nav won't reach the edge */
.tft-header > .tft-container {
  width: 100%;
}

.tft-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.tft-header__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
}

.tft-header__logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.tft-header__logo-sub {
  font-size: .62rem;
  color: var(--tft-text-light);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1;
}

/* Vertical separator between logo and nav */
.tft-header__sep {
  width: 1px;
  height: 28px;
  background: var(--tft-border);
  margin: 0 28px;
  flex-shrink: 0;
}

/* Nav pushed to the right on desktop via margin-left: auto */
.tft-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.tft-header__nav a {
  color: var(--tft-text-mid);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.tft-header__nav a:hover,
.tft-header__nav a.current {
  color: var(--tft-green);
  border-bottom-color: var(--tft-green);
}

.tft-header__cta {
  background: var(--tft-green);
  color: #fff !important;
  font-weight: 600;
  font-size: .8rem;
  padding: 9px 16px;
  border-radius: var(--tft-radius);
  border-bottom: none !important;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: background .2s;
}

.tft-header__cta:hover {
  background: var(--tft-green-mid);
  color: #fff !important;
}

/* Hamburger — margin-left:auto pushes it to the right edge on mobile
   when .tft-header__nav is display:none */
.tft-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.tft-hamburger span {
  display: block;
  height: 2px;
  background: var(--tft-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile nav overlay */
.tft-mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--tft-bg);
  z-index: 99;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
  border-top: 1px solid var(--tft-border);
}

.tft-mobile-nav.is-open { display: flex; }

.tft-mobile-nav a {
  width: 100%;
  padding: 18px 24px;
  color: var(--tft-text);
  font-size: 1rem;
  font-weight: 400;
  border-bottom: 1px solid var(--tft-border);
  letter-spacing: 0.03em;
}

.tft-mobile-nav a:hover { color: var(--tft-green); }

.tft-mobile-nav .tft-header__cta {
  margin: 20px 24px;
  display: block;
  text-align: center;
  border-radius: var(--tft-radius);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.tft-breadcrumb {
  background: var(--tft-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--tft-border);
  font-size: .8rem;
  color: var(--tft-text-light);
}

.tft-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tft-breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--tft-border);
}

.tft-breadcrumb a { color: var(--tft-text-light); }
.tft-breadcrumb a:hover { color: var(--tft-green); }

/* ============================================================
   HERO
   ============================================================ */
.tft-hero {
  background: var(--tft-bg);
  padding: 88px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--tft-border);
}

.tft-hero__tag {
  display: inline-block;
  background: var(--tft-green-light);
  color: var(--tft-green);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.tft-hero__title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--tft-text);
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* Decorative rule under hero title */
.tft-hero__rule {
  width: 48px;
  height: 1px;
  background: var(--tft-green);
  margin: 20px auto 24px;
}

.tft-hero__sub {
  font-size: clamp(.9rem, 2vw, 1rem);
  color: var(--tft-text-mid);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
}

.tft-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tft-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  padding: 13px 28px;
  border-radius: var(--tft-radius);
  cursor: pointer;
  transition: background .2s, opacity .2s;
  letter-spacing: 0.04em;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.tft-btn--green {
  background: var(--tft-green);
  color: #fff;
}
.tft-btn--green:hover {
  background: var(--tft-green-mid);
  color: #fff;
}

.tft-btn--line {
  background: var(--tft-line);
  color: #fff;
}
.tft-btn--line:hover {
  background: #00a500;
  color: #fff;
}

.tft-btn--outline-green {
  background: transparent;
  color: var(--tft-green);
  border: 1px solid var(--tft-green);
}
.tft-btn--outline-green:hover {
  background: var(--tft-green-light);
  color: var(--tft-green);
}

/* Legacy alias — keep old --gold class working for gold accents */
.tft-btn--gold {
  background: var(--tft-gold);
  color: #fff;
}
.tft-btn--gold:hover {
  background: #a07c2e;
  color: #fff;
}

.tft-btn--sm {
  font-size: .82rem;
  padding: 9px 20px;
}

/* 代官山院ボタン — セカンダリ */
.tft-btn--outline {
  background: transparent;
  color: var(--tft-text);
  border: 1.5px solid var(--tft-border);
}
.tft-btn--outline:hover {
  background: var(--tft-bg-soft);
  color: var(--tft-green);
  border-color: var(--tft-green);
}

/* ダークCTAブロック内での代官山ボタン */
.tft-cta-dark .tft-btn--outline {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.tft-cta-dark .tft-btn--outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

/* ============================================================
   SECTION STRUCTURE
   ============================================================ */
.tft-section {
  padding: 72px 0;
}

.tft-section--white    { background: var(--tft-bg); }
.tft-section--soft     { background: var(--tft-bg-soft); }
.tft-section--green    { background: var(--tft-green-light); }
/* legacy aliases */
.tft-section--light    { background: var(--tft-bg-soft); }
.tft-section--accent   { background: var(--tft-green-light); }

.tft-section-header {
  margin-bottom: 40px;
}

.tft-section-header--center {
  text-align: center;
}

.tft-section-title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--tft-text);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tft-section-sub {
  font-size: .875rem;
  color: var(--tft-text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Thin green rule used as section divider accent */
.tft-divider {
  width: 36px;
  height: 1px;
  background: var(--tft-green);
  margin: 12px 0 20px;
}

.tft-section-header--center .tft-divider {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.tft-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tft-cat-tab {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--tft-radius);
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid var(--tft-border);
  background: var(--tft-bg);
  color: var(--tft-text-mid);
  transition: all .2s;
  text-decoration: none;
}

.tft-cat-tab:hover,
.tft-cat-tab.is-active {
  background: var(--tft-green);
  border-color: var(--tft-green);
  color: #fff;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.tft-card {
  background: var(--tft-bg);
  border-radius: var(--tft-radius-lg);
  border: 1px solid var(--tft-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
  text-decoration: none;
  color: inherit;
}

.tft-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.tft-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--tft-green-light);
}

.tft-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.tft-card:hover .tft-card__thumb img { transform: scale(1.03); }

/* Category pill — green tint on white */
.tft-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--tft-green-light);
  color: var(--tft-green);
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--tft-radius);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.tft-card__no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tft-green-light);
  color: var(--tft-green);
  font-size: 2rem;
}

.tft-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tft-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: .75rem;
  color: var(--tft-text-light);
}

.tft-card__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--tft-text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.tft-card__excerpt {
  font-size: .875rem;
  color: var(--tft-text-mid);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.tft-card__more {
  font-size: .8rem;
  font-weight: 500;
  color: var(--tft-green);
  letter-spacing: 0.03em;
  align-self: flex-start;
}

.tft-card__more::after { content: ' →'; }

/* ============================================================
   DOCTOR SECTION (front page)
   ============================================================ */
.tft-doctor {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  border-top: 1px solid var(--tft-border);
  border-bottom: 1px solid var(--tft-border);
  padding: 48px 0;
}

.tft-doctor__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.tft-doctor__photo-placeholder {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--tft-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tft-green);
  font-size: 3rem;
}

.tft-doctor__label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--tft-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tft-doctor__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tft-text);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.tft-doctor__title {
  font-size: .83rem;
  color: var(--tft-text-mid);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.tft-doctor__bio {
  font-size: .9rem;
  line-height: 1.9;
  color: var(--tft-text-mid);
}

/* ============================================================
   CTA SECTION (front page full-width)
   ============================================================ */
.tft-cta-section {
  background: var(--tft-green-light);
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid var(--tft-border);
  border-bottom: 1px solid var(--tft-border);
}

.tft-cta-section__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.tft-cta-section__sub {
  color: var(--tft-text-mid);
  font-size: .9rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

.tft-cta-section__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   SEO TEXT BLOCK
   ============================================================ */
.tft-seo-block {
  background: var(--tft-bg-soft);
  border-top: 1px solid var(--tft-border);
  border-bottom: 1px solid var(--tft-border);
  padding: 40px;
  font-size: .9rem;
  color: var(--tft-text-mid);
  line-height: 1.9;
}

.tft-seo-block h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.tft-seo-block p { margin-bottom: 14px; }
.tft-seo-block p:last-child { margin-bottom: 0; }

/* ============================================================
   SINGLE ARTICLE LAYOUT
   ============================================================ */
.tft-single {
  padding: 40px 0 88px;
}

.tft-single__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: flex-start;
}

/* Article Main */
.tft-article {
  min-width: 0;
}

.tft-article__header {
  margin-bottom: 32px;
}

.tft-article__cat-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tft-article__cat {
  display: inline-block;
  background: var(--tft-green-light);
  color: var(--tft-green);
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--tft-radius);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.tft-article__cat:hover { opacity: .8; color: var(--tft-green); }

.tft-article__title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: var(--tft-text);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.tft-article__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .78rem;
  color: var(--tft-text-light);
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--tft-border);
}

.tft-article__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tft-article__thumb {
  border-radius: var(--tft-radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/9;
  background: var(--tft-green-light);
}

.tft-article__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Table of Contents */
.tft-toc {
  background: var(--tft-bg-soft);
  border: 1px solid var(--tft-border);
  border-radius: var(--tft-radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.tft-toc__title {
  font-family: 'Noto Serif JP', serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.tft-toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.tft-toc ol li {
  margin-bottom: 7px;
}

.tft-toc ol li a {
  color: var(--tft-text-mid);
  font-size: .875rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--tft-border);
  transition: color .2s;
}

.tft-toc ol li a:hover { color: var(--tft-green); }

/* Article Content */
.tft-article__content {
  font-size: .97rem;
  line-height: 1.95;
  color: var(--tft-text);
}

.tft-article__content h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tft-text);
  margin: 52px 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--tft-border);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.tft-article__content h2:first-child { margin-top: 0; }

/* Accent bar on H2 using green */
.tft-article__content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--tft-green);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
}

.tft-article__content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tft-text);
  margin: 40px 0 14px;
  letter-spacing: 0.04em;
}

.tft-article__content h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .97rem;
  font-weight: 600;
  color: var(--tft-text);
  margin: 28px 0 12px;
}

.tft-article__content p {
  margin-bottom: 20px;
}

.tft-article__content ul,
.tft-article__content ol {
  margin: 14px 0 22px 20px;
}

.tft-article__content ul li {
  list-style: disc;
  margin-bottom: 8px;
  padding-left: 4px;
}

.tft-article__content ol li {
  list-style: decimal;
  margin-bottom: 8px;
  padding-left: 4px;
}

.tft-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .9rem;
  border-radius: var(--tft-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tft-border);
}

.tft-article__content th {
  background: var(--tft-green-light);
  color: var(--tft-text);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--tft-border);
}

.tft-article__content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tft-border);
  vertical-align: top;
}

.tft-article__content tr:last-child td { border-bottom: none; }

.tft-article__content blockquote {
  border-left: 3px solid var(--tft-green);
  background: var(--tft-bg-soft);
  margin: 28px 0;
  padding: 20px 24px;
  font-size: .93rem;
  color: var(--tft-text-mid);
  font-style: italic;
}

.tft-article__content img {
  border-radius: var(--tft-radius-lg);
  margin: 24px 0;
}

.tft-article__content a {
  color: var(--tft-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tft-article__content a:hover { color: var(--tft-green-mid); }

/* Medical disclaimer note */
.tft-article__content .medical-note,
.tft-article__content .wp-block-callout {
  background: var(--tft-green-light);
  border: 1px solid rgba(31,107,64,.15);
  border-radius: var(--tft-radius-lg);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: .88rem;
  line-height: 1.8;
}

/* After-content area */
.tft-article__after {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--tft-border);
}

/* Related Articles */
.tft-related {
  margin-top: 56px;
}

.tft-related__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tft-border);
  letter-spacing: 0.04em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.tft-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar CTA Card */
.tft-cta-card {
  background: var(--tft-bg);
  border: 1px solid var(--tft-border);
  border-radius: var(--tft-radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.tft-cta-card__label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--tft-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tft-cta-card__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.tft-cta-card__sub {
  font-size: .83rem;
  color: var(--tft-text-mid);
  margin-bottom: 22px;
  line-height: 1.7;
}

.tft-cta-card__divider {
  border: none;
  border-top: 1px solid var(--tft-border);
  margin: 18px 0;
}

.tft-cta-card__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--tft-text);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.tft-cta-card__tel:hover { color: var(--tft-green); }

.tft-cta-card__tel-label {
  font-size: .72rem;
  color: var(--tft-text-light);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* Sidebar Related */
.tft-sidebar-related__title {
  font-family: 'Noto Serif JP', serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tft-border);
}

.tft-sidebar-related__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tft-sidebar-related__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  background: var(--tft-bg);
  border-radius: var(--tft-radius-lg);
  border: 1px solid var(--tft-border);
  transition: border-color .2s;
}

.tft-sidebar-related__item:hover {
  border-color: var(--tft-green);
}

.tft-sidebar-related__thumb {
  flex-shrink: 0;
  width: 68px;
  height: 50px;
  border-radius: var(--tft-radius);
  overflow: hidden;
  background: var(--tft-green-light);
}

.tft-sidebar-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tft-sidebar-related__title-text {
  font-size: .82rem;
  font-weight: 500;
  color: var(--tft-text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   DOCTOR BOX (sidebar / after-content)
   ============================================================ */
.tft-doctor-box {
  background: var(--tft-bg);
  border-top: 1px solid var(--tft-border);
  border-bottom: 1px solid var(--tft-border);
  padding: 28px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tft-doctor-box--full {
  padding: 36px 0;
}

.tft-doctor-box__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.tft-doctor-box--compact .tft-doctor-box__photo {
  width: 80px;
  height: 80px;
}

.tft-doctor-box__photo-placeholder {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--tft-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tft-green);
  font-size: 2.5rem;
}

.tft-doctor-box__label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--tft-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tft-doctor-box__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tft-text);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.tft-doctor-box__role {
  font-size: .8rem;
  color: var(--tft-text-mid);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.tft-doctor-box__text {
  font-size: .875rem;
  color: var(--tft-text-mid);
  line-height: 1.85;
}

.tft-doctor-box__credentials {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--tft-border);
  font-size: .8rem;
  color: var(--tft-text-light);
  line-height: 1.75;
}

/* ============================================================
   FIXED BOTTOM CTA
   Mobile: all pages / PC: single article pages only
   ============================================================ */
.tft-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--tft-border);
  padding: 10px 20px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.07);
}

.tft-fixed-cta__inner {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.tft-fixed-cta__label {
  font-size: .72rem;
  color: var(--tft-text-light);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Hide label on very narrow screens to prevent overflow */
@media (max-width: 400px) {
  .tft-fixed-cta__label { display: none; }
}

.tft-fixed-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: var(--tft-radius);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}

.tft-fixed-cta__btn:hover { opacity: .88; color: inherit; }

.tft-fixed-cta__btn--consult {
  background: var(--tft-gold);
  color: #fff;
  display: none; /* PC only */
}

.tft-fixed-cta__btn--daikanyama {
  background: transparent;
  color: var(--tft-text);
  border: 1.5px solid var(--tft-border);
  display: none; /* PC only */
}
.tft-fixed-cta__btn--daikanyama:hover {
  background: var(--tft-bg-soft);
  color: var(--tft-green);
  border-color: var(--tft-green);
}

.tft-fixed-cta__btn--line {
  background: var(--tft-line);
  color: #fff;
}

.tft-fixed-cta__btn--tel {
  background: var(--tft-bg);
  color: var(--tft-text);
  border: 1px solid var(--tft-border);
}

/* ============================================================
   ARCHIVE / LISTING PAGE
   ============================================================ */
.tft-archive {
  padding: 48px 0 88px;
}

.tft-archive__header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tft-border);
}

.tft-archive__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.tft-archive__desc {
  font-size: .875rem;
  color: var(--tft-text-mid);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.tft-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.tft-pagination a,
.tft-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--tft-radius);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--tft-border);
  background: var(--tft-bg);
  color: var(--tft-text-mid);
  transition: all .2s;
}

.tft-pagination a:hover {
  border-color: var(--tft-green);
  color: var(--tft-green);
}

.tft-pagination .current,
.tft-pagination span.current {
  background: var(--tft-green);
  border-color: var(--tft-green);
  color: #fff;
}

/* ============================================================
   404
   ============================================================ */
.tft-404 {
  padding: 100px 0;
  text-align: center;
}

.tft-404__code {
  font-family: 'Noto Serif JP', serif;
  font-size: 7rem;
  font-weight: 700;
  color: var(--tft-green-light);
  line-height: 1;
}

.tft-404__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tft-text);
  margin: 16px 0 12px;
  letter-spacing: 0.04em;
}

.tft-404__sub {
  font-size: .95rem;
  color: var(--tft-text-mid);
  margin-bottom: 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tft-footer {
  background: var(--tft-bg-soft);
  border-top: 1px solid var(--tft-border);
  color: var(--tft-text-mid);
  padding: 56px 0 0;
}

.tft-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--tft-border);
}

.tft-footer__brand-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.tft-footer__brand-sub {
  font-size: .78rem;
  color: var(--tft-text-light);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.tft-footer__bio {
  font-size: .83rem;
  line-height: 1.8;
}

.tft-footer__heading {
  font-size: .75rem;
  font-weight: 600;
  color: var(--tft-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tft-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tft-footer__links a {
  font-size: .84rem;
  color: var(--tft-text-mid);
  transition: color .2s;
}

.tft-footer__links a:hover { color: var(--tft-green); }

.tft-footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .75rem;
  color: var(--tft-text-light);
}

.tft-footer__disclaimer {
  padding: 16px 0;
  border-top: 1px solid var(--tft-border);
  font-size: .72rem;
  color: var(--tft-text-light);
  line-height: 1.75;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.tft-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.tft-text-center  { text-align: center; }
.tft-text-green   { color: var(--tft-green); }
.tft-text-gold    { color: var(--tft-gold); }
.tft-mt-0         { margin-top: 0; }
.tft-mb-0         { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: ≤900px */
@media (max-width: 900px) {
  .tft-single__inner {
    grid-template-columns: 1fr;
  }

  .tft-sidebar {
    position: static;
    order: -1;
  }

  .tft-grid-3 { grid-template-columns: 1fr 1fr; }
  .tft-grid-4 { grid-template-columns: 1fr 1fr; }

  .tft-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .tft-doctor {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tft-fixed-cta { display: flex; }
  body { padding-bottom: 64px; }
}

/* PC: single article pages — show floating CTA with both clinic buttons */
@media (min-width: 901px) {
  body.single .tft-fixed-cta { display: flex; }
  body.single { padding-bottom: 64px; }
  body.single .tft-fixed-cta__btn--consult { display: flex; }
  body.single .tft-fixed-cta__btn--daikanyama { display: flex; }
  body.single .tft-fixed-cta__label { font-size: .8rem; }
}

/* Mobile: ≤640px */
@media (max-width: 640px) {
  .tft-container { padding: 0 16px; }
  .tft-container--narrow { padding: 0 16px; }

  /* Header: tighten so logo is flush-left, hamburger flush-right */
  .tft-header .tft-container { padding: 0 12px; }

  .tft-header__sep { display: none; }
  .tft-header__nav { display: none; }
  .tft-hamburger { display: flex; }

  .tft-hero { padding: 60px 0 52px; }
  .tft-hero__title { letter-spacing: 0.03em; }

  .tft-grid-2,
  .tft-grid-3,
  .tft-grid-4 {
    grid-template-columns: 1fr;
  }

  .tft-section { padding: 48px 0; }

  .tft-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tft-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .tft-article__content h2 {
    font-size: 1.1rem;
  }

  .tft-article__content h3 { font-size: 1rem; }

  .tft-doctor-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tft-doctor {
    padding: 40px 0;
  }

  .tft-seo-block { padding: 24px 20px; }

  .tft-concern-card { padding: 18px 12px; }
  .tft-concern-card__icon { font-size: 1.5rem; }
}

/* ============================================================
   悩み別CV入り口（Concern Cards）
   ============================================================ */
.tft-concern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.tft-concern-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1.5px solid var(--tft-border);
  border-radius: var(--tft-radius-lg);
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: var(--tft-text);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.tft-concern-card:hover {
  border-color: var(--tft-green-mid);
  box-shadow: 0 4px 16px rgba(31,107,64,.12);
  transform: translateY(-2px);
  color: var(--tft-green);
}

.tft-concern-card__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.tft-concern-card__label {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  word-break: break-all;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.tft-concern-card__sub {
  font-size: .78rem;
  color: var(--tft-text-light);
  word-break: break-all;
  overflow-wrap: break-word;
}

/* Mobile: 2-column concern grid (placed AFTER the 3-col base to override) */
@media (max-width: 640px) {
  .tft-concern-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* doctor-box supervise note */
.tft-doctor-box__supervise {
  margin-top: 8px;
  font-size: .78rem;
  color: var(--tft-text-light);
  line-height: 1.5;
}

/* ============================================================
   TRUST BAR — horizontal strip of clinic trust signals
   ============================================================ */
.tft-trust-bar {
  background: var(--tft-green);
  color: #fff;
  padding: 14px 0;
}

.tft-trust-bar__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tft-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 20px;
  white-space: nowrap;
}

/* Divider between items (except last) */
.tft-trust-bar__item + .tft-trust-bar__item {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.tft-trust-bar__icon {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .tft-trust-bar__item {
    padding: 4px 12px;
    font-size: .76rem;
  }
  .tft-trust-bar__item + .tft-trust-bar__item {
    border-left: none;
  }
  .tft-trust-bar__list {
    gap: 4px 0;
    justify-content: flex-start;
    padding: 0 4px;
  }
}

/* ============================================================
   CONCERN GRID — 5-column modifier (10 categories)
   ============================================================ */
.tft-concern-grid--5col {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
  .tft-concern-grid--5col {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .tft-concern-grid--5col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Note below concern grid */
.tft-concerns__note {
  text-align: center;
  margin-top: 24px;
  font-size: .8rem;
  color: var(--tft-text-light);
}

/* ============================================================
   TFT ABOUT GRID — 3-card numbered feature blocks
   ============================================================ */
.tft-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.tft-about-card {
  background: #fff;
  border: 1px solid var(--tft-border);
  border-top: 3px solid var(--tft-green);
  border-radius: var(--tft-radius-lg);
  padding: 32px 28px;
  position: relative;
}

.tft-about-card__num {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--tft-green-light);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  user-select: none;
}

.tft-about-card__title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tft-green);
  margin-bottom: 12px;
  letter-spacing: .04em;
  line-height: 1.4;
}

.tft-about-card__text {
  font-size: .9rem;
  color: var(--tft-text-mid);
  line-height: 1.85;
}

@media (max-width: 768px) {
  .tft-about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tft-about-card {
    padding: 24px 20px;
  }
}

/* ============================================================
   FLOW — numbered step list for 診療の流れ
   ============================================================ */
.tft-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: tft-flow-counter;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.tft-flow__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--tft-border);
  position: relative;
}

.tft-flow__step:last-child {
  border-bottom: none;
}

/* Vertical connector line between steps */
.tft-flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 24px;             /* center of the num circle (48px wide / 2 = 24) */
  top: 80px;              /* below the circle */
  width: 1px;
  bottom: 0;
  background: linear-gradient(to bottom, var(--tft-green-mid) 0%, transparent 100%);
  opacity: .3;
}

.tft-flow__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tft-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.tft-flow__body {
  flex: 1;
  padding-top: 6px;
}

.tft-flow__title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tft-text);
  margin-bottom: 8px;
  letter-spacing: .04em;
}

.tft-flow__text {
  font-size: .9rem;
  color: var(--tft-text-mid);
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 640px) {
  .tft-flow__step {
    gap: 16px;
    padding: 24px 0;
  }

  .tft-flow__num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .tft-flow__step:not(:last-child)::after {
    left: 20px;
  }
}

/* ============================================================
   FAQ — <details>/<summary> accordion
   ============================================================ */
.tft-faq-section {
  /* inherits tft-section--white */
}

.tft-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tft-faq-item {
  border-bottom: 1px solid var(--tft-border);
}

.tft-faq-item:first-child {
  border-top: 1px solid var(--tft-border);
}

/* The clickable question row */
.tft-faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 16px 22px 0;
  cursor: pointer;
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tft-text);
  letter-spacing: .04em;
  line-height: 1.5;
  list-style: none;       /* Firefox hides the triangle via this */
  user-select: none;
  transition: color .2s;
}

/* Hide browser default triangle in WebKit */
.tft-faq-q::-webkit-details-marker { display: none; }

/* Custom Q indicator */
.tft-faq-q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tft-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: .82rem;
  font-weight: 700;
}

/* Custom chevron */
.tft-faq-q::after {
  content: '';
  flex-shrink: 0;
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--tft-green);
  border-bottom: 2px solid var(--tft-green);
  transform: rotate(45deg);
  transition: transform .25s;
}

.tft-faq-item[open] > .tft-faq-q {
  color: var(--tft-green);
}

.tft-faq-item[open] > .tft-faq-q::after {
  transform: rotate(-135deg);
}

/* Answer body */
.tft-faq-a {
  padding: 0 16px 24px 40px;   /* indent to align with Q text */
  animation: faq-slide-down .25s ease;
}

.tft-faq-a p {
  font-size: .92rem;
  color: var(--tft-text-mid);
  line-height: 1.9;
  margin: 0;
}

@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .tft-faq-q {
    font-size: .92rem;
    padding: 18px 0 18px 0;
    gap: 10px;
  }

  .tft-faq-a {
    padding: 0 0 20px 38px;
  }
}
