/* Anna と学ぶ やり直し英会話：動画・台本・なりきり練習・入口・トップの目玉 */

/* ───── 動画 ───── */
.av { margin: 18px 0 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--sh1); }
.av-tabs { display: flex; gap: 6px; padding: 10px 10px 0; background: var(--bg2); }
.av-tabs button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--ink2); font: 800 14px var(--jp); padding: 11px 6px; border-radius: 12px 12px 0 0; cursor: pointer; }
.av-tabs button .ic { width: 17px; height: 17px; flex: none; }
.av-tabs button[aria-selected="true"] { background: var(--card); color: var(--pink); }
.av-frame { position: relative; aspect-ratio: 16 / 9; background: #0d1018; }
.av-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.av-cap { margin: 0; padding: 12px 16px 4px; font-size: 14px; line-height: 1.75; color: var(--ink2); }
.av-3 { margin: 10px 14px 12px; padding: 12px 14px; background: var(--pink-bg); border-radius: 14px; }
.av-3t { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-weight: 800; font-size: 14px; color: var(--pink); }
.av-3t .ic { width: 18px; height: 18px; }
.av-3 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.av-3 label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.6; color: var(--ink); }
.av-3 input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pink); flex: none; }
.av-3 b { margin-right: 8px; white-space: nowrap; }
.av-3 input:checked + span { color: var(--ink3); text-decoration: line-through; text-decoration-thickness: 1px; }
.av-credit { margin: 0; padding: 0 16px 14px; font-size: 12px; line-height: 1.7; color: var(--ink3); }
.av-credit a { color: var(--ink2); white-space: nowrap; } .av-credit .ic { width: 13px; height: 13px; vertical-align: -2px; margin-left: 2px; }
@media (min-width: 700px) { .av-3 ol { grid-template-columns: repeat(3, 1fr); gap: 12px; } .av-3 label { flex-direction: column; gap: 6px; } .av-3 b { display: block; } }

/* ───── 台本 ───── */
.dg { margin: 16px 0 26px; }
.dg-tools { position: sticky; top: var(--hd-h, 58px); z-index: 5; background: var(--bg); padding: 10px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dg-modes, .dg-roles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dg .chip { cursor: pointer; font-size: 13px; padding: 7px 12px; }
.dg .chip[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
:root[data-theme="dark"] .dg .chip[aria-pressed="true"] { color: #1a1220; }
.dg-role { margin-top: 8px; }
.dg-role > p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink2); }
.dg-role > p .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--pink); }
.dg-role > p b { margin-right: 8px; color: var(--ink); }
.dg-msg { margin: 8px 0 0; font-size: 12.5px; color: var(--ink3); line-height: 1.6; min-height: 1.6em; }
.dg.is-run .dg-msg { color: var(--pink); font-weight: 700; }
.dg-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dg-l, .an-cast li { --sc: var(--sky); --sb: var(--sky-bg); }
.dg-l { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 14px; scroll-margin-top: 220px; }
.dg-s1 { --sc: var(--pink); --sb: var(--pink-bg); } .dg-s2 { --sc: var(--green); --sb: var(--green-bg); } .dg-s3 { --sc: var(--orange); --sb: var(--orange-bg); } .dg-s4 { --sc: var(--violet); --sb: var(--violet-bg); } .dg-s5 { --sc: var(--teal); --sb: var(--teal-bg); }
.dg-nar { --sc: var(--ink3); --sb: var(--bg2); }
.dg-who { grid-column: 1 / -1; justify-self: start; font: 800 12px var(--en), var(--jp); letter-spacing: .02em; color: var(--sc); background: var(--sb); border-radius: 999px; padding: 2px 10px; }
.dg-b { min-width: 0; }
.dg-en { margin: 0; font: 600 17px/1.6 var(--en), var(--jp); color: var(--ink); overflow-wrap: anywhere; }
.dg-en strong { font-weight: 800; color: var(--sc); border-radius: 6px; }
.dg-ja { margin: 3px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink2); }
.dg-n { margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink2); background: var(--bg2); border-radius: 10px; padding: 6px 10px; }
.dg-say { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--sc); display: grid; place-items: center; cursor: pointer; }
.dg-say .ic { width: 22px; height: 22px; }
.dg-say.on { background: var(--sc); color: #fff; border-color: var(--sc); }
.dg-l.cur { border-color: var(--sc); box-shadow: 0 0 0 3px var(--sb); }

/* 見せ方の切り替え */
.dg[data-mode="en"] .dg-ja, .dg[data-mode="en"] .dg-n { display: none; }
.dg[data-mode="ja"] .dg-n { display: none; }
.dg[data-mode="ja"] .dg-l:not(.open) .dg-en, .dg-l.mine:not(.open) .dg-en { color: transparent; background: repeating-linear-gradient(135deg, var(--bg2) 0 8px, var(--card) 8px 16px); border-radius: 8px; cursor: pointer; user-select: none; position: relative; min-height: 1.6em; }
.dg[data-mode="ja"] .dg-l:not(.open) .dg-en strong, .dg-l.mine:not(.open) .dg-en strong { color: transparent; }
.dg[data-mode="ja"] .dg-l:not(.open) .dg-en::after, .dg-l.mine:not(.open) .dg-en::after { content: "英語で言ってから、タップ"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink3); font: 700 12px var(--jp); }
.dg-l.mine.cur:not(.open) .dg-en::after { content: "あなたの番です。言えたらタップ"; color: var(--pink); }
.dg[data-mode="ja"] .dg-ja, .dg-l.mine .dg-ja { font-size: 15.5px; color: var(--ink); font-weight: 600; }
.dg[data-mode="blank"] .dg-ja, .dg[data-mode="blank"] .dg-n { display: none; }
.dg[data-mode="blank"] .dg-en strong:not(.open) { color: transparent; background: var(--sb); box-shadow: inset 0 -2px 0 var(--sc); cursor: pointer; user-select: none; padding: 0 4px; }
.dg-l.mine .dg-n { display: none; }

