:root {
  --bg: #f4fcf6;
  --text: #1a2f22;
  --brand: #22c55e;
  --brand-dark: #166534;
  --dark-bg: #0f172a;
  --dark-text: #f8fafc;
  --peach: #fca5a5;
  --citrus: #fdba74;
  --currant: #374151;
  --blueberry: #93c5fd;
  --card-bg: #ffffff;
  --border: #d1fae5;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Progress bar */
#progress-bar { position: fixed; top: 0; left: 0; height: 4px; background: var(--brand); width: 0%; z-index: 1000; transition: width 0.1s; }

/* Header */
header { position: sticky; top: 0; background: rgba(244, 252, 246, 0.95); backdrop-filter: blur(8px); border-bottom: 2px solid var(--border); z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.brand img { height: 32px; border-radius: 8px; }
.nav-menu { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; flex: 1; margin: 0 20px; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a { font-size: 14px; font-weight: 600; color: #4b5563; white-space: nowrap; padding: 8px 4px; border-bottom: 2px solid transparent; transition: color 0.2s; }
.nav-menu a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }
.nav-menu a.active { color: var(--brand-dark); border-bottom-color: var(--brand); position: relative; }
.nav-menu a.active::after { content: "今日"; font-size: 10px; background: var(--brand); color: #fff; padding: 1px 4px; border-radius: 4px; position: absolute; top: 0; right: -14px; }

.btn-download { background: var(--brand); color: #fff; font-weight: 800; padding: 0 20px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; border: none; cursor: pointer; transition: transform 0.2s, background 0.2s; white-space: nowrap; }
.btn-download:hover { background: var(--brand-dark); transform: translateY(-2px); }
.download-wrapper { position: relative; }
.qr-popover { display: none; position: absolute; top: 100%; right: 0; margin-top: 10px; background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 1px solid var(--border); text-align: center; z-index: 101; }
.download-wrapper:hover .qr-popover { display: block; }
.qr-placeholder { width: 120px; height: 120px; background: #e5e7eb; border-radius: 8px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #9ca3af; }

.mobile-menu-btn { display: none; background: none; border: 2px solid var(--brand); color: var(--brand-dark); padding: 8px 12px; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* Sections */
section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; position: relative; }
h2 { font-size: 32px; margin-bottom: 16px; }
.subtitle { font-size: 16px; color: #4b5563; margin-bottom: 40px; }
.btn-text { color: var(--brand-dark); font-weight: 600; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }

/* Hero */
.hero { padding-top: 40px; min-height: 80vh; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.hero-content h1 { font-size: 48px; letter-spacing: -1px; margin-bottom: 20px; }
.hero-content h1 span { color: var(--brand); }
.hero-desc { font-size: 18px; color: #4b5563; margin-bottom: 30px; line-height: 1.6; }
.download-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-secondary { background: #fff; border: 2px solid var(--border); height: 44px; padding: 0 20px; border-radius: 22px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; color: var(--text); transition: border-color 0.2s; }
.btn-secondary:hover { border-color: var(--brand); }
.trust-text { font-size: 14px; color: #6b7280; }
.trust-text span { color: var(--brand-dark); font-weight: bold; }

.hero-visual { position: relative; height: 600px; overflow: hidden; display: flex; gap: 20px; justify-content: flex-end; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.hero-scroll-wall { display: flex; gap: 16px; animation: scrollUp 20s linear infinite; }
.hero-scroll-wall:nth-child(even) { animation: scrollDown 25s linear infinite; }
.hero-col { display: flex; flex-direction: column; gap: 16px; width: 120px; }
.hero-col img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; }

@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

/* Cups (3:4 design) */
.cup-card { position: relative; background: #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.cup-card:hover { transform: translateY(-6px) rotate(1deg); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.cup-card img { width: 100%; height: 100%; object-fit: cover; }
.cup-sticker { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.85) 40%); padding: 20px 12px 12px; color: #fff; font-size: 12px; pointer-events: none; }
.cup-sticker h3 { font-size: 16px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cup-sticker p { font-size: 12px; color: #d1d5db; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cup-tag { display: inline-block; background: var(--brand); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 10px; margin-bottom: 6px; }
.cup-cover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(34, 197, 94, 0.9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; opacity: 0; transition: opacity 0.2s; }
.cup-card:hover .cup-cover { opacity: 1; }

/* Briefs */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }

/* AI vs Comic */
.ai-comic-section { display: flex; gap: 40px; align-items: center; }
.ai-comic-col { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ai-comic-col .cup-card { width: 100%; max-width: 240px; margin-bottom: 20px; }
.ai-comic-toggle { background: var(--border); width: 60px; height: 32px; border-radius: 16px; position: relative; cursor: pointer; transition: background 0.3s; }
.ai-comic-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; background: #fff; border-radius: 50%; transition: transform 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.ai-comic-toggle.active { background: var(--brand); }
.ai-comic-toggle.active::after { transform: translateX(28px); }

/* Mood (Dark) */
.mood-section { background: var(--dark-bg); color: var(--dark-text); border-radius: 24px; padding: 60px 40px; margin-top: 60px; margin-bottom: 60px; max-width: 1160px; }
.mood-section h2, .mood-section .subtitle { color: #fff; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.mood-card { background: #1e293b; border-radius: 12px; overflow: hidden; position: relative; }
.mood-card .date-badge { position: absolute; top: 12px; left: 12px; background: #fff; color: #000; font-size: 12px; font-weight: bold; padding: 4px 8px; border-radius: 4px; z-index: 2; }
.mood-card .cup-card { border-radius: 0; box-shadow: none; aspect-ratio: 3/4; }
.mood-card .desc { padding: 16px; color: #cbd5e1; font-size: 14px; }

/* Genres */
.genres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.genre-block { border-radius: var(--radius); padding: 24px; color: #111; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.genre-block:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.genre-block h3 { font-size: 24px; margin-bottom: 8px; }
.genre-block .cups { display: flex; gap: 8px; margin-top: 16px; overflow: hidden; }
.genre-block .cups img { width: 40px; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.bg-peach { background: var(--peach); }
.bg-citrus { background: var(--citrus); }
.bg-currant { background: var(--currant); color: #fff; }
.bg-blueberry { background: var(--blueberry); }

/* Rhythm */
.beat-band { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-bottom: 40px; }
.beat-bar { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; opacity: 0.7; transition: opacity 0.2s, height 0.3s; position: relative; }
.beat-bar:hover { opacity: 1; background: var(--brand-dark); }
.beat-bar::after { content: attr(data-label); position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #6b7280; white-space: nowrap; }

/* Calendar */
.calendar-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.calendar-card { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.calendar-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.calendar-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.calendar-item:hover { background: var(--bg); }
.calendar-item img { width: 60px; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; }
.calendar-info { flex: 1; }
.calendar-info h4 { font-size: 16px; margin-bottom: 4px; }
.calendar-info p { font-size: 12px; color: #6b7280; }

/* Rankings */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; gap: 16px; align-items: center; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--border); }
.rank-num { font-size: 24px; font-weight: 900; color: var(--brand); font-style: italic; width: 30px; }
.rank-item img { width: 50px; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; }

/* Reviews */
.receipts-wall { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.receipt { background: #fff; border: 1px dashed #d1d5db; padding: 16px; width: 260px; font-family: ui-monospace, monospace; font-size: 13px; color: #4b5563; transform: rotate(-2deg); }
.receipt:nth-child(even) { transform: rotate(2deg); }
.receipt .header { border-bottom: 1px dashed #d1d5db; padding-bottom: 8px; margin-bottom: 8px; font-weight: bold; color: #111; }

/* Interactive */
.mixer-box { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 40px; text-align: center; }
.mixer-tags { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.mixer-tag { padding: 8px 16px; border-radius: 20px; border: 2px solid var(--border); cursor: pointer; font-weight: 600; transition: all 0.2s; }
.mixer-tag.selected { background: var(--brand); color: #fff; border-color: var(--brand); }

/* FAQ */
.faq-section { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 16px; background: #fff; border: none; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fff; color: #4b5563; }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 16px 16px; }

/* Footer CTA */
.final-cta { background: var(--brand); color: #fff; border-radius: 24px; padding: 80px 20px; text-align: center; margin-bottom: 40px; max-width: 1160px; }
.final-cta h2 { font-size: 40px; margin-bottom: 20px; color: #fff; }
.final-cta .btn-download { background: #fff; color: var(--brand-dark); height: 54px; font-size: 18px; border-radius: 27px; padding: 0 40px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 20px; max-width: 1200px; margin: 0 auto; font-size: 12px; color: #9ca3af; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
footer a { color: #9ca3af; text-decoration: underline; }
footer a:hover { color: var(--brand-dark); }

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }
  .mood-grid { grid-template-columns: repeat(3, 1fr); }
  .calendar-section, .faq-section { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-content h1 { font-size: 36px; }
  .genres-grid { grid-template-columns: 1fr; }
  .mood-grid { grid-template-columns: 1fr; }
  .ai-comic-section { flex-direction: column; }
  .beat-band { flex-wrap: wrap; height: auto; }
  .beat-bar { height: 40px !important; width: 100%; }
  .beat-bar::after { position: static; transform: none; display: block; text-align: center; margin-top: 4px; }
  .receipt { width: 100%; transform: none !important; }
  .mixer-box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}