/* ========================================
   EmoFlip HS-07 LP
   平成エモ × 世界水準の可読性
======================================== */

:root {
  --pink-50:  #fff4fa;
  --pink-100: #ffe3f1;
  --pink-200: #ffc4e0;
  --pink-300: #ffa3cf;
  --pink-500: #ff68b0;
  --pink-text: #d6218a;   /* 文字用。白背景で 4.7:1（WCAG AA） */
  --purple-200: #e6d6ff;
  --purple-400: #b79cff;
  --mint-200: #c9f3ec;
  --blue-200: #cfe6ff;
  --ink:      #3a2a45;
  --ink-soft: #6b557a;
  --cream:    #fffaf3;
  --gold:     #e7b96a;

  --radius: 20px;
  --shadow-soft: 0 10px 30px rgba(255, 104, 176, 0.15);
  --shadow-card: 0 18px 40px rgba(90, 50, 120, 0.12);

  --serif: "Shippori Mincho", "Noto Serif JP", serif;
  --sans:  "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --display: "Dela Gothic One", "Shippori Mincho", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--pink-50) 0%, #fff 40%, var(--pink-50) 100%);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Background sparkle layer */
.bg-sparkle {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('assets/BG.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.1em;
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink);
}

.brand-name {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  /* ロゴ自体が白い角丸カードなので、下地も不透明の白で揃える */
  background: #fff;
  border: 1.5px solid rgba(255, 163, 207, 0.5);
  box-shadow: 0 4px 14px rgba(255, 104, 176, 0.14);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.brand-name::before {
  content: "‹";
  font-size: 18px;
  line-height: 1;
  color: var(--pink-500);
  transition: transform 0.2s ease;
}
.brand-name-logo {
  height: 30px;
  width: auto;
  display: block;
}

.brand-name:hover {
  border-color: var(--pink-500);
  box-shadow: 0 6px 18px rgba(255, 104, 176, 0.26);
  transform: translateY(-1px);
}
.brand-name:hover::before { transform: translateX(-2px); }

.release-badge {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ---------- NEWS / お知らせ ---------- */
.notice {
  max-width: 1000px;
  margin: 0 auto 20px;
  padding: 28px 34px 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--pink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.notice-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.notice-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pink-500);
  color: #fff;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.notice-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 800;
  line-height: 1.5;
  color: var(--pink-text);
}

.notice-body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.notice-body p {
  margin: 0 0 1em;
}

.notice-body p:last-child {
  margin-bottom: 0;
}

/* お知らせ内の項目リスト（受注期間・お届け予定など） */
.notice-spec {
  margin: 18px 0;
  padding: 18px 20px;
  background: var(--pink-50);
  border-radius: 14px;
  font-size: 15px;
}

.notice-spec > div {
  display: flex;
  gap: 16px;
  padding: 6px 0;
}

.notice-spec > div + div {
  border-top: 1px solid var(--pink-100);
}

.notice-spec dt {
  flex: 0 0 118px;
  font-weight: 700;
  color: var(--pink-text);
}

.notice-spec dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.notice-body strong {
  color: var(--pink-text);
  font-weight: 800;
}

.notice-note-head {
  margin: 20px 0 6px !important;
  font-weight: 700;
  color: var(--ink);
}

.notice-note {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.85;
}

.notice-note li {
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.notice-note li::before {
  content: "※";
  color: var(--pink-300);
}

.notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.notice-links a.is-primary {
  background: linear-gradient(135deg, #ff68b0, #ff9ad0);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 80, 160, 0.32);
}

.notice-links a.is-primary:hover {
  background: linear-gradient(135deg, #ff4fa2, #ff8ac8);
  color: #fff;
}

.notice-links a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 104, 176, 0.12);
  color: var(--pink-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.notice-links a:hover {
  background: var(--pink-500);
  color: #fff;
}

.notice-links a:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .notice {
    margin: 0 16px 12px;
    padding: 22px 20px 20px;
    border-radius: 18px;
  }

  .notice-body {
    font-size: 14px;
    line-height: 1.9;
  }

  .notice-spec {
    padding: 14px 16px;
    font-size: 14px;
  }

  .notice-spec > div {
    flex-direction: column;
    gap: 2px;
  }

  .notice-spec dt {
    flex: none;
    font-size: 12.5px;
  }

  .notice-links a {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 120px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--pink-text);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 24px;
  line-height: 1;
}

.hero-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(255, 120, 180, 0.25));
}

@media (max-width: 860px) {
  .hero-logo { max-width: 272px; margin: 0 auto; }
}

.hero-lead {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.5;
  color: var(--ink);
}

.hero-sub {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.price-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.price-num {
  font-family: var(--display);
  font-size: 32px;
  color: var(--pink-text);
  letter-spacing: 0.02em;
}

.price-unit {
  font-size: 13px;
  font-weight: 700;
}

.hero-head { display: contents; }

/* Hero visual: 実商品画像 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.hero-product {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(200, 140, 180, 0.35));
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* ヒーロー主役：アルファ動画（非対応時は静止画にフォールバック） */
.hero-product-stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-video {
  max-height: 620px;
  height: 62vh;
  min-height: 420px;
  width: auto;
  display: none;
  background: transparent;
}

.hero-product-stage.is-video .hero-product-video { display: block; }
.hero-product-stage.is-video .hero-product-fallback { display: none; }

/* ヒーローに並べる3機種（ピンクが主役、両脇にシルバー/ホワイト） */
.hero-sub-product {
  position: absolute;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(200, 140, 180, 0.3));
  pointer-events: none;
}
.hero-sub-product.left {
  max-height: 360px;
  left: 2%;
  bottom: 14%;
  transform: rotate(-9deg);
  animation: float 7s ease-in-out infinite;
}
.hero-sub-product.right {
  max-height: 330px;
  right: 2%;
  bottom: 10%;
  transform: rotate(9deg);
  animation: float 8s ease-in-out infinite reverse;
}

.flip-top {
  width: 100%;
  height: 260px;
  background: linear-gradient(145deg, #fff 0%, #f3e9f5 100%);
  border: 2px solid #d9c8de;
  border-radius: 28px 28px 16px 16px;
  padding: 18px;
  position: relative;
}

.flip-top::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  background: #c9b9cf;
  border-radius: 4px;
}

.flip-bottom {
  width: 100%;
  height: 300px;
  background: linear-gradient(145deg, #fff 0%, #f3e9f5 100%);
  border: 2px solid #d9c8de;
  border-radius: 16px 16px 28px 28px;
  padding: 20px 18px;
}

.flip-dpad {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: radial-gradient(circle, #fff 30%, #e8d8ec 70%);
  border: 2px solid #d9c8de;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpad-center {
  width: 32px; height: 32px;
  background: var(--pink-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
}

/* Sparkles */
.sparkle {
  position: absolute;
  font-size: 24px;
  color: var(--pink-300);
  animation: twinkle 3s ease-in-out infinite;
}
.sparkle.s1 { top: 8%;  left: 10%; font-size: 36px; color: var(--purple-400); animation-delay: 0s; }
.sparkle.s2 { top: 20%; right: 8%; font-size: 28px; color: var(--pink-500); animation-delay: 0.8s; }
.sparkle.s3 { bottom: 15%; left: 5%; font-size: 32px; color: var(--gold); animation-delay: 1.5s; }
.sparkle.s4 { bottom: 25%; right: 12%; font-size: 22px; color: var(--purple-400); animation-delay: 2.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9) rotate(0); }
  50%      { opacity: 1;   transform: scale(1.2) rotate(15deg); }
}

/* ---------- Section base ---------- */
section { position: relative; }

.section-title {
  text-align: center;
  margin: 0 0 56px;
  position: relative;
}
.section-title .ja {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.section-title .en {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--pink-text);
  margin-top: 8px;
}

.feat-num {
  font-family: var(--display);
  font-size: 32px;
  color: var(--pink-300);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* ---------- Colors ---------- */
.colors {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 40px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.color-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(200, 180, 220, 0.25);
  transition: transform 0.3s ease;
}

.color-card:hover { transform: translateY(-6px); }

/* 開いた状態と閉じた状態を並べる */
.color-shots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.color-photo {
  width: auto;
  max-width: 46%;
  height: 260px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.12));
  transition: transform 0.4s ease;
}

.color-photo.is-closed { height: 178px; }
.color-card:hover .color-photo {
  transform: scale(1.05) rotate(-2deg);
}

.color-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
}
.color-card h3 small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-text);
}

