/* ============================================
   9746 TKC — Stock-specific styles
   Extends hospitality-tech/styles.css
   ============================================ */

/* Sub-navigation */
.subnav {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  font-size: 0.85rem;
}
.subnav .container {
  display: flex;
  gap: var(--s-5);
  padding: var(--s-3) var(--s-4);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  padding: var(--s-1) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.subnav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Verdict bar */
.verdict-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding: var(--s-5);
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.verdict {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.verdict-label {
  font-size: 0.78rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.verdict-value {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.verdict-value.tier-2 { color: var(--accent); }
.verdict-value.positive { color: var(--success); }
.verdict-value.negative { color: var(--danger); }
.verdict-value.warning { color: var(--warning); }

/* Key quote */
.key-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-subtle);
  margin: var(--s-5) 0;
  border-radius: 0 4px 4px 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: var(--s-4);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.stat-card.highlight-card {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}
.stat-card.warning-card {
  border-left: 4px solid var(--warning);
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.stat-card .stat-value-large {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.stat-card .stat-unit {
  font-size: 0.55em;
  font-weight: 600;
  margin-left: 2px;
  color: var(--ink-muted);
}
.stat-card .stat-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Section variant */
.section-bg {
  background: var(--bg-subtle);
}

/* Segment bar chart (FY25 売上構成) */
.segment-bars {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: var(--s-5) 0;
}
.segment-row {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  align-items: center;
  gap: var(--s-3);
}
.segment-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.segment-name small {
  display: block;
  color: var(--ink-light);
  font-weight: 400;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  margin-top: 2px;
}
.segment-bar {
  height: 26px;
  background: var(--bg-subtle);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.segment-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--s-3);
  color: white;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}
.segment-bar-fill.fill-core { background: var(--ink); }
.segment-bar-fill.fill-windfall { background: var(--warning); }
.segment-bar-fill.fill-aux { background: var(--ink-light); }
.segment-bar-fill.fill-cash { background: var(--info); }
.segment-value {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Competitor table (3 階層) */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.tier-table thead th {
  background: var(--bg-subtle);
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.tier-table tbody td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}
.tier-table tbody tr:last-child td { border-bottom: none; }
.tier-table .tier-divider td {
  background: var(--bg-subtle);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: var(--s-3) var(--s-4);
}
.tier-table .row-tkc {
  background: var(--accent-soft);
}
.tier-table .row-tkc td:first-child { font-weight: 700; }

/* 7 Powers cards */
.powers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.power-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: var(--s-5);
  border-radius: 4px;
  border-top: 4px solid var(--line-strong);
}
.power-card.strength-5 { border-top-color: var(--success); }
.power-card.strength-4 { border-top-color: var(--success); opacity: 0.95; }
.power-card.strength-3 { border-top-color: var(--info); }
.power-card.strength-2 { border-top-color: var(--warning); }
.power-card.strength-1 { border-top-color: var(--ink-light); }
.power-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-2);
}
.power-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.power-stars {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--warning);
}
.power-stars .dim { color: var(--line-strong); }
.power-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: var(--s-2) 0 0;
}
.power-evidence {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--info);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
}

/* AI risk 3-condition */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.ai-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: var(--s-5);
  border-radius: 4px;
  border-top: 4px solid var(--success);
}
.ai-card .ai-condition {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  font-weight: 600;
}
.ai-card h4 {
  margin: var(--s-2) 0;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}
.ai-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

/* Windfall timeline */
.windfall-timeline {
  margin: var(--s-6) 0;
  position: relative;
  padding-left: var(--s-6);
  border-left: 2px solid var(--line-strong);
}
.windfall-event {
  position: relative;
  margin-bottom: var(--s-5);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.windfall-event::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s-6) - 1px);
  top: var(--s-4);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.windfall-event.peak::before { background: var(--warning); }
