﻿:root {
  --ink: #202020;
  --muted: #6b6b6b;
  --line: #dedbd3;
  --paper: #fbfaf7;
  --accent: #8d1f2d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
body.has-lightbox { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(141, 31, 45, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, .96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.brand-title { font-size: 20px; font-weight: 700; }
.brand-subtitle { color: var(--muted); font-size: 13px; margin-top: -4px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: -12px;
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  min-width: 230px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(32, 32, 32, .10);
  font-size: 12px;
  line-height: 1.35;
}
.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  display: grid;
  gap: 7px;
}
.nav-submenu a {
  white-space: nowrap;
}
.hero { min-height: 280px; background: #e7e2d8 center / cover no-repeat; border-bottom: 1px solid var(--line); }
.hero.is-empty { display: none; }
main { max-width: 960px; margin: 0 auto; padding: 46px 24px 72px; }
.page-title { margin: 0 0 24px; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; font-weight: 700; }
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0ede6;
  color: #3f3f3f;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(32, 32, 32, .08);
}
.back-link svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}
.back-link:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #e8e3d8;
}
.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 38px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0ede6;
  color: #3f3f3f;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(32, 32, 32, .08);
}
.top-link svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}
.top-link:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #e8e3d8;
}
.content { font-size: 16px; }
.content p { margin: 0 0 1.1em; }
.series-intro {
  max-width: 760px;
  margin: 0 0 34px;
}
.text-image {
  float: right;
  max-width: 260px;
  margin: 4px 0 24px 28px;
}
.text-image img {
  display: block;
  width: 100%;
}
.literary-note {
  clear: both;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.literary-note h2 {
  margin: 0 0 22px;
  font-size: 22px;
  line-height: 1.2;
}
.literary-note blockquote {
  max-width: 760px;
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  color: #3f3f3f;
}
.literary-image {
  float: right;
  width: 260px;
  margin: 0 0 24px 34px;
}
.literary-image img {
  display: block;
  width: 100%;
}
.text-en {
  color: #565656;
  font-size: .93em;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}
.content p:not(.text-en) + .text-en {
  margin-top: 1.8em;
}
.text-en + .text-en { margin-top: -.35em; }
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
  align-items: start;
  width: 100%;
}
.series-grid .wp-caption,
.series-grid .gallery-item,
.series-grid figure {
  display: block;
  width: 100% !important;
  max-width: none;
  margin: 0;
}
.series-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .18s ease;
}
.series-grid a:hover img { filter: grayscale(0%); }
.wp-caption, .gallery-item, figure {
  margin: 0 22px 30px 0;
  display: inline-block;
  vertical-align: top;
  max-width: 300px;
}
.feature-work {
  display: block;
  max-width: 760px;
  margin: 0 0 28px;
}
.feature-work img { width: 100%; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 28px;
}
.detail-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.detail-grid.natural img {
  aspect-ratio: auto;
  object-fit: contain;
}
.work-group {
  margin: 28px 0 36px;
}
.work-group-title {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 14px;
}
.work-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.work-image-grid .work-card {
  margin: 0;
}
.work-image-grid.ioioio-work .is-full {
  grid-column: 1;
  grid-row: 1 / span 4;
}
.ioioio-work {
  max-width: 480px;
  grid-template-columns: minmax(0, 300px) minmax(0, 150px);
  align-items: start;
}
.work-image-grid a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.work-image-grid img {
  width: 100%;
  height: auto;
  display: block;
  background: #e8e4dc;
}
.work-image-grid .caption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 8px;
}
.wp-caption img, .gallery-item img, figure img {
  display: block;
  width: 100%;
  background: #e8e4dc;
}
.wp-caption-text, figcaption, .gallery-caption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 8px;
}
.content .alignnone { margin-right: 22px; }
.content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.content .alignleft { float: left; margin: 0 24px 18px 0; }
.content .alignright { float: right; margin: 0 0 18px 24px; }
.content::after { content: ""; display: table; clear: both; }
.footer { border-top: 1px solid var(--line); color: var(--muted); padding: 28px 24px; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer a { color: var(--muted); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 28px 32px;
  background: rgba(22, 22, 22, .82);
}
.lightbox.is-open {
  display: flex;
}
.lightbox-image {
  display: block;
  max-width: min(94vw, 1280px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f4f1ea;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .32);
}
.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  min-width: 78px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 8px;
  background: rgba(251, 250, 247, .94);
  color: #202020;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
  background: #fff;
  outline: none;
}
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .nav-submenu {
    left: 0;
    right: auto;
    transform: none;
    min-width: min(260px, calc(100vw - 48px));
  }
  main { padding-top: 34px; }
  .content { font-size: 15px; }
  .text-image { float: none; max-width: 100%; margin: 0 0 24px; }
  .literary-image { float: none; width: 260px; max-width: 100%; margin: 0 0 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .work-image-grid { grid-template-columns: 1fr; }
  .ioioio-work { max-width: 100%; grid-template-columns: 1fr; }
  .work-image-grid.ioioio-work .is-full { grid-column: auto; grid-row: auto; }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .wp-caption, .gallery-item, figure { display: block; max-width: 100%; margin-right: 0; }
}
@media (max-width: 460px) {
  .series-grid { grid-template-columns: 1fr; }
}
