:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --ink: #191919;
  --muted: #666763;
  --line: #c9c9c5;
  --red: #cf5f59;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: #f5c9c6; }

.page-shell { max-width: 1640px; margin: auto; padding: 0 clamp(18px, 4.2vw, 72px); }
.site-header { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); }
.brand { text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.brand span { margin-left: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; vertical-align: middle; }
nav { display: flex; gap: clamp(20px, 3vw, 48px); }
nav a, .site-footer a { text-decoration: none; font-size: 14px; font-weight: 700; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; min-height: 280px; padding: 45px 0 38px; }
.eyebrow { margin: 0 0 22px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .17em; }
h1, h2, p, figure { margin: 0; }
h1 { font-size: clamp(34px, 5vw, 66px); line-height: 1.22; letter-spacing: -.05em; font-weight: 760; }
h1 span { color: var(--red); }
.intro-note { max-width: 640px; margin-top: 18px; color: #424340; font-size: 16px; line-height: 1.9; }
.intro-index { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; font: 700 13px/1 sans-serif; letter-spacing: .08em; }
.intro-index i { display: block; width: 60px; height: 1px; background: var(--ink); }

.profile { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(190px, 1fr) minmax(100px, .5fr); gap: 28px; padding: 24px 0 28px; border-top: 1px solid var(--ink); }
.profile-group h2 { margin-bottom: 9px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.5; }
.profile-group p { font-size: 15px; font-weight: 600; line-height: 1.7; }
.profile-group p span { padding: 0 4px; color: var(--muted); }

.works { border-top: 1px solid var(--ink); }
.work { padding: 38px 0 74px; border-bottom: 1px solid var(--ink); }
.work-heading { display: grid; grid-template-columns: minmax(155px, 1fr) minmax(240px, 2.2fr) auto; align-items: end; gap: 28px; margin-bottom: 24px; }
.work-number { align-self: start; padding-top: 6px; font: 700 16px/1.4 sans-serif; letter-spacing: .04em; }
.work-number span { margin-left: 12px; color: var(--muted); font: 600 13px/1.4 "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; letter-spacing: 0; }
.work-heading h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; letter-spacing: -.04em; }
.work-subtitle { margin-top: 9px; color: #424340; font-size: 15px; line-height: 1.6; }
.work-time { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.work-time span { color: var(--muted); font-size: 14px; }
.work-time strong { font-size: 20px; line-height: 1.3; letter-spacing: -.04em; }
.artwork img, .comparison-images { width: 100%; background: #fff; border: 1px solid var(--line); }
.artwork img { height: auto; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.process-meta { display: flex; gap: 26px; margin: -2px 0 20px; font-size: 14px; }
.process-meta span { display: flex; align-items: center; gap: 12px; }
.process-meta span + span { border-left: 1px solid var(--line); padding-left: 26px; }
.process-meta strong { font-size: 16px; }
.comparison-images { position: relative; aspect-ratio: 7016 / 4961; overflow: hidden; }
.comparison-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finished-image { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.comparison-divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--red); transform: translateX(-50%); pointer-events: none; }
.comparison-divider span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--red); border-radius: 50%; transform: translate(-50%, -50%); background: var(--paper); color: var(--ink); font: 25px/1 sans-serif; box-shadow: 0 2px 12px #0002; }
.image-tag { position: absolute; z-index: 2; top: 18px; padding: 8px 13px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; pointer-events: none; }
.tag-finished { left: 18px; }
.tag-sketch { right: 18px; background: var(--red); }
.comparison-range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: none; }
.comparison-images:focus-within { outline: 3px solid var(--red); outline-offset: 4px; }

.stage-switcher { display: flex; gap: 0; margin-bottom: 18px; border: 1px solid var(--ink); width: fit-content; max-width: 100%; }
.stage-button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 18px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 700 13px/1.4 sans-serif; white-space: nowrap; }
.stage-button + .stage-button { border-left: 1px solid var(--ink); }
.stage-button span { color: var(--ink); font: 700 14px/1.4 "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
.stage-button:hover { background: #e9e9e6; }
.stage-button.is-active, .stage-button.is-active:hover { background: var(--ink); color: #bdbdbb; }
.stage-button.is-active span { color: #fff; }
.stage-button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; z-index: 1; }
.stage-frame { position: relative; width: 100%; aspect-ratio: 7016 / 4961; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.stage-layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.stage-layer.is-active { opacity: 1; }
.stage-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; padding: 62px 0 70px; }
.contact .eyebrow { margin-bottom: 14px; }
.contact h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.04em; }
.contact-note { margin-top: 10px; color: #424340; font-size: 15px; line-height: 1.6; }
.contact-links { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.contact a { padding: 0 0 8px; text-decoration: none; border-bottom: 1px solid var(--ink); font-size: clamp(16px, 2vw, 23px); font-weight: 700; overflow-wrap: anywhere; }
.contact a:hover { color: var(--red); border-color: var(--red); }
.contact a span { margin-left: 20px; }
.contact-links a + a { font-size: 16px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .brand { font-size: 14px; }
  .brand span { display: none; }
  nav { gap: 18px; }
  nav a { font-size: 13px; }
  .intro { min-height: 0; padding: 42px 0 30px; }
  .intro-index { display: none; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; }
  .intro-note { font-size: 15px; }
  .profile { grid-template-columns: 1fr; gap: 16px; padding: 22px 0 25px; }
  .work { padding: 28px 0 50px; }
  .work-heading { grid-template-columns: 1fr auto; gap: 12px 15px; }
  .work-number { grid-column: 1 / -1; padding: 0; }
  .work-number span { font-size: 12px; }
  .work-heading h2 { font-size: 26px; }
  .work-subtitle { font-size: 14px; }
  .work-time strong { font-size: 17px; }
  .work-time span { font-size: 13px; }
  .process-meta { gap: 16px; flex-wrap: wrap; }
  .process-meta span + span { padding-left: 16px; }
  .image-tag { top: 10px; padding: 6px 9px; font-size: 12px; }
  .tag-finished { left: 10px; }
  .tag-sketch { right: 10px; }
  .comparison-divider span { width: 38px; height: 38px; font-size: 21px; }
  .stage-switcher { width: 100%; }
  .stage-button { flex: 1; justify-content: center; gap: 5px; min-width: 0; padding: 10px 6px; font-size: 12px; }
  .stage-button span { font-size: 12px; white-space: normal; }
  .contact { display: block; padding: 48px 0 56px; }
  .contact-links { align-items: flex-start; gap: 14px; margin-top: 26px; }
  .contact a { font-size: 18px; }
}

@media (max-width: 430px) {
  .work-heading { grid-template-columns: 1fr; }
  .work-time { gap: 4px; }
  .process-meta { display: block; }
  .process-meta span + span { margin-top: 8px; padding: 0; border: 0; }
  .site-footer span { max-width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
