/* AstroAroma (astroaroma.net) High-End Luxury Botanical Design System */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  /* Color Palette - High Luxury Botanical */
  --bg-main: #fcfbf7;
  --bg-card: #ffffff;
  --bg-sidebar: #f8f6f0;
  --bg-accent-light: #f2f6f4;
  
  --primary-color: #1b3b32;       /* Deep Imperial Emerald Green */
  --primary-hover: #122822;
  --primary-light: #2d5a4c;
  
  --accent-gold: #c69214;         /* Rich Luxury Gold */
  --accent-gold-light: #f4ebd0;
  --accent-rose: #8a5a73;         /* Elegant Deep Rose / Lavender */
  
  --cta-amazon: #232f3e;         /* Amazon Sleek Dark Luxury */
  --cta-amazon-hover: #37475a;
  
  --text-dark: #111827;          /* Ultra-dark solid charcoal for senior high-contrast readability */
  --text-muted: #374151;
  --text-light: #6b7280;
  
  --border-color: #e5e7eb;
  --border-soft: #f3f4f6;
  --border-gold: #e6cb7a;
  
  --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  
  --font-size-base: 17px;         /* Large senior accessible text */
  --line-height-base: 1.85;
  
  --card-radius: 16px;
  --box-shadow: 0 12px 35px rgba(27, 59, 50, 0.08);
  --box-shadow-hover: 0 20px 45px rgba(27, 59, 50, 0.14);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-color); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* PR Banner Top */
.pr-banner {
  background: #f0f4f2; color: #4b5563; font-size: 13px; text-align: center; padding: 10px 16px; border-bottom: 1px solid #e5e7eb; font-weight: 500;
}
.pr-tag {
  background: var(--primary-color); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-right: 8px; letter-spacing: 0.05em;
}

/* Header - Fixed & Luxury Non-Wrapping Layout */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--accent-gold-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  justify-content: flex-start; /* Align logo and menu closer together */
  align-items: center;
  padding: 16px 0;
  gap: 40px; /* Elegant, premium layout gap */
}

.brand-logo {
  display: flex;
  flex-direction: column;
  white-space: nowrap; /* Fix title wrapping */
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 12.5px;
  color: #4b5563;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* Navigation - Flex Row & No Wrapping */
.main-nav {
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px; /* Spacing tightened as requested */
  align-items: center;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
  padding: 6px 12px; /* Padding tightened as requested */
  border-radius: 30px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(27, 59, 50, 0.2);
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
  z-index: 110;
}

.hamburger-menu span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger Transformations */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hamburger-menu {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    padding: 80px 24px 40px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .main-nav a {
    font-size: 17px;
    width: 100%;
    padding: 12px 20px;
  }
}

/* Adjust side padding for different devices to prevent text touching edges */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding: 24px 16px;
  }
  .cro-product-card {
    padding: 20px 16px;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1b3b32 0%, #264e43 100%);
  color: #ffffff;
  padding: 44px;
  border-radius: var(--card-radius);
  margin: 24px 0 40px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(198, 146, 20, 0.3);
}

.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(27, 59, 50, 0.08) 0%, rgba(38, 78, 67, 0.14) 100%);
  color: #1b3b32;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 20px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1.5px solid rgba(27, 59, 50, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hero-section .hero-badge {
  background: rgba(198, 146, 20, 0.35);
  color: #fef08a;
  border: 1px solid rgba(254, 240, 138, 0.5);
  box-shadow: none;
}
.hero-title { font-size: 33px; font-weight: 900; line-height: 1.35; margin-bottom: 16px; color: #ffffff; letter-spacing: 0.04em; }
.hero-desc { font-size: 16.5px; line-height: 1.85; opacity: 0.95; }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #fef08a 0%, #e6cb7a 100%);
  color: #1b3b32;
  font-weight: 800;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(254, 240, 138, 0.35);
  color: #122822;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff;
}

.hero-visual-single {
  flex-shrink: 0;
  width: 440px;
}

.hero-visual-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(254, 240, 138, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease;
}

.hero-visual-img:hover {
  transform: scale(1.03);
}

/* 2-Column Golden Ratio Layout */
.layout-wrapper { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin-bottom: 60px; }
.main-column { min-width: 0; }

/* Section Header */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 3px solid var(--primary-color);
}
.section-title { font-size: 24px; font-weight: 900; color: var(--primary-color); letter-spacing: 0.03em; }

/* Articles Grid */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--primary-color);
}
.article-thumb {
  position: relative;
  height: 220px;
  background: #1b3b32;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-gold);
}

.article-thumb::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(27, 59, 50, 0.45) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.08) brightness(0.97);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.08) rotate(-0.5deg);
  filter: contrast(1.06) saturate(1.15) brightness(1.02);
}

.category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, rgba(27, 59, 50, 0.95) 0%, rgba(38, 78, 67, 0.95) 100%);
  color: #fef08a;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
  border: 1px solid rgba(230, 203, 122, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.article-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.evidence-badge-mini { font-size: 12.5px; color: var(--accent-gold); font-weight: 800; margin-bottom: 8px; }
.article-title { font-size: 19.5px; font-weight: 800; line-height: 1.48; color: var(--text-dark); margin-bottom: 12px; }
.article-excerpt { font-size: 15.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--text-light); border-top: 1px solid var(--border-soft); padding-top: 14px; }

