/* ═══════════════════════════════════════════════════════════
   ENGLISH LOUIS — enhance.css
   Refinement layer on top of style.css. Keeps the existing
   green / Augusta-cream identity, elevates type, rhythm,
   hierarchy and micro-interactions. Loaded AFTER style.css.
   ═══════════════════════════════════════════════════════════ */

:root {
  --font-serif: 'Shippori Mincho B1', 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── DISPLAY TYPOGRAPHY: serif for big headings only ───────────
   Body, cards, nav, tags all stay in the existing sans system.
   This adds country-club / heritage prestige that fits the
   Augusta-cream palette already in the brand.                   */
.hero-h1,
.section-header h2,
.about-text-col h2,
.story-text-col h2,
.action-text h2,
.contact-info h2,
.book-cta-inner h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.005em;
  font-feature-settings: "palt" 1;
  text-wrap: balance;
}

.hero-h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.14;
  font-weight: 800;
}
.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  line-height: 1.28;
}

/* keep the editorial italic accents genuinely italic in serif */
.hero-accent {
  font-style: normal;
}
.gold-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}

/* ── HERO refinement ──────────────────────────────────────────── */
.hero-overlay {
  background: linear-gradient(
    115deg,
    rgba(11,24,17,0.92) 0%,
    rgba(12,26,18,0.74) 42%,
    rgba(13,30,20,0.30) 78%,
    rgba(13,30,20,0.12) 100%
  );
}
.hero::after {
  /* subtle vignette at the bottom so the credential bar reads as one piece */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to top, rgba(15,32,24,0.55), transparent);
  z-index: 1;
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-lt);
}
.hero-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.hero-h1 {
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: rgba(255,255,255,0.82);
  border-left: 2px solid rgba(62,184,122,0.5);
  padding-left: 18px;
}
.hero-btns .btn-primary,
.hero-btns .btn-outline {
  padding: 15px 34px;
}

/* ── SECTION HEADER: refined eyebrow tag ──────────────────────── */
.section-tag {
  border-radius: 2px;
  border-width: 0 0 0 0;
  background: transparent;
  border: none;
  padding: 0 0 0 26px;
  position: relative;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
}
.section-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--gold);
  transform: translateY(-50%);
}
.section-tag.light::before { background: var(--gold-lt); }

/* a touch more air under section headers */
.section-header { margin-bottom: 72px; }
.section-header p { font-size: 1.08rem; }

/* ── SCROLL PROGRESS BAR ──────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-lt));
  z-index: 1100;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── CARD POLISH: unify hover lift & easing ───────────────────── */
.pedigree-card,
.lesson-card,
.event-card,
.result-card,
.testimonial-card,
.miyu-video-card,
.coaching-video-card,
.message-card {
  transition: transform 0.32s var(--ease-out),
              box-shadow 0.32s var(--ease-out),
              border-color 0.32s var(--ease-out),
              background 0.32s var(--ease-out);
  will-change: transform;
}

/* refined image zoom in galleries */
.gallery-item img { transition: transform 0.9s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }

/* ── BUTTON micro-interactions ────────────────────────────────── */
.btn-primary, .btn-outline, .btn-nav-cta, .btn-nav-line,
.card-btn, .lesson-line-btn {
  transition: transform 0.18s var(--ease-out),
              background 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out);
}
.btn-primary:active, .btn-outline:active,
.btn-nav-cta:active, .btn-line-primary:active { transform: translateY(1px); }

/* nav links: animated underline */
.nav-links a:not(.lang-toggle):not(.btn-nav-cta):not(.btn-nav-line) {
  position: relative;
}
.nav-links a:not(.lang-toggle):not(.btn-nav-cta):not(.btn-nav-line)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.nav-links a:not(.lang-toggle):not(.btn-nav-cta):not(.btn-nav-line):hover::after {
  transform: scaleX(1);
}

/* ── CREDENTIAL BAR: a little more presence ───────────────────── */
.cred-label { color: var(--gold-lt); opacity: 0.9; }
.cred-track span { font-size: 0.82rem; letter-spacing: 0.02em; }

