/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  --color-primary: #102a43; /* 信頼のディープネイビー */
  --color-secondary: #5138a3; /* 上品なロイヤルパープル */
  --color-accent: #d9383a; /* アラート・強調用レッド */
  --color-text-dark: #243b53; /* 本文ダークグレー */
  --color-text-light: #627d98; /* 補助ライトグレー */
  --color-bg-light: #f0f4f8; /* ソフトブルーグレーの背景 */
  --color-bg-card: #ffffff; /* カード背景白 */
  --color-nordic-blue: #185a9d; /* 北欧の湖のブルー */
  --color-nordic-green: #0c8c5e; /* 北欧の森のグリーン */
  --color-gold: #c6a052; /* ゴールド（特別価格等のハイライト） */
  
  --font-sans: 'Noto Sans JP', 'Outfit', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-serif: 'Noto Serif JP', Georgia, Cambria, serif;
  
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.12);
  --shadow-lg: 0 16px 40px rgba(16, 42, 67, 0.16);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.8;
}

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

a {
  color: var(--color-nordic-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-nordic-blue), var(--color-secondary));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 8px 16px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--color-bg-light);
  color: var(--color-nordic-blue);
}

.nav-cart {
  background-color: var(--color-nordic-blue);
  color: #fff !important;
}

.nav-cart:hover {
  background-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
  animation: hero-zoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 85%;
  text-align: center;
}

.hero-ribbon-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-subt {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-weight: 500;
  color: #333;
}

.ribbon-wrap {
  position: relative;
  background: linear-gradient(135deg, var(--color-secondary), #3b1f8f);
  padding: 18px 60px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.ribbon-wrap::before,
.ribbon-wrap::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 40px;
  background-color: #3b1f8f;
  z-index: -1;
}

.ribbon-wrap::before {
  left: -35px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 15px 50%, 0 0);
}

