/* ═══════════════════════════════════════════════════
   Pâtisserie POPOTTE（架空・制作デモ）
   tone-58 パティスリーのパステルポップ
   base #FEFEFE / text #3B2116 / accent #E68191
   書体: Zen Maru Gothic（見出し・本文とも）
   ═══════════════════════════════════════════════════ */
:root {
  --base: #FEFEFE;
  --ink: #3B2116;
  --accent: #E68191;
  --accent-deep: #D96F80;
  --pink-soft: #FBEDF1;
  --pink-mid: #F5C8D2;
  --cream: #FFF8F0;
  --cream-deep: #FFF4E9;
  --mint: #C9E4CE;
  --lemon: #FBE3A9;
  --muted: rgba(59, 33, 22, 0.62);
  --radius-l: 28px;
  --radius-m: 20px;
  --shadow-card: 0 14px 34px rgba(217, 111, 128, 0.16);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

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

/* scroll-behavior:smooth はプログラムスクロール全般を乗っ取るため使わない
   （アンカーのスムーズ移動はJS側でクリック時のみ行う） */
html { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--base);
  line-height: 1.9;
  font-size: 16px;
  overflow-x: clip;
}

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

/* グリッドアイテムの膨張防止（min-width:auto対策） */
.hero-inner > *, .gift-grid > *, .shop-grid > *, .card-grid > *, .sc-grid > *, .feature-row > * { min-width: 0; }
.hero-blob img, .gift-photo img, .shop-photo img, .card-photo img, .tilt img { width: 100%; }

h1, h2, h3 { line-height: 1.45; text-wrap: balance; font-weight: 700; }

/* ── 小タグ（左上のみ） ── */
.site-tag {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 60;
  display: flex; align-items: center; gap: 8px;
}
.tag-pill {
  background: var(--accent);
  color: #FFF6EF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 16px rgba(217, 111, 128, 0.3);
}
.tag-sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 500;
}

/* ── ボタン（くすみピンクのピル型＋ステッチ縁取り） ── */
.btn-cta {
  position: relative;
  display: inline-block;
  background: var(--accent);
  color: #FFF6EF;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(217, 111, 128, 0.35);
  will-change: transform;
}
.btn-cta::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px dashed rgba(255, 246, 239, 0.8);
  border-radius: 999px;
  pointer-events: none;
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--accent-deep);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 2px dashed var(--accent);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-ghost:hover { background: rgba(230, 129, 145, 0.1); transform: translateY(-2px); }

