/* Komori Pharmacy — rx- prefix · clean white + teal/medical green */
:root {
  --rx-teal: #0d9488;
  --rx-teal-dark: #0f766e;
  --rx-green: #059669;
  --rx-mint: #ecfdf5;
  --rx-white: #ffffff;
  --rx-ink: #134e4a;
  --rx-muted: #5f7a78;
  --rx-border: #d1e7e4;
  --rx-alert: #fef3c7;
  --rx-alert-border: #f59e0b;
  --rx-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --rx-radius: 12px;
  --rx-shadow: 0 4px 24px rgba(13, 148, 136, 0.08);
}

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

.rx-body {
  font-family: var(--rx-font);
  color: var(--rx-ink);
  background: var(--rx-white);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--rx-teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.rx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rx-white);
  border-bottom: 1px solid var(--rx-border);
  box-shadow: 0 1px 0 rgba(13, 148, 136, 0.06);
}

.rx-header__stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--rx-teal), var(--rx-green));
}

.rx-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.rx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.rx-brand__cross {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--rx-mint);
  color: var(--rx-teal);
  border: 2px solid var(--rx-teal);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
}

.rx-brand__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rx-brand__tag {
  display: block;
  font-size: 11px;
  color: var(--rx-muted);
}

.rx-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.rx-nav {
  display: flex;
  gap: 6px;
}

.rx-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-ink);
  text-decoration: none;
}

.rx-nav a:hover,
.rx-nav a.is-active {
  background: var(--rx-mint);
  color: var(--rx-teal-dark);
}

.rx-cta {
  padding: 9px 18px;
  background: var(--rx-teal);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.rx-cta:hover { background: var(--rx-teal-dark); text-decoration: none; }

.rx-lang { font-size: 13px; font-weight: 600; }
.rx-lang a { color: var(--rx-muted); text-decoration: none; }
.rx-lang a.is-active { color: var(--rx-teal); }
.rx-lang__sep { color: var(--rx-border); margin: 0 4px; }

.rx-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.rx-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rx-ink);
  border-radius: 2px;
}

/* ── Hero ── */
.rx-hero {
  background: linear-gradient(135deg, var(--rx-mint) 0%, var(--rx-white) 55%);
  border-bottom: 1px solid var(--rx-border);
  padding: 48px 20px 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.rx-hero__panel { max-width: 560px; }

.rx-hero__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rx-teal);
  margin-bottom: 10px;
}

.rx-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.rx-hero__lead {
  color: var(--rx-muted);
  margin-bottom: 22px;
  font-size: 15px;
}

.rx-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: var(--rx-white);
  border: 2px solid var(--rx-border);
  border-radius: var(--rx-radius);
  box-shadow: var(--rx-shadow);
  font-size: 13px;
  font-weight: 600;
  color: var(--rx-teal-dark);
}

.rx-hero__badge-icon { font-size: 36px; }

/* ── Layout: sidebar + content ── */
.rx-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 20px 56px;
  align-items: start;
}

.rx-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.rx-hours-card,
.rx-emergency-card {
  background: var(--rx-white);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  padding: 20px;
  box-shadow: var(--rx-shadow);
}

.rx-emergency-card {
  background: var(--rx-alert);
  border-color: var(--rx-alert-border);
}

.rx-sidebar__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--rx-teal-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rx-teal);
}

.rx-sidebar__title--alert {
  color: #b45309;
  border-bottom-color: var(--rx-alert-border);
}

.rx-hours-list div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rx-border);
}

.rx-hours-list dt { font-weight: 600; }
.rx-hours-list dd { color: var(--rx-muted); }

.rx-hours-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--rx-muted);
}

.rx-emergency-card p {
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.55;
}

.rx-emergency-phone {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  color: var(--rx-teal-dark) !important;
}

/* ── Services 2×2 grid ── */
.rx-section-head { margin-bottom: 24px; }
.rx-section-head h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.rx-section-head p { color: var(--rx-muted); font-size: 14px; }

.rx-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.rx-service-card {
  background: var(--rx-white);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rx-service-card:hover {
  border-color: var(--rx-teal);
  box-shadow: var(--rx-shadow);
}

.rx-service-card__icon {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}

.rx-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--rx-teal-dark);
}

