/* ==========================================
   TOUSI.COM — Main Stylesheet
   ========================================== */

/* ── Variables ── */
:root {
  --ink: #0d0d0d;
  --paper: #f5f0e8;
  --cream: #faf7f2;
  --gold: #c9a84c;
  --gold-light: #e8d28a;
  --gold-dark: #9a7a2e;
  --vermilion: #c0392b;
  --teal: #1a6b6b;
  --silver: #8a8a8a;
  --deep: #1a1a2e;
  --deep2: #16213e;
  --mid-dark: #2a2a3e;
  --green-pos: #10b981;
  --red-neg: #ef4444;
  --amber: #d97706;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Serif JP', serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: none; }
img { max-width: 100%; }

/* ── Custom Cursor ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body.cursor-hover .cursor { width: 18px; height: 18px; }
body.cursor-hover .cursor-ring { width: 52px; height: 52px; }

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: 0.35;
}

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 0 40px;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(13,13,13,0.08); }
.header-inner {
  display: flex; align-items: center;
  height: 64px; gap: 40px;
}
.logo-link { display: block; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.06em;
}
.logo-dot { color: var(--gold); }
.logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem; letter-spacing: 0.28em;
  color: var(--silver); display: block; margin-top: -2px;
}
.header-nav {
  display: flex; gap: 28px; align-items: center; flex: 1;
}
.header-nav a {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--silver); position: relative;
  transition: color 0.3s;
}
.header-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.header-nav a:hover { color: var(--ink); }
.header-nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.live-badge {
  display: flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em;
  color: var(--green-pos);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 3px 10px; border-radius: 2px;
  background: rgba(16,185,129,0.06);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-pos);
  animation: pulseGreen 2s infinite;
}
.live-dot.small { width: 6px; height: 6px; display: inline-block; margin-right: 6px; }
@keyframes pulseGreen {
  0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0.4);}
  50%{box-shadow:0 0 0 6px rgba(16,185,129,0);}
}
.header-time {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--gold); letter-spacing: 0.1em;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 3px 10px; border-radius: 2px;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: all 0.3s;
}

/* ── Ticker ── */
.ticker-bar {
  margin-top: 64px;
  background: var(--paper);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-scroll {
  display: flex; gap: 0; white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 28px;
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  border-right: 1px solid rgba(201,168,76,0.15);
}
.t-name { color: var(--silver); font-size: 0.62rem; letter-spacing: 0.1em; }
.t-val { color: var(--ink); font-weight: 400; }
.t-up { color: var(--green-pos); }
.t-dn { color: var(--red-neg); }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 88px);
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  padding: 80px 64px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.28em;
  color: var(--gold); margin-bottom: 20px;
  display: flex; align-items: center;
  animation: fadeUp 0.8s 0.2s both;
}
.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700; line-height: 1.25;
  animation: fadeUp 0.9s 0.4s both;
}
.hero-em {
  font-style: italic; font-family: 'Playfair Display', serif;
  color: var(--gold); display: block;
}
.hero-desc {
  margin-top: 24px; font-size: 0.92rem; line-height: 1.9;
  color: #555; max-width: 480px;
  animation: fadeUp 1s 0.6s both;
}
.hero-cta {
  margin-top: 40px; display: flex; gap: 16px; align-items: center;
  animation: fadeUp 1s 0.8s both;
}
.btn-primary {
  background: var(--gold); color: var(--ink);
  border: none; padding: 14px 36px;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem; letter-spacing: 0.1em;
  position: relative; overflow: hidden;
  transition: color 0.4s;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: var(--ink); transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  z-index: 0;
}
.btn-primary:hover { color: var(--gold); }
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-ghost {
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.15em; color: var(--silver);
  background: none; border: none;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.3s;
}
.btn-ghost:hover { color: var(--ink); }
.hero-stats-mini {
  margin-top: 48px; display: flex; align-items: center; gap: 0;
  animation: fadeUp 1s 1s both;
}
.stat-mini { padding: 0 24px; }
.stat-mini:first-child { padding-left: 0; }
.stat-mini-label { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; color: var(--silver); display: block; }
.stat-mini-val { font-size: 1.4rem; font-weight: 700; color: var(--ink); display: block; margin-top: 4px; }
.stat-mini-div { width: 1px; height: 40px; background: rgba(201,168,76,0.3); }

