:root {
  color-scheme: dark;
  --bg: #07131f;
  --panel: #0d2030;
  --panel-deep: #091a28;
  --line: #2b4455;
  --line-bright: #4f7081;
  --text: #f1f8fb;
  --muted: #acc0ca;
  --cyan: #25c5f3;
  --cyan-soft: #a8efff;
  --amber: #ffbf75;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 1000px; pointer-events: none; background: radial-gradient(ellipse at 68% 4%, #0c4967 0%, transparent 42%), linear-gradient(90deg, transparent 0 97%, #ffffff08 97% 100%); background-size: auto, 34px 34px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--cyan); color: #06111b; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 100; left: 12px; top: -80px; padding: 12px 18px; color: #06121b; background: var(--amber); font-weight: 800; }
.skip-link:focus { top: 12px; }
.page-width { width: min(100% - 32px, 1180px); margin-inline: auto; }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid #67d5ee27; background: #07131fe8; backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand-words { display: grid; line-height: 1.18; min-width: 0; }
.brand strong { font-family: Arial, sans-serif; font-size: 17px; letter-spacing: -.035em; white-space: nowrap; }
.brand small { margin-top: 5px; color: var(--cyan); font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .18em; white-space: nowrap; }
.site-header nav a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 3px; color: var(--cyan-soft); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: white; }
.site-header nav span { font-size: 20px; line-height: 1; }

