/* Kaito Sato Photography — dark gallery
   Role / style map (ADR-0013 反復)
   - h2 section title : Cormorant 300 large Latin + 14px JP label
   - h3               : Zen Kaku 700 20px
   - numbers / dates  : Cormorant (.num), 1.1x JP size
   - links in text    : underline that grows on hover
   - primary CTA      : solid light button (only one style on the page)
   - rules            : hairline from text colour (12–16%)
*/

:root {
  color-scheme: dark;
  /* tinted neutrals (OKLCH, hue 70 = warm) */
  --bg: oklch(15.5% 0.006 70);
  --bg-2: oklch(19.5% 0.008 70);
  --text: oklch(93% 0.012 80);
  --muted: oklch(74% 0.014 80);
  --accent: oklch(80% 0.1 70);
  --line: color-mix(in oklch, var(--text) 14%, transparent);
  --line-strong: color-mix(in oklch, var(--text) 40%, transparent);

  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;

  --max: 1240px;
  --pad: clamp(16px, 4vw, 48px);
  --gap: 16px;
  --cols: 4;
  --sec: 72px;
}
@media (min-width: 768px) { :root { --cols: 8; --gap: 20px; --sec: 104px; } }
@media (min-width: 1024px) { :root { --cols: 12; --gap: 24px; --sec: 144px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.03em;
  line-break: strict;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
.nw { white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; font-feature-settings: "palt"; letter-spacing: 0.02em; line-height: 1.35; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.phrase { display: inline-block; }
.num { font-family: var(--font-en); font-size: 1.1em; letter-spacing: 0.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { grid-column: 1 / -1; }
.section { padding-block: var(--sec) 0; }

/* ---------- sample bar ---------- */
.sample-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px;
  padding: 0 var(--pad);
  background: oklch(90% 0.012 80); color: oklch(20% 0.01 70);
  font-size: 0.8125rem; letter-spacing: 0.04em;
}
.sample-bar p { padding-block: 6px; }
@media (max-width: 479px) { .sample-bar { font-size: 0.75rem; letter-spacing: 0.02em; gap: 0 12px; } }
.sample-bar a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; min-height: 44px; padding-block: 8px; }
.logo-name { white-space: nowrap; font-family: var(--font-en); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.04em; }
.logo-sub { font-family: var(--font-en); font-style: italic; font-weight: 300; font-size: 1.0625rem; color: var(--muted); }
@media (max-width: 359px) { .logo-sub { display: none; } }

.nav-pc { display: none; }
.nav-pc ul { display: flex; gap: 8px; }
.nav-pc a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  font-family: var(--font-en); font-size: 1.1875rem; letter-spacing: 0.06em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 12px calc(100% - 8px) / 0 1px;
  transition: background-size 200ms ease;
}
.nav-pc a:hover { background-size: calc(100% - 24px) 1px; }
.nav-pc .nav-contact { border: 1px solid var(--line-strong); padding-inline: 20px; margin-left: 8px; background: none; }
.nav-pc .nav-contact:hover { background: var(--text); color: var(--bg); }

.nav-sp { position: relative; }
.nav-sp summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding-inline: 14px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-en); font-size: 1.125rem; letter-spacing: 0.08em;
}
.nav-sp summary::-webkit-details-marker { display: none; }
.nav-sp summary::after { content: ""; width: 14px; height: 7px; border-block: 1px solid currentColor; transition: transform 200ms; }
.nav-sp[open] summary::after { transform: scaleY(0.2); }
.nav-sp nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(88vw, 320px);
  background: var(--bg-2); border: 1px solid var(--line); padding: 8px 20px;
  box-shadow: 0 2px 6px rgb(0 0 0 / .4), 0 18px 40px rgb(0 0 0 / .5);
}
.nav-sp li + li { border-top: 1px solid var(--line); }
.nav-sp nav a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  min-height: 52px; padding-block: 12px; text-decoration: none;
  font-family: var(--font-en); font-size: 1.375rem;
}
.nav-sp nav a span { font-family: var(--font-ja); font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 1024px) {
  .nav-pc { display: block; }
  .nav-sp { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-name {
  position: relative; z-index: 2;
  margin: 8px 0 0;
  font-family: var(--font-en); font-weight: 300;
  font-size: 23.4vw; line-height: 0.78; letter-spacing: -0.015em;
  white-space: nowrap; text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklch, var(--text) 72%, transparent);
  pointer-events: none; user-select: none;
}
.hero-photo {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--pad), var(--max)); margin: -6.6vw auto 0;
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 28% 50%; }
.hero-photo figcaption { margin-top: 8px; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; text-align: right; }
@media (min-width: 768px) { .hero-photo img { aspect-ratio: 16 / 9; } }