/* ── FV ── */
.hero {
  position: relative;
  background:
    radial-gradient(46% 42% at 82% 18%, rgba(245, 200, 210, 0.5), transparent 70%),
    radial-gradient(40% 38% at 8% 82%, rgba(251, 227, 169, 0.32), transparent 70%),
    linear-gradient(180deg, #FFFDFB 0%, #FFF7F2 100%);
  padding: 92px 24px 56px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 26px;
}
.hero-cta-row { margin-bottom: 16px; }
.hero-info {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nw { display: inline-block; }
.hero-visual { position: relative; }
.hero-blob {
  border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(217, 111, 128, 0.28);
  will-change: transform;
}
.hero-blob img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.disc-wrap {
  position: absolute;
  left: -34px; bottom: -26px;
  width: clamp(120px, 14vw, 180px);
  cursor: pointer;
  border: none;
  background: none;
  filter: drop-shadow(0 12px 22px rgba(59, 33, 22, 0.2));
  border-radius: 50%;
}
.disc-wrap:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }
.disc {
  display: block;
  width: 100%;
  animation: spin 16s linear infinite;
  will-change: transform;
}
.disc-wrap:hover .disc { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 浮遊デコ */
.float-deco { position: absolute; will-change: transform; pointer-events: none; }
.deco-macaron { width: 74px; top: -26px; right: 6%; transform: rotate(-14deg); }
.deco-berry { width: 46px; top: 34%; right: -18px; transform: rotate(10deg); }
.deco-macaron2 { width: 58px; bottom: 8%; right: 14%; transform: rotate(18deg); }
.deco-gift-berry { width: 44px; top: -18px; right: -8px; transform: rotate(-12deg); }

/* ── スカラップ区切り ── */
.scallop {
  height: 22px;
  background-color: var(--b);
  background-image: radial-gradient(circle at 11px -5px, var(--a) 0 13px, transparent 14px);
  background-size: 22px 22px;
  background-repeat: repeat-x;
}

/* ── マーキー ── */
.marquee {
  background: #E994A2;
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.mq-set {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  color: #FFF6EF;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.mq-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #FFF6EF;
  opacity: 0.75;
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── セクション共通 ── */
.section { padding: 76px 24px; position: relative; }
.container { max-width: 1060px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.sec-head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 8px;
}
.sec-head h2, .shop-info h2, .gift-text h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
}
.ribbon-sep { width: 150px; height: 22px; margin: 12px auto 0; display: block; }
.sec-lead { color: var(--muted); margin-top: 14px; font-size: 0.98rem; }
.sec-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 30px; }

/* ── 新作カード ── */
.sec-shinsaku { background: var(--base); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cake-card {
  background: #FFFFFF;
  border-radius: var(--radius-l);
  padding: 18px 18px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(230, 129, 145, 0.18);
  will-change: transform;
  transform-origin: 50% 100%;
}
.card-photo {
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 16px;
}
.card-photo img { aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cake-card:hover .card-photo img { transform: scale(1.05); }
.cake-card h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.85; text-align: left; margin-bottom: 12px; }
.card-price {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--accent-deep);
  font-weight: 900;
  font-size: 1.2rem;
  padding: 4px 20px;
  border-radius: 999px;
}
.card-price span { font-size: 0.8rem; font-weight: 700; margin-left: 2px; }

/* ── ギフト ── */
.sec-gift { background: var(--pink-soft); }
.gift-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.gift-text .eyebrow { text-align: left; }
.gift-text h2 { margin-bottom: 20px; }
.gift-text p:not(.eyebrow) { margin-bottom: 16px; font-size: 0.97rem; }
.gift-visual { position: relative; }
.gift-photo {
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(217, 111, 128, 0.25);
}
.gift-photo img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ── ポポットのこと ── */
.sec-about { background: var(--cream); }
.about-copy { max-width: 620px; margin: 0 auto 44px; }
.about-copy p { margin-bottom: 16px; font-size: 0.97rem; }
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.feature {
  background: #FFFFFF;
  border-radius: var(--radius-l);
  border: 1px solid rgba(230, 129, 145, 0.16);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
  will-change: transform;
}
.feature svg { width: 54px; height: 54px; margin: 0 auto 12px; display: block; }
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { font-size: 0.86rem; color: var(--muted); line-height: 1.8; }

/* ── ショーケース ── */
.sec-showcase { background: var(--base); }
.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sc-item { perspective: 900px; }
.tilt {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
  box-shadow: 0 12px 30px rgba(217, 111, 128, 0.18);
  border: 1px solid rgba(230, 129, 145, 0.15);
  background: #FFFFFF;
}
.tilt img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.sc-cap {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255, 246, 239, 0.92);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.45), transparent 60%);
  opacity: var(--glow, 0);
  transition: opacity 0.3s ease;
}
.sc-more {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(60% 60% at 50% 30%, rgba(245, 200, 210, 0.4), transparent 75%),
    var(--cream-deep);
}
.sc-more svg { width: 84px; height: 84px; }
.sc-more-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-align: center;
  line-height: 1.7;
}
@media (pointer: coarse) {
  .tilt { transform: none; }
  .tilt:active { transform: scale(0.97); }
}