/* ── PILLAR cards (light cream): refine number + title ────────── */
.pillar-num {
  font-family: var(--font-serif);
  font-weight: 800;
  color: rgba(31,138,85,0.28);
}
.pillar h3 { letter-spacing: -0.01em; }

/* ── selection + smooth focus ─────────────────────────────────── */
::selection { background: rgba(62,184,122,0.32); color: #fff; }
.section-light ::selection { background: rgba(31,138,85,0.25); color: var(--text-dark); }

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── RESULTS quote marks ──────────────────────────────────────── */
.result-card p {
  position: relative;
}
.result-card p::before {
  content: "“";
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 0;
  color: var(--gold);
  opacity: 0.5;
  margin-right: 2px;
  vertical-align: -0.5rem;
}

/* ── STORY closing signature in serif ─────────────────────────── */
.story-sign { font-family: var(--font-serif); font-size: 1.1rem; }
.story-emphasis, .story-quote { font-family: var(--font-serif); }

/* ── slightly tighter, more confident section rhythm ──────────── */
@media (min-width: 861px) {
  .section { padding: 104px 0; }
}

/* ── reduce motion respect ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-img, .gallery-item img, .scroll-progress,
  .fade-in, .fade-in-stagger > * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING BOOK CTA
   Desktop: pill floating bottom-right. Mobile: full-width bottom bar.
   Hidden until the user scrolls past the hero, hidden again near the
   booking section so it never covers its own target.
   ═══════════════════════════════════════════════════════════════ */
:root { --line-green: #06C755; --line-green-d: #05a948; }

.fab-book {
  position: fixed;
  z-index: 1090;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 10px 30px rgba(6,199,85,0.34), 0 2px 8px rgba(0,0,0,0.18);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.42s var(--ease-out), opacity 0.3s ease, background 0.2s ease;
  will-change: transform;
}
.fab-book.fab-visible { transform: translateY(0); opacity: 1; }
.fab-book:hover { background: var(--line-green-d); }
.fab-book:active { transform: translateY(2px); }

.fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fab-text { display: flex; flex-direction: column; line-height: 1.2; }
.fab-text strong { font-size: 0.98rem; font-weight: 700; letter-spacing: 0.01em; }
.fab-text span { font-size: 0.72rem; opacity: 0.92; font-weight: 500; }
.fab-text-short { display: none; font-weight: 700; font-size: 0.95rem; }

/* Desktop: rounded pill bottom-right */
@media (min-width: 861px) {
  .fab-book {
    right: 28px;
    bottom: 28px;
    padding: 14px 24px 14px 20px;
    border-radius: 999px;
  }
  .fab-book::after {
    /* gentle attention pulse ring */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(6,199,85,0.45);
    animation: fabPulse 2.6s ease-out infinite;
  }
}
@keyframes fabPulse {
  0%   { box-shadow: 0 0 0 0 rgba(6,199,85,0.40); }
  70%  { box-shadow: 0 0 0 16px rgba(6,199,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(6,199,85,0); }
}

/* Mobile: full-width bottom bar */
@media (max-width: 860px) {
  .fab-book {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
    padding: 15px 18px;
    border-radius: 14px;
  }
  .fab-text { display: none; }
  .fab-text-short { display: inline; }
  /* keep content clear of the bar */
  body.fab-on .footer-bottom { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .fab-book::after { animation: none; }
  .fab-book { transition: opacity 0.3s ease; transform: none; }
  .fab-book:not(.fab-visible) { opacity: 0; pointer-events: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR — 出張レッスン (topical, sticky at very top)
   ═══════════════════════════════════════════════════════════════ */
:root { --anno-h: 46px; }

.anno-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--anno-h);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #06200f;
  box-shadow: 0 2px 14px rgba(0,0,0,0.25);
  transform: translateY(0);
  overflow: hidden;
}
body.has-anno .anno-bar {
  display: flex;
}
.anno-bar.anno-hidden { display: none !important; }

/* push the fixed nav below the bar when present */
body.has-anno .nav { top: var(--anno-h); }

.anno-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 0 16px;
  font-weight: 600;
  max-width: 1200px;
}
.anno-text {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.anno-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.anno-cities {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.82;
}
.anno-cities::before {
  content: "—";
  margin-right: 8px;
  opacity: 0.5;
}
.anno-cta {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: #06200f;
  color: var(--gold-lt);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s var(--ease-out);
}
.anno-link:hover .anno-cta { transform: translateX(2px); }

.anno-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #06200f;
  position: relative;
  flex-shrink: 0;
}
.anno-pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(6,32,15,0.6);
  animation: annoPing 2s ease-out infinite;
}
@keyframes annoPing {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.anno-close {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: none;
  background: rgba(6,32,15,0.12);
  color: #06200f;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.anno-close:hover { background: rgba(6,32,15,0.24); }

/* anchor offset so #events isn't hidden under nav (+anno) */
html { scroll-padding-top: calc(var(--nav-h, 70px) + 16px); }
body.has-anno { scroll-padding-top: calc(var(--nav-h, 70px) + var(--anno-h) + 16px); }

@media (max-width: 860px) {
  :root { --anno-h: 42px; }
  .anno-cities { display: none; }
  .anno-text strong { font-size: 0.84rem; }
  .anno-cta { font-size: 0.74rem; padding: 4px 10px; }
  .anno-link { gap: 10px; padding: 0 40px 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .anno-pulse::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   YOUTUBE FACADE — click-to-load (kills embed errors, faster)
   ═══════════════════════════════════════════════════════════════ */
.yt-facade {
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}
.yt-facade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.3s ease;
}
.yt-facade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,32,24,0.10), rgba(15,32,24,0.55));
  z-index: 1;
  transition: background 0.3s ease;
}
.yt-facade:hover .yt-facade-img { transform: scale(1.05); }
.yt-facade:hover::before { background: linear-gradient(180deg, rgba(15,32,24,0.05), rgba(15,32,24,0.40)); }

.yt-facade-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}
.yt-facade-play::after {
  content: "";
  width: 0; height: 0;
  border-left: 20px solid #06200f;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 5px;
}
.yt-facade:hover .yt-facade-play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold-lt); }

