/*
 * tp-front.css
 * Turning Point Today – フロントページ専用スタイルシート
 * 格納場所: /wp-content/themes/cocoon-child-master/tp-front/tp-front.css
 *
 * 設計方針:
 *   - カラー: 高級感のあるオリーブ系グリーン基調 × ゴールドアクセント
 *   - フォント: M PLUS Rounded 1c（JP）+ Cormorant Garamond（表示）
 *   - アニメーション: CSS keyframes + IntersectionObserver (JS)
 *   - レスポンシブ: PC / タブレット(768px) / スマホ(480px) の3段階
 */

/* ══════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════ */
:root {
  /* Colors */
  --c-dark:        #0f1409;
  --c-olive:       #1e2b13;
  --c-olive-deep:  #2a3a1a;
  --c-olive-mid:   #3d5429;
  --c-olive-light: #6a8a4e;
  --c-sage:        #9aad82;
  --c-gold:        #c8a44a;
  --c-gold-light:  #e2c872;
  --c-gold-pale:   #f0e4b8;
  --c-cream:       #f5f1e8;
  --c-white:       #fefdf9;
  --c-text:        #1a2210;
  --c-text-muted:  #4a5e36;
  --c-text-light:  #8a9a72;
  --c-border:      rgba(200,164,74,0.2);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-jp:      'M PLUS Rounded 1c', 'Hiragino Maru Gothic Pro', sans-serif;
  --font-body:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  /* Spacing */
  --section-pad:   120px;
  --section-pad-sm: 72px;
  --container:     1160px;
  --gutter:        24px;

  /* Effects */
  --shadow-card:   0 4px 32px rgba(15,20,9,0.18);
  --shadow-hover:  0 12px 48px rgba(15,20,9,0.28);
  --radius:        12px;
  --radius-sm:     6px;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* ══════════════════════════════════════════
   RESET / BASE
══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

.tpf-body {
  font-family: var(--font-jp);
  background: var(--c-dark);
  color: var(--c-white);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* Cocoon テーマが wp_head() 経由で後読み込みするリンクスタイルを上書き */
.tpf-body a,
.tpf-body a:link,
.tpf-body a:visited,
.tpf-body a:hover,
.tpf-body a:active {
  text-decoration: none !important;
}

/* ══════════════════════════════════════════
   TYPOGRAPHY UTILITIES
══════════════════════════════════════════ */
.pc-br { display: block; }

@media (max-width: 768px) {
  .pc-br { display: none; }
}

/* ══════════════════════════════════════════
   LAYOUT HELPERS
══════════════════════════════════════════ */
.tpf-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tpf-section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   SECTION COMMON COMPONENTS
══════════════════════════════════════════ */
.tpf-section-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
  border-radius: 2em;
  padding: 0.35em 1.3em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.tpf-section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--c-white);
  margin-bottom: 1.2rem;
}

.tpf-section-title em {
  font-style: normal;
  color: var(--c-gold-light);
  font-family: var(--font-display);
  font-style: italic;
}

.tpf-section-lead {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--c-text-light);
  line-height: 1.9;
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.tpf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: 68px;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.tpf-header.is-scrolled {
  background: rgba(14, 20, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-border);
}

.tpf-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.tpf-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.tpf-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--c-border);
}

.tpf-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.tpf-logo-main {
  font-family: var(--font-jp);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

.tpf-logo-eng {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--c-gold);
  letter-spacing: 0.12em;
}

/* Desktop Nav */
.tpf-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tpf-nav-link {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.4em 0.75em;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}

.tpf-nav-link:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.07);
}

.tpf-nav-contact {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-dark) !important;
  background: var(--c-gold);
  padding: 0.45em 1.2em;
  border-radius: 2em;
  margin-left: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.04em;
}

.tpf-nav-contact:hover {
  background: var(--c-gold-light);
  transform: translateY(-1px);
}

/* Hamburger */
.tpf-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
}

.tpf-hamburger span {
  display: block;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.tpf-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tpf-hamburger.is-open span:nth-child(2) { opacity: 0; }
.tpf-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.tpf-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: stretch;   /* hero-contentを全高に引き伸ばす */
  justify-content: center;
  overflow: hidden;
}

/* Slideshow */
.tpf-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tpf-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 8s ease-out;
}

.tpf-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Overlays */
.tpf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(10,14,6,0.35) 0%,
      rgba(10,14,6,0.25) 40%,
      rgba(10,14,6,0.55) 80%,
      rgba(10,14,6,0.9) 100%);
}

.tpf-hero-motif {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* Hero Content */
.tpf-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  width: 100%;
  /* ↓ hero-content 内部で flex センタリング。padding で上下の安全帯を確保 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 68px var(--gutter) 90px;
  /* top: ヘッダー高さ分（絶対に重ならない）/ bottom: スクロールインジケーター分 */
}

/* ① タイトル – ズームイン＋フェードイン */
.tpf-hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: scale(1.08);
}

.tpf-hero-title.is-animated {
  animation: heroTitleIn 1.2s var(--ease-out) 0.2s forwards;
}

@keyframes heroTitleIn {
  to { opacity: 1; transform: scale(1); }
}

