/* ===== リセット＆基本 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:       #1E7A48;
  --green-dark:  #155C34;
  --green-light: #EDF7F1;
  --text:        #1C1C1C;
  --text-muted:  #5A5A5A;
  --bg:          #FFFFFF;
  --bg-warm:     #F9F8F5;
  --border:      #E0D8CC;
  --red:         #C0392B;
  --radius:      8px;
  --max-w:       680px;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family:
    'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    'Meiryo', 'メイリオ',
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.accent { color: var(--green); }

/* ===== ヘッダー ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.header-cta:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

/* ===== ボタン ===== */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  line-height: 1.4;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--green-dark);
  text-decoration: none;
}

.btn-full {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem;
}

/* ===== セクション共通 ===== */
section {
  padding: 2.75rem 0;
}

section h2 {
  font-size: 1.45rem;
  line-height: 1.5;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.section-tag {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ===== ヒーロー ===== */
.hero {
  background: var(--bg-warm);
  text-align: center;
  padding: 3.5rem 0 3rem;
}

.hero .section-tag {
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 1.85rem;
  line-height: 1.45;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== 悩み ===== */
.pain {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pain-list li {
  padding: 0.75rem 1rem 0.75rem 1.1rem;
  background: var(--bg-warm);
  border-left: 4px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

/* ===== 約束 ===== */
.promise {
  background: var(--green-light);
}

.promise h2 {
  margin-bottom: 1.1rem;
}

.promise p {
  margin-bottom: 1rem;
}
.promise p:last-child { margin-bottom: 0; }

/* ===== プロフィール ===== */
.profile {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.profile-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.profile-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 1.1rem;
  /* h2のデフォルト上書き */
  margin-top: 0;
}

.profile-body p {
  margin-bottom: 1rem;
}
.profile-body p:last-child { margin-bottom: 0; }

/* ===== 講座の内容 ===== */
.offer {
  background: var(--bg-warm);
}

.offer-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.step-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  background: var(--green-light);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.step p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.offer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--green);
  padding-left: 0.85rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.offer-cta { text-align: center; }

/* ===== 登録フォーム ===== */
.register {
  background: var(--green-light);
}

.register h2 { margin-bottom: 0.5rem; }

.register-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.optional {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  background: #E8E4DC;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.25rem;
}

.required {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
  background: #FDECEA;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.25rem;
}

.field input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.field input:focus {
  outline: none;
  border-color: var(--green);
}

.field-note {
  font-size: 0.82rem;
  color: var(--red);
  margin-top: 0.2rem;
}

.consent-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 送信後のメッセージ（第2段で差し替え） */
.form-sent {
  margin-top: 1.5rem;
  text-align: center;
}

.form-sent-msg {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== フッター ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  background: var(--bg-warm);
}

.footer-name {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== タブレット以上 ===== */
@media (min-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  section h2 {
    font-size: 1.65rem;
  }

  .profile-name {
    font-size: 2.4rem;
  }
}

/* ===== 第2段階で追加 ===== */

/* ボット対策の枠 */
.turnstile {
  margin: 1.25rem 0 0.25rem;
  min-height: 65px;
}

/* エラー表示（読み手は50〜60代。小さすぎる字にしない） */
.field-note {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  background: #FDECEA;
  border-left: 4px solid var(--red);
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* 送信中のボタン */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ===== お知らせページ（thanks / confirmed / unsubscribed） ===== */
.msg-page {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.msg-mark {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.msg-page h1 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.msg-page p {
  margin-bottom: 1rem;
}

.msg-box {
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: left;
  margin: 1.75rem 0;
}

.msg-box h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.msg-box ul {
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.msg-box li { margin-bottom: 0.4rem; }

.msg-ng {
  background: #FDECEA;
  border-color: var(--red);
}

/* ===== 読み物ページ（プライバシーポリシー） ===== */
.doc {
  padding: 3rem 0 4rem;
}

.doc h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.doc .doc-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--green-light);
}

.doc p, .doc li {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.doc ul, .doc ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.doc dl {
  margin-bottom: 1rem;
}

.doc dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

.doc dd {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--green-light);
}

/* ===== 作ったもの（/works） ===== */
.work {
  margin: 2.6rem 0;
  padding: 1.6rem 1.4rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.work .work-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--green-dark);
  background: var(--green-light);
  border-radius: 999px;
  padding: .15rem .7rem;
  margin-bottom: .6rem;
}
.work h2 {
  margin: 0 0 .6rem;
  font-size: 1.25rem;
  line-height: 1.55;
}
.work .work-lead { margin-bottom: .9rem; }
.work ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.work li { margin-bottom: .35rem; }
.work .work-meta {
  margin: 0;
  padding-top: .9rem;
  border-top: 1px dashed var(--border);
  font-size: .92rem;
}
.work .work-meta dt {
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: .5rem;
}
.work .work-meta dd { margin: 0 0 .2rem; }
.work-sep { border: 0; border-top: 1px solid var(--border); margin: 2.8rem 0 2rem; }
.work-cta {
  margin-top: 2rem;
  padding: 1.6rem 1.4rem;
  background: var(--green-light);
  border-radius: var(--radius);
  text-align: center;
}
.work-cta p { margin-bottom: 1rem; }
.work-cta p:last-child { margin-bottom: 0; }
