/* 時事英語ジュニア — 中高生のアプリの形（ストーリー・コンセプトの帯・きょうの目標・入試に出る・ストーリーの全画面・ショート） */

/* ---------- ストーリーの丸（Instagram） ---------- */
.stories { background: #fff; border-bottom: var(--bw) solid var(--ink); }
.st-row { list-style: none; margin: 0; padding: 12px 0 10px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.st-row::-webkit-scrollbar { display: none; }
.st-row li { flex: none; }
.st { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; text-decoration: none; color: var(--ink); }
.st-ring { position: relative; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--sky), #7fd6ff, var(--sky-d), var(--sky)); display: grid; place-items: center; transition: transform 0.15s; }
.st-ring::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.st-ring img { position: relative; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.st:hover .st-ring { transform: scale(1.06); }
.st.seen .st-ring { background: #c8d3da; }
.st-new, .st-ex { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); font-family: var(--f-en); font-weight: 800; font-size: 9.5px; letter-spacing: 0.06em; line-height: 1; padding: 3px 6px; border-radius: 6px; border: 2px solid #fff; white-space: nowrap; }
.st-new { background: var(--red); color: #fff; }
.st-ex { background: var(--yellow); color: var(--ink); font-family: var(--f-ja); font-weight: 900; }
.st-c { font-size: 10px; font-weight: 900; line-height: 1.2; color: var(--sky-dd); margin-top: 7px; }
.st-l { font-size: 11px; font-weight: 700; line-height: 1.35; width: 84px; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-hd { margin: 0; padding: 10px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sr-hd b { font-weight: 900; font-size: 15px; }
.sr-hd b::before { content: '▶'; color: var(--red); margin-right: 5px; font-size: 12px; }
.sr-hd span { font-size: 12px; font-weight: 700; color: #4b5b66; }

/* ---------- コンセプトの帯（はじめての人に、一言で） ---------- */
.concept { position: relative; overflow: hidden; color: #fff; background: radial-gradient(800px 420px at 85% 20%, rgba(30, 167, 225, 0.38), transparent 60%), radial-gradient(600px 400px at 10% 90%, rgba(30, 167, 225, 0.22), transparent 60%), #071226; padding: 40px 0 92px; border-bottom: var(--bw) solid var(--ink); }
.concept::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.5px); background-size: 46px 46px; opacity: 0.18; pointer-events: none; }
.cp-in { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cp-in { grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; } }
.cp-k { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; color: #cfe9f7; }
.cp-k b { color: var(--yellow); border-bottom: 2px solid var(--yellow); }
.cp-k span { margin-left: 4px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.cp-h { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 6.4vw, 66px); line-height: 1.18; letter-spacing: 0.01em; }
.cp-h span { display: block; white-space: nowrap; }
.cp-h em { font-style: normal; color: var(--sky); text-shadow: 0 0 28px rgba(30, 167, 225, 0.65); position: relative; }
.cp-h em::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: 0.06em; height: 0.18em; background: var(--yellow); border-radius: 4px; z-index: -1; opacity: 0.95; }
.cp-h i { font-style: normal; color: var(--yellow); }
.cp-sub { display: block; margin-top: 12px; font-family: var(--f-ja); font-weight: 900; font-size: 15px; letter-spacing: 0.04em; color: #9fe0ff; }
.cp-d { margin: 16px 0 18px; font-size: 15.5px; line-height: 1.85; color: #dbeaf3; max-width: 640px; }
.cp-d b { color: #fff; background: linear-gradient(transparent 62%, rgba(255, 220, 60, 0.45) 62%); }
.cp-ex { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; max-width: 680px; }
.cp-ex a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 14px; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.cp-ex a:hover { background: rgba(30, 167, 225, 0.25); transform: translateX(3px); }
.cp-ja { font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18em; }
.cp-ex i { font-style: normal; color: var(--yellow); font-weight: 900; }
.cp-en { font-family: var(--f-en); font-weight: 700; font-size: 13.5px; color: var(--ink); background: var(--yellow); border-radius: 6px; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-stats { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cp-stats li { min-width: 108px; padding: 8px 14px 10px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 14px; background: rgba(0, 0, 0, 0.25); font-size: 12px; font-weight: 900; color: #cfe9f7; line-height: 1.2; }
.cp-stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 30px; color: var(--yellow); letter-spacing: 0.02em; }
.cp-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.btn-lg { font-size: 16px; padding: 13px 24px; border-radius: 999px; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.concept .btn-y { box-shadow: 0 0 0 0 transparent, 4px 4px 0 #000; }
.cp-quote { margin: 0; font-size: 13px; font-weight: 700; color: #9fc4d8; border-left: 3px solid var(--sky); padding-left: 10px; }
/* スマホの画面 */
.cp-phone { justify-self: center; display: block; width: min(300px, 74vw); aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 10px; background: #0d0d0d; border: 2px solid #3a4a5a; box-shadow: 0 0 0 4px #000, 0 30px 80px rgba(30, 167, 225, 0.45); transform: rotate(3deg); transition: transform 0.3s; text-decoration: none; }
.cp-phone:hover { transform: rotate(0deg) translateY(-4px); }
.ph-scr { position: relative; display: block; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #000; isolation: isolate; }
.ph-scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ph-scr::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 22%, transparent 42%, rgba(0, 0, 0, 0.88)); }
.ph-top { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; align-items: center; color: #fff; font-size: 13px; font-weight: 900; }
.ph-top i { font-style: normal; font-size: 11px; border: 1.5px solid #fff; border-radius: 999px; padding: 0 8px; }
.ph-b { position: absolute; left: 14px; right: 50px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.ph-cat { align-self: flex-start; font-size: 11px; font-weight: 900; background: var(--c, var(--sky)); padding: 2px 8px; border-radius: 6px; }
.ph-en { font-family: var(--f-en); font-weight: 800; font-size: 18px; line-height: 1.25; }
.ph-ja { font-size: 11.5px; font-weight: 700; line-height: 1.5; color: #e3eef5; }
.ph-play { align-self: flex-start; font-family: var(--f-en); font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 3px 10px; }
.ph-side { position: absolute; right: 8px; bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
.ph-side i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 900; font-family: var(--f-en); }
/* 斜めに流れるテープ */
.tape { position: absolute; left: -5%; right: -5%; overflow: hidden; border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); white-space: nowrap; }
.tape-a { bottom: 34px; background: var(--yellow); color: var(--ink); transform: rotate(-2deg); z-index: 2; }
.tape-b { bottom: 30px; background: var(--sky); color: #fff; transform: rotate(1.6deg); z-index: 1; }
.tape-in { display: inline-flex; animation: tape 60s linear infinite; }
.tape-b .tape-in { animation-direction: reverse; animation-duration: 70s; }
.tape span { font-family: var(--f-display); font-size: 17px; padding: 7px 0; letter-spacing: 0.04em; }
.tape span::after { content: '◆'; margin: 0 18px; font-size: 12px; vertical-align: 2px; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-in { animation: none; } }
@media (max-width: 759px) {
  .concept { padding: 26px 0 80px; }
  .cp-h { font-size: clamp(28px, 8.6vw, 40px); }
  .cp-d { font-size: 14px; }
  .cp-d .pc { display: none; }
  .cp-ex a { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 8px 12px; }
  .cp-ex i { display: none; }
  .cp-ja { font-size: 13px; max-width: none; }
  .cp-en { font-size: 12.5px; justify-self: start; max-width: 100%; }
  .cp-stats { gap: 8px; }
  .cp-stats li { min-width: 0; flex: 1; padding: 6px 10px 8px; font-size: 11px; }
  .cp-stats b { font-size: 22px; }
  .cp-btns .btn { flex: 1; justify-content: center; text-align: center; padding: 12px 10px; font-size: 15px; }
  .cp-phone { display: none; }
  .tape span { font-size: 14px; }
}

/* ---------- きょうの目標（Duolingo） ---------- */
.goal { margin-top: 22px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 16px; align-items: center; background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: var(--sh); padding: 14px 18px; }
.gl-fire { display: flex; flex-direction: column; align-items: center; line-height: 1; min-width: 64px; }
.gl-flame { font-size: 30px; filter: grayscale(1); opacity: 0.45; transition: filter 0.3s, opacity 0.3s; }
.goal.on .gl-flame { filter: none; opacity: 1; animation: flame 1.6s ease-in-out infinite; }
@keyframes flame { 50% { transform: scale(1.12) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .goal.on .gl-flame { animation: none; } }
.gl-fire b { font-family: var(--f-display); font-weight: 400; font-size: 28px; color: #ff7a00; }
.gl-fire small { font-size: 11px; font-weight: 900; }
.gl-ring { position: relative; width: 62px; height: 62px; }
.gl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gl-ring circle { fill: none; stroke-width: 6; }
.gl-bg { stroke: var(--sky-l); }
.gl-fg { stroke: var(--sky); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 0.6s; }
.gl-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-en); font-weight: 800; font-size: 14px; }
.gl-ring b { font-size: 20px; }
.gl-t { margin: 0 0 6px; font-weight: 900; font-size: 16px; }
.gl-t small { font-size: 12px; color: var(--ink2); margin-left: 6px; }
.goal .mission { list-style: none; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; display: flex; flex-wrap: wrap; gap: 6px; }
.goal .mission li { font-size: 12.5px; font-weight: 900; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px 3px 28px; position: relative; background: #fff; }
.goal .mission li::before { content: ''; position: absolute; left: 8px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; border: 2px solid var(--ink); }
.goal .mission li.done { background: var(--sky-l); color: var(--sky-dd); }
.goal .mission li.done::before { background: var(--green); border-color: var(--green); }
.goal .mission b { color: var(--sky-d); margin-left: 4px; }
.gl-me { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.gl-me > b { font-family: var(--f-display); font-weight: 400; font-size: 15px; }
.gl-me span b { font-family: var(--f-en); font-size: 18px; color: var(--sky-d); }
.gl-me a { font-size: 12px; }
@media (max-width: 759px) {
  .goal { grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; padding: 12px; margin-top: 16px; }
  .gl-me { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
  .gl-me a { margin-left: auto; }
  .gl-ring { width: 52px; height: 52px; }
  .gl-t small { display: block; margin: 2px 0 0; }
  .goal .mission li { font-size: 11.5px; padding: 2px 9px 2px 24px; }
  .goal .mission li::before { left: 6px; width: 11px; height: 11px; margin-top: -5.5px; }
}

/* ---------- 入試に出る ---------- */
.exs-d { margin: -4px 0 14px; font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.exs-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.exs-l a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: start; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); padding: 10px; text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.exs-l a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.exs-l img { width: 116px; height: 86px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--ink); }
.exs-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exs-r { align-self: flex-start; font-size: 11.5px; font-weight: 900; background: var(--ink); color: #fff; border-radius: 6px; padding: 1px 8px; }
.exs-r b { color: var(--yellow); margin-left: 4px; letter-spacing: 0.05em; }
.exs-th { display: flex; flex-wrap: wrap; gap: 4px; }
.exs-th i { font-style: normal; font-size: 11px; font-weight: 900; color: var(--sky-dd); background: var(--sky-l); border-radius: 999px; padding: 0 8px; }
.exs-t { font-weight: 900; font-size: 14.5px; line-height: 1.5; }
.exs-p { font-family: var(--f-en); font-size: 12px; font-weight: 600; color: var(--sky-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 759px) { .exs-l { grid-template-columns: minmax(0, 1fr); } .exs-l a { grid-template-columns: 92px minmax(0, 1fr); } .exs-l img { width: 92px; height: 70px; } }

/* ---------- 先生へ ---------- */
.tcta { margin: 34px 0 10px; padding: 22px 24px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--sky); color: #fff; box-shadow: var(--sh); }
.tcta-k { margin: 0; font-family: var(--f-en); font-weight: 800; font-size: 11px; letter-spacing: 0.16em; color: var(--yellow); }
.tcta h2 { margin: 2px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 3vw, 26px); line-height: 1.35; }
.tcta p { margin: 0 0 12px; font-weight: 700; font-size: 14px; }
.tcta-b { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }

/* ---------- ストーリーの全画面 ---------- */
.sv { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.sv-box { position: relative; width: min(100vw, calc(100dvh * 9 / 16), 480px); height: min(100dvh, 860px); background: #111; color: #fff; overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 600px) { .sv-box { border-radius: 18px; height: min(94dvh, 860px); width: min(480px, calc(94dvh * 9 / 16)); } }
.sv-head { position: absolute; top: 50px; left: 10px; right: 10px; z-index: 5; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 900; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.sv-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.sv-head .sv-btn { margin-left: auto; }
.sv-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 18px; display: grid; place-items: center; }
.sv-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: safe flex-end; padding: 100px 20px 84px; isolation: isolate; overflow-y: auto; }
.sv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sv-slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 20%, transparent 40%, rgba(0, 0, 0, 0.9)); }
.sv-slide.dim::after { background: rgba(4, 14, 30, 0.86); }
.sv-cat { align-self: flex-start; font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 6px; background: var(--c, var(--sky)); margin: 0 0 10px; }
.sv-ex { align-self: flex-start; font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 6px; background: var(--yellow); color: var(--ink); margin: 0 0 10px; }
.sv-t { margin: 0 0 8px; font-weight: 900; font-size: 22px; line-height: 1.45; }
.sv-en { margin: 0; font-family: var(--f-en); font-weight: 700; font-size: 16px; color: #9fe0ff; line-height: 1.4; }
.sv-k { margin: 0 0 6px; font-family: var(--f-en); font-weight: 800; font-size: 12px; letter-spacing: 0.16em; color: var(--yellow); }
.sv-h2 { margin: 0 0 16px; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.3; }
.sv-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.sv-sum li { counter-increment: s; position: relative; padding: 12px 14px 12px 50px; background: rgba(255, 255, 255, 0.1); border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 14px; font-weight: 700; font-size: 15.5px; line-height: 1.65; }
.sv-sum li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: #fff; font-family: var(--f-en); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.sv-sents { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-sents li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); transition: background 0.2s; }
.sv-sents li.on { background: rgba(30, 167, 225, 0.45); }
.sv-sents p { margin: 0; font-family: var(--f-en); font-weight: 600; font-size: 17px; line-height: 1.5; }
.sv-sents small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #cfe2ec; line-height: 1.55; }
.sv-sents.noja small { display: none; }
.sv-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sv-pill { border: 2px solid #fff; background: transparent; color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 900; font-size: 13px; }
.sv-pill.on { background: #fff; color: var(--ink); }
.sv-q { margin: 0 0 4px; font-family: var(--f-en); font-weight: 700; font-size: 19px; line-height: 1.4; }
.sv-qj { margin: 0 0 14px; font-size: 13px; font-weight: 700; color: #cfe2ec; }
.sv-ch { display: grid; gap: 9px; }
.sv-ch button { text-align: left; border: 2px solid #fff; background: rgba(255, 255, 255, 0.08); color: #fff; border-radius: 14px; padding: 12px 14px; font-family: var(--f-en); font-weight: 700; font-size: 16px; display: flex; gap: 10px; align-items: center; }
.sv-ch button i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 13px; color: #fff; }
.sv-ch button:nth-child(1) i { background: #e5212f; }
.sv-ch button:nth-child(2) i { background: #1c7ed6; }
.sv-ch button:nth-child(3) i { background: #f59f00; }
.sv-ch button:nth-child(4) i { background: #12a150; }
.sv-ch button.ok { background: var(--green); border-color: var(--green); }
.sv-ch button.ng { background: rgba(229, 33, 47, 0.55); border-color: #e5212f; }
.sv-ch button:disabled { cursor: default; }
.sv-why { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.sv-why b { color: var(--yellow); margin-right: 6px; }
.sv-voc { display: grid; gap: 10px; margin: 0 0 12px; }
.sv-voc button { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; text-align: left; border: 2px solid #fff; background: rgba(255, 255, 255, 0.08); color: #fff; border-radius: 14px; padding: 12px 14px; }
.sv-voc b { font-family: var(--f-en); font-weight: 800; font-size: 24px; }
.sv-voc span { font-weight: 900; font-size: 14px; }
.sv-voc em { font-style: normal; font-family: var(--f-en); font-size: 11px; font-weight: 800; background: var(--sky); border-radius: 5px; padding: 0 6px; }
.sv-voc button::after { content: '🔊'; margin-left: auto; }
.sv-exb { padding: 12px 14px; border-radius: 14px; background: var(--yellow); color: var(--ink); margin: 0 0 12px; }
.sv-exb p { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.6; }
.sv-exb .sv-exr { font-weight: 900; font-size: 14px; margin-bottom: 4px; }
.sv-exb .sv-exp { font-family: var(--f-en); font-weight: 700; margin-top: 6px; }
.sv-go { display: flex; gap: 10px; }
.sv-go a, .sv-go button { flex: 1; text-align: center; justify-content: center; }
.sv-side { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 22px; z-index: 2; display: none; }
@media (min-width: 760px) { .sv-side { display: grid; place-items: center; } .sv-side.p { left: calc(50% - 300px); } .sv-side.n { right: calc(50% - 300px); } }
.sv-head small { opacity: 0.85; font-size: 11.5px; }
.sv-steps { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 5; list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.sv-steps li { flex: 1; }
.sv-steps button { width: 100%; border: 0; border-radius: 8px; padding: 5px 2px; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.75); font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; }
.sv-steps b { font-family: var(--f-en); font-size: 10px; width: 15px; height: 15px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); display: grid; place-items: center; }
.sv-steps .done button { background: rgba(30, 167, 225, 0.45); color: #fff; }
.sv-steps .now button { background: #fff; color: var(--ink); }
.sv-steps .now b { background: var(--sky); color: #fff; }
.sv-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 40%); }
.sv-back { flex: none; border: 2px solid rgba(255, 255, 255, 0.7); background: transparent; color: #fff; border-radius: 999px; padding: 0 16px; font-weight: 900; font-size: 14px; }
.sv-back:disabled { opacity: 0.3; }
.sv-next { flex: 1; border: 0; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 13px 16px; font-weight: 900; font-size: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.sv-next.pulse { animation: svPulse 1.2s ease-in-out infinite; }
@keyframes svPulse { 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(255, 210, 61, 0.35); } }
@media (prefers-reduced-motion: reduce) { .sv-next.pulse { animation: none; } }
.sv-tip { margin: 14px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.5); font-size: 13px; font-weight: 700; }
.sv-pill.big { padding: 10px 16px; font-size: 14.5px; border-color: var(--yellow); }
.sv-pill.on[data-svplay] { background: var(--sky); border-color: var(--sky); color: #fff; }
html.sv-open, html.sv-open body { overflow: hidden; }

/* ---------- ショート（TikTok） ---------- */
.p-shorts .topbar, .p-shorts .mast, .p-shorts .gnav, .p-shorts .sch-mw, .p-shorts .foot, .p-shorts .ticker, .p-shorts .totop { display: none !important; }
.p-shorts { background: #000; }
.sh { position: fixed; inset: 0 0 var(--tb, 0px) 0; background: #000; color: #fff; }
.sh-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }
.sh-top > * { pointer-events: auto; }
.sh-back { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-size: 30px; line-height: 1; background: rgba(0, 0, 0, 0.3); }
.sh-h { margin: 0; display: flex; flex-direction: column; line-height: 1.1; }
.sh-h span { font-family: var(--f-display); font-weight: 400; font-size: 18px; }
.sh-h small { font-size: 10.5px; font-weight: 700; opacity: 0.8; }
.sh-lv { margin-left: auto; display: flex; border: 2px solid #fff; border-radius: 999px; overflow: hidden; }
.sh-lv button { border: 0; background: transparent; color: #fff; font-weight: 900; font-size: 12.5px; padding: 4px 12px; }
.sh-lv button.on { background: #fff; color: var(--ink); }
.sh-snd { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 17px; display: grid; place-items: center; }
.sh-snd[aria-pressed='true'] { background: var(--sky); border-color: var(--sky); }
.sh-feed { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.sh-feed::-webkit-scrollbar { display: none; }
.sh-card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; isolation: isolate; display: flex; justify-content: center; }
.sh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.sh-blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; z-index: -4; filter: blur(24px) brightness(0.5); }
.sh-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 18%, transparent 38%, rgba(0, 0, 0, 0.92) 88%); }
.sh-col { position: relative; width: 100%; max-width: 520px; height: 100%; }
@media (min-width: 760px) { .sh-img { position: absolute; left: 50%; width: min(520px, 100%); transform: translateX(-50%); } }
.sh-b { position: absolute; left: 16px; right: 76px; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.sh-cat { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-cat span { font-size: 12px; font-weight: 900; background: var(--c, var(--sky)); padding: 2px 10px; border-radius: 6px; }
.sh-cat .ex { background: var(--yellow); color: var(--ink); }
.sh-cat .x { background: #000; border: 1px solid #fff; }
.sh-en { margin: 0; font-family: var(--f-en); font-weight: 800; font-size: clamp(22px, 6vw, 28px); line-height: 1.22; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.sh-ja { margin: 0; font-weight: 900; font-size: 14px; line-height: 1.55; color: #e9f2f7; }
.sh-s { margin: 0; font-family: var(--f-en); font-size: 15px; font-weight: 500; line-height: 1.5; color: #fff; background: rgba(0, 0, 0, 0.35); border-radius: 12px; padding: 8px 10px; }
.sh-s small { display: block; font-family: var(--f-ja); font-size: 12.5px; font-weight: 700; color: #cfe2ec; margin-top: 3px; }
.sh-s.on { outline: 2px solid var(--sky); }
.sh-card:not(.ja) .sh-s small { display: none; }
.sh-read { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; background: #fff; color: var(--ink); font-weight: 900; font-size: 14px; border-radius: 999px; padding: 8px 16px; text-decoration: none; border: 2px solid var(--ink); }
.sh-side { position: absolute; right: 10px; bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.sh-side button, .sh-side a { width: 50px; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: #fff; text-decoration: none; font-size: 11px; font-weight: 900; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); padding: 0; }
.sh-side i { font-style: normal; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, 0.42); border: 2px solid rgba(255, 255, 255, 0.85); display: grid; place-items: center; font-size: 20px; font-family: var(--f-en); font-weight: 800; transition: transform 0.15s, background 0.15s; }
.sh-side button:active i { transform: scale(0.88); }
.sh-side .liked i { background: #ff3b5c; border-color: #ff3b5c; }
.sh-side .liked i.pop { animation: likepop 0.4s; }
@keyframes likepop { 40% { transform: scale(1.3); } }
.sh-side .on i { background: var(--sky); border-color: var(--sky); }
/* クイズ（下から出る） */
.sh-quiz { position: absolute; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 6; background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); max-width: 500px; margin: 0 auto; }
.sh-quiz .sq-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 22px; }
.sh-quiz .sq-k { margin: 0 0 2px; font-family: var(--f-en); font-weight: 800; font-size: 11px; letter-spacing: 0.14em; color: var(--sky-d); }
.sh-quiz .sq-q { margin: 0 30px 2px 0; font-family: var(--f-en); font-weight: 700; font-size: 17px; line-height: 1.4; }
.sh-quiz .sq-qj { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.sh-quiz .sv-ch button { color: var(--ink); border-color: var(--ink); background: #fff; font-size: 15px; padding: 9px 12px; }
.sh-quiz .sv-ch button.ok { color: #fff; background: var(--green); border-color: var(--green); }
.sh-quiz .sv-ch button.ng { color: #fff; background: #e5212f; border-color: #e5212f; }
.sh-quiz .sv-why { background: var(--sky-l); }
.sh-quiz .sv-why b { color: var(--sky-dd); }
/* 単語チェックのカード（5枚ごと） */
.sh-wc { background: radial-gradient(500px 400px at 50% 30%, rgba(30, 167, 225, 0.45), transparent 70%), #071226; }
.sh-wc::after { display: none; }
.wc-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 80px 20px 40px; text-align: center; gap: 10px; }
.wc-k { margin: 0; font-family: var(--f-en); font-weight: 800; letter-spacing: 0.18em; font-size: 12px; color: var(--yellow); }
.wc-w { margin: 0; font-family: var(--f-en); font-weight: 800; font-size: clamp(40px, 12vw, 64px); line-height: 1.1; }
.wc-from { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #9fc4d8; }
.wc-ch { display: grid; gap: 10px; width: min(360px, 100%); }
.wc-ch button { border: 2px solid #fff; background: rgba(255, 255, 255, 0.08); color: #fff; border-radius: 14px; padding: 12px; font-weight: 900; font-size: 16px; }
.wc-ch button.ok { background: var(--green); border-color: var(--green); }
.wc-ch button.ng { background: rgba(229, 33, 47, 0.55); border-color: #e5212f; }
.wc-say { border: 2px solid #fff; background: transparent; color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 900; font-size: 13px; }
.sh-hint { position: absolute; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translateX(-50%); margin: 0; z-index: 8; background: rgba(0, 0, 0, 0.6); border: 1.5px solid #fff; color: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 900; font-size: 13px; pointer-events: none; animation: hint 1.6s ease-in-out infinite; white-space: nowrap; }
@keyframes hint { 50% { transform: translate(-50%, -8px); } }
.sh-hint.off { display: none; }
.sh-end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: #071226; }
.sh-end::after { display: none; }
.sh-end p { margin: 0; font-weight: 900; }
@media (min-width: 760px) {
  .sh-b { left: calc(50% - 244px); right: auto; width: 400px; }
  .sh-side { right: calc(50% - 254px); }
  .sh-keys { position: absolute; right: 16px; bottom: 16px; z-index: 9; font-size: 12px; font-weight: 700; color: #9fb3c0; }
}
@media (max-width: 759px) { .sh-keys { display: none; } }

/* ---------- ショートの使い方（はじめての人だけ） ---------- */
.sh-guide { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.72); }
.sh-guide[hidden] { display: none; }
.sg-in { width: min(400px, 100%); max-height: 100%; overflow-y: auto; background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 20px 18px; text-align: center; }
.sg-h { margin: 0 0 6px; font-weight: 900; font-size: 20px; }
.sg-d { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.sg-l { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; text-align: left; }
.sg-l li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.sg-l b { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-en); font-size: 17px; }
