:root {
  color-scheme: light;
  --ink: #253440;
  --navy: #0b1625;
  --paper: #f4f8fa;
  --white: #fff;
  --muted: #637784;
  --line: #d9e5eb;
  --cyan: #05c3e8;
  --link: #087e9c;
  --red: #a42f3d;
  font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--paper); background-image: linear-gradient(#a9c0cc17 1px, transparent 1px), linear-gradient(90deg, #a9c0cc17 1px, transparent 1px); background-size: 40px 40px; color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark { display: block; width: 180px; height: 40px; object-fit: contain; object-position: left center; }
.top-links { display: flex; flex-wrap: wrap; gap: 8px; }
.top-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: #ffffffc9; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; transition: border-color .2s, color .2s, transform .2s; }
.top-link:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--link); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; overflow: hidden; margin: 12px 0 24px; padding: 56px 52px 50px; border: 1px solid #162c42; border-radius: 26px; background: linear-gradient(120deg, #0b1625 0%, #10293b 100%); color: white; animation: rise-in .65s both; }
.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.hero::before { inset: 0; opacity: .28; background-image: linear-gradient(#6cb3ca24 1px, transparent 1px), linear-gradient(90deg, #6cb3ca24 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(100deg, #000 20%, transparent 85%); }
.hero::after { top: -210px; right: -70px; width: 460px; height: 460px; border: 1px solid #05c3e82e; border-radius: 50%; box-shadow: 0 0 0 42px #05c3e812, 0 0 0 90px #05c3e80c; animation: orbit 48s linear infinite; }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 15px; color: var(--link); font-size: 10px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #56d5ef; }
h1 { max-width: 740px; margin: 0; font-size: clamp(42px, 7vw, 76px); line-height: .99; letter-spacing: -.075em; }
h1 span { display: inline-block; color: var(--cyan); }
.hero-copy { max-width: 480px; margin: 20px 0 0; color: #cfdae2; font-size: 14px; line-height: 1.9; }
.hero-stamp { display: grid; width: 126px; aspect-ratio: 1; place-items: center; border: 1px solid #05c3e878; border-radius: 50%; background: #0b16258c; color: #eaf8fc; text-align: center; font-size: 11px; font-weight: 800; line-height: 1.5; animation: float 5s ease-in-out infinite; }
.hero-stamp strong { display: block; color: var(--cyan); font-size: 30px; line-height: 1.2; }
.featured { margin: -4px 0 48px; }
.featured-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.featured-head .eyebrow { margin-bottom: 5px; }
.featured-head h2 { font-size: 24px; }
.featured-controls { display: flex; align-items: center; gap: 7px; }
.featured-nav { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.featured-nav:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--link); }
.featured-window { display: flex; overflow-x: auto; border: 1px solid #b8dfe7; border-radius: 18px; background: white; box-shadow: 0 9px 25px #15384a0d; scroll-snap-type: x mandatory; scrollbar-width: none; }
.featured-window::-webkit-scrollbar, .category-page-links::-webkit-scrollbar { display: none; }
.featured-card { display: grid; flex: 0 0 100%; min-width: 0; grid-template-columns: minmax(190px, .8fr) 1.2fr; overflow: hidden; background: white; scroll-snap-align: start; animation: rise-in .55s both; }
.featured-art { position: relative; min-height: 320px; overflow: hidden; background: var(--navy); }
.featured-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: filter .5s; }
.featured-card:hover .featured-image { filter: brightness(1.06); }
.featured-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 25px clamp(20px, 4vw, 44px); }
.featured-category { margin: 0 0 9px; color: var(--link); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.featured-card h3 { margin: 0; color: var(--navy); font-size: clamp(21px, 3vw, 30px); letter-spacing: -.045em; }
.featured-summary { margin: 10px 0 3px; color: #1b3444; font-size: 14px; font-weight: 800; line-height: 1.6; }
.featured-desc { margin: 4px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.featured-link { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding: 10px 14px; border-radius: 999px; background: var(--navy); color: white; font-size: 11px; font-weight: 800; text-decoration: none; transition: background .2s, transform .2s; }
.featured-link:hover { transform: translateY(-2px); background: var(--link); }
.categories { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.category { border: 0; background: transparent; cursor: pointer; }
.category-count { margin-left: 7px; color: var(--muted); font-size: 10px; }
.catalog { padding: 30px 0 80px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 31px; letter-spacing: -.06em; }
.result-count { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.search { width: min(330px, 100%); padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); outline: none; transition: box-shadow .2s, border-color .2s; }
.search:focus-visible { border-color: #64bfd0; box-shadow: 0 0 0 4px #05c3e81c; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 35px; margin-bottom: 24px; }
.tag-label { margin-right: 4px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.tag { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff9c; color: var(--ink); font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .16s, border-color .16s, background .16s, color .16s; }
.tag:hover { transform: translateY(-2px); border-color: #69c6d7; }
.tag[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.clear { margin-left: auto; padding: 7px 4px; border: 0; background: none; color: var(--link); font-size: 11px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.card { display: flex; min-height: 288px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 5px 18px #19384a09; animation: card-in .5s both; animation-delay: calc(var(--order, 0) * 38ms); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.card:hover { transform: translateY(-5px); border-color: #8ccad7; box-shadow: 0 16px 34px #15384a17; }
.card-art { position: relative; display: flex; aspect-ratio: 1; align-items: end; overflow: hidden; padding: 17px; background: var(--navy); color: white; }
.card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-image { transform: scale(1.045); }
.card[data-category="frame"] .card-image { object-fit: contain; background: var(--paper); transform: none; }
.card-art:not(.no-image)::before, .card-art:not(.no-image)::after,
.card-art:not(.no-image) .art-code, .card-art:not(.no-image) .art-dot, .card-art:not(.no-image) .art-title { display: none; }
.card-art.no-image { min-height: 132px; aspect-ratio: auto; }
.card-art::before, .card-art::after { position: absolute; content: ""; pointer-events: none; }
.card-art::before { top: -46px; right: -14px; width: 158px; height: 158px; border: 1px solid #ffffff55; border-radius: 50%; box-shadow: 0 0 0 16px #ffffff12, 0 0 0 34px #ffffff0b; }
.card-art::after { top: 0; right: 105px; width: 1px; height: 100%; background: #ffffff24; transform: rotate(24deg); }
.card[data-category="comments"] .card-art, .card[data-category="effects"] .card-art, .card[data-category="tools"] .card-art { background: linear-gradient(125deg, #0b1625 30%, #17475a); }
.card[data-category="obs"] .card-art { background: linear-gradient(125deg, #0b1625 25%, #1c4b65); }
.card[data-category="premiere"] .card-art { background: linear-gradient(125deg, #0b1625 24%, #21455d); }
.art-code { position: absolute; top: 17px; left: 17px; color: #d3f3fa; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.art-title { position: relative; z-index: 1; max-width: 85%; margin: 0; white-space: pre-line; font-size: 24px; font-weight: 900; letter-spacing: -.065em; line-height: 1; }
.art-dot { position: absolute; top: 18px; right: 20px; width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px #05c3e8a3; animation: blink 2.8s ease-in-out infinite; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.card-category { margin: 0 0 8px; color: var(--link); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.card h3 { margin: 0; color: var(--navy); font-size: 18px; letter-spacing: -.035em; }
.card-summary { margin: 9px 0 5px; color: #1b3444; font-size: 13px; font-weight: 800; line-height: 1.6; }
.card-desc { margin: 5px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--link); font-size: 11px; font-weight: 850; text-decoration: none; }
.card-link span:last-child { font-size: 18px; transition: transform .2s; }
.card-link:hover span:last-child { transform: translate(3px, -3px); }
.empty, .error { grid-column: 1 / -1; padding: 55px 20px; border: 1px dashed #a9c0cc; border-radius: 14px; color: var(--muted); text-align: center; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 23px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-categories { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; }
:focus-visible { outline: 3px solid #087e9c; outline-offset: 3px; }
@keyframes rise-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes card-in { from { opacity: 0; translate: 0 12px; scale: .99; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes blink { 0%, 100% { opacity: .7; box-shadow: 0 0 10px #05c3e866; } 50% { opacity: 1; box-shadow: 0 0 22px #05c3e8; } }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { grid-template-columns: 1fr auto; padding: 46px 38px; } }
@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 440px); }
  .topbar { padding: 16px 0; }
  .brand-mark { width: 152px; height: 34px; }
  .top-link { padding: 9px 12px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 38px 24px 30px; border-radius: 20px; }
  .hero::after { top: -270px; right: -245px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .featured { margin-bottom: 38px; }
  .featured-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .featured-art { min-height: 0; aspect-ratio: 4 / 3; }
  .featured-copy { padding: 19px; }
  .hero-stamp { display: none; }
  .hero-copy { max-width: 350px; font-size: 12px; }
  .section-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-art { min-height: 0; }
  .footer { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.topbar { flex-wrap: wrap; gap: 12px; }
.category-page-links { display: flex; overflow-x: auto; margin: 0 0 28px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.category-tab { flex: 1 0 auto; padding: 12px clamp(7px, 1.5vw, 18px); border-bottom: 3px solid transparent; color: var(--muted); font-size: clamp(11px, 2.5vw, 13px); font-weight: 800; text-align: center; text-decoration: none; white-space: nowrap; }
.category-tab:hover { background: white; color: var(--link); }
.category-tab[aria-current="page"], .category-tab[aria-pressed="true"] { border-bottom-color: var(--cyan); background: white; color: var(--ink); }
.breadcrumb { margin: 8px 0 20px; color: var(--muted); font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumb li + li::before { margin-right: 8px; content: "/"; }
.category-page .hero { display: block; }
.category-page h1 { max-width: none; font-size: clamp(24px, 4.8vw, 54px); line-height: 1.25; letter-spacing: -.045em; text-wrap: balance; }
.category-page h1 span { color: inherit; white-space: nowrap; }
.category-page .hero-copy { max-width: 720px; }
.category-page .card-link { gap: 12px; }
