@charset "UTF-8";

:root {
  /* 添付イメージ（zixton）に基づいた、まとまりのある温かいパレット */
  --primary: #524f4c;
  --blue: #a3d8e0;
  --yellow: #f9e28d;
  --bg-accent: #fffdf9;
  --text: #524f4c;
  --white: #ffffff;
  --max-width: 800px;
  
  /* ひなまつりキャンペーン用追加カラー */
  --theme-pink: #dd4b73;
  --theme-light-pink: #fdf5f7;
}

/* ==========================================
   Reset css & Base setting
   ========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px相当 */
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  background-color: #f7f7f5;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Noto Sans JP", "M PLUS Rounded 1c", "ヒラギノ角ゴ ProN W3", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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;
}

/* 表示切り替え */
.sp_only { display: block; }
.pc_only { display: none; }

@media screen and (min-width: 769px) {
  .sp_only { display: none; }
  .pc_only { display: block; }
}

/* ==========================================
   LP Layout & Design (Mobile First)
   ========================================== */
.lp-wrapper {
  background-color: var(--theme-light-pink);
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.lp-container {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--white);
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Main Visual */
.lp-header {
  width: 100%;
}

.main-visual {
  width: 100%;
  margin: 0;
  padding: 0;
}

.main-visual img {
  width: 100%;
  height: auto;
}

/* Content Area */
.lp-content {
  padding: 3rem 2rem 5rem;
  text-align: center;
  flex-grow: 1;
}

.lead-text {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: var(--theme-pink);
}

/* Coupon Code (Tap to Copy) */
.coupon-code-box {
  background-color: var(--bg-accent);
  border: 2px dashed var(--theme-pink);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 320px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.coupon-code-box:hover,
.coupon-code-box:active {
  background-color: #fff4f7;
}

.code-label {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: bold;
}

.code-value {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--theme-pink);
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.copy-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--theme-pink);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--theme-pink);
}

.copy-tooltip.is-active {
  opacity: 1;
  visibility: visible;
  top: -45px; /* ふわっと浮き上がるアニメーション */
}

/* Campaign Notes */
.campaign-notes {
  font-size: 1.2rem;
  color: var(--text);
  text-align: left;
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 4px;
  margin: 0 auto 3rem;
  max-width: 500px;
}

.notes-title {
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary);
}

.campaign-notes ul {
  padding-left: 1.5em;
}

.campaign-notes li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.campaign-notes li:last-child {
  margin-bottom: 0;
}

/* CTA Button */
.btn-shop {
  background-color: var(--theme-pink);
  color: var(--white);
  font-weight: bold;
  font-size: 1.6rem;
  padding: 1.8rem 2rem;
  border-radius: 50px;
  margin: 0 auto;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(221, 75, 115, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.btn-shop::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 2.5rem;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
}

.btn-shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(221, 75, 115, 0.4);
}

/* Footer */
.lp-footer {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* PC Tablet Layout */
@media screen and (min-width: 769px) {
  .lp-content {
    padding: 5rem 4rem 7rem;
  }
  .lead-text {
    font-size: 1.6rem;
  }
  .campaign-notes {
    font-size: 1.3rem;
  }
  .btn-shop {
    font-size: 1.8rem;
    padding: 2rem 2rem;
  }
}

/* ==========================================
   Animation: 舞い散る花びら (修正版)
   ========================================== */
#petal-container {
  position: fixed; /* スクロールしても常に画面全体を覆う */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* クリック操作を阻害しない */
  z-index: 20;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -50px; /* 画面外(上)からスタートさせる */
  background-color: #ffa6c9;
  border-radius: 150% 0 150% 0;
  opacity: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% { opacity: 0.6; } /* 画面に入ってきたあたりで表示 */
  90% { opacity: 0.6; }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}