/* IBC認定講座の下層ページ(お申し込み・受付完了・特定商取引法に基づく表記・プライバシーポリシー・受講規約・404)の見た目。
   tools/build-license-site.js が public/assets/pages.css に書き出す。layout.html を使うページだけが読む(トップページは読まない)。
   下層ページには style 属性を書かない(組み立ての見張りが止める)ので、見た目はすべてここに書く。
   色と書体はトップページ(styles.css)と同じ: 文字 #1d2434・紺 #1b2440・赤 #c7382a・生成り #fbfaf6 */

/* ---- ヘッダー ----
   2026-10-29 から、下層ページもトップページと同じヘッダー(partials/header.html。見た目は styles.css の .lp-header)を使う。
   前の下層ページだけのヘッダー(.page-header・.page-logo・.page-nav)はやめた */

/* ---- 本文 ---- */
.page-main{padding:clamp(40px,7vw,72px) clamp(16px,5vw,48px) clamp(64px,10vw,110px)}
.doc{max-width:760px;margin:0 auto;font-size:16px;line-height:1.95}
.doc h1{margin:0 0 20px;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:clamp(26px,4.6vw,36px);line-height:1.5;letter-spacing:0.03em}
.doc h2{margin:48px 0 16px;padding-bottom:8px;border-bottom:2px solid rgba(199,56,42,0.35);font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:clamp(20px,3.4vw,26px);line-height:1.6;letter-spacing:0.02em}
.doc h3{margin:32px 0 10px;font-size:18px;font-weight:700;line-height:1.7}
.doc p{margin:0 0 14px}
.doc ul,.doc ol{margin:0 0 14px;padding-left:1.5em}
.doc li{margin:0 0 6px}
.doc li>ul,.doc li>ol{margin-top:6px}
.doc a:not(.btn){color:#1b2440;text-decoration:underline;text-underline-offset:3px}
.doc a:not(.btn):hover{color:#c7382a}
.doc small{font-size:14px;color:#4a5266}
.doc-lead{font-size:17px}

/* 法的ページの定義リスト(プライバシーポリシーの委託先など) */
.legal dl{margin:0 0 20px}
.legal dt{margin:12px 0 0;font-weight:700}
.legal dd{margin:2px 0 0;padding-left:12px;border-left:3px solid rgba(29,36,52,0.14)}

/* ---- 表(特商法・受講規約の別表・お申し込みの表示事項)。税込価格が本文と同じ 16px になるよう、表の文字も 16px ---- */
.policy-table,.facts-table{width:100%;margin:8px 0 20px;border-collapse:collapse;background:#fff;font-size:16px}
.policy-table th,.policy-table td,.facts-table th,.facts-table td{padding:10px 12px;border:1px solid rgba(29,36,52,0.14);text-align:left;vertical-align:top;line-height:1.85;overflow-wrap:anywhere}
.policy-table thead th{background:#f3f1ea}
.policy-table tbody th,.facts-table th{width:30%;background:#fbfaf6;font-weight:700}
.policy-table td>:last-child,.facts-table td>:last-child{margin-bottom:0}
/* 金額のセル(<td class="num">)は数字の途中で折り返さない(「11,0／00円」のように読み違えないように) */
.num{white-space:nowrap;overflow-wrap:normal}
/* 見出しの行がある3列の表(特商法・受講規約の別表)は、項目の列を 30% に固めない(金額の列が細くなりすぎないように) */
/* 3列の表(見出しの行があり、3つ目の列がある表)だけ、項目の列の幅を固定しない。2列の特商法の表は 30% のまま */
.policy-table:has(thead th:nth-child(3)) tbody th{width:auto}
.policy-table ul,.facts-table ul{margin:0 0 8px;padding-left:1.3em}
.policy-table p,.facts-table p{margin:0 0 8px}
@media (max-width:640px){
  .facts-table th,.facts-table td{display:block;width:auto}
  .facts-table th{border-bottom:0}
  .policy-table th,.policy-table td{padding:8px}
  .policy-table thead th{font-size:14px;line-height:1.6}
}

/* ---- ボタン ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:52px;padding:12px 32px;border:0;border-radius:10px;font:inherit;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:0.04em;text-align:center;text-decoration:none;cursor:pointer}
.btn-primary{background:#c7382a;color:#fff}
.btn-primary:hover{background:#a92c20;color:#fff}
.btn-secondary{background:#1b2440;color:#fff}
.btn-secondary:hover{background:#2a3557;color:#fff}
.btn-outline{background:transparent;border:1.5px solid #1b2440;color:#1b2440}
.btn-outline:hover{background:rgba(27,36,64,0.06);color:#1b2440}
.btn[disabled]{opacity:0.6;cursor:progress}
.btn:focus-visible,.apply-form input:focus-visible,.apply-form textarea:focus-visible{outline:3px solid rgba(27,36,64,0.35);outline-offset:2px}

/* ---- お申し込みフォーム(/apply/) ---- */
.apply-alert{margin:0 0 20px;padding:12px 14px;border:1px solid rgba(199,56,42,0.4);border-radius:8px;background:#fdf3f1;color:#8e2419;font-weight:700}
.apply-alert:focus{outline:none}
/* Stripe のお支払いページで取りやめて戻ったとき(/apply/?plan=designer#payment-canceled)だけ出す。JS が無くても :target で出る */
.apply-canceled{display:none}
.apply-canceled:target{display:block}
.apply-note{padding:12px 14px;border-radius:8px;background:#f3f1ea;font-size:15px}
.apply-form{margin-top:24px}
.apply-fieldset{margin:0 0 24px;padding:0;border:0;min-width:0}
.apply-fieldset legend{margin:0 0 10px;padding:0;font-weight:700}
.apply-plan-option{display:flex;gap:12px;align-items:flex-start;margin:0 0 10px;padding:14px 16px;border:1.5px solid rgba(29,36,52,0.16);border-radius:10px;background:#fff;cursor:pointer}
.apply-plan-option:has(input:checked){border-color:#1b2440;box-shadow:0 0 0 3px rgba(27,36,64,0.1)}
.apply-plan-option input{flex:0 0 auto;width:18px;height:18px;margin:6px 0 0}
.apply-plan-text{display:flex;flex-direction:column}
.field{margin:0 0 20px}
.field>label{display:block;margin:0 0 6px;font-weight:700}
.field input,.field textarea{width:100%;box-sizing:border-box;min-height:48px;padding:10px 14px;border:1.5px solid rgba(29,36,52,0.22);border-radius:8px;background:#fff;color:#1d2434;font:inherit;font-size:16px}
.field textarea{min-height:120px;line-height:1.8;resize:vertical}
.field input:focus,.field textarea:focus{border-color:#1b2440;box-shadow:0 0 0 3px rgba(27,36,64,0.14);outline:none}
.apply-form [aria-invalid="true"]{border-color:#c7382a}
.doc .field-help{margin:6px 0 0;font-size:14px;color:#4a5266}
.doc .field-error{margin:6px 0 0;font-size:14px;font-weight:700;color:#b3261e}
.req,.opt{display:inline-block;margin-left:6px;padding:0 8px;border-radius:4px;font-size:12px;font-weight:700;line-height:1.8;vertical-align:1px}
.req{background:#c7382a;color:#fff}
.opt{background:#e8e6df;color:#4a5266}
/* ハニーポット(人には見えない欄)。display:none にしないのは、それを見て飛ばすボットがあるため */
.apply-hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.apply-check{display:flex;gap:10px;align-items:flex-start;margin:0 0 8px;cursor:pointer}
.apply-check input{flex:0 0 auto;width:18px;height:18px;margin:6px 0 0}
.doc .apply-agree .field-error{margin:0 0 10px 28px}
.apply-actions{margin:28px 0 0;text-align:center}
.apply-actions .btn{width:100%;max-width:420px}

/* 確認(JS が動くとき)と、表示事項・申込みのボタン */
.apply-confirm h2{margin-top:8px}
.apply-confirm h2:focus{outline:none}
.confirm-list{display:grid;grid-template-columns:minmax(0,10em) minmax(0,1fr);margin:0 0 8px;border-top:1px solid rgba(29,36,52,0.12)}
.confirm-list dt,.confirm-list dd{margin:0;padding:10px 0;border-bottom:1px solid rgba(29,36,52,0.12)}
.confirm-list dt{font-weight:700;color:#4a5266}
.confirm-list dd{padding-left:12px;white-space:pre-wrap;overflow-wrap:anywhere}
@media (max-width:640px){
  .confirm-list{grid-template-columns:1fr}
  .confirm-list dt{padding-bottom:0;border-bottom:0}
  .confirm-list dd{padding-left:0}
}
.final{margin:32px 0 0;padding:clamp(18px,4vw,32px);border:1.5px solid rgba(29,36,52,0.14);border-radius:14px;background:#fff}
.final h2{margin-top:0}
.doc .final-note{margin:16px 0 0;font-weight:700;color:#1b2440}
.doc .final-terms{margin:12px 0 0;font-size:14px;color:#4a5266}
.final-actions{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:20px}
.final-actions .btn{width:100%;max-width:560px}

/* ---- 受付完了(/apply/thanks/) ---- */
.thanks-plan{margin-top:8px}
.thanks-steps li{margin-bottom:10px}
.thanks-back{margin-top:36px;text-align:center}

/* ---- 404 ---- */
.notfound{text-align:center}
.doc .notfound-code{margin:0 0 12px;font-size:13px;letter-spacing:0.12em;color:#6b7280}
.notfound-back{margin-top:28px}

/* ---- JS なしで Enter を押したときの受け皿(pages/apply.html のフォームの先頭。apply.js が取り除く) ---- */
.implicit-submit{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