.tpf-hero-main {
  font-family: var(--font-jp);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--c-white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.tpf-hero-tagline {
  font-family: var(--font-jp);
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--c-gold-light);
  letter-spacing: 0.08em;
}

.tpf-hero-caption {
  font-family: var(--font-jp);
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
}

.tpf-hero-eng {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 300;
  color: var(--c-gold);
  letter-spacing: 0.18em;
  font-style: italic;
}

/* ② サブキャッチ – 文字フロー */
.tpf-hero-catch {
  font-family: var(--font-jp);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--c-cream);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  min-height: 2em;
  opacity: 0;
  transition: opacity 0.4s;
}

.tpf-hero-catch.is-animated { opacity: 1; }

.tpf-hero-catch .tpf-char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  animation: charFlow 0.4s var(--ease-out) both;
}

@keyframes charFlow {
  to { opacity: 1; transform: translateX(0); }
}

/* ③ テキスト1 – ふわっと浮かび上がる */
.tpf-hero-text1 {
  font-family: var(--font-jp);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  opacity: 0;
  transform: translateY(14px);
}

.tpf-hero-text1.is-animated {
  animation: floatIn 0.8s var(--ease-out) 2.5s forwards;
}

/* ④ テキスト2 – 遠くから近づく */
.tpf-hero-text2 {
  font-family: var(--font-jp);
  font-size: clamp(0.88rem, 1.8vw, 1.1rem);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: scale(0.75);
}

.tpf-hero-text2.is-animated {
  animation: approachIn 1.2s var(--ease-out) 3.4s forwards;
}

@keyframes floatIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes approachIn {
  to { opacity: 1; transform: scale(1); }
}

/* Hero CTA */
.tpf-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 4.2s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tpf-cta-warm,
.tpf-cta-cool {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-jp);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.9em 2em;
  border-radius: 3em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  white-space: nowrap;
}

.tpf-cta-warm {
  background: var(--c-gold);
  color: var(--c-dark);
  box-shadow: 0 4px 24px rgba(200,164,74,0.35);
}

.tpf-cta-warm:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(200,164,74,0.5);
}

.tpf-cta-cool {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.tpf-cta-cool:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-3px);
}

.tpf-cta-arrow {
  transition: transform 0.3s;
  display: inline-block;
}

.tpf-cta-warm:hover .tpf-cta-arrow,
.tpf-cta-cool:hover  .tpf-cta-arrow { transform: translateX(4px); }

/* Scroll Indicator */
.tpf-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 5s forwards;
  transition: color 0.3s;
}

.tpf-scroll-indicator:hover { color: var(--c-gold); }

.tpf-si-text {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
}

.tpf-si-track {
  width: 1.5px;
  height: 42px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.tpf-si-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: var(--c-gold);
  border-radius: 3px;
  animation: scrollDot 1.8s var(--ease-in) infinite;
}

@keyframes scrollDot {
  0%   { top: -10px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* ══════════════════════════════════════════
   INTEREST ZONE
══════════════════════════════════════════ */
.tpf-interest {
  background: var(--c-olive);
}

.tpf-interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tpf-interest-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.tpf-interest-card:hover {
  background: rgba(200,164,74,0.06);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-gold);
}

.tpf-ic-icon {
  font-size: 2rem;
  line-height: 1;
}

.tpf-ic-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  text-transform: uppercase;
}

.tpf-ic-title {
  font-family: var(--font-jp);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.4;
}

.tpf-ic-problem {
  font-size: 0.82rem;
  color: var(--c-gold-pale);
  line-height: 1.6;
  padding: 0.5em 0.8em;
  background: rgba(200,164,74,0.08);
  border-left: 2px solid var(--c-gold);
  border-radius: 0 4px 4px 0;
}

.tpf-ic-desc {
  font-size: 0.88rem;
  color: var(--c-text-light);
  line-height: 1.85;
  flex: 1;
}

.tpf-ic-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-gold-light);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
  transition: color 0.2s, gap 0.2s;
}

.tpf-ic-btn:hover { color: var(--c-gold); gap: 0.7em; }

/* ══════════════════════════════════════════
   PARALLAX SCENES – 共通
══════════════════════════════════════════ */
.tpf-pc-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--c-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.tpf-pc-text {
  font-family: var(--font-jp);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--c-white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  letter-spacing: 0.06em;
}

.tpf-pc-sub {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  font-weight: 300;
  color: var(--c-gold-light);
  letter-spacing: 0.2em;
  font-style: italic;
  margin-top: 0.3rem;
}

/* ══════════════════════════════════════════
   SCROLL SCENE ① – 横パララックス
══════════════════════════════════════════ */
.tpf-parallax-scene {
  position: relative;
  height: 60vh;
  min-height: 360px;
  overflow: hidden;
}

.tpf-parallax-inner {
  position: absolute;
  inset: -10% -15%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.05s linear;
}

.tpf-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15,20,9,0.7) 0%,
    rgba(15,20,9,0.3) 60%,
    rgba(15,20,9,0.6) 100%
  );
}

.tpf-parallax-caption {
  position: absolute;
  bottom: 10%;
  left: 8%;
  z-index: 2;
}

