@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2a7ab8;
  --primary-dark: #1a5a8e;
  --primary-light: #e8f4fd;
  --accent: #c8a97e;
  --accent-dark: #a8895e;
  --navy: #1a2a3a;
  --white: #ffffff;
  --off-white: #f8f6f3;
  --light-gray: #f0ede8;
  --mid-gray: #888888;
  --dark-gray: #444444;
  --text: #333333;
  --border: #e8e4df;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
  --radius: 8px;
  --serif: 'Noto Serif JP', Georgia, serif;
  --sans: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ===== ANIMATIONS ===== */
@keyframes rotateInUpRight {
  from { transform: rotate3d(0, 0, 1, -90deg); opacity: 1; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes flip {
  0% { transform: perspective(400px) rotateY(0); }
  40% { transform: perspective(400px) rotateY(-10deg); }
  70% { transform: perspective(400px) rotateY(10deg); }
  100% { transform: perspective(400px) rotateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 1; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42,122,184,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(42,122,184,0); }
}

.anim-hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-visible { opacity: 1; transform: translateY(0); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: clamp(60px, 10vh, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.nav__logo-text {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.nav__logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}

.nav__links a {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 400;
  color: var(--dark-gray);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-gray);
  font-size: 1.1rem;
  padding: 0.25rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.nav__action-btn:hover { color: var(--primary); }

.nav__cta {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s !important;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-gray);
  transition: all 0.3s;
}

/* Mobile Nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: clamp(60px, 10vh, 80px);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--dark-gray);
  display: block;
}

.nav__mobile a:last-child { border-bottom: none; }

.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__brand-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__brand-name {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.footer__brand-name span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--mid-gray);
  font-family: var(--sans);
  letter-spacing: 0.08em;
}

.footer__desc {
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.footer__contact-info {
  font-size: 0.72rem;
  color: var(--mid-gray);
  line-height: 1.9;
}

.footer__contact-info a {
  color: var(--primary);
  transition: color 0.2s;
}

.footer__contact-info a:hover { color: var(--primary-dark); }

.footer__col-title {
  font-size: clamp(0.8rem, 1.5vw, 0.85rem);
  font-weight: 600;
  color: #333;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  color: #666;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer__links a:hover { color: var(--primary); }

.footer__newsletter-desc {
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__newsletter-input {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
  background: var(--white);
}

.footer__newsletter-input:focus {
  border-color: var(--primary);
}

.footer__newsletter-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
  font-family: var(--sans);
}

.footer__newsletter-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.footer__social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__bottom-text {
  font-size: 0.7rem;
  color: var(--mid-gray);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: 0.7rem;
  color: var(--mid-gray);
  transition: color 0.2s;
}

.footer__bottom-links a:hover { color: var(--primary); }

/* ===== MOBILE BOTTOM CTA BAR ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--navy);
  padding: 0.75rem 1rem;
  flex-direction: row;
  gap: 0.75rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.mobile-cta-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-cta-bar__btn--phone {
  background: var(--primary);
}

.mobile-cta-bar__btn--email {
  background: var(--accent);
}

.mobile-cta-bar__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(26,42,58,0.97);
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__text {
  font-size: 0.8rem;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--sans);
}

.cookie-btn--accept {
  background: var(--primary);
  color: white;
}

.cookie-btn--accept:hover { background: var(--primary-dark); }

.cookie-btn--decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn--decline:hover { border-color: white; color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .campaign__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero__image-wrap { height: 45vh; }

  .hero__bottom-content {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .ba-slide {
    grid-template-columns: 1fr;
  }

  .ba-images {
    grid-template-columns: 1fr 1fr;
  }

  .cta-contact__inner {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom-links {
    justify-content: center;
  }

  .mobile-cta-bar { display: flex; }

  body { padding-bottom: 70px; }

  .representative {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__image-text {
    left: 1.5rem;
    right: 1.5rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .campaign__inner {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .ba-images {
    grid-template-columns: 1fr;
  }

  .hero__btns {
    flex-direction: column;
  }

  .hero__btns .btn {
    width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    padding: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn { width: 100%; }
}

/* ===== DIVIDER ===== */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ===== RATING ===== */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.rating-summary__score {
  text-align: center;
}

.rating-summary__num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.rating-summary__stars {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin: 0.25rem 0;
}

.rating-summary__count {
  font-size: 0.75rem;
  color: var(--mid-gray);
}

.rating-summary__bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  max-width: 280px;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--mid-gray);
}

.rating-bar__track {
  flex: 1;
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  background: #f5a623;
  border-radius: 3px;
  transition: width 1s ease;
}

