/* 試作専用スタイル（terminal-panel）。style.cssとは分離し、本番の3ページには読み込ませない。 */

.proto-flag {
  background: #fff3cd;
  border: 1px solid #e0b878;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #6b4c1e;
  margin-bottom: 20px;
}

.terminal-panel {
  background: #14171c;
  border: 1px solid #2a2f38;
  border-radius: 8px;
  padding: 18px 16px;
  margin: 24px 0 12px;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  color: #d7dbe0;
  overflow-x: auto;
  /* 5ブロックを横に並べても「決済/最終結果」まで一目で見えるよう、
     640px幅の本文カラムより意図的に広く「はみ出す」（breakoutパターン） */
  width: min(900px, 92vw);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.terminal-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #7f8894;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2f38;
  white-space: nowrap;
}

.terminal-track {
  display: flex;
  gap: 6px;
  min-width: 760px;
}

.terminal-event,
.terminal-gap {
  flex: 1;
  min-width: 0;
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 12px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

.terminal-event {
  background: #1c2129;
  border: 1px solid #333a45;
}

.terminal-event .ts {
  color: #6b7480;
  font-size: 10px;
  margin-bottom: 2px;
}

/* 主役：日本語タイトル（大きく・明るく） */
.terminal-event .ev-title {
  color: #f2f2f0;
  font-weight: 700;
  font-size: 15px;
  margin: 2px 0 3px;
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* 準主役：日本語の要点（中くらい） */
.terminal-event .ev-subtitle {
  color: #b9c8c3;
  font-size: 13px;
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* 脇役：内部ログ名（小さく・目立たなく） */
.terminal-event .internal-log {
  display: block;
  margin-top: 6px;
  color: #5c636d;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.terminal-event.is-final {
  border-color: #7a3d30;
}

.terminal-event .outcome-tag {
  display: inline-block;
  margin-top: 2px;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 3px;
  background: #3a2420;
  color: #e39284;
  border: 1px solid #b3543f;
  font-size: 13px;
  font-weight: 700;
}

.terminal-gap {
  background: repeating-linear-gradient(
    45deg,
    #1c2129,
    #1c2129 6px,
    #23282f 6px,
    #23282f 12px
  );
  border: 1px dashed #454c57;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9aa3ad;
}

.terminal-gap-title {
  color: #e0b878;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.terminal-gap-sub {
  color: #d7dbe0;
  font-size: 13px;
  margin: 4px 0 8px;
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

.terminal-gap-detail {
  color: #5c636d;
  font-size: 9px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .terminal-track {
    flex-direction: column;
    min-width: 0;
  }
  .terminal-panel-header {
    white-space: normal;
  }
}
