/* SKB Investor Report - 黒×金 */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-card: #161616;
  --bg-elevated: #1f1f1f;
  --gold: #d4af37;
  --gold-bright: #f0c419;
  --text: #e8e8e8;
  --text-dim: #999;
  --text-faint: #666;
  --loss: #ff6b6b;
  --loss-strong: #ff3b30;
  --profit: #4ade80;
  --profit-strong: #22c55e;
  --border: #2a2a2a;
  --border-gold: #3a3018;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 40px;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero h1 {
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}

.meta {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.meta-sub {
  font-size: 13px;
  color: var(--text-faint);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  margin-bottom: 24px;
}

.highlight-card {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, #1a1408 0%, #161616 100%);
}

.card h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--gold-bright);
  margin: 24px 0 12px;
}

/* Result Box */
.result-box {
  text-align: center;
  padding: 32px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
}

.result-box.loss {
  border-color: rgba(255, 107, 107, 0.3);
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.06) 0%, var(--bg-elevated) 100%);
}

.result-label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.result-value {
  font-size: 48px;
  font-weight: 300;
  color: var(--loss);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}

.result-sub {
  font-size: 14px;
  color: var(--text-dim);
}

/* Tables */
.summary-table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.summary-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.summary-table td.num {
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.summary-table tr.total td {
  font-weight: 600;
  border-top: 2px solid var(--gold);
  border-bottom: none;
  padding-top: 16px;
  font-size: 17px;
  color: var(--gold-bright);
}

.table-wrapper {
  overflow-x: auto;
  margin: 16px -8px;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

table.data.small {
  font-size: 13px;
}

table.data th {
  padding: 12px 10px;
  text-align: right;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gold);
  border-bottom: 1px solid var(--border-gold);
  white-space: nowrap;
}

table.data th:first-child { text-align: left; }

table.data td {
  padding: 11px 10px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.data td:first-child { text-align: left; }

table.data tr.highlight {
  background: rgba(212, 175, 55, 0.05);
}

table.data tr.sub-total {
  background: rgba(212, 175, 55, 0.03);
  border-top: 1px dashed var(--border-gold);
}

table.data tr.total {
  background: rgba(212, 175, 55, 0.08);
  border-top: 2px solid var(--gold);
  font-weight: 600;
}

table.data tr.total td {
  font-size: 15px;
  color: var(--gold-bright);
  padding: 14px 10px;
}

.loss { color: var(--loss); }
.loss-strong { color: var(--loss-strong); font-weight: 600; }
.profit { color: var(--profit); }
.profit-strong { color: var(--profit-strong); font-weight: 600; }

/* Note */
.note {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  padding: 12px 0;
}

.note.small { font-size: 12px; }

.note strong {
  color: var(--gold-bright);
  font-weight: 500;
}

/* Callout */
.callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--loss);
  background: rgba(255, 59, 48, 0.04);
  border-radius: 0 4px 4px 0;
}

.callout-title {
  font-weight: 600;
  color: var(--loss);
  margin-bottom: 6px;
  font-size: 15px;
}

.callout-body {
  color: var(--text-dim);
  font-size: 14px;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0 8px 20px;
  border-left: 2px solid var(--border);
  margin-bottom: 6px;
  position: relative;
  color: var(--text);
  font-size: 14px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.feature-list li.alert {
  border-left-color: var(--loss);
  color: var(--text);
}

.feature-list li.alert::before {
  background: var(--loss);
}

.feature-list li strong {
  color: var(--gold-bright);
  font-weight: 500;
}

/* Code Block */
.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  margin: 12px 0 16px;
  white-space: pre-wrap;
  line-height: 1.8;
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 30px 20px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

.footer-meta { margin-bottom: 16px; }
.footer-meta div { margin-bottom: 4px; }
.footer-data { font-size: 11px; line-height: 1.6; }

/* Responsive */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 14px 40px; }
  .hero { padding: 40px 12px 28px; }
  .hero h1 { font-size: 28px; }
  .card { padding: 22px 16px; border-radius: 6px; }
  .card h2 { font-size: 17px; }
  .result-value { font-size: 36px; }
  table.data { font-size: 12px; }
  table.data.small { font-size: 11px; }
  table.data th, table.data td { padding: 8px 6px; }
}

/* Print (PDFエクスポート用) */
@media print {
  body { background: white; color: black; }
  .container { max-width: 100%; padding: 0; }
  .card, .highlight-card {
    background: white;
    border-color: #ddd;
    page-break-inside: avoid;
    box-shadow: none;
  }
  .hero { border-bottom-color: #d4af37; }
  .card h2, .hero h1, .brand { color: #8a7320; }
  .card h3 { color: #b8941f; }
  .result-value { color: #c0392b; }
  .loss { color: #c0392b; }
  .profit, .profit-strong { color: #16a34a; }
  table.data tr.total { background: #f5f0d8; color: #8a7320; }
  .result-box.loss { background: #fef5f5; border-color: #fcc; }
  .callout { background: #fef5f5; border-left-color: #c0392b; }
  .feature-list li { color: black; }
  .feature-list li strong { color: #8a7320; }
  .note { color: #555; }
  .code-block { background: #f5f5f5; color: black; border-color: #ddd; }
}
