
/* ------------------------------------------------------------
   葉須木クリニック — dental clinic overrides
   Builds on Clinic Morinosato tokens (colors_and_type.css).
   Shift the hue slightly cooler for a clean, dental feel while
   preserving warmth (cream panels, taupe wood, orange sparkle).
   ------------------------------------------------------------ */

:root {
  /* brand override — slightly cooler teal, reads more "clinical" */
  --hasu-teal-900: #1a5d55;
  --hasu-teal-700: #2b7a6e;
  --hasu-teal-600: #3a9689;
  --hasu-teal-500: #55ad9f;
  --hasu-teal-300: #a8d4cb;
  --hasu-teal-100: #e1efec;
  --hasu-teal-050: #f1f7f5;

  /* fresh mint for dental "clean" accent */
  --hasu-mint-200: #cfe8d9;

  /* reuse Morinosato's warm side */
  --hasu-sand-100: #f4efe4;
  --hasu-sand-050: #faf7ee;
  --hasu-taupe-500: #b79880;
  --hasu-taupe-700: #8c6f5a;
  --hasu-orange:    #e8a352;

  /* remap semantic tokens */
  --fg-brand: var(--hasu-teal-700);
  --mori-teal-700: var(--hasu-teal-700);
  --mori-teal-600: var(--hasu-teal-600);
  --mori-teal-500: var(--hasu-teal-500);
  --mori-teal-300: var(--hasu-teal-300);
  --mori-teal-100: var(--hasu-teal-100);
  --mori-teal-050: var(--hasu-teal-050);
  --link: var(--hasu-teal-700);
  --link-hover: var(--hasu-teal-900);
}

/* ---- Placeholder image tiles (gray with caption) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      135deg,
      #e4e7e6 0 10px,
      #dde1e0 10px 20px
    );
  color: #6d7a78;
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: inherit;
  pointer-events: none;
}
.ph__label {
  position: relative;
  background: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #556462;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-align: center;
  line-height: 1.4;
}
.ph--dark {
  background:
    repeating-linear-gradient(
      135deg,
      #c9cfce 0 10px,
      #c0c6c5 10px 20px
    );
}

/* ---- Section title cluster (sparkle / JP / EN eyebrow) --- */
.hx-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hx-title .sparkle {
  font-size: 24px;
  line-height: 1;
  color: var(--hasu-orange);
  opacity: 0.95;
}
.hx-title h2 {
  font-family: var(--font-jp-sans);
  font-size: 30px;
  font-weight: 700;
  color: var(--fg-brand);
  letter-spacing: 0.08em;
  margin: 2px 0 0;
}
.hx-title .eyebrow {
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--hasu-taupe-500);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.hx-title .eyebrow::before,
.hx-title .eyebrow::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--hasu-taupe-500);
  display: inline-block;
}

/* Section title — left-aligned variant */
.hx-title--left { align-items: flex-start; }
.hx-title--left h2 { text-align: left; }
.hx-title--left .eyebrow::before { display: none; }
.hx-title--left .eyebrow::after { display: none; }

/* ---- Wordmark (text-only, since no logo yet) ------------ */
.hx-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--hasu-teal-700);
  text-decoration: none;
}
.hx-wordmark__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hasu-teal-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0;
}
.hx-wordmark__jp {
  font-family: var(--font-jp-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hasu-teal-900);
  line-height: 1;
}
.hx-wordmark__en {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--hasu-taupe-500);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ---- Sky/header background ------------------------------ */
.hx-sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 440px;
  background: linear-gradient(180deg, #e7f1ee 0%, rgba(231, 241, 238, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ---- Top header bar ------------------------------------- */
.hx-topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.hx-topbar nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.hx-topbar nav a {
  font-family: var(--font-jp-sans);
  font-size: 13px;
  color: var(--fg-1);
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 3px;
}
.hx-topbar nav a .eny {
  display: block;
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--hasu-taupe-500);
  text-transform: uppercase;
  margin-top: 3px;
  text-align: center;
}
.hx-topbar nav a:hover { color: var(--hasu-teal-700); text-decoration: none; }