.hero { padding-top: 20px; }
.banner-frame { position: relative; overflow: hidden; border: 1px solid #5fc4f569; border-radius: 17px; background: #05121f; box-shadow: 0 20px 70px #0008, 0 0 0 6px #1398bd10; }
.banner-frame img { display: block; width: 100%; height: auto; }
.banner-corner { position: absolute; top: 0; right: 0; padding: 4px 8px; background: #07131fd9; color: var(--cyan-soft); font: 700 10px/1.3 ui-monospace, monospace; letter-spacing: .12em; }
.hero-console { display: grid; gap: 24px; padding: 29px 0 34px; border-bottom: 1px solid var(--line); }
.eyebrow, .section-number { margin: 0; color: var(--cyan); font: 700 12px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px #ffbf75b0; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 13px 0 12px; font-size: clamp(31px, 8vw, 54px); line-height: 1.24; letter-spacing: -.06em; font-weight: 900; }
.hero h1 em { color: var(--cyan-soft); font-style: normal; }
.hero-lede { max-width: 560px; margin-bottom: 0; color: var(--muted); line-height: 1.8; }
.surprise-button { display: flex; align-items: center; width: 100%; min-height: 82px; gap: 16px; padding: 12px 16px; border: 1px solid var(--amber); border-radius: 12px; color: var(--text); background: linear-gradient(120deg, #493323 0%, #1e2830 66%, #102332 100%); text-align: left; box-shadow: inset 0 1px #ffe0ae41, 0 9px 30px #0004; transition: transform .2s ease, background .2s ease; }
.surprise-button:hover { transform: translateY(-3px); background: linear-gradient(120deg, #684025, #283743 70%, #102332); }
.surprise-mark { display: grid; place-items: center; width: 47px; height: 47px; flex: none; border: 1px solid #ffc9878c; border-radius: 50%; color: var(--amber); font: 700 29px/1 Georgia, serif; }
.surprise-button strong, .surprise-button small { display: block; }
.surprise-button strong { font-size: 17px; line-height: 1.4; }
.surprise-button small { color: #e4c7ab; font-size: 13px; }
.surprise-arrow { margin-left: auto; align-self: flex-start; color: var(--amber); font-size: 24px; line-height: 1; }

.explore { padding-top: 47px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: baseline; gap: 26px; }
.section-heading .section-number { min-width: 74px; }
.section-heading h2, .catalog-head h2 { margin: 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.25; letter-spacing: -.04em; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 62px; margin-top: 21px; padding: 0 14px; border: 1px solid var(--line-bright); border-radius: 9px; background: #f0f8fb; color: #0b2838; box-shadow: 5px 5px 0 #17465b; }
.search-box:focus-within { border-color: var(--cyan); box-shadow: 5px 5px 0 #0b94bc, 0 0 0 3px #25c5f34a; }
.search-icon { display: flex; color: #1f657e; }
.search-box input { min-width: 0; flex: 1; height: 58px; border: 0; outline: 0; color: #082436; background: transparent; font-size: 16px; }
.search-box input::placeholder { color: #536b79; opacity: 1; }
.search-box input::-webkit-search-cancel-button { display: none; }
.clear-search { flex: none; min-width: 44px; min-height: 44px; padding: 0 9px; border: 0; border-radius: 5px; color: #134459; background: #d8e9ee; font-size: 14px; font-weight: 700; }
.filter-line { margin-top: 24px; }
.filter-label { display: block; margin-bottom: 11px; color: var(--muted); font-size: 14px; font-weight: 700; }
.category-scroll { display: flex; gap: 8px; max-width: 100%; padding: 1px 1px 9px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #33556a transparent; }
.category-button { flex: none; min-height: 44px; padding: 8px 17px; border: 1px solid #4a6776; border-radius: 100px; color: #d4e4ec; background: #112534; font-size: 14px; font-weight: 700; white-space: nowrap; }
.category-button:hover { border-color: var(--cyan); color: white; }
.category-button[aria-pressed="true"] { border-color: var(--cyan); color: #061923; background: var(--cyan); box-shadow: 0 0 18px #25c5f34b; }

.catalog { padding-top: 54px; padding-bottom: 74px; scroll-margin-top: 24px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 17px; }
.catalog-head h2 { margin-top: 7px; }
.catalog-tools { display: flex; align-items: center; gap: 18px; }
#result-count { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.sort-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.sort-label select { min-height: 44px; padding: 7px 27px 7px 10px; border: 1px solid var(--line-bright); border-radius: 5px; color: var(--text); background: #112534; font-size: 14px; }
.shelf-guide { display: grid; grid-template-columns: 48px 1fr 62px; gap: 15px; padding: 10px 17px; border-block: 1px solid var(--line-bright); color: var(--cyan); background: #102736; font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .12em; }
.shelf-guide span:last-child { text-align: right; }
.work-list { display: grid; grid-template-columns: minmax(0,1fr); padding: 0; margin: 0; list-style: none; border-bottom: 1px solid var(--line-bright); }
.work-row { min-width: 0; border-bottom: 1px solid var(--line); }
.work-row:last-child { border-bottom: 0; }
.work-control { display: grid; grid-template-columns: 28px 58px minmax(0,1fr) 40px; align-items: center; width: 100%; min-height: 124px; gap: 11px; padding: 17px 12px; border: 0; border-left: 3px solid transparent; color: inherit; background: transparent; text-align: left; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.work-control:hover, .work-control:focus-visible { border-left-color: var(--cyan); background: #163143; }
.work-number { align-self: start; padding-top: 2px; color: #8eabb9; font: 700 12px/1.5 ui-monospace, Consolas, monospace; }
.work-thumb { display: grid; place-items: center; width: 58px; height: 58px; overflow: hidden; border: 1px solid #3986a2; border-radius: 7px; color: var(--cyan-soft); background: radial-gradient(circle at 75% 18%, #205676, #0b2333 72%); font-size: 14px; font-weight: 900; letter-spacing: -.06em; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-body { display: block; min-width: 0; }
.work-category { display: block; margin-bottom: 3px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.work-title { display: block; font-size: 18px; line-height: 1.35; letter-spacing: -.03em; overflow-wrap: anywhere; }
.work-description { display: -webkit-box; margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.work-action { display: grid; justify-items: end; align-self: stretch; align-content: space-between; color: var(--cyan-soft); }
.work-status { font: 700 9px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .05em; }
.work-arrow { font-size: 27px; line-height: 1; }
.work-control:hover .work-arrow { transform: translate(2px,-2px); }
.load-more { display: block; width: min(100%, 300px); min-height: 52px; margin: 30px auto 0; border: 1px solid var(--cyan); border-radius: 5px; color: var(--cyan-soft); background: #112837; font-weight: 800; }
.load-more:hover { background: #1a4055; }
.load-more span { margin-left: 12px; }
.empty-state { padding: 55px 20px 60px; border-bottom: 1px solid var(--line); text-align: center; }
.empty-state > span { color: var(--cyan); font: 700 30px/1 ui-monospace, monospace; }
.empty-state h3 { margin: 17px 0 4px; font-size: 21px; }
.empty-state p { margin-bottom: 20px; color: var(--muted); }
.empty-state button { min-height: 44px; padding: 7px 16px; border: 1px solid var(--cyan); border-radius: 5px; color: var(--cyan-soft); background: #102b3c; font-weight: 700; }

.ad-area { margin-top: 42px; margin-bottom: 75px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.ad-label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.ad-content { min-height: 100px; }
.site-footer { border-top: 1px solid var(--line); background: #050f19; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 135px; padding-block: 30px; }
.footer-inner strong { font-family: Arial, sans-serif; font-size: 21px; letter-spacing: -.04em; }
.footer-inner p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.footer-inner a { color: var(--cyan-soft); font-size: 14px; font-weight: 700; white-space: nowrap; }

.work-dialog { width: min(calc(100% - 24px), 510px); max-height: min(85vh, 760px); padding: 0 25px 26px; overflow-y: auto; border: 1px solid #4e91ae; border-radius: 14px; color: var(--text); background: linear-gradient(150deg,#12354a,#0b1a28 60%); box-shadow: 0 25px 100px #000b; }
.work-dialog::backdrop { background: #010811cc; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; min-height: 67px; border-bottom: 1px solid var(--line); color: var(--cyan); font-size: 14px; font-weight: 800; }
.dialog-top button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #547287; border-radius: 50%; color: white; background: #16364a; font-size: 28px; line-height: 1; }
.work-dialog h2 { margin: 24px 0 12px; font-size: clamp(24px, 6vw, 32px); line-height: 1.35; letter-spacing: -.04em; }
.work-dialog p { color: #d3e2e9; line-height: 1.8; }
.dialog-image { margin-top: 20px; }
.dialog-image img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.dialog-tags span { padding: 5px 10px; border: 1px solid #3b667b; border-radius: 4px; color: var(--cyan-soft); font-size: 13px; }
.dialog-actions { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.dialog-link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 9px 20px; border-radius: 5px; color: #041622; background: var(--cyan); font-weight: 900; text-decoration: none; }
#dialog-soon { color: var(--muted); font-size: 14px; }

@media (min-width: 760px) {
  .page-width { width: min(100% - 60px, 1180px); }
  .hero { padding-top: 30px; }
  .banner-frame { border-radius: 23px; }
  .hero-console { grid-template-columns: minmax(0,1fr) 320px; align-items: end; padding-block: 39px 46px; }
  .surprise-button { min-height: 96px; }
  .explore { padding-top: 66px; }
  .search-box { max-width: 900px; }
  .catalog { padding-top: 68px; }
  .work-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-row:nth-child(odd) { border-right: 1px solid var(--line); }
  .work-row:nth-last-child(-n+2) { border-bottom: 0; }
  .shelf-guide { grid-template-columns: 48px 1fr 62px; }
}

@media (max-width: 600px) {
  .work-description { font-size: 14px; line-height: 1.6; }
  .catalog-head { align-items: start; }
  .catalog-tools { display: grid; justify-items: end; gap: 4px; }
  .sort-label { font-size: 0; }
  .sort-label select { font-size: 14px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 7px; }
  .shelf-guide { grid-template-columns: 28px 1fr 40px; gap: 11px; padding-inline: 12px; }
  .footer-inner { align-items: start; flex-direction: column; min-height: 0; }
}

@media (max-width: 350px) {
  .brand strong { font-size: 15px; }
  .brand img { width: 42px; height: 42px; }
  .site-header nav a { font-size: 12px; }
  .work-control { grid-template-columns: 23px 48px minmax(0,1fr) 25px; gap: 8px; padding-inline: 7px; }
  .work-thumb { width: 48px; height: 48px; font-size: 12px; }
  .work-title { font-size: 16px; }
  .work-status { display: none; }
  .shelf-guide { grid-template-columns: 23px 1fr 25px; gap: 8px; }
}

@media (max-width: 300px) {
  .site-header nav a { font-size: 0; }
  .site-header nav span { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
