@charset "UTF-8";

/* ==========================================
   CSS変数 (ご提示の管理設定)
   ========================================== */
:root {
  --bg-color: #fcfbf9;
  --main-white: #ffffff;
  --text-main: #54504d;
  --text-sub: #8e8784;
  --border-light: #e6e2df;

  --accent-boy: #97abbd;
  --accent-girl: #ccabab;
  --accent-red: #8a1a1a;
  --accent-gold: #CCA34B;
  --accent-new: #a5b6c5;

  --inner-width: 769px;
  --radius-m: 8px;
  --radius-l: 12px;
}

/* ==========================================
   Reset css (最適化版)
   ========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px相当 */
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--text-main);
  font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN W3", "Lucida Grande", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  
  /* 背景画像の設定 */
  background-image: url(../images/bg_pattern.jpg);
  background-repeat: repeat;
  background-size: 400px auto;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

li { list-style: none; }

a {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

a:hover { opacity: 0.8; }

/* ==========================================
   Layout & Components
   ========================================== */
.main-block {
  width: 100%;
  margin: 0 auto;
}

.container {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 3.0rem 2.0rem;
}

/* ヘッダー */
.header {
  background-color: var(--accent-red);
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}

.header p {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

/* メインビジュアル */
.hero {
  max-width: var(--inner-width);
  margin: 2rem auto;
}

/* クーポンセクション */
.coupon-section {
  margin-top: 3.2rem;
}

.coupon-section .container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-l);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-top: -1.0rem; /* バナーとの一体感 */
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  color: var(--accent-red);
  margin-bottom: 2.0rem;
  letter-spacing: 0.05em;
}

.coupon-box {
  border: 1px dashed var(--accent-red);
  padding: 3.0rem 1.5rem;
  border-radius: var(--radius-m);
  text-align: center;
  margin-bottom: 1.0rem;
}

.coupon-code {
  font-size: 4.0rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  margin-bottom: 2.0rem;
  color: var(--text-main);
}

.copy-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 1.4rem;
  background-color: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.copy-message {
  font-size: 1.2rem;
  text-align: center;
  color: var(--accent-red);
  font-weight: bold;
  height: 1.5em;
  margin-bottom: 2.5rem;
  visibility: hidden;
}

/* 利用案内 */
.usage-info {
  margin-bottom: 3.5rem;
}

.deadline {
  text-align: center;
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.notes {
  background-color: var(--bg-color);
  padding: 2.0rem;
  border-radius: var(--radius-m);
}

.notes li {
  font-size: 1.2rem;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.notes li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* 買い物ボタン */
.btn-shop {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 2.0rem;
  border-radius: var(--radius-m);
  font-weight: bold;
  font-size: 1.6rem;
}

/* フッター */
.footer {
  text-align: center;
  padding: 4.0rem 2.0rem;
  color: #fff;
  font-size: 1.1rem;
}

/* PC調整 */
@media screen and (min-width: 769px) {
  .section-title {
    font-size: 2.2rem;
  }
  .coupon-code {
    font-size: 5.0rem;
  }
}

/* ==========================================
   New Year Animations
   ========================================== */

/* 1. コンテンツのふわっと表示 */
.coupon-section .container {
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. 金箔（紙吹雪）が舞い落ちるアニメーション */
.kinpaku-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* クリックを邪魔しない */
  z-index: 5;
  overflow: hidden;
}

.kinpaku {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 10px;
  background-color: var(--accent-gold);
  opacity: 0.6;
  animation: fall linear infinite;
}

/* 金箔の個別の動き（ランダム感） */
.kinpaku:nth-child(1) { left: 10%; animation-duration: 7s; animation-delay: 0s; }
.kinpaku:nth-child(2) { left: 30%; animation-duration: 9s; animation-delay: 2s; width: 8px; }
.kinpaku:nth-child(3) { left: 50%; animation-duration: 6s; animation-delay: 4s; }
.kinpaku:nth-child(4) { left: 70%; animation-duration: 10s; animation-delay: 1s; width: 12px; }
.kinpaku:nth-child(5) { left: 90%; animation-duration: 8s; animation-delay: 5s; }
.kinpaku:nth-child(6) { left: 20%; animation-duration: 11s; animation-delay: 3s; }
.kinpaku:nth-child(7) { left: 60%; animation-duration: 7s; animation-delay: 6s; }
.kinpaku:nth-child(8) { left: 85%; animation-duration: 9s; animation-delay: 0.5s; }

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes shine {
  0% { left: -60%; }
  15% { left: 120%; }
  100% { left: 120%; }
}