/* ===========================
   Design System: Uno Dental
   =========================== */

:root {
  --color-taupe: #887F76;
  --color-brown: #885A46;
  --color-gold: #FFBF00;
  --color-lime: #74C14A;
  --color-coral: #FDA97F;
  --color-white: #FFFFFF;
  --color-gray: #888888;
  --color-cream-light: #F8F3E0;
  --color-cream: #EFE1B2;
  --color-text: #887F76;

  --shadow-card: 0px 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0px 2px 4px rgba(0, 0, 0, 0.04);

  --radius-card: 14px;
  --radius-badge: 6px;
  --radius-input: 4px;

  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', 'Noto Sans JP', sans-serif;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
}

/* ===========================
   Reset & Base
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   Layout
   =========================== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-20);
}

/* ===========================
   Header
   =========================== */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(136, 127, 118, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-16);
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-name-en {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-name-ja {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-taupe);
  line-height: 1.2;
}

.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: var(--space-8) var(--space-16);
  border: 2px solid var(--color-gold);
  border-radius: 0;
  min-height: 44px;
  justify-content: center;
  transition: background 0.2s;
}

.header-tel:hover {
  background: rgba(255, 191, 0, 0.1);
}

.tel-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-taupe);
}

.tel-number {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brown);
  letter-spacing: 0.03em;
}

/* ===========================
   Hero
   =========================== */

.hero {
  background: var(--color-cream);
  padding: var(--space-40) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-40);
  align-items: center;
}

.hero-inner--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  text-align: center;
}

.hero-inner--single .hero-body {
  align-items: center;
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 191, 0, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-brown);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  width: fit-content;
}

.hero-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-brown);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-taupe);
}

.cta-tel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-gold);
  padding: var(--space-12) var(--space-32);
  min-height: 64px;
  justify-content: center;
  gap: 2px;
  border-radius: 0;
  width: fit-content;
  transition: background 0.2s, transform 0.15s;
}

.cta-tel:hover {
  background: #e6ab00;
  transform: translateY(-1px);
}

.cta-tel .cta-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-brown);
}

.cta-tel .cta-number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-brown);
}

.hero-image-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  background: var(--color-cream-light);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream-light);
  color: var(--color-gray);
  font-size: 13px;
  text-align: center;
  padding: var(--space-20);
  line-height: 1.6;
}

/* ===========================
   Section Common
   =========================== */

.section {
  padding: var(--space-56) 0;
}

.section--cream {
  background: var(--color-cream-light);
}

.section--white {
  background: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-40);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brown);
  line-height: 1.4;
}

.section-desc {
  margin-top: var(--space-12);
  font-size: 15px;
  color: var(--color-taupe);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   First Visit
   =========================== */

.first-visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.first-visit-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  box-shadow: var(--shadow-card);
}

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  margin-bottom: var(--space-12);
  padding: 0 var(--space-8);
  border-radius: 999px;
  background: rgba(255, 191, 0, 0.16);
  border: 1px solid rgba(255, 191, 0, 0.55);
  color: var(--color-brown);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
}

.fv-icon {
  font-size: 32px;
  margin-bottom: var(--space-12);
}

.fv-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: var(--space-8);
}

.fv-text {
  font-size: 14px;
  color: var(--color-taupe);
  line-height: 1.7;
}

/* ===========================
   Treatment Cards
   =========================== */

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-20);
}

.treatment-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-24) var(--space-20);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-cream);
  transition: border-color 0.2s, transform 0.2s;
}

.treatment-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.tc-icon {
  font-size: 28px;
  margin-bottom: var(--space-12);
}

.tc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: var(--space-8);
}

.tc-text {
  font-size: 13px;
  color: var(--color-taupe);
  line-height: 1.7;
}

/* ===========================
   Hours Table
   =========================== */

.hours-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.hours-table th,
.hours-table td {
  padding: var(--space-12) var(--space-16);
  text-align: center;
  border-bottom: 1px solid rgba(136, 127, 118, 0.15);
}

.hours-table thead th {
  background: var(--color-cream);
  color: var(--color-brown);
  font-weight: 700;
  font-size: 13px;
}

.hours-table tbody td:first-child,
.hours-table tbody th:first-child {
  font-weight: 700;
  color: var(--color-brown);
  text-align: left;
}

.hours-table tbody th {
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid rgba(136, 127, 118, 0.15);
}

.hours-table .closed {
  color: var(--color-gray);
  font-size: 13px;
}

.hours-note {
  margin-top: var(--space-16);
  font-size: 13px;
  color: var(--color-taupe);
  background: rgba(136, 127, 118, 0.06);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-badge);
  border-left: 3px solid var(--color-cream);
}

.hours-note ul {
  margin-top: var(--space-4);
  padding-left: var(--space-16);
}

.hours-note li {
  line-height: 1.9;
}

/* ===========================
   Access
   =========================== */

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24);
}

.access-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(136, 127, 118, 0.12);
}

.ac-icon {
  font-size: 24px;
  margin-bottom: var(--space-8);
}

.ac-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: var(--space-8);
}

.ac-text {
  font-size: 14px;
  color: var(--color-taupe);
  line-height: 1.7;
}

.map-link {
  display: inline-block;
  margin-top: var(--space-8);
  font-size: 13px;
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.map-link:hover {
  color: var(--color-brown);
}

/* ===========================
   Clinic Info
   =========================== */

.info-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
}

.info-table th,
.info-table td {
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid rgba(136, 127, 118, 0.12);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 160px;
  font-weight: 700;
  color: var(--color-brown);
  background: rgba(239, 225, 178, 0.3);
  white-space: nowrap;
}

.info-table td {
  color: var(--color-taupe);
}

.info-sub {
  color: var(--color-gray);
  font-family: var(--font-heading);
  font-size: 13px;
}

.info-table a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* ===========================
   Bottom CTA
   =========================== */

.bottom-cta {
  background: var(--color-cream);
  padding: var(--space-56) 0;
  text-align: center;
}

.bottom-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: var(--space-8);
}

.bottom-cta-sub {
  font-size: 14px;
  color: var(--color-taupe);
  margin-bottom: var(--space-32);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
}

.cta-anchor {
  font-size: 14px;
  color: var(--color-taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cta-anchor:hover {
  color: var(--color-brown);
}

/* ===========================
   Not Found
   =========================== */

.not-found {
  background: var(--color-cream-light);
  min-height: 55vh;
  padding: var(--space-56) 0;
  display: flex;
  align-items: center;
}

.not-found-inner {
  text-align: center;
}

.not-found-link {
  margin-top: var(--space-32);
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  background: var(--color-taupe);
  padding: var(--space-32) 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
}

.footer-address {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-8);
}

/* ===========================
   Responsive — Mobile First
   =========================== */

@media (max-width: 599px) {
  .header-inner {
    height: 60px;
    padding: 0 var(--space-16);
  }

  .tel-number {
    font-size: 14px;
  }

  .hero {
    padding: var(--space-32) 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .hero-image-wrap {
    order: -1;
    aspect-ratio: 3/2;
  }

  .section {
    padding: var(--space-40) 0;
  }

  .first-visit-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .treatment-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .info-table th {
    width: 110px;
    font-size: 13px;
  }

  .info-table td,
  .info-table th {
    padding: var(--space-8) var(--space-12);
    font-size: 13px;
  }

  .section-title {
    font-size: 20px;
  }

  .hours-table th,
  .hours-table td {
    padding: var(--space-8) var(--space-8);
    font-size: 13px;
  }

  .cta-tel {
    width: 100%;
    max-width: 320px;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .hero-image-wrap {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .first-visit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
