/* ============================================
   さくら歯科クリニック - Main Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #5a8f7b;
  --color-primary-light: #7db8a2;
  --color-primary-dark: #3d6b58;
  --color-accent: #e8a87c;
  --color-accent-light: #f5d0b3;
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ece6;
  --color-bg-green: #eef5f0;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-white: #ffffff;
  --color-border: #d4cfc7;
  --color-sakura: #f4b4c3;
  --color-sakura-light: #fce4ec;
  --font-heading: "Noto Serif JP", "游明朝", "YuMincho", serif;
  --font-body: "Noto Sans JP", "游ゴシック", "YuGothic", sans-serif;
  --font-accent: "Cormorant Garamond", serif;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 40px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

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

/* ---------- Loading Screen ---------- */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-sakura {
  width: 60px; height: 60px;
  position: relative;
  animation: loadingRotate 2s linear infinite;
}
.loading-petal {
  position: absolute;
  width: 14px; height: 20px;
  background: var(--color-sakura);
  border-radius: 50% 50% 50% 0;
  top: 50%; left: 50%;
  transform-origin: 0 0;
}
.loading-petal:nth-child(1) { transform: rotate(0deg) translate(-7px, -25px); }
.loading-petal:nth-child(2) { transform: rotate(72deg) translate(-7px, -25px); }
.loading-petal:nth-child(3) { transform: rotate(144deg) translate(-7px, -25px); }
.loading-petal:nth-child(4) { transform: rotate(216deg) translate(-7px, -25px); }
.loading-petal:nth-child(5) { transform: rotate(288deg) translate(-7px, -25px); }
@keyframes loadingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-text {
  margin-top: 24px;
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* ---------- Typography ---------- */
.section-label {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 16px;
}
.section-title--lg {
  font-size: clamp(2rem, 4vw, 3rem);
}
.section-desc {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  max-width: 640px;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-padding {
  padding: 100px 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}
.site-header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 44px; height: 44px;
}
.logo-icon svg {
  width: 100%; height: 100%;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.2;
}
.logo-sub {
  font-family: var(--font-accent);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-base);
  overflow: hidden;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base), left var(--transition-base);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%; left: 20%;
}
.nav-link:hover { color: var(--color-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background var(--transition-base), transform var(--transition-base);
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.nav-cta svg { width: 16px; height: 16px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--color-text);
  transition: var(--transition-base);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 360px;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  padding: 100px 40px 40px;
  transition: right var(--transition-slow);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { right: 0; }
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-base), padding-left var(--transition-base);
}
.mobile-nav-link:hover {
  color: var(--color-primary);
  padding-left: 8px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-green) 50%, var(--color-bg) 100%);
}
.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.hero-shape--1 {
  width: 600px; height: 600px;
  background: var(--color-primary-light);
  top: -200px; right: -100px;
  animation: floatShape 20s ease-in-out infinite;
}
.hero-shape--2 {
  width: 400px; height: 400px;
  background: var(--color-sakura);
  bottom: -100px; left: -100px;
  animation: floatShape 15s ease-in-out infinite reverse;
}
.hero-shape--3 {
  width: 200px; height: 200px;
  background: var(--color-accent);
  top: 40%; left: 30%;
  animation: floatShape 12s ease-in-out infinite 2s;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Sakura petals floating */
.sakura-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { padding: 40px 0; }
.hero-btns-sp-wrap { display: none; }
.hero-catch {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 24px;
}
.hero-catch .highlight {
  color: var(--color-primary);
  position: relative;
}
.hero-catch .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 8px;
  background: var(--color-sakura-light);
  z-index: -1;
  border-radius: 4px;
}
.hero-sub {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}
.hero-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-img-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.hero-img-float {
  position: absolute;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-img-float--1 {
  bottom: -30px; left: -40px;
}
.hero-img-float--2 {
  top: -20px; right: -30px;
  animation-delay: -3s;
  width: 160px;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hero badge */
.hero-badge {
  position: absolute;
  bottom: 40px; right: -20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: heroFloat 5s ease-in-out infinite 1s;
  z-index: 3;
}
.hero-badge-icon {
  width: 40px; height: 40px;
  background: var(--color-bg-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hero-badge-icon svg { width: 20px; height: 20px; color: var(--color-primary); }
.hero-badge-text { font-size: 13px; font-weight: 600; }
.hero-badge-sub { font-size: 11px; color: var(--color-text-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
}
.btn:hover::before {
  width: 300px; height: 300px;
  top: -100px; left: -100px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 143, 123, 0.3);
}
.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn svg { width: 18px; height: 18px; }

/* ---------- Info Bar ---------- */
.info-bar {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 40px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.info-bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-right: 1px solid var(--color-border);
}
.info-bar-item:last-child { border-right: none; }
.info-bar-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--color-bg-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition-base), background var(--transition-base);
}
.info-bar-item:hover .info-bar-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--color-primary);
}
.info-bar-item:hover .info-bar-icon svg { color: var(--color-white); }
.info-bar-icon svg { width: 22px; height: 22px; color: var(--color-primary); transition: color var(--transition-base); }
.info-bar-label { font-size: 12px; color: var(--color-text-light); }
.info-bar-value { font-size: 15px; font-weight: 600; }