.hero-right {
  position: relative; overflow: hidden;
  background: var(--deep);
}
.hero-chart-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.chart-lines { position: absolute; inset: 0; padding: 60px 40px 80px; }
.chart-lines svg { width: 100%; height: 100%; }
.chart-path {
  stroke-dasharray: 800; stroke-dashoffset: 800;
  animation: drawPath 2.5s 0.5s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
.chart-path-2 {
  stroke-dasharray: 800; stroke-dashoffset: 800;
  animation: drawPath 2.5s 1s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
.hero-market-cards {
  position: absolute; left: 32px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px; z-index: 2;
}
.hero-mcard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 14px 20px; backdrop-filter: blur(8px);
  animation: slideInRight 0.7s both;
}
.hero-mcard:nth-child(2) { animation-delay: 0.2s; margin-left: 16px; }
.hero-mcard:nth-child(3) { animation-delay: 0.4s; }
.hmc-label { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.18em; color: var(--silver); }
.hmc-val { font-family: 'DM Mono', monospace; font-size: 1.5rem; font-weight: 300; color: #fff; margin-top: 3px; }
.hmc-chg { font-size: 0.72rem; }
.hmc-chg.up { color: var(--green-pos); }

/* ── Marquee ── */
.marquee-bar {
  background: var(--ink);
  padding: 10px 0; overflow: hidden;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.4);
}
.marquee-inner {
  display: flex; gap: 0; white-space: nowrap;
  animation: marqueeScroll 45s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mq-item {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.18em; color: var(--gold-light);
  padding: 0 36px; display: inline-flex; align-items: center; gap: 14px;
}
.mq-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── Sections ── */
.section { padding: 80px 48px; }
.section-dark { background: var(--deep); }
.section-paper { background: var(--paper); border-top: 1px solid rgba(201,168,76,0.15); border-bottom: 1px solid rgba(201,168,76,0.15); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase;
  display: block; margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.3;
}
.section-title.light { color: #fff; }
.section-line { width: 56px; height: 2px; background: var(--gold); margin: 20px auto 0; }

/* ── Market Grid ── */
.market-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 32px;
}
.mkt-card {
  background: var(--cream);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 20px 18px;
  position: relative; overflow: hidden;
  cursor: none; transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.3s;
}
.mkt-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.mkt-card:hover { transform: translateY(-3px); border-color: rgba(201,168,76,0.4); }
.mkt-card:hover::before { transform: scaleX(1); }
.mkt-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mkt-label { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.18em; color: var(--silver); }
.mkt-icon { font-size: 1rem; }
.mkt-val { font-family: 'DM Mono', monospace; font-size: 1.6rem; font-weight: 300; line-height: 1; margin-bottom: 6px; }
.mkt-chg { font-family: 'DM Mono', monospace; font-size: 0.72rem; }
.mkt-chg.up { color: var(--green-pos); } .mkt-chg.dn { color: var(--red-neg); }
.sparkline { width: 100%; height: 28px; margin-top: 10px; display: block; }

/* ── AI Panel ── */
.ai-panel {
  background: var(--cream);
  border: 1px solid rgba(201,168,76,0.25);
  margin-bottom: 0;
}
.ai-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--ink); color: #fff;
}
.ai-panel-title { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 400; }
.ai-icon-badge {
  width: 26px; height: 26px; border-radius: 3px;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 0.65rem; font-weight: 400;
  flex-shrink: 0;
}
.ai-powered-tag {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.4); margin-left: 8px;
}
.ai-panel-close {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 1rem; line-height: 1; transition: color 0.2s;
}
.ai-panel-close:hover { color: #fff; }
.ai-topic-btns {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.topic-btn {
  padding: 7px 14px; font-size: 0.78rem; font-weight: 400;
  background: var(--paper); border: 1px solid rgba(201,168,76,0.2);
  color: var(--silver); transition: all 0.25s;
  letter-spacing: 0.04em;
}
.topic-btn:hover, .topic-btn.active {
  background: var(--gold); border-color: var(--gold);
  color: var(--ink);
}
.ai-output {
  padding: 20px;
  min-height: 180px;
  font-size: 0.88rem; line-height: 1.85;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.ai-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; color: var(--silver); }
.ai-placeholder-icon { font-size: 2rem; }
.ai-input-area { display: flex; gap: 10px; padding: 14px 20px; }
.ai-textarea {
  flex: 1; font-family: 'Noto Serif JP', serif; font-size: 0.85rem;
  border: 1px solid rgba(201,168,76,0.25); padding: 10px 14px;
  background: var(--paper); color: var(--ink);
  outline: none; resize: none; line-height: 1.6;
  transition: border-color 0.3s;
}
.ai-textarea:focus { border-color: var(--gold); }
.ai-send-btn {
  padding: 10px 24px; background: var(--ink); color: var(--gold);
  border: 1px solid var(--ink); font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.15em;
  transition: background 0.3s, color 0.3s;
  align-self: flex-end;
}
.ai-send-btn:hover { background: var(--gold); color: var(--ink); }
.ai-send-btn:disabled { opacity: 0.4; }
.ai-disclaimer { padding: 8px 20px 12px; font-size: 0.68rem; color: var(--silver); font-family: 'DM Mono', monospace; letter-spacing: 0.06em; }

/* AI text formatting */
.ai-text strong { color: var(--gold-dark); }
.ai-text h4 { font-size: 0.95rem; margin: 14px 0 6px; }
.ai-text ul { padding-left: 0; list-style: none; }
.ai-text ul li::before { content: '· '; color: var(--gold); }

/* Loading animation */
.loading-row { display: flex; align-items: center; gap: 10px; color: var(--silver); font-size: 0.85rem; padding: 20px 0; }
.loading-dots { display: inline-flex; gap: 4px; }
.loading-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: dotBounce 1.2s infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%,80%,100%{transform:scale(0.6);opacity:0.4;} 40%{transform:scale(1);opacity:1;} }
.cursor-blink { display: inline-block; width: 7px; height: 13px; background: var(--gold); margin-left: 2px; vertical-align: text-bottom; animation: blink 0.8s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ── News ── */
.news-filter-bar { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.news-filter {
  padding: 7px 18px; font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.15em; background: none;
  border: 1px solid rgba(201,168,76,0.25); color: var(--silver);
  transition: all 0.25s;
}
.news-filter:hover, .news-filter.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.news-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px;
  background: rgba(201,168,76,0.12); margin-bottom: 36px;
}
.news-card {
  background: var(--deep2); padding: 28px;
  position: relative; overflow: hidden;
  cursor: none; transition: background 0.3s;
}
.news-card:hover { background: var(--mid-dark); }
.news-card.featured { grid-row: span 2; }
.news-card.hidden { display: none; }
.news-tag {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  letter-spacing: 0.22em; color: var(--gold);
  display: block; margin-bottom: 12px; text-transform: uppercase;
}
.news-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem; font-weight: 700; line-height: 1.5;
  color: #fff; margin-bottom: 10px;
}
.news-card.featured .news-title { font-size: 1.4rem; }
.news-body { font-size: 0.82rem; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.news-footer { display: flex; justify-content: space-between; align-items: center; }
.news-date { font-family: 'DM Mono', monospace; font-size: 0.62rem; color: rgba(255,255,255,0.3); }
.analyze-btn {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.1em; padding: 5px 12px;
  background: none; border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold); transition: all 0.25s;
}
.analyze-btn:hover { background: var(--gold); color: var(--ink); }

/* AI News Generator */
.news-ai-gen {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 20px 24px;
}
.news-ai-gen-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  font-family: 'DM Mono', monospace; letter-spacing: 0.08em;
}
.news-gen-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gen-btn {
  padding: 8px 16px; font-size: 0.75rem; font-weight: 400;
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light); letter-spacing: 0.06em;
  transition: all 0.25s;
}
.gen-btn:hover { background: var(--gold); color: var(--ink); }
.news-gen-output { padding: 16px 0; font-size: 0.85rem; line-height: 1.85; color: rgba(255,255,255,0.75); }

