/* ============================================================
   消費者目線 by TWELVE — Z世代向けダイナミックデザイン
   ============================================================ */

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

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --white: #ffffff;
  --gray: #888888;
  --gray-light: #aaaaaa;
  --border: #2a2a2a;
  --accent: #00e5a0;
  --accent2: #00c8ff;
  --accent3: #ff6b9d;
  --gradient: linear-gradient(135deg, #00e5a0 0%, #00c8ff 50%, #7b61ff 100%);
  --gradient2: linear-gradient(135deg, #ff6b9d 0%, #ff9a5c 100%);
  --font: 'Noto Sans JP', -apple-system, sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', sans-serif;
  --max-w: 1200px;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--accent2); }
img { max-width: 100%; height: auto; display: block; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo-mark {
  width: 28px; height: 28px;
  background: var(--gradient);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-size: 14px; font-weight: 900;
}
.site-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo-sub { font-size: 8px; font-weight: 500; color: var(--gray); letter-spacing: 0.1em; }

.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--gray-light);
  transition: color var(--transition);
}
.header-nav a:hover, .header-nav a.active { color: var(--accent); }

.header-cta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--black) !important;
  background: var(--gradient);
  padding: 8px 22px;
  border-radius: 100px;
  transition: all var(--transition);
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,229,160,0.3); }

/* Mobile */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.mobile-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--white);
  position: absolute; left: 7px; transition: all 0.3s;
}
.mobile-toggle span:nth-child(1) { top: 11px; }
.mobile-toggle span:nth-child(2) { top: 16px; }
.mobile-toggle span:nth-child(3) { top: 21px; }

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .header-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 24px;
    border-bottom: 1px solid var(--border); gap: 16px;
  }
  .header-nav.open { display: flex; }
  .header-cta { display: none; }
}

/* --- Hero --- */
.hero {
  background: var(--black);
  padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -30%; width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(0,229,160,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  position: relative;
}
.hero-label {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--gray-light);
  max-width: 600px;
  line-height: 1.9;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero-stat {
  display: flex; flex-direction: column;
}
.hero-stat-num {
  font-family: var(--font-en);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 11px; color: var(--gray); letter-spacing: 0.06em;
  margin-top: 4px;
}

/* --- Data Section (Charts) --- */
.data-section {
  background: var(--dark);
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.data-section .container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.data-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.data-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.data-card-title {
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.data-card-desc {
  font-size: 12px; color: var(--gray); margin-bottom: 20px; line-height: 1.6;
}
.chart-wrap { position: relative; height: 200px; }

/* --- Section Headings --- */
.section-heading { margin-bottom: 12px; }
.section-heading-en {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700; letter-spacing: 0.25em;
  color: var(--accent);
}
.section-heading-ja {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* --- Article Cards --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,229,160,0.1);
}
.article-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark3);
  position: relative;
}
.article-card-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(transparent, rgba(10,10,10,0.6));
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.06); }

