/* 予想模試①の紹介ページ（/yoso-moshi/）と、別冊のカラーの画像（/bessatsu/a〜f/）。scripts/build_moshi_pages.mjs が作る静的なページ
   紹介ページはトップと同じ部品（css/top.css の lp-）を使い、足りない分だけ ym- で足す。別冊は bs- */

/* ヘッダーのリンクとボタン（アプリではトップだけに出す部品なので、ここで出す） */

/* ---------- 紹介ページ ---------- */
.ym-hero {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--lp-line-3);
}
.ym-hero-g { display: grid; gap: 32px; align-items: center; max-width: 1040px; margin: 0 auto; }
@media (min-width: 860px) { .ym-hero-g { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; } }
.ym-cover { display: flex; justify-content: center; }
.ym-cover img { display: block; width: 200px; height: auto; border-radius: 3px; box-shadow: 0 2px 4px rgba(15, 50, 46, .12), 0 30px 50px -28px rgba(15, 50, 46, .55); }
@media (min-width: 860px) { .ym-cover img { width: 260px; } }
.ym-h1 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 6vw, 44px); font-weight: 700; line-height: 1.3; letter-spacing: .03em; }
.ym-sub { margin: -8px 0 0; font-size: clamp(16px, 2.6vw, 19px); font-weight: 700; color: var(--accent); }
.ym .lp-p { word-break: normal; line-break: strict; }   /* 文の長い段落なので、トップの「句ごとに折る」はやめて普通に折る */
.ym-hero .lp-p { max-width: 34em; }
.ym-hero .lp-bk2 { max-width: 560px; }
.ym-hero .lp-btn-o, .ym-end .lp-btn-o { align-self: auto; min-height: 48px; }
.ym-soon { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px dashed var(--lp-chip); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 700; color: var(--fg-2); }
.ym-note { margin: 0; font-size: 13px; line-height: 1.8; color: var(--fg-2); }

.ym-head { max-width: 760px; gap: 14px; }
.ym-fig { margin: 30px 0 0; }
.ym-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--lp-line); border-radius: 12px; }
.ym-2 { --cols: minmax(0, 1fr) minmax(0, 420px); }
.ym-2.top { --cols: minmax(0, 380px) minmax(0, 1fr); }
.ym-kai { margin: 0; justify-self: center; max-width: 420px; }

.ym-list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .ym-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.ym-list.one { grid-template-columns: none; margin-top: 4px; gap: 14px; }
.ym-list li { display: grid; gap: 4px; padding-left: 14px; border-left: 3px solid var(--accent); }
.ym-list b { font-size: 15.5px; }
.ym-list span { font-size: 13.5px; line-height: 1.8; color: var(--fg-2); }

.ym-tbl { overflow-x: auto; background: var(--bg); border: 1px solid var(--lp-line); border-radius: 12px; }
.ym-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ym-tbl th, .ym-tbl td { padding: 10px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--lp-line-2); }
.ym-tbl thead th { font-size: 12px; font-weight: 700; color: var(--fg-3); background: var(--lp-alt); }
.ym-tbl tbody th { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ym-tbl tbody tr:nth-child(3) td, .ym-tbl tbody tr:nth-child(3) th { border-bottom-color: var(--lp-line); }
.ym-tbl tbody tr:last-child td { border-bottom: 0; }
.ym-tbl td small { display: block; font-size: 11.5px; line-height: 1.5; color: var(--fg-3); }
.ym-tbl .ym-t { white-space: nowrap; }
.ym-tbl .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 640px) { .ym-tbl th, .ym-tbl td { padding: 10px 14px; } }
.ym-tbl .lp-num { font-weight: 700; }
.ym-b { font: 700 19px/1 var(--num); color: var(--accent); }

.ym-pass { margin-top: 28px; padding: 18px 20px; background: var(--lp-alt); border: 1px solid var(--lp-line-3); border-radius: 12px; }
.ym-pass-h { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--lp-kick); }
.ym-pass dl { display: grid; gap: 10px; margin: 0; }
@media (min-width: 640px) { .ym-pass dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ym-pass dl > div { display: grid; gap: 2px; }
.ym-pass dt { font-size: 12px; color: var(--fg-3); }
.ym-pass dd { margin: 0; font-size: 14px; font-weight: 700; }
.ym-pass dd .lp-num { font-size: 20px; color: var(--accent); }

.ym-try { display: grid; gap: 12px; margin: 30px auto 0; padding: 0; list-style: none; max-width: 1040px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ym-try a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; background: var(--bg); border: 1px solid var(--lp-line); border-radius: 12px; color: var(--fg); transition: border-color .15s; }
.ym-try a:hover { border-color: var(--accent); }
.ym-try-no { font: 700 12.5px/1.4 var(--num); color: var(--fg-3); }
.ym-try b { font-size: 15.5px; line-height: 1.5; }
.ym-try .lp-tag { align-self: flex-start; color: var(--lp-kick); }
.ym-go { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }

.ym-end { justify-content: center; margin-top: 36px; }
.ym-fine { max-width: 52em; margin: 26px auto 0; font-size: 12px; line-height: 1.8; color: var(--lp-fg-4); text-align: center; }

/* ---------- 別冊（カラー） ---------- */
.bs-page { max-width: 860px; margin: 0 auto; padding-block: 18px 48px; }
.bs-book { margin: 0; font-size: 13px; }
.bs-book a { color: var(--fg-2); }
.bs-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 8px; }
.bs-hd h1 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 900; letter-spacing: .06em; }
.bs-kai { font: 700 16px/1 var(--num); letter-spacing: 0; padding: 6px 9px; border: 1.5px solid var(--fg); }
.bs-hd h1 small { padding: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); border: 1px solid #9fc1bb; border-radius: 999px; }
.bs-tabs { display: flex; gap: 6px; }
.bs-tabs a, .bs-tabs span { display: inline-grid; place-items: center; width: 44px; height: 44px; font: 700 16px/1 var(--num); color: var(--fg-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 10px; }
.bs-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.bs-tabs span { background: var(--accent); border-color: var(--accent); color: #fff; }
.bs-lead { margin: 14px 0 22px; font-size: 14px; line-height: 1.8; color: var(--fg-2); }
.bs-fig { margin: 0 0 24px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: calc(var(--head-h) + 12px); }
.bs-no { margin-bottom: 10px; font-size: 17px; font-weight: 900; }
.bs-no span { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--fg-3); }
.bs-part + .bs-part { margin-top: 16px; }
.bs-lab { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.bs-fig img { display: block; width: auto; height: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.bs-cr { margin: 10px 0 0; font-size: 12px; color: var(--fg-3); }
.bs-cr a { color: var(--fg-2); }
.bs-foot { display: grid; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.bs-foot p { margin: 0; }
.bs-foot p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
