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

:root {
  --teal: #4EA99E;
  --teal-light: #3DB8A9;
  --teal-soft: #E8F5F3;
  --teal-bg: #F0FAF8;
  --white: #FFFFFF;
  --warm-white: #FAFAF8;
  --sand: #F7F0E4;
  --sand-light: #FBF7F0;
  --dark: #1A1A1A;
  --dark-secondary: #3A3A3A;
  --gray: #6B6B6B;
  --gray-light: #9A9A9A;
  --gray-border: #E8E8E4;
  --serif: 'Shippori Mincho B1', 'YuMincho', '游明朝', serif;
  --serif-en: 'DM Serif Display', 'Georgia', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  --sans-en: 'DM Sans', 'Zen Kaku Gothic New', sans-serif;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--sans); font-weight: 400; color: var(--dark); background: var(--warm-white); line-height: 1.8; font-size: 15px; overflow-x: hidden; letter-spacing: 0.03em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-label { font-family: var(--serif-en); font-size: 14px; font-weight: 400; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 16px; font-style: italic; }
.section-heading { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); font-weight: 500; line-height: 1.5; letter-spacing: 0.06em; color: var(--dark); margin-bottom: 20px; }
.section-desc { font-size: 15px; line-height: 2; color: var(--gray); max-width: 640px; }

.fade-in { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(0.25,0.1,0.25,1), transform 0.8s cubic-bezier(0.25,0.1,0.25,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height); display: flex; align-items: center; background: rgba(250,250,248,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav__logo { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: 0.1em; color: var(--dark); }
.nav__logo span { font-weight: 600; letter-spacing: 0.08em; }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--dark-secondary); transition: color 0.3s ease; position: relative; }
.nav__links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--teal); transition: width 0.3s ease; }
.nav__links a:hover { color: var(--teal); }
.nav__links a:hover::after { width: 100%; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav__hamburger span { display: block; width: 20px; height: 1.5px; background: var(--dark); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav__mobile { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: rgba(250,250,248,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 999; padding: 40px 24px; }
.nav__mobile.active { display: flex; flex-direction: column; gap: 0; }
.nav__mobile a { font-size: 18px; font-weight: 400; padding: 20px 0; border-bottom: 1px solid var(--gray-border); display: block; }

/* BREADCRUMB */
.breadcrumb { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 16px; }
.breadcrumb__list { display: flex; align-items: center; gap: 8px; list-style: none; font-size: 13px; color: var(--gray-light); }
.breadcrumb__list a { color: var(--gray-light); transition: color 0.3s ease; }
.breadcrumb__list a:hover { color: var(--teal); }
.breadcrumb__separator { color: var(--gray-border); }

/* PAGE HERO */
.page-hero { padding: 60px 0 80px; text-align: center; background: linear-gradient(180deg, var(--warm-white) 0%, #F4F9F8 50%, var(--warm-white) 100%); }
.page-hero__label { font-family: var(--serif-en); font-size: 14px; font-weight: 400; letter-spacing: 0.15em; color: var(--teal); margin-bottom: 16px; font-style: italic; }
.page-hero__title { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); font-weight: 500; line-height: 1.5; letter-spacing: 0.08em; color: var(--dark); margin-bottom: 20px; }
.page-hero__desc { font-size: 15px; line-height: 2; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* CLINIC CARDS */
.clinics-list { padding: 80px 0 120px; }
.clinics-list__grid { display: flex; flex-direction: column; gap: 64px; }

.clinic-large { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.04); transition: transform 0.4s cubic-bezier(0.25,0.1,0.25,1), box-shadow 0.4s ease; }
.clinic-large:hover { transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,0.08); }

.clinic-large__photo { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-family: var(--sans-en); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); min-height: 320px; }
.clinic-large__photo--ion { background: linear-gradient(135deg, #C5D8D5 0%, #9EC4BD 100%); }
.clinic-large__photo--ohashi { background: linear-gradient(135deg, #B8CECC 0%, #8FB5B0 100%); }
.clinic-large__photo--implant { background: linear-gradient(135deg, #96B8B2 0%, #6FA09A 100%); }
.clinic-large__photo--tenjin { background: linear-gradient(135deg, #A8D5D0 0%, #7BBFB5 100%); }
.clinic-large__photo--kumamoto { background: linear-gradient(135deg, #D4DDD9 0%, #B8CCC6 100%); position: relative; }

.clinic-large__body { padding: 48px 48px 48px 56px; display: flex; flex-direction: column; justify-content: center; }
.clinic-large__name { font-family: var(--serif); font-size: clamp(18px, 2.5vw, 24px); font-weight: 500; margin-bottom: 20px; letter-spacing: 0.06em; line-height: 1.6; }
.clinic-large__info { margin-bottom: 24px; }
.clinic-large__info-row { display: flex; gap: 16px; font-size: 14px; color: var(--gray); padding: 8px 0; border-bottom: 1px solid var(--gray-border); }
.clinic-large__info-row:last-child { border-bottom: none; }
.clinic-large__info-label { font-weight: 500; color: var(--dark-secondary); min-width: 64px; flex-shrink: 0; }

.clinic-large__features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.clinic-large__feature { font-size: 12px; font-weight: 500; color: var(--teal); background: var(--teal-soft); padding: 4px 14px; border-radius: 10px; letter-spacing: 0.02em; }

.clinic-large__link { font-family: var(--sans-en); font-size: 14px; font-weight: 500; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s ease; }
.clinic-large__link:hover { gap: 12px; }

/* COMING SOON */
.clinic-large--coming-soon { border: 2px dashed var(--gray-border); background: transparent; box-shadow: none; }
.clinic-large--coming-soon:hover { box-shadow: none; transform: none; }
.clinic-large__badge { position: absolute; top: 20px; right: 20px; font-family: var(--sans-en); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); background: rgba(78,169,158,0.12); padding: 6px 16px; border-radius: 24px; }

/* FOOTER */
.footer { padding: 80px 0 40px; background: #F2F2EF; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer__logo { font-size: 16px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer__brand-desc { font-size: 13px; color: var(--gray); line-height: 1.9; }
.footer__col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 20px; color: var(--dark); }
.footer__col-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col-links a { font-size: 13px; color: var(--gray); transition: color 0.3s ease; }
.footer__col-links a:hover { color: var(--teal); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--gray-border); }
.footer__copy { font-family: var(--sans-en); font-size: 12px; color: var(--gray-light); letter-spacing: 0.02em; }
.footer__bottom-links { display: flex; gap: 24px; list-style: none; }
.footer__bottom-links a { font-size: 12px; color: var(--gray-light); transition: color 0.3s ease; }
.footer__bottom-links a:hover { color: var(--teal); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .clinic-large { grid-template-columns: 1fr; }
  .clinic-large__photo { min-height: 240px; }
  .clinic-large__body { padding: 32px; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .page-hero { padding: 40px 0 60px; }
  .clinics-list { padding: 60px 0 80px; }
  .clinics-list__grid { gap: 40px; }
  .clinic-large__body { padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}