.rx-service-card p {
  font-size: 13px;
  color: var(--rx-muted);
  line-height: 1.55;
}

/* ── OTC list ── */
.rx-otc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rx-otc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--rx-mint);
  border-radius: 10px;
  border-left: 4px solid var(--rx-green);
}

.rx-otc-item__icon { font-size: 22px; flex-shrink: 0; }

.rx-otc-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rx-otc-item__body strong { font-size: 14px; }
.rx-otc-item__body span { font-size: 12px; color: var(--rx-muted); }

/* ── Buttons ── */
.rx-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.rx-btn--primary {
  background: var(--rx-teal);
  color: #fff !important;
}

.rx-btn--primary:hover { background: var(--rx-teal-dark); text-decoration: none; }

/* ── Inner pages ── */
.rx-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.rx-page-head { margin-bottom: 32px; }
.rx-page-head h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.rx-page-head p { color: var(--rx-muted); }

.rx-about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.rx-about-card {
  background: var(--rx-mint);
  border-radius: var(--rx-radius);
  padding: 22px;
  border: 1px solid var(--rx-border);
}

.rx-about-card h2 {
  font-size: 15px;
  color: var(--rx-teal-dark);
  margin-bottom: 12px;
}

.rx-about-list { list-style: none; font-size: 14px; }
.rx-about-list li { padding: 4px 0; }

.rx-about-wide h2 {
  font-size: 15px;
  color: var(--rx-teal-dark);
  margin-bottom: 16px;
}

.rx-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rx-staff-card {
  text-align: center;
  padding: 20px 14px;
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
}

.rx-staff-card__icon { font-size: 32px; display: block; margin-bottom: 8px; }
.rx-staff-card h3 { font-size: 14px; margin-bottom: 6px; }
.rx-staff-card p { font-size: 12px; color: var(--rx-muted); }

/* ── Contact ── */
.rx-contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

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

.rx-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.rx-form input,
.rx-form textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--rx-border);
  border-radius: 8px;
  background: var(--rx-white);
}

.rx-form input:focus,
.rx-form textarea:focus {
  outline: 2px solid var(--rx-teal);
  outline-offset: 1px;
}

.rx-prescription-box {
  background: var(--rx-mint);
  border: 1px solid var(--rx-teal);
  border-radius: var(--rx-radius);
  padding: 18px;
  margin-bottom: 16px;
}

.rx-prescription-box h2 { font-size: 14px; margin-bottom: 8px; color: var(--rx-teal-dark); }
.rx-prescription-box p { font-size: 13px; color: var(--rx-muted); }

.rx-contact-info { font-size: 14px; line-height: 1.8; }

.rx-notice--ok {
  padding: 16px 20px;
  background: var(--rx-mint);
  border: 1px solid var(--rx-green);
  border-radius: 8px;
  color: var(--rx-teal-dark);
  font-weight: 600;
}

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

/* ── Footer ── */
.rx-footer {
  background: var(--rx-ink);
  color: #a7f3d0;
  margin-top: auto;
}

.rx-footer__grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.rx-footer__logo { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.rx-footer__tagline { font-size: 13px; opacity: 0.85; }

.rx-footer__heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 12px;
}

.rx-footer__links { list-style: none; }
.rx-footer__links a { color: #a7f3d0; font-size: 14px; }
.rx-footer__col p { font-size: 14px; margin-bottom: 4px; }
.rx-footer__col a { color: #a7f3d0; }

.rx-footer__bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  border-top: 1px solid rgba(167, 243, 208, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.9;
}

.rx-footer__bar a { color: #a7f3d0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .rx-layout { grid-template-columns: 1fr; }
  .rx-sidebar { position: static; }
  .rx-services-grid { grid-template-columns: 1fr; }
  .rx-about-split,
  .rx-staff-grid,
  .rx-contact-layout { grid-template-columns: 1fr; }
  .rx-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .rx-nav-toggle { display: flex; }
  .rx-header__right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--rx-white);
    border-bottom: 1px solid var(--rx-border);
    padding: 16px 20px;
    display: none;
    gap: 12px;
  }
  .rx-header__right.is-open { display: flex; }
  .rx-header__inner { position: relative; flex-wrap: wrap; }
  .rx-nav { flex-direction: column; }
  .rx-cta { text-align: center; }
}
