:root {
  --orange: #ff7a1a;
  --orange-strong: #e8620a;
  --orange-soft: #fff1e6;
  --bg: #fffaf5;
  --surface: #ffffff;
  --text: #2b2118;
  --muted: #6e6258;
  --border: #f0e2d6;
  --link: #c9540a;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(120, 60, 10, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --orange-soft: #3a2415;
    --bg: #17120e;
    --surface: #221a14;
    --text: #f5ece4;
    --muted: #b8a99b;
    --border: #3a2d23;
    --link: #ffa35c;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.skip-link:focus { left: 16px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ヘッダー */
.site-header { padding: 16px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }

/* ヒーロー */
.hero { padding-top: 32px; padding-bottom: 48px; text-align: center; }
.hero-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 20px 0 4px; letter-spacing: 0.02em; }
.hero .yomi { color: var(--muted); margin: 0; font-size: 0.95rem; }
.catch {
  font-size: clamp(1.25rem, 4.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 24px auto 12px;
  max-width: 22em;
}
.lead { color: var(--muted); max-width: 34em; margin: 0 auto; }
.hero-goat { width: min(280px, 70vw); margin: 28px auto 0; display: block; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #000; color: #fff;
  text-decoration: none; font-weight: 700;
  min-height: 48px;
}
.badge svg { width: 22px; height: 22px; fill: currentColor; }
.badge small { display: block; font-size: 0.7rem; font-weight: 400; line-height: 1.2; }
.badge span { line-height: 1.2; text-align: left; }
@media (prefers-color-scheme: dark) {
  .badge { background: #fff; color: #000; }
}
.note { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

/* 機能 */
.section { padding-top: 40px; padding-bottom: 40px; }
.section h2 { text-align: center; font-size: 1.5rem; margin: 0 0 24px; }
.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .emoji {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--orange-soft); font-size: 1.4rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: var(--orange-soft); border-radius: 999px;
  padding: 6px 14px; font-size: 0.9rem; font-weight: 600;
}

.plan { text-align: center; }
.plan p { color: var(--muted); margin: 0.4em 0; }

/* 文書ページ */
.doc { padding-top: 16px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(1.6rem, 5vw, 2rem); margin: 8px 0 4px; }
.doc .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.doc h2 {
  font-size: 1.2rem; margin: 36px 0 10px;
  padding-left: 12px; border-left: 5px solid var(--orange); line-height: 1.5;
}
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 12px 0; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--orange-soft); }
.table-scroll { overflow-x: auto; }

.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 0 18px; margin: 12px 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: inside;
}
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.faq details > *:not(summary) { margin-top: 0; }
.faq details > :last-child { padding-bottom: 14px; }

.contact {
  background: var(--orange-soft); border-radius: var(--radius); padding: 20px 22px; margin-top: 32px;
}
.contact h2 { margin-top: 0; border: 0; padding: 0; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px; margin-top: 24px;
  color: var(--muted); font-size: 0.9rem; text-align: center;
}
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 0; margin: 0 0 12px; }
.site-footer a { color: var(--muted); }
.site-footer a[aria-current="page"] { color: var(--text); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .hero-goat { animation: bob 3.2s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-6px); } }
}
.nowrap { display: inline-block; }
