* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #333;
  background: #f8f9fa;
  padding: 16px;
}

#app {
  max-width: 640px;
  margin: 0 auto;
}

h1 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lead {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.control-group {
  flex: 1;
}

.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #555;
}

.control-group select,
.control-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 32px;
}

.input-wrap .unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #888;
}

#result-count {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

thead {
  background: #2c5f8a;
  color: #fff;
}

th {
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

td {
  padding: 8px 6px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

tr:last-child td {
  border-bottom: none;
}

.col-rank { width: 30px; text-align: center; }
.col-name { min-width: 100px; }
.col-type { width: 56px; font-size: 11px; color: #888; }
.col-plan { width: 120px; font-size: 12px; color: #666; }
.col-fee { width: 90px; text-align: right; font-weight: 700; }

.row-free {
  background: #f0faf0;
}

.fee-free {
  color: #2a8d2a;
  font-weight: 700;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 400;
}

.tag-na { background: #f0f0f0; color: #999; }
.tag-contact { background: #fff3e0; color: #c77700; }
.tag-unknown { background: #f0f0f0; color: #999; }
.tag-variable { background: #e8f0fe; color: #3367d6; }

.note {
  font-size: 11px;
  color: #999;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .controls { flex-direction: column; gap: 8px; }
  .col-type { display: none; }
  th.col-type { display: none; }
}
