:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --green: #58cc02;
  --green-dark: #46a302;
  --cream: #fffbeb;
  --ink: #292524;
  --muted: #57534e;
  --line: #e7e5e4;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fffdf7;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber-dark); font-weight: 700; }
a:hover { color: var(--orange); }

.hero {
  background: linear-gradient(135deg, var(--amber) 0%, var(--orange) 55%, var(--amber-dark) 100%);
  color: #fff;
  padding: 28px 20px 56px;
}

.hero-inner, .wrap { max-width: 820px; margin: 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; }
.brand:hover { color: #fff; }

.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  margin: 26px 0 8px;
}
.hero p { margin: 0; opacity: .95; font-size: 16px; }

.wrap { padding: 0 16px 48px; margin-top: -32px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px clamp(18px, 4vw, 36px);
  box-shadow: 0 2px 10px rgba(41, 37, 36, .05);
  margin-bottom: 16px;
}

h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 28px 0 8px;
  color: var(--ink);
}
.card > h2:first-child { margin-top: 0; }

h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 20px 0 4px;
}

p, li { font-size: 15.5px; color: #44403c; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.meta { font-size: 13px; color: var(--muted); }

.toc {
  background: var(--cream);
  border: 1px solid #fde68a;
  border-radius: 18px;
  padding: 14px 20px;
}
.toc ol { margin: 6px 0 0; }
.toc a { font-weight: 600; text-decoration: none; }

.note {
  background: var(--cream);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: 'Fredoka', sans-serif; font-weight: 600; background: #fafaf9; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: var(--amber);
  border-bottom: 4px solid var(--amber-dark);
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.05); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn.green { background: var(--green); border-bottom-color: var(--green-dark); }
.btn.outline { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom: 4px solid var(--line); }
.btn.outline:hover { color: var(--ink); }
.btn.danger { background: #ef4444; border-bottom-color: #b91c1c; }

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 10px 0;
  background: #fff;
}
details[open] { background: #fffdf7; }
summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: '＋ '; color: var(--amber-dark); }
details[open] summary::before { content: '－ '; }
details p { margin: 8px 0 0; }

footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 16px 40px;
}
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
footer a { font-weight: 700; text-decoration: none; }
