/* asa-kabu.com - 朝カブ 日本株モーニングレポート */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
               'Noto Sans JP', 'Yu Gothic', sans-serif;
  background: #f8f9fa;
  color: #1a1a1a;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navigation */
.nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: #1e40af;
  text-decoration: none;
}

.nav-logo span {
  color: #dc2626;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.nav-links a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: #1e40af;
}

/* Header */
.site-header {
  text-align: center;
  padding: 32px 0 20px;
}

.site-header h1 {
  font-size: 14px;
  color: #888;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.report-date {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin: 6px 0;
}

/* Market Mood */
.mood-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  margin: 8px 0;
}

.mood-bullish { background: #dcfce7; color: #16a34a; }
.mood-bearish { background: #fee2e2; color: #dc2626; }
.mood-neutral { background: #fef9c3; color: #ca8a04; }

.mood-comment {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  line-height: 1.8;
}

/* Stats Row */
.stats {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 20px;
  text-align: center;
  min-width: 80px;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #111;
}

.stat-lbl {
  font-size: 11px;
  color: #888;
}

/* Section Headers */
.section-header {
  font-size: 18px;
  font-weight: 800;
  margin: 28px 0 14px;
  padding: 12px 16px;
  border-radius: 12px;
}

.section-header.value { background: #eff6ff; color: #1e40af; }
.section-header.tech { background: #f5f3ff; color: #6d28d9; }
.section-header.sector { background: #fef3c7; color: #92400e; }
.section-header.highlight { background: #ecfdf5; color: #065f46; }

/* Top Pick Hero */
.top-pick {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  text-align: center;
}

.top-pick-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.top-pick h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 4px 0;
}

.top-pick .ticker {
  font-size: 14px;
  opacity: 0.7;
}

.top-pick .price {
  font-size: 32px;
  font-weight: 800;
  margin: 12px 0;
}

.top-pick .summary {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
  margin: 12px 0;
}

.top-pick .metrics {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.top-pick .metric {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 16px;
  text-align: center;
}

.top-pick .metric-val {
  font-size: 18px;
  font-weight: 800;
}

.top-pick .metric-lbl {
  font-size: 11px;
  opacity: 0.7;
}

/* Traffic Light Signal */
.signal {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.signal-buy { background: #dcfce7; color: #16a34a; }
.signal-watch { background: #fef9c3; color: #ca8a04; }
.signal-caution { background: #fee2e2; color: #dc2626; }

/* Difficulty Stars */
.difficulty {
  font-size: 13px;
  color: #888;
}

.difficulty .stars {
  color: #f59e0b;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rank-badge {
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-badge.purple { background: #7c3aed; }

.stock-name {
  font-size: 20px;
  font-weight: 800;
}

.stock-ticker {
  color: #888;
  font-size: 14px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 6px 0;
}

.current-price {
  font-size: 28px;
  font-weight: 800;
}

.change-pct {
  font-size: 16px;
  font-weight: 700;
}

.change-pct.positive { color: #16a34a; }
.change-pct.negative { color: #dc2626; }

.change-period {
  font-size: 11px;
  color: #aaa;
}

/* Beginner-Friendly Metrics */
.beginner-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.beginner-metric {
  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.beginner-metric .label {
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
}

.beginner-metric .value {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.beginner-metric .explain {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}

/* Investment Amount Box */
.investment-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}

.investment-box .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.investment-box .row .label {
  color: #555;
}

.investment-box .row .value {
  font-weight: 700;
}

.investment-box .row .value.profit { color: #16a34a; }
.investment-box .row .value.loss { color: #dc2626; }

/* Exit Strategy */
.exit-strategy {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  font-size: 14px;
}

.exit-strategy .title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #92400e;
}

.exit-strategy .target {
  color: #16a34a;
  font-weight: 700;
}

.exit-strategy .stoploss {
  color: #dc2626;
  font-weight: 700;
}

/* Info Boxes */
.info-box {
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
}

.info-box.green { background: #f0fdf4; color: #166534; }
.info-box.red { background: #fef2f2; color: #991b1b; }
.info-box.blue { background: #eff6ff; color: #1e3a5f; }

.info-box .title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* Beginner Summary */
.beginner-summary {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #9a3412;
}

.beginner-summary .title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* 52-Week Price Range */
.price-range {
  margin: 10px 0;
}

.price-range .labels {
  font-size: 12px;
  color: #888;
  display: flex;
  justify-content: space-between;
}

.price-range .bar {
  background: #e5e7eb;
  height: 8px;
  border-radius: 4px;
  position: relative;
  margin: 4px 0;
}

.price-range .fill {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  height: 100%;
  border-radius: 4px;
}

.price-range .marker {
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #1e40af;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Confidence Bar */
.confidence {
  margin: 8px 0;
}

.confidence .label {
  font-size: 13px;
  color: #666;
}

.confidence .label b {
  color: #111;
}

.confidence .bar {
  background: #e5e7eb;
  height: 8px;
  border-radius: 4px;
  margin-top: 3px;
}

.confidence .fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s;
}

.confidence .fill.high { background: #16a34a; }
.confidence .fill.mid { background: #ca8a04; }
.confidence .fill.low { background: #dc2626; }

/* RSI Gauge */
.rsi-gauge {
  text-align: center;
}

.rsi-gauge .value {
  font-size: 28px;
  font-weight: 800;
}

.rsi-gauge .label {
  font-size: 11px;
  color: #888;
}

.rsi-gauge .bar {
  background: #e5e7eb;
  height: 6px;
  border-radius: 3px;
  margin: 4px auto;
  width: 80px;
  display: inline-block;
}

.rsi-gauge .fill {
  height: 100%;
  border-radius: 3px;
}

.rsi-gauge .status {
  font-size: 11px;
  font-weight: 600;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.kpi {
  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.kpi-lbl {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* Yahoo Finance Link */
.yahoo-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.yahoo-link.value {
  background: #eff6ff;
  color: #2563eb;
}

.yahoo-link.tech {
  background: #f5f3ff;
  color: #7c3aed;
}

/* Sector Bars */
.sector-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sector-row:last-child {
  border-bottom: none;
}

.sector-name {
  width: 110px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.sector-bar {
  flex: 1;
  background: #f3f4f6;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.sector-bar .fill {
  height: 100%;
  border-radius: 4px;
  opacity: 0.7;
}

.sector-change {
  width: 60px;
  text-align: right;
  font-weight: 800;
  font-size: 15px;
}

.sector-comment {
  font-size: 12px;
  color: #888;
  width: 140px;
}

/* Highlight Items */
.highlight-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.8;
}

/* Ad Placeholders */
.ad-placeholder {
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  margin: 20px 0;
}

/* Disclaimer / Footer */
.disclaimer {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 32px;
  padding: 16px;
  border-top: 1px solid #eee;
  line-height: 1.8;
}

.site-footer {
  text-align: center;
  padding: 24px 0 40px;
  font-size: 13px;
  color: #999;
}

.site-footer a {
  color: #666;
  text-decoration: none;
}

.site-footer a:hover {
  color: #1e40af;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
}

/* Static Pages */
.page-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  margin: 24px 0;
  border: 1px solid #e5e7eb;
}

.page-content h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111;
}

.page-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #333;
}

.page-content p {
  margin-bottom: 12px;
  color: #444;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin: 8px 0 16px 24px;
  color: #444;
}

.page-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* Archive Page */
.archive-list {
  list-style: none;
}

.archive-list li {
  border-bottom: 1px solid #f0f0f0;
}

.archive-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  text-decoration: none;
  color: #333;
  font-size: 15px;
}

.archive-list a:hover {
  color: #1e40af;
}

.archive-date {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 480px) {
  .beginner-metrics {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-comment {
    display: none;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .top-pick .metrics {
    flex-direction: column;
    align-items: center;
  }
}
