/* ARC Pharmacist portal — shared styles */
:root {
  --color-primary: #0056b3;
  --color-primary-dark: #004494;
  --color-text: #1a2b3c;
  --color-text-muted: #5a6b7d;
  --color-border: #e3eaf2;
  --color-surface: #f7faff;
  --max-width: 1080px;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 86, 179, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.site-logo:hover {
  text-decoration: none;
}

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%);
  text-align: center;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-text);
}

.hero__subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--color-text-muted);
}

.section {
  padding: 56px 0;
}

.section__title {
  margin: 0 0 32px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.app-card__icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 0 16px;
  border-radius: 22%;
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.12);
}

.app-card__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-primary);
}

.app-card__desc {
  margin: 0 0 24px;
  flex: 1;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.app-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 500;
}

.legal-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.legal-block {
  margin-bottom: 40px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h2 {
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.legal-block h3 {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  color: var(--color-text);
}

.legal-block p,
.legal-block li {
  margin: 0 0 12px;
  color: var(--color-text-muted);
}

.legal-block ol {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.legal-block ul {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.legal-meta {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.policy-page {
  padding: 40px 0 64px;
}

.policy-page__header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.policy-page__header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  line-height: 1.4;
  color: var(--color-primary);
}

.policy-page__footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 40px;
  }

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

  .app-card {
    padding: 22px;
  }
}