.spec-row dd small {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- Specs ---------- */
.specs {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 40px;
}

.spec-table {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #f3e4ef;
}
.spec-row:last-child { border-bottom: none; }

.spec-row dt, .spec-row dd {
  padding: 18px 24px;
  margin: 0;
}

.spec-row dt {
  background: var(--pink-50);
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.spec-row dd {
  font-size: 15px;
  color: var(--ink);
}

.subhead {
  text-align: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 24px;
}

.func-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.func-list li img {
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 auto 6px;
}

.func-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  background: #fff;
  border: 1.5px solid var(--pink-200);
  color: var(--ink);
  padding: 16px 14px 14px;
  /* 縦並びにしたのでピル型ではなく角丸に */
  border-radius: 18px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 4px 14px rgba(255, 104, 176, .10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.func-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(255, 104, 176, .20);
}

@media screen and (max-width: 600px) {
  .func-list { gap: 8px; }
  .func-list li { min-width: 96px; padding: 13px 10px 11px; font-size: 12px; }
  .func-list li img { width: 34px; height: 34px; }
}

/* ---------- CTA ---------- */
.cta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--pink-100), var(--purple-200));
  border-radius: 40px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.cta::before, .cta::after {
  content: "✦";
  position: absolute;
  font-size: 60px;
  color: rgba(255,255,255,0.6);
}
.cta::before { top: 30px;  left: 40px;  }
.cta::after  { bottom: 30px; right: 40px; }

