:root {
  --matcha: #6f8b58;
  --matcha-dark: #4d6240;
  --bg: #f8f6ef;
  --card: #ffffff;
  --text: #2f352c;
  --muted: #6d7468;
  --border: #ddd7c9;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Headings */
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.hero {
  padding: 40px 0;
  text-align: center;
}

.layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
}

.form-box,
.results-box {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

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

input {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
   box-sizing: border-box;
}

.buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

button {
  font-family: 'Fraunces', serif;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

button[type="submit"] {
  background: var(--matcha);
  color: white;
}

button:hover {
  background: var(--matcha-dark);
  color: white;
}

.section {
  margin-bottom: 20px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.error {
  display: none;
  color: red;
  margin-top: 10px;
}

.cta-wrapper {
  margin-top: 18px;
}

.cta-link {
  display: inline-block;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-size: 0.95rem;
  color: var(--matcha-dark);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.cta-link:hover {
  background: var(--matcha);
  color: white;
  border-color: var(--matcha);
}

.disclaimer ul {
  padding:0 20px;
  font-size: 0.95rem;
}

.mini-footer {
  margin-top: 48px;
  padding: 24px 16px 32px;
  text-align: center;
}

.mini-footer p {
  margin: 0;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

.mini-footer a {
  color: var(--matcha-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 98, 64, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mini-footer a:hover {
  color: var(--matcha);
  border-bottom-color: var(--matcha);
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
}