/* ---------- Concept Section ---------- */
.concept {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}
.concept::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: var(--color-bg-green);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.concept-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.concept-img-wrapper {
  position: relative;
}
.concept-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.concept-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.concept-img:hover img { transform: scale(1.05); }
.concept-img-accent {
  position: absolute;
  width: 120px; height: 120px;
  border: 3px solid var(--color-sakura);
  border-radius: var(--radius-md);
  bottom: -20px; right: -20px;
  z-index: -1;
}
.concept-vertical-text {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-primary);
  letter-spacing: 4px;
  opacity: 0.6;
}

/* ---------- Services Section ---------- */
.services {
  background: var(--color-bg);
  position: relative;
}
.services-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-header .section-desc {
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  height: 200px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card-img img { transform: scale(1.1); }
.service-card-body { padding: 28px; }
.service-card-icon {
  width: 48px; height: 48px;
  background: var(--color-bg-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background var(--transition-base);
}
.service-card:hover .service-card-icon { background: var(--color-primary); }
.service-card-icon svg {
  width: 24px; height: 24px;
  color: var(--color-primary);
  transition: color var(--transition-base);
}
.service-card:hover .service-card-icon svg { color: var(--color-white); }
.service-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 16px;
  transition: gap var(--transition-base);
}
.service-card:hover .service-card-link { gap: 10px; }

/* ---------- Doctor Section ---------- */
.doctor {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}
.doctor-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.doctor-img-wrapper {
  position: relative;
}
.doctor-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.doctor-img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.doctor-name-plate {
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  white-space: nowrap;
}
.doctor-name-plate-title { font-size: 12px; color: var(--color-primary); }
.doctor-name-plate-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
}
.doctor-message {
  font-size: 15px;
  line-height: 2.2;
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.doctor-signature {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-primary-dark);
  margin-top: 24px;
}

/* ---------- Schedule Section ---------- */
.schedule {
  background: var(--color-bg-green);
}
.schedule-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.schedule-table-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th,
.schedule-table td {
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
}
.schedule-table th {
  background: var(--color-bg-green);
  font-weight: 600;
  font-size: 13px;
}
.schedule-table th:first-child,
.schedule-table td:first-child {
  text-align: left;
  font-weight: 600;
}
.schedule-table td { border-bottom: 1px solid var(--color-border); }
.schedule-circle {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}
.schedule-dash { color: var(--color-text-light); }
.schedule-note {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 16px;
  line-height: 1.8;
}