/* ── FAQ ── */
.sec-faq { background: var(--cream); }
.faq-list { display: grid; gap: 16px; }
.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-m);
  border: 1px solid rgba(230, 129, 145, 0.16);
  padding: 20px 26px;
  box-shadow: var(--shadow-card);
  will-change: transform;
}
.faq-item dt {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.faq-item dt::before { content: "Q. "; font-weight: 900; }
.faq-item dd { font-size: 0.92rem; color: var(--muted); }

/* ── 店舗情報 ── */
.sec-shop { background: var(--pink-soft); }
.shop-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
}
.shop-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(217, 111, 128, 0.25);
}
.shop-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.shop-info .eyebrow { text-align: left; }
.shop-info h2 { margin-bottom: 16px; }
.shop-lead { font-size: 0.97rem; margin-bottom: 22px; }
.shop-table { margin-bottom: 26px; }
.shop-table > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(230, 129, 145, 0.4);
  font-size: 0.92rem;
}
.shop-table dt { font-weight: 700; color: var(--accent-deep); }
.shop-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.demo-note { margin-top: 12px; font-size: 0.84rem; color: var(--accent-deep); font-weight: 700; }

/* ── フッター ── */
.footer {
  background: #F6DCE2;
  text-align: center;
  padding: 44px 24px 36px;
}
.footer-bow { width: 52px; height: 24px; margin: 0 auto 10px; display: block; }
.footer-name { font-weight: 900; letter-spacing: 0.08em; margin-bottom: 10px; }
.footer-demo { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.footer-credit { font-size: 0.74rem; color: rgba(59, 33, 22, 0.45); letter-spacing: 0.06em; }

/* ── FXキャンバス ── */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* ══ レスポンシブ ══ */
@media (max-width: 900px) {
  .card-grid, .feature-row { grid-template-columns: 1fr 1fr; }
  .sc-grid { grid-template-columns: 1fr 1fr; }
  .gift-grid, .shop-grid { grid-template-columns: 1fr; gap: 30px; }
  .shop-photo { order: -1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding: 76px 20px 42px; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; }
  .hero-eyebrow { font-size: 0.8rem; margin-bottom: 8px; }
  .hero-title { font-size: 1.75rem; margin-bottom: 10px; }
  .hero-lead { font-size: 0.9rem; margin-bottom: 0; }
  /* SPは 見出し→写真→CTA の縦積みでFV1画面に収める */
  .hero-text { display: contents; }
  .hero-eyebrow { order: 1; }
  .hero-title { order: 2; }
  .hero-lead { order: 3; }
  .hero-visual { order: 4; margin: 14px 0 6px; }
  .hero-cta-row { order: 5; margin: 14px 0 6px; text-align: center; }
  .hero-info { order: 6; text-align: center; font-size: 0.78rem; }
  .hero-blob img { aspect-ratio: 16 / 10; }
  .disc-wrap { left: -16px; bottom: -20px; width: 104px; }
  .deco-macaron { width: 54px; top: -18px; right: 2%; }
  .deco-berry { width: 34px; right: -8px; }
  .deco-macaron2 { display: none; }
  .btn-cta { padding: 0.9rem 2rem; font-size: 0.96rem; }
  .section { padding: 56px 20px; }
  .card-grid, .feature-row, .sc-grid { grid-template-columns: 1fr; }
  .sc-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sc-cap { font-size: 0.72rem; padding: 4px 10px; }
  .sc-more-text { font-size: 0.8rem; }
  .sc-more svg { width: 60px; height: 60px; }
  .shop-table > div { grid-template-columns: 78px 1fr; font-size: 0.88rem; }
  .tag-sub { display: none; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.55rem; }
  .sc-grid { grid-template-columns: 1fr; }
}

/* ══ prefers-reduced-motion: 動きを止めても成立 ══ */
@media (prefers-reduced-motion: reduce) {
  .disc { animation: none; }
  .marquee-track { animation: none; }
  .card-photo img, .btn-ghost, .glare { transition: none; }
  .cake-card:hover .card-photo img { transform: none; }
  #fx { display: none; }
}