/* ══════════════════════════════════════════
   SITE FEATURES
══════════════════════════════════════════ */
.tpf-features {
  background: var(--c-dark);
}

/* 3つの変化 */
.tpf-changes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.tpf-change-card {
  padding: 2rem 1.6rem;
  background: var(--c-olive-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.tpf-change-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.tpf-change-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: 1rem;
}

.tpf-change-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.2rem;
}

.tpf-change-kana {
  font-size: 0.78rem;
  color: var(--c-gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.tpf-change-desc {
  font-size: 0.87rem;
  color: var(--c-text-light);
  line-height: 1.9;
}

/* 選ばれる理由 */
.tpf-reasons {
  border-top: 1px solid var(--c-border);
  padding-top: 3.5rem;
}

.tpf-reasons-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 2rem;
  text-align: center;
}

.tpf-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tpf-reason-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--c-olive-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}

.tpf-reason-item:hover { border-color: var(--c-gold); }

.tpf-reason-check {
  font-size: 1.2rem;
  color: var(--c-gold);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.tpf-reason-body strong {
  font-size: 1rem;
  color: var(--c-white);
  display: block;
  margin-bottom: 0.5rem;
}

.tpf-reason-body p {
  font-size: 0.87rem;
  color: var(--c-text-light);
  line-height: 1.85;
}

/* ══════════════════════════════════════════
   DIVIDER MOTIF
══════════════════════════════════════════ */
.tpf-divider-motif {
  height: 80px;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  position: relative;
}

.tpf-divider-motif::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--c-dark) 0%,
    transparent 20%,
    transparent 80%,
    var(--c-dark) 100%);
}

.tpf-motif-line {
  height: 56px;
  background-size: cover;
  background-position: center;
  opacity: 0.09;
}

.tpf-motif-line--dark { opacity: 0.06; }

/* ══════════════════════════════════════════
   SCROLL SCENE ② – 下から立ち上がる
══════════════════════════════════════════ */
.tpf-rise-scene {
  position: relative;
  height: 65vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.tpf-rise-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  will-change: transform;
  transform: translateY(60px);
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity 1.2s;
}

.tpf-rise-img.is-risen {
  transform: translateY(0);
  opacity: 1;
}

.tpf-rise-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,20,9,0.85) 0%,
    rgba(15,20,9,0.2) 60%,
    rgba(15,20,9,0.5) 100%
  );
}

.tpf-rise-caption {
  position: relative;
  z-index: 2;
  padding: 3rem 8%;
  text-align: right;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.9s var(--ease-out) 0.5s, opacity 0.9s 0.5s;
}

.tpf-rise-caption.is-risen {
  transform: translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════════════
   DIAGNOSIS TEASER
══════════════════════════════════════════ */
.tpf-diagnosis {
  background: var(--c-olive);
  overflow: visible;
}

/* 3問プレビュー */
.tpf-diag-preview {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  margin-bottom: 3.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.tpf-diag-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(200,164,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Progress */
.tpf-dp-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.tpf-dp-bar {
  flex: 1;
  height: 3px;
  background: var(--c-gold);
  border-radius: 3px;
  transition: width 0.5s var(--ease-out);
}

.tpf-dp-progress::before {
  content: '';
  position: absolute;
  left: 3rem;
  right: 3rem;
  top: 3.5rem;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

.tpf-dp-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--c-gold);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Card */
.tpf-dp-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tpf-dp-loading {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 2rem 0;
}

.tpf-dp-dot {
  width: 8px;
  height: 8px;
  background: var(--c-gold);
  border-radius: 50%;
  animation: dotBounce 1.2s ease-in-out infinite;
}

.tpf-dp-dot:nth-child(2) { animation-delay: 0.2s; }
.tpf-dp-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-8px); opacity: 1; }
}

/* Question display (injected by JS) */
.tpf-dp-qnum {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--c-gold);
  margin-bottom: 0.8rem;
}

.tpf-dp-qtext {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-white);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.tpf-dp-qsub {
  font-size: 0.82rem;
  color: var(--c-text-light);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.tpf-dp-btns {
  display: flex;
  gap: 1rem;
}

.tpf-dp-btn {
  flex: 1;
  padding: 0.85em 1.2em;
  border-radius: var(--radius-sm);
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
}

.tpf-dp-btn-yes {
  background: var(--c-gold);
  color: var(--c-dark);
  border: none;
}

.tpf-dp-btn-yes:hover {
  background: var(--c-gold-light);
  transform: translateY(-2px);
}

.tpf-dp-btn-no {
  background: transparent;
  color: var(--c-text-light);
  border: 1px solid var(--c-border);
}

.tpf-dp-btn-no:hover {
  background: rgba(255,255,255,0.06);
  color: var(--c-white);
  border-color: rgba(255,255,255,0.3);
}

/* Transition to next/full */
.tpf-dp-redirect-msg {
  text-align: center;
  padding: 1rem 0;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  color: var(--c-gold-light);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* 5タイプ紹介 */
.tpf-diag-types {
  margin-bottom: 3rem;
}

.tpf-dt-lead {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--c-gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.tpf-dt-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tpf-dt-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 160px;
  text-align: center;
}

.tpf-dt-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  transition: border-color 0.3s;
}

.tpf-dt-item:hover .tpf-dt-img { border-color: var(--c-gold); }

.tpf-dt-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  margin-top: 0.3rem;
}

