/* ==========================================================================
   TORUHITO — stylesheet
   Duotone / photo-first / minimal
   ========================================================================== */

:root {
  --black: #111111;
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --gray: #8a8a8a;
  --gray-light: #d8d8d8;
  --paper: #ffffff;
  --paper-off: #f6f6f4;
  --line: rgba(17, 17, 17, 0.12);

  --font-jp-serif: "Shippori Mincho", serif;
  --font-jp-sans: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Cormorant Garamond", serif;

  --container: 1240px;
  --container-narrow: 760px;
  --transition: 0.6s cubic-bezier(.23,1,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp-sans);
  font-weight: 300;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, dl { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 64px);
}
.container.narrow { max-width: var(--container-narrow); }

h1, h2, h3 {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  margin: 0;
  color: var(--black);
  letter-spacing: .04em;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
.loader span {
  font-family: var(--font-en);
  font-size: 1.6rem;
  letter-spacing: .6em;
  color: var(--black);
  opacity: 0;
  animation: loaderFade 1.4s ease forwards;
}
@keyframes loaderFade { to { opacity: 1; } }
.loader.hide { opacity: 0; visibility: hidden; }

/* ---------- Rotate hint (mobile portrait) ---------- */
.rotate-hint {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 44px 14px 20px;
  background: rgba(17, 17, 17, .95);
}
.rotate-hint.is-active:not(.is-dismissed) { display: flex; }
.rotate-icon {
  flex-shrink: 0;
  width: 20px; height: 32px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 3px;
  animation: rotateHintSpin 1.8s ease-in-out infinite;
}
@keyframes rotateHintSpin {
  0%, 20% { transform: rotate(0deg); }
  50%, 70% { transform: rotate(90deg); }
  100% { transform: rotate(90deg); }
}
.rotate-hint p {
  margin: 0;
  font-family: var(--font-jp-sans);
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .9);
}
.rotate-dismiss {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, .55);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.rotate-dismiss:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.23,1,.32,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  font-family: var(--font-jp-sans);
  font-size: .85rem;
  letter-spacing: .12em;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: all .4s ease;
}
.btn-primary {
  background: var(--black);
  color: #fff;
}
.btn-primary:hover { background: transparent; color: var(--black); }
.btn-outline {
  background: transparent;
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ---------- Persistent chrome: brand mark + menu toggle ---------- */
.brand-mark {
  position: fixed;
  top: 30px; left: clamp(24px, 6vw, 64px);
  z-index: 700;
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: .3em;
  color: #fff;
  mix-blend-mode: difference;
}
.menu-toggle {
  position: fixed;
  top: 26px; right: clamp(24px, 6vw, 64px);
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 1px;
  background: #fff;
  mix-blend-mode: difference;
  transition: transform .35s ease, opacity .3s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: 600;
  background: var(--black);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .5s cubic-bezier(.23,1,.32,1), visibility .5s, transform .5s cubic-bezier(.23,1,.32,1);
}
.menu-overlay.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.menu-nav a {
  font-family: var(--font-jp-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .1em;
  color: #fff;
  opacity: .85;
  transition: opacity .3s ease;
}
.menu-nav a:hover { opacity: 1; }
.menu-foot {
  position: absolute;
  bottom: 44px; left: clamp(24px, 6vw, 64px); right: clamp(24px, 6vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.menu-news { display: flex; flex-direction: column; gap: 8px; }
.menu-news p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); letter-spacing: .02em; }
.menu-news span {
  font-family: var(--font-en);
  color: rgba(255,255,255,.9);
  letter-spacing: .1em;
  margin-right: 12px;
}
.menu-sns { display: flex; gap: 20px; font-size: .8rem; color: rgba(255,255,255,.7); }

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide-img {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.08);
  transform: scale(1.05);
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: var(--duotone, #173325);
  mix-blend-mode: color;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.55) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  text-align: center;
}
.hero-num {
  font-family: var(--font-en);
  font-size: .95rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.85);
  padding-bottom: 14px;
  position: relative;
}
.hero-num::after {
  content: "";
  position: absolute;
  bottom: -18px; left: 50%;
  width: 1px; height: 18px;
  background: rgba(255,255,255,.5);
  transform: translateX(-50%);
}
.hero-cat {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: .04em;
  color: #fff;
  padding: 6px 22px;
  background: rgba(0,0,0,.18);
}
.hero-cat .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.23,1,.32,1);
  transition-delay: calc(var(--i) * 0.045s);
}
.hero-slide-content.is-in .hero-cat .char {
  opacity: 1;
  transform: translateY(0);
}
.hero-meta {
  display: flex;
  gap: 16px;
  font-size: .85rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.85);
  margin: 6px 0 0;
}
.hero-meta span:first-child { font-family: var(--font-jp-serif); }
.hero-meta span:last-child { font-family: var(--font-en); color: rgba(255,255,255,.65); }

