/* ==========================================================================
   ポッポコーン 文化祭サイト カスタムスタイル
   Tailwind CSS (CDN) で基本レイアウトを組み、細部の質感はここで補う
   ========================================================================== */

:root {
  --color-primary: #FF9F1C;   /* ポップオレンジ */
  --color-accent: #FFBF69;    /* パステルイエロー */
  --color-dark: #4A2C0B;
  --color-cream: #FFF8EC;
  --color-butter: #FFE066;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  background-color: var(--color-cream);
  color: var(--color-dark);
}

/* ---------- Hero ---------- */
#hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #FFE9C2 0%, #FFD59E 45%, #FF9F1C 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  touch-action: none;
}

.hero-overlay {
  position: relative;
  z-index: 10;
}

.hero-badge {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-soft { animation: float-soft 3.2s ease-in-out infinite; }

/* ---------- Flavor Cards ---------- */
.flavor-card {
  position: relative;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(74, 44, 11, 0.25);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flavor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -14px rgba(74, 44, 11, 0.35);
}

.flavor-canvas-wrap {
  width: 100%;
  height: 160px;
  background: linear-gradient(180deg, #FFF3D6 0%, #FFE3AE 100%);
}
.flavor-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.allergen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #FFF3D6;
  color: #8a5a1e;
  border: 1px solid #FFDDA1;
}

.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 24, 8, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  flex-direction: column;
  gap: 0.5rem;
}
.sold-out-stamp {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  border: 3px solid #fff;
  padding: 0.35rem 1.25rem;
  border-radius: 0.75rem;
  transform: rotate(-8deg);
}

/* ---------- News ---------- */
.news-item {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #FFE3AE;
}
.news-important {
  border: 2px solid var(--color-primary);
  background: #FFF6E9;
}
.pin-badge {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: 9999px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: #e6890f; transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 9999px;
  font-weight: 700;
  background: #fff;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* ---------- Admin ---------- */
.toggle-switch {
  width: 3.25rem;
  height: 1.75rem;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 9999px;
  background: #fff;
  transition: left 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle-switch.on { background: #22c55e; }
.toggle-switch.off { background: #d1d5db; }
.toggle-switch.on .knob { left: calc(100% - 1.55rem); }

/* Scrollbar-friendly admin table */
.admin-table th, .admin-table td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .float-soft { animation: none; }
  html { scroll-behavior: auto; }
}