.tpf-dt-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-white);
}

.tpf-dt-desc {
  font-size: 0.72rem;
  color: var(--c-text-light);
  line-height: 1.6;
}

/* Diagnosis CTA */
.tpf-diag-cta {
  text-align: center;
}

.tpf-diag-btn {
  display: inline-flex;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light) 60%, var(--c-gold));
  background-size: 200% 100%;
  box-shadow: 0 6px 36px rgba(200,164,74,0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background-position 0.5s;
}

.tpf-diag-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 48px rgba(200,164,74,0.55);
  background-position: 100% 0;
}

.tpf-diag-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 2.8em;
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: 0.04em;
}

.tpf-diag-btn-arrow {
  transition: transform 0.3s;
  font-size: 1.1em;
}

.tpf-diag-btn:hover .tpf-diag-btn-arrow { transform: translateX(5px); }

.tpf-diag-meta {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--c-text-light);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════ */
.tpf-categories {
  background: var(--c-dark);
}

.tpf-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tpf-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--c-olive-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.tpf-cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-gold);
}

.tpf-cat-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.tpf-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.tpf-cat-card:hover .tpf-cat-img { transform: scale(1.05); }

.tpf-cat-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15,20,9,0.6) 100%);
}

.tpf-cat-body {
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.tpf-cat-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  text-transform: uppercase;
}

.tpf-cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.35;
}

.tpf-cat-desc {
  font-size: 0.85rem;
  color: var(--c-text-light);
  line-height: 1.85;
  flex: 1;
}

.tpf-cat-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-gold-light);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding-top: 0.8rem;
  border-top: 1px solid var(--c-border);
  transition: gap 0.2s, color 0.2s;
}

.tpf-cat-card:hover .tpf-cat-link { gap: 0.7em; color: var(--c-gold); }

.tpf-cat-link em { font-style: normal; }

/* ══════════════════════════════════════════
   SCROLL SCENE ③ – ふわっと浮かび上がる
══════════════════════════════════════════ */
.tpf-float-scene {
  position: relative;
  height: 60vh;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.tpf-float-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s ease, transform 1.4s var(--ease-out);
}

.tpf-float-img.is-floated {
  opacity: 1;
  transform: translateY(0);
  animation: gentleFloat 6s ease-in-out infinite 1.5s;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.tpf-float-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,20,9,0.75) 0%,
    rgba(15,20,9,0.3) 50%,
    rgba(15,20,9,0.6) 100%
  );
}

.tpf-float-caption {
  position: relative;
  z-index: 2;
  padding: 0 8%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s 0.6s, transform 0.9s var(--ease-out) 0.6s;
}

.tpf-float-caption.is-floated {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   ARTICLES
══════════════════════════════════════════ */
.tpf-articles {
  background: var(--c-olive);
}

.tpf-articles-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.tpf-articles-col-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--c-border);
}

.tpf-ac-icon {
  color: var(--c-gold);
  font-size: 0.8rem;
}

/* Cocoon shortcode restyling */
.tpf-cocoon-list .new-entry-card,
.tpf-cocoon-list .popular-entry-card,
.tpf-cocoon-list li {
  border-color: var(--c-border) !important;
  background: var(--c-olive-deep) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.5rem !important;
  transition: background 0.2s !important;
}

.tpf-cocoon-list .new-entry-card:hover,
.tpf-cocoon-list .popular-entry-card:hover,
.tpf-cocoon-list li:hover {
  background: rgba(200,164,74,0.06) !important;
}

.tpf-cocoon-list a {
  color: var(--c-cream) !important;
}

.tpf-cocoon-list a:hover {
  color: var(--c-gold-light) !important;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.tpf-about {
  background: var(--c-dark);
  overflow: hidden;
}

.tpf-about::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42,58,26,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.tpf-about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.tpf-about-visual {
  text-align: center;
  position: sticky;
  top: 100px;
}

.tpf-about-img-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--c-gold);
  overflow: hidden;
  margin: 0 auto 1rem;
  background: var(--c-olive-deep);
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 48px rgba(200,164,74,0.15);
}

.tpf-about-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.1);
}

.tpf-about-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  padding: 0.4em 1.2em;
  border: 1px solid var(--c-gold);
  border-radius: 2em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.tpf-about-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--c-white);
  letter-spacing: 0.2em;
  font-style: italic;
}

/* ── About Visual : クリッカブルカード化 ── */
a.tpf-about-visual {
  display: block;          /* div から a に変わったため明示 */
  text-decoration: none !important;
  color: inherit;
}

a.tpf-about-visual .tpf-about-img-wrap {
  transition: transform 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out);
}

a.tpf-about-visual:hover .tpf-about-img-wrap {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 56px rgba(200,164,74,0.25);
}

a.tpf-about-visual .tpf-about-logo {
  transition: filter 0.4s;
}

