/* =========================================================================
   トレード・モンスターズ LP (revised demo)
   Palette matches the REAL app (frontend/src/app/globals.css):
   monochrome black/white light theme. Buy=#ed6464 / Sell=#6495ed.
   Self-contained, no build step. Real app assets under ./assets.
   ========================================================================= */

:root {
  --bg-primary: #f7f7f8;      /* app --background */
  --bg-card: #ffffff;         /* app --card */
  --bg-soft: #f3f4f6;         /* gray-100 */
  --bg-soft-2: #f7f7f8;       /* navy-50 */
  --border-card: #d1d5db;     /* gray-300, app --border */
  --border-light: #e5e7eb;    /* gray-200 */
  --ink: #111827;             /* app --foreground / --primary */
  --ink-2: #1f2937;           /* gray-800 */
  --text-primary: #374151;    /* gray-700 */
  --text-secondary: #6b7280;  /* gray-500 */
  --text-muted: #9ca3af;      /* gray-400 */
  --buy: #ed6464;             /* app Buy */
  --sell: #6495ed;            /* app Sell */
  --up: #ed6464;
  --down: #6495ed;
  --success: #10b981;
  --danger: #ef4444;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* subtle grayscale background decor */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-decor span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.bg-decor span:nth-child(1){ width: 460px; height: 460px; top: -130px; right: -110px; background: #e5e7eb; }
.bg-decor span:nth-child(2){ width: 380px; height: 380px; top: 720px; left: -150px; background: #eceef1; opacity:.5;}
.bg-decor span:nth-child(3){ width: 420px; height: 420px; bottom: 220px; right: -130px; background: #eef0f3; }

/* ============================ Header ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-card);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; margin-right: 28px; }
.nav-links a { font-size: 13px; font-weight: 700; color: var(--text-secondary); transition: color .2s; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.nav-links a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; border-radius: 10px; cursor: pointer; border: none;
  font-family: inherit; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink); color: #fff; padding: 13px 26px; font-size: 15px;
  box-shadow: 0 4px 14px rgba(17,24,39,.18);
}
.btn-primary:hover { background: var(--ink-2); }
.btn-primary.sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.btn-secondary {
  background: #fff; border: 1px solid var(--border-card);
  color: var(--ink); padding: 12px 24px; font-size: 14px;
}
.btn-secondary:hover { background: var(--bg-soft); }
.btn-ghost { background: var(--bg-soft); color: var(--ink); padding: 13px 22px; font-size: 14px; }
/* header: 2 buttons identical size */
.header-cta .btn { padding: 11px 22px; font-size: 13px; line-height: 1.2; }

/* ============================ Generic section ============================ */
section { position: relative; }
.section { padding: 58px 0; }
.section.tight { padding: 40px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  color: var(--text-secondary); background: var(--bg-soft);
  border: 1px solid var(--border-light); border-radius: 999px; padding: 6px 14px;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; line-height: 1.45;
  color: var(--ink); margin: 12px 0;
}
.section-lead { font-size: 15px; color: var(--text-secondary); max-width: 720px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ============================ Hero ============================ */
.hero { padding: 40px 0 52px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--border-light);
  border-radius: 999px; padding: 7px 16px; font-size: 12px; font-weight: 800; color: var(--text-primary);
}
.hero-badge svg, .hero-badge i { color: var(--ink); }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); font-weight: 900; line-height: 1.3;
  color: var(--ink); margin: 22px 0 20px; letter-spacing: -.01em;
}
.hero h1 .hl { position: relative; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: var(--bg-soft); z-index: -1; border-radius: 3px;
}
.hero p.lead { font-size: 16px; color: var(--text-secondary); margin-bottom: 28px; max-width: 540px; }
.hero p.lead b { color: var(--ink); font-weight: 800; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-secondary); border: 1px solid var(--border-card); border-radius: 999px; padding: 7px 16px; background: #fff; }
.trust-row span svg, .trust-row span i { color: var(--success); }

/* ============================ Phone mockup ============================ */
.phone {
  width: 348px; max-width: 100%; margin: 0 auto; background: #111827;
  border-radius: 38px; padding: 11px;
  box-shadow: 0 30px 60px -22px rgba(17,24,39,.5), 0 10px 30px rgba(0,0,0,.12);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px; background: #111827; border-radius: 0 0 12px 12px; z-index: 3;
}
.phone-screen {
  background: var(--bg-primary); border-radius: 28px; overflow: hidden; height: 560px;
  display: flex; flex-direction: column; position: relative;
}
.phone-float { animation: none; }
@keyframes floaty { 0%,100%{transform:translateY(0) rotate(2deg);} 50%{transform:translateY(-12px) rotate(2deg);} }

.app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 14px 10px; background: #fff; border-bottom: 1px solid var(--border-card);
}
.app-head img { height: 18px; }
.app-icons { display: flex; gap: 12px; color: var(--text-muted); }
.app-search {
  margin: 10px 12px; background: #fff; border: 1px solid var(--border-card);
  border-radius: 10px; padding: 9px 12px; display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-muted);
}
.app-ticker { display: flex; gap: 8px; padding: 0 12px 8px; overflow: hidden; }
.tick { flex: 1; background: var(--bg-soft-2); border: 1px solid var(--border-light); border-radius: 10px; padding: 6px 8px; }
.tick .lbl { font-size: 8px; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
.tick .val { font-size: 12px; font-weight: 900; color: var(--ink); }
.tick .chg { font-size: 9px; font-weight: 800; }
.up { color: var(--up); } .down { color: var(--down); }

.app-body { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.app-section-label {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  color: var(--ink); margin: 10px 2px 8px;
}
.app-section-label svg, .app-section-label i { color: var(--ink); }

.rank-row {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--border-light); border-radius: 14px; padding: 9px 10px; margin-bottom: 8px;
}
.rank-no {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #fff; background: var(--text-muted);
}
.rank-no.g1 { background: #111827; }
.rank-no.g2 { background: #6b7280; }
.rank-no.g3 { background: #9ca3af; }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-code { font-size: 9px; color: var(--text-muted); }
.rank-monsters { display: flex; align-items: center; gap: 2px; }
.mon-chip { display: flex; flex-direction: column; align-items: center; width: 40px; }
.mon-chip img { width: 30px; height: 30px; object-fit: contain; }
.mon-chip .tag { font-size: 7px; font-weight: 800; padding: 1px 4px; border-radius: 5px; margin-top: 1px; }
.tag-sell { background: #eef3fd; color: var(--sell); }
.tag-buy { background: #fdeded; color: var(--buy); }
.weather-pill { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; border: 1px solid var(--border-light); }

.stk-head { padding: 12px; background: #fff; border-bottom: 1px solid var(--border-card); }
.stk-back { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.stk-title { display: flex; align-items: baseline; gap: 8px; }
.stk-title .nm { font-size: 15px; font-weight: 900; color: var(--ink); }
.stk-title .cd { font-size: 10px; color: var(--text-muted); }
.stk-price { font-size: 24px; font-weight: 900; color: var(--ink); margin-top: 4px; }
.stk-price small { font-size: 12px; font-weight: 800; }
.stk-tags { display: flex; gap: 6px; margin-top: 8px; }
.pill {
  font-size: 9px; font-weight: 700; border-radius: 999px; padding: 3px 9px;
  background: var(--bg-soft); color: var(--text-primary); border: 1px solid var(--border-light);
  display: inline-flex; align-items: center; gap: 4px;
}
.weather-banner {
  margin: 10px 12px; border-radius: 14px; padding: 12px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border-card);
}
.weather-banner .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg-soft); border-radius: 12px; flex: none; }
.weather-banner .t { font-size: 12px; font-weight: 900; color: var(--ink); }
.weather-banner .d { font-size: 10px; color: var(--text-secondary); line-height: 1.5; }

.chart { margin: 4px 12px 0; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 12px 10px 8px; }
.chart .ttl { font-size: 10px; font-weight: 800; color: var(--text-secondary); margin-bottom: 8px; display:flex; justify-content:space-between; }
.candles { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.candle { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.candle i { width: 1px; background: currentColor; position: absolute; }
.candle b { width: 6px; border-radius: 1px; background: currentColor; display: block; }
.candle.u { color: #8b919b; } .candle.d { color: #c2c7cf; }

.senti { margin: 8px 12px 0; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 12px; }
.senti .row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.senti .row:last-child { margin-bottom: 0; }
.senti .lab { width: 34px; font-size: 9px; font-weight: 800; }
.bar { flex: 1; height: 12px; background: var(--bg-soft); border-radius: 7px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 7px; }
.bar.buy > span { background: var(--buy); }
.bar.sell > span { background: var(--sell); }
.senti .pct { width: 30px; font-size: 9px; font-weight: 800; text-align: right; }

.app-bottom { display: flex; justify-content: space-around; padding: 8px 4px; background: #fff; border-top: 1px solid var(--border-card); }
.app-bottom .it { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; font-weight: 700; color: var(--text-muted); }
.app-bottom .it.on { color: var(--ink); }

/* ============================ Problem cards ============================ */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 28px; }
.pcard {
  background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 18px;
  padding: 26px 22px; transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(17,24,39,.25); }
.pcard .ic-wrap { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); margin: 0 auto 16px; }
.pcard h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.pcard .sub { font-size: 11px; font-weight: 700; color: var(--text-secondary); margin-bottom: 12px; }
.pcard p { font-size: 13px; color: var(--text-secondary); }
.pcard .quote { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-card); font-size: 12px; color: var(--text-muted); font-style: italic; }

/* ============================ Compare table ============================ */
.compare { margin-top: 28px; background: #fff; border: 1px solid var(--border-card); border-radius: 18px; overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 18px; text-align: left; font-size: 13px; vertical-align: top; }
.compare thead th { font-size: 13px; font-weight: 900; }
.compare thead th:nth-child(2) { color: var(--text-muted); background: var(--bg-soft-2); }
.compare thead th:nth-child(3) { color: var(--ink); background: #111827; color: #fff; }
.compare tbody tr { border-top: 1px solid var(--border-light); }
.compare td:first-child { font-weight: 800; color: var(--ink); width: 22%; }
.compare td:nth-child(2) { color: var(--text-secondary); }
.compare td:nth-child(3) { color: var(--ink); background: var(--bg-soft-2); font-weight: 600; }
.compare .feat { display: block; font-size: 11px; color: var(--text-muted); margin-top: 3px; font-weight: 400; }

.emo-bullets { display: grid; gap: 14px; margin-top: 26px; }
.emo-bullets li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.emo-bullets .bic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink); }
.emo-bullets b { display: block; font-size: 14px; color: var(--ink); }
.emo-bullets span { font-size: 13px; color: var(--text-secondary); }

/* ============================ Proof / stat ============================ */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 28px; }
.stat-card { background: #fff; border: 1px solid var(--border-card); border-radius: 18px; padding: 28px; }
.stat-card .cap { font-size: 11px; font-weight: 800; color: var(--text-muted); letter-spacing: .05em; }
.stat-card .big { font-size: 46px; font-weight: 900; color: var(--ink); line-height: 1.1; margin: 6px 0 4px; }
.stat-card .big small { font-size: 18px; }
.spreadbars { display: flex; align-items: flex-end; gap: 12px; height: 205px; margin-top: 30px; }
.spreadbars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spreadbars .col .barv { width: 100%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg,#9ca3af,#374151); }
.spreadbars .col:first-child .barv { background: linear-gradient(180deg,#374151,#111827); }
.spreadbars .col .q { font-size: 10px; font-weight: 800; color: var(--text-secondary); }
.spreadbars .col .v { font-size: 11px; font-weight: 900; color: var(--ink); }
.proof-note { font-size: 11px; color: var(--text-muted); margin-top: 20px; line-height: 1.7; }

/* ============================ Playground / app showcase ============================ */
.showcase { background: linear-gradient(180deg,#ffffff,#f7f7f8); }
.showcase-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 28px; align-items: stretch; }
.shot { background: #fff; border: 1px solid var(--border-card); border-radius: 18px; padding: 16px; box-shadow: 0 18px 40px -26px rgba(17,24,39,.3); display: flex; flex-direction: column; }
.shot h4 { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 7px; min-height: 20px; }
.shot h4 svg, .shot h4 i { color: var(--ink); flex: none; }
.shot p { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; min-height: 36px; }
.shot .frame { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; height: 560px; flex: none; }
.note-box { margin-top: 26px; background: #fff; border: 1px solid var(--border-card); border-radius: 16px; padding: 18px 22px; font-size: 13px; color: var(--text-secondary); }
.note-box b { color: var(--ink); }

/* ---- app screen images: PC (top) + 2 smartphones (below) ---- */
.screens { margin-top: 28px; }
.screen { background: #fff; border: 1px solid var(--border-card); border-radius: 20px; padding: 14px; box-shadow: 0 18px 40px -26px rgba(17,24,39,.3); margin: 0; }
.screen .screen-img { background-size: cover; background-position: top center; background-repeat: no-repeat; background-color: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 14px; }
.screen figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink); margin-top: 12px; }
.screen figcaption i { color: var(--accent-dark, #d97706); }
.screen-pc { max-width: 880px; margin: 0 auto; }
.screen-pc .screen-img { aspect-ratio: 2706 / 1842; }     /* landscape PC */
.phones-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.screen-mobile { flex: 0 0 280px; max-width: 280px; }
.screen-mobile .screen-img { aspect-ratio: 704 / 1530; }  /* portrait phone */
@media (max-width: 640px) {
  .screen-mobile { flex: 0 0 46%; max-width: 46%; }
  .phones-row { gap: 12px; }
  .screen { padding: 10px; }
}

/* ============================ Weather map grid ============================ */
.weather-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 26px; }
.wcell { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 14px; text-align: center; transition: transform .2s; }
.wcell:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -18px rgba(17,24,39,.25); }
.wcell .wic { width: 40px; height: 40px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-soft); }
.wcell .wt { font-size: 12px; font-weight: 800; color: var(--ink); }
.wcell .wd { font-size: 10px; color: var(--text-secondary); margin-top: 5px; line-height: 1.5; }
.emo4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; max-width: 620px; }
.emo4 { border-radius: 16px; padding: 18px; color: #fff; border: 1px solid var(--border-light); }
.emo4 b { font-size: 13px; display: block; } .emo4 span { font-size: 11px; opacity: .92; }
.emo4.exc { background: #E94E36; }   /* 高揚・興奮 (positive_high) */
.emo4.calm { background: #FCA428; }  /* 安心・穏やか (positive_low) */
.emo4.anx { background: #00A087; }   /* 不安・恐怖 (negative_high) */
.emo4.apa { background: #3C5488; }   /* 諦め・無気力 (negative_low) */

/* ============================ Steps ============================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 28px; }
.step { text-align: center; padding: 20px; }
.step .num { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #111827; color: #fff; font-size: 22px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(17,24,39,.5); }
.step h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-secondary); }

/* ============================ Science / 3 cards ============================ */
.sci-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 28px; }
.sci { background: #fff; border: 1px solid var(--border-card); border-radius: 18px; padding: 24px; position: relative; }
.sci .spr-wrap { height: 110px; display: grid; place-items: end center; margin-bottom: 12px; }
.sci-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink); margin: 0 auto 16px; }
.sci-ic i { font-size: 28px; }
.sci h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.sci p { font-size: 13px; color: var(--text-secondary); }

/* ============================ Monster gallery ============================ */
.mon-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(86px,1fr)); gap: 12px; margin-top: 24px; }
.mon-card { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 12px 6px; text-align: center; transition: transform .2s; }
.mon-card:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 12px 22px -16px rgba(17,24,39,.3); }
.mon-card img { width: 54px; height: 54px; object-fit: contain; margin: 0 auto; }

/* ============================ FAQ ============================ */
.faq-list { margin-top: 26px; max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item { background: #fff; border: 1px solid var(--border-card); border-radius: 16px; margin-bottom: 14px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-size: 14px; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .qmark { color: var(--ink); flex: none; transition: transform .2s; }
.faq-item[open] summary .qmark { transform: rotate(45deg); }
.faq-item .ans { padding: 0 22px 20px; font-size: 13px; color: var(--text-secondary); line-height: 1.85; }

/* ============================ Final CTA ============================ */
.final-cta { background: #111827; color: #fff; text-align: center; border-radius: 24px; padding: 32px 30px; margin: 16px auto 32px; max-width: 820px; }
.final-cta h2 { font-size: clamp(24px,4vw,36px); font-weight: 900; margin-bottom: 14px; }
.final-cta p { font-size: 15px; opacity: .85; margin-bottom: 28px; }
.final-cta .btn-white { background: #fff; color: var(--ink); }
/* pill CTA: two-line label (underlined sub + large main) + circular arrow */
.cta-pill {
  width: auto; max-width: 100%; margin: 0 auto;
  gap: 18px; padding: 16px 40px; border-radius: 999px;
}
/* white skin on the dark final-CTA (with white ring) */
.final-cta .cta-pill { box-shadow: 0 0 0 5px rgba(255,255,255,.16), 0 14px 30px rgba(0,0,0,.3); }
.final-cta .cta-pill:hover { box-shadow: 0 0 0 5px rgba(255,255,255,.24), 0 18px 36px rgba(0,0,0,.34); }
/* dark skin for the hero (light background) */
.hero-cta { margin-top: 26px; margin-left: 56px; }
.hero-cta .cta-pill { margin: 0; max-width: 440px; }
.cta-pill-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -10px rgba(17,24,39,.5); }
.cta-pill-dark .cta-pill-sub, .cta-pill-dark .cta-pill-main { color: #fff; }
.cta-pill-dark .cta-pill-arrow { border-color: #fff; color: #fff; }
.cta-pill-dark:hover { box-shadow: 0 18px 36px -10px rgba(17,24,39,.6); }
.cta-pill-text { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 0; line-height: 1.25; }
.cta-pill-sub {
  font-size: clamp(11px, 2.6vw, 14px); font-weight: 800; color: var(--ink);
  padding-bottom: 5px; margin-bottom: 5px; border-bottom: 2px solid currentColor;
}
.cta-pill-main { font-size: clamp(20px, 5vw, 28px); font-weight: 900; color: var(--ink); letter-spacing: .01em; }
.cta-pill-arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ink); color: var(--ink);
  display: grid; place-items: center;
}
.cta-pill-arrow i { font-size: 20px; }

/* ============================ Footer ============================ */
.site-footer { background: #fff; border-top: 1px solid var(--border-card); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-brand img { height: 26px; margin-bottom: 12px; }
.footer-brand p { font-size: 12px; color: var(--text-secondary); max-width: 360px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links .col h5 { font-size: 12px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.footer-links .col a { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 7px; }
.footer-links .col a:hover { color: var(--ink); }
.disclaimer { font-size: 11px; color: var(--text-muted); line-height: 1.85; border-top: 1px solid var(--border-light); padding-top: 22px; }
.copyright { font-size: 11px; color: var(--text-muted); margin-top: 18px; text-align: center; }

/* sprite frame-0 (front pose) clipped from real sprite sheets */
.spr-anchoring{width:76px;height:97px;background:url(sprites/annkaringu_trimmed.png) 0 0/1071px 97px no-repeat;image-rendering:pixelated;}
.spr-loss_aversion{width:51px;height:105px;background:url(sprites/bikubiku_trimmed.png) 0 0/714px 105px no-repeat;image-rendering:pixelated;}
.spr-book{width:66px;height:90px;background:url(sprites/book_trimmed.png) 0 0/663px 90px no-repeat;image-rendering:pixelated;}
.spr-status_quo{width:56px;height:104px;background:url(sprites/genjouiji_trimmed.png) 0 0/785px 104px no-repeat;image-rendering:pixelated;}
.spr-herd{width:85px;height:104px;background:url(sprites/gunnshuushinri_trimmed.png) 0 0/1190px 104px no-repeat;image-rendering:pixelated;}
.spr-endowment{width:65px;height:105px;background:url(sprites/hoyuukouka_trimmed.png) 0 0/904px 105px no-repeat;image-rendering:pixelated;}
.spr-overconfidence{width:66px;height:109px;background:url(sprites/jishinnkajouniwatori_trimmed.png) 0 0/928px 109px no-repeat;image-rendering:pixelated;}
.spr-paralysis{width:68px;height:99px;background:url(sprites/ketteimahi_trimmed.png) 0 0/952px 99px no-repeat;image-rendering:pixelated;}
.spr-regret{width:63px;height:105px;background:url(sprites/mojimojiniwatori_trimmed.png) 0 0/881px 105px no-repeat;image-rendering:pixelated;}
.spr-dissonance{width:73px;height:102px;background:url(sprites/ninnchitekifukyouwa_trimmed.png) 0 0/1023px 102px no-repeat;image-rendering:pixelated;}
.spr-mental{width:97px;height:119px;background:url(sprites/pappara_trimmed.png) 0 0/1357px 119px no-repeat;image-rendering:pixelated;}
.spr-probability{width:63px;height:100px;background:url(sprites/shukannkakuritu_trimmed.png) 0 0/881px 100px no-repeat;image-rendering:pixelated;}
.spr-hyperbolic{width:82px;height:102px;background:url(sprites/soukyokuwaribiki_trimmed.png) 0 0/1142px 102px no-repeat;image-rendering:pixelated;}

/* smartphone-only line breaks: hidden on PC/tablet, shown only at ≤640px */
br.sp-only { display: none; }

/* ============================ Responsive ============================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .cards-3, .showcase-grid, .steps, .sci-grid { grid-template-columns: 1fr; }
  .proof-grid, .emo4-grid { grid-template-columns: 1fr; }
  .weather-grid { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
  .compare td:first-child { width: auto; }
  .showcase-grid { max-width: 420px; margin-left: auto; margin-right: auto; }
}
/* mobile: turn the 3-card sections into swipeable carousels (less endless scroll) */
@media (max-width: 760px) {
  .cards-3, .sci-grid, .showcase-grid {
    display: flex; max-width: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 14px; margin: 24px -16px 0; padding: 4px 16px 16px;
    scroll-padding-left: 16px;
  }
  .cards-3::-webkit-scrollbar,
  .sci-grid::-webkit-scrollbar,
  .showcase-grid::-webkit-scrollbar { display: none; }
  .cards-3 > *, .sci-grid > *, .showcase-grid > * {
    flex: 0 0 84%; scroll-snap-align: center;
  }
  .shot .frame { height: 460px; }
}
@media (max-width: 640px) {
  .section { padding: 28px 0; }                       /* セクション間の上下を詰める */
  .section.tight { padding: 20px 0; }
  .hero { padding: 24px 0 32px; }
  .wrap, .narrow { padding: 0 16px; }
  br.sp-only { display: inline; }                     /* スマホのみ改行を有効化 */
  .header-cta .btn-secondary { display: none; }
  /* === smartphone-only hero tweaks (PC/tablet unaffected) === */
  .hero-visual { order: 0; }                          /* テキストをスマホ画像の上に */
  .hero-badge { margin-top: 18px; }                   /* バッジを少し下げる */
  .hero h1 { margin-top: 10px; }                      /* バッジと見出しの距離を詰める */
  .phone { zoom: 0.82; }                              /* スマホは中身ごと等倍縮小（崩れ防止） */
  .trust-row { flex-wrap: nowrap; gap: 6px; }         /* 3バッジを横並び（1行） */
  .trust-row span { padding: 5px 8px; font-size: 9.5px; gap: 3px; }
  .trust-row span i { font-size: 11px !important; }
  .hero-cta { margin-left: 0; text-align: center; }   /* ボタンを中央に */
  .hero-cta .cta-pill { margin: 0 auto; }
  .site-header .inner { padding: 0 16px; height: 58px; }
  .brand img { height: 24px; }
  /* compare table: fit to width (match the index card above) + smaller text */
  .compare { overflow-x: visible; }
  .compare table { min-width: 0; width: 100%; table-layout: fixed; }
  .compare th:first-child, .compare td:first-child { width: 18%; }  /* 行タイトル列を狭め、右2列を広げる */
  .compare th, .compare td { padding: 6px 5px; font-size: 9px; line-height: 1.5; }
  .compare thead th { font-size: 9px; }
  .compare .feat { font-size: 8px; }
  /* section titles: shrink so the first line stays on one line on mobile */
  #science .section-title { font-size: 15px; white-space: nowrap; }
  #weathermap .section-title { font-size: 16px; white-space: nowrap; }
  /* weather cards: horizontal swipe carousel */
  .weather-grid {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 12px; margin: 26px -16px 0; padding: 4px 16px 14px; scroll-padding-left: 16px;
  }
  .weather-grid::-webkit-scrollbar { display: none; }
  .weather-grid > .wcell { flex: 0 0 44%; scroll-snap-align: center; }
  .final-cta { margin: 12px auto 48px; padding: 44px 20px; border-radius: 20px; }
  .stat-card { padding: 20px; }
  .pcard, .sci { padding: 20px 18px; }
  .note-box { padding: 16px; }
  .emo4-grid { gap: 10px; }
  /* === smartphone-only: overall smaller section/card text (PC unaffected) === */
  .section-title { font-size: 15px; }
  #weathermap .section-title { font-size: 15px; }       /* unify with the rest */
  .section-lead { font-size: 12px !important; }          /* beat inline font-size */
  .hero p.lead { font-size: 12px; }                      /* ヒーローのサブ文も少し小さく */
  .eyebrow { font-size: 10px; }
  .section h3[style] { font-size: 14px !important; }     /* inline-styled sub-headings */
  .pcard h3, .sci h3, .step h3 { font-size: 13px; }
  .pcard p, .sci p, .step p, .faq-item .ans, .note-box, .emo-bullets span { font-size: 11px; }
  .pcard .sub, .pcard .quote, .stat-card .cap, .emo4 span, .proof-note { font-size: 10px; }
  .emo-bullets b { font-size: 12px; }
  .faq-item summary { font-size: 12px; }
  .wcell .wt { font-size: 11px; }
  .wcell .wd { font-size: 9px; }
  .emo4 b { font-size: 12px; }
  .stat-card .big { font-size: 32px; }
  .stat-card .big small { font-size: 14px; }
  .screen figcaption { font-size: 11px; }
  /* proof section: inline-styled subheadings/body (18px/14px) — force smaller */
  #proof h3 { font-size: 13px !important; }
  #proof p { font-size: 11px !important; }
  /* final CTA card: smaller text */
  .final-cta h2 { font-size: 20px; }
  .final-cta p { font-size: 12px; }
}
@media (max-width: 480px) {
  .emo-cards { grid-template-columns: 1fr 1fr; }
  .final-cta { padding: 30px 18px; }
  .final-cta h2 { font-size: 19px; }
  .final-cta p { font-size: 12px; margin-bottom: 20px; }
  .final-cta .cta-pill { gap: 10px; padding: 13px 16px; box-shadow: 0 0 0 4px rgba(255,255,255,.16), 0 12px 24px rgba(0,0,0,.3); }
  .cta-pill-arrow { width: 34px; height: 34px; }
  .cta-pill-arrow i { font-size: 17px; }
  .mon-gallery { grid-template-columns: repeat(auto-fill,minmax(64px,1fr)); }
  .step { padding: 12px; }
}
@media (max-width: 400px) {
  .weather-grid > .wcell { flex: 0 0 56%; }              /* 極小幅は1.7枚見せ */
  .trust-row span { padding: 5px 6px; font-size: 9px; }  /* 極小幅でも3バッジ1行を維持 */
}

/* =========================================================================
   REAL-APP faithful components (home / stock detail) — added after审视实画面
   ========================================================================= */

/* ---- MonsterSpriteIcon: frame0 @ zoom1.8 in white circle (exact app recipe) ---- */
.msi {
  background-size: 1440% 180%;
  background-position: 2.99% 50%;
  background-repeat: no-repeat;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e5e7eb;
  display: inline-block;
  image-rendering: auto;
}

/* ---- SplitCircle weather icon: top=Buy / bottom=Sell quadrant ---- */
.sc {
  position: relative; border-radius: 50%; flex: none;
}
.sc::before { /* center 1px divider */
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 1px;
  background: rgba(55,65,81,.75); transform: translateY(-.5px); z-index: 2;
}
.sc .sc-ic {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 3; pointer-events: none;
}

/* ---- EMO感情インデックス cards ---- */
.emoidx { background: #fff; border: 1px solid var(--border-card); border-radius: 16px; padding: 12px; }
.emoidx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.emoidx-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); white-space: nowrap; min-width: 0; }
.emoidx-toggle { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 2px; flex: none; }
.emoidx-toggle span { font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: var(--text-secondary); }
.emoidx-toggle span.on { background: var(--ink); color: #fff; }
.emoidx-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lookpill { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.lookpill.buy { background: #fdeeee; color: var(--buy); }
.lookpill.sell { background: #eef3fd; color: var(--sell); }
.emo-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.emo-card { background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 7px 5px; min-width: 0; overflow: hidden; }
.emo-card .lab { font-size: 8.5px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emo-card .num { font-size: 13px; font-weight: 900; color: var(--ink); line-height: 1.2; margin-top: 2px; white-space: nowrap; }
.emo-card .dlt { font-size: 9px; font-weight: 800; margin-top: 1px; }

/* ---- weather/strategy card (today) ---- */
.wxcard { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 12px; display: flex; gap: 12px; }
.wxcard .left { text-align: center; flex: none; width: 86px; }
.wxcard .left .day { font-size: 11px; font-weight: 800; color: var(--ink); }
.wxcard .left .date { font-size: 10px; color: var(--text-muted); margin-bottom: 8px; }
.wxcard .left .qd { font-size: 9px; font-weight: 800; margin-top: 8px; line-height: 1.5; }
.wxcard .body .t { font-size: 12px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.wxcard .body .h { font-size: 10px; font-weight: 800; color: var(--buy); margin-top: 7px; }
.wxcard .body p { font-size: 10px; color: var(--text-secondary); line-height: 1.6; margin-top: 2px; }
.wxcard .body .h2 { font-size: 10px; font-weight: 800; color: #d97706; margin-top: 7px; }
.wxcard .body .strat { font-size: 11px; font-weight: 800; color: var(--ink); margin-top: 1px; }

/* ---- balance/strength mini chart ---- */
.balchart { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 10px; }
.balrow { display: flex; align-items: center; gap: 8px; }
.balrow .axlab { width: 34px; font-size: 9px; font-weight: 800; color: var(--text-secondary); flex: none; }

/* ---- sub tabs (天気/ランキング, チャート/バイアス/基本情報) ---- */
.subtabs { display: flex; border-bottom: 1px solid var(--border-light); }
.subtabs .st { flex: 1; text-align: center; padding: 9px 4px; font-size: 11px; font-weight: 800; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs .st.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- ranking (real) ---- */
.rktabs { display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; }
.rktab { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--text-secondary); }
.rktab.on { background: var(--ink-2); color: #fff; }
.rkhead { display: grid; grid-template-columns: 22px 1fr 40px 40px; gap: 8px; align-items: center; padding: 5px 12px; background: var(--bg-soft-2); font-size: 9px; font-weight: 800; color: var(--text-muted); }
.rkhead .c { text-align: center; }
.rkrow { display: grid; grid-template-columns: 22px 1fr 40px 40px; gap: 8px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--border-light); }
.rkrow .rno { font-size: 13px; font-weight: 900; color: var(--text-primary); text-align: center; }
.rkrow .rno.dim { color: var(--text-muted); }
.rkrow .rmid { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rkrow .rname { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rkrow .rcode { font-size: 9px; color: var(--text-muted); margin-left: 4px; }
.rkrow .rcap { font-size: 10px; font-weight: 800; color: #16a34a; }
.rkrow .mc { display: flex; justify-content: center; }

/* ---- stock detail header (real) ---- */
.sdhead { background: #fff; padding: 12px; border-bottom: 1px solid var(--border-light); }
.sdhead .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sdhead .back { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sdhead .bk { color: var(--text-secondary); flex: none; }
.sdhead .nm { font-size: 16px; font-weight: 900; color: var(--ink); }
.sdhead .sub { font-size: 10px; color: var(--text-muted); }
.sdhead .add { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; color: var(--text-secondary); border: 1px solid var(--border-card); border-radius: 999px; padding: 4px 10px; }
.sdhead .price { font-size: 22px; font-weight: 900; color: var(--ink); text-align: right; line-height: 1.1; }
.sdhead .chg { font-size: 12px; font-weight: 800; text-align: right; }

/* ---- BIAS Radar card ---- */
.radarcard { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 14px; }
.radar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.radar-title { font-size: 14px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.radar-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.bs-toggle { display: inline-flex; border: 1px solid var(--border-card); border-radius: 999px; overflow: hidden; flex: none; }
.bs-toggle span { font-size: 11px; font-weight: 800; padding: 4px 14px; color: var(--text-secondary); }
.bs-toggle span.buy.on { background: var(--buy); color: #fff; }
.bs-toggle span.sell.on { background: var(--sell); color: #fff; }
.radar-legend { display: flex; gap: 14px; justify-content: center; margin: 10px 0 2px; }
.radar-legend span { font-size: 10px; font-weight: 700; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; }
.radar-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.radar-foot { text-align: center; font-size: 10px; color: var(--text-muted); margin-top: 6px; }