.ribbon-wrap::after {
  right: -35px;
  clip-path: polygon(0 0, 0 100%, 100% 100%, calc(100% - 15px) 50%, 100% 0);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.hero-product {
  margin-top: 30px;
  perspective: 1000px;
}

.hero-product-img {
  width: 260px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

@keyframes hero-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ==========================================================================
   Message Section (Letter Paper Design)
   ========================================================================== */
.message-section {
  background-color: #fff;
}

.letter-paper {
  background-color: #fcfbf7;
  border: 1px solid #e1dbcd;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 60px 50px;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.letter-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(112, 111, 211, 0.1);
  margin: 10px;
  pointer-events: none;
}

.letter-content {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #333;
  line-height: 2.2;
}

.letter-content p {
  margin-bottom: 0;
  position: relative;
  text-align: justify;
}

.letter-content p.highlight-text {
  color: var(--color-nordic-blue);
  font-weight: 700;
}

.signature {
  margin-top: 60px;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

/* ==========================================================================
   New Service Preview Section (Coming Soon)
   ========================================================================== */
.service-preview-section {
  background-color: var(--color-bg-light);
}

.service-banner {
  background-color: var(--color-bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--color-gold);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
  max-width: 900px;
  margin: 0 auto;
}

.service-banner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(198, 160, 82, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.service-banner-content {
  padding: 50px 40px;
}

.badge-gold {
  background: linear-gradient(135deg, var(--color-gold), #b38b38);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(198, 160, 82, 0.2);
}

.service-banner-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.service-banner-title .highlight {
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
  font-weight: 800;
}

.service-banner-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(81, 56, 163, 0.12);
  z-index: -1;
}

.service-banner-text {
  font-size: 1.05rem;
  color: var(--color-text-dark);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 800px;
  text-align: center;
}

.service-schedule {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: var(--color-bg-light);
  padding: 12px 24px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.schedule-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.schedule-date {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
}

.service-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   Prices Table Section
   ========================================================================== */
.prices-section {
  background-color: #fff;
}

/* Tabs */
.tabs-container {
  margin-top: 40px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  background: var(--color-bg-light);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background-color: #e2e8f0;
}

.tab-btn.active {
  background: var(--color-nordic-blue);
  color: #fff;
  border-color: var(--color-nordic-blue);
  box-shadow: var(--shadow-sm);
}

/* Table Design */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: #fff;
}

.price-table th,
.price-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
}

.price-table th {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

/* 2列目と3列目の間に薄い縦線を引く */
.price-table th:nth-child(3),
.price-table td:nth-child(3) {
  border-left: 1px solid #e2e8f0;
}

.price-table tbody tr {
  transition: var(--transition-fast);
}

.price-table tbody tr:hover {
  background-color: rgba(240, 244, 248, 0.5);
}

.price-table tbody tr.hidden-row {
  display: none !important;
}

.product-name {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.badge-blue {
  background: linear-gradient(135deg, var(--color-nordic-blue), var(--color-secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.price-val {
  font-family: 'Outfit', var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.price-val.highlight {
  color: var(--color-secondary);
  font-size: 1.25rem;
  font-weight: 700;
}

.tax-text {
  font-size: 0.65em;
  font-weight: normal;
  color: #666;
  margin-left: 2px;
}

.discount-tag {
  display: inline-block;
  background-color: var(--color-secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.2;
}

.text-right {
  text-align: right;
}

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

/* Shipping Info Box */
.shipping-info-box {
  background-color: var(--color-bg-light);
  border-left: 4px solid var(--color-secondary);
  padding: 25px 30px;
  border-radius: 0 8px 8px 0;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
}

.shipping-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.shipping-info-box p {
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.shipping-info-box strong {
  color: var(--color-accent);
  font-size: 1.2rem;
  font-family: 'Outfit', var(--font-sans);
}

/* ==========================================================================
   Promise / Philosophy Section
   ========================================================================== */
.promise-section {
  background-color: var(--color-bg-light);
}

.promise-quote {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 25px;
  line-height: 1.5;
}

.promise-desc {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.gallery-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.img-zoom-wrap {
  overflow: hidden;
  height: 220px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-item figcaption {
  padding: 15px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  border-top: 1px solid #f0f4f8;
  text-align: center;
}

.promise-footer-text {
  text-align: justify;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 40px 24px;
  border-top: 4px solid var(--color-secondary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-img-footer {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 30px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 35px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ==========================================================================
   Micro-animations & Fade-in System
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {

  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .service-banner-content {
    padding: 40px 30px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .img-zoom-wrap {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .promise-quote {
    font-size: 1.26rem;
  }
  
  .section-subtitle {
    font-size: 0.89rem;
    text-align: left;
  }
  
  .promise-desc {
    font-size: 1rem;
    text-align: left;
  }
  
  .service-banner-content {
    padding: 30px 15px;
  }
  
  .service-banner-title {
    font-size: 1.4rem;
  }
  
  .service-banner-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: left;
  }
  
  .section-container {
    padding: 60px 16px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero-section {
    height: 515px;
  }
  
  .hero-subt {
    font-size: 1rem;
  }
  
  .ribbon-wrap {
    padding: 12px 30px;
  }
  
  .ribbon-wrap::before,
  .ribbon-wrap::after {
    display: none; /* リボン端をスマフォでは省略してスッキリさせる */
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-product-img {
    width: 200px;
  }
  
  .letter-paper {
    padding: 35px 20px;
  }
  
  .letter-content {
    font-size: 1rem;
    line-height: 2;
  }
  
  .price-table th,
  .price-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
  
  .price-table th {
    white-space: nowrap;
    font-size: 0.8rem;
  }
  
  .product-name {
    font-size: 0.85rem;
    min-width: 120px;
  }
  
  .price-val {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .price-val.highlight {
    font-size: 0.95rem;
  }
  
  .tab-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

/* --- Added Chart CSS --- */
.discount-chart-wrapper {
    margin: 50px auto 20px;
    max-width: 900px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.discount-table-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.character-mascot {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
}

.bulbul-svg {
    width: 100%;
    height: 100%;
}

.speech-bubble {
    position: relative;
    background: #fdf8ee;
    border: 2px solid #FF8DA1;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent #FF8DA1 transparent transparent;
}
.speech-bubble::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 7px 10px 7px 0;
    border-color: transparent #fdf8ee transparent transparent;
}

.discount-table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.discount-comparison-table {
    display: table;
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

.table-row {
    display: table-row;
}

.cell {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 15px 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.label-cell {
    width: 120px;
    font-weight: 800;
    color: #4a5568;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 1px dashed #e2e8f0;
    padding-left: 10px;
}

/* Columns specific backgrounds matching the image */
.col-1bag {
    width: 140px;
    background: #ffffff;
}

.col-3bags {
    width: 160px;
}
.col-5bags {
    width: 160px;
}
.col-10bags {
    width: 160px;
}

.active-blue {
    background-color: rgba(75, 163, 227, 0.05);
}
.active-orange {
    background-color: rgba(255, 133, 51, 0.05);
}

/* Connectors */
.step-connector-arrow {
    position: absolute;
    left: -20px;
    top: 60px;
    width: 40px;
    height: 40px;
    z-index: 10;
}
.curve-arrow {
    width: 100%;
    height: 100%;
}

/* Graph bar within cell */
.row-visuals .cell {
    position: relative;
    vertical-align: bottom;
    padding: 40px 5px 15px;
    border-bottom: 2px solid #e2e8f0;
}

.step-graph-bar {
    border-radius: 12px 12px 0 0;
    padding: 15px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin: 0 auto;
    width: 90%;
}

.bar-1 {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    height: 118px;
}
.bar-3 {
    background: #4ba3e3;
    color: #ffffff;
    height: 150px;
}
.bar-5 {
    background: #4ba3e3;
    color: #ffffff;
    height: 190px;
}
.bar-10 {
    background: #ff8533;
    color: #ffffff;
    height: 240px;
}

/* Discounts Tags inside bars */
.step-discount-tag {
    position: absolute;
    top: -15px;
    background: #ff4a5a;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(255, 74, 90, 0.3);
}

.step-discount-badge-circle {
    position: absolute;
    top: -30px;
    width: 70px;
    height: 70px;
    background: #ff4a5a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 12px rgba(255, 74, 90, 0.4);
    animation: pulseBadge 2s infinite alternate;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.step-discount-badge-circle .pct {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.1;
}
.step-discount-badge-circle .txt {
    font-size: 0.65rem;
    font-weight: 800;
}

/* Image Thumbnails inside steps */
.step-image {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70px;
}

.package-thumbnail-single {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.package-thumbnails-multi {
    position: relative;
    height: 80px;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.package-thumbnails-multi img {
    height: 80%;
    width: auto;
    position: absolute;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.15));
}

/* 3 bags stacking */
.package-thumbnails-multi .thumb-1 { left: -4px; z-index: 1; bottom: 0; }
.package-thumbnails-multi .thumb-2 { left: 29px; z-index: 2; bottom: 0; }
.package-thumbnails-multi .thumb-3 { left: 62px; z-index: 3; bottom: 0; }

/* 5 bags stacking */

.package-thumbnails-multi.five-bags .thumb-1 { left: 0; z-index: 1; }
.package-thumbnails-multi.five-bags .thumb-2 { left: 13px; z-index: 2; }
.package-thumbnails-multi.five-bags .thumb-3 { left: 26px; z-index: 3; }
.package-thumbnails-multi.five-bags .thumb-4 { left: 40px; z-index: 4; }
.package-thumbnails-multi.five-bags .thumb-5 { right: 0; z-index: 5; }

/* 10 bags stacking */
.package-thumbnails-multi.ten-bags img {
    height: 36px;
}
.package-thumbnails-multi.ten-bags .thumb-1 { left: 5px; z-index: 1; }
.package-thumbnails-multi.ten-bags .thumb-2 { left: 13px; z-index: 2; }
.package-thumbnails-multi.ten-bags .thumb-3 { left: 21px; z-index: 3; }
.package-thumbnails-multi.ten-bags .thumb-4 { left: 29px; z-index: 4; }
.package-thumbnails-multi.ten-bags .thumb-5 { left: 37px; z-index: 5; }
.package-thumbnails-multi.ten-bags .thumb-6 { left: 45px; z-index: 6; }
.package-thumbnails-multi.ten-bags .thumb-7 { left: 53px; z-index: 7; }

.step-volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.step-volume .qty {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
}

.bar-1 .step-volume .qty { color: #333333; }
.bar-3 .step-volume .qty, 
.bar-5 .step-volume .qty, 
.bar-10 .step-volume .qty { color: #ffffff; }

.step-volume .sub {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.9;
}

/* Pricing table styling */
.row-regular-price {
    font-weight: bold;
    color: #718096;
    font-size: 0.9rem;
}

.row-special-price {
    font-size: 1.05rem;
    font-weight: 800;
}

.row-special-price .cell {
    padding: 18px 10px;
}

.val-no-discount {
    color: #718096;
    font-weight: 500;
}

.val-special {
    color: #e53e3e;
    font-size: 1.3rem;
    font-weight: 900;
    font-family: var(--font-num);
}

.val-special.highlight-red {
    color: #e53e3e;
    font-size: 1.45rem;
}

.tax-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #718096;
    margin-left: 2px;
}

.row-shipping {
    font-weight: bold;
    font-size: 0.9rem;
}

.val-shipping {
    color: #718096;
}

.val-free-shipping {
    color: #38a169;
    font-weight: bold;
}

/* Responsive tweaks for the chart */
@media (max-width: 768px) {
    .discount-chart-wrapper {
        padding: 25px 15px 15px;
        margin: 30px auto 10px;
        border-radius: 12px;
    }
    
    .discount-table-header {
        gap: 12px;
        margin-bottom: 15px;
    }

    .character-mascot {
        width: 55px;
        height: 55px;
    }

    .speech-bubble {
        font-size: 0.95rem;
        padding: 8px 15px;
    }
}

.discount-chart-note {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 15px;
    text-align: left;
    line-height: 1.45;
    padding-left: 10px;
    font-weight: 500;
}
@media (max-width: 768px) {
    .discount-chart-note {
        font-size: 0.75rem;
        padding-left: 5px;
        margin-top: 12px;
    }
}

.bulk-item-header .summary-discount {
    margin-left: 8px;
    vertical-align: middle;
}

/* PC-only line break helper */
@media (max-width: 768px) {
    .pc-br {
        display: none;
    }
}

