*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-light: #f0e6ff;
  --purple-mid:   #c9b2e8;
  --purple-dark:  #9b7fd4;
  --text-dark:    #3d2f52;
  --text-mid:     #7a6290;
  --text-light:   #b8a8cc;
  --bg:           #fdf8ff;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ヘッダー */
.site-header {
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-align: center;
  border-bottom: 0.5px solid var(--purple-light);
}
.site-header .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  text-decoration: none;
}

/* メイン */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
  max-width: 480px;
}

.date-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.page-title {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.already-note {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

/* カードフリップ */
.card-scene {
  width: 240px;
  height: 415px;
  perspective: 1200px;
  cursor: pointer;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-inner.no-transition { transition: none; }
.card-inner.flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(155, 127, 212, 0.18);
}

/* 裏面 */
.card-back {
  background: #c9b2e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1.2rem;
}
.back-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.tap-hint {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.75);
  z-index: 1;
}

/* 表面 */
.card-front {
  transform: rotateY(180deg);
  background: #f5eeff;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* カード情報 */
.card-info {
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.card-info.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card-info-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.card-info-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.card-info-msg {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.shop-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--purple-dark);
  text-decoration: none;
  border-bottom: 0.5px solid var(--purple-mid);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.shop-link:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

/* フッター */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 0.5px solid var(--purple-light);
  width: 100%;
}
.site-footer a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-decoration: none;
}

/* スマホ対応 */
@media (max-width: 360px) {
  .card-scene { width: 200px; height: 346px; }
}
