:root {
  --cream: #fff8e8;
  --cream-deep: #f8ebcf;
  --paper: #fffdf7;
  --yellow: #f7c948;
  --orange: #e88a35;
  --orange-deep: #bc6024;
  --green: #6f8d73;
  --ink: #35281f;
  --muted: #74665a;
  --line: rgba(120, 82, 42, 0.18);
  --shadow: 0 24px 70px rgba(114, 74, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(232, 138, 53, 0.32);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.9rem;
  font-weight: 700;
}

.header-nav a {
  text-decoration: none;
}

.nav-call {
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 122px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255, 248, 232, 0.98) 0%, rgba(255, 248, 232, 0.9) 38%, rgba(255, 248, 232, 0.34) 66%, rgba(255, 248, 232, 0.1) 100%),
    url("assets/hero-clinic.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0), var(--paper));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #514136;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(232, 138, 53, 0.3);
}

.button.secondary {
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.button.accent {
  color: #4a3728;
  background: var(--yellow);
  box-shadow: 0 14px 28px rgba(247, 201, 72, 0.26);
}

.hero-info {
  position: absolute;
  right: clamp(18px, 4vw, 70px);
  bottom: 46px;
  z-index: 2;
  width: min(360px, calc(100% - 36px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-info p,
.hero-info strong,
.hero-info span {
  display: block;
}

.hero-info p {
  margin: 0 0 4px;
  color: var(--orange-deep);
  font-weight: 800;
}

.hero-info strong {
  font-size: 1.08rem;
  line-height: 1.45;
}

.hero-info span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 44px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 16px 44px rgba(114, 74, 35, 0.08);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: center;
  padding: 70px clamp(20px, 6vw, 84px);
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list p {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 255, 255, 0.64);
}

.previsit {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  gap: 46px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.previsit-panel {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid rgba(232, 138, 53, 0.26);
  border-radius: 8px;
  background: #fff5df;
  box-shadow: var(--shadow);
}

.previsit-panel strong {
  font-size: 1.55rem;
  line-height: 1.35;
}

.previsit-panel span {
  color: var(--muted);
}

.placeholder-link::after {
  content: "準備中";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--orange-deep);
  background: #fff8e8;
  font-size: 0.72rem;
}

.two-column,
.access,
.doctor {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 46px;
  align-items: center;
}

.muted {
  color: var(--muted);
}

.hours-panel {
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: center;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--orange-deep);
  font-weight: 800;
}

.hours-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.doctor {
  padding-block: 76px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doctor-copy p {
  color: var(--muted);
}

.doctor-name {
  color: var(--ink) !important;
  font-weight: 800;
}

.doctor-note {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(232, 138, 53, 0.92), rgba(247, 201, 72, 0.86)),
    var(--orange);
}

.doctor-note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.doctor-note span {
  font-weight: 700;
}

.access-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
}

.access-list div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.access-list dt {
  color: var(--orange-deep);
  font-weight: 800;
}

.access-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.map-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(188, 96, 36, 0.14) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(188, 96, 36, 0.14) 49% 51%, transparent 51%),
    #fff5df;
  box-shadow: var(--shadow);
}

.map-line {
  position: absolute;
  background: rgba(111, 141, 115, 0.42);
  border-radius: 999px;
}

.map-line.horizontal {
  left: 9%;
  right: 9%;
  top: 38%;
  height: 18px;
}

.map-line.vertical {
  top: 12%;
  bottom: 12%;
  left: 58%;
  width: 18px;
}

.map-pin {
  position: absolute;
  left: 48%;
  top: 47%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 16px 34px rgba(232, 138, 53, 0.35);
}

.cta {
  width: min(920px, calc(100% - 40px));
  margin: 10px auto 90px;
  padding: 54px clamp(22px, 6vw, 72px);
  border-radius: 8px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
}

.cta p:not(.eyebrow) {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #fff;
  background: #4a3728;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 720px;
    align-items: start;
    background-position: 58% center;
  }

  .hero-info {
    left: 20px;
    right: auto;
    bottom: 30px;
  }

  .intro,
  .feature-band,
  .previsit,
  .two-column,
  .access,
  .doctor {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-nav {
    gap: 16px;
    font-size: 0.84rem;
  }

  .nav-call {
    min-width: max-content;
  }

  .hero {
    min-height: 700px;
    padding-top: 54px;
    background-image:
      linear-gradient(180deg, rgba(255, 248, 232, 0.98) 0%, rgba(255, 248, 232, 0.88) 46%, rgba(255, 248, 232, 0.2) 100%),
      url("assets/hero-clinic.png");
    background-position: center bottom;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding: 64px 0;
  }

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

  .service-card {
    min-height: 0;
  }

  .feature-band {
    padding: 52px 16px;
  }

  .hours-panel {
    margin-inline: -4px;
    padding: 16px;
  }

  .map-card {
    min-height: 300px;
  }

  .cta {
    width: min(100% - 32px, 920px);
    margin-bottom: 64px;
  }
}
