/* ============================================================
   神吉医院 v4 — style.css
   ベース: 院長モック(index_v3) カラーシステム + Scientific Premium演出
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { animation: pageFadeIn 0.6s ease both; }
@keyframes pageFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
::selection { background: rgba(184,134,11,0.15); color: var(--navy); }
:focus-visible {
  outline: 2px solid var(--gold-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== CSS VARIABLES ===== */
:root {
  --gold-brand: #B8860B;
  --gold-deep: #9A6F0A;
  --gold-text: #856310;
  --gold-bg-light: #FCF7EA;
  --gold-bg-warm: #F6EDD4;
  --gold-border: #DCC68A;
  --gold-hairline: #C9A84A;
  --navy: #1B2A3D;
  --navy-light: #2C3E55;
  --text-primary: #2A2A2A;
  --text-secondary: #4A4A4A;
  --text-muted: #6B6B6B;
  --bg-white: #FFFFFF;
  --bg-off-white: #FBFAF6;
  --bg-light-gray: #F5F4F0;
  --bg-cream: #FAF6EC;
  --border-light: #E8E4DC;
  --line-green: #06C755;
  --shadow-sm: 0 1px 3px rgba(40,30,0,0.05), 0 1px 2px rgba(40,30,0,0.03);
  --shadow-md: 0 4px 16px rgba(40,30,0,0.08), 0 2px 4px rgba(40,30,0,0.04);
  --shadow-lg: 0 12px 40px rgba(40,30,0,0.12), 0 4px 12px rgba(40,30,0,0.06);
  --shadow-xl: 0 20px 60px rgba(40,30,0,0.15), 0 8px 20px rgba(40,30,0,0.08);
  --shadow-3d: 0 10px 30px rgba(40,30,0,0.1), 0 1px 0 rgba(255,255,255,0.8) inset;
  --shadow-card-hover: 0 20px 50px rgba(40,30,0,0.14), 0 8px 16px rgba(40,30,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  line-height: 1.85;
  background: var(--bg-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
*:focus-visible { outline: 3px solid var(--gold-brand); outline-offset: 2px; }

/* ===== SPLASH ===== */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#splash.splash-exit { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-logo { margin-bottom: 28px; }
.splash-logo-float {
  display: inline-block;
  animation: floatUpDown 1.8s ease-in-out 0.3s both;
}
.splash-logo-svg {
  width: 64px; height: auto;
  animation: spinSmooth 1.6s linear 0.3s both;
}
.splash-tagline {
  font-family: 'Noto Serif JP', serif; font-size: 0.95rem;
  color: var(--gold-bg-light); letter-spacing: 0.18em;
  opacity: 0; animation: taglineFade 0.8s ease 1.6s forwards;
}

@keyframes floatUpDown {
  0%   { transform: translateY(20px); opacity: 0; }
  15%  { opacity: 1; }
  45%  { transform: translateY(-50px); }
  75%  { transform: translateY(4px); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes spinSmooth {
  0%   { transform: rotate(0deg) scale(0.5); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes taglineFade {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.header-scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header-main {
  padding: 0;
  background: transparent;
  border-bottom: 1px solid rgba(232,228,220,0.4);
  transition: border-color 0.3s ease;
}
.header-main .container {
  display: flex; align-items: center;
  height: 64px; transition: height 0.3s ease;
}
.header-scrolled .header-main .container { height: 52px; }

.logo-area { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; gap: 10px; }
.header-logo-svg {
  width: 28px; height: auto; flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s ease;
}
.header-scrolled .header-logo-svg { width: 24px; transform: rotate(10deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-clinic-name {
  font-family: 'Noto Serif JP', serif; font-size: 1.15rem; font-weight: 600;
  color: var(--navy); letter-spacing: 0.04em;
  transition: font-size 0.3s ease;
}
.header-scrolled .logo-clinic-name { font-size: 1.05rem; }
.logo-clinic-sub {
  font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.02em;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
.header-scrolled .logo-clinic-sub { opacity: 0.5; }

/* Desktop Nav */
.nav-desktop { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); margin-right: 20px; }
.nav-desktop > a, .nav-dropdown-toggle {
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 500;
  padding: 20px 0; position: relative; transition: color var(--transition); white-space: nowrap;
  letter-spacing: 0.02em;
}
.nav-desktop > a:hover, .nav-dropdown-toggle:hover { color: var(--navy); }
.nav-desktop > a::after, .nav-dropdown-toggle::after {
  content: ''; position: absolute; bottom: 16px; left: 0;
  width: 0; height: 1.5px; background: var(--gold-brand); transition: width 0.3s ease;
}
.nav-desktop > a:hover::after, .nav-dropdown-toggle:hover::after { width: 100%; }
.nav-desktop > a.is-active { color: var(--navy); font-weight: 600; }
.nav-desktop > a.is-active::after { width: 100%; }

/* Header CTA (icon + label vertical) */
.header-cta { display: flex; align-items: stretch; height: 64px; margin-left: 8px; gap: 8px; }
.header-cta-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 0 16px;
  color: var(--text-muted); font-size: 0.65rem; font-weight: 500;
  border-left: 1px solid rgba(232,228,220,0.5);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.header-cta-item i { font-size: 1rem; }
.header-cta-item:hover { color: var(--gold-text); background: var(--gold-bg-light); }
.header-cta-accent { color: var(--navy); }
.header-cta-accent:hover { color: #fff; background: var(--navy); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px 0; min-width: 160px;
  opacity: 0; visibility: hidden; transition: all var(--transition);
  pointer-events: none;
}
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px); }
.nav-dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.88rem; color: var(--text-secondary); transition: all var(--transition); }
.nav-dropdown-menu a:hover { background: var(--gold-bg-light); color: var(--gold-text); }

/* (merged into L143) */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition); min-height: 44px; white-space: nowrap;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold-outline { background: transparent; color: var(--gold-text); border: 2px solid var(--gold-brand); }
.btn-gold-outline:hover { background: var(--gold-bg-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--gold-deep); }
.btn-gold { background: linear-gradient(135deg, #B8860B, #D4A017); color: #fff; box-shadow: 0 4px 12px rgba(184,134,11,0.25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,134,11,0.35); }
.btn-line-mobile { background: var(--line-green); color: #fff; box-shadow: 0 4px 12px rgba(6,199,85,0.25); }
.btn-line-mobile:hover { background: #05b34c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,199,85,0.35); }

/* Hamburger */
.hamburger { display: none; padding: 10px; min-height: 44px; min-width: 44px; }
.hamburger-lines {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  position: relative; transition: background var(--transition);
}
.hamburger-lines::before, .hamburger-lines::after {
  content: ''; position: absolute; width: 22px; height: 2px;
  background: var(--text-primary); left: 0; transition: transform var(--transition);
}
.hamburger-lines::before { top: -7px; }
.hamburger-lines::after { top: 7px; }
.hamburger[aria-expanded="true"] .hamburger-lines { background: transparent; }
.hamburger[aria-expanded="true"] .hamburger-lines::before { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] .hamburger-lines::after { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 0 24px; z-index: 999;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.mobile-nav.is-open { max-height: 600px; padding: 16px 24px; }
.mobile-nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--border-light);
  font-size: 1rem; font-weight: 500;
  opacity: 0; transform: translateX(-12px);
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav.is-open a {
  opacity: 1; transform: translateX(0);
}
.mobile-nav.is-open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.is-open a:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold-text); padding-left: 6px; }
.mobile-cta {
  display: flex; gap: 8px; margin-top: 16px;
  opacity: 0; transition: opacity 0.3s ease 0.4s;
}
.mobile-nav.is-open .mobile-cta { opacity: 1; }
.mobile-cta .btn { flex: 1; justify-content: center; font-size: 0.85rem; padding: 10px 6px; }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease;
}
.hero-slide.is-active { opacity: 1; animation: kenBurns 8s ease forwards; }
.hero-slide.is-prev { opacity: 0; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(27,42,61,0.35) 0%, rgba(27,42,61,0.55) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 100px;
}
.hero-overlay-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 40px 48px; max-width: 640px;
  width: calc(100% - 40px); text-align: center;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.2);
  animation: heroCardFadeUp 1s ease 0.3s both;
}
@keyframes heroCardFadeUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-family: 'Noto Serif JP', serif; font-size: 1.8rem; font-weight: 600;
  color: #fff; line-height: 1.6; margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  animation: heroTextFadeUp 0.8s ease 0.6s both;
}
@keyframes heroTextFadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-title .accent { color: var(--gold-bg-light); }
.hero-lead {
  font-size: 0.95rem; color: rgba(255,255,255,0.9); margin-bottom: 0; line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
  animation: heroTextFadeUp 0.8s ease 0.9s both;
}
.hero-badges {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  animation: heroTextFadeUp 0.8s ease 1.1s both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
  font-size: 0.85rem; font-weight: 500; color: #fff;
  transition: background 0.3s ease;
}
.hero-badge:hover { background: rgba(255,255,255,0.2); }
.hero-badge i { color: var(--gold-bg-light); }

/* 3接点ボタン（同格配置） */
.hero-access-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px;
  animation: heroTextFadeUp 0.8s ease 1.3s both;
}
.access-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 16px 10px; border-radius: var(--radius-md);
  font-weight: 600; min-height: 80px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background 0.3s ease;
  border: 1.5px solid transparent; position: relative; overflow: hidden;
}
.access-btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.access-btn:hover::after { opacity: 1; }
.access-btn:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-lg); }
.access-btn i {
  font-size: 1.3rem; margin-bottom: 2px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.access-btn:hover i { transform: scale(1.2) translateY(-2px); }
.access-btn-label { font-size: 0.95rem; white-space: nowrap; }
.access-btn-sub { font-size: 0.72rem; font-weight: 400; opacity: 0.8; white-space: nowrap; }
.access-btn-web { background: var(--navy); color: #fff; }
.access-btn-web:hover { background: var(--navy-light); }
.access-btn-tel { background: var(--bg-white); color: var(--navy); border-color: var(--gold-border); }
.access-btn-tel i { color: var(--gold-text); }
.access-btn-tel:hover { background: var(--gold-bg-light); }
.access-btn-line { background: var(--line-green); color: #fff; }
.access-btn-line:hover { background: #05b34c; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-cream); position: relative; }
.section-alt::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(184,134,11,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.section-alt::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, var(--bg-off-white), var(--bg-cream));
  pointer-events: none;
}

/* Section Heading with 菱形 */
.section-heading { text-align: center; margin-bottom: 56px; }
.section-heading .heading-en {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.85rem;
  color: var(--gold-text); letter-spacing: 0.3em; text-transform: uppercase;
  display: block; margin-bottom: 12px;
}
.section-heading h2 {
  font-family: 'Noto Serif JP', serif; font-size: 1.85rem; color: var(--navy);
  position: relative; padding-bottom: 24px; font-weight: 600;
}
.section-heading h2::before {
  content: ''; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-brand), transparent);
}
.section-heading h2::after {
  content: '◆'; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  font-size: 0.4rem; color: var(--gold-brand); background: var(--bg-off-white); padding: 0 8px;
}
.section-alt .section-heading h2::after { background: var(--bg-cream); }

/* ===== NEWS ===== */
.notice-section { padding: 50px 0 40px; }
.notice-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; border-bottom: 2px solid var(--gold-border); padding-bottom: 12px;
}
.notice-head h2 { font-family: 'Noto Serif JP', serif; font-size: 1.2rem; color: var(--navy); }
.notice-head h2 i { color: var(--gold-text); margin-right: 8px; font-size: 0.95rem; }
.notice-all { font-size: 0.85rem; color: var(--gold-text); font-weight: 600; white-space: nowrap; }
.notice-all:hover { text-decoration: underline; }