a.tpf-about-visual:hover .tpf-about-logo {
  filter: brightness(1.2);
}

/* プロフィールCTAテキスト */
.tpf-about-profile-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  border-bottom: 1px solid rgba(200,164,74,0.35);
  padding-bottom: 0.2em;
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}

a.tpf-about-visual:hover .tpf-about-profile-cta {
  color: var(--c-gold-light);
  border-color: var(--c-gold-light);
  gap: 0.7em;
}

.tpf-about-profile-arrow {
  font-style: normal;
  transition: transform 0.25s;
}

a.tpf-about-visual:hover .tpf-about-profile-arrow {
  transform: translateX(4px);
}

.tpf-about-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.tpf-about-title em {
  font-style: normal;
  color: var(--c-gold-light);
}

.tpf-about-lead {
  font-size: 0.95rem;
  color: var(--c-cream);
  line-height: 1.95;
  margin-bottom: 1.2rem;
}

.tpf-about-body {
  font-size: 0.9rem;
  color: var(--c-text-light);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.tpf-about-body strong { color: var(--c-gold-pale); }

.tpf-about-points {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.tpf-ap-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--c-olive-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  align-items: flex-start;
  transition: border-color 0.3s;
}

.tpf-ap-item:hover { border-color: var(--c-gold); }

.tpf-ap-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-gold);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1em;
}

.tpf-ap-item strong {
  font-size: 0.95rem;
  color: var(--c-white);
  display: block;
  margin-bottom: 0.4rem;
}

.tpf-ap-item p {
  font-size: 0.85rem;
  color: var(--c-text-light);
  line-height: 1.85;
}

.tpf-about-vision {
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--c-gold);
  background: rgba(200,164,74,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-cream);
  line-height: 1.7;
}

.tpf-about-vision small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--c-text-light);
}

/* ══════════════════════════════════════════
   RECOMMENDED LP（カルーセル）—「知識のコアへ導かれる前兆」
══════════════════════════════════════════ */
.tpf-recommended {
  position: relative;
  overflow: hidden;
  /* ベース：深緑〜漆黒の多層グラデーション */
  background:
    linear-gradient(
      160deg,
      #0c1509  0%,
      #162010 28%,
      #0f1b0b 55%,
      #0a1207 100%
    );
}

/* 光の帯レイヤー ① — 左上から差し込む、柔らかい金の光 */
.tpf-recommended::before {
  content: '';
  position: absolute;
  top: -30%; left: -5%;
  width: 80%; height: 80%;
  background: radial-gradient(
    ellipse at 38% 35%,
    rgba(200,164,74,0.10)  0%,
    rgba(154,173,130,0.06) 38%,
    transparent            70%
  );
  pointer-events: none;
  z-index: 0;
  animation: tpf-rec-breathe 10s ease-in-out infinite;
}

/* 光の帯レイヤー ② — 右下から差し込む、奥の深緑の光 */
.tpf-recommended::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 60%; height: 70%;
  background: radial-gradient(
    ellipse at 65% 65%,
    rgba(200,164,74,0.06)  0%,
    rgba(61,84,41,0.04)    48%,
    transparent            70%
  );
  pointer-events: none;
  z-index: 0;
  animation: tpf-rec-breathe 10s ease-in-out infinite reverse;
  animation-delay: -5s;
}

@keyframes tpf-rec-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%       { opacity: 1.0;  transform: scale(1.14) translate(1%, -1%); }
}

/* 幾何学グリッドライン（`.tpf-rec-geo` div に適用） */
.tpf-rec-geo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,164,74,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,164,74,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* 斜め光の帯（`slant` div → 12秒でゆっくり横断） */
.tpf-rec-slant {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 40%,
    rgba(200,164,74,0.045) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-position: -250% 0;
  pointer-events: none;
  z-index: 0;
  animation: tpf-rec-slant-move 14s linear infinite;
}
@keyframes tpf-rec-slant-move {
  0%   { background-position: -250% 0; }
  100% { background-position:  450% 0; }
}

/* 上下の境界ライン */
.tpf-rec-line-top,
.tpf-rec-line-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(200,164,74,0.20)   20%,
    rgba(200,164,74,0.55)   50%,
    rgba(200,164,74,0.20)   80%,
    transparent             100%
  );
}
.tpf-rec-line-top    { top: 0; }
.tpf-rec-line-bottom { bottom: 0; }

/* コンテンツを演出レイヤーの前面へ */
.tpf-recommended .tpf-container {
  position: relative;
  z-index: 2;
}

/* prefers-reduced-motion 対応 */
@media (prefers-reduced-motion: reduce) {
  .tpf-recommended::before,
  .tpf-recommended::after,
  .tpf-rec-slant { animation: none; }
}

.tpf-rec-carousel {
  position: relative;
  margin: 0 -0.5rem;
}

/* ── スクロールトラック ── */
.tpf-rec-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0.5rem 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.tpf-rec-track:active { cursor: grabbing; }
.tpf-rec-track::-webkit-scrollbar { display: none; }