.hero-copy { margin-top: 32px; row-gap: 20px; align-items: start; }
.hero-copy h1 { font-size: clamp(1.875rem, 4.4vw + 0.5rem, 3.5rem); line-height: 1.25; letter-spacing: 0.04em; }
.hero-copy h1 .phrase:nth-child(2) { font-family: inherit; }
.hero-sub p:first-child { max-width: 34em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 16px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.link-arrow::after { content: "→"; font-family: var(--font-en); transition: transform 180ms ease; }
.link-arrow:hover::after { transform: translateX(4px); }
@media (min-width: 1024px) {
  .hero-copy { margin-top: 48px; }
  .hero-copy h1 { grid-column: 1 / 8; }
  .hero-sub { grid-column: 9 / 13; padding-top: 10px; }
}

/* ---------- section titles ---------- */
.sec-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 32px; }
.sec-title .en { font-family: var(--font-en); font-weight: 300; font-size: clamp(2.75rem, 5vw + 1rem, 4.75rem); line-height: 1; letter-spacing: 0; }
.sec-title .ja { font-size: 0.875rem; font-weight: 400; color: var(--muted); letter-spacing: 0.12em; }

/* ---------- works ---------- */
.filter {
  border: 0; padding: 0; margin: 0 calc(-1 * var(--pad)) 28px; min-width: 0;
  display: flex; gap: 8px; overflow-x: auto; padding-inline: var(--pad); scrollbar-width: none;
}
.chip { position: relative; flex: none; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 16px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  font-size: 0.875rem; transition: background-color 150ms, color 150ms;
}
.chip .count { font-family: var(--font-en); font-size: 1rem; color: var(--muted); }
.chip:hover > span { border-color: var(--text); }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:checked + span .count { color: inherit; opacity: .7; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 1024px) {
  .works .sec-title { grid-column: 1 / 5; }
  .filter { grid-column: 5 / 13; justify-content: flex-end; align-self: end; margin: 0 0 32px; padding: 0; overflow: visible; }
}

