/* 会員サイト 共通スタイル — 配色はブランドシート（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; }

/* ===== 受講生向けトップ（今のコース一覧と同じ構成） ===== */
.home main.wide { max-width: 1140px; padding-top: 8px; }
.center { text-align: center; }
.narrow { max-width: 640px; margin: 24px auto; }
.sec-title { text-align: center; font-size: clamp(19px, 1.4vw + 13px, 24px); margin: 34px 0 16px; }
.sec-title a { color: inherit; text-decoration: none; }
.sec-title a:hover { color: var(--main-deep); }

/* ヒーロー：画像なし。ブランド色の薄い版の地。装飾はここだけ */
.hero {
  background: linear-gradient(100deg, #dce9f8 0%, #f7e1e9 55%, #f3cfdb 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1140px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) 16px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(22px, 2.6vw + 12px, 34px); color: #4b3f45; letter-spacing: .04em; }
.hero-lead { margin: 8px 0 0; color: #6c5f66; }
.hero-sm .hero-inner { padding: clamp(18px, 3.5vw, 36px) 16px; }
.crumb { margin: 0 0 6px; font-size: .88em; }
.crumb a { color: #7a5c68; text-decoration: none; }
.crumb a::before { content: "← "; }

/* 最新情報：バナー2枚 */
.banner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 820px; margin: 0 auto 14px; }
.banner { display: block; text-decoration: none; color: inherit; }
.banner-img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-fallback { height: 100%; display: grid; place-items: center; padding: 16px; text-align: center; font-weight: 700; font-size: clamp(16px, 1.6vw + 8px, 22px); color: var(--main-deep); background: linear-gradient(135deg, #fbeef2, #eaf2fb); }
.banner-cap { margin-top: 8px; font-size: .95em; color: var(--text); }
.banner:hover .banner-img { box-shadow: 0 10px 26px rgba(217, 101, 137, 0.18); }
.btn.pill { border-radius: 999px; padding: 10px 28px; }

/* カリキュラム更新情報 */
.upd-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.upd-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95em; }
.upd-list li:last-child { border-bottom: 0; }
.upd-list time { color: var(--muted); white-space: nowrap; }
.upd-text a { white-space: nowrap; }
.wide-list { max-width: none; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 14px 0 6px; }
.tabs a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--text); font-size: .9em; }
.tabs a[aria-current="page"] { background: var(--main); border-color: var(--main); color: #fff; font-weight: 700; }
.post-img { max-width: 100%; height: auto; border-radius: 8px; }

/* 注目の2本（CTA） */
.cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 820px; margin: 30px auto 6px; }
.cta { position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; min-height: 150px; padding: 22px 18px 30px; border-radius: 8px; text-decoration: none; background: var(--paper); border: 3px solid var(--main); color: var(--main-deep); overflow: hidden; box-shadow: var(--shadow); }
.cta-main { font-weight: 800; font-size: clamp(20px, 2vw + 10px, 30px); letter-spacing: .02em; }
.cta-sub { font-weight: 700; font-size: clamp(15px, 1vw + 9px, 20px); }
.cta-corner { position: absolute; right: 0; bottom: 0; padding: 4px 14px 2px 26px; font-size: .85em; font-weight: 700; color: #fff; background: var(--main); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.cta-ig { border-color: var(--sub); color: #3f6ea8; }
.cta-ig .cta-corner { background: var(--sub); }
.cta:hover { transform: translateY(-2px); }

/* 編ごとの帯とレッスンカード */
.course-band { margin: 0 -16px; padding: 6px 16px 34px; }
.course-band.alt { background: #f4edf0; }
.band-inner { max-width: 1140px; margin: 0 auto; }
.band-meta { text-align: center; margin: -8px 0 14px; }
.lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 30px; }
.lcard { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.lcard-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.thumb { position: relative; aspect-ratio: 3 / 2; background: #f3e6ec; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-fallback { height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #f6dfe7, #e3edf9); color: var(--main-deep); font-weight: 800; font-size: clamp(18px, 1.6vw + 10px, 26px); letter-spacing: .04em; }
.state-badge { position: absolute; top: 10px; left: 0; padding: 3px 12px 3px 10px; font-size: .78em; font-weight: 700; color: #fff; background: #8a7f83; border-radius: 0 4px 4px 0; }
.state-started .state-badge { background: var(--sub); }
.state-done .state-badge { background: var(--ok); }
.lcard-body { padding: 12px 12px 14px; display: grid; gap: 8px; }
.lcard-title { font-weight: 700; line-height: 1.45; font-size: .98em; min-height: 2.9em; }
.lnum { color: var(--main-deep); }
.lcard-desc { margin: 0; font-size: .86em; color: var(--muted); }
.see { pointer-events: none; }
.lcard:hover { box-shadow: 0 10px 26px rgba(217, 101, 137, 0.18); }
.lcard:hover .see { background: var(--main-deep); }
.progress-wrap { max-width: 820px; margin: 18px auto 6px; }

/* フッター */
.site-footer { max-width: 1140px; text-align: center; padding: 22px 16px 30px; }
.foot-nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.foot-nav a { color: var(--text); text-decoration: none; font-size: .92em; }
.foot-nav a:hover { color: var(--main-deep); }
.copy { margin: 0; color: var(--muted); font-size: .82em; }

@media (max-width: 900px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 600px) {
  .lgrid { grid-template-columns: 1fr; }
  .banner-grid, .cta-grid { grid-template-columns: 1fr; gap: 14px; }
  .upd-list li { grid-template-columns: 1fr; gap: 2px; }
  .cta { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .cta:hover { transform: none; } }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.content figcaption { color: var(--ink-weak); font-size: 13px; margin-top: 4px; }
