/* kr_portal theme. Loaded only by this theme layout. */
/* Bamtoon palette */
/* public/assets/css/frontend-tailwind.css */
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-1\/2{left:50%}.left-2{left:.5rem}.right-4{right:1rem}.top-2{top:.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.z-\[1100\]{z-index:1100}.col-span-12{grid-column:span 12/span 12}.col-span-2{grid-column:span 2/span 2}.col-span-full{grid-column:1/-1}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-\[250\/188\]{aspect-ratio:250/188}.\!h-9{height:2.25rem!important}.h-11{height:2.75rem}.h-16{height:4rem}.h-24{height:6rem}.h-28{height:7rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.min-h-\[44px\]{min-height:44px}.min-h-\[62vh\]{min-height:62vh}.min-h-screen{min-height:100vh}.\!w-9{width:2.25rem!important}.w-1\/2{width:50%}.w-11{width:2.75rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-\[46\%\]{width:46%}.w-\[90\%\]{width:90%}.w-\[92\%\]{width:92%}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[44px\]{min-width:44px}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-\[1400px\]{max-width:1400px}.max-w-\[420px\]{max-width:420px}.max-w-\[500px\]{max-width:500px}.max-w-\[520px\]{max-width:520px}.max-w-\[560px\]{max-width:560px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(100vw-2rem\)\]{max-width:calc(100vw - 2rem)}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_auto_minmax\(0\2c 1fr\)_auto_auto\]{grid-template-columns:auto auto minmax(0,1fr) auto auto}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-y-1{row-gap:.25rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.25rem*var(--tw-space-y-reverse));margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(1px*var(--tw-divide-x-reverse))}.divide-\[\#e2e8f2\]>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(226 232 242/var(--tw-divide-opacity,1))}.self-center{align-self:center}.justify-self-center{justify-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-\[\#6f8fcf\]{--tw-border-opacity:1;border-color:rgb(111 143 207/var(--tw-border-opacity,1))}.border-\[\#3d4ed7\]{--tw-border-opacity:1;border-color:rgb(61 78 215/var(--tw-border-opacity,1))}.border-\[\#d5deee\]{--tw-border-opacity:1;border-color:rgb(213 222 238/var(--tw-border-opacity,1))}.border-\[\#c5d0e0\]{--tw-border-opacity:1;border-color:rgb(197 208 224/var(--tw-border-opacity,1))}.border-\[\#e2e8f2\]{--tw-border-opacity:1;border-color:rgb(226 232 242/var(--tw-border-opacity,1))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity,1))}.bg-\[\#06c755\]{--tw-bg-opacity:1;background-color:rgb(6 199 85/var(--tw-bg-opacity,1))}.bg-\[\#111827\]{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-\[\#1877f2\]{--tw-bg-opacity:1;background-color:rgb(24 119 242/var(--tw-bg-opacity,1))}.bg-\[\#229ed9\]{--tw-bg-opacity:1;background-color:rgb(34 158 217/var(--tw-bg-opacity,1))}.bg-\[\#25d366\]{--tw-bg-opacity:1;background-color:rgb(37 211 102/var(--tw-bg-opacity,1))}.bg-\[\#6f9fcf\]{--tw-bg-opacity:1;background-color:rgb(111 159 207/var(--tw-bg-opacity,1))}.bg-\[\#6fb8cf\]{--tw-bg-opacity:1;background-color:rgb(111 184 207/var(--tw-bg-opacity,1))}.bg-\[\#6fcfa5\]{--tw-bg-opacity:1;background-color:rgb(111 207 165/var(--tw-bg-opacity,1))}.bg-\[\#5c6b82\]{--tw-bg-opacity:1;background-color:rgb(92 107 130/var(--tw-bg-opacity,1))}.bg-\[\#9f6fcf\]{--tw-bg-opacity:1;background-color:rgb(159 111 207/var(--tw-bg-opacity,1))}.bg-\[\#9fcf6f\]{--tw-bg-opacity:1;background-color:rgb(159 207 111/var(--tw-bg-opacity,1))}.bg-\[\#3d4ed7\]{--tw-bg-opacity:1;background-color:rgb(61 78 215/var(--tw-bg-opacity,1))}.bg-\[\#cf6f6f\]{--tw-bg-opacity:1;background-color:rgb(207 111 111/var(--tw-bg-opacity,1))}.bg-\[\#cf9f6f\]{--tw-bg-opacity:1;background-color:rgb(207 159 111/var(--tw-bg-opacity,1))}.bg-\[\#d5deee\]{--tw-bg-opacity:1;background-color:rgb(213 222 238/var(--tw-bg-opacity,1))}.bg-\[\#d9e2f0\]{--tw-bg-opacity:1;background-color:rgb(217 226 240/var(--tw-bg-opacity,1))}.bg-\[\#e86f6f\]{--tw-bg-opacity:1;background-color:rgb(232 111 111/var(--tw-bg-opacity,1))}.bg-\[\#f09f6f\]{--tw-bg-opacity:1;background-color:rgb(240 159 111/var(--tw-bg-opacity,1))}.bg-\[\#f5c06f\]{--tw-bg-opacity:1;background-color:rgb(245 192 111/var(--tw-bg-opacity,1))}.bg-\[\#e7edf8\]{--tw-bg-opacity:1;background-color:rgb(231 237 248/var(--tw-bg-opacity,1))}.bg-\[\#f3f6fb\]{--tw-bg-opacity:1;background-color:rgb(243 246 251/var(--tw-bg-opacity,1))}.bg-\[\#fff\]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/50{background-color:hsla(0,0%,100%,.5)}.bg-white\/60{background-color:hsla(0,0%,100%,.6)}.bg-white\/70{background-color:hsla(0,0%,100%,.7)}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-0{padding:0!important}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pt-10{padding-top:2.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-\[0\.65rem\]{font-size:.65rem}.text-\[0\.7rem\]{font-size:.7rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-\[\#1a2332\]{--tw-text-opacity:1;color:rgb(26 35 50/var(--tw-text-opacity,1))}.text-\[\#2f7d46\]{--tw-text-opacity:1;color:rgb(47 125 70/var(--tw-text-opacity,1))}.text-\[\#1a2332\]{--tw-text-opacity:1;color:rgb(26 35 50/var(--tw-text-opacity,1))}.text-\[\#496aa9\]{--tw-text-opacity:1;color:rgb(73 106 169/var(--tw-text-opacity,1))}.text-\[\#1a2332\]{--tw-text-opacity:1;color:rgb(26 35 50/var(--tw-text-opacity,1))}.text-\[\#1a2332\]{--tw-text-opacity:1;color:rgb(26 35 50/var(--tw-text-opacity,1))}.text-\[\#5c6b82\]{--tw-text-opacity:1;color:rgb(92 107 130/var(--tw-text-opacity,1))}.text-\[\#7b8ba3\]{--tw-text-opacity:1;color:rgb(123 139 163/var(--tw-text-opacity,1))}.text-\[\#A0AEC0\]{--tw-text-opacity:1;color:rgb(160 174 192/var(--tw-text-opacity,1))}.text-\[\#3d4ed7\]{--tw-text-opacity:1;color:rgb(61 78 215/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.hover\:-translate-y-0\.5:hover{--tw-translate-y:-0.125rem}.hover\:-translate-y-0\.5:hover,.hover\:scale-\[1\.02\]:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-\[1\.02\]:hover{--tw-scale-x:1.02;--tw-scale-y:1.02}.hover\:border-b:hover{border-bottom-width:1px}.hover\:bg-\[\#2c3bb8\]:hover{--tw-bg-opacity:1;background-color:rgb(44 59 184/var(--tw-bg-opacity,1))}.hover\:bg-\[\#3d4ed7\]:hover{--tw-bg-opacity:1;background-color:rgb(61 78 215/var(--tw-bg-opacity,1))}.hover\:bg-\[\#e2e8f2\]:hover{--tw-bg-opacity:1;background-color:rgb(226 232 242/var(--tw-bg-opacity,1))}.hover\:bg-\[\#edf1fa\]:hover{--tw-bg-opacity:1;background-color:rgb(237 241 250/var(--tw-bg-opacity,1))}.hover\:bg-\[\#f3f6fb\]:hover{--tw-bg-opacity:1;background-color:rgb(243 246 251/var(--tw-bg-opacity,1))}.hover\:bg-black\/5:hover{background-color:rgba(0,0,0,.05)}.hover\:text-\[\#2c3bb8\]:hover{--tw-text-opacity:1;color:rgb(44 59 184/var(--tw-text-opacity,1))}.hover\:text-\[\#3d4ed7\]:hover{--tw-text-opacity:1;color:rgb(61 78 215/var(--tw-text-opacity,1))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:text-\[\#3d4ed7\]:focus{--tw-text-opacity:1;color:rgb(61 78 215/var(--tw-text-opacity,1))}.focus\:underline:focus{text-decoration-line:underline}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-\[\#5c6b82\]:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(92 107 130/var(--tw-ring-opacity,1))}.focus\:ring-\[\#3d4ed7\]:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(61 78 215/var(--tw-ring-opacity,1))}.focus\:ring-white:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity,1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.group:hover .group-hover\:scale-\[1\.02\]{--tw-scale-x:1.02;--tw-scale-y:1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:640px){.sm\:mt-0{margin-top:0}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:\!h-auto{height:auto!important}.sm\:\!w-auto{width:auto!important}.sm\:w-16{width:4rem}.sm\:w-auto{width:auto}.sm\:max-w-sm{max-width:24rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-end{align-items:flex-end}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-3{gap:.75rem}.sm\:border-0{border-width:0}.sm\:p-6{padding:1.5rem}.sm\:\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.sm\:\!py-1\.5{padding-bottom:.375rem!important;padding-top:.375rem!important}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pt-0{padding-top:0}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:p-8{padding:2rem}.md\:py-12{padding-bottom:3rem;padding-top:3rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:w-full{width:100%}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}

/*# sourceMappingURL=frontend-tailwind.css.map*/
/* public/assets/css/public-shared.css */
:root{--radius-sm:4px;--radius-md:8px;--radius-lg:12px;--radius-xl:16px}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;background-color:#f3f6fb;color:#1a2332;margin:0;padding:0}.brand-serif,h1,h2,h3,h4,h5,h6{font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,Georgia,serif}.fade-in{animation:fadeIn .3s ease forwards}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:focus-visible{outline:2px solid #3d4ed7;outline-offset:2px}.modal-overlay.hidden{display:none!important}.ee-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:10px 20px;border-radius:40px;background:#1a2332;color:#fff;font-size:.875rem;z-index:9999;opacity:0;transition:opacity .25s;pointer-events:none}.ee-toast.is-visible{opacity:1}.category-badge,.category-tag{--category-color:#5c6b82;--category-soft:#e7edf8;--category-text:#ffffff;--category-border:#c5d0e0}.category-badge[data-category=all],.category-tag[data-category=all]{--category-color:#3d4ed7;--category-soft:#e7edf8;--category-text:#ffffff;--category-border:#9aa6e8}.category-badge[data-category=Doujinshi],.category-tag[data-category=Doujinshi]{--category-color:#e86f6f;--category-soft:#fceded;--category-text:#ffffff;--category-border:#f0a7a7}.category-badge[data-category=Manga],.category-tag[data-category=Manga]{--category-color:#f09f6f;--category-soft:#fff1e8;--category-text:#4b2d1d;--category-border:#f4bd9b}.category-badge[data-category="Artist CG"],.category-tag[data-category="Artist CG"]{--category-color:#f5c06f;--category-soft:#fff7e6;--category-text:#4a3513;--category-border:#f7d59f}.category-badge[data-category="Game CG"],.category-tag[data-category="Game CG"]{--category-color:#9fcf6f;--category-soft:#f0f8e8;--category-text:#294414;--category-border:#bfdf9e}.category-badge[data-category=Western],.category-tag[data-category=Western]{--category-color:#6fcfa5;--category-soft:#eaf8f2;--category-text:#173f31;--category-border:#9fe0c5}.category-badge[data-category=Non-H],.category-tag[data-category=Non-H]{--category-color:#6fb8cf;--category-soft:#eaf5f8;--category-text:#173945;--category-border:#9ed0df}.category-badge[data-category="Image Set"],.category-tag[data-category="Image Set"]{--category-color:#6f8fcf;--category-soft:#edf1fa;--category-text:#ffffff;--category-border:#9eb3df}.category-badge[data-category=Cosplay],.category-tag[data-category=Cosplay]{--category-color:#9f6fcf;--category-soft:#f3edfa;--category-text:#ffffff;--category-border:#bea0df}.category-badge[data-category="Asian Porn"],.category-tag[data-category="Asian Porn"]{--category-color:#cf6f9f;--category-soft:#faedf4;--category-text:#ffffff;--category-border:#dfa0bf}.category-badge[data-category=Misc],.category-tag[data-category=Misc]{--category-color:#cf9f6f;--category-soft:#f8f1ea;--category-text:#49321d;--category-border:#dfbf9f}.category-tag{position:relative;background-color:var(--category-soft);color:var(--category-color);border:1px solid var(--category-border);border-radius:9999px!important;box-shadow:0 1px 2px rgba(26, 35, 50,.04);cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}.category-tag:hover:not(.active){transform:translateY(-1px);box-shadow:0 3px 8px rgba(26, 35, 50,.1)}.category-tag.active{background-color:var(--category-color);color:var(--category-text);border-color:var(--category-color);font-weight:700;box-shadow:0 0 0 2px #f3f6fb,0 0 0 4px var(--category-color),0 4px 10px rgba(26, 35, 50,.16);transform:translateY(-1px)}.category-tag.active::before{content:"✓";margin-right:.35rem;font-size:.72rem;font-weight:800}.category-tag:focus-visible{outline:3px solid rgba(61, 78, 215,.25);outline-offset:2px}.category-badge{display:inline-flex;align-items:center;width:fit-content;max-width:100%;background-color:var(--category-color);color:var(--category-text);border:1px solid var(--category-color);border-radius:9999px!important;padding:.18rem .55rem;font-size:.65rem;font-weight:600;line-height:1.2;white-space:nowrap}.category-card{transition:opacity .2s ease,transform .2s ease,box-shadow .2s ease}.sort-btn{background-color:#fff;color:#5c6b82;border:1px solid #e2e8f2;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}.sort-btn:hover:not(.active){background-color:#e7edf8;color:#1a2332;transform:translateY(-1px)}.sort-btn.active{background-color:#3d4ed7;color:#fff;border-color:#3d4ed7;font-weight:700;box-shadow:0 2px 7px rgba(61, 78, 215,.22)}.sort-btn.active::before{content:"✓";margin-right:.3rem;font-size:.72rem}.sort-btn:focus-visible{outline:3px solid rgba(61, 78, 215,.25);outline-offset:2px}.pagination .active{background-color:#3d4ed7;color:#fff;border-color:#3d4ed7}.pagination a,.pagination button,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border:1px solid #e2e8f2;background-color:#fff;border-radius:6px;transition:all .2s;padding-left:.75rem;padding-right:.75rem}.pagination a:hover,.pagination button:hover:not(:disabled){background-color:#e2e8f2}.pagination button:disabled{opacity:.5;cursor:not-allowed}.page-jump-input{width:60px;text-align:center;border:1px solid #e2e8f2;border-radius:6px;padding:.3rem}

/* ========================================================
   HEADER & NAVIGATION REDESIGN (DESKTOP & MOBILE)
   ======================================================== */
.eb-header { border-bottom: 1px solid #e2e8f2; background-color: #f3f6fb; position: relative; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.eb-header-inner { max-width: 1400px; margin-left: auto; margin-right: auto; padding: 0 1rem; }
@media (min-width: 640px) { .eb-header-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .eb-header-inner { padding: 0 2rem; } }
.eb-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0.5rem 0; gap: 0.75rem; }
.eb-brand-link { display: flex; align-items: baseline; text-decoration: none; flex-shrink: 0; color: #1a2332; transition: color 0.15s ease; }
.eb-brand-link:hover { color: #3d4ed7; }
.eb-brand-title { font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.025em; line-height: 1.2; }
@media (min-width: 768px) { .eb-brand-title { font-size: 1.75rem; } }
.eb-brand-sub { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 0.75rem; font-weight: 400; color: #5c6b82; margin-left: 0.5rem; display: none; white-space: nowrap; }
@media (min-width: 1200px) { .eb-brand-sub { display: inline-block; } }
.eb-desktop-nav { display: none; align-items: center; flex: 1; margin: 0 0.5rem 0 1rem; }
@media (min-width: 960px) { .eb-desktop-nav { display: flex; } }
.eb-nav-list { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
@media (min-width: 1200px) { .eb-nav-list { gap: 0.45rem; } }
.eb-nav-item { display: flex; align-items: center; }
.eb-nav-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.6rem; border-radius: 6px; font-size: 0.875rem; font-weight: 600; color: #1a2332; text-decoration: none; white-space: nowrap; transition: all 0.15s ease; }
@media (min-width: 1200px) { .eb-nav-link { padding: 0.5rem 0.8rem; font-size: 0.9rem; gap: 0.4rem; } }
.eb-nav-link svg { width: 15px !important; height: 15px !important; color: #5c6b82; transition: color 0.15s ease; flex-shrink: 0; }
.eb-nav-link:hover { color: #3d4ed7; background-color: rgba(0, 0, 0, 0.04); }
.eb-nav-link:hover svg { color: #3d4ed7; }
.eb-nav-link.active { color: #3d4ed7; background-color: rgba(61, 78, 215, 0.08); font-weight: 700; }
.eb-nav-link.active svg { color: #3d4ed7; }
.eb-nav-divider { width: 1px; height: 18px; background-color: #d5deee; margin: 0 0.35rem; flex-shrink: 0; }
@media (min-width: 1200px) { .eb-nav-divider { margin: 0 0.6rem; } }
.eb-auth-group { display: flex; align-items: center; gap: 0.45rem; margin-left: auto; flex-shrink: 0; }
.eb-auth-login-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.8rem; border: 1px solid #d5deee; background-color: #f3f6fb; border-radius: 6px; font-size: 0.8125rem; font-weight: 600; color: #1a2332; text-decoration: none; white-space: nowrap; transition: all 0.15s ease; }
.eb-auth-login-link svg { width: 14px !important; height: 14px !important; color: #5c6b82; flex-shrink: 0; }
.eb-auth-login-link:hover { color: #3d4ed7; border-color: #3d4ed7; background-color: #e7edf8; }
.eb-auth-login-link:hover svg { color: #3d4ed7; }
.eb-auth-register-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.9rem; border: 1px solid #3d4ed7; border-radius: 6px; font-size: 0.8125rem; font-weight: 700; color: #ffffff !important; background-color: #3d4ed7; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 3px rgba(61, 78, 215, 0.3); transition: all 0.15s ease; }
.eb-auth-register-btn svg { width: 14px !important; height: 14px !important; color: #ffffff; flex-shrink: 0; }
.eb-auth-register-btn:hover { background-color: #2c3bb8; border-color: #2c3bb8; box-shadow: 0 2px 6px rgba(61, 78, 215, 0.4); transform: translateY(-0.5px); }
.eb-auth-user-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.85rem; border-radius: 6px; font-size: 0.8125rem; font-weight: 600; color: #1a2332; background-color: #e7edf8; border: 1px solid #d5deee; text-decoration: none; white-space: nowrap; transition: all 0.15s ease; }
.eb-auth-user-btn svg { width: 14px !important; height: 14px !important; color: #3d4ed7; flex-shrink: 0; }
.eb-auth-user-btn:hover { background-color: #e2e8f4; color: #3d4ed7; }
.eb-auth-logout-btn { background: none; border: none; padding: 0.42rem 0.6rem; font-size: 0.8125rem; color: #5c6b82; cursor: pointer; white-space: nowrap; transition: color 0.15s ease; }
.eb-auth-logout-btn:hover { color: #3d4ed7; }
.eb-mobile-trigger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 1.5rem; line-height: 1; color: #1a2332; background: #f3f6fb; border: 1px solid #e2e8f2; border-radius: 8px; cursor: pointer; transition: all 0.15s ease; }
.eb-mobile-trigger:hover { background-color: #e7edf8; color: #3d4ed7; }
@media (min-width: 960px) { .eb-mobile-trigger { display: none !important; } .mobile-menu, #mobile-menu { display: none !important; } }
#mobile-menu { display: none; border-top: 1px solid #e2e8f2; background-color: #f3f6fb; padding: 0.85rem 0 1.25rem; }
#mobile-menu.active, #mobile-menu.is-open { display: block !important; }
.eb-mobile-card { display: flex; flex-direction: column; gap: 0.85rem; }
.eb-mobile-primary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.eb-mobile-primary-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 0.75rem; border-radius: 8px; background-color: #ffffff; border: 1px solid #e2e8f2; font-size: 0.875rem; font-weight: 600; color: #1a2332; text-decoration: none; transition: all 0.15s ease; }
.eb-mobile-primary-btn svg { width: 16px !important; height: 16px !important; color: #5c6b82; flex-shrink: 0; }
.eb-mobile-primary-btn:hover, .eb-mobile-primary-btn.active { border-color: #3d4ed7; color: #3d4ed7; background-color: rgba(61, 78, 215, 0.04); }
.eb-mobile-primary-btn.active svg { color: #3d4ed7; }
.eb-mobile-section-divider { border-top: 1px solid #ede5da; padding-top: 0.75rem; }
.eb-mobile-dir-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; padding: 0 4px; }
.eb-mobile-dir-title { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #5c6b82; }
.eb-mobile-dir-title svg { width: 13px !important; height: 13px !important; color: #a19082; }
.eb-mobile-dir-sub { font-size: 10px; color: #a99c90; }
.eb-mobile-dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media (min-width: 480px) { .eb-mobile-dir-grid { grid-template-columns: repeat(6, 1fr); } }
.eb-mobile-dir-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.6rem 0.35rem; border-radius: 8px; background-color: #ffffff; border: 1px solid #e2e8f2; text-decoration: none; color: #1a2332; font-size: 0.8125rem; font-weight: 600; gap: 0.35rem; transition: all 0.15s ease; }
.eb-mobile-dir-tile svg { width: 18px !important; height: 18px !important; color: #5c6b82; transition: color 0.15s ease; }
.eb-mobile-dir-tile:hover { border-color: #3d4ed7; color: #3d4ed7; }
.eb-mobile-dir-tile:hover svg { color: #3d4ed7; }
.eb-mobile-dir-tile.active { border-color: #3d4ed7; color: #3d4ed7; font-weight: 700; background-color: rgba(61, 78, 215, 0.06); }
.eb-mobile-dir-tile.active svg { color: #3d4ed7; }
.eb-mobile-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.eb-mobile-login-btn { display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.65rem 0.75rem; border-radius: 8px; background-color: #ffffff; border: 1px solid #e2e8f2; font-size: 0.8125rem; font-weight: 600; color: #1a2332; text-decoration: none; transition: all 0.15s ease; }
.eb-mobile-login-btn svg { width: 14px !important; height: 14px !important; color: #5c6b82; }
.eb-mobile-login-btn:hover { border-color: #3d4ed7; color: #3d4ed7; }
.eb-mobile-register-btn { display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.65rem 0.75rem; border-radius: 8px; background-color: #3d4ed7; border: 1px solid #3d4ed7; font-size: 0.8125rem; font-weight: 700; color: #ffffff !important; text-decoration: none; box-shadow: 0 1px 3px rgba(61, 78, 215, 0.3); transition: all 0.15s ease; }
.eb-mobile-register-btn svg { width: 14px !important; height: 14px !important; color: #ffffff; }
.eb-mobile-register-btn:hover { background-color: #2c3bb8; }
.eb-mobile-user-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.eb-mobile-user-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.65rem 0.75rem; border-radius: 8px; background-color: #ffffff; border: 1px solid #e2e8f2; font-size: 0.8125rem; font-weight: 600; color: #1a2332; text-decoration: none; transition: all 0.15s ease; }
.eb-mobile-user-btn svg { width: 14px !important; height: 14px !important; color: #3d4ed7; }
.eb-mobile-logout-btn { padding: 0.65rem 0.85rem; border-radius: 8px; font-size: 0.75rem; color: #5c6b82; background: none; border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease; }
.eb-mobile-logout-btn:hover { color: #3d4ed7; border-color: #e2e8f2; background-color: #f3f6fb; }

/* ==========================================================================
   DIRECTORY PAGES (Tags, Artists, Characters, Parodies, Groups, Languages)
   ========================================================================== */
.directory-main-container { width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; padding: 1.25rem 1rem 2.5rem; box-sizing: border-box; }
@media (min-width: 640px) { .directory-main-container { padding: 1.5rem 1.5rem 3rem; } }
@media (min-width: 1024px) { .directory-main-container { padding: 1.75rem 2rem 3.5rem; } }
.breadcrumb-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8125rem; color: #5c6b82; margin-bottom: 1.25rem; }
.breadcrumb-nav a { color: #5c6b82; text-decoration: none; transition: color 0.15s ease; }
.breadcrumb-nav a:hover { color: #3d4ed7; }
.breadcrumb-nav .separator { color: #c0b5aa; font-size: 0.75rem; }
.breadcrumb-nav .current { color: #1a2332; font-weight: 600; }
.page-hero-card { background: #ffffff; border: 1px solid #e2e8f2; border-radius: 14px; padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.page-hero-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid #e7edf8; }
.hero-title-group { display: flex; align-items: center; gap: 0.85rem; }
.hero-icon-bubble { width: 48px; height: 48px; border-radius: 12px; background: #f3f6fb; border: 1px solid #e2e8f2; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #3d4ed7; flex-shrink: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); }
.hero-title { font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif; font-size: 1.65rem; font-weight: 800; color: #1a2332; margin: 0; line-height: 1.2; letter-spacing: 0.02em; }
.hero-counter-badge { display: inline-flex; align-items: center; gap: 0.45rem; background: #e7edf8; color: #3d4ed7; border: 1px solid #e2e8f2; font-size: 0.8125rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 9999px; white-space: nowrap; flex-shrink: 0; }
.hero-counter-badge svg { width: 14px !important; height: 14px !important; color: #3d4ed7; flex-shrink: 0; }
.hero-description { color: #5c6b82; font-size: 0.875rem; margin: 0.75rem 0 0 0; line-height: 1.6; }
.filter-panel { background: #ffffff; border: 1px solid #e2e8f2; border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.filter-top-row { display: flex; align-items: center; gap: 0.65rem; width: 100%; }
.search-input-wrap { position: relative; flex: 1; min-width: 0; }
.search-input-wrap .search-prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #7b8ba3; font-size: 0.9rem; pointer-events: none; }
.search-input-wrap input.form-control { width: 100%; height: 42px; box-sizing: border-box; background-color: #f3f6fb; border: 1px solid #e2e8f2; color: #1a2332; border-radius: 8px; padding: 0.5rem 2.4rem 0.5rem 2.4rem; font-size: 0.9rem; font-family: inherit; transition: all 0.2s ease; }
.search-input-wrap input.form-control:focus { outline: none; border-color: #3d4ed7; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(61, 78, 215,0.15); }
.clear-search-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #7b8ba3; cursor: pointer; font-size: 0.875rem; padding: 4px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: color 0.15s ease; }
.clear-search-btn:hover { color: #3d4ed7; }
.btn-search-submit { height: 42px; padding: 0 1.25rem; background-color: #3d4ed7; color: #ffffff; font-size: 0.875rem; font-weight: 700; border: none; border-radius: 8px; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; white-space: nowrap; flex-shrink: 0; box-shadow: 0 1px 3px rgba(61, 78, 215,0.3); transition: all 0.15s ease; }
.btn-search-submit:hover { background-color: #2c3bb8; box-shadow: 0 2px 6px rgba(61, 78, 215,0.4); transform: translateY(-0.5px); }
.filter-bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid #e7edf8; }
.initial-filter-section { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.initial-filter-label { font-size: 0.8125rem; font-weight: 600; color: #5c6b82; margin-right: 0.2rem; }
.initial-buttons-group { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.btn-initial { display: inline-flex; align-items: center; justify-content: center; padding: 0.35rem 0.65rem; border-radius: 6px; font-size: 0.8125rem; font-weight: 500; background-color: #e7edf8; color: #5c6b82; text-decoration: none; border: 1px solid transparent; transition: all 0.15s ease; white-space: nowrap; }
.btn-initial:hover { background-color: #e2e8f2; color: #1a2332; }
.btn-initial.active { background-color: #3d4ed7; color: #ffffff; font-weight: 700; box-shadow: 0 1px 3px rgba(61, 78, 215,0.3); }
.sort-control-group { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; margin-left: auto; }
.sort-label { font-size: 0.8125rem; font-weight: 600; color: #5c6b82; }
.sort-select { height: 36px; padding: 0.35rem 1.8rem 0.35rem 0.75rem; background-color: #f3f6fb; border: 1px solid #e2e8f2; border-radius: 6px; font-size: 0.8125rem; font-weight: 500; color: #1a2332; cursor: pointer; transition: all 0.15s ease; appearance: auto; }
.sort-select:focus { outline: none; border-color: #3d4ed7; background-color: #ffffff; }
.filter-chips-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed #e2e8f2; flex-wrap: wrap; font-size: 0.8125rem; }
.filter-tag-chip { display: inline-flex; align-items: center; padding: 0.25rem 0.65rem; border-radius: 9999px; background-color: #e7edf8; color: #1a2332; font-weight: 600; border: 1px solid #d5deee; }
.btn-clear-filters { color: #3d4ed7; font-weight: 600; text-decoration: none; margin-left: 0.25rem; transition: all 0.15s ease; }
.btn-clear-filters:hover { text-decoration: underline; color: #2c3bb8; }
.results-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; font-size: 0.8125rem; color: #5c6b82; padding: 0 0.25rem; }
.results-meta-row strong { color: #1a2332; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 2rem; }
@media (min-width: 1280px) { .directory-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (max-width: 900px) { .directory-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 560px) { .directory-grid { grid-template-columns: 1fr; gap: 8px; } }
.directory-card { display: flex; justify-content: space-between; align-items: center; background: #ffffff; border: 1px solid #e2e8f2; border-radius: 10px; padding: 0.8rem 1rem; text-decoration: none; transition: all 0.18s ease; gap: 0.75rem; min-height: 60px; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.directory-card:hover { border-color: #3d4ed7; box-shadow: 0 4px 12px rgba(61, 78, 215, 0.1); transform: translateY(-1.5px); }
.card-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-name { color: #1a2332; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s ease; }
.directory-card:hover .card-name { color: #3d4ed7; }
.card-alias { color: #5c6b82; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card-meta { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.count-pill { background: #e7edf8; color: #3d4ed7; border: 1px solid #e2e8f2; border-radius: 9999px; padding: 0.22rem 0.6rem; font-size: 0.78125rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; transition: all 0.15s ease; }
.count-pill svg { width: 12px !important; height: 12px !important; color: inherit; flex-shrink: 0; }
.directory-card:hover .count-pill { background: #3d4ed7; color: #ffffff; border-color: #3d4ed7; }
.card-arrow { width: 14px !important; height: 14px !important; color: #c0b5aa; transition: all 0.15s ease; flex-shrink: 0; }
.directory-card:hover .card-arrow { color: #3d4ed7; transform: translateX(2px); }
.empty-state-box { background: #ffffff; border: 1px solid #e2e8f2; border-radius: 14px; padding: 3rem 1.5rem; text-align: center; margin-bottom: 2rem; color: #5c6b82; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.empty-icon-wrap { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-title { font-size: 1.15rem; font-weight: 700; color: #1a2332; margin: 0 0 0.5rem 0; }
.empty-desc { font-size: 0.875rem; max-width: 480px; margin: 0 auto 1.25rem auto; line-height: 1.6; }
.btn-empty-reset { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1.25rem; background-color: #3d4ed7; color: #ffffff !important; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; text-decoration: none; box-shadow: 0 1px 3px rgba(61, 78, 215,0.3); transition: all 0.15s ease; }
.btn-empty-reset:hover { background-color: #2c3bb8; }
.directory-help-box { background: #eef2fb; border: 1px solid #e2e8f2; border-radius: 10px; padding: 1rem 1.25rem; margin-top: 1.5rem; margin-bottom: 2rem; display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.85rem; color: #5c6b82; line-height: 1.6; }
.directory-help-box svg { width: 18px !important; height: 18px !important; color: #3d4ed7; flex-shrink: 0; margin-top: 2px; }
.directory-help-box p { margin: 0; }
@media (max-width: 768px) {
    .page-hero-card { padding: 1.15rem 1rem; }
    .hero-title { font-size: 1.35rem; }
    .hero-counter-badge { font-size: 0.78125rem; padding: 0.3rem 0.75rem; }
    .filter-panel { padding: 1rem 0.85rem; }
    .filter-bottom-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .initial-filter-section { flex-direction: column; align-items: flex-start; gap: 0.45rem; width: 100%; }
    .initial-buttons-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; }
    .btn-initial { width: 100%; padding: 0.4rem 0; text-align: center; box-sizing: border-box; }
    .sort-control-group { width: 100%; justify-content: space-between; margin-left: 0; padding-top: 0.65rem; border-top: 1px dashed #e2e8f2; }
    .sort-select { flex: 1; max-width: 220px; }
}
@media (max-width: 480px) {
    .btn-search-text { display: none; }
    .btn-search-submit { padding: 0 0.85rem; }
}

/* public/assets/css/home.css */
/* 基礎スタイル */
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
      background-color: #f3f6fb; /* 和紙色 */
      color: #1a2332;
      margin: 0;
      padding: 0;
      /* 全局圆角变量（统一维护） */
      --radius-sm: 4px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --radius-xl: 16px;
    }
    h1, h2, h3, h4, h5, h6, .brand-serif {
      font-family: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, Georgia, serif;
    }
    /* 星評価 */
    .star-filled { color: #3d4ed7; }  /* 紅緋 */
    .star-empty { color: #dcd3ca; }
    /* 年齢警告 */
    .age-warning-bg { 
      background-color: #3d4ed7; 
      border-radius: var(--radius-md); /* 警告バー圆角 */
      margin: 0 auto;
      max-width: 100%; /* 左右留空更柔和 */
    }
    /* モーダル - 大幅圆角优化 */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
    .modal-content {
      background-color: white;
      max-width: 500px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      border: 1px solid #e2e8f2;
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
      border-radius: var(--radius-lg); /* 模态框大圆角 */
      padding: 1rem !important; /* 内部留白配合圆角 */
    }
    .modal-overlay.hidden { display: none !important; }
    /* スケルトンローダー */
    .skeleton {
      background: linear-gradient(90deg, #d9e2f0 25%, #e2e8f2 50%, #d9e2f0 75%);
      background-size: 200% 100%;
      animation: skeleton-loading 1.5s infinite;
      border-radius: var(--radius-sm); /* 骨架屏圆角 */
    }
    @keyframes skeleton-loading {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    /* モバイルメニュースタイル */
    .mobile-menu {
      display: none;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      border-radius: var(--radius-md); /* 移动端菜单圆角 */
      background-color: #fff;
      padding: 0.5rem;
      border: 1px solid #e2e8f2;
    }
    .mobile-menu.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }
    .fade-in {
      animation: fadeIn 0.3s ease forwards;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    /* アクセシビリティ強化 */
    :focus-visible {
      outline: 2px solid #3d4ed7;
      outline-offset: 2px;
      border-radius: var(--radius-sm); /* 焦点状态圆角 */
    }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
    }

    /* 全局圆角补充：所有按钮/输入框/卡片统一圆角 */
    button, input, select, textarea {
      border-radius: var(--radius-md) !important;
    }
    /* 修复：卡片圆角（关键！用ID选择器#card-grid，而非类选择器.card-grid） */
    #card-grid > div,
    #card-grid > a {
      border-radius: var(--radius-lg) !important;
      overflow: hidden !important; /* 强制防止内容溢出圆角 */
      transition: box-shadow 0.2s ease; /* 新增：hover阴影，增强质感 */
    }
    /* 修复：卡片hover效果（可选，增强交互） */
    #card-grid > div:hover,
    #card-grid > a:hover {
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    /* 修复：卡片内图片容器圆角（确保顶部圆角生效） */
    #card-grid .aspect-\[250\/188\] {
      border-top-left-radius: var(--radius-lg) !important;
      border-top-right-radius: var(--radius-lg) !important;
      overflow: hidden !important;
    }
    /* 搜索栏容器圆角 */
    .bg-white\/60.border {
      border-radius: var(--radius-lg) !important;
    }
    /* 搜索输入框父容器圆角 */
    .flex-1.bg-white.border {
      border-radius: var(--radius-md) !important;
      overflow: hidden;
    }
    /* 页脚链接hover圆角 */
    footer a {
      border-radius: var(--radius-sm);
      padding: 0.2rem 0.4rem;
    }
    /* 注目バナー圆角 */
    .bg-white\/70.border.p-5 {
      border-radius: var(--radius-lg) !important;
    }
    /* 加载更多按钮圆角强化 */
    #load-more-btn {
      border-radius: var(--radius-lg) !important;
      padding: 0.8rem 2rem !important;
    }
    /* 头部导航栏优化 */
    header {
      padding: 0.5rem 0;
    }
    .brand-serif {
      padding: 0.2rem 0.4rem;
    }

/* public/assets/css/detail.css */
/* 基礎スタイル */
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
      background-color: #f3f6fb;
      color: #1a2332;
      line-height: 1.6;
    }
    h1, h2, h3, h4, h5, h6, .brand-serif {
      font-family: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, Georgia, serif;
      line-height: 1.4;
    }

    /* 星評価 */
    .star-filled { color: #3d4ed7; }
    .star-empty { color: #dcd3ca; }
    .star-rating .star { cursor: pointer; transition: color 0.2s; }

    /* モーダル共通 */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s, visibility 0.2s;
    }
    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    .modal-content {
      background-color: #f3f6fb;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      transform: translateY(-20px);
      transition: transform 0.2s;
    }
    .modal-overlay.active .modal-content {
      transform: translateY(0);
    }

    /* トースト通知 */
    .toast {
      position: absolute;
      padding: 8px 12px;
      border-radius: 4px;
      background-color: #1a2332;
      color: white;
      font-size: 0.875rem;
      z-index: 1010;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s, visibility 0.2s;
    }
    .toast.active {
      opacity: 1;
      visibility: visible;
    }

    /* コミックサムネイル样式调整 - 适配雪碧图 */
    .comic-thumbnail {
      width: 200px;
      height: 292px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
      background-repeat: no-repeat;
      background-color: transparent;
    }
    .comic-thumbnail:hover::after {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.2);
      border-radius: 4px;
    }

    /* タグスタイル */
    .tag-item {
      border-radius: 3px;
      padding: 1px 4px;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 0.7rem;
      display: inline-block;
      margin-bottom: 2px;
      line-height: 1.4;
    }
    .tag-item.selected {
      background-color: #2c3bb8 !important;
      color: #fff !important;
      border: 1px solid rgba(0,0,0,0.5) !important;
      box-shadow: 0 0 3px rgba(0,0,0,0.2);
    }

    /* レスポンシブハンバーガーメニュー */
    .mobile-menu {
      height: 0;
      overflow: hidden;
      transition: height 0.3s ease;
      background-color: #f3f6fb;
      box-shadow: 0 4px 6px -2px rgba(0,0,0,0.1);
    }
    .mobile-menu.active {
      height: auto;
      overflow: visible;
    }

    /* フェードインアニメーション */
    .fade-in {
      animation: fadeIn 0.3s ease-in-out;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* 区域区分度样式 */
    .main-content-section {
      background-color: #fff;
      border-radius: 8px;
      border: 1px solid #e2e8f2;
      padding: 2rem;
      margin-bottom: 2rem;
    }
    .pagination-section {
      background-color: #eef2fb;
      border-radius: 8px;
      border: 1px solid #e0d8cf;
      padding: 1.5rem;
      margin-bottom: 2rem;
    }
    /* 缩略图区域增强区分度 */
    .thumbnail-section {
      background-color: #e7edf8;
      border-radius: 8px;
      border: 1px solid #e2e8f2;
      padding: 1.5rem;  /* 从2rem改为1.5rem，更紧凑 */
      margin-bottom: 2rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    /* 缩略图滑动容器样式 - 适配内部grid */
    .thumbnail-scroll-container {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 1rem;
      width: 100%;
      max-width: 100%;
    }
    /* 缩略图网格响应式调整 */
    .thumbnail-grid {
      gap: 1.25rem;
      display: grid;
      width: fit-content;
      justify-items: center;
      align-items: center;
      margin: 0 auto;
    }

    /* 【修改1】新增768px-1023px断点（平板/小屏桌面），引入滑块 */
    @media (min-width: 768px) and (max-width: 1023px) {
      /* 分页区域添加横向滚动 */
      .pagination-section .flex-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
      }
      /* 主内容网格调整，添加滑块 */
      .main-content-section .grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
      }
      /* 标签区域添加纵向滚动 */
      .tag-category-wrap {
        max-height: 200px;
      }
      /* 缩略图网格保持横向滚动 */
      .thumbnail-grid {
        grid-template-columns: repeat(5, 200px);
        gap: 1.5rem;
      }
    }

    /* 桌面端（lg）：5列，自适应均匀拉开列间距，减少左右两侧留白 */
    @media (min-width: 1024px) {
      .thumbnail-scroll-container {
        padding-bottom: 0;
      }
      .thumbnail-grid {
        grid-template-columns: repeat(5, 200px);
        justify-content: space-between;
        width: 100%;
        max-width: 1216px;
        column-gap: 1.5rem;
        row-gap: 1.75rem;
        margin: 0 auto;
      }
    }
    /* 移动端：2列自适应容器宽度展示，不出现横向滚动条 */
    @media (max-width: 767px) {
      .thumbnail-section {
        padding: 1rem 0.75rem;
      }
      .thumbnail-scroll-container {
        overflow-x: hidden;
        padding-bottom: 0;
      }
      .thumbnail-grid {
        grid-template-columns: repeat(2, 200px);
        justify-content: space-evenly;
        width: 100%;
        max-width: 520px;
        column-gap: 0.75rem;
        row-gap: 1rem;
        margin: 0 auto;
      }
    }
    
    /* 选中标签展示区样式 */
    .selected-tags-container {
      background-color: #eef2fb;
      border-radius: 6px;
      padding: 0.75rem;
      margin-top: 1rem;
      margin-bottom: 0;
      min-height: 2.5rem;
      border: 1px solid #e0d8cf;
    }
    .selected-tag-item {
      display: inline-flex;
      align-items: center;
      background-color: #2c3bb8;
      color: white;
      border-radius: 3px;
      padding: 1px 6px;
      margin-right: 6px;
      margin-bottom: 6px;
      font-size: 0.75rem;
    }
    .selected-tag-remove {
      margin-left: 4px;
      cursor: pointer;
      font-weight: bold;
      font-size: 0.7rem;
    }

    /* 关联作品区域增加区分度 */
    .related-works-section {
      background-color: #f7f9fd;
      border-radius: 8px;
      border: 1px solid #c5d0e0;
      padding: 2rem;
      margin-bottom: 2rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    /* 相关作品卡片增强区分度 */
    .related-work-card {
      border: 1px solid #c5d0e0;
      background-color: #fff;
      border-radius: 8px;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .related-work-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    /* 双语言标题样式 */
    .title-container {
      margin-bottom: 1rem;
      width: 100%;
    }
    .title-english {
      font-size: 1.5rem;
      line-height: 1.4;
      color: #1a2332;
      margin-bottom: 0.5rem;
    }
    .title-japanese {
      font-size: 1.25rem;
      line-height: 1.4;
      color: #5c6b82;
      font-weight: normal;
    }
    .title-divider {
      border: none;
      height: 1px;
      background-color: #e2e8f2;
      margin: 1rem 0;
      width: 100%;
    }

    /* Tag区域扩大样式 - 包含折叠功能 */
    .tag-category-wrap {
      max-height: 300px;  /* 折りたたみ時 */
      overflow-y: auto;
      transition: max-height 0.3s ease;
      display: flex;
      flex-direction: column;
      padding-right: 0.5rem;
    }
    .tag-category-wrap.expanded {
      max-height: 70vh;   /* 展開時 */
    }
    /* Tag分类项：key和value同行显示，对齐优化 */
    .tag-category-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 0.5rem;
      width: 100%;
      line-height: 1.4;
    }
    .tag-category-key {
      font-size: 0.7rem;
      font-weight: 500;
      min-width: 50px;
      padding-top: 2px;
      flex-shrink: 0;
      color: #5c4f42;
    }
    .tag-category-values {
      flex: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 0.2rem;
      align-items: flex-start;
    }

    /* 元数据/Tag标题样式（减少间距+横线） */
    .section-title {
      margin: 0 0 0.3rem 0;
      font-size: 0.95rem;
      position: relative;
      padding-bottom: 0.2rem;
      color: #635448;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .section-title::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 1px;
      background-color: #e2e8f2;
    }
    .toggle-tag-btn {
      font-size: 0.7rem;
      background-color: #e2e8f2;
      border: none;
      border-radius: 3px;
      padding: 2px 8px;
      cursor: pointer;
      transition: background-color 0.2s;
      z-index: 1;
    }
    .toggle-tag-btn:hover {
      background-color: #c5d0e0;
    }

    /* 封面样式调整：缩小尺寸+减少左右间距 */
    .comic-cover {
      width: 180px !important;
      height: 256px !important;
      margin: 0 auto;
    }
    .comic-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* 元数据一行显示样式 */
    .metadata-item {
      display: flex;
      align-items: center;
      gap: 2px;
      flex-wrap: wrap;
      margin-bottom: 4px;
      font-size: 0.8rem;
    }
    .metadata-item .font-medium {
      white-space: nowrap;
      font-size: 0.8rem;
    }

    /* 交互按钮样式优化 - 更精致小巧 */
    .action-btn {
      border-radius: 3px;
      padding: 0.4rem 0.8rem;
      font-size: 0.75rem;
      line-height: 1.2;
      transition: all 0.2s ease;
      border: none;
      display: inline-block; /* 确保a标签适配 */
      text-align: center; /* 确保a标签文字居中 */
      text-decoration: none; /* 移除a标签下划线 */
    }
    .action-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* 【修改2】新增样式：让a标签适配pagination-section的按钮样式 */
    .pagination-section a {
      display: inline-block;
      border: 1px solid #e2e8f2;
      background-color: #fff;
      padding: 0.25rem 0.5rem;
      font-size: 0.875rem;
      border-radius: 0.25rem;
      color: #1a2332;
      text-decoration: none;
      transition: background-color 0.2s ease;
    }
    .pagination-section a:hover {
      background-color: #e2e8f2;
    }
    .pagination-section a:disabled,
    .pagination-section a.disabled {
      background-color: #d5deee;
      cursor: not-allowed;
      pointer-events: none;
    }
    .pagination-section a.active-page {
      background-color: #3d4ed7;
      color: #fff;
      border-color: #3d4ed7;
    }
    .pagination-section .jump-btn {
      background-color: #3d4ed7;
      color: #fff;
      border: none;
      padding: 0.25rem 0.75rem;
    }
    .pagination-section .jump-btn:hover {
      background-color: #2c3bb8;
    }

/* public/assets/css/reader.css */
/* 基礎スタイル */
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
      background-color: #f3f6fb;
      color: #1a2332;
      line-height: 1.6;
    }
    h1, h2, h3, h4, h5, h6, .brand-serif {
      font-family: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, Georgia, serif;
      line-height: 1.4;
    }

    /* トースト通知 */
    .toast {
      position: fixed;
      bottom: 24px; left: 50%;
      transform: translateX(-50%);
      padding: 10px 20px;
      border-radius: 40px;
      background-color: #1a2332;
      color: white;
      font-size: 0.875rem;
      font-weight: 500;
      letter-spacing: 0.02em;
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
      z-index: 1010;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    }
    .toast.active {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(-4px);
    }

    /* フェードインアニメーション */
    .fade-in {
      animation: fadeIn 0.3s ease-in-out;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* 画像コンテナ */
    .image-container {
      background-color: #e7edf8;
      border-radius: 12px;
      border: 1px solid #e0d8cf;
      padding: 1.25rem;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 60vh;
      margin-bottom: 2rem;
      box-shadow: 0 12px 28px -8px rgba(0,0,0,0.08);
      transition: box-shadow 0.3s;
    }
    .image-container:hover {
      box-shadow: 0 16px 32px -8px rgba(0,0,0,0.12);
    }
    .image-container img {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 6px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }
    .image-container.scroll-mode {
      align-items: stretch;
      flex-direction: column;
      gap: 1.5rem;
      min-height: auto;
    }
    .scroll-reader-page {
      align-items: center;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      margin: 0;
    }
    .scroll-reader-caption {
      align-self: center;
      background-color: #fff;
      border: 1px solid #e2e8f2;
      border-radius: 999px;
      color: #5c6b82;
      font-size: 0.78rem;
      padding: 0.25rem 0.8rem;
    }
    .scroll-reader-page img {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 6px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.12);
      margin: 0 auto;
    }
    .scroll-reader-sentinel {
      color: #5c6b82;
      font-size: 0.85rem;
      min-height: 3rem;
      padding: 0.8rem;
      text-align: center;
    }
    .reader-scroll-loading .scroll-reader-sentinel::after {
      content: "";
      display: inline-block;
      width: 0.8rem;
      height: 0.8rem;
      margin-left: 0.5rem;
      border: 2px solid #c5d0e0;
      border-top-color: #3d4ed7;
      border-radius: 999px;
      vertical-align: -0.12rem;
      animation: readerSpin 0.8s linear infinite;
    }
    .scroll-reader-sentinel.is-complete {
      color: #7b8ba3;
    }
    .scroll-reader-sentinel.is-ready {
      cursor: default;
    }
    .scroll-reader-sentinel.is-error {
      color: #3d4ed7;
      cursor: pointer;
      font-weight: 600;
    }
    @keyframes readerSpin {
      to { transform: rotate(360deg); }
    }
    @media (max-width: 767px) {
      .image-container.scroll-mode {
        border-radius: 8px;
        gap: 1rem;
        padding: 0.75rem;
      }
      .scroll-reader-caption {
        font-size: 0.72rem;
      }
      .scroll-reader-page img {
        width: 100%;
      }
    }

    /* ボタンスタイル */
    .action-btn {
      border-radius: 6px;
      padding: 0.45rem 1rem;
      font-size: 0.8rem;
      font-weight: 500;
      line-height: 1.2;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      white-space: nowrap;
      letter-spacing: 0.02em;
    }
    .action-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    }
    .action-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }
    .btn-primary {
      background-color: #3d4ed7;
      color: white;
    }
    .btn-primary:hover {
      background-color: #2c3bb8;
    }
    .btn-secondary {
      background-color: #e2e8f2;
      color: #1a2332;
    }
    .btn-secondary:hover {
      background-color: #c5d0e0;
    }

    /* ページ入力フィールド（幅はユーティリティクラスで調整） */
    .page-input {
      border: 1px solid #c5d0e0;
      border-radius: 6px;
      padding: 0.45rem 0.5rem;
      font-size: 0.85rem;
      text-align: center;
      background-color: white;
      transition: border 0.2s, box-shadow 0.2s;
    }
    .page-input:focus {
      outline: none;
      border-color: #3d4ed7;
      box-shadow: 0 0 0 3px rgba(61, 78, 215,0.15);
    }

    /* モバイルメニュー */
    .mobile-menu {
      height: 0;
      overflow: hidden;
      transition: height 0.3s ease;
      background-color: #f3f6fb;
      box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05);
    }
    .mobile-menu.active {
      height: auto;
      overflow: visible;
    }

    /* 年齢確認モーダル */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.5);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
    }
    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    .modal-content {
      background-color: #f3f6fb;
      border-radius: 16px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.2);
      transform: translateY(-20px);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid #e2e8f2;
    }
    .modal-overlay.active .modal-content {
      transform: translateY(0);
    }

    /* 作品タイトル（長い場合の処理） */
    .work-title {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 500;
      background: rgba(255,255,255,0.6);
      padding: 0.2rem 0.6rem 0.2rem 0; /* 左パディングを0にして下部のテキストと左端を揃える */
      border-radius: 4px;
      line-height: 1.5;
    }

    /* ビューアツールバー・ページネーションバーのベーススタイル */
    .viewer-toolbar, .pagination-bar {
      background-color: white;
      border: 1px solid #e0d8cf;
      border-radius: 12px;
      padding: 1rem 1.2rem;  /* 少し余裕を持たせる */
      box-shadow: 0 4px 12px rgba(0,0,0,0.03);
      transition: box-shadow 0.2s;
    }
    .viewer-toolbar:hover, .pagination-bar:hover {
      box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    }

    /* ページ番号強調 */
    #current-page-display-header {
      font-weight: 600;
      color: #3d4ed7;
      background: rgba(61, 78, 215,0.08);
      padding: 0.1rem 0.3rem;
      border-radius: 4px;
    }

    #total-pages-display-header {
      font-weight: 500;
      color: #5c6b82;
    }

    .page-slash {
      margin: 0 2px;
      color: #b5a99d;
    }

    /* モバイル最適化 */
    @media (max-width: 639px) {
      .action-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
      }
      .page-input {
        font-size: 0.75rem;
        padding: 0.35rem 0.4rem;
      }
      .viewer-toolbar, .pagination-bar {
        padding: 0.8rem 1rem;
      }
    }

/* public/assets/css/search.css */
/* 基礎スタイル（首页から継承） */
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
      background-color: #f3f6fb;
      color: #1a2332;
    }
    h1, h2, h3, h4, h5, h6, .brand-serif {
      font-family: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, Georgia, serif;
    }
    /* 星評価 */
    .star-filled { color: #3d4ed7; }
    .star-empty { color: #dcd3ca; }
    /* 年齢警告 */
    .age-warning-bg { background-color: #3d4ed7; }
    /* モーダル */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
    .modal-content {
      background-color: white;
      max-width: 500px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      border: 1px solid #e2e8f2;
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .modal-overlay.hidden { display: none !important; }
    /* 検索履歴チップ */
    .history-chip {
      display: inline-flex;
      align-items: center;
      background-color: #f2ece5;
      border: 1px solid #e2e8f2;
      border-radius: 9999px;
      padding: 5px 12px;
      font-size: 0.75rem;
      line-height: 1.2;
      cursor: pointer;
      transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    }
    .history-chip:hover {
      background-color: #e2e8f2;
      border-color: #c5d0e0;
      transform: translateY(-1px);
    }
    .current-search-chip {
      display: inline-flex;
      align-items: center;
      max-width: 100%;
      background-color: #fff7f7;
      color: #2c3bb8;
      border: 1px solid #e7bcbc;
      border-radius: 9999px;
      padding: 5px 12px;
      font-size: 0.75rem;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }
    /* モバイルメニュースタイル */
    .mobile-menu {
      display: none;
      animation: fadeIn 0.3s ease-in-out;
    }
    .mobile-menu.active {
      display: block;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

/* public/assets/css/favorites.css */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; background-color: #f3f6fb; color: #1a2332; }
    h1, h2, h3, h4, h5, h6, .brand-serif { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, Georgia, serif; }
    .star-filled { color: #3d4ed7; }
    .star-empty { color: #dcd3ca; }
    .mobile-menu { display: none; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; background-color: #fff; padding: 0.5rem; border: 1px solid #e2e8f2; }
    .mobile-menu.active { display: block; opacity: 1; transform: translateY(0); }
    .fade-in { animation: fadeIn 0.3s ease forwards; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .modal-overlay.hidden { display: none !important; }
    .tab-btn { border-bottom: 2px solid transparent; transition: all 0.2s; cursor: pointer; }
    .tab-btn.active { border-bottom-color: #3d4ed7; color: #3d4ed7; }
    .fav-full-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
    .fav-full-modal.show { display: flex; }
    .pagination-btn { min-width: 36px; height: 36px; border: 1px solid #e2e8f2; background: #fff; border-radius: 6px; cursor: pointer; transition: all 0.2s; font-size: 0.875rem; }
    .pagination-btn:hover:not(:disabled) { background: #e2e8f2; }
    .pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .pagination-btn.active { background: #3d4ed7; color: #fff; border-color: #3d4ed7; }
    .delete-fav-btn { transition: all 0.2s; }
    .delete-fav-btn:hover { background: #3d4ed7 !important; color: #fff !important; }
    .favorite-card { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(26, 35, 50,0.06); transition: transform .2s ease, box-shadow .2s ease; }
    .favorite-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26, 35, 50,0.10); }
    .comment-card { border-radius: 12px; }
    .capacity-track { height: 8px; overflow: hidden; border-radius: 9999px; background: #eee7df; }
    .capacity-bar { height: 100%; width: 0; border-radius: inherit; background: #3d4ed7; transition: width .25s ease; }
    .danger-notice { border: 1px solid #e3a0a0; background: #fff3f3; color: #8e2929; border-radius: 12px; }
    .action-btn { border-radius: 8px; transition: all .2s ease; }
    .action-btn:disabled { opacity: .45; cursor: not-allowed; }
    .comment-delete-btn:hover { background: #3d4ed7; color: #fff; border-color: #3d4ed7; }

/* public/assets/css/contact.css */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; background-color: #f3f6fb; color: #1a2332; }
    h1, h2, h3, h4, h5, h6, .brand-serif { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, Georgia, serif; }
    .mobile-menu { display: none; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; background-color: #fff; padding: 0.5rem; border: 1px solid #e2e8f2; }
    .mobile-menu.active { display: block; opacity: 1; transform: translateY(0); }
    .fade-in { animation: fadeIn 0.3s ease forwards; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .modal-overlay.hidden { display: none !important; }
    .input-error { border-color: #3d4ed7 !important; }
    .error-msg { color: #3d4ed7; font-size: 0.75rem; margin-top: 0.25rem; display: none; }
    .error-msg.visible { display: block; }

/* public/assets/css/pagination.css */
/* Shared search-style pagination */
.pagination .active {
  background-color: #3d4ed7;
  color: white;
  border-color: #3d4ed7;
}

.pagination button,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid #e2e8f2;
  background-color: white;
  border-radius: 6px;
  transition: all 0.2s;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.pagination button:hover:not(:disabled),
.pagination a:hover {
  background-color: #e2e8f2;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-jump-input {
  width: 60px;
  text-align: center;
  border: 1px solid #e2e8f2;
  border-radius: 6px;
  padding: 0.3rem;
}

/* public/assets/css/privacy.css */
.brand-serif {
  font-family: "Georgia", "Times New Roman", serif;
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* public/assets/css/terms.css */
/* フォントクラス定義 */
    .brand-serif { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, Georgia, serif; }
    .font-sans { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; }
    /* モバイルメニューアニメーション */
    .fade-in { transition: opacity 0.3s ease, height 0.3s ease; }
    .mobile-menu { height: 0; opacity: 0; overflow: hidden; }
    .mobile-menu.active { height: auto; opacity: 1; }
    /* 基本的な可読性設定 */
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; line-height: 1.8; color: #1a2332; }
    .terms-section { max-width: 900px; margin: 0 auto; }
    .terms-section p { margin-bottom: 1.5rem; }

/* public/assets/css/dmca.css */
.brand-serif {
        font-family: 'Georgia', 'Times New Roman', serif;
      }
      .fade-in {
        animation: fadeIn 0.3s ease-in-out;
      }
      @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
      }
      .mobile-menu {
        display: none;
      }
      .mobile-menu.active {
        display: block;
      }

/* public/assets/css/download.css */
/* Download surface only. Shared layout, category tokens and native fonts remain authoritative. */
.download-page { max-width:1184px; margin:auto; padding:24px 32px 46px; color:#1a2332; font-size:14px; line-height:1.7; }
.download-page [hidden] { display:none!important; }
.download-page * { box-sizing:border-box; }
.download-page h1,.download-page h2,.download-page h3,.download-page p,.download-page dl,.download-page dd { margin:0; }
.download-page button,.download-page a { -webkit-tap-highlight-color:transparent; }
.download-page button { cursor:pointer; font:inherit; }
.download-page button:disabled { cursor:not-allowed; }
.download-page a { color:inherit; text-decoration:none; }
.download-page a:hover { color:#3d4ed7; }
.download-page :focus-visible { outline:2px solid #3d4ed7; outline-offset:4px; }
.dl-symbols { position:absolute; width:0; height:0; overflow:hidden; }
.dl-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.dl-breadcrumb { display:flex; gap:12px; align-items:center; font-size:12px; color:#766656; }
.dl-breadcrumb a { padding:8px 0; }
.dl-page-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:20px 0 28px; }
.dl-page-heading h1 { font-size:28px; font-weight:700; }
.dl-page-heading p { margin-top:6px; color:#766656; font-size:13px; }
.dl-back { display:inline-flex; align-items:center; gap:8px; min-height:44px; white-space:nowrap; font-size:13px; }
.dl-layout { display:grid; grid-template-columns:300px minmax(0,1fr); border:1px solid #e2e8f2; border-radius:8px; overflow:hidden; background:#fff; }
.dl-work { padding:30px; border-right:1px solid #e2e8f2; background:#fdfbf8; min-width:0; }
.dl-work>h2 { color:#766656; font:inherit; font-size:12px; margin-bottom:20px; }
.dl-cover { display:block; width:176px; height:235px; object-fit:contain; margin:0 auto 24px; border-radius:3px; background:#f0eae2; }
.dl-work-title { min-width:0; }
.dl-work-title h3 { font-size:19px; font-weight:700; line-height:1.65; margin-top:10px; overflow-wrap:anywhere; }
.dl-meta { margin-top:22px!important; font-size:12px; }
.dl-meta>div { display:flex; justify-content:space-between; gap:12px; padding:7px 0; }
.dl-meta dt { color:#766656; }
.dl-meta dd { overflow-wrap:anywhere; text-align:right; }
.dl-task { min-width:0; padding:30px 34px 22px; }
.dl-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dl-badge { font-size:12px; font-weight:700; color:#766656; }
.dl-badge::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:currentColor; margin-right:7px; }
#dl-last-check { color:#766656; font-size:11px; }
.dl-intro { margin-top:23px; }
.dl-intro h2 { font-size:22px; line-height:1.6; font-weight:700; }
.dl-intro p { color:#766656; margin-top:7px; font-size:13px; }
.dl-progress-section { margin-top:25px; }
.dl-progress-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; gap:15px; }
.dl-progress-heading>span { font-weight:700; font-size:13px; }
#dl-progress-label { font-size:22px; color:#3d4ed7; }
.dl-progress { height:8px; background:#f0eae2; border-radius:4px; overflow:hidden; }
.dl-progress>span { display:block; height:100%; width:0; background:#3d4ed7; border-radius:inherit; }
.dl-progress.is-working>span { width:28%; animation:dl-working 2s ease-in-out infinite; }
@keyframes dl-working { 0%,100% { transform:translateX(0); } 50% { transform:translateX(255%); } }
#dl-progress-note { font-size:11px; color:#766656; margin-top:9px; }
.dl-file-row { border-top:1px solid #e2e8f2; border-bottom:1px solid #e2e8f2; margin-top:22px; padding:15px 0; display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:12px; }
.dl-file-row strong { overflow-wrap:anywhere; }
#dl-file-size { margin-left:auto; color:#766656; font-size:11px; }
.dl-actions { margin-top:22px; }
.dl-button { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:46px; padding:11px 18px; border:0; border-radius:5px; background:#3d4ed7; color:#fff!important; font-size:13px; font-weight:700; }
.dl-button:hover { background:#962e2e; }
.dl-button:disabled { color:#74685a!important; background:#eee8df; }
.dl-download { background:#2f7554; }
.dl-download:hover { background:#255f44; }
#dl-expiry,.dl-actions noscript { display:block; margin-top:10px; font-size:11px; color:#766656; text-align:center; }
.dl-notice,.dl-failure { margin-bottom:22px; border:1px solid #dacba9; border-radius:5px; padding:13px 15px; color:#765b28; background:#fcf8ec; font-size:12px; overflow-wrap:anywhere; }
.dl-notice button,.dl-notice a { display:inline-flex; align-items:center; min-height:44px; padding:5px 9px; margin-top:8px; border:1px solid #bda97b; border-radius:4px; background:transparent; color:inherit; }
.dl-failure { color:#953932; background:#fcf3f1; border-color:#edd2cd; margin:18px 0 0; }
.dl-failure p,.dl-failure code { margin-top:5px; display:block; font-size:12px; }
.dl-timeline-section { margin-top:29px; border-top:1px solid #e2e8f2; padding-top:22px; }
.dl-timeline-section h3 { font-size:14px; font-weight:700; }
.dl-timeline-section>p { color:#766656; font-size:11px; margin-top:7px; }
.dl-timeline { list-style:none; margin:20px 0 0; padding:0; }
.dl-timeline li { display:grid; grid-template-columns:26px minmax(0,1fr) auto; gap:12px; padding-bottom:22px; position:relative; }
.dl-timeline li:last-child { padding-bottom:0; }
.dl-timeline li:not(:last-child)::before { content:""; position:absolute; top:26px; bottom:2px; left:12px; width:1px; background:#e2e8f2; }
.dl-step { border:1px solid #d8e6dc; border-radius:50%; width:26px; height:26px; display:flex; align-items:center; justify-content:center; color:#2f7554; background:#edf5ef; }
.dl-step .dl-icon { width:14px; height:14px; }
.dl-timeline strong { font-size:12px; line-height:26px; }
.dl-timeline time { font-size:11px; color:#766656; text-align:right; line-height:26px; font-variant-numeric:tabular-nums; }
.dl-timeline li[data-status="failed"] .dl-step { color:#3d4ed7; background:#fbefed; border-color:#e1b5b3; }
.dl-task-reference { margin-top:25px; padding-top:15px; border-top:1px solid #e2e8f2; display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#766656; font-size:11px; }
.dl-task-reference code { overflow-wrap:anywhere; font:inherit; color:#1a2332; }
.dl-task-reference button { background:transparent; border:0; min-height:44px; padding:4px 8px; }
.download-page[data-state="ready"] #dl-progress-label,.download-page[data-state="ready"] .dl-badge { color:#2f7554; }
.download-page[data-state="ready"] .dl-progress>span { width:100%; background:#2f7554; }
.download-page[data-state="failed"] .dl-badge { color:#3d4ed7; }
.download-page[data-state="idle"] .dl-task { display:flex; flex-direction:column; justify-content:center; }
/* This layout's age gate uses the shared Home variant; keep it functional without home.css. */
.mobile-menu { display:none; }
@media(max-width:767px) {
    .mobile-menu.active { display:block; background:#fff; padding:8px; border:1px solid #e2e8f2; }
    #mobile-menu-trigger { min-width:44px; min-height:44px; }
    .mobile-menu a,.mobile-menu button { min-height:44px; display:flex; align-items:center; }
}
#age-verify-modal { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:1000; background:rgba(0,0,0,.5); }
#age-verify-modal .modal-content { background:#fff; width:90%; max-width:500px; border:1px solid #e2e8f2; border-radius:12px; }
@media(min-width:721px) {
    .download-page[data-state="idle"] .dl-layout { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .download-page[data-state="idle"] .dl-overview { display:flex; gap:20px; align-items:flex-start; }
    .download-page[data-state="idle"] .dl-cover { width:112px; height:150px; flex:0 0 112px; margin:0; }
    .download-page[data-state="idle"] .dl-work-title h3 { font-size:17px; }
    .download-page[data-state="idle"] .dl-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; }
}
@media(max-width:1050px) { .dl-layout { grid-template-columns:250px minmax(0,1fr); } .dl-work,.dl-task { padding:25px; } }
@media(max-width:720px) {
    .download-page { padding:17px 16px 30px; }
    .dl-page-heading { display:block; margin:13px 0 20px; }
    .dl-page-heading h1 { font-size:24px; }
    .dl-back { margin-top:5px; }
    .dl-layout { display:block; }
    .dl-work { padding:20px; border-right:0; border-bottom:1px solid #e2e8f2; }
    .dl-overview { display:flex; gap:17px; align-items:flex-start; }
    .dl-cover { width:84px; height:112px; flex:0 0 84px; margin:0; }
    .dl-work-title h3 { font-size:16px; }
    .dl-meta { display:flex; flex-wrap:wrap; column-gap:20px; margin-top:14px!important; }
    .dl-meta>div { gap:7px; padding:3px 0; }
    .dl-task { padding:21px 20px 17px; }
    .dl-intro h2 { font-size:19px; }
    .dl-timeline li { gap:9px; grid-template-columns:26px minmax(0,1fr); }
    .dl-timeline time { grid-column:2; text-align:left; line-height:1.5; margin-top:-8px; }
}
@media(prefers-reduced-motion:reduce) { .dl-progress.is-working>span { animation:none; transform:translateX(130%); } }

/* public/css/download.css */
/* ============================================================================
   DOWNLOAD.CSS - EcchiBon Manga Archive Download Page Styles
   Self-contained, bulletproof CSS matching main EcchiBon aesthetic (#f3f6fb / #3d4ed7)
   Zero dependency on external Tailwind compilation or PurgeCSS
   ============================================================================ */

:root {
    --eb-site-bg: #f3f6fb;
    --eb-surface: #ffffff;
    --eb-surface-soft: #f7f9fd;
    --eb-surface-muted: #e7edf8;
    --eb-border: #e2e8f2;
    --eb-border-soft: #e2e8f2;
    --eb-border-strong: #d5deee;
    --eb-text-primary: #1a2332;
    --eb-text-secondary: #1a2332;
    --eb-text-muted: #5c6b82;
    --eb-accent: #3d4ed7;
    --eb-accent-hover: #2c3bb8;
    --eb-accent-soft: #fceded;
    --eb-green: #16a34a;
    --eb-green-soft: #dcfce7;
    --eb-amber: #d97706;
    --eb-amber-soft: #fef3c7;
}

/* Base resets for download elements */
.dl-wrap * {
    box-sizing: border-box;
}

/* ============================================================================
   1. Page Container & Header
   ============================================================================ */
.dl-top-banner {
    background-color: var(--eb-accent);
    color: #ffffff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.dl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}
@media (min-width: 640px) {
    .dl-container {
        padding: 24px 20px 50px;
    }
}
@media (min-width: 1024px) {
    .dl-container {
        padding: 28px 24px 60px;
    }
}

.dl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--eb-text-muted);
    margin-bottom: 16px;
}
.dl-breadcrumb a {
    color: var(--eb-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.dl-breadcrumb a:hover {
    color: var(--eb-accent);
}
.dl-breadcrumb .sep {
    color: #b5a89b;
}
.dl-breadcrumb .current {
    color: var(--eb-accent);
    font-weight: 600;
}

.dl-page-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eb-border);
}
@media (min-width: 640px) {
    .dl-page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.dl-page-title-box h1 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eb-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}
@media (min-width: 640px) {
    .dl-page-title-box h1 {
        font-size: 1.85rem;
    }
}
.dl-page-title-box p {
    font-size: 0.8125rem;
    color: var(--eb-text-muted);
    margin: 4px 0 0;
}

.dl-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--eb-text-secondary);
    background: #ffffff;
    border: 1px solid #d5deee;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    align-self: flex-start;
}
@media (min-width: 640px) {
    .dl-back-btn {
        align-self: auto;
    }
}
.dl-back-btn:hover {
    border-color: var(--eb-accent);
    color: var(--eb-accent);
}

/* ============================================================================
   2. Manga Overview Card
   ============================================================================ */
.dl-manga-card {
    background: #ffffff;
    border: 1px solid var(--eb-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(26, 35, 50, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
@media (min-width: 640px) {
    .dl-manga-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

.dl-manga-cover {
    width: 100px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--eb-border);
    background: #f3f6fb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.dl-manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dl-manga-info {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.dl-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
@media (min-width: 640px) {
    .dl-badges-row {
        justify-content: flex-start;
    }
}

.dl-pill-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 500;
    line-height: 1.25;
}
.dl-tag-gray {
    background: #e7edf8;
    border: 1px solid #e0d6cb;
    color: #1a2332;
}
.dl-tag-red {
    background: #fde8e8;
    border: 1px solid #f8b4b4;
    color: var(--eb-accent);
    font-weight: 600;
}

.dl-manga-title {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--eb-text-primary);
    margin: 0 0 4px;
    line-height: 1.4;
    word-break: break-word;
}
.dl-manga-alt-title {
    font-size: 0.8125rem;
    color: var(--eb-text-muted);
    margin: 0;
    word-break: break-word;
}

/* ============================================================================
   3. Redesigned "パッケージ作成タスク & 進行状況" Card
   ============================================================================ */
.dl-task-card {
    background: #ffffff;
    border: 1px solid var(--eb-border);
    border-top: 4px solid var(--eb-accent);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
    padding: 20px;
    margin-bottom: 24px;
    overflow: hidden;
}
@media (min-width: 640px) {
    .dl-task-card {
        padding: 28px;
    }
}

.dl-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eb-border);
    margin-bottom: 20px;
}

.dl-task-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dl-task-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fceded;
    color: var(--eb-accent);
    border: 1px solid #f5d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dl-task-icon-box svg {
    width: 22px;
    height: 22px;
}

.dl-task-title-text {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--eb-text-primary);
    margin: 0;
    line-height: 1.25;
}
@media (min-width: 640px) {
    .dl-task-title-text {
        font-size: 1.25rem;
    }
}

.dl-task-sub {
    font-size: 0.65rem;
    color: #7b8ba3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

/* Status Pill & Pulsing Dot */
.packaging-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.status-indicator-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-indicator-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    opacity: 0.4;
    animation: eb-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes eb-ping {
    0% { transform: scale(1); opacity: 0.7; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

.packaging-status-pill.status-ready {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.packaging-status-pill.status-ready .status-indicator-dot {
    background: #10b981;
}
.packaging-status-pill.status-ready .status-indicator-dot::after {
    background: #10b981;
    animation: none;
}

.packaging-status-pill.status-processing {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.packaging-status-pill.status-processing .status-indicator-dot {
    background: #f59e0b;
}
.packaging-status-pill.status-processing .status-indicator-dot::after {
    background: #f59e0b;
}

.packaging-status-pill.status-queued {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}
.packaging-status-pill.status-queued .status-indicator-dot {
    background: #6366f1;
}
.packaging-status-pill.status-queued .status-indicator-dot::after {
    background: #6366f1;
}

.packaging-status-pill.status-failed {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.packaging-status-pill.status-failed .status-indicator-dot {
    background: #ef4444;
}
.packaging-status-pill.status-failed .status-indicator-dot::after {
    background: #ef4444;
    animation: none;
}

/* ============================================================================
   4. Progress Hero Section
   ============================================================================ */
.dl-progress-hero {
    background: #f7f9fd;
    border: 1px solid #eee6dc;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dl-progress-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.dl-stage-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dl-stage-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f4ece3;
    color: var(--eb-text-muted);
    border: 1px solid #e4dacd;
    flex-shrink: 0;
}

.dl-stage-desc {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--eb-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
@media (min-width: 640px) {
    .dl-stage-desc {
        max-width: 480px;
    }
}

.dl-percent-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--eb-accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.progress-track-wrapper {
    position: relative;
    width: 100%;
    height: 12px;
    background: #e2e8f2;
    border-radius: 9999px;
    overflow: hidden;
    padding: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.custom-progress-bar {
    position: relative;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #3d4ed7 0%, #ff7a45 50%, #3d4ed7 100%);
    background-size: 200% 100%;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(61, 78, 215, 0.35);
    overflow: hidden;
}

.custom-progress-bar:not(.completed) {
    animation: eb-bar-wave 2.2s linear infinite;
}

@keyframes eb-bar-wave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.custom-progress-bar .progress-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: eb-shimmer 1.8s infinite;
}

@keyframes eb-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.custom-progress-bar.completed {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.35);
}

.dl-progress-milestones {
    display: flex;
    justify-content: space-between;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.65rem;
    color: #a3978b;
    margin-top: 6px;
    padding: 0 2px;
}

/* ============================================================================
   5. Stepper Pipeline Grid
   ============================================================================ */
.dl-stepper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
@media (min-width: 1024px) {
    .dl-stepper-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

.stage-step-card {
    background: #f3f6fb;
    border: 1px solid var(--eb-border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
@media (max-width: 640px) {
    .stage-step-card {
        padding: 10px 12px;
        gap: 8px;
    }
}

.stage-step-card .step-num-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e6dfd5;
    color: var(--eb-text-muted);
    font-weight: 800;
    font-size: 0.8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1px solid #dcd3c6;
}
@media (max-width: 640px) {
    .stage-step-card .step-num-badge {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}

.stage-step-card .step-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--eb-text-primary);
    line-height: 1.25;
}
@media (max-width: 640px) {
    .stage-step-card .step-name {
        font-size: 0.75rem;
    }
}

.stage-step-card .step-desc {
    font-size: 0.68rem;
    color: var(--eb-text-muted);
    line-height: 1.3;
    margin-top: 2px;
}
@media (max-width: 640px) {
    .stage-step-card .step-desc {
        font-size: 0.625rem;
    }
}

.stage-step-card.active {
    background: #ffffff;
    border-color: var(--eb-accent);
    box-shadow: 0 4px 14px rgba(61, 78, 215, 0.12), 0 0 0 1px rgba(61, 78, 215, 0.15);
    transform: translateY(-1px);
}
.stage-step-card.active .step-num-badge {
    background: var(--eb-accent);
    color: #ffffff;
    border-color: var(--eb-accent);
    box-shadow: 0 2px 6px rgba(61, 78, 215, 0.35);
}
.stage-step-card.active .step-name {
    color: var(--eb-accent);
}

.stage-step-card.completed {
    background: #f7faf5;
    border-color: #a7f3d0;
}
.stage-step-card.completed .step-num-badge {
    background: var(--eb-green);
    color: #ffffff;
    border-color: var(--eb-green);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
.stage-step-card.completed .step-name {
    color: #065f46;
}

/* ============================================================================
   6. Dual-Column Split Grid (Desktop: 7fr / 5fr, Mobile: stacked)
   ============================================================================ */
.dl-split-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
@media (min-width: 1024px) {
    .dl-split-grid {
        display: grid;
        grid-template-columns: 7fr 5fr;
        gap: 20px;
        align-items: stretch;
    }
}

.dl-action-panel {
    background: #f7f9fd;
    border: 1px solid #eee6dc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dl-turnstile-wrap {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dl-turnstile-hint {
    font-size: 0.75rem;
    color: var(--eb-text-muted);
    margin-top: 6px;
    text-align: center;
}

.dl-button-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
@media (min-width: 640px) {
    .dl-button-area {
        flex-direction: row;
    }
}

.action-btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    line-height: 1.25;
    letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}
@media (min-width: 640px) {
    .action-btn-main {
        width: auto;
        min-width: 250px;
    }
}

.btn-pack-start {
    background: linear-gradient(135deg, #3d4ed7 0%, #2c3bb8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(61, 78, 215, 0.28);
}
.btn-pack-start:hover:not(:disabled) {
    background: linear-gradient(135deg, #c24141 0%, #a83535 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(61, 78, 215, 0.38);
}
.btn-pack-start:active:not(:disabled) {
    transform: translateY(0);
}
.btn-pack-start:disabled {
    background: #d5deee;
    color: #8c8072 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-download-ready {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
    animation: eb-bounce-soft 2.5s ease-in-out infinite;
}
@keyframes eb-bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.btn-download-ready:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.38);
    color: #ffffff !important;
    animation: none;
}
.btn-download-ready:active {
    transform: translateY(0);
}

.dl-features-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #eee6dc;
    font-size: 0.7rem;
    color: var(--eb-text-muted);
}
@media (max-width: 639px) {
    .dl-features-row {
        justify-content: center;
        gap: 12px;
    }
}

/* ============================================================================
   7. Live Terminal Console
   ============================================================================ */
.dl-terminal-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
}

.terminal-container {
    background: #1f1d1b;
    border: 1px solid #38332e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(31, 29, 27, 0.12);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.terminal-header {
    background: #171513;
    border-bottom: 1px solid #2e2925;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.terminal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.terminal-header-title {
    font-size: 0.7rem;
    color: #b5a89b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    margin-left: 8px;
}

.terminal-live-tag {
    font-size: 0.7rem;
    color: #86efac;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.terminal-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: eb-ping 1.8s infinite;
}

.terminal-body {
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.6;
    color: #e2dbd1;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 140px;
    max-height: 180px;
}
.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
    background: #171513;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: #3e3832;
    border-radius: 3px;
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
    word-break: break-all;
}
.terminal-time {
    color: #8c8276;
    font-weight: 500;
    flex-shrink: 0;
}
.terminal-msg.success {
    color: #4ade80;
    font-weight: 600;
}
.terminal-msg.warning {
    color: #fbbf24;
}
.terminal-msg.info {
    color: #60a5fa;
}

/* ============================================================================
   8. In-Page Alert Banner
   ============================================================================ */
.packaging-alert-box {
    padding: 14px 18px;
    border-radius: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.packaging-alert-box.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.packaging-alert-box.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.packaging-alert-box.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.btn-alert-action {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}
.btn-alert-primary {
    background: var(--eb-accent);
    color: #ffffff;
}
.btn-alert-warning {
    background: #f59e0b;
    color: #ffffff;
}
.btn-alert-danger {
    background: #ef4444;
    color: #ffffff;
}

/* ============================================================================
   9. Instructions & Notes Card
   ============================================================================ */
.dl-notes-card {
    background: #ffffff;
    border: 1px solid var(--eb-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(26, 35, 50, 0.04);
}
@media (min-width: 640px) {
    .dl-notes-card {
        padding: 24px;
    }
}

.dl-notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--eb-border);
    margin-bottom: 16px;
}
.dl-notes-header h3 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--eb-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dl-feedback-trigger {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--eb-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.dl-feedback-trigger:hover {
    color: var(--eb-accent-hover);
    text-decoration: underline;
}

.dl-notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 768px) {
    .dl-notes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

.dl-note-item {
    background: #f3f6fb;
    border: 1px solid var(--eb-border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.dl-note-check {
    color: var(--eb-green);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    flex-shrink: 0;
}
.dl-note-content strong {
    display: block;
    color: var(--eb-text-primary);
    font-size: 0.8125rem;
    margin-bottom: 2px;
}
.dl-note-content span {
    display: block;
    color: var(--eb-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ============================================================================
   10. Feedback Modal & Toast
   ============================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}
.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--eb-border);
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.modal-title-text {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eb-text-primary);
    margin: 0;
}
.modal-sub-text {
    font-size: 0.75rem;
    color: var(--eb-text-muted);
    margin: 4px 0 0;
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--eb-text-muted);
    cursor: pointer;
    padding: 0;
}
.modal-close-btn:hover {
    color: var(--eb-accent);
}

.modal-form-group {
    margin-bottom: 14px;
}
.modal-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--eb-text-secondary);
    margin-bottom: 4px;
}
.modal-input,
.modal-select,
.modal-textarea {
    width: 100%;
    border: 1px solid var(--eb-border);
    background: #f3f6fb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    color: var(--eb-text-primary);
    outline: none;
    transition: all 0.2s;
}
.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
    background: #ffffff;
    border-color: var(--eb-accent);
    box-shadow: 0 0 0 2px rgba(61, 78, 215, 0.15);
}
.modal-textarea {
    resize: none;
    height: 90px;
}

.modal-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.modal-cancel-btn {
    padding: 8px 18px;
    border: 1px solid #d5deee;
    background: #ffffff;
    color: var(--eb-text-secondary);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}
.modal-submit-btn {
    padding: 8px 22px;
    background: var(--eb-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-submit-btn:hover {
    background: var(--eb-accent-hover);
}

.ee-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    border-radius: 40px;
    background: #1a2332;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.ee-toast.is-visible {
    opacity: 1;
}

/* ============================================================================
   11. Spinner & Utility Animations
   ============================================================================ */
.icon-spin {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: eb-spin 0.8s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}
@keyframes eb-spin {
    to { transform: rotate(360deg); }
}


body, .brand-serif, h1, h2, h3, h4, h5, h6 { font-family: "Noto Sans KR", "Segoe UI", sans-serif; }

/* === Ad Slot Containers (Banner 320x50 & Social Bar) === */
.site-ad-slot.site-ad-banner-320x50 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 1.15rem auto;
    overflow: hidden;
    box-sizing: border-box;
}
.site-ad-banner-320x50__inner {
    width: 320px;
    max-width: 100%;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}
.site-ad-banner-320x50.is-placeholder .site-ad-banner-320x50__inner {
    height: 50px;
    background: #eef2fb;
    border: 1px dashed #cbd5ec;
    border-radius: 6px;
    color: #4a5a78;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 0.5rem;
}
.site-ad-social-bar.is-placeholder {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    background: #eef2fb;
    border: 1px dashed #3d4ed7;
    color: #3d4ed7;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}