/* ── カード ── */
.tpf-rec-card {
  flex: 0 0 calc(33.333% - 0.84rem);
  scroll-snap-align: start;
  background: var(--c-olive-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.38s var(--ease-out), box-shadow 0.38s, border-color 0.38s;
}
.tpf-rec-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-gold);
}

/* ── 番号バッジ ── */
.tpf-rec-num {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-gold);
  background: rgba(15, 20, 9, 0.75);
  backdrop-filter: blur(4px);
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200,164,74,0.3);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* ── サムネイル ── */
.tpf-rec-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}
.tpf-rec-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.tpf-rec-card:hover .tpf-rec-img { transform: scale(1.06); }

/* ── シマーオーバーレイ（ホバーで光が走る） ── */
.tpf-rec-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(200,164,74,0.18) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  background-position: -200% 0;
}
.tpf-rec-card:hover .tpf-rec-shimmer {
  transition: background-position 0.65s ease-in-out;
  background-position: 200% 0;
}

/* ── テキスト ── */
.tpf-rec-body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.tpf-rec-title {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--c-cream);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.tpf-rec-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-gold-light);
  display: flex;
  align-items: center;
  gap: 0.3em;
  transition: gap 0.2s, color 0.2s;
}
.tpf-rec-card:hover .tpf-rec-cta { gap: 0.5em; color: var(--c-gold); }
.tpf-rec-arrow { transition: transform 0.2s; }
.tpf-rec-card:hover .tpf-rec-arrow { transform: translateX(3px); }

/* ── ナビゲーションドット ── */
.tpf-rec-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.tpf-rec-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-olive-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease-out), width 0.3s var(--ease-out);
}
.tpf-rec-dot.is-active {
  background: var(--c-gold);
  width: 44px;
}

/* ── 前後ボタン ── */
.tpf-rec-prev,
.tpf-rec-next {
  position: absolute;
  top: calc(50% - 1.5rem);
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--c-olive-deep);
  border: 1px solid var(--c-border);
  color: var(--c-gold);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0.7;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s, transform 0.25s;
}
.tpf-rec-prev { left: -0.6rem; }
.tpf-rec-next { right: -0.6rem; }
.tpf-rec-prev:hover,
.tpf-rec-next:hover {
  background: var(--c-gold);
  color: var(--c-dark);
  border-color: var(--c-gold);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

/* ── emptyメッセージ ── */
.tpf-rec-empty {
  text-align: center;
  font-size: 0.87rem;
  color: var(--c-text-light);
  padding: 2rem;
  background: var(--c-olive-deep);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   CORE ARCHIVE CTA —「核心への到達・決断の瞬間」
══════════════════════════════════════════ */
.tpf-core-cta {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  /* ベース：より深い漆黒、光が収束する宇宙の深度 */
  background: linear-gradient(
    170deg,
    #060d05 0%,
    #0a1208 30%,
    #111908 65%,
    #070e05 100%
  );
}

/* ── 収束光コア ①：回転するコニックグラデーション ── */
.tpf-core-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 140vw);
  height: min(900px, 140vw);
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent                 0deg,
    rgba(200,164,74,0.028)     40deg,
    transparent                80deg,
    rgba(200,164,74,0.022)    130deg,
    transparent               170deg,
    rgba(200,164,74,0.032)    210deg,
    transparent               250deg,
    rgba(200,164,74,0.018)    290deg,
    transparent               330deg,
    rgba(200,164,74,0.026)    360deg
  );
  pointer-events: none;
  z-index: 0;
  animation: tpf-cta-rotate 24s linear infinite;
}
@keyframes tpf-cta-rotate {
  from { transform: translate(-50%,-50%) rotate(0deg);   }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ── 収束光コア ②：中心パルスグロー ── */
.tpf-core-cta::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 220px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(200,164,74,0.18) 0%,
    rgba(200,164,74,0.09) 28%,
    rgba(61,84,41,0.05)   58%,
    transparent           80%
  );
  pointer-events: none;
  z-index: 0;
  animation: tpf-cta-core-pulse 5.5s ease-in-out infinite;
}
@keyframes tpf-cta-core-pulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%,-50%) scale(1);    }
  50%       { opacity: 1.0;  transform: translate(-50%,-50%) scale(1.22); }
}

/* ── 縦の収束ビーム（`.tpf-cta-beam` × 3本） ── */
.tpf-cta-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.tpf-cta-beam {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent             0%,
    rgba(200,164,74,0.16)  35%,
    rgba(200,164,74,0.38)  50%,
    rgba(200,164,74,0.16)  65%,
    transparent            100%
  );
  animation: tpf-beam-pulse 4.5s ease-in-out infinite;
}
.tpf-cta-beam:nth-child(1) { left: 18%; animation-delay: 0s;   }
.tpf-cta-beam:nth-child(2) { left: 50%; animation-delay: 1.5s; }
.tpf-cta-beam:nth-child(3) { left: 82%; animation-delay: 3s;   }
@keyframes tpf-beam-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1.0;  }
}

/* ── ドットマトリクス（`.tpf-cta-dots`） ── */
.tpf-cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle, rgba(200,164,74,0.075) 1px, transparent 1px
  );
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
}

