/* BESFORT オンラインサッカースクール — 独自デザイン
   ブランド: ベスフォート公式サイト（besfort2022.com）と同じライム #D7FF15 × ブラック。
   ロゴ・写真も公式サイトの素材を使用。小中学生が迷わず使える大きなタップ領域。 */
:root {
  --lime: #d7ff15;
  --lime-dark: #b5da00;
  --lime-soft: #f7ffd3;
  --lime-mid: #e9fc8c;
  --black: #000000;
  --ink: #1f2328;
  --muted: #5e6670;
  --line: #e4e7eb;
  --bg: #f7f8f5;
  --white: #ffffff;
  --ok: #1a9d55;
  --warn: #e0a400;
  --danger: #d63b3b;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  --font-body: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-display: "Oswald", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; }
h1 { font-size: 1.75rem; font-weight: 900; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
.container-wide { max-width: 1200px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.inline { display: inline; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.mb { margin-bottom: 24px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ヘッダー */
.site-header { background: var(--lime); border-bottom: 3px solid var(--black); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-sub { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.2; border-left: 2px solid var(--black); padding-left: 10px; }
@media (max-width: 520px) { .brand-logo { height: 28px; } .brand-sub { display: none; } }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { display: inline-block; padding: 10px 12px; min-height: 44px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--black); background: transparent; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.nav-link:hover, .nav-link.is-active { background: rgba(17, 17, 17, 0.1); }
@media (max-width: 480px) { .nav-link { padding: 8px 9px; min-height: 40px; font-size: 0.92rem; } }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--black); background: var(--white); color: var(--black); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.08s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--black); color: var(--lime); }
.btn-primary:hover { background: #000; }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--lime-dark); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 0.9rem; }
.btn-lg { min-height: 60px; padding: 14px 32px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* カード */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--black); }

/* ヒーロー */
.hero { background: var(--black); color: var(--white); border-radius: 24px; padding: 40px 24px; margin-bottom: 32px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(105deg, rgba(0, 0, 0, 0.94) 32%, rgba(0, 0, 0, 0.55) 68%, rgba(0, 0, 0, 0.35)), url("/img/hero.jpg");
  background-size: cover; background-position: center 28%;
}
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 8px; background: var(--lime); }
.hero-inner { position: relative; z-index: 1; }
.hero-en { font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 5rem); line-height: 0.95; letter-spacing: 0.01em; margin: 0 0 8px; }
.hero-ja { font-size: 1.2rem; font-weight: 700; color: var(--lime); margin-bottom: 16px; }
.hero p { max-width: 560px; color: #d7dbe0; }
.hero .btn-lime { border-color: var(--lime); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hero .eyebrow { color: var(--lime); }

/* 写真つきカード（テーマ紹介） */
.photo-card { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.photo-card .photo { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: #ddd; }
.photo-card .photo-body { padding: 16px; display: grid; gap: 6px; align-content: start; }

/* コーチ紹介 */
.coach { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 640px) { .coach { grid-template-columns: 180px 1fr; } }
.coach img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--lime); }

/* BEST FOR EFFORT（ブランドモットー帯） */
.motto { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: baseline; background: var(--black); color: var(--white); border-radius: 24px; padding: 22px 16px; margin-bottom: 32px; text-align: center; }
.motto b { font-family: var(--font-display); font-size: clamp(1.4rem, 5vw, 2.2rem); letter-spacing: 0.08em; }
.motto b em { font-style: normal; color: var(--lime); }
.motto span { font-size: 0.9rem; color: #c9cdd2; }

/* テーマバッジ */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--lime-soft); color: var(--black); border: 1px solid var(--lime-dark); }
.badge-technique { background: #e6f4ff; border-color: #8ec3f0; }
.badge-tactics { background: #fff1d6; border-color: #f0c56a; }
.badge-mental { background: #f3e8ff; border-color: #c9a3f0; }
.badge-ok { background: #e3f7ea; border-color: var(--ok); color: var(--ok); }
.badge-warn { background: #fff6d6; border-color: var(--warn); color: #8a6400; }
.badge-danger { background: #fde5e5; border-color: var(--danger); color: var(--danger); }
.badge-muted { background: #eef0f2; border-color: var(--line); color: var(--muted); }

/* フォーム */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: var(--white); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px var(--lime-soft); }
.choice-list { display: grid; gap: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--black); background: var(--lime-soft); }
.choice input { width: 22px; height: 22px; margin-top: 4px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.flash-ok { background: #e3f7ea; color: var(--ok); }
.flash-error { background: #fde5e5; color: var(--danger); }
.flash-info { background: var(--lime-soft); color: var(--black); }

/* アカウント情報 */
.account-info { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
@media (min-width: 640px) { .account-info { grid-template-columns: 140px 1fr; } }
.account-info dt { font-weight: 700; color: var(--muted); font-size: 0.85rem; }
.account-info dd { margin: 0 0 8px; }

/* 進捗 */
.progress-ring { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--p) * 1%), #e7e9e3 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--white); }
.progress-ring span { position: relative; font-family: var(--font-display); font-size: 2rem; }
.progress-bar { height: 12px; border-radius: 999px; background: #e7e9e3; overflow: hidden; }
.progress-bar > i { display: block; height: 100%; background: var(--lime); border-radius: 999px; }
.stat { display: grid; gap: 2px; }
.stat b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* レッスン一覧 */
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lesson-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; min-height: 64px; }
.lesson-item:hover { border-color: var(--black); }
.lesson-thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: #ddd; flex: none; }
.lesson-check { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; flex: none; border: 2px solid var(--line); color: var(--muted); }
.lesson-check.done { background: var(--lime); border-color: var(--black); color: var(--black); }
.lesson-meta { font-size: 0.85rem; color: var(--muted); }

/* プレイヤー */
.player-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-status { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; }

/* テーブル */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #f0f2ec; font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* メッセージ */
.thread { display: grid; gap: 12px; }
.msg { padding: 14px 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); max-width: 85%; white-space: pre-wrap; word-break: break-word; }
.msg-me { margin-left: auto; background: var(--lime-soft); border-color: var(--lime-dark); }
.msg-coach { border-color: var(--black); }
.msg-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }

/* フッター */
.site-footer { border-top: 6px solid var(--lime); background: var(--black); color: var(--white); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 0.875rem; }
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: 10px; }
.site-footer .muted { color: #a9b0b8; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: #d7dbe0; }
.footer-nav a:hover { color: var(--lime); }

.warn-item { color: var(--danger); }
.warn-item b { display: block; }

/* KPI */
.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 16px; }
.kpi b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--lime); line-height: 1.1; }
.kpi span { font-size: 0.8rem; color: #c9cdd2; }

/* 料金 */
.plan { border: 2px solid var(--line); border-radius: 24px; padding: 24px; background: var(--white); display: grid; gap: 12px; }
.plan.is-featured { border-color: var(--black); box-shadow: var(--shadow); }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.plan ul { padding-left: 20px; margin: 0; }
.legal h2 { margin-top: 32px; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 4px 16px; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 200px 1fr; } }
.legal dt { font-weight: 700; }
.legal dd { margin: 0 0 12px; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; background: var(--white); }
.dropzone.is-active { border-color: var(--black); background: var(--lime-soft); }

/* 視聴ページ（Udemy 風 2 カラム） */
.watch-layout { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .watch-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .curriculum { position: sticky; top: 84px; } }
.curriculum { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.curriculum-head { padding: 12px 16px; background: var(--black); color: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.curriculum-head b { color: var(--lime); }
.curriculum-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.curriculum-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 52px; }
.curriculum-item:hover { background: #f4f6f0; }
.curriculum-item.is-current { background: var(--lime-soft); font-weight: 700; }
.curriculum-item .lesson-check { width: 26px; height: 26px; font-size: 0.8rem; }
.curriculum-item .lesson-meta { margin-left: auto; white-space: nowrap; }
.player-note { margin-top: 8px; }

/* 講座カード */
.course-card { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.course-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--black), #2d3a1f); position: relative; display: grid; place-items: center; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-thumb .badge { position: absolute; left: 10px; top: 10px; }
.course-thumb .thumb-fallback { font-family: var(--font-display); font-size: 2.4rem; color: var(--lime); letter-spacing: 0.05em; }
.course-body { padding: 16px; display: grid; gap: 8px; }
.continue-card { display: grid; gap: 16px; grid-template-columns: 1fr; background: var(--black); color: var(--white); border-radius: var(--radius); padding: 16px; }
@media (min-width: 640px) { .continue-card { grid-template-columns: 220px 1fr; align-items: center; } }
.continue-card .course-thumb { border-radius: 12px; }
.continue-card .muted { color: #b8bec6; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* サムネイル画像は常に 16:9 に収める（読み込み失敗時も枠を崩さない） */
.thumb-16x9 { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #ddd; display: block; }
.player-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
