/*
 * Kagome LP Redesign CSS (Final Version with Giveaway)
 * Description: A fresh, healthy, and stylish design for the Kagome Tomato Juice LP.
 * Designer: Gemini
 * Date: 2025-07-01
 */

/* --- CSS Variables for easy theme management --- */
:root {
  --font-base: 'Noto Sans JP', sans-serif;
  --font-display: 'Sawarabi Mincho', serif;
  
  --color-text: #3D3A37; /* Dark Brown/Gray for readability */
  --color-primary: #D9534F; /* Tomato Red for accents */
  --color-secondary: #6A8A82; /* Muted Green for a natural feel */
  --color-background: #F9F7F2; /* Light Beige for a warm, organic background */
  --color-white: #FFFFFF;
  --color-border: #EAEAEA;
  
  /* --- DO NOT CHANGE: Corporate Color for Bonus Points --- */
  --color-bonus: #B50080; 
  /* -------------------------------------------------------- */

  --content-width: 1100px; /* 修正: 最大幅を1100pxに設定 */
}

/* --- Base Styles --- */
/* 修正: セレクタの特定性を高めて、最大幅の指定が確実に適用されるようにする */
.p-lp-wrapper .l-inner {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.lp-section {
  padding: 80px 0;
}

.lp-bg-wrap {
    background-color: var(--color-background);
    padding: 1px 0; /* Prevents margin collapse */
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .ja {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 500;
}

.section-title .en {
  display: block;
  font-family: var(--font-base);
  font-size: 0.875rem;
  color: var(--color-primary);
  letter-spacing: 0.2em;
  font-weight: 700;
}

@media (max-width: 768px) {
  .lp-section {
    padding: 60px 0;
  }
  .section-title .ja {
    font-size: 1.8rem;
  }
}

/* --- Hero Section --- */
.hero-section {
  background-image: url('https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2026/kagome/tomato_sizzle.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 40px;
  border-radius: 4px;
}

.hero-catchphrase {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll; /* Disable parallax on mobile for performance */
    padding: 80px 20px;
  }
  .hero-catchphrase {
    font-size: 1.25rem;
  }
}

/* --- Product Section --- */
.product-section {
    background-color: var(--color-white);
}

.product-card {
  display: flex;
  align-items: center;
  justify-content: center; /* 中央寄せ */
  gap: 60px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.product-card__image {
  flex-shrink: 0;
}
.product-card__image img {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
}

.product-card__body {
  flex-grow: 1;
}

.product-card__name {
  font-family: var(--font-base);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
}

.product-card__price {
  margin-bottom: 30px;
  font-family: var(--font-base);
  color: var(--color-text);
}

.product-card__price .tax-label {
  font-size: 0.875rem;
  margin-right: 4px;
}
.product-card__price .price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.product-card__price .price-decimal,
.product-card__price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.product-card__price .price-base {
  display: block;
  font-size: 0.875rem;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #c9302c; /* Darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .product-card {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .product-card__name {
    font-size: 1.25rem;
  }
  .product-card__price .price-value {
    font-size: 2rem;
  }
  .product-card__price .price-decimal,
  .product-card__price .currency {
    font-size: 1.25rem;
  }
}

/* --- Bonus Point Section (Revised) --- */
.bonus-point-section {
  background-color: var(--color-bonus);
  color: var(--color-white);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.bonus-point-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 40px;
}

.bonus-point__desc {
    width: 100%; /* Force line break */
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.bonus-point__desc strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 8px;
}

.bonus-point__badge {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    margin: 0; /* Let flex gap handle spacing */
}
.bonus-point__badge img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Add a white glow to make the SVG visible */
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.8));
}
.bonus-point__badge span {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--color-bonus);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.bonus-point__period {
    display: inline-flex;
    justify-content: center;
    align-items: stretch; /* stretchに変更して高さを揃える */
    margin-top: 0; /* Let flex gap handle spacing */
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden; /* はみ出し防止 */
}

.bonus-point__period dt,
.bonus-point__period dd {
    display: flex; /* flexコンテナ化して内部のアイテムを制御 */
    align-items: center; /* 内部のテキストを垂直中央に配置 */
    justify-content: center; /* 内部のテキストを水平中央に配置 */
}

.bonus-point__period dt {
  padding: 8px 16px;
  background-color: #FFECB3;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.875rem;
}

.bonus-point__period dd {
  padding: 8px 24px;
  font-size: 1.125rem;
  font-weight: 700;
  background-color: var(--color-white);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .bonus-point__desc strong {
    font-size: 1.25rem;
  }
  .bonus-point__period {
    flex-direction: column;
    align-items: stretch; /* 幅を揃える */
  }
  .bonus-point__period dt, .bonus-point__period dd {
      text-align: center; /* テキストを中央寄せ */
  }
   .bonus-point__period dd {
     padding: 12px 24px;
   }
}

