/* ===========================================================================
   下層ページ（試験について・試験概要・出題範囲・受験の流れ・よくある質問・
   お知らせ・お問い合わせ・受験の手引き・受験者ログイン・受験規約・
   プライバシーポリシー・特定商取引法に基づく表記）
   ---------------------------------------------------------------------------
   トップページ（css/home.css）の色・見出し・カードの上に重ねる。
   =========================================================================== */

.page-main { padding-bottom: 96px; }
.page-main .sec:first-of-type { padding-top: 56px; }
.lead-copy { font-size: 26px; font-weight: 900; line-height: 1.6; color: var(--blue-ink); margin-bottom: 18px; }
.prose p { color: var(--sub); }
.prose p + p { margin-top: 14px; }
.quote { margin-top: 28px; padding: 22px 26px; border-radius: var(--r); background: var(--sky); border-left: 5px solid var(--blue); font-weight: 700; color: var(--blue-ink); line-height: 1.8; }

/* 2カラム（左に説明、右に本文） */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.split > figure { border-radius: 16px; overflow: hidden; background: var(--sky); }
.split > figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* 番号つきカード（特徴・出題領域） */
.num-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.num-cards.five { grid-template-columns: repeat(5, 1fr); }
.num-cards.sched2 { grid-template-columns: 1.3fr 1fr; }
.num-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; box-shadow: 0 16px 40px -28px rgba(10,44,82,.4); }
.num-card .n { font-family: var(--num); font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--cyan); }
.num-card h3 { font-size: 18px; font-weight: 900; line-height: 1.5; margin: 6px 0 8px; }
.num-card p { font-size: 14px; color: var(--sub); line-height: 1.8; }

/* 表（試験概要・特商法） */
.spec { border-top: 2px solid var(--blue); background: #fff; }
.spec > div, .spec tr { display: grid; grid-template-columns: 13em 1fr; gap: 24px; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.spec dt, .spec th { font-size: 14px; font-weight: 700; color: var(--blue-ink); text-align: left; }
.spec dd, .spec td { font-size: 15px; color: var(--ink); }
.spec strong { font-family: var(--num); font-size: 22px; font-weight: 800; color: var(--blue-ink); margin-right: 2px; }
.spec table, .spec tbody { display: contents; }
.spec a { color: var(--blue); text-decoration: underline; }

/* 注意・案内の帯 */
.notice { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 18px 22px; border-radius: var(--r); background: #fff8e9; border: 1px solid #f1d9a8; }
.notice .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d99d2b; color: #fff; font-weight: 900; }
.notice b { display: block; font-size: 15px; color: #6a4c17; }
.notice p { font-size: 14px; color: #6a4c17; margin-top: 2px; }
.notice.info { background: var(--sky); border-color: var(--sky-2); }
.notice.info .ic { background: var(--blue); }
.notice.info b, .notice.info p { color: var(--blue-ink); }

/* 縦のステップ（受験の流れ） */
.vsteps { counter-reset: v; display: grid; gap: 0; }
.vstep { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding-bottom: 28px; }
.vstep:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: linear-gradient(var(--blue), var(--cyan)); opacity: .35; }
.vstep .no { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--num); font-size: 20px; font-weight: 800; box-shadow: 0 0 0 6px var(--sky); }
.vstep .body { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.vstep small { font-family: var(--num); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); }
.vstep h3 { font-size: 18px; font-weight: 900; margin: 2px 0 6px; }
.vstep p { font-size: 14px; color: var(--sub); }

/* チェックリスト */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-weight: 700; font-size: 15px; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sky); color: var(--blue); font-size: 14px; font-weight: 900; }

/* 番号つきの手順（受験の手引き） */
.ol-steps { counter-reset: s; display: grid; gap: 10px; }
.ol-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--sky); font-size: 15px; }
.ol-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--num); font-weight: 800; }
.bullets { display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 22px; color: var(--sub); }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* 区切りのある白いパネル */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -28px rgba(10,44,82,.4); padding: 32px 36px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 21px; font-weight: 900; margin-bottom: 12px; }
.panel > p { color: var(--sub); }
.panel > p + p, .panel > p + ul, .panel > ul + p, .panel > p + ol { margin-top: 12px; }

