/* ==========================================================================
   弥生ノ呼吸フェア | 鬼滅の刃 同人作品特集
   ========================================================================== */

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

:root {
  --background: hsl(40, 30%, 96%);
  --foreground: hsl(337, 9%, 30%);
  --card: hsl(40, 25%, 93%);
  --card-foreground: hsl(0, 0%, 15%);
  --primary: hsl(338, 92%, 42%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(107, 30%, 84%);
  --secondary-foreground: hsl(104, 63%, 31%);
  --muted: hsl(40, 15%, 90%);
  --muted-foreground: hsl(0, 0%, 40%);
  --accent: hsl(95, 67%, 42%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(40, 15%, 85%);
  --sakura: hsl(346, 100%, 74%);
  --sakura-light: hsl(340, 35%, 75%);
  --matcha: hsl(92, 62%, 54%);
  --matcha-light: hsl(150, 20%, 60%);
  --cream: hsl(61, 100%, 93%);
  --red: hsl(7, 82%, 44%);
  --section-sakura: hsl(346deg 100% 94% / 60%);
  --section-matcha: hsl(72deg 86% 86% / 60%);
  --section-cream: hsl(61deg 100% 93% / 60%);
  --section-wisteria: hsl(270, 20%, 94%);
  --spring-gradient: linear-gradient(135deg, hsl(346, 100%, 74%),hsl(346, 100%, 74%), hsl(35, 91%, 64%), hsl(73, 100%, 39%));
  --sakura-gradient: linear-gradient(135deg, hsl(346, 100%, 74%), hsl(337, 31%, 34%));
  --matcha-gradient: linear-gradient(135deg, hsl(92, 62%, 54%), hsl(69, 47%, 53%));
  --card-hover-shadow: 0 8px 32px -8px hsla(0, 14%, 1%, 0.15);
}

html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  /* font-family: "Kiwi Maru", serif; */
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 300;
  font-style: normal;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.bg-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../images/bg_img.jpg) center / cover no-repeat;
  pointer-events: none;
  z-index: -1;
}

/* .font-serif { font-family: "Hina Mincho", serif; } */

/* ==========================================================================
   Section Title
   ========================================================================== */
.section-title {
  /* font-family: "Hina Mincho", serif; */
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem 0;
  background: var(--foreground);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sakura), var(--accent), var(--sakura), transparent);
}

/* ==========================================================================
   Campaign Card
   ========================================================================== */
.campaign-card {
  border-radius: 0.5rem;
  padding: 3rem 1.5rem 1.5rem;
  background: #fff;
  transition: all 0.3s;
}
.campaign-card:hover {
  border-color: hsla(340, 30%, 55%, 0.4);
  box-shadow: var(--card-hover-shadow);
}
.card-icon {
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border-radius: 44px;
  background: var(--section-wisteria);  
}

/* ==========================================================================
   Coupon Card
   ========================================================================== */
.coupon-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #fff;
  
}

/* ==========================================================================
   Gold Text
   ========================================================================== */
.gold-text {
  background: linear-gradient(135deg, var(--sakura), var(--sakura-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Flame Border
   ========================================================================== */
.flame-border {
  border: 1px solid hsla(340, 30%, 55%, 0.3);
  box-shadow: 0 0 20px hsla(340, 30%, 55%, 0.08);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
  gap: 0.5rem;
}
.btn-primary {
  background: var(--sakura);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: var(--sakura-light); }
.btn-matcha {
  background: var(--matcha-gradient);
  color: var(--accent-foreground);
}
.btn-matcha:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-sakura { background: var(--sakura-gradient); color: #fff; }
.btn-sakura:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-spring { background: var(--spring-gradient); color: #fff; }
.btn-spring:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline:hover { background: var(--secondary); }
.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  background-color: #fff;
}
.btn-outline-primary:hover { background: hsla(340, 30%, 55%, 0.1); }
.btn-sm { padding: 0.375rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 2.5rem; font-size: 1rem; }

/* ==========================================================================
   Hashtag badge
   ========================================================================== */
.hashtag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--section-sakura);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   Icon circle
   ========================================================================== */
.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: hsla(340, 30%, 55%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ==========================================================================
   Prize box
   ========================================================================== */
.prize-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--section-sakura);
  border: 1px solid hsla(150, 25%, 40%, 0.2);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 1rem; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* ==========================================================================
   Grid
   ========================================================================== */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: repeat(2, 1fr); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 4rem 1rem; 
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  overflow: hidden;
}
.hero-inner {
  position: relative;
}
.hero-content { text-align: center; position: relative;
    z-index: 1; }
.hero-content img { max-width: 550px; width: 100%; height: auto; }
.hero-chara {
  width: 240px;
  position: absolute;
  right: -155px;
  top: 70px;
  z-index: 0;
}
.hero-chara-img {
  width: 100%;
  height: auto;
  animation: floatChara 3s ease-in-out infinite;
}

/* ==========================================================================
   Doujinshi Card
   ========================================================================== */
.doujinshi-card {
  cursor: pointer;
  min-width: 0;
}
.doujinshi-cover {
  aspect-ratio: 210 / 297;
  border-radius: 0.5rem;
  background: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s;
}
.doujinshi-card:hover .doujinshi-cover { transform: scale(1.02); }
.doujinshi-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.doujinshi-title {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doujinshi-meta {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doujinshi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.doujinshi-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.doujinshi-tag-char {
  background: white;
  color: var(--secondary-foreground);
}
.doujinshi-tag-cp {
  background: var(--matcha);
  color: white;
}
.doujinshi-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 0.25rem;
}
.doujinshi-cover-link {
  display: block;
  text-decoration: none;
}
.doujinshi-detail-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
  text-decoration: none;
}

/* ===== Character "もっと見る" button ===== */
.char-more-wrap {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1.5rem;
}
.char-more-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2rem;
}

/* ==========================================================================
   Category bar (2-level tabs)
   ========================================================================== */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}
