:root {
  color-scheme: light;
  --ink: #172027;
  --muted: #687782;
  --accent: #185b56;
  --line: #d9e0e3;
  --wash: #e8f2f1;
  font-family:
    'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--ink);
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-bottom: 110px;
}
a {
  color: var(--accent);
  text-underline-offset: 5px;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}
button:hover:not(:disabled) {
  background: var(--wash);
}
button:disabled {
  background: #e9ecef;
  color: #84919b;
  border-color: #e9ecef;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #e6ae4d;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  background: #fff;
  padding: 12px;
  z-index: 5;
}
.skip:focus {
  top: 8px;
}
.header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1440px;
  padding: 0 24px;
  height: 57px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 55px;
}
.wordmark {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.6px;
}
nav {
  display: flex;
  align-items: stretch;
  gap: 38px;
  height: 100%;
}
nav a,
nav button {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 0 6px;
  text-decoration: none;
}
nav a[aria-current] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}
.parent-link {
  margin-left: auto;
  color: var(--ink);
  font-size: 20px;
  text-decoration: none;
}
.layout {
  max-width: 1440px;
  padding: 28px 24px 40px;
  margin: auto;
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  gap: 52px;
}
aside h2 {
  font-size: 17px;
  margin: 10px 0 16px;
}
.subjects {
  display: flex;
  flex-direction: column;
}
.subjects button {
  text-align: left;
  border: 0;
  border-left: 5px solid transparent;
  padding: 10px 17px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  border-radius: 0;
}
.subjects button[aria-pressed='true'] {
  background: var(--wash);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
h1 {
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: -1px;
}
.lead {
  font-size: 20px;
  margin: 0 0 7px;
  font-weight: 600;
}
.disclosure {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.filters {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.filters label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  white-space: nowrap;
}
select {
  min-width: 150px;
  max-width: 190px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  padding: 0 30px 0 12px;
  color: var(--ink);
  font-size: 15px;
}
.text-button {
  border: 0;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
}
.result-count {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
  min-height: 20px;
}
.gallery {
  max-width: 834px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 15px;
}
.asset {
  min-width: 0;
}
.asset figure {
  margin: 0;
}
.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #eceeed;
}
.photo-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  object-position: center 28%;
}
.asset-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding-top: 8px;
}
.asset h2 {
  font-size: 17px;
  margin: 0 0 3px;
  line-height: 1.4;
}
.asset p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.add-compare {
  flex: none;
  font-size: 12px;
  padding: 10px 12px;
}
.add-compare[aria-pressed='true'] {
  background: var(--accent);
  color: white;
}
.comparison-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 2;
}
.bar-inner {
  max-width: 1392px;
  margin: auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 14px 0;
}
.bar-inner strong {
  font-size: 17px;
  white-space: nowrap;
}
.bar-inner p {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}
.preview-notice {
  background: #fff6df;
  color: #614d20;
  padding: 10px 24px;
  text-align: center;
  font-size: 14px;
}
dialog {
  max-width: min(1120px, 94vw);
  max-height: 90dvh;
  border: 1px solid var(--line);
  padding: 28px;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #172027a6;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 23px;
}
.comparison-images {
  display: grid;
  grid-template-columns: repeat(var(--compare-columns, 3), minmax(0, 1fr));
  gap: 18px;
}
.comparison-images figure {
  margin: 0;
}
.comparison-images img {
  width: 100%;
  max-height: 60dvh;
  object-fit: contain;
  background: #f0f2f2;
}
.comparison-images figcaption {
  margin-top: 10px;
  font-size: 15px;
}
dialog p {
  line-height: 1.8;
  font-size: 14px;
}
#usage {
  max-width: 720px;
}
#detail-content img {
  display: block;
  max-width: 100%;
  max-height: 60dvh;
  margin: auto;
}
#detail-content code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1450px) {
  .bar-inner {
    margin: 0 24px;
  }
}
@media (max-width: 1080px) {
  .layout {
    gap: 24px;
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .filters {
    gap: 12px;
  }
  select {
    min-width: 110px;
    max-width: 160px;
  }
  .asset-caption {
    align-items: flex-start;
    flex-direction: column;
  }
  .bar-inner {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: 150px;
  }
  .header-inner {
    padding: 0 16px;
    gap: 20px;
    height: 62px;
  }
  .wordmark {
    font-size: 22px;
  }
  nav {
    gap: 10px;
  }
  nav a,
  nav button {
    font-size: 13px;
  }
  .parent-link {
    display: none;
  }
  .layout {
    display: block;
    padding: 20px 16px;
  }
  aside h2 {
    display: none;
  }
  .subjects {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    margin-bottom: 22px;
    padding-bottom: 5px;
  }
  .subjects button {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .subjects button[aria-pressed='true'] {
    border-bottom-color: var(--accent);
  }
  h1 {
    font-size: 30px;
  }
  .lead {
    font-size: 16px;
  }
  .disclosure {
    font-size: 12px;
  }
  .filters label {
    font-size: 13px;
    gap: 4px;
  }
  .filters {
    gap: 10px;
  }
  select {
    min-width: 115px;
    max-width: 145px;
    font-size: 13px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .asset h2 {
    font-size: 16px;
  }
  .asset-caption {
    gap: 8px;
  }
  .add-compare {
    width: 100%;
  }
  .bar-inner {
    margin: 0 16px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .bar-inner p {
    margin: 0;
    width: 100%;
    font-size: 11px;
  }
  .bar-inner strong {
    font-size: 14px;
  }
  .bar-inner button {
    padding: 8px 12px;
  }
  .comparison-images {
    grid-template-columns: repeat(var(--compare-columns, 3), minmax(0, 1fr));
    gap: 8px;
  }
  .comparison-images figcaption {
    font-size: 11px;
  }
  dialog {
    padding: 16px;
  }
  .dialog-heading h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s,
      color 0.15s;
  }
}