.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 8px;
}
.article-card-title {
  font-size: 15px; font-weight: 700; line-height: 1.55;
  color: var(--white); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-meta {
  margin-top: auto;
  font-size: 11px; color: var(--gray);
}

/* --- Data Card Source --- */
.data-card-source {
  font-size: 10px; color: var(--gray); margin-top: 12px;
  padding-top: 8px; border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* --- Trends / Ranking List --- */
.trends-list, .ranking-list { display: flex; flex-direction: column; gap: 0; max-height: 200px; overflow-y: auto; }
.trends-item, .ranking-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--gray-light);
}
.trends-item:last-child, .ranking-item:last-child { border-bottom: none; }
.trends-rank, .ranking-rank {
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  color: var(--accent); min-width: 22px; text-align: center;
}
.trends-rank.top3 { color: var(--accent3); }
.trends-kw { flex: 1; font-weight: 500; }
.trends-val { font-family: var(--font-en); font-size: 11px; color: var(--gray); }
.ranking-title { flex: 1; font-size: 12px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ranking-cat { font-size: 10px; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* --- Heatmap --- */
.heatmap-wrap { overflow-x: auto; }
.heatmap-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.heatmap-table th { padding: 4px 6px; font-weight: 600; color: var(--gray); text-align: center; white-space: nowrap; }
.heatmap-table td { padding: 4px 6px; text-align: center; border-radius: 3px; font-family: var(--font-en); font-weight: 600; font-size: 10px; }
.heatmap-table .hm-label { text-align: left; color: var(--gray-light); font-size: 11px; font-weight: 500; white-space: nowrap; }
.hm-0 { background: rgba(0,229,160,0.05); color: var(--gray); }
.hm-1 { background: rgba(0,229,160,0.15); color: #aaa; }
.hm-2 { background: rgba(0,229,160,0.3); color: #ccc; }
.hm-3 { background: rgba(0,229,160,0.5); color: #fff; }
.hm-4 { background: rgba(0,229,160,0.75); color: #fff; }
.hm-5 { background: rgba(0,229,160,1); color: var(--black); font-weight: 900; }

/* --- AI Commentary --- */
.ai-comment {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.ai-comment::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
}
.ai-comment-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.ai-comment-icon { font-size: 18px; }
.ai-comment-name {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--accent);
}
.ai-comment-tag {
  font-family: var(--font-en);
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--gray);
  background: var(--dark3);
  padding: 2px 8px; border-radius: 100px;
  margin-left: auto;
}
.ai-comment-body {
  padding: 24px;
  font-size: 14px;
  line-height: 2.0;
  color: var(--gray-light);
}
.ai-comment-body p { margin-bottom: 12px; }
.ai-comment-body p:last-child { margin-bottom: 0; }
.ai-comment-body strong { color: var(--white); }
.ai-comment-body .ai-hot { color: var(--accent3); font-weight: 700; }
.ai-comment-body .ai-cool { color: var(--accent); font-weight: 700; }
.ai-comment-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--gray);
}

/* --- More Link --- */
.data-more-row {
  display: flex; justify-content: center; margin-top: 20px;
}
.data-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent) !important;
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 10px 28px;
  border-radius: 100px;
  transition: all var(--transition);
}
.data-more-btn:hover {
  border-color: var(--accent);
  background: rgba(0,229,160,0.08);
  color: var(--accent) !important;
  transform: translateY(-1px);
}
.data-more-btn::after { content: '→'; }

/* --- Econ Stats Mobile --- */
@media (max-width: 768px) {
  .econ-stats { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .econ-stats { grid-template-columns: 1fr !important; }
}

/* --- Featured Card --- */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: all var(--transition);
  margin-bottom: 48px;
}
.featured-card:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(0,229,160,0.08); }
.featured-card .article-card-img { aspect-ratio: auto; min-height: 300px; }
.featured-card .article-card-body { padding: 36px; justify-content: center; }
.featured-card .article-card-title { font-size: 22px; -webkit-line-clamp: 4; }

@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .article-card-img { aspect-ratio: 16 / 9; min-height: auto; }
}

/* --- Category Filter --- */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-filter-btn {
  font-size: 12px; font-weight: 600;
  color: var(--gray-light);
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-filter-btn:hover, .cat-filter-btn.active {
  color: var(--black);
  background: var(--accent);
  border-color: var(--accent);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.cta-banner-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900; margin-bottom: 16px; line-height: 1.4;
}
.cta-banner-desc {
  font-size: 14px; color: var(--gray-light);
  margin-bottom: 32px; line-height: 1.8;
}
.cta-banner-btn {
  display: inline-block;
  background: var(--gradient);
  color: var(--black) !important;
  font-size: 14px; font-weight: 700;
  padding: 14px 40px;
  border-radius: 100px;
  transition: all var(--transition);
}
.cta-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,160,0.25); }

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  color: var(--gray);
  padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 48px) 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-name {
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--white);
}
.footer-brand-desc { font-size: 13px; line-height: 1.8; }
.footer-col-title {
  font-family: var(--font-en);
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gray); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--gray-light); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 11px; color: var(--gray);
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* --- Marquee --- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--dark);
}
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--gray); white-space: nowrap;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 12px; color: var(--gray);
  padding: 16px 0;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* --- Pagination --- */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 48px;
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 13px; font-weight: 600;
  color: var(--gray-light); border: 1px solid var(--border);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--black); border-color: var(--accent); }

/* --- Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section-pad { padding: clamp(60px, 8vw, 100px) 0; }
.glow-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
