:root {
  color-scheme: light;
  --black: #000;
  --white: #fff;
  --soft: #f6f6f6;
  --gray: #86878d;
  --muted: #666;
  --line: #d8d8d8;
  --header-height: 82px;
  --font-ja: sans-serif;
  --font-latin: "optima-nova-lt-pro", sans-serif;
}

* { box-sizing: border-box; font-feature-settings: "palt"; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--white); color: var(--black); font-family: var(--font-ja); font-size: 16px; font-weight: 400; line-height: 1.55; }
body.is-locked { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a, input, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--black); }
a { color: inherit; }
.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; }
.eyebrow { margin: 0 0 14px; color: var(--black); font-family: var(--font-latin); font-size: 12px; font-weight: 400; letter-spacing: .112em; line-height: 1.2; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding: 0 max(40px, calc((100vw - 1360px) / 2)); background: rgba(255,255,255,.98); border-bottom: 1px solid var(--black); }
.brand { display: flex; align-items: center; gap: 13px; width: max-content; color: var(--black); text-decoration: none; line-height: 1; }
.brand-symbol { min-width: 52px; font-family: var(--font-latin); font-size: 22px; font-weight: 400; letter-spacing: .04em; }
.brand > span:last-child { display: flex; flex-direction: column; padding-left: 13px; border-left: 1px solid var(--black); }
.brand strong { font-family: var(--font-latin); font-size: 14px; font-weight: 400; letter-spacing: .04em; }
.brand small { margin-top: 6px; font-family: var(--font-latin); font-size: 8px; letter-spacing: .17em; }
.site-header nav { display: flex; gap: 38px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--font-latin); font-size: 16px; font-weight: 400; letter-spacing: .03em; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 7px; }
.panel-count { justify-self: end; font-family: var(--font-latin); font-size: 12px; letter-spacing: .112em; }
.panel-count strong { margin-right: 6px; font-size: 16px; font-weight: 400; }

main { width: min(1360px, calc(100% - 80px)); margin: 0 auto; }
.intro { min-height: 420px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 96px; padding: 90px 0 76px; border-bottom: 1px solid var(--black); }
.intro h1 { max-width: 760px; margin: 0; font-size: clamp(40px, 4.2vw, 64px); font-weight: 400; letter-spacing: .04em; line-height: 1.35; }
.intro-copy { max-width: 430px; padding-bottom: 8px; }
.intro-copy p { margin: 0 0 30px; font-size: 15px; line-height: 1.8; }
.intro-copy a { min-height: 34px; display: inline-flex; align-items: center; justify-content: space-between; gap: 48px; padding: 2px 10px 1px; background: var(--white); color: var(--black); border: 1px solid var(--black); border-radius: 0; font-family: var(--font-latin); font-size: 16px; font-weight: 400; letter-spacing: .03em; text-decoration: none; }
.intro-copy a:hover { background: var(--black); color: var(--white); }

