/* =========================================================
   モウジュウガリ 公式サイト 共通スタイル
   色を変えたいときは :root の値を変えてください
   ========================================================= */
:root {
  --cream: #fff9f4;
  --paper: #ffffff;
  --pink: #f7a8c4;
  --pink-deep: #e9799f;
  --pink-pale: #ffe8f0;
  --lavender: #cdb9f5;
  --lavender-pale: #f1ebff;
  --mint: #aee7d3;
  --mint-pale: #e6f8f1;
  --butter: #ffe9a8;
  --text: #6a4c55;
  --text-soft: #9a7f87;
  --line: #f3dbe3;
  --shadow: 0 6px 20px rgba(233, 121, 159, 0.15);
  --radius: 22px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.8;
  background-color: var(--cream);
  background-image: radial-gradient(var(--pink-pale) 2px, transparent 2px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pink-deep); }

.container {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo svg { width: 26px; height: 26px; }

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover { background: var(--pink-pale); }

.nav a[aria-current="page"] {
  background: var(--pink);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--pink-pale);
  color: var(--pink-deep);
  cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 2px dashed var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px 16px; }
}

/* ---------- 見出し・セクション ---------- */
main { padding-bottom: 40px; }

.section { padding: 48px 0 8px; }

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 0 4px;
  letter-spacing: 0.06em;
}

.section-title::before,
.section-title::after {
  content: "✦";
  color: var(--pink);
  font-size: 0.9em;
  margin: 0 0.5em;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin: 0 0 28px;
}

.page-head {
  text-align: center;
  padding: 48px 0 8px;
}

.page-head h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin: 0;
  letter-spacing: 0.08em;
}

.page-head p { color: var(--text-soft); margin: 8px 0 0; }

.more {
  text-align: center;
  margin-top: 24px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--pink);
  background: var(--paper);
  color: var(--pink-deep);
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-2px); background: var(--pink-pale); }

.btn-primary {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: #fff;
  box-shadow: 0 4px 0 #c95a80;
}

.btn-primary:hover { background: var(--pink); }

/* ---------- トップ：ヒーロー ---------- */
.hero {
  padding: 56px 0 32px;
  text-align: center;
  position: relative;
}

.hero-card {
  background: var(--paper);
  border-radius: 40px;
  padding: 48px 24px;
  box-shadow: var(--shadow);
  border: 3px solid var(--pink-pale);
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero-card::before {
  width: 220px; height: 220px;
  background: var(--lavender-pale);
  top: -80px; left: -60px;
}

.hero-card::after {
  width: 260px; height: 260px;
  background: var(--mint-pale);
  bottom: -110px; right: -70px;
}

.hero-card > * { position: relative; z-index: 1; }

.hero-label {
  display: inline-block;
  background: var(--butter);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.2rem, 9vw, 4rem);
  margin: 12px 0 4px;
  color: var(--pink-deep);
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.hero-catch {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sparkle {
  position: absolute;
  color: var(--pink);
  font-size: 1.4rem;
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; }
}

/* ---------- お知らせ ---------- */
.news-list {
  list-style: none;
  margin: 0 auto;
  padding: 8px 24px;
  max-width: 720px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.news-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 2px dotted var(--line);
}

.news-list li:last-child { border-bottom: none; }

.news-date {
  flex-shrink: 0;
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding-top: 2px;
}

@media (max-width: 520px) {
  .news-list li { flex-direction: column; gap: 0; }
}

/* ---------- カードグリッド（ぬい・マンガ共通） ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-4px) rotate(-0.5deg); }

.card-thumb {
  aspect-ratio: 1 / 1;
  background: var(--pink-pale);
  position: relative;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb.is-manga { aspect-ratio: 3 / 4; }

.card-no {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--paper);
  color: var(--pink-deep);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card-body { padding: 12px 16px 16px; }

.card-title {
  font-weight: 700;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.card-meta {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 10px;
  border-radius: 999px;
  margin-top: 6px;
}

.badge-onsale { background: var(--mint); color: #2f6b56; }
.badge-soldout { background: var(--lavender-pale); color: #7a62b5; }

/* 画像がないときの仮表示 */
.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background:
    repeating-linear-gradient(45deg, var(--pink-pale) 0 12px, #fff1f6 12px 24px);
}

.placeholder svg { width: 40%; max-width: 90px; }

/* ---------- 絞り込みボタン ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
}

.filter-btn[aria-pressed="true"] {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.empty {
  text-align: center;
  color: var(--text-soft);
  padding: 40px 0;
}

/* ---------- ショップ導線 ---------- */
.shop-banner {
  background: linear-gradient(135deg, var(--pink-pale), var(--lavender-pale));
  border-radius: 32px;
  padding: 36px 24px;
  text-align: center;
  border: 3px dashed var(--pink);
}

.shop-banner h2 { margin: 0 0 8px; font-size: 1.4rem; }
.shop-banner p { margin: 0 0 20px; }

/* ---------- SNSリンク ---------- */
.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s;
}

.link-card:hover { transform: translateY(-3px); }

.link-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.link-icon svg { width: 24px; height: 24px; }