.category-btn {
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  color: var(--muted-foreground);
  font-family: inherit;
}
.category-btn:hover {
  background: var(--muted); color: var(--foreground);
}
.category-btn.active {
  background: var(--matcha);
  color: var(--primary-foreground);
}

/* ==========================================================================
   Tab bar
   ========================================================================== */
.tab-bar {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.tab-bar::-webkit-scrollbar { height: 4px; }
.tab-bar::-webkit-scrollbar-track { background: var(--muted); border-radius: 2px; }
.tab-bar::-webkit-scrollbar-thumb { background: var(--sakura); border-radius: 2px; }
.tab-btn {
  padding: 0.5rem 1rem;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--muted-foreground);
  font-family: inherit;
}
.tab-btn:hover { background: var(--muted); color: var(--foreground); }
.tab-btn.active {
  background: var(--sakura);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   WEB Only Event thumbnail
   ========================================================================== */
.event-thumb {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.event-thumb-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

/* ==========================================================================
   SNS Campaign detail
   ========================================================================== */
.sample-text {
  background: hsla(150, 15%, 85%, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.sample-text p {
  font-size: 0.875rem;
  color: hsla(0, 0%, 15%, 0.8);
  font-style: italic;
}

/* ===== Share Buttons ===== */
.share-section { padding: 3rem 0; }
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.share-btn-x { background: #000; }
.share-btn-facebook { background: #1877F2; }
.share-btn-line { background: #06C755; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: slideUp 0.6s ease-out both;
}

/* ==========================================================================
   Sakura Petals
   ========================================================================== */
.sakura-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
}
.petal {
  position: absolute;
  top: -20px;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0.3; }
}

/* ==========================================================================
   Flex helpers
   ========================================================================== */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap-2 { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.flex-gap-3 { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

/* ==========================================================================
   Section backgrounds (inline style replacements)
   ========================================================================== */
.bg-section-sakura  { background: var(--section-sakura); }
.bg-section-cream   { background: var(--section-cream); }
.bg-section-matcha  { background: var(--section-matcha); }
.bg-section-wisteria { background: var(--section-wisteria); }

.section-lg { max-width: 64rem; margin: 0 auto; }
.section-md { max-width: 56rem; margin: 0 auto; }
.section-xl { max-width: 72rem; margin: 0 auto; }


.float-illust {
  position: absolute;
  right: 1rem;
  top: 1rem;
  left: calc(50% + 250px);
  width: 200px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Responsive: Mobile-first fixes
   ========================================================================== */
@media (max-width: 767px) {
  .section { padding: 2.5rem 0.5rem; }
  .campaign-card { padding: 3rem 1.25rem 1.25rem; }
  .coupon-card { padding: 1.25rem; }
  .event-thumb p { font-size: 1.125rem; }
  .tab-bar { padding-left: 0.5rem; padding-right: 0.5rem; }
  .hero-chara {
    width: 170px;
    position: relative;
    top: 0;
    right: 0;
    display: block;
    margin: -10px auto -40px;
  }
  .section-title {
    font-size: 1.5rem;
    padding: 0.75rem 0;
  }
}

/* ==========================================================================
   Responsive: Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Responsive: Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
  .hero-content img { max-width: 700px; }
  .hero-chara {
    width: 300px;
    right: -225px;
    top: 40px;
  }
}


/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

@keyframes floatChara {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  75% { transform: translateY(4px) rotate(-2deg); }
}

/* ===== Mobile Sticky Bottom Bar ===== */
.sticky-bottom-bar {
  display: none; /* デスクトップでは非表示 */
}
@media (max-width: 575px) {
  .sticky-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    gap: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  }
  .sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: #fff;
    line-height: 1.3;
  }
  .sticky-btn-pink {
    background: var(--sakura-gradient);
  }
  .sticky-btn-gradient {
    background: var(--spring-gradient);
  }
  .sticky-btn:active {
    opacity: 0.85;
  }
  /* フッターがスティッキーバーに隠れないように余白追加 */
  .site-footer {
    padding-bottom: 5rem;
  }
}
