/* ============================================
   北摂人工関節 HP — Style Sheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1B6FA6;
  --color-primary-dark: #155A85;
  --color-primary-light: #E8F2FA;
  --color-secondary: #2A8F82;
  --color-secondary-light: #E6F5F2;
  --color-cta: #D97B2B;
  --color-cta-hover: #C06A1F;
  --color-bg: #F7F9FB;
  --color-bg-white: #FFFFFF;
  --color-text: #2D3748;
  --color-text-light: #5A6577;
  --color-text-muted: #8896A6;
  --color-border: #E2E8F0;
  --color-border-light: #EDF2F7;
  --font-body: 'Noto Sans JP', '游ゴシック体', YuGothic, '游ゴシック', 'Yu Gothic', sans-serif;
  --font-decorative: 'Allura', cursive;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1100px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* --- Header --- */
.site-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--color-text);
}

.site-logo:hover {
  color: var(--color-primary);
}

.logo-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.logo-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.header-nav {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-cta);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    gap: 24px;
    list-style: none;
  }

  .header-nav a {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
    padding: 4px 0;
    position: relative;
  }

  .header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
  }

  .header-nav a:hover {
    color: var(--color-primary);
  }

  .header-nav a:hover::after {
    width: 100%;
  }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1A7BB5 50%, var(--color-secondary) 100%);
  color: #fff;
  padding: 60px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-decorative {
  font-family: var(--font-decorative);
  font-size: 42px;
  opacity: 0.3;
  margin-bottom: 8px;
  display: block;
}

.hero h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--color-cta-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 123, 43, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-sm-text {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .hero {
    padding: 80px 0 72px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-decorative {
    font-size: 56px;
  }

  .hero-cta-group {
    flex-direction: row;
    gap: 16px;
  }

  .btn {
    padding: 16px 32px;
  }
}

/* --- Section Common --- */
.section {
  padding: 64px 0;
}

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

.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--color-text);
}

.section-title-en {
  font-family: var(--font-decorative);
  font-size: 32px;
  color: var(--color-primary);
  text-align: center;
  display: block;
  margin-bottom: 4px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: 15px;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

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

/* --- Doctor Profile --- */
.doctor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow-md);
}

.doctor-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary-light);
  flex-shrink: 0;
}

.doctor-info {
  text-align: center;
}

.doctor-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.doctor-name-kana {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.doctor-title {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 16px;
}

.doctor-career {
  list-style: none;
  text-align: left;
}

.doctor-career li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--color-text-light);
}

.doctor-career li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
}

@media (min-width: 768px) {
  .doctor-card {
    flex-direction: row;
    padding: 48px;
    text-align: left;
  }

  .doctor-info {
    text-align: left;
  }

  .doctor-photo {
    width: 200px;
    height: 200px;
  }
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.feature-img {
  border-radius: var(--radius-md);
  margin-top: 16px;
  border: 1px solid var(--color-border-light);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Surgery Types --- */
.surgery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.surgery-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.surgery-card.upcoming {
  border-left-color: var(--color-text-muted);
  opacity: 0.7;
}

.surgery-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.surgery-card .surgery-en {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.surgery-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .surgery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Flow / Steps --- */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.step-note {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background: var(--color-secondary-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-secondary);
  font-weight: 500;
}

.step-note a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 600;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.6;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-primary-light);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: 12px;
  transition: transform var(--transition);
  color: var(--color-primary);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --- Access --- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.access-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.access-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.access-label {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.access-info {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.access-info dt {
  font-weight: 600;
  color: var(--color-text);
  margin-top: 8px;
}

.access-info dd {
  margin-left: 0;
}

.access-map {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

@media (min-width: 768px) {
  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access-map {
    height: 280px;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .cta-banner h2 {
    font-size: 26px;
  }
}

/* --- Footer --- */
.site-footer {
  background: #1E2A38;
  color: #A0AEC0;
  padding: 40px 0 24px;
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-section h4 {
  color: #E2E8F0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-section p,
.footer-section a {
  color: #A0AEC0;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #E2E8F0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-disclaimer {
  color: #718096;
  font-size: 12px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* --- Blog List --- */
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.blog-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.blog-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.blog-date {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-card h3 a {
  color: var(--color-text);
}

.blog-card h3 a:hover {
  color: var(--color-primary);
}

.blog-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb li::after {
  content: '>';
  margin-left: 4px;
  color: var(--color-text-muted);
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* --- Page Header (Blog) --- */
.page-header {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-header p {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 8px;
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 96px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* --- Category Filter --- */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.category-btn {
  cursor: pointer;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  transition: all var(--transition);
}

.category-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-btn.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --- Article (Blog Post) --- */
.article-container {
  max-width: 760px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-author {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}

.article-body p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.comparison-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--color-bg);
}

.emphasis-keyword {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--color-secondary);
}

.article-body ul {
  margin: 0 0 16px 1.5em;
  line-height: 1.9;
}

.article-body li {
  margin-bottom: 6px;
}

.article-reference {
  margin-top: 32px;
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.article-reference h3 {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 8px;
}

.article-reference p {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.article-cta {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
}

.article-cta-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.article-cta-text {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 28px;
  }
}

/* --- Policy Page --- */
.policy-container {
  max-width: 760px;
}

.policy-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.policy-intro {
  margin-bottom: 24px;
}

.policy-subheading {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 32px;
}

.policy-text {
  margin-bottom: 16px;
}

.policy-date {
  margin-top: 32px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- Mobile Nav --- */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--color-bg-white);
  padding: 20px;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.mobile-nav-close button {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-links a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.mobile-nav-links a:hover {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .header-nav {
    display: none !important;
  }
}

/* --- Inline Style Replacements --- */
.feature-citation {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.access-cta {
  margin-top: 16px;
}

.access-cta-btn {
  width: 100%;
}

.blog-link-section {
  padding: 40px 0;
}

.blog-link-inner {
  text-align: center;
}

.blog-link-text {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.blog-link-anchor {
  font-size: 16px;
  font-weight: 600;
}

/* --- Lightbox --- */
.lightbox-trigger {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.lightbox-trigger:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay {
    transition: none;
  }

  .lightbox-trigger:hover {
    transform: none;
  }
}

/* --- Scroll Animation --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