.news-item {
  display: flex; gap: 20px; padding: 20px 16px;
  border-bottom: 1px solid var(--border-light); align-items: flex-start;
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, padding-left 0.3s ease;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.news-item:hover {
  border-left-color: var(--gold-brand);
  background: var(--gold-bg-light);
  padding-left: 24px;
}
.news-meta { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; min-width: 100px; }
.news-meta time {
  font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--navy); font-weight: 600;
  background: var(--gold-bg-light); padding: 3px 10px; border-radius: 4px;
  display: inline-block; letter-spacing: 0.02em;
}
.news-category {
  display: inline-block; padding: 2px 10px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 600; background: var(--gold-bg-light);
  color: var(--gold-text); border: 1px solid var(--gold-border);
  transition: background 0.3s ease, color 0.3s ease;
}
.news-item:hover .news-category { background: var(--gold-brand); color: #fff; border-color: var(--gold-brand); }
.news-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--navy);
  position: relative; display: inline;
  background-image: linear-gradient(var(--gold-brand), var(--gold-brand));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-item:hover .news-title { background-size: 100% 1px; }
.news-body p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== HERO NEWS TICKER (curved right panel) ===== */
.hero-news-ticker {
  position: absolute; bottom: 0; right: 0; z-index: 10;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 20px 0 0 0;
  padding: 0;
  height: 52px;
  max-width: 620px;
  box-shadow: -4px -4px 20px rgba(0,0,0,0.08);
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 18px 0 24px;
  font-size: 0.75rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.05em;
  border-right: 1px solid var(--border-light);
  height: 100%; display: flex; align-items: center; gap: 6px;
}
.ticker-label i {
  color: var(--gold-brand); font-size: 0.72rem;
  animation: bellPulse 2s ease-in-out infinite;
}
@keyframes bellPulse {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(12deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(6deg); }
  60% { transform: rotate(0); }
}
.ticker-track {
  flex: 1; position: relative; height: 100%; overflow: hidden;
  min-width: 0;
}
.ticker-item {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.ticker-item.is-active {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.ticker-item a {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; width: 100%; height: 100%;
  color: var(--text-primary); font-size: 0.84rem;
  transition: color var(--transition);
}
.ticker-item a:hover { color: var(--gold-text); }
.ticker-item time {
  flex-shrink: 0; font-family: 'Inter', sans-serif;
  font-size: 0.72rem; color: var(--gold-text); font-weight: 600;
  display: flex; flex-direction: column; align-items: center; line-height: 1.2;
}
.ticker-item span {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.84rem;
}
.ticker-nav {
  flex-shrink: 0; display: flex; flex-direction: column;
  border-left: 1px solid var(--border-light);
  height: 100%;
}
.ticker-nav button {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0 14px; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.6rem;
  transition: color var(--transition), background var(--transition);
}
.ticker-nav button:hover { color: var(--gold-text); background: rgba(184,134,11,0.06); }
.ticker-nav button:first-child { border-bottom: 1px solid var(--border-light); }
.ticker-more {
  flex-shrink: 0; padding: 0 16px;
  font-size: 0.75rem; font-weight: 600; color: var(--gold-text);
  border-left: 1px solid var(--border-light);
  height: 100%; display: none; align-items: center; gap: 4px;
  transition: color var(--transition);
}
.ticker-more:hover { color: var(--navy); }
.ticker-more i { font-size: 0.6rem; }

/* ===== SERVICE CARD HOVER ZOOM ===== */
.service-card-visual img,
.service-card-visual svg { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.service-card:hover .service-card-visual img,
.service-card:hover .service-card-visual svg { transform: scale(1.08); }

/* ===== ARROW SLIDE ANIMATION (sakurajuji-style) ===== */
.service-link i {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover .service-link i { transform: translateX(6px); }

/* ===== HEADING UNDERLINE REVEAL ===== */
.section-heading h2::before {
  content: ''; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--gold-hairline);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-heading.is-visible h2::before,
.section-heading h2::before { width: 60px; }
.animate-on-scroll .section-heading h2::before { width: 0; }
.animate-on-scroll.is-visible .section-heading h2::before { width: 60px; }

/* ===== SPECIALTY LINK ARROW ===== */
.specialty-card .service-link i,
.specialty-card a i { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.specialty-card:hover a i { transform: translateX(6px); }

/* ===== FEATURES (カウントアップ) ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature-count-card {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  box-shadow: var(--shadow-3d);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.4);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.3s ease;
}
.feature-count-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-border);
}
.feature-icon {
  font-size: 1.8rem; color: var(--gold-brand); margin-bottom: 16px;
  width: 56px; height: 56px; line-height: 56px;
  border-radius: 50%; margin-left: auto; margin-right: auto;
  background: var(--gold-bg-light);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}
.feature-count-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gold-brand); color: #fff;
}
.feature-number-text {
  font-family: 'Noto Serif JP', serif; font-size: 1.15rem; font-weight: 600;
  color: var(--navy); line-height: 1.5; margin-bottom: 12px;
}
.feature-number {
  font-family: 'Inter', sans-serif; font-size: 2.4rem; font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: 4px;
}
.feature-label { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.feature-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }

/* ===== SERVICES CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  border: 1px solid rgba(255,255,255,0.45);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.3s ease;
  display: block;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-border);
}
/* Service Card — SVG Iconic Visual */
.service-card-visual {
  height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(252,247,234,0.5) 0%, rgba(251,250,246,0.3) 50%, rgba(246,237,212,0.4) 100%);
}
.service-card-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(184,134,11,0.04) 0%, transparent 70%);
}
.service-card-visual::after {
  content: '詳しく見る →'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27,42,61,0.65);
  color: #fff; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em;
  opacity: 0; transition: opacity 0.35s ease;
  z-index: 2;
}
.service-card:hover .service-card-visual::after { opacity: 1; }
.service-icon-svg { width: 100px; height: 100px; position: relative; z-index: 1; }
.service-visual-label {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.7rem;
  color: var(--gold-text); letter-spacing: 0.2em; text-transform: uppercase;
  margin-top: 6px; opacity: 0.6; position: relative; z-index: 1;
}

/* Pulse Ring Animation */
.pulse-ring { animation: pulseExpand 3s ease-in-out infinite; transform-origin: center; }
@keyframes pulseExpand {
  0%, 100% { opacity: 0.3; r: 28; }
  50% { opacity: 0.1; r: 32; }
}

/* ECG Line Draw Animation — continuous loop */
.ecg-line {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: ecgDraw 2.5s ease infinite;
}
@keyframes ecgDraw {
  0% { stroke-dashoffset: 200; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

/* Icon float — always on, not just hover */
.service-icon-svg { width: 100px; height: 100px; position: relative; z-index: 1; animation: iconFloat 3s ease-in-out infinite; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.service-card-body { padding: 24px; }
.service-card-body h3 { font-family: 'Noto Serif JP', serif; font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.service-card-body p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.7; }
.service-link {
  font-size: 0.85rem; font-weight: 600; color: var(--gold-text);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-link i { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover .service-link { gap: 10px; }
.service-card:hover .service-link i { transform: translateX(6px); }

/* ===== CHECKUP ===== */
.checkup-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.checkup-list { margin-top: 20px; }
.checkup-list li {
  padding: 8px 0; font-size: 0.92rem; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border-light);
}
.checkup-list li i { color: var(--gold-brand); font-size: 0.8rem; }

/* Checkup Icon Grid */
.checkup-icon-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.checkup-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: var(--shadow-3d);
  transition: all var(--transition);
  transform: perspective(600px) rotateX(0deg);
}
.checkup-icon-item:hover {
  background: rgba(255,255,255,0.6);
  border-color: var(--gold-border);
  transform: perspective(600px) rotateX(3deg) translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.checkup-icon-item svg {
  width: 56px; height: 56px;
  padding: 10px; border-radius: 50%;
  background: var(--gold-bg-light);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.checkup-icon-item:hover svg {
  transform: rotateY(180deg);
  background: var(--gold-brand);
}
.checkup-icon-item:hover svg path,
.checkup-icon-item:hover svg circle,
.checkup-icon-item:hover svg line { stroke: #fff; }
.checkup-icon-item span {
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap;
  transition: color 0.3s ease;
}
.checkup-icon-item:hover span { color: var(--navy); }

/* Section Divider — ECG Wave */
.section-divider-ecg {
  width: 100%; height: 32px; overflow: hidden; position: relative;
}
.section-divider-ecg svg { width: 100%; height: 100%; }
.section-divider-ecg .ecg-wave-line {
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  animation: ecgWaveDraw 4s linear forwards;
}
@keyframes ecgWaveDraw { to { stroke-dashoffset: 0; } }

/* ===== SPECIALTY ===== */
.specialty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.specialty-card {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-radius: var(--radius-md);
  padding: 32px 20px; text-align: center;
  box-shadow: var(--shadow-3d);
  border: 1px solid rgba(255,255,255,0.45);
  transition: all var(--transition);
  transform: perspective(800px) rotateX(0deg);
}
.specialty-card:hover {
  background: rgba(255,255,255,0.6);
  transform: perspective(800px) rotateX(2deg) translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-border);
}
.specialty-icon-svg { width: 64px; height: 64px; margin: 0 auto 16px; }
.specialty-icon-svg svg { width: 100%; height: 100%; animation: iconFloat 3s ease-in-out infinite; }
.specialty-card h3 { font-family: 'Noto Serif JP', serif; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.specialty-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.specialty-tag {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; background: var(--gold-bg-light);
  color: var(--gold-text); border: 1px solid var(--gold-border);
  transition: background 0.3s ease, color 0.3s ease;
}
.specialty-card:hover .specialty-tag {
  background: var(--gold-brand); color: #fff; border-color: var(--gold-brand);
}

/* ===== DOCTOR ===== */
.doctor-digest { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.doctor-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--gold-bg-warm), var(--gold-bg-light));
  border-radius: var(--radius-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--text-muted);
  border: 1px solid var(--gold-border);
  position: relative; overflow: hidden;
}
.doctor-photo-placeholder::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
.doctor-photo-placeholder i { font-size: 3rem; color: var(--gold-brand); margin-bottom: 8px; position: relative; z-index: 1; }
.doctor-title-area { margin-bottom: 16px; }
.doctor-position {
  font-size: 0.85rem; font-weight: 600; color: var(--gold-text);
  display: inline-block; padding: 2px 14px; border: 1px solid var(--gold-border);
  border-radius: 50px; margin-bottom: 8px;
}
.doctor-name { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; color: var(--navy); line-height: 1.3; }
.doctor-name-en { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.1em; }
.doctor-specialty { font-size: 0.92rem; color: var(--gold-text); font-weight: 500; margin-bottom: 16px; }
.doctor-specialty i { margin-right: 6px; }
.doctor-message {
  font-family: 'Noto Serif JP', serif; font-size: 1rem; color: var(--text-primary);
  line-height: 2; padding: 24px 28px 24px 32px; background: var(--gold-bg-light);
  border-left: 3px solid var(--gold-brand); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 20px; font-style: normal; position: relative;
  box-shadow: var(--shadow-sm);
}
.doctor-message::before {
  content: '\201C'; position: absolute; top: 8px; left: 10px;
  font-family: Georgia, serif; font-size: 2.5rem; color: var(--gold-brand); opacity: 0.25;
  line-height: 1;
}
.doctor-history-brief { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }

/* ===== SCHEDULE TABLE ===== */
.access-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.schedule-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.9rem; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.schedule-table th, .schedule-table td {
  padding: 14px 10px; text-align: center; border: 1px solid rgba(232,228,220,0.5);
}
.schedule-table th {
  background: var(--navy); color: #fff; font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.schedule-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.schedule-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.schedule-table .time-label {
  text-align: left; font-weight: 600; background: var(--gold-bg-light); white-space: nowrap;
  color: var(--navy);
}
.schedule-table .open { color: var(--gold-brand); font-weight: 700; font-size: 1.1rem; }
.schedule-table .closed { color: var(--text-muted); font-size: 0.9rem; }
.schedule-table tbody tr:hover td { background: rgba(252,247,234,0.4); }
.schedule-notes { margin-top: 16px; }
.schedule-notes p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.schedule-notes p i { color: var(--gold-text); margin-right: 6px; }

.access-info-card {
  background: var(--bg-white); border-radius: var(--radius-md);
  padding: 32px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease;
}
.access-info-card:hover { box-shadow: var(--shadow-lg); }
.access-info-card h3 { font-family: 'Noto Serif JP', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 14px; }
.access-info-card h3 i {
  color: var(--gold-brand); margin-right: 8px;
  transition: transform 0.3s ease;
}
.access-info-card:hover h3 i { transform: scale(1.15); }
.access-address { font-size: 0.92rem; font-weight: 500; margin-bottom: 16px; }
.access-methods p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.7; }
.access-methods p i { color: var(--gold-text); margin-right: 6px; }
.access-map iframe {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}
.access-map iframe:hover { box-shadow: var(--shadow-lg); }

/* ===== FAQ ===== */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: var(--shadow-3d);
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--gold-border); background: rgba(255,255,255,0.6); }
.faq-question {
  width: 100%; padding: 20px 24px; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.95rem; font-weight: 600; color: var(--navy);
  cursor: pointer; text-align: left; background: none; border: none; font-family: inherit;
}
.faq-question::before {
  content: 'Q'; color: #fff; font-weight: 700; margin-right: 14px;
  font-family: 'Inter', sans-serif; flex-shrink: 0;
  width: 28px; height: 28px; line-height: 28px; text-align: center;
  border-radius: 50%; background: var(--gold-brand); font-size: 0.8rem;
  transition: background 0.3s ease;
}
.faq-item.is-open .faq-question::before { background: var(--navy); }
.faq-question h3 { flex: 1; font-size: 0.95rem; font-weight: 600; }
.faq-question::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 0.7rem; color: var(--text-muted); transition: transform var(--transition), color 0.3s ease;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.is-open .faq-question::after { transform: rotate(180deg); color: var(--gold-brand); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  padding: 0 24px;
}
.faq-item.is-open .faq-answer { max-height: 400px; padding: 0 24px 24px; }
.faq-answer p {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; padding-left: 42px;
  position: relative;
}
.faq-answer p::before {
  content: 'A'; position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; line-height: 28px; text-align: center;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.8rem;
}
.faq-q-mark, .faq-toggle { display: none !important; }
.faq-a-mark { display: none !important; }

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  width: 100%; height: 60px; overflow: hidden; line-height: 0;
  margin-bottom: -2px; position: relative; z-index: 1;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 50%, var(--navy-light) 100%);
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,134,11,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 6s ease-in-out infinite alternate;
}
.cta-section::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 8s ease-in-out infinite alternate-reverse;
}
@keyframes ctaGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.15); }
}
.cta-section h2 { font-family: 'Noto Serif JP', serif; font-size: 1.7rem; margin-bottom: 16px; color: #fff; position: relative; }
.cta-section p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 32px; position: relative; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; max-width: 600px; margin: 0 auto; position: relative; }
.cta-buttons .access-btn { flex: 1; min-width: 160px; }

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #141f2e 100%);
  color: rgba(255,255,255,0.8);
}
.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-clinic-name { font-family: 'Noto Serif JP', serif; font-size: 1.2rem; color: #fff; display: block; }
.footer-clinic-sub { font-size: 0.72rem; color: rgba(255,255,255,0.5); display: block; }
.footer-address { font-size: 0.88rem; margin-bottom: 8px; }
.footer-tel, .footer-fax { font-size: 0.88rem; margin-bottom: 4px; }
.footer-tel a { color: #fff; transition: color 0.3s ease; }
.footer-tel a:hover { color: var(--gold-brand); }
.footer-tel i, .footer-fax i { color: var(--gold-brand); margin-right: 6px; }
.footer-nav h4, .footer-schedule h4 {
  font-size: 0.85rem; font-weight: 600; color: var(--gold-hairline);
  margin-bottom: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav a {
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}
.footer-nav a:hover { color: var(--gold-brand); padding-left: 6px; }
.footer-nav a::before {
  content: ''; display: inline-block; width: 0; height: 1px;
  background: var(--gold-brand); vertical-align: middle; margin-right: 0;
  transition: width 0.3s ease, margin-right 0.3s ease;
}
.footer-nav a:hover::before { width: 12px; margin-right: 8px; }

.footer-schedule-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.78rem; border-radius: 8px; overflow: hidden;
}
.footer-schedule-table td {
  padding: 5px 6px; text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-schedule-table tr:first-child td {
  font-weight: 600; color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.footer-note { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 10px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  text-align: center; position: relative;
}
.footer-bottom::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-brand), transparent);
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); letter-spacing: 0.03em; }