.cta-lead {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.5;
}

.cta-preorder {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.cta-preorder strong {
  color: var(--pink-text);
  font-weight: 800;
}

.cta-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 40px 40px;
  text-align: center;
  background: var(--ink);
  color: #fff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-weight: 700;
}

.footer-brand .brand-mark {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.copyright {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ---------- Utilities ---------- */
.sp-only { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .brand-name-logo { height: 24px; }
  .brand-name { padding: 9px 14px 9px 11px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 10px 24px 64px;
    gap: 14px;
    text-align: center;
  }
  /* スマホは「ロゴ → 実機 → コピー」の順。
     .hero-inner を display:contents にして中身を直接 .hero の子として並べ替える */
  .hero-inner { display: contents; }
  .hero-head   { display: block; order: 1; }
  .hero-visual { order: 2; min-height: 0; }
  .hero-lead   { order: 3; }
  .hero-sub    { order: 4; }
  .hero-meta   { order: 5; justify-content: center; }

  .features, .colors, .specs { padding: 70px 20px; }

  .color-grid { grid-template-columns: 1fr; gap: 20px; }
  .color-shots { gap: 12px; }
  .color-photo { height: 232px; }
  .color-photo.is-closed { height: 158px; }

  .spec-row { grid-template-columns: 120px 1fr; }
  .spec-row dt, .spec-row dd { padding: 14px 16px; font-size: 13px; }

  .cta { margin: 0 16px 60px; padding: 80px 24px; border-radius: 28px; }
  .sp-only { display: inline; }

  /* サブ2機種：中央の動画と重ならない範囲でできるだけ大きく */
  .hero-product-video { max-height: 520px; height: 52vh; min-height: 350px; }
  .hero-sub-product.left  { max-height: 300px; left: -3%; bottom: 6%; }
  .hero-sub-product.right { max-height: 282px; right: -3%; bottom: 4%; }
}

@media (max-width: 480px) {
  .hero-sub-product.left  { max-height: 250px; }
  .hero-sub-product.right { max-height: 235px; }
  .hero-title { font-size: 56px; }
}

/* ---------- Hero meta tags ---------- */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.meta-item {
  background: #fff;
  border: 1.5px solid var(--pink-200);
  color: var(--pink-text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ---------- Concept ---------- */
.concept {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}
.concept-card {
  background: #fff;
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(200, 180, 220, 0.2);
  position: relative;
  overflow: hidden;
}
.concept-deco {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 140px;
  height: auto;
  transform: rotate(12deg);
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 860px) {
  .concept-deco { width: 90px; top: -20px; right: -10px; }
}

.concept-card::before {
  content: "♡";
  position: absolute;
  top: 20px; left: 30px;
  font-size: 40px;
  color: var(--pink-200);
  opacity: 0.6;
}
.concept-card::after {
  content: "✧";
  position: absolute;
  bottom: 20px; right: 30px;
  font-size: 44px;
  color: var(--purple-400);
  opacity: 0.6;
}
.concept-tag {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--pink-text);
  margin: 0 0 20px;
}
.concept-heading {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 32px;
}
.concept-heading em {
  font-style: normal;
  color: var(--pink-500);
  position: relative;
  padding: 0 4px;
}
.concept-heading em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 10px;
  background: rgba(255, 195, 225, 0.5);
  z-index: -1;
}
.concept-body {
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink-soft);
  margin: 0;
}
.concept-body strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--pink-100) 60%);
}

