/* ============================================================
   C04 Aoyama Medical Clinic — Style Sheet
   Concept: "Cleanliness × Reassurance × Medical whitespace"
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-white: #FFFFFF;
  --color-light-blue: #E0F0F8;
  --color-deep-green: #234E3D;
  --color-ink: #2A2A2A;
  --color-light-gray: #F5F7FA;
  --color-green-hover: #1a3d2f;
  --color-green-light: #e8f2ed;
  --color-mark-open: #234E3D;
  --color-mark-closed: #c44;
  --color-mark-half: #c08a1e;
  --color-border: #e0e4e8;
  --color-overlay: rgba(35, 78, 61, 0.45);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --max-width: 1120px;
  --section-padding: 100px 0;
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }

/* ---------- Shared Section Styles ---------- */
.about__label, .services__label, .schedule__label,
.doctors__label, .access__label {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--color-deep-green);
  margin-bottom: 8px;
}

.about__title, .services__title, .schedule__title,
.doctors__title, .access__title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.services__subtitle, .schedule__subtitle, .doctors__subtitle {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 48px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo-icon { font-size: 1.5rem; color: var(--color-deep-green); }

.header__logo-text {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-deep-green);
}

.header__logo-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: #6b7b74;
}

.header__nav-list { display: flex; gap: 28px; }

.header__nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 4px;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-deep-green);
  transition: var(--transition);
}

.header__nav-link:hover::after { width: 100%; }

.header__cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-deep-green);
  padding: 10px 24px;
  border-radius: var(--radius-full);
}

.header__cta:hover {
  background: var(--color-green-hover);
  transform: translateY(-1px);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 560px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
}

.hero__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero__title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero__description {
  font-size: 0.9375rem;
  line-height: 2;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.hero__btn--primary {
  background: var(--color-deep-green);
  color: var(--color-white);
  border: 2px solid var(--color-deep-green);
}

.hero__btn--primary:hover {
  background: var(--color-green-hover);
  border-color: var(--color-green-hover);
  transform: translateY(-2px);
}

.hero__btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

/* ---------- About ---------- */
.about { padding: var(--section-padding); }

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__title { margin-bottom: 24px; }

.about__philosophy {
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--color-deep-green);
  font-weight: 500;
  margin-bottom: 20px;
}

.about__description {
  font-size: 0.9375rem;
  line-height: 2;
  color: #555;
  margin-bottom: 32px;
}

.about__features { display: flex; flex-direction: column; gap: 16px; }

.about__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.about__feature-icon { font-size: 1.25rem; }
.about__image-wrap { border-radius: var(--radius-md); overflow: hidden; }
.about__image { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-md); }

/* ---------- Services ---------- */
.services { padding: var(--section-padding); background: var(--color-light-gray); }
.services__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; text-align: center; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.services__card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.services__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border-color: var(--color-light-blue);
}

.services__card-icon { font-size: 2.5rem; margin-bottom: 20px; }

.services__card-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-deep-green);
  margin-bottom: 16px;
}

.services__card-text { font-size: 0.875rem; line-height: 1.9; color: #555; text-align: left; }

/* ---------- Schedule ---------- */
.schedule { padding: var(--section-padding); }
.schedule__inner { max-width: 800px; margin: 0 auto; padding: 0 24px; text-align: center; }
.schedule__subtitle { margin-bottom: 40px; }
.schedule__table-wrap { overflow-x: auto; margin-bottom: 24px; }

.schedule__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.schedule__th {
  background: var(--color-deep-green);
  color: var(--color-white);
  font-weight: 500;
  padding: 14px 12px;
  text-align: center;
  font-size: 0.875rem;
}

.schedule__th--time { min-width: 120px; text-align: left; padding-left: 20px; }
.schedule__th--sun { color: #ffcccc; }
.schedule__row:nth-child(odd) { background: var(--color-light-gray); }
.schedule__row:nth-child(even) { background: var(--color-white); }
.schedule__td { padding: 16px 12px; text-align: center; border-bottom: 1px solid var(--color-border); }
.schedule__td--time { text-align: left; padding-left: 20px; font-weight: 500; white-space: nowrap; }

.schedule__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
}

.schedule__mark--open { color: var(--color-mark-open); background: var(--color-green-light); }
.schedule__mark--closed { color: var(--color-mark-closed); background: #fde8e8; }
.schedule__mark--half { color: var(--color-mark-half); background: #fdf3e0; }

.schedule__legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.schedule__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #555;
}

.schedule__legend-item .schedule__mark { width: 24px; height: 24px; font-size: 0.75rem; }
.schedule__note { font-size: 0.8125rem; color: #888; }

/* ---------- Doctors ---------- */
.doctors { padding: var(--section-padding); background: var(--color-light-blue); }
.doctors__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; text-align: center; }
.doctors__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.doctors__card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 48px 36px;
  text-align: center;
  transition: var(--transition);
}

.doctors__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.doctors__photo-wrap {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 4px solid var(--color-light-blue);
}

.doctors__photo { width: 100%; height: 100%; object-fit: cover; }

.doctors__role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-deep-green);
  background: var(--color-green-light);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.doctors__name {
  font-weight: 700;
  font-size: 1.375rem;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.doctors__name-en {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.doctors__specialty {
  font-size: 0.875rem;
  color: var(--color-deep-green);
  font-weight: 500;
  margin-bottom: 16px;
}

.doctors__bio {
  font-size: 0.875rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 20px;
  text-align: left;
}

.doctors__qualifications {
  text-align: left;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.doctors__qualifications li {
  font-size: 0.8125rem;
  color: #666;
  padding-left: 16px;
  position: relative;
  line-height: 1.8;
}

.doctors__qualifications li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-deep-green);
  font-weight: 700;
}

/* ---------- Access ---------- */
.access { padding: var(--section-padding); }
.access__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; text-align: center; }
.access__title { margin-bottom: 48px; }
.access__content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; text-align: left; }
.access__list { display: flex; flex-direction: column; }

