/* 会員サイト 共通スタイル — 配色はブランドシート（nonpro.md）。外部フォント・画像なし */
:root {
  --main: #d96589;
  --main-deep: #b94c70;
  --sub: #87aede;
  --bg: #faf6f7;
  --paper: #fffdfd;
  --text: #545454;
  --muted: #8a7f83;
  --line: #ecdfe4;
  --ok: #4f9d7a;
  --warn: #c9892e;
  --shadow: 0 6px 20px rgba(217, 101, 137, 0.10);
  --radius: 10px;
  --w: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: clamp(15px, 1vw + 12px, 17px);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--main-deep); text-underline-offset: 2px; }
a:hover { color: var(--main); }
:focus-visible { outline: 3px solid var(--sub); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(20px, 2.2vw + 12px, 28px); }
h2 { font-size: clamp(17px, 1.4vw + 12px, 21px); padding-left: .6em; border-left: 4px solid var(--main); }
h3 { font-size: 1.05em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-size: .92em; }
.small { font-size: .88em; }
.hidden { display: none !important; }

/* ヘッダー */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  max-width: var(--w); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.brand { font-weight: 700; color: var(--main-deep); text-decoration: none; font-size: 1.02em; margin-right: auto; }
.brand:hover { color: var(--main); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button {
  font: inherit; font-size: .92em; color: var(--text); background: none; border: 0;
  padding: 6px 10px; border-radius: 6px; text-decoration: none; cursor: pointer;
}
.nav a[aria-current="page"] { background: #f6e4ea; color: var(--main-deep); font-weight: 700; }
.nav a:hover, .nav button:hover { background: #f6e4ea; }

/* 本文 */
main { max-width: var(--w); margin: 0 auto; padding: 20px 16px 48px; }
section { margin: 0 0 28px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.lead { font-size: 1.02em; }
.site-footer { max-width: var(--w); margin: 0 auto; padding: 16px; color: var(--muted); font-size: .85em; border-top: 1px solid var(--line); }

/* フォーム */
label { display: block; font-weight: 700; margin-bottom: 4px; }
input[type="email"], input[type="text"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #d9cfd3; border-radius: 8px; padding: 10px 12px;
}
input.code { font-size: 1.6em; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 14px; }
.btn {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 999px; padding: 11px 22px; line-height: 1.2;
  background: var(--main); color: #fff; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--main-deep); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: #fff; color: var(--main-deep); border: 1.5px solid var(--main); }
.btn.secondary:hover { background: #fbeef2; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 14px; font-size: .9em; }
.msg { padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: .95em; }
.msg.error { background: #fdecef; color: #9c2d4f; border: 1px solid #f3c2d0; }
.msg.ok { background: #e9f5ef; color: #2f6f53; border: 1px solid #bfe2cf; }
.msg.info { background: #eaf2fb; color: #38628f; border: 1px solid #c7dbf3; }

/* ログイン */
.login-wrap { max-width: 420px; margin: 6vh auto 0; }
.login-wrap h1 { text-align: left; }
.steps { display: flex; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .85em; color: var(--muted); }
.steps li[aria-current="step"] { color: var(--main-deep); font-weight: 700; }

/* 一覧 */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list .title { flex: 1 1 220px; font-weight: 700; }
.list .meta { color: var(--muted); font-size: .88em; }
.badge { display: inline-block; font-size: .78em; padding: 2px 8px; border-radius: 999px; background: #f6e4ea; color: var(--main-deep); font-weight: 700; white-space: nowrap; }
.badge.ok { background: #e9f5ef; color: #2f6f53; }
.badge.warn { background: #fbefdc; color: #8a5a12; }
.badge.gray { background: #eee9eb; color: var(--muted); }
table.plain { width: 100%; border-collapse: collapse; font-size: .95em; }
table.plain th, table.plain td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { color: var(--muted); font-weight: 600; white-space: nowrap; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* コース・レッスン */
.course-link { display: block; text-decoration: none; color: inherit; }
.course-link:hover .title { color: var(--main-deep); }
.lesson-group { margin-bottom: 18px; }
.lesson-group h3 { margin: 0 0 6px; }
.topics { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.topics li { padding: 6px 0 6px 10px; }
.done::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.progress { height: 8px; background: #efe3e8; border-radius: 999px; overflow: hidden; margin: 8px 0 18px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--main), var(--sub)); width: 0; transition: width .6s ease; }
@media (prefers-reduced-motion: reduce) { .progress > span, .btn { transition: none; } }

.content { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-wrap: anywhere; }
.content img { max-width: 100%; height: auto; }
.content iframe { max-width: 100%; aspect-ratio: 16 / 9; width: 100%; height: auto; border: 0; }
.content table { max-width: 100%; border-collapse: collapse; }
.content td, .content th { border: 1px solid var(--line); padding: 6px 8px; }
.content h2 { border-left: 0; padding-left: 0; margin-top: 1.4em; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pager a { flex: 1 1 45%; text-align: center; }
