@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  /* Premium HSL Color Palette */
  --hue: 215;
  --color-primary: hsl(var(--hue), 45%, 22%); /* Deep Navy */
  --color-primary-light: hsl(var(--hue), 30%, 95%);
  --color-accent: hsl(35, 35%, 65%); /* Soft Gold */
  --color-accent-light: hsl(35, 40%, 92%);
  --color-success: hsl(145, 30%, 45%); /* Sage Green */
  --color-error: hsl(0, 50%, 60%);
  
  --color-text: hsl(var(--hue), 20%, 20%);
  --color-text-light: hsl(var(--hue), 15%, 45%);
  --color-white: #ffffff;
  --color-bg: hsl(var(--hue), 20%, 98%);
  --color-glass: rgba(255, 255, 255, 0.75);
  --color-border: rgba(var(--hue), 20%, 90%, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 20px -5px rgba(0,0,0,0.05), 0 5px 10px -5px rgba(0,0,0,0.02);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 30px 60px -12px rgba(0,0,0,0.12);
  
  --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(at 0% 0%, hsla(215, 30%, 90%, 0.3) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(35, 30%, 90%, 0.3) 0px, transparent 50%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

/* Header with Glassmorphism */
header {
  background-color: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

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

.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}

.nav-menu .nav-chores:hover { color: #8c6a4a; }
.nav-menu .nav-work:hover { color: var(--color-primary); }
.nav-menu .nav-relax:hover { color: #558b2f; }
.nav-menu .nav-goout:hover { color: #d84315; }

/* Subtitle for Nav */
.nav-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-sub {
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* Mobile Menu */
.mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-navy);
}

/* Search Bar */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  margin: 0 1.5rem;
  flex: 1;
  max-width: 300px;
  transition: var(--transition);
}

.search-container:focus-within {
  background-color: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-navy);
}

.search-input {
  border: none;
  background: none;
  width: 100%;
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 1rem;
  padding-left: 0.5rem;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--color-navy);
  transform: scale(1.1);
}

.search-btn:active {
  transform: scale(0.9);
}


.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--color-border);
  display: block;
  transition: var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--color-beige);
}

.search-result-title {
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--color-navy);
  display: block;
  margin-bottom: 2px;
}

