/* ============================================
   CSS Variables
   ============================================ */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #E0F2FE;
  --accent: #10B981;
  --accent-light: #D1FAE5;
  --bg: #FFFFFF;
  --bg-alt: #F0F9FF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --text-hero: clamp(36px, 5vw, 52px);
  --text-h2: clamp(28px, 3.5vw, 40px);
  --text-h3: clamp(20px, 2.5vw, 24px);
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;
  --space-section: clamp(80px, 10vw, 120px);
  --space-group: clamp(40px, 5vw, 64px);
  --space-element: clamp(16px, 2vw, 24px);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================
   Common
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-group);
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: var(--text-body);
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.35);
  filter: brightness(1.05);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.35);
  filter: brightness(1.05);
}

/* Scroll Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.visible .stagger-item:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.visible .stagger-item:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll.visible .stagger-item:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll.visible .stagger-item:nth-child(5) { transition-delay: 0.25s; }
.animate-on-scroll.visible .stagger-item:nth-child(6) { transition-delay: 0.3s; }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ============================================
   Header
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-top {
  background: var(--bg-alt);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top-info {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-main {
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header-tel svg { flex-shrink: 0; }
.header-tel-note {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}
.desktop-nav a:hover { color: var(--primary); }
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}
.desktop-nav a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 80px 32px 32px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 110px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(240,249,255,0.85) 50%, rgba(255,255,255,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-text h1 span { color: var(--primary); }
.hero-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.hero-badge svg { color: var(--accent); flex-shrink: 0; }
.hero-image {
  flex: 0 0 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ============================================
   Info (Hours + Access)
   ============================================ */
.info {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.info-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.info-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card h3 svg { color: var(--primary); }

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th,
.schedule-table td {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(14,165,233,0.05);
}
.schedule-table td { color: var(--text-muted); }
.schedule-table .closed { color: #EF4444; font-weight: 600; }
.schedule-table .open-mark { color: var(--accent); font-weight: 600; }
.schedule-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 260px;
  background: #E2E8F0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 50%, #E0F2FE 100%);
}
.map-placeholder span { position: relative; z-index: 1; }
.access-info { font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.access-info strong { color: var(--text); }

/* ============================================
   Menu (Services)
   ============================================ */
.menu {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.menu-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.menu-card-icon {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  color: var(--primary);
}
.menu-card-body {
  padding: 28px 24px;
}
.menu-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.menu-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.menu-price {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   Doctor
   ============================================ */
.doctor {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.doctor-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.doctor-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.doctor-profile h3 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.doctor-profile .doctor-title {
  font-size: var(--text-small);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}
.doctor-profile .doctor-message {
  font-size: var(--text-body);
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 32px;
}
.doctor-credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doctor-credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.doctor-credential svg { color: var(--primary); flex-shrink: 0; }

/* ============================================
   Flow
   ============================================ */
.flow {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.flow-steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
}
.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
  max-width: 220px;
}
.flow-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -8px;
  width: 40px;
  height: 2px;
  background: var(--border);
}
.flow-step:last-child::after { display: none; }
.flow-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.flow-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.flow-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   Voice (Reviews)
   ============================================ */
.voice {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}
.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.voice-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.voice-stars {
  display: flex;
  gap: 2px;
  color: #FBBF24;
}
.voice-rating {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.voice-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}
.voice-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.voice-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.voice-name {
  font-size: 14px;
  font-weight: 600;
}
.voice-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Instagram
   ============================================ */
.instagram {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.insta-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.insta-item:hover img { transform: scale(1.08); }
.insta-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14,165,233,0);
  transition: background 0.3s;
}
.insta-item:hover::after { background: rgba(14,165,233,0.15); }
.insta-placeholder {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.map-full {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #E0F2FE, #F0F9FF, #E0F2FE);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-top: var(--space-group);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  color: #fff;
}
.cta h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.cta-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.cta-tel-sub {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.8;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub { color: #94A3B8; }
.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #94A3B8;
  margin-top: 16px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #94A3B8;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748B;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { color: #64748B; transition: color 0.2s; }
.footer-links a:hover { color: #CBD5E1; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; gap: 40px; }
  .hero-image { flex: 0 0 auto; width: 100%; max-width: 500px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .header-tel { display: none; }
  .header-cta.desktop-only { display: none; }
  .hamburger { display: flex; }
  .header-top { display: none; }

  .hero { min-height: auto; padding: 140px 0 60px; }
  .hero-image { display: none; }
  .hero-text h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero-badges { flex-direction: column; gap: 12px; }

  .info-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-step { max-width: 100%; }
  .flow-step::after { display: none; }
  .voice-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ============================================
   サブページ共通スタイル（Phase 3 追加）
   ============================================ */
.page-hero {
  padding: clamp(140px, 18vw, 180px) 0 clamp(40px, 5vw, 60px);
  background: var(--bg-alt);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.page-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.2;
}
.page-subtitle {
  font-size: var(--text-small);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

.cta-band {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-band p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-band .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.nav-link.active { color: var(--primary) !important; font-weight: 600; }
.nav-link.active::after { width: 100%; }

.section-more {
  text-align: center;
  margin-top: var(--space-group);
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}
.more-link:hover { gap: 8px; }

/* Section spacing for subpages */
.section {
  padding: var(--space-section) 0;
}
.section:nth-child(even) {
  background: var(--bg-alt);
}

/* サブページ固有スタイル */
.about-message {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.about-message-photo {
  flex-shrink: 0;
  width: 280px;
}
.about-message-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-message-body h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: 8px;
}
.about-message-body .msg-name {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: 24px;
}
.about-message-body p {
  font-size: var(--text-body);
  line-height: 2;
  margin-bottom: 16px;
}

/* Staff grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.staff-card {
  text-align: center;
}
.staff-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.staff-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.staff-card .staff-role { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.staff-card p { font-size: var(--text-small); color: var(--text-muted); line-height: 1.7; }

/* Facility grid */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.facility-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.facility-card svg {
  color: var(--primary);
  margin-bottom: 16px;
}
.facility-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.facility-card p { font-size: var(--text-small); color: var(--text-muted); line-height: 1.7; }

/* Service detail cards */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-detail-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-detail-card h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 12px; }
.service-detail-card p { font-size: var(--text-body); color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.service-detail-card .price-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 4px;
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th, .price-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.price-table th { font-weight: 600; color: var(--text); width: 40%; }
.price-table td { color: var(--text-muted); }
.price-table td strong { color: var(--primary); font-weight: 700; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}
.stat-item .stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Case cards */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.case-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.case-card p { font-size: var(--text-small); color: var(--text-muted); line-height: 1.7; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-form .form-group { margin-bottom: 24px; }
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.contact-form label .required { color: #EF4444; margin-left: 4px; font-size: 12px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.contact-sidebar h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 24px; }
.contact-info-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-small);
  color: var(--text-muted);
}
.contact-info-item svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.contact-info-item strong { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; font-size: 15px; }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { font-size: var(--text-body); color: var(--text-muted); line-height: 1.8; }

/* Phase 3 responsive additions */
@media (max-width: 1024px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about-message { flex-direction: column; }
  .about-message-photo { width: 200px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .facility-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-item .stat-value { font-size: 36px; }
}