.catalog { padding: 76px 0 120px; }
.catalog-head { display: grid; grid-template-columns: 1fr minmax(280px, 410px); align-items: end; gap: 48px; }
.catalog h2, .guide h2 { margin: 0; font-family: var(--font-latin); font-size: 40px; font-weight: 400; letter-spacing: .04em; line-height: 1.45; }
.search-box { height: 46px; display: flex; align-items: center; gap: 12px; padding: 0; background: var(--white); border: 0; border-bottom: 1px solid var(--black); border-radius: 0; color: var(--black); }
.search-box:focus-within { border-bottom-width: 2px; }
.search-box input { min-width: 0; flex: 1; padding: 0; background: transparent; border: 0; color: var(--black); font-family: var(--font-ja); font-size: 14px; letter-spacing: .03em; }
.search-box input:focus { outline: 0; }
.search-box input::placeholder { color: var(--muted); }
.search-box kbd { padding: 2px 8px 1px; background: var(--white); border: 1px solid var(--black); border-radius: 0; font-family: var(--font-latin); font-size: 10px; }
.filter-row { min-height: 86px; display: flex; align-items: center; gap: 24px; margin-top: 35px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--black); }
.filters { min-width: 0; flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-button { flex: none; min-height: 31px; padding: 2px 10px 1px; background: transparent; border: 1px solid var(--black); border-radius: 0; color: var(--black); font-family: var(--font-ja); font-size: 12px; font-weight: 400; letter-spacing: .04em; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { background: var(--black); color: var(--white); }
.result-count { flex: none; font-family: var(--font-latin); font-size: 12px; letter-spacing: .112em; }

.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 72px 28px; padding-top: 48px; }
.panel-card { min-width: 0; }
.panel-card-button { width: 100%; display: block; padding: 0; background: transparent; border: 0; color: inherit; text-align: left; cursor: pointer; }
.card-image { position: relative; aspect-ratio: 3 / 4; display: block; overflow: hidden; background: var(--soft); }
.card-image img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .35s ease; }
.card-image > span { position: absolute; inset: auto 0 0; min-height: 38px; display: flex; align-items: center; padding: 2px 12px 1px; background: var(--black); color: var(--white); font-family: var(--font-latin); font-size: 13px; font-weight: 400; letter-spacing: .03em; opacity: 0; transform: translateY(100%); transition: transform .2s ease, opacity .2s ease; }
.panel-card-button:hover .card-image > span, .panel-card-button:focus-visible .card-image > span { opacity: 1; transform: none; }
.panel-card-button:hover .card-image img { transform: scale(1.012); }
.card-content { display: grid; grid-template-columns: 52px 1fr; gap: 9px 18px; min-height: 132px; padding: 19px 0 0; border-top: 1px solid var(--black); }
.card-number { grid-row: span 2; font-family: var(--font-latin); font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: .112em; }
.card-title { min-width: 0; font-size: 21px; font-weight: 400; line-height: 1.5; letter-spacing: .168em; }
.card-tags { display: block; overflow: hidden; color: var(--muted); font-size: 12px; letter-spacing: .112em; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 90px 20px; text-align: center; background: var(--soft); }
.empty-state strong { font-size: 22px; font-weight: 400; letter-spacing: .168em; }
.empty-state p { color: var(--muted); }
.empty-state button { min-height: 38px; padding: 2px 12px 1px; background: var(--black); color: var(--white); border: 1px solid var(--black); border-radius: 0; font-size: 14px; font-weight: 400; cursor: pointer; }

.guide { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; padding: 96px 0 112px; border-top: 1px solid var(--black); }
.guide ol { margin: 0; padding: 0; list-style: none; }
.guide li { display: grid; grid-template-columns: 52px 190px 1fr; gap: 20px; align-items: baseline; min-height: 84px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide li:first-child { border-top: 1px solid var(--line); }
.guide li span { font-family: var(--font-latin); font-size: 14px; font-weight: 400; letter-spacing: .112em; }
.guide li strong { font-size: 18px; font-weight: 400; letter-spacing: .112em; }
.guide li p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .03em; }
footer { min-height: 118px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 max(40px, calc((100vw - 1360px) / 2)); background: var(--black); color: var(--white); font-family: var(--font-latin); font-size: 11px; letter-spacing: .112em; }
footer > span:last-child { justify-self: end; }
.footer-link { min-height: 31px; padding: 2px 10px 1px; background: transparent; color: var(--white); border: 1px solid var(--white); border-radius: 0; font-size: 12px; font-weight: 400; cursor: pointer; }
.footer-link:hover { background: var(--white); color: var(--black); }

