/* 研修動画のオーダーメイド制作　見た目
   色は紺・青・白。区切りは余白と細い罫線。角は 0〜6px（ボタンだけ丸）。
   箱の左や上の色の線・薄く広い影・飾りの円・英語の小ラベルは使わない。 */
:root {
  --paper: #fff; --mist: #f1f6fb; --sky: #e6f0fa;
  --ink: #092d5a; --sub: #3f5873; --pale: #60748a; --line: #d6e1ec;
  --blue: #0877dd; --blue-d: #0667c4; --blue-wash: #eaf4fc;
  --ok: #0c7a5b; --ok-wash: #e4f4ee; --ng: #b23a2b; --ng-wash: #fbebe8;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --w: 1120px; --header: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.85; letter-spacing: .01em; line-break: strict; overflow-wrap: anywhere; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue-d); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; line-height: 1.4; letter-spacing: -.01em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
.ph { display: inline-block; }
/* BudouX が文節の境目に切れ目を入れたら（html に .bx）、切れ目でだけ折り返す */
html.bx body { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, .q__q, .tq__q, .qcard__q { text-wrap: balance; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* 上の帯 */
.header { position: sticky; top: 0; z-index: 20; height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__brand { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header__nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.header__nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; white-space: nowrap; }
.header__nav a:not(.header__cta) { display: none; }
.header__cta { border: 1px solid var(--ink); border-radius: 999px; padding: 6px 16px !important; font-weight: 700; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.btn--main { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--main:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn--s { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* 冒頭 */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 86%); border-bottom: 1px solid var(--line); }
.hero__in { max-width: var(--w); margin: 0 auto; padding: 40px 20px 44px; display: grid; gap: 32px; }
.hero__who { font-size: 14px; font-weight: 700; color: var(--blue-d); }
.hero__h { margin-top: 10px; font-size: clamp(32px, 8.6vw, 54px); font-weight: 900; line-height: 1.28; letter-spacing: -.03em; }
.hero__lead { margin-top: 18px; color: var(--sub); max-width: 32em; }
.hero__lead b { color: var(--ink); font-size: 1.12em; white-space: nowrap; }
.hero__price { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 0; border-top: 1px solid #b9c9da; border-bottom: 1px solid #b9c9da; max-width: 32em; }
.hero__pn { font-weight: 700; font-size: 15px; }
.hero__price b { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.hero__price b span { font-variant-numeric: tabular-nums; }
.hero__price small { font-size: 13px; color: var(--pale); }
.hero__btns { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 12px; font-size: 13px; color: var(--pale); }
.hero__screen { margin: 0; }
.hero__screen figcaption { margin-top: 10px; font-size: 12px; color: var(--pale); text-align: right; }

/* 画面の枠 */
.screen { border: 1px solid #b9c9da; border-radius: 6px; overflow: hidden; background: #dfe8f1; box-shadow: 0 18px 40px -26px rgba(9, 45, 90, .55); }
.screen--flat { box-shadow: none; }
.screen__v { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dfe8f1; }

/* 区画 */
.sec { padding: 64px 0; }
.sec--mist { background: var(--mist); }
.sec--line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--navy { background: var(--ink); color: #fff; }
.sec--navy .prose p { color: #d5e2f0; }
.sec__in { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.sec__h { font-size: clamp(25px, 6.2vw, 36px); font-weight: 900; letter-spacing: -.03em; }
.sec__who { font-size: 14px; font-weight: 700; color: var(--blue-d); margin-bottom: 8px; }
.sec--navy .sec__who { color: #9fd0ff; }
.sec__lead { margin-top: 14px; color: var(--sub); max-width: 38em; }
.sec__foot { margin-top: 28px; font-size: 13.5px; color: var(--pale); max-width: 52em; }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--sub); }

/* 文だけの並び */
.plain { list-style: none; border-top: 1px solid var(--line); }
.plain li { padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.plain--s li { padding: 9px 0; font-size: 15px; font-weight: 400; color: var(--sub); }
.sec--mist .plain, .sec--mist .plain li { border-color: #c9d8e7; }

/* 資料 → 動画 → 問題 */
.ba { margin-top: 34px; display: grid; gap: 30px; }
.ba__cap { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.ba__note { margin-top: 10px; font-size: 13.5px; color: var(--pale); }
.slide { aspect-ratio: 4 / 3; max-width: 420px; background: #fff; border: 1px solid #b9c9da; padding: 7% 7% 5%; display: flex; flex-direction: column; font-family: "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif; color: #222; }
.slide__t { font-size: clamp(14px, 3.8vw, 17px); font-weight: 700; line-height: 1.5; padding-bottom: 8px; border-bottom: 2px solid #777; }
.slide__l { margin: 14px 0 0 1.4em; font-size: clamp(13px, 3.5vw, 15px); line-height: 2.1; }
.slide__f { margin-top: auto; font-size: 11px; color: #888; text-align: right; }
.qcard { max-width: 420px; background: #fff; border: 1px solid #b9c9da; border-radius: 6px; padding: 18px 18px 14px; }
.qcard__q { font-weight: 700; font-size: 15px; line-height: 1.65; }
.qcard__l { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.qcard__l li { display: flex; gap: 10px; align-items: baseline; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 14px; line-height: 1.6; }
.qcard__l li span { font-weight: 700; color: var(--pale); }
.qcard__l li.is-ok { border-color: var(--ok); background: var(--ok-wash); }
.qcard__l li.is-ok span { color: var(--ok); }
.qcard__a { margin-top: 12px; font-size: 13px; color: var(--pale); }

/* 体験 */
.lesson { margin-top: 30px; max-width: 1000px; }
.lesson__steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; counter-reset: st; font-size: 13.5px; color: var(--pale); margin-bottom: 14px; }
.lesson__steps li { counter-increment: st; display: flex; align-items: center; gap: 7px; }
.lesson__steps li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; border: 1px solid #a9bccf; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #fff; }
.lesson__steps li.is-now { color: var(--ink); font-weight: 700; }
.lesson__steps li.is-now::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.lesson__steps li.is-done::before { content: "✓"; background: var(--blue-wash); border-color: var(--blue); color: var(--blue-d); }
.lesson__frame { position: relative; }
.lesson__stage { position: relative; background: #0b2548; border-radius: 6px 6px 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.lesson__v { width: 100%; height: 100%; object-fit: contain; background: #0b2548; }
.lesson__start[hidden] { display: none; }
.lesson__start { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 45, 90, .55), rgba(9, 45, 90, .84)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; }
.lesson__start .btn { min-width: min(300px, 84%); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.lesson__starts { font-size: 13px; opacity: .92; margin-top: 2px; }
.lesson__bar[hidden] { display: none; }
.lesson__bar { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 9px 12px; font-size: 13px; }
.lesson__bar button { background: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; color: #fff; padding: 5px 14px; font-size: 13px; white-space: nowrap; }
.lesson__seek { position: relative; flex: 1; height: 22px; cursor: pointer; }
.lesson__seek::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: rgba(255, 255, 255, .28); border-radius: 2px; }
.lesson__fill { position: absolute; left: 0; top: 9px; height: 4px; width: 0; background: #7cc1ff; border-radius: 2px; }
.lesson__marks i { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.lesson__marks i.is-done { background: var(--blue); border-color: #fff; }
.lesson__time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lesson__mute { display: none; }
.lesson__chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; }
.lesson__chips button { flex: none; border: 1px solid #b9c9da; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--sub); }
.lesson__chips button.is-now { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.lesson__chips button.is-q { border-color: var(--blue); color: var(--blue-d); }
.lesson__hint { margin-top: 6px; font-size: 13px; color: var(--pale); }
.lesson__skip { margin-left: 8px; background: none; border: 0; padding: 0; color: var(--blue-d); text-decoration: underline; font-size: 13px; }

/* 動画の途中の問い（狭い画面では動画の下に出す） */
.lesson__q { background: #fff; border: 1px solid #b9c9da; border-top: 0; padding: 18px 16px 16px; }
.lesson__q[hidden] { display: none; }
.q__label { font-size: 12.5px; font-weight: 700; color: var(--blue-d); }
.q__q { margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.6; }
.q__list { margin-top: 12px; display: grid; gap: 8px; }
.q__c { display: flex; gap: 12px; align-items: baseline; width: 100%; text-align: left; background: #fff; border: 1px solid #a9bccf; border-radius: 6px; padding: 11px 14px; font-size: 15px; line-height: 1.6; }
.q__c:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-wash); }
.q__c b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; transform: translateY(2px); }
.q__c:disabled { cursor: default; color: var(--pale); }
.q__c.is-ok { border-color: var(--ok); background: var(--ok-wash); color: var(--ink); }
.q__c.is-ok b { background: var(--ok); }
.q__c.is-ng { border-color: var(--ng); background: var(--ng-wash); color: var(--ink); }
.q__c.is-ng b { background: var(--ng); }
.q__why { margin-top: 12px; font-size: 14.5px; line-height: 1.75; }
.q__why strong.ok { color: var(--ok); }
.q__why strong.ng { color: var(--ng); }
.q__next { margin-top: 12px; }

/* 見終わったあと（確認テスト・結果・管理画面） */
.lesson__after { margin-top: 26px; background: #fff; border: 1px solid #b9c9da; border-radius: 6px; padding: 24px 18px; }
.after__h { font-size: 20px; font-weight: 900; }
.after__lead { margin-top: 6px; color: var(--sub); font-size: 15px; }
.tq { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.tq__no { font-size: 12.5px; font-weight: 700; color: var(--blue-d); }
.tq__q { margin-top: 2px; font-weight: 700; line-height: 1.65; }
.tq .q__list { max-width: 640px; }
.tq__why { margin-top: 10px; font-size: 14px; color: var(--sub); }
.after__act { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.after__msg { font-size: 13.5px; color: var(--pale); }
.result { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 16px 18px; background: var(--blue-wash); border-radius: 6px; }
.result b { font-size: 26px; font-weight: 900; }
.result.is-ng { background: var(--ng-wash); }

.admin { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.admin__note { margin-top: 6px; font-size: 13.5px; color: var(--pale); }
.admin__tiles { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.admin__tiles div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin__tiles dt { font-size: 12.5px; color: var(--pale); }
.admin__tiles dd { font-size: 24px; font-weight: 900; line-height: 1.3; font-variant-numeric: tabular-nums; }
.admin__tiles dd small { font-size: 13px; font-weight: 500; margin-left: 2px; }
.admin__bars { margin-top: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.admin__bar { display: grid; grid-template-columns: 9.5em 1fr 3.2em; align-items: center; gap: 10px; }
.admin__bar i { display: block; height: 10px; background: var(--sky); border-radius: 2px; overflow: hidden; }
.admin__bar i u { display: block; height: 100%; background: var(--blue); }
.admin__bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.admin__wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.admin__t { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 13.5px; }
.admin__t th, .admin__t td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin__t th { background: var(--mist); font-weight: 700; font-size: 12.5px; color: var(--sub); }
.admin__t tr:last-child td { border-bottom: 0; }
.admin__t tr.is-you td { background: #fffbe6; font-weight: 700; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag--ok { background: var(--ok-wash); color: var(--ok); }
.tag--ng { background: var(--ng-wash); color: var(--ng); }
.tag--yet { background: #eef1f5; color: var(--pale); }
.tag--mid { background: var(--blue-wash); color: var(--blue-d); }

/* その先 */
.future { border-top: 1px solid var(--line); }
.future > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.future h3 { font-size: 18px; font-weight: 700; line-height: 1.55; }
.future p { margin-top: 8px; color: var(--sub); }

/* お渡しするもの */
.give { margin-top: 26px; border-top: 1px solid var(--line); }
.give > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.give dt { font-weight: 700; font-size: 18px; }
.give dd { color: var(--sub); max-width: 44em; }

/* 料金 */
.price { margin-top: 26px; background: #fff; border: 1px solid #b9c9da; border-radius: 6px; }
.price__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.price__n { font-weight: 900; font-size: 18px; grid-column: 1; }
.price__w { grid-column: 1; color: var(--sub); font-size: 14.5px; line-height: 1.7; }
.price__w span { display: block; }
.price__w span:nth-child(3) { font-size: 13px; color: var(--pale); }
.price__y { grid-column: 2; grid-row: 1 / span 2; font-size: 15px; white-space: nowrap; }
.price__y b { font-size: clamp(28px, 7.4vw, 36px); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: 2px; }
.price__tax { padding: 10px 18px; font-size: 13px; color: var(--pale); }
.terms { margin-top: 30px; display: grid; gap: 26px; }
.terms h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.terms p { font-size: 15px; color: var(--sub); }
.market { margin-top: 30px; border-top: 1px solid #c9d8e7; border-bottom: 1px solid #c9d8e7; }
.market summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.market__lead { font-size: 14px; color: var(--sub); max-width: 46em; }
.market__wrap { margin-top: 14px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.market__t { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13.5px; }
.market__t th, .market__t td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.market__t th { background: var(--mist); font-size: 12.5px; color: var(--sub); white-space: nowrap; }
.market__t tr.is-me td { background: #fffbe6; font-weight: 700; }
.market__note { margin: 12px 0 18px; font-size: 12.5px; color: var(--pale); }

/* 流れ */
.flow { list-style: none; margin-top: 26px; counter-reset: fl; border-top: 1px solid var(--line); }
.flow li { counter-increment: fl; display: grid; grid-template-columns: 2.2em 1fr; gap: 0 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(fl); grid-row: 1 / span 2; font-size: 22px; font-weight: 900; color: var(--blue); line-height: 1.35; font-variant-numeric: tabular-nums; }
.flow b { font-size: 17px; }
.flow span { color: var(--sub); font-size: 15px; }

/* よくあるご質問 */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 28px 16px 0; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 2px; top: 16px; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 18px; color: var(--sub); font-size: 15px; }

/* お問い合わせ */
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact__addr { font-size: 15px; word-break: break-all; }
.contact__wait { padding: 14px 16px; border: 1px dashed #9db3c9; border-radius: 6px; background: #fff; font-size: 14.5px; color: var(--sub); }
.contact__h { margin-top: 32px; font-size: 16px; }
.who { margin-top: 8px; border-top: 1px solid #c9d8e7; font-size: 15px; }
.who div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid #c9d8e7; }
.who dt { color: var(--pale); }
.who .is-empty { color: var(--ng); }

/* 一番下 */
.footer { padding: 34px 20px 44px; max-width: var(--w); margin: 0 auto; font-size: 14px; }
.footer__s { margin-top: 8px; font-size: 12.5px; color: var(--pale); max-width: 56em; }

@media (max-width: 759px) {
  .lesson__stage.is-ask { aspect-ratio: 8 / 9; }
  .lesson__stage.is-ask .lesson__v { width: 200%; max-width: none; height: 100%; object-fit: cover; object-position: left center; }
  .lesson__stage.is-ask.is-ask--mid .lesson__v { margin-left: -28%; }
}

/* 広い画面 */
@media (min-width: 760px) {
  .header { padding: 0 32px; }
  .header__brand { font-size: 15px; }
  .header__nav a:not(.header__cta) { display: block; }
  .sec { padding: 96px 0; }
  .sec__in, .hero__in { padding-left: 32px; padding-right: 32px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
  .sec__in--two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .ba { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .lesson__mute { display: inline-block; }
  .lesson__stage { border-radius: 6px 6px 0 0; }
  /* 問いは、動画の右半分に重ねる（左のメール画面は見えたまま） */
  .lesson__q { position: absolute; top: 11%; left: 46.5%; width: 51%; border: 0; border-radius: 10px; padding: 22px 26px; overflow-y: auto; box-shadow: 0 10px 34px -14px rgba(9, 45, 90, .55); display: flex; flex-direction: column; justify-content: center; }
  .lesson__after { padding: 34px 36px; }
  .admin__tiles { grid-template-columns: repeat(4, 1fr); }
  .give > div { grid-template-columns: 13em 1fr; gap: 24px; padding: 26px 0; }
  .price__row { grid-template-columns: 7em 1fr auto; padding: 22px 28px; }
  .price__n { grid-row: 1; }
  .price__w { grid-column: 2; grid-row: 1; }
  .price__w { display: flex; gap: 0 1.4em; flex-wrap: wrap; }
  .price__y { grid-column: 3; grid-row: 1; }
  .price__tax { padding: 12px 28px; }
  .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .flow li { grid-template-columns: 3em 14em 1fr; align-items: baseline; }
  .flow li::before { grid-row: auto; }
}
@media (min-width: 760px) and (max-width: 980px) {
  .q__q { font-size: 15px; }
  .q__c { padding: 7px 10px; font-size: 13.5px; }
  .lesson__q { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