/* --- Giveaway Section (New) --- */
.giveaway-section {
    background-color: var(--color-white);
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.giveaway-title {
    font-family: var(--font-base);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding: 0 10px 10px;
    line-height: 1.5;
}
.giveaway-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}
.giveaway-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* For responsive behavior */
    margin-bottom: 24px;
}
.giveaway-item {
    flex-basis: 300px;
    text-align: center;
}
.giveaway-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}
.giveaway-item figcaption {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}
.giveaway-note {
    font-size: 0.875rem;
    color: #888;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .giveaway-title {
        font-size: 1.4rem;
    }
    .giveaway-item {
        flex-basis: 250px;
    }
}


/* --- Staff Comment Section (Revised) --- */
.staff-comment {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 800px;
  margin: 60px auto 0;
}
.staff-comment__image {
  flex-shrink: 0;
  text-align: center;
}
.staff-comment__image img {
  width: 120px;
  height: auto;
}
.staff-comment__bubble {
  position: relative;
  background-color: var(--color-background);
  border-radius: 12px;
  padding: 30px;
  flex-grow: 1;
}
.staff-comment__bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: 0; 
  height: 0; 
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--color-background);
}
.staff-comment__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px dotted var(--color-primary);
}
.staff-comment__text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text);
}
.staff-comment__text .highlight {
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(transparent 60%, #F8D7DA 60%);
}

@media (max-width: 768px) {
    .staff-comment {
        flex-direction: column;
        gap: 0;
    }
    .staff-comment__image {
        position: relative;
        z-index: 2; /* Ensures image is on top of the bubble */
    }
    .staff-comment__image img {
        width: 100px;
    }
    .staff-comment__bubble {
        margin-top: -20px;
        padding: 40px 20px 20px;
        text-align: center;
        z-index: 1; /* Sits behind the image */
    }
    .staff-comment__bubble::before {
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-bottom: 10px solid var(--color-background);
      border-top: none;
    }
}

/* --- Feature Section (Revised) --- */
.feature-section {
    position: relative;
    overflow: hidden;
}
.feature-section .l-inner {
    position: relative;
    z-index: 1;
}
.feature-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://stprodaeonblob.blob.core.windows.net/eshop-files/images/other/tj_image.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transform: scale(1.1);
    z-index: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2列に変更 */
  gap: 40px; /* 余白を調整 */
}
.feature-item {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.feature-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.feature-item__text {
  padding: 24px;
}
.feature-item__text h4 {
  font-family: var(--font-base);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}
.feature-item__text p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .feature-item {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .feature-item img {
        width: 150px;
        flex-shrink: 0;
    }
}

@media (max-width: 500px) {
    .feature-item {
        display: block;
    }
    .feature-item img {
        width: 100%;
    }
}


/* --- Animation --- */
.fade-in-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* --- Schedule Section --- */
.schedule-section {
  background-color: var(--color-background);
  padding-top: 56px;
  padding-bottom: 56px;
}

.schedule-section .l-inner {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.schedule-section .section-title {
  margin-bottom: 32px;
}

.schedule-card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 40px 40px;
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.schedule-card__lead {
  margin: 0 0 24px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.schedule-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.schedule-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background-color: var(--color-background);
  border-radius: 8px;
}

.schedule-list__item dt,
.schedule-list__item dd {
  margin: 0;
}

.schedule-list__item dt {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.schedule-list__label {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 10px;
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  background-color: var(--color-secondary);
  border-radius: 999px;
  vertical-align: middle;
}

.schedule-list__delivery-label {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.schedule-list__item dd {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .schedule-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .schedule-card {
    padding: 30px 20px 24px;
  }

  .schedule-list__item {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .schedule-list__label {
    display: block;
    width: fit-content;
    margin: 0 auto 8px;
  }

  .schedule-list__item dd {
    text-align: center;
    white-space: normal;
  }
}

/* --- Main Visual CTA Section --- */
.mainvisual-cta-section {
  background-color: var(--color-background);
  padding: 36px 0 28px;
  text-align: center;
}

.mainvisual-cta-button {
  min-width: 280px;
  padding: 18px 40px;
  font-size: 1.125rem;
  box-shadow: 0 6px 18px rgba(217, 83, 79, 0.22);
}

.mainvisual-cta-button::after {
  content: '↓';
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.mainvisual-cta-button:hover::after {
  transform: translateY(3px);
}

.product-section {
  scroll-margin-top: 24px;
}

@media (max-width: 768px) {
  .mainvisual-cta-section {
    padding: 28px 20px 24px;
  }

  .mainvisual-cta-button {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 360px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 1rem;
  }
}