.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(134,135,141,.88); }
.detail { position: fixed; top: 0; right: 0; z-index: 40; width: min(820px, 100vw); height: 100dvh; display: grid; grid-template-rows: 64px 1fr; background: var(--white); border-left: 1px solid var(--black); box-shadow: none; transform: translateX(105%); visibility: hidden; transition: transform .24s ease, visibility .24s; }
.detail.is-open { transform: none; visibility: visible; }
.detail-top { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--black); font-family: var(--font-latin); font-size: 12px; letter-spacing: .112em; }
.round-button { width: 40px; height: 40px; background: var(--white); border: 1px solid var(--black); border-radius: 0; color: var(--black); cursor: pointer; }
.round-button:hover { background: var(--black); color: var(--white); }
.detail-scroll { min-height: 0; overflow-y: auto; }
.detail-visual { width: 100%; min-height: 420px; display: grid; place-items: center; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--black); }
.detail-visual img { width: 100%; height: min(70vh, 720px); display: block; object-fit: contain; }
.detail-body { padding: 52px 52px 92px; }
.detail-body > h2 { margin: 0; font-size: 36px; font-weight: 400; letter-spacing: .168em; line-height: 1.5; }
.detail-summary { margin: 20px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .03em; line-height: 1.75; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-list span { padding: 2px 8px 1px; background: transparent; border: 1px solid var(--black); border-radius: 0; font-family: var(--font-latin); font-size: 12px; letter-spacing: .04em; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--black); }
.detail-columns h3 { margin: 0; font-size: 17px; font-weight: 400; letter-spacing: .112em; }
.detail-columns ul { margin: 17px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; letter-spacing: .03em; line-height: 1.8; }
.builder { margin-top: 60px; padding: 36px; background: var(--soft); border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.builder-head { display: flex; justify-content: space-between; align-items: start; }
.builder-head h3 { margin: 0; font-family: var(--font-latin); font-size: 30px; font-weight: 400; letter-spacing: .04em; line-height: 1.45; }
.builder-head > span { font-size: 12px; letter-spacing: .112em; }
.builder fieldset { margin: 28px 0 0; padding: 0; border: 0; }
.builder legend, .request-field { font-size: 14px; font-weight: 400; letter-spacing: .112em; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.choice-row label { position: relative; }
.choice-row input { position: absolute; opacity: 0; }
.choice-row span { min-height: 34px; display: flex; align-items: center; padding: 2px 10px 1px; background: var(--white); border: 1px solid var(--black); border-radius: 0; font-size: 13px; font-weight: 400; cursor: pointer; }
.choice-row span:hover, .choice-row input:checked + span { background: var(--black); color: var(--white); }
.choice-row input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 3px; }
.request-field { display: block; margin-top: 28px; }
.request-field textarea { width: 100%; margin-top: 10px; padding: 13px; resize: vertical; background: var(--white); border: 1px solid var(--black); border-radius: 0; font-size: 15px; font-weight: 400; line-height: 1.6; }
.request-field textarea:focus { outline: 2px solid var(--black); outline-offset: 2px; }
.primary-button { width: 100%; min-height: 44px; margin-top: 24px; background: var(--black); color: var(--white); border: 1px solid var(--black); border-radius: 0; font-size: 15px; font-weight: 400; letter-spacing: .04em; cursor: pointer; }
.primary-button:hover { background: var(--white); color: var(--black); }
.prompt-result { margin-top: 28px; background: var(--white); border: 1px solid var(--black); }
.prompt-result > div { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--black); font-size: 12px; letter-spacing: .112em; }
.prompt-result button { min-height: 31px; padding: 2px 10px 1px; background: var(--black); color: var(--white); border: 1px solid var(--black); border-radius: 0; cursor: pointer; }
.prompt-result button:hover { background: var(--white); color: var(--black); }
.prompt-result pre { max-height: 360px; margin: 0; padding: 18px; overflow: auto; white-space: pre-wrap; font-family: var(--font-ja); font-size: 13px; line-height: 1.75; }
.source-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.source-note strong { color: var(--black); font-weight: 400; }
.source-note button { min-height: 31px; padding: 2px 10px 1px; background: transparent; color: var(--black); border: 1px solid var(--black); font-size: 12px; cursor: pointer; }
.source-note button:hover { background: var(--black); color: var(--white); }

