/* ヘッダー */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.logo {
    height: 60px;
    width: auto;
}

/* キャンペーンタイトル */
.campaign-title-section {
    background: #fff;
    padding: 40px 0;
    text-align: center;
}

.campaign-title {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin: 0;
}

/* メインビジュアル */
.hero {
    padding: 20px 0;
    background: #fff;
}

.hero-image {
    width: calc(100% - 40px);
    max-width: 1000px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 14px rgba(0,0,0,0.1);
}

/* キャンペーン紹介 */
.campaign-intro {
    background: #fff;
    padding-top: 60px;
    padding-bottom: 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.intro-content p {
    margin-bottom: 20px;
}

/* 商品リスト */
.products {
    background: #f8f9fa;
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: bold;
    flex-grow: 1;
}

.price-info {
    margin-bottom: 20px;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 1rem;
    margin-right: 10px;
}

.campaign-price {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: bold;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
}

.buy-button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

.coupon-section {
  max-width: 600px;
  min-width: 500px;
  margin: 0 auto;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  border-radius: 16px;
  padding: 30px;
  margin-top: 60px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.coupon-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.coupon-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 25px;
}

.coupon-code-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  border: 2px dashed #e0e0e0;
}

.coupon-code {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
}

.copy-button {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.copy-button:active {
  transform: translateY(0);
}

.copy-button.copied {
  background: linear-gradient(135deg, #51cf66, #69db7c);
  box-shadow: 0 4px 15px rgba(81, 207, 102, 0.3);
}

.discount-info {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.discount-text {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.terms {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 0.5em;
}

.terms li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .coupon-section {
    margin: 0 10px 20px 10px;
    padding: 20px;
    width: 90%;
    min-width: unset;
  }

  .coupon-title {
    font-size: 20px;
  }

  .coupon-code {
    font-size: 24px;
  }

  .copy-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* アニメーション */

/* コピー成功時のフラッシュエフェクト */
@keyframes flash {
  0% {
    background-color: #FFFFFF;
  }
  /* 30% {
    background-color: rgba(52, 152, 219, 0.3);
  } */

  50% {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  }
/*
  90% {
    background-color: rgba(52, 152, 219, 0.3);
  } */

  100% {
    background-color: #FFFFFF;
  }
}

.flash-effect {
  animation: flash 0.9s ease-in-out;
}


/* フッター */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .campaign-title {
        font-size: 2rem;
    }

    .hero-image {
        width: calc(100% - 20px);
        border-radius: 12px;
    }

    .campaign-title-section {
        padding: 20px 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .logo {
        height: 35px;
    }

    .campaign-intro {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 30px;
      padding-bottom: 0;
    }

    .products {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 90%;
    }

    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }
}