/* ── 上下の輝く境界ライン ── */
.tpf-cta-line-top,
.tpf-cta-line-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  pointer-events: none;
  z-index: 1;
}
.tpf-cta-line-top {
  top: 0;
  background: linear-gradient(
    90deg,
    transparent           0%,
    rgba(200,164,74,0.18) 15%,
    rgba(200,164,74,0.70) 50%,
    rgba(200,164,74,0.18) 85%,
    transparent          100%
  );
}
.tpf-cta-line-bottom {
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent           0%,
    rgba(200,164,74,0.12) 15%,
    rgba(200,164,74,0.50) 50%,
    rgba(200,164,74,0.12) 85%,
    transparent          100%
  );
}

/* ── コンテンツを前面へ ── */
.tpf-core-cta .tpf-container {
  position: relative;
  z-index: 2;
}

/* ── インナーパネル：ガラスモーフィズム × 透明奥行き層 ── */
.tpf-core-cta-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.045) 0%,
      rgba(200,164,74,0.028)  50%,
      rgba(255,255,255,0.022) 100%
    );
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(200,164,74,0.25);
  border-top-color: rgba(200,164,74,0.50);
  border-radius: 24px;
  padding: 3.2rem 3.6rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(200,164,74,0.06),
    0 28px 72px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* 右上コーナーグロー */
.tpf-core-cta-inner::before {
  content: '';
  position: absolute;
  top: -90px; right: -90px;
  width: 300px; height: 300px;
  background: radial-gradient(
    circle at 65% 35%,
    rgba(200,164,74,0.16) 0%,
    rgba(200,164,74,0.07) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: tpf-glow-pulse 5s ease-in-out infinite;
}

/* 左下コーナーグロー */
.tpf-core-cta-inner::after {
  content: '';
  position: absolute;
  bottom: -70px; left: -70px;
  width: 220px; height: 220px;
  background: radial-gradient(
    circle at 35% 65%,
    rgba(61,84,41,0.20) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: tpf-glow-pulse 5s ease-in-out infinite;
  animation-delay: -2.5s;
}

@keyframes tpf-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1);    }
  50%       { opacity: 1.0; transform: scale(1.20); }
}

.tpf-core-cta-text { flex: 1; position: relative; z-index: 1; }

.tpf-core-cta-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.tpf-core-cta-label::before {
  content: '◆';
  font-size: 0.55rem;
  display: inline-block;
  animation: tpf-diamond-spin 7s linear infinite;
}
@keyframes tpf-diamond-spin {
  0%   { transform: rotate(0deg)   scale(1);   }
  50%  { transform: rotate(180deg) scale(1.35);}
  100% { transform: rotate(360deg) scale(1);   }
}

.tpf-core-cta-title {
  font-family: var(--font-jp);
  font-size: clamp(1.65rem, 2.9vw, 2.3rem);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
/* グラデーション文字にアニメーション */
.tpf-core-cta-title em {
  font-style: normal;
  background: linear-gradient(
    90deg,
    var(--c-gold)       0%,
    #f5e090             40%,
    var(--c-gold-light) 70%,
    var(--c-gold)      100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: tpf-title-shimmer 4s linear infinite;
}
@keyframes tpf-title-shimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}

.tpf-core-cta-desc {
  font-size: 0.9rem;
  color: var(--c-sage);
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

/* CTA ボタン：グラデーションシマー + 多重グロー */
.tpf-core-cta-btn {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(
    90deg,
    var(--c-gold)       0%,
    #e8b84a            40%,
    var(--c-gold-light) 70%,
    var(--c-gold)      100%
  );
  background-size: 200% auto;
  color: var(--c-dark);
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 800;
  border-radius: 50px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow:
    0 6px 32px rgba(200,164,74,0.45),
    0 0 0 0 rgba(200,164,74,0.3);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
  animation: tpf-btn-shimmer 3.5s linear infinite;
}
@keyframes tpf-btn-shimmer {
  0%   { background-position:   0% center; }
  100% { background-position: 200% center; }
}
.tpf-core-cta-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 14px 50px rgba(200,164,74,0.62),
    0 0 0 4px rgba(200,164,74,0.20);
}
.tpf-core-cta-arrow {
  font-size: 1.2em;
  transition: transform 0.22s;
  display: inline-block;
}
.tpf-core-cta-btn:hover .tpf-core-cta-arrow {
  transform: translateX(6px);
}

/* prefers-reduced-motion 対応 */
@media (prefers-reduced-motion: reduce) {
  .tpf-core-cta::before,
  .tpf-core-cta::after,
  .tpf-cta-beam,
  .tpf-core-cta-inner::before,
  .tpf-core-cta-inner::after,
  .tpf-core-cta-label::before,
  .tpf-core-cta-title em,
  .tpf-core-cta-btn { animation: none; }
}

/* ══════════════════════════════════════════
   SCROLL ANIMATION UTILITIES
══════════════════════════════════════════ */
.tpf-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.tpf-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.4s !important; }
.d5 { transition-delay: 0.55s !important; }
.d6 { transition-delay: 0.7s !important; }

