/* ================================
   みんなのクリニック common.css v3
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --green:       #0d5c35;
  --green-mid:   #166b3f;
  --green-soft:  #1a7a45;
  --green-light: #eef7f1;
  --green-pale:  #f4fbf7;
  --green-line:  #c0dece;
  --ink:         #0f1c14;
  --ink-sub:     #374840;
  --muted:       #6b7c72;
  --bg:          #f8f9f6;
  --white:       #ffffff;
  --border:      #dde8e2;
  --red:         #c0392b;
  --yellow:      #b8860b;
  --blue:        #1a56a0;
  --pink:        #c2185b;
  --purple:      #7b3fbe;
  --teal:        #16a085;
  --header-h:    80px;
  --r:           10px;
  --r-lg:        18px;
  --max-w:       1040px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
  z-index: 1000;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 56px; width: auto; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }

nav ul { display: flex; list-style: none; gap: 2px; }
nav a {
  display: block;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-sub);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
nav a:hover, nav a.active { background: var(--green-light); color: var(--green); }
.header-cta {
  background: var(--green) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
}
.header-cta:hover { background: var(--green-mid) !important; }

/* ── BUTTONS ── */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 50px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(6,199,85,0.22);
  cursor: pointer;
  border: none;
}
.btn-line:hover { background: #05b34c; transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 28px rgba(6,199,85,0.28); }
.btn-line svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(13,92,53,0.25);
  cursor: pointer;
  border: none;
}
.btn-green:hover { background: var(--green-mid); transform: translateY(-1px) scale(1.02); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--green);
  transition: background 0.15s;
}
.btn-outline:hover { background: var(--green-light); }

/* ── TYPOGRAPHY ── */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.section-line {
  width: 40px; height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 16px;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: clamp(64px, 9vw, 112px) 28px; }

/* ── FOOTER ── */
footer {
  background: #0a1f14;
  padding: 48px 28px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 700; }
.footer-brand small { display: block; color: rgba(255,255,255,0.4); font-size: 0.72rem; font-weight: 400; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.78rem; transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.72rem; }

/* ── LINE SVG ── */
.line-icon { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --header-h: 112px; }
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 0;
    gap: 2px;
  }
  .logo-img { height: 40px; }
  nav { width: 100%; }
  nav ul {
    overflow-x: auto;
    padding: 4px 16px 8px;
    scrollbar-width: none;
    gap: 2px;
  }
  nav ul::-webkit-scrollbar { display: none; }
  nav a { font-size: 0.72rem; padding: 4px 9px; }
  .header-cta { display: none !important; }
  .section { padding: clamp(40px, 6vw, 64px) 20px; }
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .btn-line { padding: 14px 24px; font-size: 0.9rem; }
  .btn-green { padding: 12px 22px; font-size: 0.88rem; }
}

/* ── DESIGN SYSTEM v4 ENHANCEMENTS ── */
:root {
  --ease: 0.25s ease;
  --shadow-hover: 0 8px 32px rgba(13,92,53,0.12);
}
body { letter-spacing: 0.01em; }
header { border-bottom: none; }

/* Card hover pattern */
.card-hover {
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-line);
}

/* Smooth section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
}

/* Wave SVG for CTA sections */
.wave-top {
  position: absolute;
  top: -1px; left: 0; width: 100%;
  line-height: 0;
}
.wave-top svg { width: 100%; height: 48px; }