/* 日本語コピーを外した見出し（英字ラベルのみ） */
.section-title.en-only { margin-bottom: 40px; }
.section-title.en-only .en { font-size: 15px; margin-top: 0; }

/* ---------- Video section ---------- */
.video-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  text-align: center;
}
.video-frame {
  position: relative;
  display: inline-block;
  padding: 30px;
}
.video-phone {
  width: clamp(300px, 34vw, 404px);
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  background: #000;
  padding: 14px;
  box-shadow:
    0 30px 60px rgba(120, 70, 140, 0.25),
    inset 0 0 0 2px rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
  border: 3px solid #fff;
  background-image: linear-gradient(145deg, #fde3f0, #e6d6ff);
}
.product-video {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  background: #222;
  display: block;
}
.video-sound {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--pink-500);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.video-sound:hover { transform: scale(1.1); }
.video-sound .sound-on  { display: none; }
.video-sound .sound-off { display: inline; }
.video-sound.is-on .sound-on  { display: inline; }
.video-sound.is-on .sound-off { display: none; }

.video-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.video-sparkles span {
  position: absolute;
  font-size: 28px;
  color: var(--pink-300);
  animation: twinkle 3s ease-in-out infinite;
}
.video-sparkles span:nth-child(1) { top: 5%;  left: 0;  color: var(--purple-400); }
.video-sparkles span:nth-child(2) { top: 15%; right: 0; color: var(--gold); animation-delay: 0.8s; }
.video-sparkles span:nth-child(3) { bottom: 10%; left: 2%; animation-delay: 1.5s; }
.video-sparkles span:nth-child(4) { bottom: 20%; right: 3%; color: var(--purple-400); animation-delay: 2.2s; }

.video-caption {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 20px 0 0;
}

/* ---------- Frames gallery ---------- */
.frames {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
}
.frames-lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-soft);
  margin: -32px 0 48px;
}
/* ---------- Photo frames: 横に流れるスライドショー ----------
   JSが動かない場合はただの横スクロール領域として機能するため、
   フレームが見られなくなることはない。 */
.frame-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding: 6px 0 14px;
  /* 左右の端をふわっと消して流れている感じを出す */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* JSで複製が完了したら自動で流す */
/* 自動で流れるが、指でつかんで横にスライドもできる（スクロールコンテナのまま動かす） */
.frame-marquee.is-marquee {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.frame-marquee.is-marquee::-webkit-scrollbar { display: none; }
.frame-marquee.is-dragging { cursor: grabbing; }
.frame-marquee.is-dragging .frame-card { pointer-events: none; }

.frame-grid {
  display: flex;
  gap: 16px;
  width: max-content;
}

@media (prefers-reduced-motion: reduce) {
  /* 動きを減らす設定のときは、装飾アニメーションを一括で止める */
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }

  .frame-marquee.is-marquee { overflow-x: auto; }
}

/* 1画面に約4枚。
   トラックは width:max-content なので % 指定にすると循環参照になる。
   実寸は JS が --frame-card-w に入れるが、JSが動かなくても
   clamp で妥当な幅になるようにしてある。 */
.frame-grid > .frame-card {
  flex: 0 0 auto;
  width: var(--frame-card-w, clamp(140px, 21vw, 250px));
}