/* 💎 Luxury Product Card (CRO Optimized for AdSense/Amazon Approval Phase) */
.cro-product-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px;
  margin: 32px 0;
  box-shadow: var(--box-shadow);
  position: relative;
}
.cro-badge-rank {
  position: absolute; top: -14px; left: 24px; background: linear-gradient(135deg, #1b3b32 0%, #264e43 100%); color: #fef08a; font-weight: 900; font-size: 13px; padding: 4px 18px; border-radius: 20px; border: 1px solid var(--accent-gold); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cro-product-header { display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.cro-product-img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border-color); }
.cro-product-title { font-size: 21px; font-weight: 800; color: var(--primary-color); margin-bottom: 6px; }
.cro-product-rating { color: var(--accent-gold); font-weight: 900; font-size: 19px; }

/* Amazon Only Button - Hidden for initial inspection phase */
.cro-micro-copy {
  display: none !important;
}
.cro-buttons-group {
  display: none !important;
}
.btn-aff-amazon-only {
  display: none !important;
}
.ad-slot-box {
  display: none !important;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--card-radius); padding: 26px; box-shadow: var(--box-shadow); }
.widget-title { font-size: 19px; font-weight: 900; color: var(--primary-color); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }

.widget-sticky { display: none !important; }

/* Quick Aroma Finder */
.diag-btn-group { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.diag-btn {
  background: #ffffff; border: 1.5px solid var(--primary-color); color: var(--primary-color); font-weight: 800; font-size: 15.5px; padding: 14px; border-radius: 12px; cursor: pointer; text-align: left; transition: all 0.2s ease; display: flex; align-items: center; justify-content: space-between;
}
.diag-btn:hover { background: var(--primary-color); color: #ffffff; }

/* Ranking List */
.ranking-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.ranking-item { display: flex; gap: 14px; align-items: center; }
.ranking-num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-color); color: #ffffff; font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ranking-num.rank-1 { background: var(--accent-gold); color: #1b3b32; }

/* Footer */
.site-footer { background: #122822; color: #e5e7eb; padding: 52px 0 28px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2.2fr 1.1fr 1fr 1.2fr; gap: 32px; margin-bottom: 36px; }
.copyright { text-align: center; font-size: 13.5px; color: #9ca3af; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; }

@media (max-width: 992px) {
  .layout-wrapper { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero-title { font-size: 26px; }
  .hero-visual-single { width: 100%; }
  .hero-visual-img { height: 200px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* Editorial Detail Eyecatch Banner */
.article-detail-eyecatch {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--accent-gold-light);
  box-shadow: 0 16px 40px rgba(27, 59, 50, 0.18);
  margin-bottom: 28px;
  filter: contrast(1.05) saturate(1.1) brightness(0.98);
}

/* Mobile Responsive 2-Column Grid Layout for Articles */
@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .article-thumb {
    height: auto !important;
    aspect-ratio: 1.5 !important;
  }
  .category-tag {
    top: 8px !important;
    left: 8px !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
  .article-body {
    padding: 12px !important;
  }
  .evidence-badge-mini {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }
  .article-title {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }
  .article-excerpt {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    -webkit-line-clamp: 2 !important;
  }
  .article-meta {
    padding-top: 8px !important;
    font-size: 10px !important;
  }
}
/* Editorial trust and safety notes on statically rendered article pages */
.breadcrumbs { margin-bottom: 20px; font-size: 13.5px; line-height: 1.7; color: var(--text-light); }
.breadcrumbs a { color: var(--primary-color); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.article-meta { font-size: 13.5px; color: var(--text-light); margin-bottom: 20px; }
.article-content a { color: #075985; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; font-weight: 700; }
.article-content .table-scroll { width: 100%; overflow-x: auto; margin: 24px 0 30px; border: 1px solid var(--border-soft); border-radius: 10px; background: #ffffff; }
.article-content table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.article-content th,
.article-content td { padding: 12px 14px; border: 1px solid var(--border-soft); vertical-align: top; text-align: left; }
.article-content th { background: #f0f7f4; color: var(--primary-color); font-weight: 900; white-space: nowrap; }
.article-content td { color: var(--text-dark); }
.article-content tbody tr:nth-child(even) td { background: #fbfaf7; }
.editorial-disclaimer { margin-top: 36px; padding: 20px; border: 1px solid #d6c9ad; border-left: 5px solid #8a6a2f; border-radius: 10px; background: #fffaf0; color: #493d2a; font-size: 14px; line-height: 1.8; }
.related-articles { margin-top: 42px; padding: 24px; border-radius: 16px; background: #f7f4fb; border: 1px solid #e5dcef; }
.related-articles h2 { margin: 0 0 14px; font-size: 1.25rem; }
.related-articles ul { margin: 0; padding-left: 1.25rem; }
.related-articles li + li { margin-top: 10px; }
.related-articles a { color: #1559a6; font-weight: 700; text-decoration-line: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
