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

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

#app-title {
  font-size: 28px;
  color: #C41E3A;
  margin: 0 0 8px 0;
}

#app-subtitle {
  font-size: 15px;
  color: #888;
  margin: 0 0 24px 0;
}

#input-area {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

#year-input {
  width: 200px;
  height: 48px;
  font-size: 18px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  text-align: center;
  box-sizing: border-box;
}

#year-input:focus {
  border-color: #C41E3A;
}

#query-btn {
  height: 48px;
  padding: 0 28px;
  font-size: 18px;
  background-color: #C41E3A;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#query-btn:hover {
  background-color: #a01830;
}

#quick-years {
  margin-bottom: 24px;
}

.quick-label {
  font-size: 13px;
  color: #999;
  display: block;
  margin-bottom: 10px;
}

#quick-year-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.quick-year-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px;
  font-size: 14px;
  background-color: #FFF8F0;
  border: 1px solid #e0d5c5;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  min-width: 64px;
}

.quick-year-btn:hover {
  border-color: #C41E3A;
  background-color: #fff0f0;
}

.quick-zodiac {
  font-size: 12px;
  color: #C41E3A;
  margin-top: 2px;
}

#result-card {
  background-color: #fff;
  border: 1px solid #f0e8d8;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.4s ease;
}

#result-card.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

#zodiac-icon {
  font-size: 72px;
  line-height: 1.2;
}

#zodiac-name {
  font-size: 32px;
  color: #C41E3A;
  font-weight: bold;
  margin: 8px 0 24px 0;
}

#zodiac-details {
  text-align: left;
  max-width: 360px;
  margin: 0 auto 24px auto;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f0e8;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 15px;
  color: #888;
}

.detail-value {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

#copy-btn {
  padding: 10px 32px;
  font-size: 15px;
  background-color: #fff;
  color: #C41E3A;
  border: 1px solid #C41E3A;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

#copy-btn:hover {
  background-color: #C41E3A;
  color: #fff;
}

#error-msg {
  color: #C41E3A;
  font-size: 15px;
  margin-bottom: 24px;
}

#error-msg.hidden {
  display: none;
}

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

#features h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
}

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

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

#scenarios h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
}

#scenarios ul {
  list-style: none;
  padding: 0;
}

#scenarios li {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  padding: 4px 0;
}

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

#FAQ h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
}

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

#FAQ dd {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin: 0 0 12px 0;
}

@media (max-width: 480px) {
  #input-area {
    flex-direction: column;
    align-items: center;
  }

  #year-input {
    width: 100%;
    max-width: 280px;
  }

  #query-btn {
    width: 100%;
    max-width: 280px;
  }

  #app-title {
    font-size: 24px;
  }

  #zodiac-icon {
    font-size: 56px;
  }

  #zodiac-name {
    font-size: 26px;
  }
}
