/* ============================================================
   MIDORI (緑) — components.css
   Buttons · Badges · Navigation · Cursor · Cards
   ============================================================ */

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  transition: background var(--ease-med), color var(--ease-med),
              border-color var(--ease-med), transform var(--ease-med),
              box-shadow var(--ease-med);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

/* Sizes */
.btn--lg { padding: var(--sp-5) var(--sp-10); }
.btn--sm { padding: var(--sp-2) var(--sp-5); font-size: var(--text-xs); }

/* Primary */
.btn--primary {
  background: var(--color-forest);
  color: var(--color-cream);
  border-color: var(--color-forest);
}
.btn--primary:hover {
  background: var(--color-jade);
  border-color: var(--color-jade);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Shimmer on primary */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.btn--primary:hover::after { transform: translateX(100%); }

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}
.btn--outline:hover {
  background: var(--color-forest);
  color: var(--color-cream);
  transform: translateY(-2px);
}

/* Ghost (for dark backgrounds) */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background: var(--color-pale);
  color: var(--color-jade);
  border: 1px solid rgba(74,124,89,0.22);
}
.badge--gold {
  background: rgba(201,168,76,0.12);
  color: var(--color-gold);
  border-color: rgba(201,168,76,0.32);
}
.badge--sm { padding: 2px var(--sp-2); font-size: 0.68rem; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--ease-med), box-shadow var(--ease-med);
}
.nav.scrolled {
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  text-decoration: none;
}
.nav__logo-text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-forest);
}
.nav__logo-jp {
  font-family: var(--font-japanese);
  font-size: var(--text-xl);
  color: var(--color-jade);
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-forest);
  position: relative;
  transition: color var(--ease-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--color-jade);
  transition: width var(--ease-med);
}
.nav__link:hover::after { width: 100%; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: transparent;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--color-forest);
  transition: all var(--ease-med);
  border-radius: 2px;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(14px);
  padding: var(--sp-8) var(--container-px);
  flex-direction: column;
  gap: var(--sp-6);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--color-cream-dark);
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity var(--ease-med), transform var(--ease-med);
  pointer-events: none;
}
.nav__mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile-links { display: flex; flex-direction: column; gap: var(--sp-4); }
.nav__mobile-links .nav__link { font-size: var(--text-xl); }

/* ===== Custom Cursor (pointer devices only) ===== */
.cursor, .cursor-dot {
  display: none;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity var(--ease-fast);
  top: 0; left: 0;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    width: 38px; height: 38px;
    border: 1.5px solid var(--color-jade);
    transition: width 0.25s var(--ease-spring), height 0.25s var(--ease-spring),
                border-color var(--ease-med), background var(--ease-med),
                transform 0.12s linear;
  }
  .cursor-dot {
    display: block;
    width: 6px; height: 6px;
    background: var(--color-jade);
    transition: transform 0.07s linear;
  }
  .cursor.hovering {
    width: 60px; height: 60px;
    border-color: var(--color-gold);
    background: rgba(201,168,76,0.07);
  }
}

/* ===== Trust Bar ===== */
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  text-align: center;
}
.trust-item__row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.trust-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-forest);
  line-height: 1;
}
.trust-item__suffix {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-jade);
}
.trust-item__label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  max-width: 160px;
  line-height: 1.4;
}
.trust-divider {
  width: 1px; height: 60px;
  background: var(--color-cream-dark);
}

/* ===== Product Cards ===== */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(74,124,89,0.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease-med), box-shadow var(--ease-med);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Featured card */
.product-card--featured {
  background: var(--color-forest);
  color: var(--color-cream);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.product-card--featured:hover {
  transform: scale(1.02) translateY(-10px);
  box-shadow: var(--shadow-xl);
}
.product-card--featured .product-card__tier,
.product-card--featured .product-card__name { color: var(--color-cream); }
.product-card--featured .product-card__desc,
.product-card--featured .flavor-label       { color: rgba(245,240,232,0.70); }
.product-card--featured .flavor-bar span    { color: rgba(245,240,232,0.70); }
.product-card--featured .flavor-bar__track  { background: rgba(255,255,255,0.12); }
.product-card--featured .price-weight       { color: rgba(245,240,232,0.60); }

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.product-card:hover .product-card__image { transform: scale(1.06); }

.product-card__tag {
  position: absolute;
  top: var(--sp-4); left: var(--sp-4);
  padding: 3px var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-white);
  color: var(--color-forest);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.product-card__tag--gold {
  background: var(--color-gold);
  color: var(--color-white);
}

.product-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1;
}
.product-card__tier {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-jade);
}
.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-forest);
}
.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Flavor bars */
.flavor-profile { display: flex; flex-direction: column; gap: var(--sp-2); }
.flavor-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--sp-1);
}
.flavor-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.flavor-bar span { width: 50px; }
.flavor-bar__track {
  flex: 1;
  height: 4px;
  background: var(--color-pale);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.flavor-bar__fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--color-jade), var(--color-jade-light));
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.25,0.46,0.45,0.94);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(74,124,89,0.10);
}
.product-card--featured .product-card__footer { border-top-color: rgba(255,255,255,0.12); }

.product-card__price { display: flex; align-items: baseline; gap: var(--sp-1); }
.price-amount {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-forest);
  line-height: 1;
}
.product-card--featured .price-amount { color: var(--color-cream); }
.price-unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-jade);
}
.price-weight { font-size: var(--text-xs); color: var(--color-text-light); }

/* ===== Benefit Items ===== */
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(74,124,89,0.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease-med), box-shadow var(--ease-med);
}
.benefit-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }

.benefit-item__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-item__icon span {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
}
.benefit-item__content strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: var(--sp-1);
}
.benefit-item__content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  border: 1px solid rgba(74,124,89,0.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease-med), box-shadow var(--ease-med);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.testimonial-card__stars {
  color: var(--color-gold);
  font-size: var(--text-lg);
  letter-spacing: 2px;
}
.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.testimonial-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__avatar span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
}
.testimonial-card__name {
  display: block;
  font-weight: 600;
  font-style: normal;
  font-size: var(--text-base);
  color: var(--color-forest);
}
.testimonial-card__role {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