/* ===== FLOATING CTA (Mobile) ===== */
.floating-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  padding: 10px 16px; gap: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(232,228,220,0.3);
}
.floating-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 8px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.82rem;
  white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-btn:active { transform: scale(0.96); }
.floating-tel { background: var(--bg-white); color: var(--navy); border: 1.5px solid var(--gold-border); }
.floating-web { background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(27,42,61,0.3); }
.floating-line { background: var(--line-green); color: #fff; box-shadow: 0 2px 8px rgba(6,199,85,0.3); }

/* ===== PAGE HEADER (下層ページ用) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 50%, var(--navy-light) 100%);
  padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 80px
  );
  pointer-events: none;
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-brand), transparent);
}
.page-header-content { position: relative; z-index: 1; }
.page-header .heading-en {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.8rem;
  color: var(--gold-hairline); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 10px;
}
.page-header h1 {
  font-family: 'Noto Serif JP', serif; font-size: 1.7rem; color: #fff;
  letter-spacing: 0.06em;
}
.page-header-lead {
  font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ===== HISTORY (沿革) ===== */
.history-timeline { position: relative; padding-left: 40px; max-width: 700px; margin: 0 auto; }
.history-timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 1px; background: var(--gold-border);
}
.history-item { position: relative; margin-bottom: 36px; }
.history-item::before {
  content: ''; position: absolute; left: -32px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-brand); border: 2px solid var(--bg-off-white);
}
.history-year { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--gold-text); margin-bottom: 4px; }
.history-item h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.history-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== CONTENT SECTIONS ===== */
.content-section { margin-bottom: 48px; }
.content-section h2 {
  font-family: 'Noto Serif JP', serif; font-size: 1.3rem; color: var(--navy);
  padding-bottom: 12px; border-bottom: 1px solid var(--gold-border); margin-bottom: 20px;
  position: relative;
}
.content-section h2::after {
  content: '◆'; position: absolute; bottom: -6px; left: 24px;
  font-size: 0.45rem; color: var(--gold-brand); background: var(--bg-off-white); padding: 0 8px;
}
.content-block { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.9; }
.content-block p { margin-bottom: 16px; }

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.stagger-item {
  opacity: 0; transform: translateY(32px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-item.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .header-cta { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-desktop { display: none; }
}

@media (max-width: 768px) {
  .hero { height: 75vh; min-height: 480px; }
  .hero-overlay-card { padding: 28px 24px; }
  .hero-title { font-size: 1.35rem; }
  .hero-access-row { grid-template-columns: 1fr; gap: 8px; }
  .access-btn { flex-direction: row; min-height: 52px; gap: 10px; padding: 12px 16px; }
  .access-btn i { font-size: 1.1rem; margin-bottom: 0; }

  .section { padding: 56px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .checkup-content { grid-template-columns: 1fr; }
  .doctor-digest { grid-template-columns: 1fr; gap: 28px; }
  .doctor-photo-placeholder { max-width: 240px; margin: 0 auto; }
  .access-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .news-item { flex-direction: column; gap: 8px; }

  .floating-cta { display: flex; }
  .site-footer { padding-bottom: 70px; }
  .hero-news-panel { display: none; }
  .hero-news-ticker { height: 40px; }
  .ticker-label { padding: 0 12px; font-size: 0.7rem; }
  .ticker-more { padding: 0 12px; font-size: 0.7rem; }
  .ticker-item span { font-size: 0.78rem; }

  .page-header { padding: 48px 0 40px; }
  .page-header h1 { font-size: 1.3rem; }

  .logo-clinic-name { font-size: 0.95rem; }
  .logo-clinic-sub { font-size: 0.5rem; }

  .back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; font-size: 0.85rem; }

  .cta-section h2 { font-size: 1.35rem; }
  .cta-buttons { gap: 10px; }
}

@media (max-width: 480px) {
  .hero { height: 70vh; min-height: 400px; }
  .hero-title { font-size: 1.15rem; }
  .hero-lead { font-size: 0.85rem; }
  .hero-badges { gap: 8px; }
  .hero-badge { font-size: 0.78rem; padding: 4px 12px; }

  .features-grid { grid-template-columns: 1fr; }
  .specialty-grid { grid-template-columns: 1fr; }
  .feature-number { font-size: 2rem; }

  .section-heading h2 { font-size: 1.3rem; }

  .logo-clinic-sub { display: none; }
  .header-logo-svg { width: 24px; }
  .logo-clinic-name { font-size: 0.88rem; }
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold-brand);
  border: 1.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.back-to-top.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold-brand); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.3);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-off-white); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-brand), #b08b2e);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-text); }

