/* ============================================
   SAKURA WINE FESTIVAL 2026
   金曜プレミアムナイト 専用スタイルシート
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* バナー準拠：ピンク × ダーク配色 */
  --gradient-top: #0f110e;
  --gradient-bottom: #1a1a1a;
  --accent-primary: #FF77C0;
  --accent-pink-light: #FFB7C5;
  --accent-pink-glow: #FF69B4;
  --accent-gold-dark: #FF77C0;
  --card-bg: #FFFFFF;
  --card-border: #F0E8EB;
  --card-info-bg: #FFF5F5;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --text-muted: #888888;
  --badge-bg: #FF77C0;
  --badge-text: #FFFFFF;
  --section-gap: 4rem;
  --container-max: 1200px;
  --radius-card: 16px;
  --radius-badge: 6px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-card-hover: 0 8px 32px rgba(255, 119, 192, 0.15);
  --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.7;
  color: var(--text-on-dark);
  background: #0f110e;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   1. HERO / FIRST VIEW
   ============================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: #0f110e;
}

/* Hero banner image */
.hero__banner {
  width: 100%;
  line-height: 0;
}

.hero__banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Scroll indicator */
.hero__scroll {
  position: relative;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  animation: scrollBounce 2s infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent-pink-light), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   2. SECTION COMMON
   ============================================ */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__importer {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: 0.03em;
}

.section__count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
}

/* Divider */
.section__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  margin: 1rem auto 0;
}

/* ============================================
   3. WINE CARD
   ============================================ */
.wine-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
}

.wine-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Badge */
.wine-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-badge);
  box-shadow: 0 2px 8px rgba(255, 191, 0, 0.3);
}

/* Image area */
.wine-card__image {
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  min-height: 220px;
}

.wine-card__image img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition-base);
}

.wine-card:hover .wine-card__image img {
  transform: scale(1.03);
}

/* Info area */
.wine-card__info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #FFF5F5;
}

.wine-card__number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.wine-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-on-light);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  min-height: 2.9em;
}

/* Specs DL */
.wine-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.wine-card__specs > div {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.wine-card__specs dt {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 1.5em;
}

.wine-card__specs dd {
  font-size: 0.78rem;
  color: var(--text-on-light);
  font-weight: 500;
}

/* Coin */
.wine-card__coin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #FFE8EE;
}

.wine-card__coin svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.wine-card__coin span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
}

/* ============================================
   4. SWIPER CUSTOMIZATION
   ============================================ */
.carousel-wrapper {
  position: relative;
  padding: 0 0 2.5rem;
  overflow: hidden;
}

.swiper {
  overflow: hidden;
  padding: 0.5rem 0 2rem;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  height: auto;
  flex-shrink: 0;
}

/* Navigation buttons - hidden on SP, visible on tablet+ */
.swiper-button-prev,
.swiper-button-next {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  top: 35%;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255, 191, 0, 0.3);
  border-color: var(--accent-primary);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-on-dark);
}

.swiper-button-prev {
  left: 4px;
}

.swiper-button-next {
  right: 4px;
}

/* Pagination */
.swiper-pagination {
  bottom: 0 !important;
  position: relative;
  margin-top: 0.5rem;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: all var(--transition-base);
}

.swiper-pagination-bullet-active {
  background: var(--accent-primary);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   5. FOOTER
   ============================================ */
.footer {
  padding: 3rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FF77C0, #FF5CAD);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(255, 119, 192, 0.3);
}

.footer__back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 119, 192, 0.45);
}

.footer__back svg {
  width: 18px;
  height: 18px;
}

.footer__note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__copyright {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   6. ANIMATIONS (scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   7. RESPONSIVE
   ============================================ */

/* ---------- SP (default < 480px) ---------- */

.wine-card__image {
  min-height: 160px;
  padding: 1rem 0.75rem;
}

.wine-card__image img {
  max-height: 140px;
}

.wine-card__name {
  font-size: 0.85rem;
  min-height: auto;
}

/* ---------- Small SP (480px+) ---------- */
@media (min-width: 480px) {
  .wine-card__image {
    min-height: 180px;
    padding: 1.25rem 1rem;
  }

  .wine-card__image img {
    max-height: 160px;
  }
}

/* ---------- Tablet (768px+) ---------- */
@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 2rem;
  }

  /* Show nav arrows on tablet+ */
  .swiper-button-prev,
  .swiper-button-next {
    display: flex;
  }

  .swiper-button-prev {
    left: 4px;
  }

  .swiper-button-next {
    right: 4px;
  }

  .wine-card__image {
    min-height: 220px;
    padding: 1.5rem;
  }

  .wine-card__image img {
    max-height: 200px;
  }
}

/* ---------- PC (1024px+) ---------- */
@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  .carousel-wrapper {
    padding: 0 2rem 3rem;
    overflow: visible;
  }

  .swiper {
    overflow: visible;
  }

  .swiper-button-prev {
    left: -20px;
  }

  .swiper-button-next {
    right: -20px;
  }

  .wine-card__image {
    min-height: 260px;
    padding: 2rem 1.5rem;
  }

  .wine-card__image img {
    max-height: 240px;
  }
}

/* ---------- Large screens (1400px+) ---------- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
