body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f7fa;
  padding: 30px;
}

.card {
  background: white;
  max-width: 1000px;
  margin: auto;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  padding-top:100px;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 16px;
  margin-top: 28px;
}

.result {
  background: #f0f4ff;
  padding: 16px;
  border-radius: 10px;
  line-height: 1.7;
  margin-top: 20px;
}

.value {
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border-bottom: 1px solid #ddd;
  padding: 6px 8px;
  text-align: right;
}

th {
  background: #f7f7f7;
}

th:first-child,
td:first-child {
  text-align: left;
}

/* 利益：赤、損失：青（あなた仕様） */
.plus  { color: #d33; }
.minus { color: #1e6bd6; }

.error {
  color: red;
  margin-top: 16px;
}

/* ファイル選択UI */
.drop-area {
  border: 2px dashed #7aa7ff;
  border-radius: 14px;
  padding: 40px;
  margin-top: 20px;
  text-align: center;
  cursor: pointer;
  background: #f8fbff;
  transition: background .2s, border-color .2s;
}

.drop-area:hover {
  background: #eef4ff;
}

.drop-area.dragover {
  background: #e0ebff;
  border-color: #3f6cff;
}

.drop-inner .icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.drop-inner .text {
  font-size: 14px;
  color: #333;
}

.more-btn {
  margin: 8px 0 24px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
}
.more-btn:hover {
  background: #eee;
}

.hidden {
  display: none;
}

.more-row {
  text-align: center;
  color: #666;
  cursor: pointer;
  background: #fafafa;
}

.more-row:hover {
  background: #f0f0f0;
}

.more-row td {
  text-align: center !important;
}

td:first-child,
th:first-child {
  text-align: right;
  color: #999;
  width: 3em;
}

.paged-table td:nth-child(2),
.paged-table th:nth-child(2) {
  text-align: left;
}
