:root {
  --ink: #333333;
  --paper: #ffffff;
  --soft: #f8f7f2;
  --accent: #f3df72;
  --line: rgba(51, 51, 51, 0.22);
  --sans: "DM Sans", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(main, footer, .site-header) :where(h1, h2, h3, h4, p, a, li, dt, dd, span, small) {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

main :where(section, article, div, header, figure, a) {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 230px;
  min-height: 100vh;
  padding: 34px 30px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.logo {
  display: block;
  width: 62px;
  height: 62px;
}

.logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: grid;
  gap: 22px;
  margin: auto 0;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 28px;
  height: 3px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav span {
  color: #898781;
  font-size: 10px;
}

.site-nav .nav-label {
  color: inherit;
  font-size: inherit;
  line-height: 1.45;
}

.header-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.sidebar-footer {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.sidebar-character {
  width: 64px;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.sidebar-character-link {
  display: block;
  width: 64px;
}

.sidebar-character-link:hover .sidebar-character,
.sidebar-character-link:focus-visible .sidebar-character {
  transform: translateY(-2px) rotate(-2deg);
}

.sidebar-socials {
  display: flex;
  gap: 8px;
}

.sidebar-socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.sidebar-socials a:hover,
.sidebar-socials a:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.sidebar-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.sidebar-socials .note-icon span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.sidebar-socials .threads-icon span {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.menu-button {
  display: none;
}

main,
footer {
  margin-left: 230px;
}

.hero {
  position: relative;
  display: grid;
  padding: 46px clamp(34px, 7vw, 110px) 64px;
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  gap: 36px;
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.05em;
  white-space: normal;
  text-wrap: balance;
}

.hero-location {
  margin: 0 0 18px;
  color: #777;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero-lead {
  max-width: none;
  margin: 26px 0 0;
  font-size: 13px;
  line-height: 2;
  white-space: normal;
}

.hero-visual {
  width: min(100%, 460px);
  margin: 0 auto;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.image-frame::before {
  position: absolute;
  inset: 13px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.75);
  content: "";
  pointer-events: none;
}

.image-frame img {
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual:hover img {
  transform: scale(1.018);
}

.scroll-hint {
  position: absolute;
  bottom: 45px;
  left: clamp(34px, 7vw, 110px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.scroll-line {
  display: block;
  overflow: hidden;
  width: 50px;
  height: 1px;
  background: var(--line);
}

.scroll-line::after {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  content: "";
  animation: scroll 2.2s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(-100%);
  }

  50%,
  100% {
    transform: translateX(100%);
  }
}

.section {
  display: block;
  padding: 72px clamp(34px, 6vw, 90px);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  position: relative;
  display: grid;
  width: fit-content;
  min-width: 72px;
  height: 34px;
  margin: 0;
  padding: 0 14px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading h2::after,
.contact-label::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: var(--accent);
  content: "";
}

.want-can .section-heading h2 {
  font-size: 14px;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(360px, 1.3fr);
  grid-template-areas:
    "name text"
    "role text"
    "social text"
    "portfolio text"
    "details details";
  column-gap: clamp(45px, 6vw, 90px);
}

.about-name {
  grid-area: name;
  margin: 0;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: normal;
}

.about-role {
  grid-area: role;
  margin: 10px 0 25px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.about-text {
  grid-area: text;
  max-width: 660px;
  margin: 0;
  font-size: 15px;
  line-height: 2.25;
}

.social-links {
  grid-area: social;
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: color 0.25s ease, background 0.25s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-links .note-icon span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.social-links .threads-icon span {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.portfolio-link {
  grid-area: portfolio;
  display: flex;
  width: min(100%, 360px);
  margin-top: 28px;
  padding: 14px 0;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.12em;
  transition: padding 0.25s ease, background-color 0.25s ease;
}

.portfolio-link:hover,
.portfolio-link:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  background: var(--soft);
}

.about-list {
  grid-area: details;
  display: grid;
  margin: 30px 0 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-list div {
  display: grid;
  padding: 17px 0;
  grid-template-columns: 160px 1fr;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}

.about-list div:last-child {
  border-bottom: 0;
}

.about-list dt,
.about-list dd {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.about-list dd {
  margin-top: 0;
  line-height: 1.6;
}

.want-can-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.want-can-grid article {
  min-width: 0;
  padding: 32px clamp(22px, 3vw, 42px);
}

.want-panel {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "label"
    "headline";
  background: var(--soft);
}

.want-can-label {
  grid-area: label;
  margin: 0 0 22px;
  color: #777;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.want-panel h3 {
  grid-area: headline;
  max-width: none;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.want-panel h3 span {
  display: block;
  white-space: normal;
}

.want-panel > p:last-child {
  grid-area: text;
  max-width: 570px;
  margin: 0;
  padding-top: 4px;
  font-size: 13px;
  line-height: 2;
}

.can-panel {
  border-top: 1px solid var(--ink);
}

.can-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr;
  list-style: none;
}

.can-list li {
  display: grid;
  padding: 18px 0;
  grid-template-columns: 1fr;
  align-items: start;
  border-top: 1px solid var(--line);
}

.can-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.can-list li:last-child {
  padding-bottom: 0;
}

.can-list h3 {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}

.can-list p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

.can-list small {
  display: block;
  margin-top: 3px;
  color: #777;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.preview-intro {
  display: grid;
  margin: -6px 0 34px;
  grid-template-columns: minmax(260px, 0.95fr) minmax(360px, 1.05fr);
  align-items: end;
  gap: clamp(30px, 5vw, 70px);
}

.preview-kicker {
  margin: 0 0 14px;
  color: #777;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.read-page main {
  background: var(--paper);
}

.read-hero {
  min-height: auto;
  padding-top: clamp(88px, 11vw, 150px);
  padding-bottom: clamp(70px, 9vw, 120px);
  border-top: 0;
}

.read-label {
  width: fit-content;
  margin: 0 0 22px;
  padding: 7px 12px;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 5px 5px 0 var(--accent);
}

.read-private-note {
  max-width: 820px;
  margin: 0 0 clamp(42px, 5vw, 64px);
  padding: 13px 16px;
  border: 1px solid var(--ink);
  background: var(--soft);
  color: #c7352f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.read-hero h1 {
  max-width: none;
  margin: 0 0 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.read-hero > p:not(.read-label):not(.read-private-note) {
  max-width: 780px;
  margin: 0;
  font-size: 15px;
  line-height: 2;
}

.read-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.read-actions a,
.read-mail-link {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.read-actions a:hover,
.read-actions a:focus-visible,
.read-mail-link:hover,
.read-mail-link:focus-visible {
  background: var(--soft);
  box-shadow: 5px 5px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.read-preview {
  border-top: 1px solid var(--line);
}

.read-books {
  border-top: 1px solid var(--line);
}

.read-book-panel {
  display: grid;
  padding: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--soft);
}

.read-book-panel h3 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.06em;
}

.read-book-panel p {
  max-width: 760px;
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

.read-link-list {
  display: grid;
  gap: 12px;
}

.read-mail-link {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
}

.read-mail-link-secondary {
  background: var(--paper);
  color: var(--ink);
}

.read-data-grid {
  display: grid;
  margin-top: clamp(28px, 4vw, 46px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
}

.read-data-card {
  display: grid;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  grid-template-rows: auto 1fr;
  gap: 22px;
  background: var(--paper);
}

.read-data-card + .read-data-card {
  border-left: 1px solid var(--ink);
}

.read-data-cover {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
}

.read-data-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(32vw, 320px);
  object-fit: contain;
  transition: transform 0.25s ease;
}

.read-data-cover:hover img,
.read-data-cover:focus-visible img {
  transform: scale(1.03);
}

.read-data-body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.read-data-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.read-data-body h3 {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.04em;
}

.read-data-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}

.read-data-body .read-mail-link {
  margin-top: 8px;
  background: var(--ink);
  color: var(--paper);
}

.preview-intro h3,
.donation-copy h3 {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.05em;
}

.preview-intro > p,
.donation-copy > p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
}

.preview-intro > p span {
  display: block;
}

.read-caution {
  display: block;
  margin-top: 8px;
  color: #c7352f;
  font-weight: 700;
}

.preview-tabs {
  display: grid;
  padding: 0 0 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preview-tab {
  display: grid;
  min-width: 0;
  min-height: 68px;
  padding: 10px 8px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.preview-tab:hover,
.preview-tab:focus-visible {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.preview-tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--soft);
  box-shadow: inset 0 -5px var(--accent);
}

.preview-tab > strong {
  font-size: clamp(11px, 1.15vw, 14px);
  font-weight: 600;
  line-height: 1.45;
}

.preview-stage {
  border: 1px solid var(--ink);
  background: var(--soft);
}

.preview-work {
  padding: clamp(16px, 2.5vw, 28px);
}

.preview-work[hidden],
.preview-slide[hidden] {
  display: none;
}

.preview-work-heading {
  display: flex;
  margin-bottom: 18px;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.preview-work-heading p {
  margin: 0;
  color: #777;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.preview-work-heading h3 {
  margin: 4px 0 0;
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.5;
}

.preview-slides {
  display: grid;
  min-height: 460px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
}

.preview-slide {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 460px;
  margin: 0;
  padding: clamp(16px, 3vw, 34px);
  place-items: center;
}

.preview-slide.is-entering {
  animation: preview-in 0.32s ease both;
}

@keyframes preview-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.preview-slide img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.preview-slide figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #777;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.preview-controls {
  display: grid;
  margin-top: 12px;
  grid-template-columns: 44px 1fr auto 44px;
  align-items: center;
  gap: 12px;
}

.preview-controls > button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  font: 500 17px var(--sans);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.preview-controls > button:hover:not(:disabled),
.preview-controls > button:focus-visible:not(:disabled) {
  color: var(--paper);
  background: var(--ink);
}

.preview-controls > button:disabled {
  cursor: default;
  opacity: 0.25;
}

.preview-controls > p {
  min-width: 42px;
  margin: 0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: 0.08em;
}

.preview-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  align-content: center;
  direction: rtl;
}

.preview-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.preview-dots button[aria-current="true"] {
  background: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.section-intro {
  max-width: 780px;
  margin: -6px 0 34px;
  font-size: 13px;
  line-height: 2;
}

.project-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background-color 0.3s ease;
}

.project-tag {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  padding: 4px 8px;
  color: var(--paper);
  background: var(--ink);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-visible {
  background: var(--soft);
}

.project-card figure {
  height: 142px;
  margin: 0 0 18px;
  overflow: hidden;
  background: var(--soft);
}

.project-card img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.025);
}

.project-card-copy p {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.project-card-copy {
  display: block;
}

.project-card-copy h3 {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.project-note {
  min-height: 5.1em;
  margin: 16px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
}

.project-card-copy span {
  display: flex;
  min-height: auto;
  margin-top: 16px;
  padding-top: 9px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.project-card-copy b {
  font-weight: 400;
  transition: transform 0.25s ease;
}

.project-card:hover b,
.project-card:focus-visible b {
  transform: translate(4px, -4px);
}

.works-portfolio-link {
  display: flex;
  width: calc(100% - 5px);
  min-height: 58px;
  margin-top: 24px;
  padding: 17px 20px;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.works-portfolio-link:hover,
.works-portfolio-link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
}

.works-portfolio-link > span:last-child {
  font-size: 18px;
  font-weight: 400;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.works-list article {
  display: block;
  min-width: 0;
  padding: 28px clamp(18px, 2.3vw, 32px) 32px;
  border-right: 1px solid var(--ink);
  transition: background-color 0.25s ease;
}

.works-list article:hover {
  background: var(--soft);
}

.works-list article:last-child {
  border-right: 0;
}

.works-list article > span {
  display: none;
}

.work-number {
  margin: 0;
  color: #88857f;
  font-size: 11px;
}

.works-list h3 {
  margin: 18px 0 8px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.works-list div p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

.work-examples {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.work-examples a {
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.work-examples a:hover,
.work-examples a:focus-visible,
.book-content h3 a:hover,
.book-content h3 a:focus-visible,
.book-related a:hover,
.book-related a:focus-visible {
  text-decoration-color: var(--ink);
}

.clients {
  padding: 26px 0 0;
}

.clients > p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.clients ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 5px 16px;
  list-style: none;
}

.clients li {
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.clients-more {
  color: #777;
  letter-spacing: 0.08em;
}

.request-intro {
  display: grid;
  padding: 34px 0;
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(38px, 6vw, 90px);
  border-top: 1px solid var(--ink);
}

.request-intro h3 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.04em;
}

.request-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
}

.request-services {
  display: flex;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--ink);
}

.request-services span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.request-flow {
  display: grid;
  margin: 34px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}

.request-flow li {
  display: grid;
  min-width: 0;
  padding: 22px;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.request-flow li > span {
  color: #777;
  font-size: 10px;
  font-weight: 600;
}

.request-flow h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.request-flow p {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
}

.request-link {
  display: flex;
  width: min(100%, 520px);
  min-height: 52px;
  margin-top: 28px;
  padding: 14px 18px;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.request-link:hover,
.request-link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}

.book-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.book-item {
  display: flex;
  min-width: 0;
  min-height: 100%;
  padding: 18px;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background-color 0.25s ease;
}

.book-item:hover {
  background: var(--soft);
}

.book-cover {
  display: grid;
  width: min(100%, 180px);
  aspect-ratio: 1200 / 1761;
  margin: 0 auto 18px;
  place-items: center;
  overflow: hidden;
  background: #f7f7f7;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.book-cover:hover img,
.book-cover:focus-visible img {
  transform: scale(1.025);
}

.book-date,
.book-type {
  margin: 0;
  color: #777;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.book-content h3 {
  margin: 8px 0 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.035em;
}

.book-content h3 br {
  display: none;
}

.book-description {
  max-width: none;
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}

.read-link {
  display: flex;
  width: 100%;
  margin-top: 18px;
  padding: 9px 11px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.read-link:hover,
.read-link:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.book-content h3 a,
.book-related a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.book-related {
  grid-column: auto;
  padding: 22px 18px 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.book-related ul {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.book-related li {
  font-size: 11px;
  line-height: 1.6;
}

.donation-panel {
  display: grid;
  padding: clamp(26px, 4vw, 46px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 5vw, 78px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--soft);
}

.donation-copy {
  align-self: start;
}

.donation-copy h3 {
  margin-bottom: 24px;
}

.donation-steps {
  display: grid;
  border-top: 1px solid var(--line);
}

.donation-steps article {
  display: grid;
  padding: 20px 0;
  grid-template-columns: 44px minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.donation-steps span {
  color: #777;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.donation-steps h3 {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  line-height: 1.6;
}

.donation-steps p {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
}

.donation-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: center;
  gap: 24px;
}

.donation-links .contact-link {
  width: 100%;
  padding: 17px 0;
  font-size: 12px;
}

.donation-links p {
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.8;
}

.contact {
  display: grid;
  padding: 72px clamp(34px, 6vw, 90px);
  grid-template-columns: 1fr;
  grid-template-areas:
    "label"
    "note"
    "link";
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.contact h3 {
  grid-area: headline;
  max-width: 850px;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.06em;
}

.contact-label {
  position: relative;
  grid-area: label;
  display: grid;
  width: fit-content;
  min-width: 96px;
  height: 34px;
  margin: 0 0 32px;
  padding: 0 14px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.contact > p:not(.eyebrow):not(.contact-label) {
  grid-area: note;
  max-width: 760px;
  margin: 0 0 24px;
  font-size: 13px;
}

.contact .eyebrow {
  display: none;
}

.contact-link {
  grid-area: link;
  display: flex;
  width: min(100%, 760px);
  padding: 22px 0;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.contact-link span:last-child {
  transition: transform 0.25s ease;
}

.contact-link:hover span:last-child {
  transform: translate(5px, -5px);
}

footer {
  display: flex;
  padding: 25px clamp(34px, 5vw, 84px);
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font-size: 9px;
  letter-spacing: 0.12em;
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .want-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "headline"
      "text";
    row-gap: 26px;
  }

  .want-panel h3 span {
    white-space: normal;
  }

  .want-can-label {
    margin-bottom: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    inset: 0 0 auto;
    width: 100%;
    min-height: auto;
    height: 78px;
    padding: 20px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .logo {
    width: 44px;
    height: 44px;
  }

  .menu-button {
    display: flex;
    padding: 8px 0;
    align-items: center;
    gap: 10px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: 600 10px var(--sans);
    letter-spacing: 0.12em;
    cursor: pointer;
  }

  .menu-lines,
  .menu-lines::before {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--ink);
    content: "";
    transition: transform 0.25s ease;
  }

  .menu-lines::before {
    transform: translateY(5px);
  }

  .menu-button[aria-expanded="true"] .menu-lines {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-lines::before {
    transform: rotate(-90deg);
  }

  .site-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: grid;
    padding: 28px 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .header-note {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  main,
  footer {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 10px;
  }

  .hero-visual {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .scroll-hint {
    display: none;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card figure {
    height: 140px;
  }

  .book-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .want-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "headline"
      "text";
    row-gap: 26px;
  }

  .want-panel h3 span {
    white-space: normal;
  }

  .want-can-label {
    margin-bottom: 0;
  }

  .can-list {
    grid-template-columns: 1fr;
  }

  .can-list li {
    padding: 24px 0;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .can-list li:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .can-list li:last-child {
    padding-bottom: 0;
  }

  .preview-intro,
  .donation-panel {
    grid-template-columns: 1fr;
  }

  .read-data-cover img {
    height: min(54vw, 320px);
  }

  .donation-links {
    grid-template-columns: 1fr;
  }

  .donation-steps article {
    grid-template-columns: 34px minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .request-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .logo {
    width: 44px;
    height: 44px;
  }

  .read-hero {
    padding-top: 104px;
  }

  .read-actions {
    display: grid;
  }

  .read-actions a,
  .read-mail-link {
    width: 100%;
  }

  .read-book-panel {
    padding: 24px 20px;
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 112px 20px 60px;
    gap: 32px;
  }

  .hero-visual {
    width: min(100%, 420px);
  }

  .hero h1 {
    font-size: clamp(24px, 7vw, 34px);
    white-space: normal;
  }

  .hero h1 span {
    display: block;
  }

  .hero-lead {
    margin-top: 25px;
    white-space: normal;
  }

  .section {
    padding: 58px 20px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    margin: 0;
  }

  .about-body {
    display: block;
  }

  .about-name {
    white-space: normal;
  }

  .about-role {
    margin-bottom: 35px;
  }

  .about-text {
    font-size: 14px;
    line-height: 2.1;
  }

  .about-list {
    display: block;
    margin-top: 50px;
    border-bottom: 0;
  }

  .about-list div {
    display: grid;
    padding: 17px 0;
    grid-template-columns: 100px 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-list dd {
    margin-top: 0;
  }

  .want-can-grid {
    grid-template-columns: 1fr;
  }

  .want-can-grid article {
    padding: 28px 20px 30px;
  }

  .want-panel {
    border-bottom: 1px solid var(--ink);
  }

  .want-panel h3 {
    font-size: clamp(19px, 5.4vw, 25px);
    line-height: 1.65;
  }

  .want-panel > p:last-child {
    font-size: 13px;
    line-height: 2;
  }

  .can-panel {
    padding-bottom: 30px;
    border-top: 0;
  }

  .can-list li {
    display: block;
  }

  .can-list p,
  .can-list small {
    margin-top: 10px;
  }

  .preview-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .preview-intro h3,
  .donation-copy h3 {
    font-size: clamp(21px, 6vw, 28px);
  }

  .preview-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .preview-tab {
    min-height: 64px;
    padding: 8px 4px;
  }

  .preview-tab > strong {
    font-size: clamp(9px, 2.8vw, 12px);
    line-height: 1.4;
  }

  .read-data-card {
    padding: 20px;
    gap: 18px;
  }

  .read-data-grid {
    grid-template-columns: 1fr;
  }

  .read-data-card + .read-data-card {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .read-data-cover {
    min-height: 220px;
  }

  .read-data-cover img {
    height: min(68vw, 320px);
  }

  .preview-work {
    padding: 12px;
  }

  .preview-work-heading {
    display: grid;
    align-items: start;
    gap: 8px;
  }

  .preview-slides,
  .preview-slide {
    min-height: 280px;
  }

  .preview-slide {
    padding: 12px;
  }

  .preview-slide img {
    max-height: 430px;
  }

  .preview-controls {
    grid-template-columns: 40px minmax(0, 1fr) auto 40px;
    gap: 8px;
  }

  .preview-controls > button {
    width: 40px;
    height: 40px;
  }

  .preview-dots {
    gap: 6px;
  }

  .preview-dots button {
    width: 9px;
    height: 9px;
  }

  .works-list {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    display: grid;
    padding: 14px;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .project-tag {
    top: 20px;
    left: 20px;
    padding: 3px 6px;
    font-size: 7px;
  }

  .project-card figure {
    height: 88px;
    margin: 0;
  }

  .project-card-copy p {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .project-card-copy h3 {
    font-size: 15px;
    line-height: 1.45;
  }

  .project-card-copy span {
    display: none;
  }

  .project-note {
    margin-top: 12px;
  }

  .works-list article {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .works-list div p {
    padding-right: 10px;
    line-height: 1.7;
  }

  .clients {
    padding-top: 22px;
  }

  .clients ul {
    display: flex;
    gap: 5px 12px;
  }

  .clients li {
    font-size: 9px;
  }

  .book-list {
    grid-template-columns: 1fr;
  }

  .book-item {
    display: grid;
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 0;
    border-right: 1px solid var(--ink);
  }

  .book-cover {
    width: min(100%, 190px);
    margin: 0 auto 20px;
  }

  .book-content {
    padding: 0;
  }

  .book-content h3 {
    margin-top: 10px;
    font-size: clamp(17px, 4.9vw, 22px);
    line-height: 1.55;
  }

  .book-content h3 br {
    display: initial;
  }

  .book-description {
    font-size: 12px;
    line-height: 2;
  }

  .book-related {
    padding: 26px 18px 30px;
  }

  .donation-panel {
    padding: 24px 18px 28px;
  }

  .donation-steps article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .donation-links {
    gap: 16px;
  }

  .request-intro {
    padding: 28px 0;
  }

  .request-intro h3 {
    font-size: 21px;
  }

  .request-flow {
    grid-template-columns: 1fr;
  }

  .request-flow li {
    padding: 20px 18px;
  }

  .request-link {
    width: calc(100% - 4px);
  }

  .contact {
    display: block;
    padding: 70px 20px;
  }

  .contact h3 {
    font-size: clamp(25px, 7.5vw, 36px);
  }

  .contact-label {
    margin-bottom: 45px;
  }

  .contact > p:not(.eyebrow):not(.contact-label) {
    margin: 35px 0;
  }

  .contact-link {
    width: 100%;
  }

  .contact > p:not(.eyebrow):not(.contact-label) {
    line-height: 1.8;
  }

  footer {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