.link-label { font-weight: 700; display: block; line-height: 1.4; }
.link-sub { font-size: 0.8rem; color: var(--text-soft); }

.icon-x { background: #6a4c55; }
.icon-base { background: var(--pink-deep); }
.icon-instagram { background: linear-gradient(135deg, #f6b26b, #e9799f, #a88be0); }
.icon-youtube { background: #ef7a7a; }
.icon-line { background: #5fc98a; }

/* ---------- About ---------- */
.about-card {
  background: var(--paper);
  border-radius: 32px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.about-card h2 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
  color: var(--pink-deep);
}

.about-card h2:first-child { margin-top: 0; }

.faq dt {
  font-weight: 700;
  margin-top: 16px;
}

.faq dt::before { content: "Q. "; color: var(--pink-deep); }
.faq dd { margin: 4px 0 0; }
.faq dd::before { content: "A. "; color: var(--text-soft); font-weight: 700; }

/* ---------- PR（アフィリエイト）枠 ---------- */
.pr-box {
  margin: 48px auto 0;
  max-width: 760px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px 20px 24px;
  border: 2px solid var(--line);
  position: relative;
}

.pr-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid var(--text-soft);
  border-radius: 4px;
  padding: 0 6px;
  margin-bottom: 8px;
}

.pr-title {
  font-weight: 700;
  margin: 0 0 12px;
}

.pr-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  justify-items: center;
}

/* アフィリエイトコードを貼るまでの仮表示 */
.pr-empty {
  width: 100%;
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* ---------- ポップアップ（拡大表示） ---------- */
.viewer {
  border: none;
  border-radius: 28px;
  padding: 0;
  width: min(720px, 100% - 24px);
  max-height: calc(100% - 24px);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(106, 76, 85, 0.3);
}

.viewer::backdrop { background: rgba(106, 76, 85, 0.55); }

.viewer-inner { padding: 20px; }

.viewer-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--pink-pale);
  color: var(--pink-deep);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
}

.viewer-main {
  border-radius: 18px;
  overflow: hidden;
  background: var(--pink-pale);
  clear: both;
}

.viewer-main img { width: 100%; max-height: 70vh; object-fit: contain; background: #fff; }
.viewer-main .placeholder { aspect-ratio: 1 / 1; }

.viewer-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.viewer-thumbs button {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--pink-pale);
}

.viewer-thumbs button[aria-current="true"] { border-color: var(--pink); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.viewer h2 { margin: 16px 0 0; font-size: 1.3rem; }
.viewer .card-meta { font-size: 0.9rem; }
.viewer-text { white-space: pre-wrap; margin: 12px 0 0; }
.viewer-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 56px;
  background: var(--paper);
  border-top: 3px dashed var(--line);
  padding: 36px 0 24px;
  text-align: center;
}

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

.footer-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
}

.footer-links svg { width: 20px; height: 20px; }

.footer-note {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin: 0 0 6px;
}

.copyright { font-size: 0.8rem; margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 次の販売カウントダウン ---------- */
.countdown {
  margin-top: 8px;
  background: var(--paper);
  border-radius: 32px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--lavender-pale);
}

.countdown:empty { display: none; }

.countdown-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--lavender);
}

.countdown-title {
  margin: 4px 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

.countdown-digits {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.countdown-unit {
  min-width: 72px;
  padding: 10px 6px 6px;
  border-radius: 18px;
  background: var(--pink-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-unit:nth-child(2) { background: var(--lavender-pale); }
.countdown-unit:nth-child(3) { background: var(--mint-pale); }
.countdown-unit:nth-child(4) { background: #fff6d9; }

.countdown-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--pink-deep);
  font-variant-numeric: tabular-nums;
}

.countdown-unit-label { font-size: 0.75rem; color: var(--text-soft); }

.countdown-date { margin: 0; font-weight: 700; }
.countdown-note { margin: 4px 0 0; color: var(--text-soft); font-size: 0.9rem; }
.countdown .hero-actions { margin-top: 18px; }

@media (max-width: 520px) {
  .countdown-digits { gap: 6px; }
  .countdown-unit { min-width: 0; flex: 1; }
  .countdown-num { font-size: 1.6rem; }
}

/* ---------- おむかえ報告 ---------- */
.hashtag-box {
  background: linear-gradient(135deg, var(--mint-pale), var(--lavender-pale));
  border-radius: 32px;
  padding: 32px 20px;
  text-align: center;
  border: 3px dashed var(--lavender);
}

.hashtag-box p { margin: 0; }

.hashtag-lead { font-weight: 700; }

.hashtag-tag {
  display: inline-block;
  margin: 10px 0 !important;
  padding: 6px 20px;
  background: var(--paper);
  border-radius: 999px;
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  font-weight: 900;
  color: var(--pink-deep);
  word-break: break-all;
}

.hashtag-box .hero-actions { margin-top: 20px; }

.hashtag-small {
  margin-top: 14px !important;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ---------- 壁紙 ---------- */
.card-thumb.is-wallpaper { aspect-ratio: 9 / 16; }

.grid-wallpaper { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

@media (max-width: 520px) {
  .grid-wallpaper { grid-template-columns: repeat(2, 1fr); }
}

.viewer-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}
