:root {
  --ink: #163438;
  --muted: #557075;
  --paper: #f7fbf8;
  --surface: #ffffff;
  --line: #cfddda;
  --accent: #d56a32;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(22, 52, 56, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #f7fbf8 0%, #edf5f0 52%, #f8f3eb 100%);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
header, main, footer { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
header { padding: 16px 0; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a, button, select, .button, .text-link {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
nav a, .text-link { padding: 8px 16px; color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
a:hover, button:hover, select:hover { filter: brightness(0.92); }
a:active, button:active, select:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.hero { padding: 64px 0 48px; max-width: 800px; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
h1, h2 { line-height: 1.25; }
h1 { margin: 8px 0 24px; font-size: clamp(32px, 6vw, 64px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
.lead, .prose, .seo-copy { max-width: 760px; }
.profile-links, .filters, .category-pages, .section-heading {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-links { margin-top: 24px; }
.button, button, select {
  padding: 8px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.button.secondary, button.filter { background: var(--surface); color: var(--ink); }
button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.section-heading { align-items: end; justify-content: space-between; margin-bottom: 24px; }
.sort-label { display: grid; gap: 8px; }
.filters { margin-bottom: 24px; }
.category-pages { margin-bottom: 24px; }
.category-pages a { padding: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.gallery-card[hidden] { display: none; }
.gallery-card a { display: block; height: 100%; text-decoration: none; }
.gallery-card img, .article-images img { display: block; width: 100%; height: auto; }
.gallery-card img { aspect-ratio: 3 / 4; object-fit: cover; }
.card-copy { display: grid; gap: 8px; padding: 16px; }
.category-label, .breadcrumb, .disclosure { color: var(--muted); font-size: 14px; }
.empty { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.article-page, .about-page { padding: 32px 0 64px; }
.article-page article { max-width: 900px; margin: 0 auto; }
.article-images { display: grid; gap: 24px; margin: 32px 0; }
figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.seo-copy { margin: 48px auto; }
.purchase-area { margin: 40px 0; text-align: center; }
.purchase { background: var(--accent); border-color: var(--accent); }
.article-neighbors { justify-content: space-between; margin-top: 32px; }
footer { padding: 32px 0; color: var(--muted); }
@media (max-width: 899px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  header, main, footer { width: min(100% - 16px, 1200px); }
  .hero { padding: 40px 0 32px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-copy { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
}
