.jwsAleaShootPage { margin: 0; background: #f2f6f8; color: #19333d; font-family: system-ui, sans-serif; }
.jwsAleaShoot { box-sizing: border-box; max-width: 1080px; margin: 0 auto; padding: 40px 120px 60px 24px; }
.jwsAleaShoot [hidden] { display: none !important; }
.jwsAleaShootHeader > p:first-of-type { margin-top: 32px; font-size: 12px; letter-spacing: .18em; color: #287283; }
.jwsAleaShootHeader h1 { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 16px; background: none; color: inherit; border: 0; }
.jwsAleaShootHeader h1 span { font-size: .6em; font-weight: 500; }
.jwsAleaShootSettings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 24px; border: 1px solid #c8dde3; border-radius: 16px; background: #fff; }
.jwsAleaShootSettings label { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; }
.jwsAleaShootSettings select { width: 100%; min-height: 42px; font: inherit; padding: 8px; border: 1px solid #b6cdd5; border-radius: 8px; background: #fff; color: #19333d; }
.jwsAleaShootSettings input[type="checkbox"] { width: 22px; height: 22px; accent-color: #147b87; }
.jwsAleaShootNote { color: #526b75; font-size: 13px; line-height: 1.7; }
.jwsAleaShoot > .jwsAlea { margin: 24px 0; width: 100%; box-sizing: border-box; }
.jwsAleaShoot > .jwsAlea > h2, .jwsAleaShoot > .jwsAlea > p { display: none; }
.jwsAleaShootToolbar { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid #c8dde3; background: #fff; border-radius: 16px; z-index: 100; box-shadow: 0 8px 30px #19333d15; }
.jwsAleaShootToolbar button { display: grid; place-items: center; gap: 6px; width: 80px; min-height: 76px; border: 0; border-radius: 10px; padding: 8px; font: inherit; font-size: 12px; cursor: pointer; background: #edf6f8; color: #19333d; }
.jwsAleaShootToolbar button > span:first-child { font-size: 24px; }
.jwsAleaShootToolbar [data-shoot-start] > span:first-child { color: #c44050; }
.jwsAleaShootToolbar button:disabled { opacity: .4; cursor: wait; }
.jwsAleaShoot :focus-visible { outline: 3px solid #148c9e; outline-offset: 3px; }
.jwsAleaShoot [data-shoot-status] { white-space: pre-wrap; line-height: 1.7; }
.jwsAleaShootScreen { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #030a0e; color: #fff; overflow: hidden; }
.jwsAleaShootScreen[open] { display: flex; align-items: center; justify-content: center; }
.jwsAleaShootScreen::backdrop { background: #030a0e; }
.jwsAleaShootStage, .jwsAleaShootStage.jwsAlea { position: relative; flex: none; width: min(100vw, 177.7778dvh); height: min(56.25vw, 100dvh); margin: 0; padding: 0; max-width: none; overflow: hidden; border: 0; border-radius: 0; background: #eef8fa; color: #19333d; container-type: inline-size; }
.jwsAleaShootStage[data-aspect="portrait"] { width: min(100vw, 56.25dvh); height: min(177.7778vw, 100dvh); }
.jwsAleaShootBrand { position: absolute; top: 5%; left: 5%; z-index: 2; font-size: clamp(18px, 3cqw, 38px); font-weight: 800; letter-spacing: -.04em; }
.jwsAleaShootBrand span { display: inline-block; padding-left: 16px; font-size: .35em; font-weight: 600; letter-spacing: .2em; }
.jwsAleaShootCurtain { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 8%; box-sizing: border-box; background: #030a0e; color: #fff; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.jwsAleaShootCurtain.is-visible { opacity: 1; visibility: visible; }
.jwsAleaShootCurtain p { margin: 0; max-width: 100%; font-size: clamp(20px, 3.7cqw, 56px); line-height: 1.65; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; }
.jwsAleaShootStage[data-aspect="portrait"] .jwsAleaShootCurtain p { font-size: clamp(18px, 5.8cqw, 38px); }
.jwsAleaShootStage.jwsAlea .jwsAleaOverlay { position: absolute; inset: 15% 5% 6%; width: auto; height: auto; background: none; z-index: 1; padding: 0; }
/* 縦長撮影はスロットの高さを保ち、SNSの下部UI用に余白を広げる。 */
.jwsAleaShootStage.jwsAlea[data-aspect="portrait"] .jwsAleaOverlay { inset: 10% 5% 11%; }
.jwsAleaShootStage.jwsAlea .jwsAleaOverlay.overlay-on > .jwsAleaDialog { display: block; box-sizing: border-box; width: 100%; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.jwsAleaShootStage .jwsAleaModalControls,
.jwsAleaShootStage [data-alea-status],
.jwsAleaShootStage .jwsAleaGrammarActions { display: none !important; }
.jwsAleaShootStage.jwsAlea .jwsAleaDialog .jwsAleaCards { height: 100%; min-height: 0; overflow: hidden; gap: 20px; }
.jwsAleaShootStage.jwsAlea .jwsAleaDialog .jwsAleaCards article { min-height: 0; padding: 16px; grid-template-rows: 28px minmax(0, 1fr); }
.jwsAleaShootStage.jwsAlea .jwsAleaDialog [data-alea-items] { grid-template-rows: repeat(var(--shoot-grammar-count, 1), minmax(0, 1fr)); }
.jwsAleaShootStage.jwsAlea .jwsAleaDialog [data-alea-kind="word"] [data-alea-items] { grid-template-rows: repeat(var(--shoot-word-count, 1), minmax(0, 1fr)); }
.jwsAleaShootStage.jwsAlea .jwsAleaDialog .jwsAleaSlot { grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); }
.jwsAleaShootStage.jwsAlea .jwsAleaDialog .jwsAleaSlot.jwsAleaGrammarSlot { grid-template-rows: minmax(0, 1fr); }
.jwsAleaShootStage .jwsAleaSlot.is-idle { display: none !important; }
.jwsAleaShootStage[data-mode="word"] [data-alea-kind="grammar"],
.jwsAleaShootStage[data-mode="grammar"] [data-alea-kind="word"] { display: none !important; }
.jwsAleaShootStage.jwsAlea[data-mode="word"] .jwsAleaCards,
.jwsAleaShootStage.jwsAlea[data-mode="grammar"] .jwsAleaCards { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.jwsAleaShootStage.jwsAlea[data-aspect="portrait"] .jwsAleaDialog .jwsAleaCards { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jwsAleaShootStage.jwsAlea[data-aspect="portrait"][data-mode="word"] .jwsAleaDialog .jwsAleaCards,
.jwsAleaShootStage.jwsAlea[data-aspect="portrait"][data-mode="grammar"] .jwsAleaDialog .jwsAleaCards { grid-template-rows: minmax(0, 1fr); }
.jwsAleaShootStop { position: fixed; bottom: 12px; right: 12px; z-index: 10; padding: 10px 14px; border: 1px solid #ffffff60; border-radius: 8px; color: #fff; background: #16212bcc; font: inherit; font-size: 12px; opacity: 0; transition: opacity .2s; cursor: pointer; }
.jwsAleaShootStop:hover, .jwsAleaShootStop:focus-visible, .jwsAleaShootScreen.show-controls .jwsAleaShootStop { opacity: 1; }
@media (max-width: 640px) {
    .jwsAleaShoot { padding: 24px 90px 32px 14px; }
    .jwsAleaShootSettings { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .jwsAleaShootToolbar { right: 6px; padding: 6px; }
    .jwsAleaShootToolbar button { width: 62px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .jwsAleaShootCurtain, .jwsAleaShootStop { transition: none; } }
