/* ==========================================================
   溜め・バリア・攻撃 — 紹介・サポートのページ
   世界観は「平成の昼休み」：黒板の緑・チョーク・画用紙。外のフォントや画像は読み込まない（端末の書体だけ）。
   色は WCAG の本文 4.5 以上。リンクは下線で示す（色だけに頼らない）。
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2C5846;      /* 黒板 */
  --green-d: #20412F;    /* 黒板（濃い） */
  --green-l: #3A6B56;    /* 黒板（明るい） */
  --chalk: #F4F1E6;      /* チョーク */
  --chalk-dim: #C9D3C9;  /* 薄いチョーク */
  --yellow: #FADE6E;     /* 黄色のチョーク */
  --yellow-edge: #C9A834;
  --paper: #FBF6E6;      /* 画用紙 */
  --paper-edge: #D8CDAE;
  --ink: #282422;
  --sub: #6A6152;
  --you: #1F6FA8;
  --opp: #B4441A;
  --wood: #7A5A36;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #20412F;
    --paper-edge: #3A6B56;
    --ink: #F4F1E6;
    --sub: #C9D3C9;
  }
}

html { scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.7; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
.nb { white-space: nowrap; display: inline-block; }

.container { width: min(1000px, 100% - 32px); margin: 0 auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--green-d); color: var(--chalk);
  border-bottom: 4px solid var(--wood);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.lang-toggle { display: flex; gap: 4px; }
.lang-btn {
  min-width: 44px; min-height: 44px; padding: 0 10px;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  color: var(--chalk); background: transparent;
  border: 2px solid var(--chalk-dim); border-radius: 8px; cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow-edge); }

/* ---------- ヒーロー（黒板） ---------- */
.hero { background: var(--green); color: var(--chalk); padding: 56px 0 64px; }
.hero-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--yellow); margin-bottom: 14px; }
.hero-title {
  font-size: clamp(28px, 6.4vw, 48px); line-height: 1.4; font-weight: 800; margin-bottom: 20px;
  text-wrap: balance;
}
.hero-sub { max-width: 640px; color: var(--chalk); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 6px 18px; border-radius: var(--radius);
  background: var(--chalk-dim); color: #282422; border: 2px solid #D8CDAE;
  line-height: 1.3; text-decoration: none;
}
.store-badge small { font-size: 11px; }
.store-badge strong { font-size: 16px; }
.btn-main {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px;
  background: var(--yellow); color: #282422; font-weight: 800; text-decoration: none;
  border: 2px solid #282422; border-radius: var(--radius); box-shadow: 0 5px 0 var(--yellow-edge);
}
.btn-main:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--yellow-edge); }
.hero-note { font-size: 14px; color: var(--chalk-dim); }

/* ---------- 節 ---------- */
.section { padding: 56px 0; }
.section-label { font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--sub); margin-bottom: 8px; }
.section-title { font-size: clamp(22px, 4.6vw, 32px); line-height: 1.5; font-weight: 800; margin-bottom: 28px; text-wrap: balance; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--paper-edge); border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--paper-edge); padding: 18px 18px 20px;
}
.card h3 { font-size: 17px; line-height: 1.5; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--sub); }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 10px; margin-bottom: 8px; border-radius: 6px; border: 2px solid #282422; background: var(--yellow); color: #282422; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  content: counter(s); flex: none; width: 34px; height: 34px; margin-top: 2px;
  display: grid; place-items: center; font-weight: 800; color: #282422;
  background: var(--yellow); border: 2px solid #282422; border-radius: 50%;
}
.steps strong { display: block; }
.steps span { color: var(--sub); font-size: 15px; }

.noads-box {
  background: var(--green); color: var(--chalk); border: 4px solid var(--wood); border-radius: var(--radius);
  padding: 24px 22px;
}
.noads-box h3 { font-size: 20px; margin-bottom: 10px; color: var(--yellow); }
.noads-box ul { margin: 10px 0 10px 1.2em; }
.noads-box li { margin: 4px 0; }
.noads-box p { color: var(--chalk); }
.noads-box .small { font-size: 14px; color: var(--chalk-dim); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 2px solid var(--paper-edge); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 14px 16px; min-height: 44px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋"; display: inline-block; width: 1.4em; font-weight: 800; }
.faq details[open] summary::before { content: "－"; }
.faq .answer { padding: 0 16px 16px 2.4em; color: var(--sub); font-size: 15px; }
.faq .answer a { color: var(--ink); }

.contact { margin-top: 28px; padding: 18px 20px; border: 2px dashed var(--paper-edge); border-radius: var(--radius); }
.contact h3 { font-size: 17px; margin-bottom: 4px; }
.contact p { font-size: 15px; color: var(--sub); }
.contact a { color: var(--ink); font-weight: 700; }

/* ---------- フッター ---------- */
.site-footer { background: var(--green-d); color: var(--chalk); padding: 32px 0 40px; border-top: 4px solid var(--wood); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; }
.footer-links a { display: inline-block; min-height: 44px; line-height: 44px; }
.footer-note { font-size: 13px; color: var(--chalk-dim); max-width: 720px; }

@media (max-width: 480px) {
  .hero { padding: 36px 0 44px; }
  .section { padding: 40px 0; }
  .brand span { font-size: 15px; }
}
