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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  color: #333;
  background: #fafafa;
}

header { margin-bottom: 32px; }
header h1 { font-size: 28px; }
header h1 a { color: #333; text-decoration: none; }
.subtitle { color: #666; margin-top: 4px; }

label { display: block; font-weight: bold; margin-bottom: 8px; }

textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
textarea:focus { outline: none; border-color: #4a90d9; }

button {
  margin-top: 12px;
  padding: 12px 32px;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
button:hover { background: #357abd; }

.errors {
  background: #fff0f0;
  border: 1px solid #e88;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  color: #c33;
}

section { margin-bottom: 24px; }
h2 { font-size: 20px; margin-bottom: 12px; border-bottom: 2px solid #eee; padding-bottom: 4px; }
h3 { font-size: 16px; margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eee; }
th { width: 40%; color: #666; font-weight: normal; }

.judgment {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 18px;
}
.judgment .icon { font-size: 24px; margin-right: 8px; }
.judgment .label { font-weight: bold; margin-right: 12px; }
.judgment .detail { color: #666; font-size: 14px; }

.judgment-red { background: #fff0f0; border: 2px solid #e88; }
.judgment-orange { background: #fff8f0; border: 2px solid #e8a; }
.judgment-green { background: #f0fff0; border: 2px solid #8c8; }
.judgment-blue { background: #f0f8ff; border: 2px solid #88c; }

.reference {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
}
.reference ul { padding-left: 20px; }
.reference li { margin-bottom: 4px; color: #666; }

/* Candidate points */
.candidate-points { margin-bottom: 16px; }
.property-elev { color: #666; font-size: 13px; margin-bottom: 8px; }
.candidate-points table { font-size: 13px; }
.candidate-points thead th { font-weight: bold; color: #333; border-bottom: 2px solid #ddd; }
.candidate-points td { white-space: nowrap; }
.selected-point { background: #e8f0fe; font-weight: bold; }

/* Map */
.map-section { margin-bottom: 16px; }
#map { height: 360px; border-radius: 8px; border: 1px solid #ddd; }
.pin-dot {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.pin-property { width: 16px; height: 16px; background: #e53e3e; }
.pin-selected { width: 12px; height: 12px; background: #4a90d9; }
.pin-candidate { width: 12px; height: 12px; background: #999; }

/* Recalculate */
.recalc-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.recalc-btn:hover { background: #357abd; }
.recalc-btn-map { margin-top: 6px; font-size: 11px; }
.recalc-form { display: inline; }
.manual-recalc {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 8px;
}
.manual-recalc h4 { font-size: 14px; margin-bottom: 8px; }
.manual-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.manual-form label { font-size: 13px; margin-bottom: 0; }
.manual-form input[type="number"] {
  width: 120px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* Warnings */
.warnings {
  background: #fffbe6;
  border: 2px solid #f0c040;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.warnings p {
  color: #8a6d00;
  font-size: 14px;
  margin-bottom: 4px;
}
.warnings p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: #4a90d9;
}

/* LP */
.hero { text-align: center; padding: 48px 0 32px; }
.hero h2 { font-size: 28px; margin-bottom: 12px; border: none; }
.hero-sub { color: #666; margin-bottom: 24px; line-height: 1.6; }

.cta-button {
  display: inline-block;
  padding: 14px 36px;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.cta-button:hover { background: #357abd; }

.steps { margin-bottom: 32px; }
.step-list { display: flex; gap: 16px; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 180px;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
}
.step-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: #4a90d9;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 8px;
}
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: #666; }

.pricing { text-align: center; }
.plan-list { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.plan {
  flex: 0 1 240px;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}
.plan-paid { border-color: #4a90d9; border-width: 2px; }
.plan h3 { font-size: 16px; margin-bottom: 8px; }
.plan-price { font-size: 28px; font-weight: bold; margin-bottom: 8px; }
.plan p { color: #666; font-size: 14px; }

/* Paywall */
.paywall { text-align: center; padding: 48px 0; }
.paywall h2 { border: none; margin-bottom: 16px; }
.paywall p { color: #666; margin-bottom: 24px; }
.paywall-note { font-size: 13px; color: #999; margin-top: 16px; }

/* Legal */
.legal-table th { width: 30%; vertical-align: top; }
.legal-table td { line-height: 1.6; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 12px;
}
footer a { color: #999; }
.disclaimer { color: #b0b0b0; font-style: italic; margin-bottom: 4px; }
