/* ============================================================
   COMPONENTS — buttons, cards, slideshows, badges
   ============================================================ */

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent-warm);
  color: var(--warm-white);
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
  background: var(--bg-mid);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid rgba(243, 234, 214, 0.4);
  color: var(--text-on-dark);
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn-white {
  display: inline-block;
  background: var(--warm-white);
  color: var(--bg-dark);
  padding: 18px 56px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn-white:hover {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

/* --- Step badge --- */
.step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--accent-green);
  padding: 6px 18px;
  margin-bottom: 24px;
}
.step-badge--light {
  color: var(--bg-dark);
  background: var(--accent-green);
}

/* --- Section label --- */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--accent-main);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-main);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.section-heading em {
  font-style: italic;
  color: var(--accent-warm);
}

/* --- picture 要素のレイアウト崩れ防止 --- */
.hero-slideshow .slide picture,
.nuts-slideshow .slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.nut-cell picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Hero slideshow (recipe photos) --- */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slideshow .slide.active { opacity: 1; }
.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Prev / Next buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(46, 31, 15, 0.45);
  border: none;
  color: var(--text-on-dark);
  font-size: 36px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}
.slide-btn:hover { background: rgba(46, 31, 15, 0.75); }
.slide-btn--prev { left: 16px; }
.slide-btn--next { right: 16px; }

/* Logo overlay — top right, sized relative to viewport */
.hero-slideshow .slide-logo {
  position: absolute;
  top: 28px;
  right: 28px;
  width: clamp(120px, 14vw, 180px);
  z-index: 10;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.45));
}

/* --- Nuts grid (concept section) --- */
.nut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
@media (max-width: 768px) {
  .nut-grid { grid-template-columns: repeat(2, 1fr); }
}
.nut-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 8px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.nut-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.nut-cell:hover img { transform: scale(1.06); }
.nut-cell-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(46, 31, 15, 0.65);
  width: calc(100% + 16px);
  margin: 0 -8px -12px;
  padding: 8px 4px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nut-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-on-dark);
}
.nut-price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-green);
  margin-top: 6px;
}

/* --- Menu tabs --- */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 56px;
}
.menu-tab {
  padding: 12px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.menu-tab.active,
.menu-tab:hover {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}

/* --- Menu cards --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3px;
}
.menu-card {
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.menu-card:hover { transform: translateY(-4px); }
.menu-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-green);
  transition: width 0.4s ease;
}
.menu-card:hover::after { width: 100%; }
.menu-card-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.menu-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.menu-card-price { margin-top: auto; }
.menu-card-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 12px;
}
.menu-card-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.menu-card-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 20px;
}
.menu-card-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-warm);
}
.menu-card-price span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* --- EC jar cards --- */
.jar-card {
  background: rgba(46, 31, 15, 0.05);
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.jar-card:hover {
  background: rgba(46, 31, 15, 0.09);
  border-color: var(--accent-warm);
}
.jar-card--active {
  background: rgba(46, 31, 15, 0.12);
  border-color: var(--accent-warm);
  border-width: 2px;
}
.jar-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
}
.jar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.jar-size {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-warm);
}
.jar-price {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-sub);
}

/* --- Nutsbutter slideshow (EC section) --- */
.nuts-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.nuts-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.nuts-slideshow .slide.active { opacity: 1; }
.nuts-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nuts-slideshow .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(46, 31, 15, 0.88));
}
.nuts-slideshow .slide-caption .nut-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-on-dark);
  line-height: 1.2;
}
.nuts-slideshow .slide-caption .nut-caption-price {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent-green);
  margin-top: 4px;
}

/* --- Location info list --- */
.info-list {
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.info-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent-main);
  text-transform: uppercase;
  padding-top: 2px;
}
.info-value {
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
}
.info-value a {
  color: var(--accent-warm);
  border-bottom: 1px solid var(--accent-warm);
  padding-bottom: 2px;
}

/* --- Map placeholder --- */
.map-placeholder {
  background: var(--bg-secondary);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  gap: 16px;
}
.map-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-warm);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-icon::after {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--warm-white);
  border-radius: 50%;
  transform: rotate(45deg);
}
.map-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
}
.map-link {
  font-size: 13px;
  color: var(--accent-warm);
  border-bottom: 1px solid var(--accent-warm);
  padding-bottom: 2px;
}

/* --- Step 3 dark card variant --- */
.step3-card--dark {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}
.step3-card--dark .step3-card-label {
  color: var(--accent-green);
}
.step3-card--dark .step3-card-desc {
  color: rgba(243, 234, 214, 0.72);
}

/* --- Outline button for dark backgrounds --- */
.btn-outline-light {
  display: inline-block;
  border: 1px solid rgba(243, 234, 214, 0.6);
  color: var(--text-on-dark);
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-outline-light:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* --- Google Maps embed --- */
.map-embed {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
}
