/* 仕事作り HP MVP — 共通スタイル
   方針: スマホファースト / 一画面に一つのメッセージ / 派手な動きは使わない */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e3ded6;
  --text: #232019;
  --muted: #5c564c;
  --accent: #1f5f4f;
  --accent-weak: #eef4f1;
  --focus: #b4531f;
  --maxw: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --surface: #201e1b;
    --border: #38342e;
    --text: #ece8e1;
    --muted: #b0a99d;
    --accent: #7fc4ae;
    --accent-weak: #1e2a26;
    --focus: #f0a06a;
  }
}

* { box-sizing: border-box; }

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.15rem; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 { line-height: 1.5; letter-spacing: 0.01em; }
h1 { font-size: 1.65rem; margin: 0 0 1.1rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.9rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1.1rem; }
ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
li { margin-bottom: 0.5rem; }
strong { font-weight: 700; }

/* ── ヘッダー / フッター ───────────────────────── */
.site-head {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
}
.site-head a {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.site-foot {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-foot ul { list-style: none; padding: 0; margin: 0 0 0.9rem; }
.site-foot li { margin-bottom: 0.35rem; }

/* ── セクション ─────────────────────────────── */
section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }

.hero { padding: 3rem 0 2.75rem; }
.hero p:last-of-type { margin-bottom: 1.6rem; }
.lead { font-size: 1.02rem; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-weak);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* ── CTA ────────────────────────────────────── */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  line-height: 1.4;
}
.cta:hover { opacity: 0.9; }

.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ── カード ─────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.15rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* ── 進め方のステップ ───────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  padding-left: 2.35rem;
  position: relative;
  margin-bottom: 1.3rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin-bottom: 0; }

/* ── 記事メタ ───────────────────────────────── */
.meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.meta li { margin-bottom: 0.2rem; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.4rem;
}
.note p:last-child { margin-bottom: 0; }

.steps-inline { padding-left: 1.2rem; }
.steps-inline li { margin-bottom: 0.7rem; }

.back { font-size: 0.9rem; }

@media (min-width: 40rem) {
  body { font-size: 18px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 4rem 0 3.25rem; }
  section { padding: 3rem 0; }
}

/* ── LP型の適用（Hero を「誰に・何を・次の一歩」で組む） ── */
.audience {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { font-size: 1.05rem; margin-bottom: 1.4rem; }

.promises {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  border-top: 1px solid var(--border);
}
.promises li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.6rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}
.promises li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.25rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero-cta { margin-bottom: 0; }

/* 一本調子を避けるため、セクションに濃淡をつける */
section.alt {
  background: var(--surface);
}
section.soudan {
  background: var(--accent-weak);
}


/* ── タップ領域の確保（監査指摘：22px / 18px は WCAG 2.5.8 の24px未満） ── */
.more,
.site-foot a,
.back a {
  display: inline-block;
  padding: 0.7rem 0;
  line-height: 1.6;
}
.site-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 0.5rem;
}
.site-foot li { margin-bottom: 0; }

/* できること一覧 */
.can { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.can li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.6rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.can li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.15rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}
.breadth {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ── 記事内の記入例ブロック ─────────────────── */
.tpl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin: 0 0 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-x: auto;
}