.hx-topbar .hx-topcta {
  display: flex;
  gap: 8px;
}

/* ---- Page container ------------------------------------- */
.hx-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* ---- Section rhythm ------------------------------------- */
.hx-sec {
  padding: 96px 0;
  position: relative;
}
.hx-sec--tight { padding: 64px 0; }

/* ---- Rounded corner panel variants ---------------------- */
.hx-panel-cream {
  background: var(--hasu-sand-100);
  border-radius: 32px;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}
.hx-panel-white {
  background: #fff;
  border-radius: 28px;
  padding: 56px 56px;
  box-shadow: var(--shadow-sm);
}
.hx-panel-mint {
  background: var(--hasu-teal-050);
  border-radius: 28px;
  padding: 56px 56px;
  position: relative;
  overflow: hidden;
}

/* ---- CTA pill override (full pill, a bit taller) -------- */
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  height: 54px;
  padding: 0 32px;
  background: var(--hasu-teal-600);
  color: #fff;
  font-family: var(--font-jp-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out-soft),
              transform var(--dur-fast) var(--ease-out-soft),
              box-shadow var(--dur-fast) var(--ease-out-soft);
  box-shadow: 0 6px 16px rgba(43, 122, 110, 0.2);
}
.hx-btn:hover { background: var(--hasu-teal-500); color: #fff; text-decoration: none; }
.hx-btn:active { background: var(--hasu-teal-700); transform: translateY(1px); }
.hx-btn .arr {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--hasu-teal-600);
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.hx-btn--ghost {
  background: transparent;
  color: var(--hasu-teal-700);
  border: 1px solid var(--hasu-teal-600);
  box-shadow: none;
}
.hx-btn--ghost:hover { background: var(--hasu-teal-050); color: var(--hasu-teal-700); }
.hx-btn--ghost .arr { background: var(--hasu-teal-600); color: #fff; }
.hx-btn--dark {
  background: var(--mori-ink-900);
  color: #fff;
}
.hx-btn--dark:hover { background: #000; color: #fff; }
.hx-btn--small {
  height: 40px;
  min-width: 0;
  padding: 0 18px;
  font-size: 12px;
}

/* ---- Tag override (dental specialties) ------------------ */
.hx-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid var(--hasu-teal-300);
  border-radius: 6px;
  color: var(--fg-brand);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: transparent;
  font-family: var(--font-jp-sans);
}

/* ---- Floating reservation button (right side) ----------- */
.hx-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.hx-floating .hx-btn {
  min-width: 160px;
  height: 56px;
  box-shadow: 0 10px 24px rgba(31, 70, 55, 0.18);
}

/* ---- Utility ------------------------------------------- */
.hx-eyebrow-latin {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--hasu-taupe-500);
  text-transform: uppercase;
}

.hx-divider-dashed {
  border: 0;
  border-top: 1px dashed var(--border-hairline);
  margin: 0;
}

/* ============================================================
   Mobile overrides — stack grids, shrink type & spacing
   ============================================================ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* ---- Topbar: hide desktop nav, keep wordmark + primary CTA ---- */
  .hx-topbar {
    padding: 14px 16px !important;
    gap: 10px !important;
  }
  .hx-topbar nav { display: none !important; }
  .hx-topbar .hx-topcta { margin-left: auto; }
  .hx-topbar .hx-topcta .hx-btn--ghost { display: none !important; }

  .hx-wordmark__mark { width: 36px !important; height: 36px !important; font-size: 16px !important; }
  .hx-wordmark__jp { font-size: 14px !important; letter-spacing: 0.08em !important; }
  .hx-wordmark__en { font-size: 9px !important; letter-spacing: 0.26em !important; margin-top: 3px !important; }

  /* ---- Page container & rhythm ---- */
  .hx-page { padding: 0 16px !important; }
  .hx-sec { padding: 48px 0 !important; }
  .hx-sec--tight { padding: 20px 0 !important; }
  .hx-sky { height: 280px !important; }

  /* ---- Panels ---- */
  .hx-panel-cream { padding: 36px 18px !important; border-radius: 20px !important; }
  .hx-panel-white { padding: 28px 16px !important; border-radius: 20px !important; }
  .hx-panel-mint { padding: 44px 18px !important; border-radius: 20px !important; }

  /* ---- Section titles ---- */
  .hx-title h2 { font-size: 22px !important; letter-spacing: 0.06em !important; }
  .hx-title .sparkle { font-size: 20px !important; }
  .hx-title .eyebrow { font-size: 10px !important; letter-spacing: 0.24em !important; }

  /* ---- Buttons: no fixed min-width on mobile ---- */
  .hx-btn {
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
  }
  .hx-btn--small {
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
  }

  /* ---- Floating CTA ---- */
  .hx-floating { right: 12px !important; bottom: 12px !important; gap: 6px !important; }
  .hx-floating .hx-btn { min-width: 140px !important; height: 46px !important; font-size: 12px !important; }

  /* ---- Hero ---- */
  .hx-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .hx-hero-copy h1 { font-size: 28px !important; line-height: 1.5 !important; letter-spacing: 0.06em !important; }
  .hx-hero-copy p { font-size: 13px !important; line-height: 1.9 !important; }
  .hx-hero-copy > div:last-child {
    flex-wrap: wrap !important;
  }
  .hx-hero-badge {
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    padding: 10px 14px !important;
    font-size: 11px !important;
    max-width: none !important;
    line-height: 1.55 !important;
  }

  /* ---- News ---- */
  .hx-news-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .hx-news-row {
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 6px 10px !important;
    padding: 14px 0 !important;
  }
  .hx-news-row > :nth-child(1) { /* date */
    grid-column: 1 / 2 !important;
    font-size: 12px !important;
  }
  .hx-news-row > :nth-child(2) { /* tag */
    grid-column: 2 / 3 !important;
    justify-self: start !important;
  }
  .hx-news-row > :nth-child(3) { /* title */
    grid-column: 1 / -1 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .hx-news-row > :nth-child(4) { display: none !important; }

  /* ---- About headings + watercolor leaves ---- */
  #about > svg {
    width: 110px !important;
    opacity: 0.5 !important;
  }
  #about h3 { font-size: 20px !important; line-height: 1.6 !important; letter-spacing: 0.06em !important; }
  #about > div > div:nth-of-type(2) { font-size: 13px !important; line-height: 1.95 !important; }

  /* ---- Features ---- */
  .hx-feature-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  /* ---- Services (10 specialty tiles) ---- */
  .hx-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .hx-services-grid > button {
    padding: 18px 10px 14px !important;
  }

  /* ---- Gallery ---- */
  .hx-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .hx-gallery-grid > div { transform: none !important; }

  /* ---- Staff ---- */
  .hx-staff-hero {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
  }
  .hx-staff-hero h3 { font-size: 20px !important; line-height: 1.65 !important; }
  .hx-staff-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* ---- Schedule + Access ---- */
  .hx-access-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .hx-schedule th,
  .hx-schedule td {
    font-size: 11px !important;
    padding: 10px 2px !important;
  }
  .hx-schedule tbody td:first-child {
    font-size: 10px !important;
    padding: 10px 4px !important;
    letter-spacing: 0 !important;
  }

  /* ---- FAQ ---- */
  .hx-faq-head,
  .hx-faq-body {
    grid-template-columns: 28px 1fr 26px !important;
    gap: 10px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .hx-faq-head { padding-top: 16px !important; padding-bottom: 16px !important; }
  .hx-faq-head span:nth-child(2) { font-size: 13px !important; line-height: 1.55 !important; }
  .hx-faq-body p { font-size: 13px !important; line-height: 1.85 !important; }

  /* ---- CTA band ---- */
  .hx-cta-panel > svg {
    width: 110px !important;
    opacity: 0.5 !important;
  }
  .hx-cta-panel h3 { font-size: 22px !important; line-height: 1.55 !important; }
  .hx-cta-panel p { font-size: 13px !important; line-height: 1.9 !important; }

  /* ---- Footer ---- */
  .hx-footer-top {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding: 20px !important;
  }
  .hx-footer-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .hx-footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 20px 20px 0 !important;
  }
}

