/* COLLEGRANCE - Refined Brand Style (Ver. 3.1 - Le Labo Inspired Fixes) */

:root {
  /* Color Palette - Industrial & Minimal */
  --color-text-main: #1a1a1a;      /* Charcoal Black */
  --color-text-sub: #555555;       /* Dark Gray */
  --color-accent: #1a1a1a;         /* Accent is also Black for uniformity */
  --color-bg: #ffffff;
  --color-bg-light: #f4f4f4;       /* Concrete/Paper Light Gray */
  --color-border: #e0e0e0;         /* Lighter border for subtle divisions */
  
  /* Typography */
  --font-serif: 'Zen Kaku Gothic Antique', sans-serif; /* Unified Brand Font */
  --font-sans: 'Zen Kaku Gothic Antique', sans-serif;  /* Unified Brand Font */
  --font-eng: 'Zen Kaku Gothic Antique', sans-serif;   /* Unified Brand Font (Replacing Courier for consistency) */
  --font-mono: 'Zen Kaku Gothic Antique', sans-serif;  /* Unified Brand Font */
  
  /* Spacing */
  --spacing-section: 140px;
  --spacing-content: 60px;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.9;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Le Labo Style Filter */
  filter: sepia(10%) grayscale(10%) contrast(95%) brightness(102%);
  transition: filter 0.6s ease, transform 0.6s ease;
}

img:hover {
  filter: sepia(0%) grayscale(0%) contrast(100%) brightness(100%);
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.mt-large { margin-top: 80px; }
.grayscale-bg { background-color: #f8f8f8; }

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-eng);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.1em;
}

.section-header {
  text-align: center;
  margin-bottom: 100px;
}

.section-header h2 {
  font-family: var(--font-eng);
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-sub);
  letter-spacing: 0.1em;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-quiz, .btn-text-arrow {
  display: inline-block;
  padding: 14px 50px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--color-text-main);
  color: #fff;
  border: 1px solid var(--color-text-main);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-text-main);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-text-main);
}

.btn-secondary:hover {
  background-color: var(--color-text-main);
  color: #fff;
}

.btn-quiz {
  background-color: #fff;
  color: var(--color-text-main);
  border: 1px solid var(--color-text-main);
  font-weight: 700;
}

.btn-text-arrow {
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--color-text-main);
  width: auto;
}

.btn-text-arrow:hover {
  opacity: 0.6;
  padding-right: 10px; /* Arrow movement effect */
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #eee;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-image {
  height: 28px;
  width: auto;
  filter: none; /* Logo shouldn't have filters */
}

.nav-menu {
  display: flex;
  gap: 50px;
}

.nav-menu a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-main);
  font-weight: 500;
  letter-spacing: 0.1em;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-main);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f4f4f4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-bottle-container {
  width: 200px;
  height: auto;
  margin: 0 auto;
}

.hero-bottle-image {
  width: 100%;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15)); /* Add depth */
}

.hero-text h1 {
  font-family: var(--font-serif);
  margin-bottom: 40px;
}

.hero-catch-main {
  font-size: 3.5rem;
  display: block;
  line-height: 1.2;
}

.hero-catch-sub {
  font-size: 1.5rem;
  display: block;
  margin-top: 15px;
  color: var(--color-text-sub);
}

.hero-cta-group {
  display: flex;
  gap: 20px;
}

/* Brand Message */
.brand-message-section {
  padding: var(--spacing-section) 0;
  text-align: center;
}

.brand-description {
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 2.4;
}

.brand-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Discovery Section */
.discovery-section {
  padding: var(--spacing-section) 0;
}

.discovery-block {
  text-align: center;
}

.discovery-block h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 40px;
  letter-spacing: 0.2em;
}

.category-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.category-grid.four-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%; /* Fill grid cell */
  text-align: center;
}

/* Category Icons */
.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%; /* 丸くする */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 15px;
  border: 1px solid rgba(0,0,0,0.1); /* 薄い枠線を入れてもいいかも */
}