/* ══════════════════════════════════════════
   FOOTER OVERRIDE (from footer_tp)
══════════════════════════════════════════ */
#tp-footer {
  font-family: var(--font-jp) !important;
  background: var(--c-dark) !important;
  border-top: 1px solid var(--c-border) !important;
}

/* ══════════════════════════════════════════
   HERO TITLE – PC横並びレイアウト
══════════════════════════════════════════ */
@media (min-width: 769px) {
  .tpf-hero-title {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.15em 0.7em;
  }
  /* メインタイトルと英語タイトルは全幅（独立した行） */
  .tpf-hero-main,
  .tpf-hero-eng {
    flex: 0 0 100%;
  }
  /* タグラインとキャプションは同じ行に並ぶ */
  .tpf-hero-tagline,
  .tpf-hero-caption {
    flex: 0 0 auto;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE – TABLET (≤ 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --section-pad: 96px;
    --container: 100%;
  }

  .tpf-changes-grid    { grid-template-columns: 1fr 1fr; }
  .tpf-cat-grid        { grid-template-columns: 1fr 1fr; }
  .tpf-about-inner     { grid-template-columns: 220px 1fr; gap: 2.5rem; }
  .tpf-rec-card        { flex: 0 0 calc(50% - 0.625rem); }
  .tpf-core-cta-inner  { gap: 2rem; padding: 2.5rem 2.5rem; }
  .tpf-dt-item         { width: 140px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE – MOBILE (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-sm);
    --gutter: 18px;
  }

  /* Hide desktop nav, show hamburger */
  .tpf-nav         { display: none; }
  .tpf-hamburger   { display: flex; }
  .tpf-logo-eng    { display: none; }

  /* Hero */
  .tpf-hero-content  { padding: 68px var(--gutter) 110px; }
  /* top: ヘッダー確保 / bottom: CTA縦並び＋インジケーター確保 */
  .tpf-hero-main     { font-size: clamp(1.6rem, 9vw, 2.5rem); }
  .tpf-hero-tagline  { font-size: 0.82rem; }
  .tpf-hero-caption  { font-size: 0.68rem; }
  .tpf-hero-eng      { font-size: 1rem; }
  .tpf-hero-catch    { font-size: 0.9rem; }
  .tpf-hero-text1    { font-size: 0.78rem; }
  .tpf-hero-text2    { font-size: 0.85rem; }
  .tpf-hero-cta      { flex-direction: column; align-items: center; gap: 0.75rem; }
  .tpf-cta-warm,
  .tpf-cta-cool      { width: 100%; max-width: 320px; justify-content: center; font-size: 0.9rem; }

  /* Interest */
  .tpf-interest-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Changes */
  .tpf-changes-grid { grid-template-columns: 1fr; }

  /* About */
  .tpf-about-inner { grid-template-columns: 1fr; }
  .tpf-about-visual { position: static; margin-bottom: 1rem; }

  /* Categories */
  .tpf-cat-grid { grid-template-columns: 1fr; }

  /* Articles */
  .tpf-articles-cols { grid-template-columns: 1fr; gap: 2rem; }

  /* Recommended carousel – mobile */
  .tpf-rec-card        { flex: 0 0 calc(75% - 0.625rem); }
  .tpf-rec-prev        { left: -0.25rem; }
  .tpf-rec-next        { right: -0.25rem; }

  /* Core CTA – mobile */
  .tpf-core-cta        { padding: 60px 0; }
  .tpf-core-cta-inner  {
    flex-direction: column;
    text-align: center;
    gap: 1.75rem;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .tpf-core-cta-label  { justify-content: center; }
  .tpf-core-cta-btn    { width: 100%; max-width: 320px; justify-content: center; }
  .tpf-cta-beam:nth-child(2) { display: none; } /* モバイルでは中央ビームのみ残す */

  /* Parallax scenes */
  .tpf-parallax-scene,
  .tpf-rise-scene,
  .tpf-float-scene { height: 45vh; min-height: 260px; }

  /* Section text */
  .tpf-section-title { font-size: 1.4rem; }
  .tpf-section-lead  { font-size: 0.87rem; }

  /* Diagnosis */
  .tpf-diag-preview { padding: 1.5rem; }
  .tpf-dt-item { width: 120px; }
  .tpf-dt-grid { gap: 0.6rem; }

  .tpf-diag-btn-inner { font-size: 0.92rem; padding: 0.95em 2em; }

  /* Diagnosis 5types scroll */
  .tpf-dt-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tpf-dt-grid::-webkit-scrollbar { display: none; }
  .tpf-dt-item { flex-shrink: 0; width: 130px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE – SMALL MOBILE (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .tpf-hero-main  { font-size: 1.6rem; }
  .tpf-cta-warm,
  .tpf-cta-cool   { padding: 0.85em 1.6em; font-size: 0.85rem; }

  .tpf-interest-card { padding: 1.6rem 1.2rem; }
  .tpf-change-card   { padding: 1.5rem 1.2rem; }
  .tpf-cat-body      { padding: 1.2rem 1.2rem; }

  .tpf-about-img-wrap { width: 140px; height: 140px; }
}
.tpf-rec-card { flex: 0 0 calc(88% - 0.625rem); }