/* ───── VOA 公式の教材・出典 ───── */
.voa { margin: 22px 0; padding: 16px; background: var(--bg2); border-radius: 18px; }
.voa-t { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-weight: 800; font-size: 15px; }
.voa-t .ic { width: 18px; height: 18px; color: var(--pink); }
.voa-as { display: grid; gap: 8px; margin: 0 0 10px; }
.voa-as a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.voa-as a:hover { border-color: var(--pink); }
.voa-as b { display: block; font-size: 14.5px; line-height: 1.5; } .voa-as small { display: block; font-size: 12.5px; color: var(--ink3); line-height: 1.6; }
.voa-as .ic { color: var(--pink); } .voa-as .ic:last-child { width: 18px; height: 18px; color: var(--ink3); }
.voa-c { margin: 0 0 8px; font-size: 12.5px; line-height: 1.8; color: var(--ink2); } .voa-c:last-child { margin-bottom: 0; }
@media (min-width: 700px) { .voa-as { grid-template-columns: 1fr 1fr; } .voa-as:has(a:only-child) { grid-template-columns: 1fr; } }

/* ───── コースの入口 ───── */
.an-hero { position: relative; display: block; width: 100%; max-width: 440px; justify-self: center; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 44px -22px rgba(40, 10, 30, .55); aspect-ratio: 16 / 9; background: #0d1018; }
.an-hero img, .ac-th img, .ah-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-hero i, .ac-pl, .ah-c i { position: absolute; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #cf3f7c; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.an-hero i { left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; } .an-hero i .ic { width: 40px; height: 40px; }
.an-feats { display: grid; gap: 10px; }
.an-feats > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; }
.an-feats .ic { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: var(--pink-bg); color: var(--pink); box-sizing: content-box; align-self: start; }
.an-feats b { font-size: 15.5px; } .an-feats p { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--ink2); }
@media (min-width: 760px) { .an-feats { grid-template-columns: 1fr 1fr; } }
.an-cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.an-cast li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.an-cast .dg-who { display: inline-block; margin-bottom: 4px; }
.an-cast b { display: block; font-size: 15px; } .an-cast p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink2); }
@media (min-width: 760px) { .an-cast { grid-template-columns: repeat(3, 1fr); } }
.acs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); height: 100%; }
.ac:hover { border-color: var(--pink); box-shadow: var(--sh1); }
.ac-th { position: relative; display: block; aspect-ratio: 16 / 9; background: #0d1018; }
.ac-no { position: absolute; left: 8px; top: 8px; font: 800 11.5px var(--jp); font-style: normal; background: rgba(20, 16, 28, .82); color: #fff; border-radius: 999px; padding: 3px 9px; }
.ac-pl { right: 8px; bottom: 8px; width: 34px; height: 34px; } .ac-pl .ic { width: 22px; height: 22px; }
.ac.is-done .ac-pl { background: var(--ok); color: #fff; } .ac.is-done .ac-no::after { content: "　済"; }
.ac-b { display: block; padding: 10px 12px 12px; }
.ac-b b { display: block; font: 800 15px/1.4 var(--en), var(--jp); } .ac-b > span { display: block; font-size: 12.5px; color: var(--ink2); line-height: 1.5; margin-top: 2px; }
.ac-b small { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--pink); background: var(--pink-bg); border-radius: 999px; padding: 2px 9px; }
@media (min-width: 760px) { .acs { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .acs { grid-template-columns: repeat(6, 1fr); } .ac-b b { font-size: 14px; } }

/* ───── トップページの目玉 ───── */
.ah { display: grid; gap: 20px; align-items: center; background: linear-gradient(135deg, #3a1230, #7a1f55 55%, #c2416f); color: #fff; border-radius: 28px; padding: 24px 20px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(80, 10, 50, .85); }
.ah .k { color: #ffd0a3; font: 800 12px var(--en); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 6px; }
.ah h2 { font-size: clamp(22px, 5.6vw, 32px); font-weight: 900; line-height: 1.4; margin: 0 0 10px; color: #fff; }
.ah h2 span { font: italic 700 .72em Georgia, "Times New Roman", serif; color: #ffd9e6; letter-spacing: .02em; }
.ah-t > p { color: #f6dbe7; font-size: 14.5px; line-height: 1.85; margin: 0 0 12px; }
.ah-pts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ah-pts li { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; }
.ah-pts .ic { width: 15px; height: 15px; }
.ah .btn { background: #ffb347; color: #3a1230; }
.ah-all { display: inline-flex; align-items: center; gap: 2px; margin-left: 12px; color: #fff; font-weight: 700; font-size: 13.5px; } .ah-all .ic { width: 16px; height: 16px; }
.ah-v { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ah-c { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #0d1018; text-decoration: none; color: #fff; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .7); }
.ah-c i { right: 6px; top: 6px; width: 28px; height: 28px; } .ah-c i .ic { width: 18px; height: 18px; }
.ah-c span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(transparent, rgba(10, 6, 16, .88)); }
.ah-c small { display: block; font-size: 10.5px; font-weight: 700; opacity: .9; } .ah-c b { display: block; font: 800 12px/1.3 var(--en); }
@media (min-width: 800px) {
  .ah { grid-template-columns: 1.1fr .9fr; padding: 38px 40px; gap: 32px; }
  .ah-v { grid-template-columns: 1fr 1fr; gap: 12px; } .ah-c0 { grid-column: 1 / -1; aspect-ratio: 16 / 9; } .ah-c b { font-size: 14px; } .ah-c small { font-size: 11.5px; }
}
@media (prefers-reduced-motion: no-preference) { .ac, .ah-c, .an-hero { transition: transform .18s ease, box-shadow .18s ease; } .ac:hover, .ah-c:hover, .an-hero:hover { transform: translateY(-2px); } }

/* 通し練習の間は、道具の列を「止める」ボタンと案内だけにする。スマホでは、練習中だけ上に固定する */
.dg.is-run .dg-modes, .dg.is-run .dg-role > p, .dg.is-run [data-dg-role] { display: none; }
.dg.is-run .dg-role { margin-top: 0; }
@media (max-width: 699px) { .dg:not(.is-run) .dg-tools { position: static; } .dg-l { scroll-margin-top: 150px; } }

/* 著作権（パブリックドメイン）の説明 */
.voa-pd { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; } .voa-pd:last-child { margin-bottom: 0; }
.voa-pd-t { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 800; font-size: 15px; color: var(--ink); } .voa-pd-t .ic { width: 19px; height: 19px; color: var(--pink); flex: none; }
.voa-pd p:not(.voa-pd-t) { margin: 0 0 6px; font-size: 13px; line-height: 1.85; color: var(--ink2); } .voa-pd p:last-child { margin-bottom: 0; }
.voa-pd a { color: var(--ink); white-space: nowrap; } .voa-pd a .ic { width: 13px; height: 13px; vertical-align: -2px; margin-left: 2px; }
.av-credit b { color: var(--ink2); }
.ah-pd { margin: 14px 0 0 !important; font-size: 11.5px !important; line-height: 1.7 !important; color: #f0c8d9 !important; }
