html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "游ゴシック体", "YuGothic", sans-serif;
  background-color: #f7f7f7;
  color: #222;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  text-align: center;
}

.title {
  font-size: 32px;
  margin-bottom: 32px;
  font-weight: 500;
}

.count {
  font-size: 40px;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.goal-message {
  font-size: 18px;
  margin-bottom: 24px;
  min-height: 24px;
}

.drink-button {
  display: inline-block;
  padding: 18px 60px;
  border-radius: 12px;
  border: 1px solid #aaa;
  font-size: 20px;
  background-color: #e3e3e3;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
}

.drink-button:hover {
  background-color: #ededed;
}

.drink-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.note {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.history-section {
  margin-top: 80px;
  text-align: left;
}

.subtitle {
  font-size: 22px;
  margin-bottom: 12px;
}

.avg-text {
  font-size: 18px;
  margin-bottom: 16px;
}

.graph {
  margin-top: 8px;
  margin-bottom: 12px;
}

.graph-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}

.graph-label {
  width: 120px;
}

.graph-bar-wrapper {
  flex: 1;
  background-color: #e6e6e6;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.graph-bar {
  height: 100%;
  background-color: #999;
  width: 0;
  transition: width 0.3s ease;
}

.graph-value {
  width: 40px;
  text-align: right;
  margin-left: 8px;
}

.graph-note {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* 目標達成時の色 */
.count.goal-reached {
  color: #d60000;
}
.goal-message.goal-reached {
  color: #d60000;
  font-weight: 600;
}