.access__list-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.access__list-item:first-child { padding-top: 0; }

.access__list-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-deep-green);
}

.access__list-value { font-size: 0.9375rem; line-height: 1.8; }
.access__tel { color: var(--color-deep-green); font-weight: 700; font-size: 1.125rem; }
.access__tel:hover { opacity: 0.7; }

.access__map-placeholder {
  background: var(--color-light-gray);
  border-radius: var(--radius-md);
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
}

.access__map-icon { font-size: 2.5rem; margin-bottom: 12px; }
.access__map-text { font-weight: 700; font-size: 1.125rem; color: #888; margin-bottom: 8px; }
.access__map-note { font-size: 0.75rem; color: #aaa; }

/* ---------- Contact CTA ---------- */
.contact {
  padding: 80px 0;
  background: var(--color-deep-green);
  text-align: center;
}

.contact__inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.contact__title {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.contact__description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  margin-bottom: 40px;
}

.contact__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.contact__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  transition: var(--transition);
  min-width: 260px;
}

.contact__btn--tel { background: var(--color-white); color: var(--color-deep-green); }

.contact__btn--tel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact__btn--web {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.contact__btn--web:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.contact__btn-icon { font-size: 1.5rem; }
.contact__btn-text { text-align: left; }
.contact__btn-label { display: block; font-size: 0.75rem; opacity: 0.8; margin-bottom: 2px; }
.contact__btn-number { display: block; font-weight: 700; font-size: 1.125rem; }
.contact__hours { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 32px; background: var(--color-light-gray); }
.footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__logo-icon { color: var(--color-deep-green); font-size: 1.25rem; margin-bottom: 4px; }
.footer__logo-text { font-weight: 700; font-size: 1rem; color: var(--color-deep-green); }
.footer__address { font-size: 0.8125rem; color: #888; margin-top: 8px; }
.footer__nav-list { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav-link { font-size: 0.8125rem; color: #666; }
.footer__nav-link:hover { color: var(--color-deep-green); }
.footer__bottom { text-align: center; }
.footer__copyright { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.footer__note { font-size: 0.6875rem; color: #bbb; }

/* ============================================================
   Media Queries — Tablet (768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-padding: 72px 0; }

  .header__nav, .header__cta { display: none; }
  .header__hamburger { display: flex; }

  .hero { height: 70vh; min-height: 480px; }
  .hero__title { font-size: 2rem; }
  .hero__description { font-size: 0.875rem; }
  .hero__br--pc { display: none; }

  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__image { height: 320px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services__card { padding: 28px 20px; }

  .doctors__grid { grid-template-columns: 1fr; gap: 24px; }
  .doctors__card { padding: 36px 28px; }

  .access__content { grid-template-columns: 1fr; gap: 32px; }
  .access__map-placeholder { min-height: 260px; }

  .footer__top {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }
  .footer__nav-list { justify-content: center; }
}

/* ============================================================
   Media Queries — Mobile (480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --section-padding: 56px 0; }

  .hero { height: 65vh; min-height: 420px; }
  .hero__title { font-size: 1.625rem; line-height: 1.6; }
  .hero__lead { font-size: 0.875rem; }
  .hero__description { font-size: 0.8125rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__btn { width: 100%; max-width: 280px; text-align: center; padding: 12px 24px; }

  .about__title, .services__title, .schedule__title,
  .doctors__title, .access__title { font-size: 1.5rem; }

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

  .schedule__table { font-size: 0.8125rem; }
  .schedule__th { padding: 10px 6px; font-size: 0.75rem; }
  .schedule__td { padding: 12px 6px; }
  .schedule__td--time { padding-left: 10px; font-size: 0.75rem; }
  .schedule__th--time { min-width: 90px; padding-left: 10px; }
  .schedule__mark { width: 26px; height: 26px; font-size: 0.8125rem; }
  .schedule__legend { gap: 16px; }

  .doctors__photo-wrap { width: 120px; height: 120px; }
  .doctors__card { padding: 28px 20px; }

  .access__list-item { grid-template-columns: 80px 1fr; gap: 12px; padding: 16px 0; }

  .contact__actions { flex-direction: column; align-items: center; }
  .contact__btn { min-width: auto; width: 100%; max-width: 320px; justify-content: center; }
  .contact__title { font-size: 1.375rem; }

  .footer__nav-list { gap: 16px; }
}