.hero-nav {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 36px;
}
.hero-nav button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-en);
  font-size: .82rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  transition: color .35s ease;
}
.hero-nav button span { margin-right: 6px; }
.hero-nav button.is-active,
.hero-nav button:hover { color: #fff; }

.scroll-cue {
  position: absolute;
  bottom: 40px; right: clamp(24px, 6vw, 64px);
  width: 1px; height: 56px;
  background: rgba(255,255,255,.4);
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 0; left: 50%;
  width: 3px; height: 3px;
  background: #fff;
  transform: translateX(-50%);
  animation: scrollCue 2s ease infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 0; }
  70% { opacity: 0; top: 52px; }
  100% { opacity: 0; top: 52px; }
}

/* ---------- Section basics ---------- */
.section { padding: 150px 0; }
.section-eyebrow {
  font-family: var(--font-en);
  letter-spacing: .4em;
  font-size: .8rem;
  color: var(--gray);
  margin: 0 0 16px;
}
.section-eyebrow.light { color: rgba(255,255,255,.75); }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 24px;
}
.section-title.light { color: #fff; }
.section-body { color: var(--ink-soft); max-width: 46ch; font-size: .95rem; }
.section-body.light { color: rgba(255,255,255,.8); }
.section-head { max-width: 640px; margin: 0 auto 70px; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 90px;
  align-items: center;
}
.split.reverse { grid-template-columns: .9fr 1.1fr; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(20%);
}
.profile-name {
  font-family: var(--font-en);
  font-size: .95rem;
  letter-spacing: .25em;
  color: var(--gray);
  margin: -8px 0 22px;
}
.profile-ig {
  margin-left: 16px;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s ease;
}
.profile-ig:hover { color: var(--black); }
.profile-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.profile-list { margin: 30px 0 36px; display: flex; flex-direction: column; gap: 14px; }
.profile-list > div { display: flex; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.profile-list dt { width: 90px; flex-shrink: 0; color: var(--gray); font-size: .82rem; letter-spacing: .05em; }
.profile-list dd { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Works viewer (fullscreen, one photo at a time — hero-style) ---------- */
.works-viewer {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--black);
  overflow: hidden;
}
.works-stage { position: absolute; inset: 0; }
.works-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
  cursor: pointer;
}
.works-slide.is-active { opacity: 1; pointer-events: auto; }
.works-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,.55) 100%);
}
.works-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-cat-label {
  position: absolute;
  top: 40px; left: clamp(24px, 6vw, 64px);
  z-index: 2;
  margin: 0;
  font-family: var(--font-en);
  font-size: .85rem;
  letter-spacing: .4em;
  color: rgba(255,255,255,.45);
}
.works-caption {
  position: absolute;
  bottom: 44px; left: clamp(24px, 6vw, 64px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.works-caption .work-title {
  color: #fff;
  font-family: var(--font-jp-serif);
  font-size: 1.3rem;
}
.works-caption .work-year { color: rgba(255,255,255,.55); font-family: var(--font-en); }
.works-counter {
  position: absolute;
  bottom: 44px; right: clamp(24px, 6vw, 64px);
  z-index: 2;
  color: rgba(255,255,255,.4);
  font-family: var(--font-en);
  font-size: .8rem;
  letter-spacing: .1em;
}
.works-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  font-family: var(--font-en);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 16px;
  transition: color .3s ease;
}
.works-nav:hover { color: #fff; }
.works-nav.prev { left: clamp(8px, 3vw, 30px); }
.works-nav.next { right: clamp(8px, 3vw, 30px); }

/* ---------- Feature (full-bleed duotone) ---------- */
.feature {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.feature-img {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.08);
}
.feature::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: var(--duotone, #173325);
  mix-blend-mode: color;
}
.feature::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.65) 100%);
}
.feature-content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(24px, 6vw, 64px) 90px;
  max-width: 620px;
}
.feature-content .section-body { max-width: 44ch; margin-bottom: 30px; }