.windfall-event.post::before { background: var(--danger); }
.windfall-event.recover::before { background: var(--success); }
.windfall-event .wf-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.windfall-event .wf-label {
  font-weight: 700;
  font-size: 1rem;
  margin: var(--s-1) 0;
  color: var(--ink);
}
.windfall-event .wf-detail {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.windfall-event .wf-numbers {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-deep);
  margin-top: var(--s-2);
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* Entry table */
.entry-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.entry-table thead th {
  background: var(--bg-subtle);
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.entry-table tbody td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}
.entry-table tbody tr:last-child td { border-bottom: none; }
.entry-table small {
  display: block;
  color: var(--ink-light);
  font-weight: 400;
  font-size: 0.78rem;
  margin-top: 2px;
}
.entry-table .row-current { background: var(--bg-subtle); }
.entry-table .row-tier1 { background: var(--accent-soft); }

.tier-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.tier-pill.tier-1 { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--accent); }
.tier-pill.tier-2 { background: #fff8e6; color: #8a6a14; border: 1px solid #d4b76a; }
.tier-pill.tier-wait { background: var(--bg-subtle); color: var(--ink-muted); border: 1px solid var(--line-strong); }

/* Thesis-breaker list */
.breaker-list {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
  counter-reset: brk;
}
.breaker-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-7);
  margin-bottom: var(--s-3);
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-muted);
  position: relative;
  counter-increment: brk;
}
.breaker-list li::before {
  content: counter(brk);
  position: absolute;
  left: var(--s-3);
  top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--danger);
}
.breaker-list li strong { color: var(--ink); }

/* Trigger list (重審觸發) */
.trigger-list {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
}
.trigger-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  line-height: 1.55;
}
.trigger-list li strong { color: var(--ink); display: block; margin-bottom: var(--s-1); }
.trigger-list li small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-top: var(--s-1);
  font-weight: 400;
}

/* Doc grid */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.doc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: var(--s-4);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.doc-card.highlight-doc {
  border-left: 4px solid var(--accent);
  background: linear-gradient(to right, var(--accent-soft) 0%, var(--bg-elevated) 25%);
}
.doc-kind {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.doc-card h3 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.005em;
}
.doc-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* Dates table */
.dates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.dates-table thead th {
  background: var(--bg-subtle);
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.dates-table tbody td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.dates-table tbody tr:last-child td { border-bottom: none; }
.dates-table .highlight-row { background: var(--accent-soft); }
.dates-table .highlight-row td:first-child { font-weight: 700; }

/* Pills */
.pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  border-radius: 99px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.pill.pill-high { background: var(--accent); color: white; }
.pill.pill-mid { background: var(--bg-subtle); color: var(--ink-muted); border: 1px solid var(--line-strong); }
.pill.pill-low { background: transparent; color: var(--ink-light); border: 1px solid var(--line); }
.pill.pill-success { background: #e6f4ea; color: var(--success); border: 1px solid #6ab080; }
.pill.pill-warning { background: #fff4e0; color: var(--warning); border: 1px solid #d4b76a; }
.pill.pill-danger { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--accent); }

/* Footer note */
.footer-note {
  font-size: 0.82rem;
  color: var(--ink-light);
  border-top: 1px solid var(--line);
  padding-top: var(--s-6);
  margin-top: 0;
  line-height: 1.6;
}

/* Section label */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

/* Ownership chart */
.ownership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
  margin: var(--s-5) 0;
}
.owner-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: var(--s-4);
  border-radius: 4px;
}
.owner-card.founder { border-left: 4px solid var(--accent); }
.owner-card.institution { border-left: 4px solid var(--info); }
.owner-card.policy { border-left: 4px solid var(--warning); }
.owner-card.employee { border-left: 4px solid var(--success); }
.owner-pct {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.owner-name {
  font-size: 0.88rem;
  margin: var(--s-2) 0 var(--s-1);
  font-weight: 600;
}
.owner-detail {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