.frame-card {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 195, 225, 0.3);
  transition: transform 0.3s ease;
}
.frame-card:hover { transform: translateY(-4px) rotate(-1deg); }
.frame-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 10px;
  background: var(--pink-50);
}
.frame-card figcaption {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .frames { padding: 60px 20px; }
  .frame-grid { gap: 10px; }
  .frame-grid > .frame-card { width: var(--frame-card-w, clamp(120px, 34vw, 180px)); }
  .frame-card { padding: 6px; }
  .frame-card figcaption { font-size: 10px; }
}
@media (max-width: 480px) {
  .frame-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Moments ---------- */
.moments {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
}
.moment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.moment-card {
  background: #fff;
  border-radius: 28px;
  padding: 48px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 195, 225, 0.3);
  position: relative;
}
.moment-num {
  font-family: var(--display);
  font-size: 44px;
  color: var(--pink-300);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.moment-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ink);
}
.moment-card p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Worldview ---------- */
.worldview {
  background: linear-gradient(135deg, var(--pink-100) 0%, var(--purple-200) 100%);
  padding: 100px 0;
  margin: 80px 0;
}
.worldview-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.worldview-eyebrow {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin: 0 0 16px;
  opacity: 0.7;
}
.worldview-title {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 56px;
  color: var(--ink);
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px 28px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.6);
}
.voice-mark {
  font-family: var(--display);
  font-size: 60px;
  color: var(--pink-text);
  line-height: 0.3;
  display: block;
  margin-bottom: 12px;
  opacity: 0.6;
}
.voice-card p {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
  margin: 0;
  color: var(--ink);
}

/* ---------- パッケージ写真 ---------- */
.color-pkg {
  display: block;
  width: 72%;
  margin: 14px auto 0;
  border-radius: 10px;
  filter: drop-shadow(0 6px 14px rgba(120, 70, 140, .16));
  transition: transform .35s ease;
}
.color-card:hover .color-pkg { transform: translateY(-3px) scale(1.02); }

@media screen and (max-width: 600px) {
  .color-pkg { width: 62%; margin-top: 10px; }
}

/* ---------- Spec wrap (compact) ---------- */
.spec-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}
.price-block {
  background: #fff;
  border: 2px dashed var(--pink-300);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-block .price-label {
  font-size: 12px;
  color: var(--ink-soft);
}
.price-block .price-num {
  font-family: var(--display);
  font-size: 42px;
  color: var(--pink-text);
  line-height: 1;
}
.price-block .price-unit {
  font-size: 13px;
  font-weight: 700;
}
.price-block .price-release {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3e4ef;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.price-block .price-preorder {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-text);
  letter-spacing: 0.05em;
}
.func-wrap { text-align: center; }

/* ---------- CTA eyebrow ---------- */
.cta-eyebrow {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--pink-text);
  margin: 0 0 20px;
}

.pc-only { display: inline; }

/* ---------- Responsive add ---------- */
@media (max-width: 860px) {
  .concept { padding: 40px 20px 60px; }
  .concept-card { padding: 50px 28px; border-radius: 24px; }

  .video-section { padding: 60px 20px; }
  .video-phone { width: 72vw; max-width: 340px; }

  .moments { padding: 60px 20px; }
  .moment-grid { grid-template-columns: 1fr; gap: 16px; }

  .worldview { padding: 70px 0; margin: 60px 0; }
  .voice-grid { grid-template-columns: 1fr; gap: 16px; }

  .spec-wrap { grid-template-columns: 1fr; gap: 20px; }
  .price-block { padding: 24px; }

  .pc-only { display: none; }
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ページの先頭へ戻る（左下に常駐） ---------- */
.to-top {
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 163, 207, 0.55);
  background: #fff;
  color: var(--pink-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 104, 176, 0.22);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease,
              visibility 0s linear 0.25s,
              border-color 0.2s ease, box-shadow 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.to-top:hover {
  border-color: var(--pink-500);
  box-shadow: 0 8px 22px rgba(255, 104, 176, 0.34);
  transform: translateY(-2px);
}

.to-top:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .to-top {
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* JANコードは色ごとに1行ずつ */
.jan-list span {
  display: block;
}
.jan-list span + span { margin-top: 4px; }

/* CTAの楽天ボタン */
.cta-action { margin: 26px 0 0; }

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff68b0, #ff9ad0);
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(255, 80, 160, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 80, 160, 0.42);
}

.cta-button:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .cta-button { padding: 15px 30px; font-size: 16px; }
}
