/* 手書きで漢字脳トレ — サイト共通スタイル。
   アプリのテイスト: 紙(白)×墨(#1C1C1C)、差し色の朱(#D9442F)、明朝見出し+丸ゴシック本文、マス目モチーフ。 */
:root {
  --paper: #ffffff;
  --paper-2: #f7f6f1;   /* やや生成りの紙 */
  --ink: #1c1c1c;
  --sub: #6e6e6e;
  --line: #dadad5;
  --target: #d9442f;    /* 朱 (❓マスの色) */
  --ok: #3e9a5c;
  --gold: #f2b33d;
  --maxw: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.mincho {
  font-family: "Hiragino Mincho ProN", "Noto Serif JP", "YuMincho", serif;
}

a { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー ===== */
.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav a { margin-left: 18px; text-decoration: none; color: var(--sub); font-weight: 700; font-size: 14px; }
.nav a:hover { color: var(--ink); }

/* ===== ヒーロー (生成りの紙 + 手描き○) =====
   スクショと同じテイスト: ドリル風グリッドや明朝は使わず、生成り紙 + 丸ゴシック。 */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}
.hero .wrap { position: relative; text-align: center; padding: 64px 20px 56px; }
/* 手描きの太い赤丸 (Lottie brush_circle と同じ筆致) を右上のアクセントに */
.hero .brush-circle {
  position: absolute;
  top: 18px; right: 2%;
  width: clamp(96px, 16vw, 168px);
  height: clamp(96px, 16vw, 168px);
  transform: rotate(-6deg);
  pointer-events: none;
}
.hero img.logo { position: relative; width: min(560px, 86%); height: auto; }
.hero .tagline {
  margin: 22px auto 0; max-width: 620px;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 20px; color: var(--ink); font-weight: 800; line-height: 1.7;
}
.hero .sub { margin-top: 8px; color: var(--sub); font-size: 15px; }

/* ===== ボタン / バッジ ===== */
.cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 800; padding: 13px 26px; border-radius: 999px;
  border: 2px solid var(--ink);
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ===== セクション ===== */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section-title {
  text-align: center; font-size: 26px; font-weight: 800; margin: 0 0 6px;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.section-title .badge {
  display: inline-block; color: var(--target); border: 2px solid var(--target);
  border-radius: 8px; font-size: 14px; padding: 2px 8px; margin-right: 10px; vertical-align: middle;
}
.section-lead { text-align: center; color: var(--sub); margin: 0 0 34px; }

/* ===== 特長グリッド ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px;
  background: var(--paper);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--sub); font-size: 14px; }

/* ===== 使い方 (3ステップ) ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { text-align: center; }
.step .no {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 999px;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}

/* ===== お問い合わせ ===== */
.contact { text-align: center; }
.contact a.mail { font-weight: 800; font-size: 18px; text-decoration: none; border-bottom: 2px solid var(--target); }

/* ===== フッター ===== */
footer { padding: 30px 0 50px; text-align: center; color: var(--sub); font-size: 13px; }
footer a { color: var(--sub); margin: 0 10px; }

/* ===== 法務ページ (privacy 等) ===== */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: 26px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.legal h2 { font-size: 18px; margin-top: 34px; border-left: 5px solid var(--target); padding-left: 12px; }
.legal p, .legal li { color: #333; font-size: 15px; }
.legal .updated { color: var(--sub); font-size: 13px; }

/* ===== レスポンシブ ===== */
@media (max-width: 720px) {
  .features, .steps { grid-template-columns: 1fr; }
  .nav a { margin-left: 12px; }
  .hero .wrap { padding: 44px 20px 40px; }
}