/* ── Categories ── */
.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.cat-card {
  border: 1px solid rgba(201,168,76,0.18); padding: 28px 16px;
  text-align: center; position: relative; overflow: hidden;
  cursor: none; transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  background: var(--cream);
}
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: var(--ink); transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94); z-index: 0;
}
.cat-card:hover::after { transform: translateY(0); }
.cat-icon, .cat-name, .cat-desc { position: relative; z-index: 1; transition: color 0.4s; }
.cat-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; transition: transform 0.4s; }
.cat-card:hover .cat-icon { transform: scale(1.15) rotate(4deg); }
.cat-name { font-family: 'Shippori Mincho', serif; font-size: 0.92rem; font-weight: 700; display: block; margin-bottom: 8px; }
.cat-desc { font-size: 0.7rem; color: var(--silver); line-height: 1.6; }
.cat-card:hover .cat-name { color: var(--gold); }
.cat-card:hover .cat-desc { color: rgba(255,255,255,0.6); }

/* ── Analysis ── */
.analysis-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.analysis-screen {
  background: var(--deep); border: 1px solid rgba(201,168,76,0.2);
  overflow: hidden;
}
.screen-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s-dot { width: 10px; height: 10px; border-radius: 50%; }
.s-dot.r { background: #f87171; }
.s-dot.y { background: #fbbf24; }
.s-dot.g { background: #4ade80; }
.screen-title-bar { font-family: 'DM Mono', monospace; font-size: 0.62rem; color: var(--silver); letter-spacing: 0.1em; margin-left: 6px; }
.screen-body { padding: 20px 24px; }
.screen-prompt {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--gold); margin-bottom: 14px;
}
.screen-output { min-height: 200px; font-size: 0.85rem; line-height: 1.85; color: rgba(255,255,255,0.75); }
.analysis-topics { display: flex; flex-direction: column; gap: 8px; }
.analysis-topic-label {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.22em; color: var(--silver); margin-bottom: 4px;
}
.analysis-topic-btn {
  padding: 10px 14px; font-size: 0.8rem; text-align: left;
  background: var(--paper); border: 1px solid rgba(201,168,76,0.18);
  color: var(--ink); transition: all 0.25s; letter-spacing: 0.04em;
}
.analysis-topic-btn:hover, .analysis-topic-btn.active {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
}

/* ── Education ── */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.edu-card {
  background: var(--cream); border: 1px solid rgba(201,168,76,0.18);
  padding: 28px 24px; cursor: none;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.3s;
  position: relative;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,13,13,0.1); border-color: var(--gold); }
.edu-level {
  font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.22em;
  padding: 3px 10px; display: inline-block; margin-bottom: 16px;
}
.edu-level.beginner { background: rgba(16,185,129,0.1); color: var(--green-pos); border: 1px solid rgba(16,185,129,0.3); }
.edu-level.standard { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.edu-level.advanced { background: rgba(201,168,76,0.1); color: var(--gold-dark); border: 1px solid rgba(201,168,76,0.3); }
.edu-level.practical { background: rgba(139,92,246,0.1); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.3); }
.edu-level.psychology { background: rgba(236,72,153,0.1); color: #ec4899; border: 1px solid rgba(236,72,153,0.3); }
.edu-icon { font-size: 2rem; margin-bottom: 14px; }
.edu-title { font-family: 'Shippori Mincho', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.edu-desc { font-size: 0.8rem; line-height: 1.7; color: var(--silver); }
.lesson-output-wrap {
  background: var(--cream); border: 1px solid rgba(201,168,76,0.25);
  margin-top: 0;
}
.lesson-output-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; background: var(--ink); color: #fff; font-size: 0.85rem;
}
.lesson-output { padding: 20px; font-size: 0.88rem; line-height: 1.85; min-height: 160px; }

/* ── Ritual ── */
.ritual-inner { max-width: 960px; margin: 0 auto; }
.ritual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ritual-card {
  border: 1px solid rgba(201,168,76,0.2); padding: 28px 24px;
  transition: border-color 0.3s;
}
.ritual-card:hover { border-color: var(--gold); }
.ritual-time { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 12px; }
.ritual-title { font-family: 'Shippori Mincho', serif; font-size: 1.05rem; color: #fff; font-weight: 700; margin-bottom: 10px; }
.ritual-desc { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.ritual-btn {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.1em; padding: 8px 16px;
  background: none; border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold); transition: all 0.25s; width: 100%; text-align: center;
}
.ritual-btn:hover { background: var(--gold); color: var(--ink); }

/* ── CTA ── */
.cta-section { text-align: center; position: relative; overflow: hidden; background: var(--paper); }
.cta-section::before {
  content: '投資'; position: absolute;
  font-family: 'Shippori Mincho', serif; font-size: clamp(16rem, 30vw, 28rem);
  font-weight: 700; color: rgba(201,168,76,0.04);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; white-space: nowrap;
}
.cta-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-title { font-family: 'Shippori Mincho', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.cta-desc { font-size: 0.95rem; color: #666; line-height: 1.8; margin-bottom: 40px; }
.cta-form { display: flex; max-width: 440px; margin: 0 auto; }
.cta-input {
  flex: 1; border: 1px solid rgba(201,168,76,0.4); border-right: none;
  background: #fff; padding: 14px 18px;
  font-family: 'Noto Serif JP', serif; font-size: 0.85rem;
  outline: none; transition: border-color 0.3s;
}
.cta-input:focus { border-color: var(--gold); }
.cta-btn {
  background: var(--ink); color: var(--gold);
  border: 1px solid var(--ink); padding: 14px 28px;
  font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.15em;
  transition: background 0.3s, color 0.3s;
}
.cta-btn:hover { background: var(--gold); color: var(--ink); }
.cta-note { margin-top: 14px; font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: #aaa; }

/* ── Footer ── */
.site-footer { background: var(--ink); border-top: 1px solid rgba(201,168,76,0.2); }
.footer-inner { padding: 60px 48px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #fff; margin-bottom: 14px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px; transition: all 0.25s;
}
.social-link:hover { color: var(--gold); border-color: var(--gold); }
.footer-heading { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-copy { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.25); }
.footer-disclaimer { font-family: 'DM Mono', monospace; font-size: 0.56rem; color: rgba(255,255,255,0.18); max-width: 500px; line-height: 1.6; }

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--gold); color: var(--ink); border: none;
  font-size: 1.1rem; font-weight: 700; z-index: 400;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }

/* ── Reveal Animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Keyframes ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px);} to{opacity:1;transform:translateY(0);} }
@keyframes slideInRight { from{opacity:0;transform:translateX(32px);} to{opacity:1;transform:translateX(0);} }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .market-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 300px; }
}
@media (max-width: 900px) {
  .section { padding: 60px 24px; }
  .header-inner { padding: 0; }
  .site-header { padding: 0 20px; }
  .hero-left { padding: 60px 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-row: span 1; }
  .analysis-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .ritual-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .market-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hamburger { display: flex; }
  .header-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid rgba(201,168,76,0.2); gap: 16px; }
  .header-nav.open { display: flex; }
}
@media (max-width: 600px) {
  .edu-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .cta-input { border-right: 1px solid rgba(201,168,76,0.4); border-bottom: none; }
  .hero-stats-mini { flex-wrap: wrap; gap: 16px; }
}