/* ---------- News Section ---------- */
.news { background: var(--color-bg); }
.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.news-list { }
.news-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left var(--transition-base);
}
.news-item:hover { padding-left: 12px; }
.news-date {
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-text-light);
  min-width: 100px;
}
.news-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  min-width: 70px;
  text-align: center;
}
.news-title {
  font-size: 15px;
  flex: 1;
  transition: color var(--transition-base);
}
.news-item:hover .news-title { color: var(--color-primary); }
.news-arrow {
  width: 24px; height: 24px;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition-base);
}
.news-item:hover .news-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Access Section ---------- */
.access { background: var(--color-white); }
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.access-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 400px;
  background: var(--color-bg-alt);
}
.access-map iframe {
  width: 100%; height: 100%;
  border: none;
}
.access-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.access-info-icon {
  width: 36px; height: 36px;
  min-width: 36px;
  background: var(--color-bg-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.access-info-icon svg { width: 16px; height: 16px; color: var(--color-primary); }
.access-info-label { font-size: 12px; color: var(--color-text-light); }
.access-info-value { font-size: 15px; font-weight: 500; }

/* ---------- CTA Section ---------- */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.cta .section-label { color: rgba(255,255,255,0.7); }
.cta .section-title { color: var(--color-white); }
.cta .section-desc { color: rgba(255,255,255,0.8); margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; position: relative; z-index: 1; flex-wrap: wrap; }
.btn-white {
  background: var(--color-white);
  color: var(--color-primary-dark);
}
.btn-white:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--color-white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo .logo-name { color: var(--color-white); }
.footer-logo .logo-sub { color: rgba(255,255,255,0.5); }
.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  transition: color var(--transition-base), padding-left var(--transition-base);
}
.footer-link:hover {
  color: var(--color-white);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Parallax text background ---------- */
.parallax-text {
  position: absolute;
  font-family: var(--font-accent);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- Cursor follower ---------- */
.cursor-follower {
  position: fixed;
  width: 20px; height: 20px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-follower.hover {
  width: 50px; height: 50px;
  border-color: var(--color-accent);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-base);
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* ---------- Fixed side elements ---------- */
.side-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-contact-item {
  writing-mode: vertical-rl;
  padding: 20px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: var(--transition-base);
}
.side-contact-item--tel {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm) 0 0 0;
}
.side-contact-item--web {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 0 0 0 var(--radius-sm);
}
.side-contact-item:hover { padding: 20px 14px; }

/* ---------- Page Header (sub pages) ---------- */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--color-bg-green), var(--color-bg));
  position: relative;
  overflow: hidden;
}
.page-header-bg-text {
  position: absolute;
  bottom: -20px; right: 5%;
  font-family: var(--font-accent);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.05;
  text-transform: uppercase;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}
.breadcrumb a { transition: color var(--transition-base); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { opacity: 0.4; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { padding-top: 80px; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  /* PC用ボタン非表示、SP用ボタン表示 */
  .hero-btns--pc { display: none; }
  .hero-btns-sp-wrap { display: block; padding: 24px 0 40px; }
  .hero-btns--sp { display: flex; flex-direction: column; gap: 16px; }
  .hero-btns--sp .btn { width: 100%; justify-content: center; }
  .info-bar { grid-template-columns: 1fr; gap: 16px; padding: 24px; margin-top: 0; }
  .info-bar-item { border-right: none; border-bottom: 1px solid var(--color-border); padding: 12px 0; }
  .info-bar-item:last-child { border-bottom: none; }
  .concept-inner { grid-template-columns: 1fr; gap: 40px; }
  .concept::before { display: none; }
  .doctor-inner { grid-template-columns: 1fr; gap: 40px; }
  .schedule-inner { grid-template-columns: 1fr; }
  .access-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .side-contact { display: none; }
}
@media (max-width: 768px) {
  .main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-catch { font-size: 1.8rem; }
  .section-padding { padding: 60px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .news-item { flex-wrap: wrap; gap: 8px; }
  .hero-img-float { display: none; }
  .hero-badge { display: none; }
  .cursor-follower { display: none; }
}
