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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #222;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 600px;
}

.input-section {
  margin-bottom: 30px;
  text-align: center;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #666;
  font-weight: 700;
}

.input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

input[type="number"] {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 48px;
  font-weight: 700;
  border: none;
  border-bottom: 3px solid #222;
  width: 120px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

input[type="number"]:focus {
  border-bottom-color: #555;
}

.unit {
  font-size: 24px;
  font-weight: 700;
}

.note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.caffeine-limit {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  background: #fafafa;
}

.limit-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.limit-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.limit-item {
  display: flex;
  gap: 5px;
  align-items: baseline;
}

.limit-label {
  font-size: 12px;
  color: #666;
}

.limit-value {
  font-size: 16px;
  font-weight: 700;
}

.current-intake .limit-value {
  color: #000;
}

.results {
  display: grid;
  gap: 15px;
}

.result-card {
  border: 2px solid #222;
  padding: 20px;
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 15px;
  align-items: center;
  transition: transform 0.2s;
}

.result-card:hover {
  transform: translateY(-2px);
}

.period {
  font-weight: 700;
  font-size: 16px;
}

.stat {
  text-align: center;
}

.value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.label {
  font-size: 12px;
  color: #666;
}

@media (max-width: 600px) {
  .result-card {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  
  .period {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
  }
}