/* ===== PHILOSOPHY (about.html) ===== */
.philosophy-content { max-width: 800px; margin: 0 auto; }
.philosophy-quote {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--navy); text-align: center;
  padding: 40px 32px; margin-bottom: 36px;
  background: var(--gold-bg-light);
  border-left: 3px solid var(--gold-brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm); position: relative;
}
.philosophy-quote::before {
  content: '\201C'; position: absolute; top: 12px; left: 14px;
  font-family: Georgia, serif; font-size: 3rem; color: var(--gold-brand); opacity: 0.2;
}
.philosophy-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 2; }
.philosophy-text p { margin-bottom: 16px; }

/* ===== TIMELINE (about.html) ===== */
.timeline { position: relative; padding-left: 40px; max-width: 700px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 1px; background: var(--gold-border);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-marker {
  position: absolute; left: -32px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-brand); border: 3px solid var(--bg-off-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-marker {
  transform: scale(1.3); box-shadow: 0 0 0 4px rgba(184,134,11,0.15);
}
.timeline-content { transition: transform 0.3s ease; }
.timeline-item:hover .timeline-content { transform: translateX(4px); }
.timeline-date {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem;
  color: var(--gold-text); margin-bottom: 4px;
}
.timeline-content h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.timeline-content p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8; }

/* ===== FACILITY GRID (about.html) ===== */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-card {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-3d); border: 1px solid rgba(255,255,255,0.45);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease, border-color 0.3s ease;
}
.facility-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-card-hover); border-color: var(--gold-border);
}
.facility-image { overflow: hidden; height: 200px; }
.facility-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.facility-card:hover .facility-image img { transform: scale(1.08); }
.facility-card h3 { font-family: 'Noto Serif JP', serif; font-size: 1.05rem; color: var(--navy); padding: 16px 20px 4px; }
.facility-card p { font-size: 0.85rem; color: var(--text-secondary); padding: 0 20px 20px; line-height: 1.7; }

/* ===== CTA DARK CONTEXT FIX ===== */
.cta-section .access-btn-tel {
  background: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.3);
}
.cta-section .access-btn-tel:hover {
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== MOBILE NAV ACTIVE ===== */
.mobile-nav a.is-active {
  color: var(--gold-text); border-left: 3px solid var(--gold-brand); padding-left: 16px;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll, .stagger-item { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (hover: none) {
  .service-card:hover,
  .feature-count-card:hover,
  .specialty-card:hover,
  .faq-item:hover { transform: none; }
}

/* About.html responsive */
@media (max-width: 768px) {
  .facility-grid { grid-template-columns: 1fr; }
  .philosophy-quote { font-size: 1.2rem; padding: 28px 24px; }
}