.gallery { columns: 2; column-gap: 12px; }
.work { break-inside: avoid; margin-bottom: 20px; }
.frame { overflow: hidden; background: var(--bg-2); }
.frame img { width: 100%; transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 600ms; filter: saturate(.92); }
.work:hover .frame img { transform: scale(1.035); filter: saturate(1.05); }
.work figcaption { display: flex; flex-direction: column; gap: 0; padding-top: 8px; }
.w-title { font-size: 0.875rem; font-weight: 700; line-height: 1.5; }
.w-meta { font-family: var(--font-en); font-style: italic; font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }
.w-meta .num { font-size: 1em; }
@media (min-width: 768px) {
  .gallery { columns: 3; column-gap: var(--gap); }
  .work { margin-bottom: 32px; }
  .work figcaption { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
}
@media (min-width: 1024px) { .gallery { column-gap: var(--gap); } }

/* CSS-only filter */
.works:has(#cat-land:checked) .work:not([data-cat="land"]),
.works:has(#cat-city:checked) .work:not([data-cat="city"]),
.works:has(#cat-portrait:checked) .work:not([data-cat="portrait"]),
.works:has(#cat-brand:checked) .work:not([data-cat="brand"]) { display: none; }

/* ---------- series (film strip) ---------- */
.series { overflow-x: clip; }
.series-inner { row-gap: 32px; align-items: start; }
.series-name { font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem); margin-bottom: 8px; }
.series-data { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; color: var(--muted); font-size: 0.875rem; margin-bottom: 20px; }
.series-data .num { font-size: 1.25rem; color: var(--text); }
.series-text p + p { margin-top: 1em; }
.series-text > p:not(.series-data) { max-width: 30em; }

.strip {
  margin-inline: calc(-1 * var(--pad));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.strip:focus-visible { outline-offset: -2px; }
.strip-list {
  display: flex; gap: 0; width: max-content;
  padding: 26px var(--pad);
  background:
    radial-gradient(circle at 50% 50%, var(--bg) 0 3.2px, transparent 3.8px) 0 9px / 22px 10px repeat-x,
    radial-gradient(circle at 50% 50%, var(--bg) 0 3.2px, transparent 3.8px) 0 calc(100% - 9px) / 22px 10px repeat-x,
    oklch(10% 0.004 70);
  margin-inline: var(--pad);
}
.strip-list li { scroll-snap-align: start; flex: none; width: min(78vw, 420px); padding-inline: 6px; }
.strip-list figure { position: relative; }
.strip-list figcaption { position: absolute; left: 12px; bottom: 8px; color: oklch(95% 0.02 80); text-shadow: 0 1px 6px rgb(0 0 0 / .6); }
.strip-list figcaption .num { font-size: 1.375rem; }
@media (min-width: 1024px) {
  .series-text { grid-column: 1 / 5; position: sticky; top: 32px; }
  .strip { grid-column: 5 / -1; margin-inline: 0 calc(-1 * max(var(--pad), (100vw - var(--max)) / 2)); scroll-padding-inline: 0; }
  .strip-list { margin-inline: 0; padding-inline: 6px; }
  .strip-list li { width: 560px; }
}

/* ---------- about (heading column) ---------- */
.lead { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.col-body > p:not(.lead) { max-width: 38em; }
.col-body > p + p { margin-top: 1em; }
.facts { margin: 40px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 2px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 0; }
@media (min-width: 768px) { .facts > div { grid-template-columns: 9em 1fr; gap: 16px; } }
@media (min-width: 1024px) {
  .col-head { grid-column: 1 / 5; }
  .col-body { grid-column: 5 / 13; }
  .about .col-head { position: sticky; top: 32px; align-self: start; }
}

/* ---------- plans (table rows across the 12 columns) ---------- */
.plans { padding-bottom: 0; }
.plans .note { font-size: 0.875rem; color: var(--muted); margin: -16px 0 32px; }
.plans .col-head, .plans .col-body { grid-column: 1 / -1; }
.plan-list { border-top: 1px solid var(--line-strong); }
.plan, .option { display: grid; gap: 8px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.plan-name, .option-name { font-size: 1.25rem; display: flex; flex-direction: column; gap: 2px; }
.plan-name .en, .option-name .en { font-family: var(--font-en); font-style: italic; font-weight: 300; font-size: 1.125rem; color: var(--muted); letter-spacing: 0.04em; }
.option-name { font-weight: 700; line-height: 1.35; }
.plan-spec { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.plan-spec li { white-space: nowrap; }
.plan-spec .num { color: var(--text); margin-inline: 2px; }
.price { white-space: nowrap; margin-top: 8px; }
.price .num { font-size: 2.5rem; font-weight: 500; line-height: 1; }
.price .unit { font-size: 0.875rem; margin-left: 4px; }
.price .plus { font-family: var(--font-en); font-size: 1.75rem; margin-right: 2px; }
.price--sm .num { font-size: 2rem; }
.option { border-bottom-style: dashed; }
@media (min-width: 1024px) {
  .plans .note { margin: 0 0 32px; grid-column: 5 / 13; }
  .plans .col-head { display: contents; }
  .plans .sec-title { grid-column: 1 / 5; }
  .plans .note { align-self: end; }
  .plan, .option { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding-block: 32px; }
  .plan-name, .option-name { grid-column: 1 / 5; }
  .plan-desc, .option-desc { grid-column: 5 / 9; }
  .plan-spec { grid-column: 5 / 9; grid-row: 2; }
  .price { grid-column: 9 / 13; grid-row: 1 / span 2; text-align: right; margin-top: 0; }
}

/* ---------- process ---------- */
.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.step-no { grid-row: 1 / span 2; font-size: 2.25rem; line-height: 1; color: var(--accent); font-weight: 300; }
.steps h3 { font-size: 1.125rem; margin-bottom: 6px; }
@media (min-width: 1024px) {
  .process .sec-title { grid-column: 1 / 5; align-self: start; position: sticky; top: 32px; }
  .steps { grid-column: 5 / 13; grid-template-columns: 1fr 1fr; column-gap: var(--gap); border-top: 0; }
  .steps li { grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); border-bottom: 0; padding-block: 20px 40px; }
  .step-no { grid-row: auto; font-size: 3rem; margin-bottom: 20px; }
}

/* ---------- contact ---------- */
.contact { position: relative; margin-top: var(--sec); padding-block: 96px 88px; background: var(--bg-2); overflow: hidden; }
.contact-bg {
  position: absolute; left: 50%; top: -0.12em; transform: translateX(-50%);
  font-family: var(--font-en); font-weight: 300; font-size: 30vw; line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px color-mix(in oklch, var(--text) 16%, transparent);
  pointer-events: none; user-select: none;
}
.contact-inner { position: relative; row-gap: 24px; align-items: start; }
.contact-title { font-size: clamp(1.625rem, 3.4vw + 0.9rem, 3rem); line-height: 1.3; }
.contact-body p:first-child { max-width: 34em; }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 60px; margin-top: 28px; padding: 0 28px 0 32px; min-width: min(100%, 320px);
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 700; letter-spacing: 0.08em;
  transition: background-color 150ms;
}
.btn:hover { background: oklch(100% 0 0); }
.btn-arrow { font-family: var(--font-en); font-size: 1.5rem; transition: transform 180ms ease; }
.btn:hover .btn-arrow { transform: translateX(5px); }
.tel { margin-top: 24px; font-size: 0.875rem; color: var(--muted); }
.tel a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 1.5rem; margin-left: 6px; text-underline-offset: 4px; }
.tel-note { display: block; }
@media (min-width: 1024px) {
  .contact { padding-block: 160px 144px; }
  .contact-title { grid-column: 1 / 8; }
  .contact-body { grid-column: 9 / 13; padding-top: 8px; }
}

/* ---------- footer ---------- */
.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 8px; }
.site-footer .small { font-size: 0.75rem; color: var(--muted); }
.site-footer .num { font-size: 0.9rem; }

/* ---------- reveal (scroll-driven, no JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .work, .plan, .steps li, .series-text, .facts {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
  .hero-name { animation: fade 1.4s cubic-bezier(.2,.7,.2,1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .frame img, .link-arrow::after, .btn-arrow { transition: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes fade { from { opacity: 0; letter-spacing: 0.04em; } }