/* ---------- Article (work detail page) ---------- */
.back-link { margin-top: 56px; }
.article-body h2 {
  font-size: 1.35rem;
  margin: 56px 0 22px;
}
.article-body p {
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 2.1;
  margin: 0 0 26px;
}
.article-body figure {
  margin: 44px 0;
}
.article-body img {
  width: 100%;
  filter: grayscale(8%);
}
.article-body a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 40px;
  font-size: .84rem;
}
.article-body table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.article-meta {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 54px;
  font-family: var(--font-en);
  color: var(--gray);
  font-size: .85rem;
  letter-spacing: .05em;
}

/* ---------- News ---------- */
/* Profile / News / Contact: each fills the screen like Hero and Photographs.
   overscroll-behavior stops the scroll from chaining into the next/previous
   section — if the content is taller than the screen it scrolls internally,
   but the wheel never escapes to a neighboring section. */
.profile, .news, .contact {
  height: 100vh;
  height: 100dvh;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.profile > .container, .news > .container, .contact > .container { width: 100%; }

.news { background: var(--paper-off); }
.news-list { display: flex; flex-direction: column; }
.news-list li {
  display: flex;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list time {
  font-family: var(--font-en);
  color: var(--gray);
  flex-shrink: 0;
  width: 110px;
}
.news-list span { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.contact-inner .section-body { margin: 0 auto; }
.contact-form {
  margin: 48px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: .8rem; letter-spacing: .04em; color: var(--ink-soft); }
.contact-form label.full { width: 100%; }
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-light);
  border-radius: 0;
  padding: 10px 2px;
  color: var(--black);
  font-family: var(--font-jp-sans);
  font-size: .92rem;
  outline: none;
  transition: border-color .3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-light); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--black); }
.contact-form .btn { align-self: center; margin-top: 10px; }
.form-note { font-size: .82rem; color: var(--gray); min-height: 1.2em; margin: 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding: 64px 0 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-inner .logo { font-family: var(--font-en); letter-spacing: .3em; font-size: 1rem; color: var(--black); }
.footer-nav { display: flex; gap: 30px; font-size: .82rem; color: var(--ink-soft); flex-wrap: wrap; }
.footer-sns { display: flex; gap: 22px; font-size: .8rem; color: var(--ink-soft); }
.footer-copy {
  text-align: center;
  font-size: .76rem;
  color: var(--gray);
  padding: 24px 0;
  margin: 0;
  letter-spacing: .04em;
}

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  color: #fff;
  border-radius: 50%;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .35s ease;
  z-index: 400;
  font-size: .9rem;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gray); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-media { order: 1; }
  .split.reverse .split-text { order: 2; }
  .hero-cat { font-size: clamp(2.4rem, 12vw, 4rem); }
}

@media (max-width: 720px) {
  .menu-nav { gap: 20px; }
  .menu-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-nav { gap: 22px; }
  .hero-nav button span { display: none; }

  .section { padding: 100px 0; }
  .works-nav { font-size: 1.3rem; padding: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .news-list li { gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .feature-content { max-width: 100%; }
}