.icon-citrus { background-color: #EBE65F; } /* C */
.icon-warm   { background-color: #FAF5BE; } /* W */
.icon-clean  { background-color: #5AB9BE; } /* M */
.icon-floral { background-color: #FFC3B9; } /* F */

.cat-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cat-en {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.cat-jp {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-sub);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.scene-item {
  border: 1px solid var(--color-border);
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.scene-item:hover {
  background-color: var(--color-text-main);
  color: #fff;
}

.scene-time {
  display: block;
  font-family: var(--font-eng);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.scene-jp {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Philosophy Section */
.philosophy-section {
  padding: var(--spacing-section) 0;
}

.philosophy-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.philosophy-image {
  flex: 1;
}

.philosophy-text {
  flex: 1;
}

.philosophy-text h2 {
  font-family: var(--font-eng);
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.philosophy-desc {
  margin-bottom: 40px;
  color: var(--color-text-sub);
}

/* Ranking Section */
.ranking-section {
  padding: var(--spacing-section) 0;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ranking-item {
  position: relative;
  text-align: center;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-text-main); /* 黒背景 */
  color: #fff;
  font-family: var(--font-eng);
  font-size: 1.4rem;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-weight: 500;
}

.rank-badge::before {
    content: "No.";
    font-size: 0.5em;
    margin-right: 2px;
    margin-top: 2px;
    opacity: 0.8;
    font-family: var(--font-mono);
}

.rank-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f9f9f9;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.rank-image img {
  width: 60%;
}

.rank-info span {
  display: block;
}

.rank-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  margin-bottom: 5px;
}

.rank-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

/* Reviews Carousel */
.reviews-section {
  padding: var(--spacing-section) 0;
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.reviews-carousel {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.reviews-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-left: max(40px, calc((100% - var(--container-width)) / 2 + 40px));
  padding-right: 40px;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 400px;
  background: #fff;
  padding: 50px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  scroll-snap-align: start;
}

.review-card:hover {
  border-color: var(--color-text-main);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.review-stars {
  color: var(--color-text-main);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.review-product {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 2.4em;
}

.review-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 30px;
}

/* Product Lineup (Simple for Top) */
.product-lineup-section {
  padding: var(--spacing-section) 0;
}

/* Product Grid Collection (4 columns) */
.product-grid-collection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .product-grid-collection {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid-collection {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .product-grid-collection::-webkit-scrollbar {
    display: none;
  }

  .product-card-simple {
    flex: 0 0 45%; /* Tablet: ~2 items */
    scroll-snap-align: start;
    max-width: none; /* Reset max-width constraint if any */
  }
}

/* Badge for Type */
.product-type-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 4px 8px;
  border: 1px solid #eee;
  color: #888;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.product-card-simple img {
    width: 100%; /* Fill the card width */
    aspect-ratio: 1; /* Ensure square */
    object-fit: contain; /* Keep aspect ratio */
    padding: 20px; /* Padding inside the gray box if needed, or just white */
    background-color: #fff;
}


.product-card-simple {
  text-align: center;
  padding: 20px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.product-card-simple:hover {
  border-color: #eee;
}

.product-card-simple img {
  width: 70%;
  margin: 0 auto 20px;
}

.product-info-simple .brand {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-sub);
  margin-bottom: 5px;
}

.product-info-simple .name {
  font-family: var(--font-serif);
  font-size: 1rem;
}

.lineup-footer {
  text-align: center;
}

/* Trust Section */
.trust-section {
  padding: var(--spacing-section) 0;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 80px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.stat-item {
  text-align: center;
  padding: 60px 20px;
  border-right: 1px solid #eee;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number, .stat-number-text {
  font-family: var(--font-mono); /* Changed to Mono for industrial look */
  font-size: 3.5rem; /* Increased size */
  font-weight: 700;
  line-height: 1;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-text-sub);
  text-transform: uppercase;
}

.certification-showcase {
  text-align: center;
  margin-top: 60px;
}

.certification-showcase img {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #eee;
  padding: 10px;
}

/* About Section Fix */
.about-section {
  padding: var(--spacing-section) 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 80px;
  flex-direction: row-reverse; /* Image on right */
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-text h2 {
  font-family: var(--font-eng);
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.key-features {
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
}

.feature-item {
  margin-bottom: 30px;
}

.feature-item h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

/* Service Section */
.service-section {
  padding: var(--spacing-section) 0;
  background-color: #fafafa;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  background: #fff;
  padding: 0 0 30px 0;
  border: 1px solid #eee;
}

.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin: 0 20px 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  margin: 0 20px;
  line-height: 1.6;
}

/* Brands Section Fix */
.brands-section {
  padding: var(--spacing-section) 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  gap: 20px;
  text-align: center;
}

.brand-card {
  padding: 30px 10px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.brand-card:hover {
  border-color: var(--color-border);
  background-color: #fafafa;
}

.brand-logo {
  font-family: var(--font-eng);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.brand-card p {
  font-size: 0.75rem;
  color: var(--color-text-sub);
}

/* LINE Concierge Section - REFINED */
.line-concierge-section {
  padding: 120px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.line-concierge-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.concierge-title {
  font-family: var(--font-eng);
  font-size: 3rem;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.concierge-divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-text-main);
  margin: 30px auto;
}

.concierge-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-text-sub);
  margin-bottom: 50px;
  line-height: 2.2;
}

.btn-line-concierge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 80px;
  background-color: var(--color-text-main);
  color: #fff;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: all 0.4s ease;
  min-width: 300px;
}

.btn-line-concierge:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.btn-sub {
  font-size: 0.7rem;
  opacity: 0.8;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

.line-id-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  margin-top: 20px;
  letter-spacing: 0.1em;
}

/* CTA Section Fix */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for contrast */
  color: #fff;
  text-align: center;
}

.cta-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.cta-background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(120%);
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  pointer-events: auto;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #fff;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 50px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 11;
}

.cta-buttons .btn-primary {
  background-color: #fff;
  color: #1a1a1a;
  border-color: #fff;
}

.cta-buttons .btn-primary:hover {
  background-color: transparent;
  color: #fff;
}

.cta-buttons .btn-secondary {
  border-color: #fff;
  color: #fff;
}

.cta-buttons .btn-secondary:hover {
  background-color: #fff;
  color: #1a1a1a;
}


/* Footer */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--color-text-main);
  background-color: #fff;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.footer-brand h3 {
  font-family: var(--font-eng);
  margin-bottom: 15px;
}

/* Modal */
.quiz-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
}

.quiz-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.quiz-option {
  padding: 30px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.quiz-option:hover {
  border-color: var(--color-text-main);
  background: var(--color-text-main);
  color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  :root {
    --spacing-section: 80px;
    --header-height: 70px;
  }

  /* Fix for LINE Concierge Card Padding and Button on Mobile */
  .line-concierge-card {
    padding: 40px 20px;
    width: 100%;
  }

  .btn-line-concierge {
    width: 100%;
    min-width: auto;
    padding: 20px;
  }

  .hero-catch-main {
    font-size: 2.2rem;
  }

  .hero-catch-sub {
    font-size: 1.1rem;
  }

  .hero-bottle-container {
    width: 140px;
  }
  
  .nav-menu { display: none; }
  .hamburger { display: flex; flex-direction: column; gap: 6px; }
  .hamburger span { width: 24px; height: 1px; background: #000; }

  .scene-grid, .ranking-grid, .product-grid-simple, .reviews-grid, .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-grid-collection {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 15px;
  }

  .philosophy-content, .about-content {
    flex-direction: column;
  }
  
  .about-content {
      flex-direction: column-reverse;
  }
  
  .trust-stats {
    grid-template-columns: 1fr 1fr;
    border: none;
  }
  
  .stat-item {
      border-right: none;
      border-bottom: 1px solid #eee;
      padding: 30px 10px;
  }

  .brands-grid {
      grid-template-columns: 1fr 1fr;
  }
  
  .service-grid {
      grid-template-columns: 1fr;
  }
  
  .cta-buttons {
      flex-direction: column;
  }
}

/* Small Mobile Fix (iPhone/Pixel vertical) */
@media (max-width: 500px) {
    .product-grid-collection {
        /* Carousel adjustments for mobile */
        gap: 15px;
    }
    
    .product-card-simple {
        flex: 0 0 80%; /* Mobile: 1 main item + peek */
        scroll-snap-align: center;
        
        /* Restore card look for carousel */
        padding: 20px;
        border: 1px solid #eee;
        border-bottom: 1px solid #eee;
        background: #fff;
    }
    
    .product-card-simple:last-child {
        border-bottom: 1px solid #eee;
    }
    
    .product-image-container {
        width: 100%; /* Full width in card */
        margin: 0 auto 15px;
        min-height: auto;
    }
    
    .notes-overlay {
        padding: 10px;
    }
    
    .mobile-tap-hint {
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
}
/* Ranking Carousel (Updated) */
.ranking-carousel {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.ranking-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-left: max(40px, calc((100% - var(--container-width)) / 2 + 40px));
  padding-right: 40px;
}

.ranking-track::-webkit-scrollbar {
  display: none;
}

.ranking-item.carousel-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  text-align: center;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.btn-product {
  flex: 1;
  padding: 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-main);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-product:hover {
  background: var(--color-text-main);
  color: #fff;
  border-color: var(--color-text-main);
}

.btn-product.amazon-btn {
  border-color: #eee;
}

.btn-product.stripe-btn {
  background: #f9f9f9;
}

/* LINE Floating Action Button */
.line-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 5px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border: 1px solid #eee;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  width: 60px; /* Initial width (icon only) */
  white-space: nowrap;
}

.line-fab:hover {
  width: 240px; /* Expand on hover */
  padding-right: 20px;
}

.line-fab-icon {
  width: 48px;
  height: 48px;
  background: #06C755;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
}

.line-fab-text {
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.line-fab:hover .line-fab-text {
  opacity: 1;
}

/* Ranking Badge Adjustment for Carousel (Removed Override) */
/*
.ranking-item.carousel-item .rank-badge {
  font-size: 3rem;
  left: 10px;
  top: -10px;
}
*/
/* Video Split Section Styling (Refined for Vertical Video) */
.video-split-section {
  padding: 100px 0;
  overflow: hidden;
}

.video-split-section.bg-light {
  background-color: #fafafa;
}

.split-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.split-content.reverse {
  flex-direction: row-reverse;
}

.split-media {
  flex: 0 0 360px; /* Fixed width for vertical video look */
  position: relative;
  border-radius: 4px; /* Slight rounding for "card" feel */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.vertical-video {
  width: 100%;
  height: auto;
  aspect-ratio: 9/16; /* Vertical Aspect Ratio */
  object-fit: cover;
  display: block;
  filter: sepia(10%) grayscale(10%) contrast(95%); /* Consistent filter */
}

.split-text {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.split-title {
  font-family: var(--font-eng);
  font-size: 3rem;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--color-text-main);
}

.split-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text-sub);
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.split-desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.2;
  color: var(--color-text-sub);
}

/* Mobile Responsive for Split Video */
@media (max-width: 768px) {
  .video-split-section {
    padding: 60px 0;
  }

  .split-content, .split-content.reverse {
    flex-direction: column;
    gap: 40px;
  }

  .split-media {
    flex: 0 0 auto;
    width: 80%; /* Slightly smaller on mobile */
    max-width: 300px;
  }

  .split-text {
    text-align: center;
    padding: 0 20px;
  }

  .split-title {
    font-size: 2.4rem;
  }
}

/* Journal Section (Aesop Style) */
.journal-section {
  padding: var(--spacing-section) 0;
  background-color: #fafafa;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.journal-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.journal-image-wrapper {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 25px;
}

.journal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: sepia(5%) grayscale(10%);
}

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

.journal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journal-category {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: #666;
}

.journal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--color-text-main);
}

.journal-excerpt {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.journal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.journal-link:hover {
  opacity: 0.7;
}

.journal-link .arrow {
  transition: transform 0.3s;
}

.journal-link:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .journal-title {
    font-size: 1.3rem;
  }
}

/* Carousel Navigation Improvements */
.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #333;
  font-size: 1.2rem;
  opacity: 0; /* Hidden by default until hover or scroll logic */
  pointer-events: none;
}

.carousel-container:hover .carousel-nav {
  opacity: 1;
  pointer-events: auto;
}

.carousel-nav:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

/* Always show on touch devices or keep hidden? Let's show on hover for desktop, always for touch if needed, but touch uses swipe.
   Let's force visible on PC for intuitiveness. */
@media (min-width: 769px) {
  .carousel-nav {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Scroll Hint Overlay */
.ranking-carousel::after, .reviews-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.carousel-container.can-scroll-right .ranking-carousel::after {
  opacity: 1;
}

/* Make track relative for positioning context if needed */
.ranking-track, .reviews-track {
  position: relative;
}

/* Mega Menu Styles (Aesop/Oura Inspired) */
.nav-item-has-megamenu {
    position: static; /* Allows full width relative to header or nav */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #FFFEF2; /* Cream Aesop-like background */
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px 0 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item-has-megamenu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr; /* Category, Brand, Featured */
    gap: 60px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mega-menu-list li a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
    font-weight: 400;
}

.mega-menu-list li a:hover {
    color: #8c8c8c;
    text-decoration: underline;
}

.mega-menu-list li a .en-sub {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
    font-family: var(--font-serif);
    font-style: italic;
}

.mega-menu-list li a.view-all {
    font-weight: 500;
    color: #000;
    margin-top: 10px;
    border-bottom: 1px solid #000;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 2px;
}

.mega-menu-list li a.view-all:hover {
    color: #555;
    border-color: #555;
}

/* Brand List Grid inside column */
.mega-menu-list.brand-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
}

.mega-menu-list.brand-list li a {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* Featured Item */
.featured-card {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
    transition: opacity 0.3s;
    background: #fff;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.featured-card:hover {
    opacity: 0.8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.featured-image {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(10%) grayscale(10%);
}

.featured-info {
    flex: 1;
}

.featured-info h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 0 0 5px;
    font-weight: 600;
    color: #1a1a1a;
}

.featured-info .brand-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 10px;
}

.featured-info .featured-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure Navbar parent allows full width */
.navbar .container {
    position: relative; /* Default */
}

/* Mobile Hide */
@media (max-width: 992px) {
    .mega-menu {
        display: none; /* Hide on mobile for now, use regular menu */
    }
}

/* Mega Menu Positioning Fix */
@media (min-width: 992px) {
    .header .container {
        position: static; /* Key to allowing mega-menu to be full screen width relative to header */
    }
}

/* Active State for Mega Menu Trigger */
.nav-item-has-megamenu:hover > a {
    color: #8c8c8c;
    text-decoration: underline;
}

/* Mega Menu Layout Fix */
.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%; /* Ensure full height of nav */
}

/* Ensure mega menu aligns relative to full width */
@media (min-width: 992px) {
    .header .container {
        position: static; /* Reset relative positioning for mega menu to span full width */
    }
    
    .nav-brand {
        margin-right: auto; /* Push menu to right if flexbox */
        /* But in our layout, it's justify-content: space-between */
    }
}

/* ==========================================================================
   Product Collection & Overlay Styles (Refined)
   ========================================================================== */

.product-card-simple {
  position: relative;
  text-align: center;
  padding: 20px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden; /* For overlay */
  background-color: #fff;
}

.product-card-simple:hover {
  border-color: #eee;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.product-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    /* Ensure there is a minimum height for the container so overlay has space */
    min-height: 200px;
}

.product-image-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1; /* Ensure square */
}

/* Overlay for Notes (Desktop Hover) */
.notes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* Increased opacity for readability */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Let clicks pass through to image initially */
    z-index: 10;
}

/* Show on hover for desktop */
@media (min-width: 769px) {
    .product-card-simple:hover .notes-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Mobile Interaction - Toggle Class */
.product-card-simple.show-notes .notes-overlay {
    opacity: 1;
    pointer-events: auto;
}

.notes-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.notes-list {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #555;
    line-height: 1.8;
    text-align: left;
    width: 100%;
}

.notes-row {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
}

.note-label {
    font-family: var(--font-mono);
    font-weight: bold;
    width: 40px;
    flex-shrink: 0;
    color: #999;
    font-size: 0.7rem;
}

.note-value {
    flex: 1;
    word-break: normal; /* Don't break aggressively if we have space */
}

/* Color Categorization Indicator */
.color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #eee;
    background: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.filter-btn:hover, .filter-btn.active {
    background: #f9f9f9;
    border-color: #333;
    color: #1a1a1a;
}

.filter-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Mobile Hint */
.mobile-tap-hint {
    display: none;
    font-size: 0.65rem;
    color: #aaa;
    margin-top: 12px; /* Increased spacing */
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none; /* Prevent clicking text */
}

@media (max-width: 768px) {
    .mobile-tap-hint {
        display: block;
    }
    /* On mobile, make sure image is clickable to toggle */
    .product-image-container {
        cursor: pointer;
    }
    /* Ensure notes are readable on mobile */
    .notes-overlay {
        background-color: rgba(255, 255, 255, 0.98);
    }
}

/* Hero Responsiveness Fixes */
@media (max-width: 768px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
  }
  
  .hero-cta-group .btn-quiz,
  .hero-cta-group .btn-primary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .hero-text h1 {
    margin-bottom: 20px;
  }
  
  .hero-catch-main {
    font-size: 2.8rem;
  }
  
  .hero-catch-sub {
    font-size: 1.2rem;
  }
  
  .hero-bottle-container {
    width: 120px;
    margin-bottom: 20px;
  }
}