.search-result-sub {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 0.4rem;
  display: flex;
  align-items: center;
}
.breadcrumb span::after {
  content: "›";
  font-size: 1rem;
}
.breadcrumb .current {
  color: var(--color-text-light);
  font-weight: normal;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  padding: 6rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
  border-radius: 0 0 3rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layouts - Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--color-beige-dark);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.card {
  background-color: var(--color-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  align-self: flex-start;
}

.tag-chores { background-color: var(--color-accent-light); color: #8c6a4a; }
.tag-work { background-color: var(--color-primary-light); color: var(--color-primary); }
.tag-relax { background-color: hsl(145, 30%, 95%); color: var(--color-success); }
.tag-goout { background-color: hsl(10, 40%, 95%); color: #d84315; }

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--color-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 1.2rem;
}

/* Two-column layout for main page and sidebar */
.layout-with-sidebar {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
}

.main-content {
  flex: 1;
  min-width: 0; /* Prevents overflow */
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* Sidebar ranking */
.widget {
  background-color: var(--color-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.8rem;
  border-bottom: 2px solid var(--color-accent-light);
  padding-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ranking-list {
  list-style: none;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--color-border);
}

.ranking-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rank-badge {
  width: 24px;
  height: 24px;
  background-color: var(--color-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.rank-1 { background-color: #d4af37; } /* Gold */
.rank-2 { background-color: #c0c0c0; } /* Silver */
.rank-3 { background-color: #cd7f32; } /* Bronze */

.ranking-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.ranking-info {
  flex: 1;
}

.ranking-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Template */
.article-header {
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  padding: 5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-hero-img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
  box-shadow: var(--shadow-lg);
}

.article-title {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin: 1.5rem 0;
  line-height: 1.2;
  font-weight: 700;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 4rem;
}

.article-body h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin: 3.5rem 0 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--color-accent-light);
  font-weight: 700;
}

.article-body h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 2.5rem 0 1.2rem;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 1.5rem;
}

/* Information Blocks within Article */
.info-box {
  background-color: var(--color-beige);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--color-beige-dark);
}

.info-box-title {
  font-weight: bold;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  display: block;
}

.review-box {
  background-color: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.review-box::before {
  content: '\201D';
  font-size: 5rem;
  color: rgba(31, 54, 83, 0.1);
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: serif;
  line-height: 1;
}

/* Amazon / Rakuten Affiliate Buttons */
.affiliate-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  transition: var(--transition);
  min-width: 250px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-amazon {
  background-color: #ff9900;
  color: white;
}
.btn-amazon:hover { background-color: #e68a00; }

.btn-rakuten {
  background-color: #bf0000;
  color: white;
}
.btn-rakuten:hover { background-color: #990000; }

.btn-a8 {
  background-color: #28a745;
  color: white;
}
.btn-a8:hover { background-color: #218838; }

.btn-moshimo {
  background-color: #ff9800;
  color: white;
}
.btn-moshimo:hover { background-color: #e68900; }

/* Ad Space */
.ad-space {
  background-color: #f1f1f1;
  color: #999;
  text-align: center;
  padding: 2rem;
  margin: 3rem 0;
  border: 1px dashed #ccc;
  border-radius: 4px;
}

/* Footer */
footer {
  background-color: var(--color-navy);
  color: white;
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: white;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Page Specific: Policy & Contact */
.page-container {
  max-width: 800px;
  margin: 3rem auto 6rem;
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.policy-content h2 {
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-beige-dark);
  padding-left: 1rem;
}

.policy-content p {
  margin-bottom: 1.2rem;
  color: var(--color-text);
  line-height: 1.8;
}

.policy-content a {
  color: var(--color-navy);
  text-decoration: underline;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.form-label .required {
  color: #e63946;
  margin-left: 4px;
  font-size: 0.8rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background-color: #fcfcfc;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 4px rgba(31, 54, 83, 0.05);
  background-color: var(--color-white);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-submit-btn {
  background-color: var(--color-navy);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  align-self: center;
  min-width: 200px;
  box-shadow: var(--shadow-sm);
}

.form-submit-btn:hover {
  background-color: #2a4970;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-success-msg {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success-msg h2 {
  color: #2a9d8f;
  margin-bottom: 1rem;
}

.form-success-msg p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 900px) {
  .layout-with-sidebar {
    display: flex;
    flex-direction: column;
  }
  .main-content {
    order: 2;
  }
  .sidebar {
    display: contents;
  }
  .category-widget {
    order: 1;
    margin-bottom: 2rem;
  }
  .ranking-widget {
    order: 3;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 2rem 1.5rem;
    margin: 1.5rem 1rem 4rem;
  }
  .nav-menu {
    display: none; /* Hide on mobile by default */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.show {
    display: flex;
  }
  .mobile-btn {
    display: block;
  }
  .affiliate-btns {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .article-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   1. Premium UI/UX Updates (Glassmorphism & Dark Mode)
   ========================================================================== */

/* Glassmorphism Header */
header {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Enhanced Hover Animations */
.card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}
.card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-white: #1a1a1a;
    --color-text: #e0e0e0;
    --color-text-light: #a0a0a0;
    --color-bg: #121212;
    --color-border: #333333;
    --color-beige: #2a2a2a;
    --color-beige-dark: #444444;
  }
  
  header {
    background-color: rgba(26, 26, 26, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .logo { color: #ffffff; }

  .card, .widget, .page-container {
    background-color: #1e1e1e !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
  }
  
  .article-header { background-color: #1e1e1e !important; }
  .info-box { background-color: #252525 !important; border-left-color: #555 !important; }
  .episode-box { background-color: #222 !important; color: #e0e0e0 !important; }
  .review-box { background-color: #1e1e1e !important; border-color: #333 !important; }
  .search-container { background-color: #333 !important; }
  .search-input { color: #fff !important; }
  .search-results { background-color: #222 !important; border: 1px solid #444; }
  .search-result-item:hover { background-color: #333 !important; }
  .search-result-title { color: #fff !important; }
  
  .rank-badge { border: 2px solid #1e1e1e; }
  table th, table td { border-color: #333 !important; }
  table tr { background-color: transparent !important; }
  table tr:nth-child(even) { background-color: #222 !important; }
}

/* ==========================================================================
   2. Product Link Card (商品リンクカード)
   ========================================================================== */
.product-card {
  display: flex;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .product-card { flex-direction: column; text-align: center; }
}
.product-card-img {
  flex: 0 0 150px;
  max-width: 150px;
}
.product-card-img img {
  width: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.product-card-info {
  flex: 1;
}
.product-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.product-card-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .product-card-btns { justify-content: center; }
}
.product-card-btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  color: #fff;
  flex: 1;
  min-width: 120px;
  transition: transform 0.2s, opacity 0.2s;
}
.product-card-btns a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.btn-amz { background-color: #f90; }
.btn-rak { background-color: #bf0000; }
.btn-yah { background-color: #ff0033; }

/* ==========================================================================
   3. Table of Contents & Carousel
   ========================================================================== */
/* TOC */
.toc-container {
  background: var(--color-beige);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
}
.toc-title {
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-navy);
}
.toc-list {
  list-style: none;
  padding-left: 0;
}
.toc-list li {
  margin-bottom: 0.5rem;
}
.toc-list a {
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: var(--transition);
}
.toc-list a:hover {
  color: var(--color-navy);
  text-decoration-color: var(--color-navy);
}
.toc-h3 {
  padding-left: 1.5rem;
  font-size: 0.85rem;
}

/* Carousel */
.carousel-wrapper {
  margin-bottom: 4rem;
  position: relative;
}
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar {
  height: 8px;
}
.carousel::-webkit-scrollbar-track {
  background: var(--color-beige);
  border-radius: 4px;
}
.carousel::-webkit-scrollbar-thumb {
  background: var(--color-navy);
  border-radius: 4px;
}
.carousel .card {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .carousel .card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 600px) {
  .carousel .card { flex: 0 0 85%; }
}