.yt-facade-badge {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15,32,24,0.7);
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.yt-facade.yt-loaded::before,
.yt-facade.yt-loaded .yt-facade-play,
.yt-facade.yt-loaded .yt-facade-badge { display: none; }
.yt-facade.yt-loaded { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .yt-facade-img, .yt-facade-play { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   Corrects layout regressions found at phone widths (≤ 860 / 600).
   ═══════════════════════════════════════════════════════════════ */

/* 1. Secondary coaching photo overflowed the right edge (right:-28px
      pushed it ~12px past the viewport → clipped on phones).        */
@media (max-width: 860px) {
  .action-photos { padding-right: 8px; }
  .action-img-secondary {
    right: -8px;
    bottom: -16px;
  }
}
@media (max-width: 600px) {
  .action-img-secondary {
    right: 0;
    bottom: -14px;
    width: 44%;
  }
}

/* 2. Credential marquee: when .cred-bar stacks to a column the track
      wrapper was centered at its full 3,944px width, so the edge-fade
      mask fell off-screen. Constrain it to the viewport.            */
@media (max-width: 600px) {
  .cred-bar { align-items: stretch; }
  .cred-track-wrap {
    width: 100%;
    align-self: stretch;
    flex: 0 0 auto;
  }
  .cred-label { align-self: flex-start; }
}

/* 3. Announcement bar: keep the CTA from crowding the close button
      on very narrow screens.                                        */
@media (max-width: 420px) {
  .anno-text strong { font-size: 0.8rem; }
  .anno-cta { font-size: 0.72rem; padding: 4px 9px; }
  .anno-link { gap: 8px; padding: 0 38px 0 10px; }
}