.credits-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(820px, calc(100dvh - 32px)); padding: 0; background: var(--white); color: var(--black); border: 1px solid var(--black); border-radius: 0; box-shadow: none; }
.credits-dialog::backdrop { background: rgba(134,135,141,.88); }
.credits-top { position: sticky; top: 0; z-index: 1; min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 10px 24px; background: var(--white); border-bottom: 1px solid var(--black); font-family: var(--font-latin); font-size: 12px; letter-spacing: .112em; }
.credits-body { padding: 44px 48px 56px; }
.credits-body h2 { margin: 0 0 44px; font-family: var(--font-latin); font-size: 40px; font-weight: 400; letter-spacing: .04em; line-height: 1.45; }
.credits-body section { padding: 30px 0; border-top: 1px solid var(--line); }
.credits-body h3 { margin: 0 0 18px; font-size: 20px; font-weight: 400; letter-spacing: .112em; }
.credits-body p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.credits-body dl { margin: 0; }
.credits-body dl div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 11px 0; }
.credits-body dt { color: var(--muted); font-size: 12px; letter-spacing: .112em; }
.credits-body dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.credits-body code { font-family: var(--font-latin); font-size: 12px; }
.load-error { color: var(--black); }

@media (max-width: 1024px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 24px; }
  .site-header nav { display: none; }
  main { width: calc(100% - 48px); }
  .intro { grid-template-columns: 1fr; gap: 40px; min-height: 390px; padding-block: 70px 60px; }
  .intro-copy { max-width: 620px; }
  .panel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guide { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 767px) {
  :root { --header-height: 68px; }
  body { font-size: 14px; }
  .site-header { padding-inline: 16px; }
  .brand-symbol { min-width: 46px; font-size: 19px; }
  .brand strong { font-size: 12px; }
  .brand small { font-size: 7px; }
  .panel-count { display: none; }
  main { width: calc(100% - 32px); }
  .intro { min-height: 350px; padding: 54px 0 48px; }
  .intro h1 { font-size: 36px; line-height: 1.4; }
  .intro-copy p { font-size: 14px; }
  .intro-copy a { width: 100%; }
  .catalog { padding: 56px 0 88px; }
  .catalog-head { grid-template-columns: 1fr; gap: 28px; }
  .catalog h2, .guide h2 { font-size: 34px; }
  .search-box { width: 100%; }
  .search-box kbd { display: none; }
  .filter-row { min-height: 74px; margin-top: 26px; }
  .filter-button { min-height: 36px; }
  .result-count { display: none; }
  .panel-grid { grid-template-columns: 1fr; gap: 54px; padding-top: 36px; }
  .card-content { grid-template-columns: 48px 1fr; min-height: 122px; }
  .card-title { font-size: 24px; }
  .guide { padding: 70px 0 80px; }
  .guide li { grid-template-columns: 40px 1fr; gap: 12px; }
  .guide li p { grid-column: 2; }
  footer { min-height: 154px; grid-template-columns: 1fr; justify-items: center; padding: 26px 16px; gap: 8px; }
  footer > span:last-child { justify-self: center; }
  .detail-body { padding: 38px 20px 74px; }
  .detail-visual { min-height: 300px; }
  .detail-visual img { height: 62vh; }
  .detail-body > h2 { font-size: 28px; }
  .detail-columns { grid-template-columns: 1fr; }
  .builder { margin-right: -20px; margin-left: -20px; padding: 30px 20px; }
  .source-note { align-items: flex-start; flex-direction: column; gap: 10px; }
  .credits-body { padding: 34px 20px 42px; }
  .credits-body h2 { font-size: 34px; }
  .credits-body dl div { grid-template-columns: 1fr; gap: 4px; }
}

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