html, body, main, header, footer {
  padding: 0px;
  margin: 0px;
}

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

#app-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 8px;
}

#app-desc {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

#input-area {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.input-group {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #1a73e8;
}

.input-field {
  flex: 1;
  padding: 12px 16px;
  font-size: 18px;
  border: none;
  outline: none;
  box-sizing: border-box;
  min-width: 0;
}

.input-field::-webkit-outer-spin-button,
.input-field::-webkit-inner-spin-button {
  opacity: 1;
}

.input-unit {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #888;
  background: #f5f7fa;
  white-space: nowrap;
  flex-shrink: 0;
}

#result-area {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.result-card {
  flex: 1;
  min-width: 200px;
  background: #f5f7fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.result-card:nth-child(1) {
  background: #e8f0fe;
}

.result-card:nth-child(2) {
  background: #fef3e2;
}

.result-card:nth-child(3) {
  background: #e8f5e9;
}

.result-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.result-value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.result-card:nth-child(1) .result-value {
  color: #1a73e8;
}

.result-card:nth-child(2) .result-value {
  color: #e68a2e;
}

.result-card:nth-child(3) .result-value {
  color: #2e7d32;
}

.result-unit {
  display: block;
  font-size: 14px;
  color: #888;
  font-weight: 500;
}

#__fork {
  text-align: center;
  margin-top: 24px;
}

#__fork button {
  padding: 10px 24px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

#__fork button:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}

#features,
#scenarios,
#FAQ {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

#features h2,
#scenarios h2,
#FAQ h2 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

#features p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

#scenarios ul {
  padding-left: 20px;
}

#scenarios li {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 6px;
}

#FAQ dl {
  margin: 0;
}

#FAQ dt {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-top: 16px;
  margin-bottom: 6px;
}

#FAQ dd {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-left: 0;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  #app-title {
    font-size: 22px;
  }

  #input-area {
    flex-direction: column;
  }

  #result-area {
    flex-direction: column;
  }

  .result-value {
    font-size: 28px;
  }
}