/* 理事会 */
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.board li { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.board img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sky); }
.board div { padding: 14px 18px 18px; }
.board small { display: block; font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: .08em; }
.board b { font-size: 17px; font-weight: 900; }
.board-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* よくある質問 */
.faq-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: 104px; display: grid; gap: 6px; }
.faq-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 10px; background: var(--sky); font-weight: 700; font-size: 14px; }
.faq-nav a:hover { background: var(--sky-2); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group { scroll-margin-top: 110px; }
.faq-group > h2 { font-size: 22px; font-weight: 900; margin-bottom: 16px; padding-left: 14px; border-left: 5px solid var(--blue); line-height: 1.4; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.qa + .qa { margin-top: 10px; }
.qa summary { list-style: none; display: grid; grid-template-columns: 32px 1fr 24px; gap: 14px; align-items: center; padding: 18px 20px; cursor: pointer; font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--num); font-weight: 800; }
.qa summary::after { content: "+"; font-family: var(--num); font-size: 22px; font-weight: 700; color: var(--blue); text-align: center; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { background: #f8fbfe; }
.qa > div { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 0 20px 20px 20px; color: var(--sub); }
.qa > div::before { content: "A"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--blue); font-family: var(--num); font-weight: 800; }
.qa a { color: var(--blue); text-decoration: underline; }

/* お知らせ（js/script.js が中身を入れる） */
.news-detail-list { display: grid; gap: 16px; }
.news-detail-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; scroll-margin-top: 110px; }
.news-detail-item time { font-family: var(--num); font-size: 13px; font-weight: 700; color: var(--cyan); }
.news-detail-item h2 { font-size: 19px; font-weight: 900; margin: 4px 0 10px; }
.news-detail-item p { color: var(--sub); white-space: pre-wrap; }
.news-status { padding: 28px; border-radius: 16px; background: var(--sky); color: var(--sub); text-align: center; }
.news-status.error { background: var(--alert-bg); color: var(--alert); }

/* お問い合わせ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side .panel { padding: 26px 26px; }
.contact-side dl { display: grid; gap: 8px; font-size: 14px; }
.contact-side dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.contact-side dd { font-weight: 700; }
.contact-side dd a { color: var(--blue); text-decoration: underline; }
.form { display: grid; gap: 20px; }
.form label > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.form label b { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: var(--alert); color: #fff; font-size: 11px; vertical-align: 1px; }
.form label i { font-style: normal; display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: #eef2f6; color: var(--muted); font-size: 11px; font-weight: 700; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid #c9d4df; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.form textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,92,173,.14); }
.form .agree { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--sky); font-size: 14px; cursor: pointer; }
.form .agree input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.form .agree a { color: var(--blue); text-decoration: underline; font-weight: 700; }
.form .btn { justify-self: start; min-width: 280px; font-size: 16px; padding: 16px 34px; cursor: pointer; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 14px; font-weight: 700; color: var(--blue); }
.form-status.error { color: var(--alert); }

/* 規約・方針の本文 */
.legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px 48px; }
.legal-body h2 { font-size: 18px; font-weight: 900; color: var(--blue-ink); margin: 36px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--sub); line-height: 1.95; }
.legal-body p + p, .legal-body p + ol, .legal-body ol + p, .legal-body p + ul, .legal-body ul + p { margin-top: 10px; }
.legal-body ol { list-style: decimal; padding-left: 1.6em; display: grid; gap: 6px; }
.legal-body ul { list-style: disc; padding-left: 1.4em; display: grid; gap: 4px; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-body .sign { margin-top: 40px; text-align: right; color: var(--ink); }
.legal-body .spec { margin-top: 4px; }
.legal-side { position: sticky; top: 104px; display: grid; gap: 16px; }
.legal-side nav { background: var(--sky); border-radius: 16px; padding: 18px; display: grid; gap: 4px; }
.legal-side nav h3 { font-size: 13px; font-weight: 900; color: var(--blue-ink); margin: 0 0 6px 6px; }
.legal-side nav a { padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.legal-side nav a:hover { background: #fff; }
.legal-side nav a[aria-current="page"] { background: #fff; color: var(--blue); }

/* ページ下の案内 */
.next-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.next-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-radius: 14px; background: var(--sky); font-weight: 900; transition: background .15s; }
.next-links a:hover { background: var(--sky-2); }
.next-links small { display: block; font-family: var(--num); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--cyan); }
.next-links .arrow { background: var(--blue); color: #fff; }

/* 受験者ログインの案内 */
.portal-card { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(10,44,82,.5); }
.portal-card > div { padding: 40px 44px; }
.portal-card h2 { font-size: 24px; font-weight: 900; line-height: 1.5; margin-bottom: 12px; }
.portal-card p { color: var(--sub); }
.portal-card .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.portal-card figure { background: var(--sky); }
.portal-card figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1080px) {
  .num-cards.five { grid-template-columns: repeat(3, 1fr); }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-side { position: static; }
  .board { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .page-main { padding-bottom: 64px; }
  .page-main .sec:first-of-type { padding-top: 36px; }
  .lead-copy { font-size: 20px; }
  .split, .contact-grid, .faq-wrap, .portal-card { grid-template-columns: 1fr; }
  .num-cards, .num-cards.five, .num-cards.sched2 { grid-template-columns: 1fr; }
  .spec > div, .spec tr { grid-template-columns: 1fr; gap: 4px; padding: 14px 4px; }
  .vstep { grid-template-columns: 48px 1fr; gap: 14px; }
  .vstep .no { width: 48px; height: 48px; font-size: 16px; }
  .vstep:not(:last-child)::before { left: 23px; top: 48px; }
  .vstep .body { padding: 16px 18px; }
  .checks { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .board { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .faq-nav { position: static; grid-template-columns: 1fr 1fr; }
  .legal-body { padding: 26px 20px; }
  .next-links { grid-template-columns: 1fr; margin-top: 40px; }
  .portal-card > div { padding: 28px 22px; }
  .form .btn { width: 100%; min-width: 0; }
}
