/* nisa-start ゾーン専用スタイル
   くらしの教養ノート本体とは別ルール:グローバルナビを持たず、出口は「次へ」1つだけ。 */

:root {
  --ns-primary: #1e3a8a;
  --ns-primary-dark: #172554;
  --ns-accent: #f97316;
  --ns-accent-dark: #ea580c;
  --text: #1f2937;
  --text-sub: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --ok: #16a34a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 2;
  font-size: 17px;
  padding-bottom: 88px; /* 固定フッターぶんの余白 */
}

a { color: var(--ns-primary); }

/* 広告表記(ステマ規制対応) */
.ad-disclosure {
  background: #eef2f7;
  color: var(--text-sub);
  font-size: 12px;
  text-align: center;
  padding: 4px 8px;
}

/* ヘッダー:ナビは置かない。親サイトへ戻る導線のみ */
.ns-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.ns-header .inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ns-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.ns-logo span { color: var(--ns-primary); }
.ns-back { font-size: 12px; color: var(--text-sub); text-decoration: none; }

/* レイアウト */
.ns-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
@media (min-width: 720px) {
  .ns-main {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 24px auto 40px;
    padding: 36px 40px 44px;
  }
}

/* 進捗バー */
.ns-progress { margin-bottom: 24px; }
.ns-dots { display: flex; gap: 6px; margin-bottom: 6px; }
.ns-dots span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
}
.ns-dots span.done { background: var(--ns-primary); }
.ns-dots span.current { background: var(--ns-accent); }
.ns-progress-label { font-size: 12px; color: var(--text-sub); }

/* 見出し */
.ns-main h1 {
  font-size: 25px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.ns-time {
  display: inline-block;
  background: #e0e7ff;
  color: var(--ns-primary-dark);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 14px;
  margin-bottom: 20px;
}
.ns-main h2 {
  font-size: 19px;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 5px solid var(--ns-primary);
  line-height: 1.6;
}
.ns-main p { margin-bottom: 16px; }

/* このSTEPですること */
.ns-do {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 700;
}

/* 手順 */
.ns-howto { counter-reset: ns-step; list-style: none; margin: 0 0 24px; }
.ns-howto > li {
  counter-increment: ns-step;
  position: relative;
  padding: 0 0 18px 44px;
  border-left: 2px solid var(--border);
  margin-left: 14px;
}
.ns-howto > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.ns-howto > li::before {
  content: counter(ns-step);
  position: absolute;
  left: -15px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ns-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

/* 画面に出てくる文字 */
.ns-screen {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.95em;
  font-weight: 700;
  white-space: nowrap;
}

/* つまずきポイント */
.ns-stuck {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 16px;
}
.ns-stuck strong { color: #b45309; display: block; margin-bottom: 4px; }

/* CTA */
.ns-cta {
  background: #fff7ed;
  border: 2px solid var(--ns-accent);
  border-radius: 12px;
  padding: 24px 20px;
  margin: 28px 0;
  text-align: center;
}
.ns-cta p { font-size: 15px; margin-bottom: 14px; }
.ns-cta-btn {
  display: inline-block;
  background: var(--ns-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ns-accent-dark);
}
.ns-cta-btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ns-accent-dark); }
.ns-cta-note { font-size: 12px; color: var(--text-sub); margin: 10px 0 0; line-height: 1.8; }

/* トップページ */
.ns-hero {
  background: linear-gradient(135deg, var(--ns-primary) 0%, var(--ns-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px 44px;
}
.ns-hero h1 { font-size: 26px; line-height: 1.7; margin-bottom: 16px; }
.ns-hero p { font-size: 16px; opacity: 0.92; max-width: 480px; margin: 0 auto 24px; }
.ns-start-btn {
  display: inline-block;
  background: var(--ns-accent);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  padding: 18px 52px;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ns-accent-dark);
}
.ns-hero .ns-hero-note { font-size: 13px; margin: 16px 0 0; opacity: 0.8; }

/* 続きから */
.ns-resume {
  display: none;
  background: #ecfdf5;
  border: 2px solid #6ee7b7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
  text-align: center;
}
.ns-resume.show { display: block; }
.ns-resume p { font-size: 15px; margin-bottom: 12px; }
.ns-resume a {
  display: inline-block;
  background: var(--ok);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
}

/* STEP一覧 */
.ns-steplist { list-style: none; margin: 0 0 28px; }
.ns-steplist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.ns-steplist li:last-child { border-bottom: none; }
.ns-steplist .num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e0e7ff;
  color: var(--ns-primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}
.ns-steplist li.done .num { background: var(--ok); color: #fff; }
.ns-steplist .name { flex: 1; }
.ns-steplist .time { font-size: 13px; color: var(--text-sub); white-space: nowrap; }

/* 次へ(固定フッター) */
.ns-next-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
  z-index: 20;
}
.ns-next-bar .inner { max-width: 680px; margin: 0 auto; }
.ns-next-btn {
  display: block;
  width: 100%;
  background: var(--ns-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  font-family: inherit;
}
.ns-next-btn:hover { background: var(--ns-primary-dark); }
.ns-prev {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 8px;
  text-decoration: none;
}

/* 免責 */
.ns-note {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.9;
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 16px;
}

/* フッター */
.ns-footer {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 12px;
  text-align: center;
  padding: 28px 16px;
}
.ns-footer a { color: #cbd5e1; margin: 0 8px; }
.ns-footer .copy { margin-top: 12px; color: #64748b; }
