.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.video-card{font:inherit;text-align:left;color:inherit;cursor:pointer}.video-card:focus-visible{outline:4px solid #237e75;outline-offset:4px}
#app>form.paper#video-filters{display:grid!important;grid-template-columns:minmax(0,1fr) 230px 155px;gap:14px 18px;padding:22px 28px;margin:0 0 24px;align-items:end}
#app>form.paper#video-filters>div{min-width:0}#app>form.paper#video-filters label{display:block;font-size:15px;font-weight:700;margin-bottom:5px}
#app>form.paper#video-filters input,#app>form.paper#video-filters select{display:block;width:100%;min-width:0;min-height:48px;padding:10px 12px;font:inherit;font-size:17px;border:2px solid var(--ink);border-radius:3px;background:#fffdf7;color:var(--ink)}
#app>form.paper#video-filters .video-filter-status{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px}#video-count{margin:0;font-size:15px}
#video-reset{border:0;background:transparent;color:#6c3d12;font:inherit;font-size:15px;font-weight:700;text-decoration:underline;min-height:44px;padding:6px 0}#video-reset[hidden]{display:none}
.video-more-row{display:flex;justify-content:center;margin:28px 0}.video-more-row button{min-width:240px;min-height:48px}.video-more-row button[hidden]{display:none}
.video-empty{grid-column:1/-1;padding:28px;background:#fff;border:2px solid var(--ink);border-radius:4px}.video-empty p{font-size:17px;line-height:1.8}
.video-player-bar,.video-step-nav{display:flex;justify-content:space-between;align-items:center;gap:12px}.video-player-bar>span{font-size:15px}.video-step-nav{margin-top:18px}.video-step-nav button{min-height:46px}.video-step-nav button:disabled{opacity:.42;cursor:default}
.video-media{aspect-ratio:16/9;background:#07121d}.video-media iframe,.video-media video{display:block;width:100%!important;height:100%!important;margin:0!important;border:0!important;border-radius:0;aspect-ratio:auto!important}
#video-player{scroll-margin-top:100px}#video-player h2{font-size:26px;margin:18px 0}#close-video{white-space:nowrap;min-height:44px}
.site-menu-open{overflow:hidden}.layout-toggle[hidden]{display:none!important}
#site-menu{position:fixed;inset:0 auto 0 0;margin:0;border:0;border-right:3px solid var(--ink);padding:18px;width:min(350px,90vw);height:100dvh;max-height:100dvh;max-width:90vw;background:#fffaf0;color:var(--ink);overflow-y:auto;overscroll-behavior:contain;box-shadow:8px 0 30px #0004}
#site-menu::backdrop{background:#1c171799}.site-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:2px solid var(--ink)}.menu-close{font:inherit;border:2px solid var(--ink);padding:9px 12px;min-height:44px;background:#fff}
#site-menu nav{display:flex;flex-direction:column;padding-top:10px}#site-menu nav a{display:block;padding:13px 10px;min-height:48px;font-size:17px;font-weight:700;line-height:1.5;text-decoration:none;border-bottom:1px solid #decdb9}#site-menu nav a:focus-visible{outline:3px solid var(--teal);outline-offset:-3px}
@media(max-width:1200px) and (min-width:1001px){#video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#app>form.paper#video-filters{grid-template-columns:minmax(0,1fr) 180px}.video-search-field{grid-column:1/-1}.thumb-title{font-size:30px}}
@media(max-width:1000px){.site-header .layout-toggle,header.site .layout-toggle{display:inline-flex!important;align-items:center;justify-content:center;order:1;margin-left:auto;min-height:44px;padding:7px 10px;white-space:nowrap;font-size:14px}.site-header nav,header.site nav{order:2;margin-left:0}.site-header .brand,header.site .logo{margin-right:0}.site-header{gap:8px}.site-header nav>a.my-button{min-height:44px;padding:8px 10px;font-size:13px}.portal-layout{display:block;max-width:100%;padding-left:16px;padding-right:16px}#app>form.paper#video-filters{grid-template-columns:minmax(0,1fr) 170px}.video-search-field{grid-column:1/-1}.thumb-title{font-size:30px}}
@media(max-width:600px){.notice,.proto{font-size:10px;line-height:1.5;padding:4px 10px}.site-header{padding:9px 12px;gap:7px;flex-wrap:nowrap}.site-header .brand{font-size:10px;gap:7px}.site-header .brand small{font-size:9px}.site-header .my-button{font-size:11px!important;padding:7px 8px!important}.site-header .layout-toggle{font-size:12px;padding:7px 8px}.pixel-flag{width:15px;flex-shrink:0}.world-banner{height:60px;margin-bottom:12px}.world-banner .trail-tora{width:58px;left:calc(50% - 29px)}.portal-layout{padding:0 12px;margin-bottom:90px}.page-heading{min-height:0;padding:18px 20px!important;margin-bottom:16px}.page-heading h1{font-size:25px;line-height:1.4;margin:8px 0}.page-heading p{font-size:15px;line-height:1.7;margin:8px 0 0!important}.page-heading .tag{font-size:10px}.heading-icon{width:44px!important;right:16px!important;top:18px!important}.page-heading:has(.heading-icon){padding-right:70px!important}
#app>form.paper#video-filters{padding:16px;gap:10px 12px;grid-template-columns:1fr 1fr;margin-bottom:18px}#app>form.paper#video-filters label{font-size:13px}#app>form.paper#video-filters input,#app>form.paper#video-filters select{font-size:16px;min-height:46px;padding:9px 10px}#video-count{font-size:13px}#video-reset{font-size:13px;min-height:36px}.video-filter-status{gap:6px!important}#video-grid{gap:18px}.video-card-bottom{font-size:13px;padding:11px 13px}.thumb-title{font-size:31px}.thumb-title-long{font-size:23px}.thumb-category{font-size:11px}.thumb-episode{font-size:26px}#video-player{padding:16px;scroll-margin-top:80px}#video-player h2{font-size:22px;line-height:1.5}.video-player-bar>span{font-size:13px}.video-player-bar .small-button{font-size:13px;padding:8px 10px}.video-step-nav button{font-size:14px;padding:8px 10px}#video-player .action-row>a{font-size:14px;min-height:44px;line-height:1.6}.paper{padding:20px}.paper p{font-size:17px;line-height:1.85}.mobile-nav{padding-bottom:env(safe-area-inset-bottom);min-height:62px}.mobile-nav a{min-height:52px;font-size:10px}}
@media(max-width:360px){.site-header .brand{font-size:9px}.site-header .brand small{display:none}.site-header .pixel-flag{display:none}.site-header{gap:5px}.site-header .layout-toggle{font-size:11px;padding:7px}.site-header nav>a.my-button{font-size:10px!important}.thumb-title{font-size:27px}.thumb-title-long{font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-width:1000px){header.site .gnav{display:none!important}header.site .hd{display:flex;align-items:center;justify-content:space-between;gap:8px}header.site .logo{min-width:0}header.site .logo .main{font-size:clamp(11px,3.3vw,18px)}header.site .layout-toggle{margin-left:auto;flex-shrink:0}}


/* 2026-11-16 小崎さん指摘①：幅が狭いスマホでロゴの「PORTAL」が右のボタンの下に隠れる → ロゴを2段にして収める */
@media(max-width:420px){header.site .logo b span,.site-header .brand .brand-accent{display:block}header.site .logo b,.site-header .brand>span{line-height:1.25}header.site .logo,.site-header .brand{flex-shrink:1;min-width:0}}

/* 2026-12-05 小崎さん12/4朝の5：旗の絵（布＋影）が枠からはみ出して PORTAL の文字に重なっていた＝枠の幅を絵に合わせる */
.site-header .pixel-flag{width:26px}@media(max-width:1000px){.site-header .pixel-flag{width:21px}}
