/* そろけんクエスト ものがたり：公開ページのまわりの部分 */
:root { --sp-ink: #16131f; --sp-or: #ff7a1a; --sp-bg: #fff4dc; --sp-navy: #232a5c; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--sp-ink); background: var(--sp-bg);
  background-image: radial-gradient(rgba(255, 122, 26, 0.13) 1.5px, transparent 1.6px); background-size: 18px 18px;
  font-family: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: #b34a00; }
rt { font-size: 0.5em; }
.sp-head {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 14px; background: var(--sp-navy); color: #fff;
}
.sp-brand { display: flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none; font-weight: 900; }
.sp-brand-s { font-size: 12px; opacity: 0.85; }
.sp-brand-l { font-size: 18px; color: #ffd84a; }
.sp-home { color: #fff; font-size: 13px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.sp-main { max-width: 760px; margin: 0 auto; padding: 14px 10px 28px; }
.sp-card { background: #fff; border: 3px solid var(--sp-ink); border-radius: 16px; padding: 16px; margin: 18px 0; box-shadow: 5px 5px 0 var(--sp-ink); }
.sp-center { text-align: center; }
.sp-h1 { font-size: clamp(22px, 6.4vw, 34px); line-height: 1.5; margin: 4px 0 8px; font-weight: 900; }
.sp-h2 { font-size: 19px; margin: 0 0 8px; font-weight: 900; line-height: 1.6; }
.sp-title { padding: 6px 4px 10px; }
.sp-chap { margin: 0; font-weight: 800; color: #6a4a1f; font-size: 14px; }
.sp-epno, .sp-tag { display: inline-block; margin-right: 8px; padding: 0 10px; background: var(--sp-or); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 900; vertical-align: middle; line-height: 1.9; }
.sp-sum { margin: 0; font-size: 15px; }
.sp-cast { list-style: none; display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin: 0; }
.sp-cast li { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--sp-ink); border-radius: 999px; padding: 4px 14px 4px 4px; }
.sp-cast img, .sp-cast-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #ffd9a8; display: block; }
.sp-cast-n { font-size: 13px; font-weight: 800; line-height: 1.3; }
.sp-cast-n small { display: block; font-size: 10px; font-weight: 600; color: #6b6677; }
.sp-think { background: #f1fbff; }
.sp-q { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.sp-quiz { border-top: 2px dashed #9bb7c7; padding-top: 10px; }
.sp-quiz-q { margin: 0 0 6px; font-weight: 800; }
details summary { cursor: pointer; display: inline-block; padding: 8px 16px; border: 2px solid var(--sp-ink); border-radius: 999px; font-weight: 800; background: #fff; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { background: #ffe9a8; }
details p { margin: 8px 0 0; font-weight: 800; font-size: 18px; }
.sp-next { background: #fff9da; }
.sp-next p { margin: 0; font-weight: 700; }
.sp-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 18px 0; }
.sp-nav > :last-child { justify-self: end; }
.sp-btn { display: inline-block; min-height: 44px; padding: 8px 18px; background: var(--sp-or); color: #fff; border: 3px solid var(--sp-ink); border-radius: 999px; font-weight: 900; text-decoration: none; box-shadow: 3px 3px 0 var(--sp-ink); text-align: center; }
.sp-btn-sub { background: #fff; color: var(--sp-ink); }
.sp-btn-line { background: #06c755; font-size: 18px; padding: 10px 28px; }
.sp-btn:focus-visible, details summary:focus-visible, .sp-ep:focus-visible { outline: 3px solid #2f6bff; outline-offset: 3px; }
.sp-wait { color: #6b6677; font-weight: 700; font-size: 14px; }
.sp-hero { text-align: center; padding: 22px 10px 8px; }
.sp-hero-s { margin: 0; font-weight: 900; color: var(--sp-or); letter-spacing: 0.1em; }
.sp-hero-t { margin: 0; font-size: clamp(34px, 11vw, 56px); font-weight: 900; line-height: 1.3; color: var(--sp-navy); text-shadow: 3px 3px 0 #ffd84a; }
.sp-hero-t small { display: block; font-size: 0.42em; text-shadow: none; margin-top: 6px; }
.sp-hero-p { font-weight: 700; }
.sp-chapter { margin: 22px 0; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-ep { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; background: #fff; border: 3px solid var(--sp-ink); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 4px 4px 0 var(--sp-ink); }
.sp-ep-img { display: block; align-self: stretch; min-height: 92px; background: linear-gradient(180deg, #ffd98a, #9fdcff); }
.sp-ep-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-ep-b { padding: 8px 10px 8px 0; display: block; }
.sp-ep-b strong { font-size: 17px; }
.sp-ep-s { display: block; font-size: 13px; line-height: 1.6; color: #4b4658; }
.sp-cta { text-align: center; background: #f2fff5; }
.sp-cta p { margin: 6px 0; font-weight: 700; }
.sp-foot { text-align: center; font-size: 13px; padding: 16px 10px 28px; color: #4b4658; }
@media (min-width: 620px) { .sp-main { padding: 20px 16px 40px; } }
