:root {
  --bg-warm: #f7f5f0;
  --text-black: #1a1a1a;
  --heat-yellow: #f5c518;
  --heat-orange: #f06d06;
  --heat-red: #e02323;
  --cool-blue: #3b9cda;
  --border-color: #e0dcd0;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-warm); color: var(--text-black); font-family: var(--font-main); line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3 { font-weight: 900; letter-spacing: -1px; line-height: 1.1; }
.mono { font-family: var(--font-mono); font-weight: 700; }

/* Buttons */
.btn-download { background: var(--heat-red); color: #fff; padding: 12px 24px; border-radius: 4px; font-weight: bold; display: inline-flex; align-items: center; justify-content: center; position: relative; border: none; cursor: pointer; text-align: center; }
.btn-download::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1s infinite alternate; }
@keyframes blink { from { opacity: 1; } to { opacity: 0.2; } }
.btn-secondary { background: transparent; color: var(--text-black); padding: 10px 20px; border: 2px solid var(--text-black); border-radius: 4px; font-weight: bold; display: inline-block; text-align: center; cursor: pointer; }
.btn-follow { background: var(--text-black); color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: bold; border: none; cursor: pointer; }

/* Header */
header { position: sticky; top: 0; z-index: 100; background: var(--bg-warm); border-bottom: 2px solid var(--text-black); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 20px; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: none; gap: 20px; font-size: 14px; font-weight: bold; }
.nav-links a { display: flex; align-items: center; gap: 6px; opacity: 0.7; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-yellow { background: var(--heat-yellow); }
.dot-orange { background: var(--heat-orange); }
.dot-red { background: var(--heat-red); }
.header-right { display: flex; align-items: center; gap: 15px; }

/* Subtitle Ticker */
.ticker-wrap { background: var(--heat-yellow); color: var(--text-black); overflow: hidden; white-space: nowrap; padding: 8px 0; font-weight: bold; font-size: 14px; border-bottom: 2px solid var(--text-black); }
.ticker { display: inline-block; animation: ticker 20s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Sections */
section { padding: 80px 0; position: relative; }
.section-header { margin-bottom: 40px; border-bottom: 4px solid var(--text-black); padding-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.section-header h2 { font-size: clamp(32px, 5vw, 56px); text-transform: uppercase; }
.alert-badge { display: inline-block; padding: 4px 12px; border-radius: 2px; font-weight: bold; font-size: 14px; color: #fff; margin-bottom: 10px; }
.bg-yellow { background: var(--heat-yellow); color: var(--text-black); }
.bg-orange { background: var(--heat-orange); }
.bg-red { background: var(--heat-red); }

/* Grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

/* Heat Card */
.heat-card { position: relative; cursor: pointer; transition: transform 0.2s; }
.heat-card:hover { transform: translateY(-5px); }
.card-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; background: #ddd; border: 1px solid var(--border-color); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.heat-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-temp { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 6px; font-family: var(--font-mono); font-size: 12px; border-radius: 2px; }
.card-band { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; }
.band-yellow { background: var(--heat-yellow); }
.band-orange { background: var(--heat-orange); }
.band-red { background: var(--heat-red); }
.card-info { padding-top: 10px; }
.card-title { font-weight: bold; font-size: 15px; line-height: 1.2; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 12px; color: #555; display: flex; justify-content: space-between; align-items: center; }
.card-trend { display: flex; align-items: center; gap: 4px; font-weight: bold; }
.trend-up { color: var(--heat-red); }
.trend-down { color: var(--cool-blue); }

/* Hero */
#hero { padding-top: 40px; }
.hero-layout { display: flex; flex-direction: column; gap: 40px; }
.hero-text h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 20px; }
.hero-text p { font-size: 18px; margin-bottom: 30px; max-width: 500px; color: #444; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-trust { font-size: 14px; color: #666; display: flex; gap: 15px; flex-wrap: wrap; }
.hero-content { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) {
  .hero-layout { flex-direction: row; align-items: flex-start; }
  .hero-text { flex: 0 0 35%; position: sticky; top: 100px; }
  .hero-content { flex: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
}

/* Hero Main Cards */
.hero-main-cards { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.hero-main-cards::-webkit-scrollbar { display: none; }
.hero-main-cards .heat-card { min-width: 160px; scroll-snap-align: start; }
@media (min-width: 1024px) { .hero-main-cards { flex-wrap: wrap; overflow: visible; } .hero-main-cards .heat-card { min-width: calc(50% - 10px); } }

/* Sidebar List */
.side-list { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; }
.side-list h3 { font-size: 18px; margin-bottom: 15px; border-bottom: 2px solid var(--text-black); padding-bottom: 10px; display: flex; justify-content: space-between; }
.list-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border-color); }
.list-item:last-child { border-bottom: none; }
.list-img { width: 40px; aspect-ratio: 3/4; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.list-img img { width: 100%; height: 100%; object-fit: cover; }
.list-text { flex: 1; overflow: hidden; }
.list-title { font-weight: bold; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-meta { font-size: 12px; color: #666; display: flex; justify-content: space-between; }
.list-temp { font-family: var(--font-mono); font-weight: bold; }

/* Genre Link Row */
.genre-row { display: flex; gap: 10px; overflow-x: auto; margin-top: 30px; padding-bottom: 10px; }
.genre-tag { background: #fff; border: 1px solid var(--text-black); padding: 6px 12px; font-size: 14px; font-weight: bold; border-radius: 20px; white-space: nowrap; }

/* Topic Circle */
.topic-layout { display: flex; flex-direction: column; gap: 30px; }
@media (min-width: 768px) { .topic-layout { flex-direction: row; } }
.topic-radar { flex: 1; position: relative; min-height: 400px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 20px; background: #fff; border-radius: 8px; border: 1px solid var(--border-color); padding: 30px; }
.topic-circle { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; text-align: center; cursor: pointer; border: 2px solid transparent; transition: all 0.3s; }
.topic-circle:hover { transform: scale(1.05); }
.circle-hot { background: rgba(224,35,35,0.1); border-color: var(--heat-red); color: var(--heat-red); width: 120px; height: 120px; }
.circle-mid { background: rgba(240,109,6,0.1); border-color: var(--heat-orange); color: var(--heat-orange); }
.circle-cold { background: rgba(245,197,24,0.1); border-color: var(--heat-yellow); color: #b89000; }
.topic-cards { flex: 1; }

/* Timeline */
.timeline-wrap { overflow-x: auto; padding-bottom: 20px; }
.timeline { display: flex; gap: 20px; position: relative; min-width: 800px; }
.time-node { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; }
.time-label { font-family: var(--font-mono); font-weight: bold; background: var(--text-black); color: #fff; padding: 4px 8px; border-radius: 4px; }
.time-card { width: 100%; }

/* Path Map */
.path-map { position: relative; min-height: 500px; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; padding: 20px; }
.path-node { position: absolute; display: flex; flex-direction: column; gap: 10px; width: 140px; background: rgba(255,255,255,0.9); padding: 10px; border-radius: 4px; border: 1px solid var(--border-color); }
.path-node:nth-child(1) { top: 20%; left: 10%; }
.path-node:nth-child(2) { top: 50%; left: 40%; }
.path-node:nth-child(3) { top: 30%; left: 70%; }

/* Waterfall */
.waterfall { column-count: 2; column-gap: 20px; }
@media (min-width: 768px) { .waterfall { column-count: 3; } }
@media (min-width: 1024px) { .waterfall { column-count: 4; } }
.waterfall .heat-card { break-inside: avoid; margin-bottom: 20px; }

/* Orange Section */
.orange-bg { background: var(--heat-orange); color: #fff; }
.orange-bg .section-header { border-color: #fff; }
.orange-bg .btn-secondary { border-color: #fff; color: #fff; }

/* Cooling Section */
.cooling-bg { background: var(--bg-warm); }
.cooling-content { display: flex; flex-direction: column; align-items: center; gap: 40px; }
@media (min-width: 768px) { .cooling-content { flex-direction: row; justify-content: center; } }
.phone-mock { width: 260px; aspect-ratio: 9/19.5; border: 8px solid var(--text-black); border-radius: 30px; overflow: hidden; position: relative; background: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.phone-mock img { width: 100%; height: 100%; object-fit: cover; }
.cooling-notes { display: flex; flex-direction: column; gap: 20px; }
.note { display: flex; align-items: center; gap: 15px; }
.note-line { width: 40px; height: 2px; background: var(--cool-blue); }
.note-text { font-weight: bold; font-size: 18px; color: var(--cool-blue); }

/* FAQ */
.faq-layout { display: flex; flex-direction: column; gap: 30px; }
@media (min-width: 768px) { .faq-layout { flex-direction: row; } }
.faq-title-area { flex: 0 0 30%; }
.faq-title-area h2 { writing-mode: vertical-rl; text-orientation: mixed; font-size: 48px; margin-bottom: 20px; }
.faq-list { flex: 1; }
details { border-bottom: 1px solid var(--border-color); padding: 15px 0; cursor: pointer; }
summary { font-weight: bold; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: var(--heat-orange); }
details[open] summary::after { content: '-'; }
details p { margin-top: 10px; color: #555; }

/* Final Download Section */
.final-section { background: var(--heat-red); color: #fff; text-align: center; padding: 100px 20px; }
.final-section h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; }
.final-sign { background: #fff; color: var(--text-black); padding: 40px; border-radius: 8px; display: inline-block; box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-top: 40px; }
.final-sign .btn-download { font-size: 20px; padding: 16px 40px; margin-bottom: 20px; }
.qr-placeholder { width: 120px; height: 120px; background: #eee; margin: 0 auto; border: 1px dashed #ccc; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; }

/* Footer */
footer { padding: 60px 20px 30px; border-top: 1px solid var(--border-color); font-size: 14px; color: #666; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 1400px; margin: 0 auto; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; font-size: 12px; }
.site-about { margin-top: 15px; font-size: 12px; }
.site-about summary { font-weight: normal; cursor: pointer; color: #666; }
.site-about div { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.site-about a { color: #666; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .ticker, .btn-download::after { animation: none; }
  .heat-card { transition: none; }
}