@charset "utf-8";

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --accent: #f59e0b;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --bg-light: #f9fafb;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAV (shared) ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Buttons (shared) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-light);
  color: var(--text);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-primary-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-primary-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: 10px;
}

.btn-xl {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 12px;
}

.btn-play {
  background: #10b981;
  color: #fff;
}

.btn-play:hover {
  background: #059669;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  background: #f5f3ff;
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ===== Top page — Hero ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.45)), url('/assets/images/top/background-image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  padding: 40px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ede9fe;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-check {
  color: #10b981;
  font-size: 16px;
}

.hero-img-wrap {
  position: relative;
}

.hero-screenshot {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

.mock-screen {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  border-radius: 20px;
  padding: 32px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 32px 80px rgba(124, 58, 237, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mock-topbar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mock-dot-r {
  background: #ff5f56;
}

.mock-dot-y {
  background: #febc2e;
}

.mock-dot-g {
  background: #27c840;
}

.mock-question {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.mock-question-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.mock-question-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.mock-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mock-choice {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.mock-choice.correct {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #fff;
}

.mock-hp {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-hp-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  width: 40px;
}

.mock-hp-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.mock-hp-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10b981, #34d399);
}

.hero-float-badge {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-1 {
  bottom: -20px;
  left: -32px;
}

.badge-2 {
  top: -20px;
  right: -40px;
}

.hero-img-main {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(124, 58, 237, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
  display: block;
  background: #ede9fe;
  overflow: hidden;
}

/* ===== Top page — Logos strip ===== */
.logos-strip {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  overflow: hidden;
}

.logos-strip-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.logos-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: logos-scroll 20s linear infinite;
}

@keyframes logos-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.logos-track:hover {
  animation-play-state: paused;
}

.logo-dummy {
  height: 28px;
  flex-shrink: 0;
  background: none;
  border-radius: 4px;
  opacity: 0.5;
}

/* ===== Top page — Sections ===== */
.section {
  padding: 96px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon {
  background: #ede9fe;
}

.feature-card:nth-child(2) .feature-icon {
  background: #fef3c7;
}

.feature-card:nth-child(3) .feature-icon {
  background: #d1fae5;
}

.feature-card:nth-child(4) .feature-icon {
  background: #fee2e2;
}

.feature-card:nth-child(5) .feature-icon {
  background: #dbeafe;
}

.feature-card:nth-child(6) .feature-icon {
  background: #fce7f3;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.howto-bg {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #ec4899);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.step-img {
  width: 100%;
  background: #e9d5ff;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.step-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.showcase-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.showcase-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

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

.showcase-body {
  padding: 16px 20px;
  background: #fff;
}

.showcase-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}

.showcase-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.showcase-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.cta-band {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a855f7 100%);
  padding: 100px 40px;
  text-align: center;
}

.cta-band h2 {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer {
  background: rgba(255, 255, 255, 0.92);
  padding: 64px 40px 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.footer-brand-name span {
  color: var(--accent);
}

.footer-brand-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: #64748b;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #f1f5f9;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: #475569;
}

/* ===== List page — Creator profile ===== */
.profile-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
  height: 160px;
}

.profile-header-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.profile-header {
  position: relative;
  padding-bottom: 24px;
}

.profile-avatar-wrap {
  position: absolute;
  top: -52px;
  left: 0;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  background: linear-gradient(135deg, var(--primary), #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  padding-top: 64px;
}

.profile-name {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.profile-handle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.profile-bio {
  font-size: 15px;
  color: var(--text);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.profile-stat {
  font-size: 15px;
  color: var(--text-muted);
}

.profile-stat strong {
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
}

.btn-follow {
  padding: 9px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  transition: all 0.15s;
}

.btn-follow:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-follow.following {
  background: transparent;
  color: var(--primary);
}

.btn-follow.following:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

.btn-follow.pending {
  background: transparent;
  color: #6b7280;
  border-color: #d1d5db;
}

.btn-follow.pending:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

.main-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.section-title-sm {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.featured-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
}

.featured-thumb {
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.featured-body {
  padding: 14px 16px;
  flex: 1;
}

.featured-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.featured-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.featured-actions {
  display: flex;
  gap: 8px;
}

.btn-detail {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #ede9fe;
  color: var(--primary);
  font-weight: 600;
}

.btn-detail:hover {
  background: #ddd6fe;
}

.quiz-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.quiz-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.quiz-item:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.quiz-item-thumb {
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.quiz-item-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quiz-item-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.quiz-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.quiz-item-actions {
  display: flex;
  gap: 8px;
}

/* ===== Plaza page ===== */
.plaza-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
  color: #fff;
  padding: 60px 40px 48px;
  text-align: center;
}

.plaza-hero h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.plaza-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
}

.plaza-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.search-wrap {
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.15s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-submit-btn {
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.15s;
  line-height: 1;
}

.search-submit-btn:hover { opacity: 0.85; }

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

.genre-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.genre-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.genre-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.genre-btn:hover:not(.active) {
  background: var(--bg);
  color: var(--text);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: none;
  grid-column: 1/-1;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.no-results h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.plaza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.plaza-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.plaza-card:hover {
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
  transform: translateY(-3px);
}

.card-thumb {
  width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
}

.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.card-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

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

.card-creator-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.card-creator-handle {
  font-size: 12px;
  color: var(--text-muted);
}

.card-body {
  padding: 16px 20px;
  flex: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  padding: 0 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}

.card-meta-item strong {
  color: var(--text);
  font-weight: 700;
}

.card-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.like-form {
  margin: 0;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-muted);
}

.like-btn:hover,
.like-btn.liked {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

/* ===== Plaza detail page ===== */
.detail-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
}

.quiz-thumb {
  width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
}

.quiz-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.quiz-card-body {
  padding: 28px;
}

.quiz-title-row {
  margin-bottom: 20px;
}

.quiz-title-row h1 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
}

.quiz-title-row p {
  font-size: 14px;
  color: var(--text-muted);
}

.creator-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.creator-avatar-link {
  display: block;
  flex-shrink: 0;
}

.creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  transition: opacity 0.15s;
}

.creator-avatar:hover {
  opacity: 0.8;
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-name {
  font-weight: 800;
  font-size: 15px;
}

.creator-handle {
  font-size: 13px;
  color: var(--text-muted);
}

.post-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  white-space: pre-wrap;
  margin-bottom: 20px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.meta-badge strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.like-btn-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-muted);
}

.like-btn-detail:hover,
.like-btn-detail.liked {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

.comments-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.comments-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 800;
}

.comment-form-wrap {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.comment-form-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cf-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.cf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-right {
  flex: 1;
}

.cf-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.cf-textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  resize: none;
  min-height: 44px;
  transition: border-color 0.15s;
}

.cf-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.cf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.btn-cancel {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-cancel:hover {
  background: var(--bg);
}

.btn-submit-comment {
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
}

.btn-submit-comment:hover {
  background: var(--primary-dark);
}

.login-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.login-prompt-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.login-prompt-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.login-prompt-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--primary);
}

.login-prompt-link:hover {
  background: #ede9fe;
}

.comment-list {
  padding: 0;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar-link {
  display: block;
  flex-shrink: 0;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  transition: opacity 0.15s;
}

.comment-avatar:hover {
  opacity: 0.8;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-right {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-nick {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.comment-date {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== Nav — user / active link ===== */
.nav-active-link {
  color: var(--primary);
  font-weight: 700;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-user-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.nav-user-name {
  font-weight: 600;
  color: var(--text);
}

/* ===== Plaza card extras ===== */
.genre-tag {
  background: #ede9fe;
  color: #7c3aed;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.card-date {
  margin-left: auto;
  font-size: 12px;
}

/* ===== Plaza detail ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.meta-date {
  margin-left: auto;
  font-size: 13px;
}

.like-count-hint {
  font-size: 12px;
  opacity: 0.7;
}

/* ===== Top page — mock stats ===== */
.mock-hp-fill--75 {
  width: 75%;
}

.mock-mp-fill {
  width: 40%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.badge-icon-green {
  background: #d1fae5;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.badge-value {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.badge-emoji {
  font-size: 24px;
}

.badge-title {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
}

.badge-subtitle {
  font-size: 12px;
  color: #6b7280;
}

/* ===== Hamburger & Mobile Nav ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--bg-light); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* オーバーレイ */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 98;
}
.nav-mobile-overlay.is-open { display: block; }

/* ドロワー本体 */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 99;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }

/* ドロワーヘッダー */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-mobile-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.nav-mobile-logo span { color: var(--accent); }
.nav-mobile-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  transition: background 0.15s;
}
.nav-mobile-close:hover { background: var(--border); }

/* ドロワーボディ */
.nav-mobile-body {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ユーザー情報 */
.nav-mobile-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 10px;
  margin-bottom: 8px;
}
.nav-mobile-user-info { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile-user-name { font-size: 14px; font-weight: 700; color: var(--text); }
.nav-mobile-user-email { font-size: 12px; color: var(--text-muted); }

/* リンク */
.nav-mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.15s;
  text-decoration: none;
}
.nav-mobile-link:hover { background: var(--bg-light); }
.nav-mobile-cta {
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 14px 16px;
}
.nav-mobile-cta:hover { background: var(--primary-dark); color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero-float-badge { display: none; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn-xl { padding: 13px 22px; font-size: 15px; }
  .hero-actions .btn-lg { padding: 11px 18px; font-size: 14px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { gap: 24px; }
}

@media (max-width: 980px) {
  .hero { padding: 32px 28px 56px; gap: 32px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 15px; line-height: 1.7; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 16px; }
}

@media (max-width: 900px) {
  /* ナビ */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* ヒーロー */
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 48px;
    gap: 32px;
  }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 16px; }
  .hero-float-badge { display: none; }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-badge { flex-wrap: wrap; }

  /* セクション共通 */
  .section { padding: 56px 20px; }
  .section-title { font-size: 28px; }

  /* フィーチャー */
  .features-grid { grid-template-columns: 1fr; }

  /* ステップ */
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }

  /* ショーケース */
  .showcase-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-band { padding: 56px 20px; }
  .cta-band h2 { font-size: 26px; }
  .cta-actions { flex-direction: column; gap: 12px; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* フッター */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav {
    padding: 0 16px;
  }

  .detail-wrap {
    padding: 24px 16px 60px;
  }

  .quiz-card-body {
    padding: 20px;
  }

  .comments-header,
  .comment-form-wrap,
  .login-prompt,
  .comment-item {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .cta-band h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
}


/* 期限終了バナー */
.period-ended-banner {
  width: 100%;
  background: #fef3c7;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  text-align: center;
  line-height: 1.5;
}