/* =========================================================
   MAAI — Architecture & Interiors
   ========================================================= */

:root {
  --bone: #ece8e0;
  --bone-2: #e2ddd2;
  --ink: #131311;
  --ink-2: #1d1d1a;
  --clay: #b4542f;
  --stone: #8a857b;

  --bg: var(--bone);
  --fg: var(--ink);
  --muted: rgba(19, 19, 17, 0.55);
  --line: rgba(19, 19, 17, 0.16);

  --serif: "Instrument Serif", "Shippori Mincho", serif;
  --mincho: "Shippori Mincho", "Instrument Serif", serif;
  --sans: "Inter Tight", "Zen Kaku Gothic New", system-ui, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-ink {
  --bg: var(--ink);
  --fg: var(--bone);
  --muted: rgba(236, 232, 224, 0.55);
  --line: rgba(236, 232, 224, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.8s var(--ease), color 0.8s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
/* iOS Safari：自動再生が止められたときに出る再生ボタンを隠す（ポスター画像だけ見せる） */
video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
ul { list-style: none; }
em { font-style: italic; font-family: var(--serif); font-weight: 400; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

::selection { background: var(--clay); color: var(--bone); }

/* ---------- Media + placeholder ---------- */
.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(160deg, #cfc7b8 0%, #a89e8c 55%, #7d7466 100%);
}
.media img,
.media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ph-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 500 11px/1 var(--sans); letter-spacing: 0.08em;
  color: rgba(236, 232, 224, 0.7);
}
.media.is-ph::after {
  content: attr(data-ph);
  position: absolute; left: 12px; bottom: 10px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.08em;
  color: rgba(19, 19, 17, 0.6);
}

/* ---------- Shared type ---------- */
.section-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-family: var(--mincho);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section-title em { font-size: 1.08em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 14px;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.link-arrow span { transition: transform 0.5s var(--ease-out); }
.link-arrow:hover { background-size: 0% 1px; background-position: right bottom; }
.link-arrow:hover span { transform: translateX(6px); }

.split-line { display: inline-block; }
.char { display: inline-block; will-change: transform, opacity; }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
}
.loader__panel {
  position: absolute; inset: 0;
  background: var(--ink);
  z-index: -1;
}
.loader__inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
  color: var(--bone);
}
.loader__mark {
  font-family: var(--mincho);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 1;
}
.loader__count {
  font-family: var(--serif);
  font-size: clamp(80px, 16vw, 240px);
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.no-js .loader { display: none; }

/* =========================================================
   Cursor
   ========================================================= */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--clay);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out);
}
.cursor__label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone);
  opacity: 0; transition: opacity 0.3s;
}
.cursor.is-active { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   Header + Menu
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform 0.6s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo {
  font-family: var(--serif);
  font-size: 26px; letter-spacing: 0.04em; line-height: 1;
}
.header__nav { display: flex; gap: 32px; font-size: 13px; }
.header__nav a { position: relative; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; align-items: center; gap: 24px; font-size: 12px; letter-spacing: 0.08em; }
.header__clock { font-variant-numeric: tabular-nums; }
.header__menu {
  width: 36px; height: 36px;
  display: grid; place-content: center; gap: 6px;
}
.header__menu-line {
  display: block; width: 26px; height: 1px; background: currentColor;
  transition: transform 0.5s var(--ease);
}
body.menu-open .header__menu-line:first-child { transform: translateY(3.5px) rotate(20deg); }
body.menu-open .header__menu-line:last-child { transform: translateY(-3.5px) rotate(-20deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--clay);
  color: var(--bone);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__list li { border-top: 1px solid rgba(236, 232, 224, 0.3); overflow: hidden; }
.menu__list li:last-child { border-bottom: 1px solid rgba(236, 232, 224, 0.3); }
.menu__list a {
  display: flex; align-items: baseline; gap: 24px;
  padding: 10px 0;
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 104px); line-height: 1.05;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}
.menu__list a:hover { font-style: italic; }
body.menu-open .menu__list a { transform: none; }
body.menu-open .menu__list li:nth-child(2) a { transition-delay: 0.05s; }
body.menu-open .menu__list li:nth-child(3) a { transition-delay: 0.1s; }
body.menu-open .menu__list li:nth-child(4) a { transition-delay: 0.15s; }
body.menu-open .menu__list li:nth-child(5) a { transition-delay: 0.2s; }
.menu__no { font: 400 12px var(--sans); letter-spacing: 0.1em; }
.menu__list small { margin-left: auto; font: 400 14px var(--sans); }
.menu__foot { margin-top: 32px; font-size: 13px; }

@media (max-width: 900px) {
  .header__nav, .header__clock { display: none; }
}

/* =========================================================
   Hero — 「間」が開く
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  color: var(--ink);
}
.hero__window {
  position: absolute; inset: 0;
  --clip: inset(24% 37% 24% 37% round 6px);
  clip-path: var(--clip);
  background: linear-gradient(160deg, #b9ae9c, #6d6558);
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.35);
}
.hero__window::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 9, 0.45), transparent 50%);
  opacity: var(--shade, 0);
}
.hero__overlay {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 7vh, 80px);
  z-index: 2;
  color: var(--bone);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  opacity: 0;
}
.hero__lead {
  font-family: var(--mincho);
  font-size: clamp(34px, 5.4vw, 84px);
  line-height: 1.2;
}
.hero__lead-en { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 26px); }

.hero__title {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 26vw 1fr;
  align-items: center;
  pointer-events: none;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(120px, 21vw, 420px);
  line-height: 0.8;
  letter-spacing: -0.02em;
}
.hero__word { overflow: hidden; padding: 0.06em 0.04em 0.1em; }
.hero__word--l { grid-column: 1; justify-self: end; }
.hero__word--r { grid-column: 3; justify-self: start; font-style: italic; padding-right: 0.2em; } /* イタリックの I は右上が字幅からはみ出すので、overflow で切れないよう余白を足す */

.hero__meta {
  position: absolute; z-index: 3;
  font-size: 12px; line-height: 1.6; letter-spacing: 0.06em;
}
.hero__meta--tl { left: var(--gutter); top: 88px; }
.hero__meta--tr { right: var(--gutter); top: 88px; text-align: right; }
.hero__meta--bl { left: var(--gutter); bottom: var(--gutter); max-width: 22em; }
.hero__meta--br { right: var(--gutter); bottom: var(--gutter); }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.hero__scroll::before {
  content: ""; width: 1px; height: 36px; background: currentColor;
  transform-origin: top;
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 700px) {
  .hero__window { --clip: inset(34% 30% 34% 30% round 6px); }
  .hero__title { grid-template-columns: 1fr 42vw 1fr; font-size: 25vw; }
  .hero__overlay { flex-direction: column; align-items: flex-start; }
  .hero__meta--bl { max-width: 15em; }
}

/* =========================================================
   Statement
   ========================================================= */
.statement {
  padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(100px, 16vh, 180px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 48px;
}
.statement__label { grid-column: 1 / 3; font-size: 12px; letter-spacing: 0.12em; color: var(--muted); padding-top: 1em; }
.statement__text {
  grid-column: 3 / 13;
  font-family: var(--mincho);
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.statement__text .char { opacity: 0.14; }
.statement__foot {
  grid-column: 8 / 13;
  display: grid; gap: 28px; justify-items: start;
  color: var(--muted);
}
@media (max-width: 900px) {
  .statement__label, .statement__text, .statement__foot { grid-column: 1 / -1; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
}
.marquee__track {
  display: flex; width: max-content;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
  white-space: nowrap;
}
.marquee__track span { display: inline-flex; align-items: baseline; padding-right: 0.6em; }
.marquee__track span::after { content: "✳"; font-size: 0.4em; color: var(--clay); margin-left: 0.6em; transform: translateY(-0.4em); }
.marquee__track i { font: 400 0.22em var(--mincho); margin-left: 0.6em; color: var(--muted); }

/* =========================================================
   Process — 横スクロール
   ========================================================= */
.process {
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 12vh, 140px);
}
.process__head {
  padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.process__head .section-label { width: 100%; }
.process__bar {
  width: min(320px, 40vw); height: 1px; background: var(--line);
  margin-bottom: 1.2em;
}
.process__bar-fill { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.process__track {
  display: flex;
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(64px, 10vh, 120px);
  width: max-content;
}
.step {
  position: relative;
  width: clamp(300px, 48vw, 760px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
}
.step__no {
  position: absolute; top: -0.42em; left: -0.06em; z-index: 2;
  font-family: var(--serif); font-size: clamp(80px, 10vw, 160px); line-height: 1;
  color: var(--clay);
  mix-blend-mode: multiply;
}
.step__media { height: min(30vw, 46vh); }
.step__media img { inset: -8% -12%; width: 124%; height: 116%; }
.step__verb {
  font-family: var(--mincho); font-weight: 400;
  font-size: clamp(40px, 5vw, 80px); line-height: 1;
  margin-bottom: 24px;
}
.step__verb span {
  display: block; margin-top: 12px;
  font-family: var(--serif); font-style: italic; font-size: 0.4em; color: var(--muted);
}
.step__body p { color: var(--muted); max-width: 26em; }

@media (max-width: 899px) {
  .process__track { flex-direction: column; width: auto; }
  .step { width: 100%; grid-template-columns: 1fr; }
  .step__media { height: auto; aspect-ratio: 4 / 5; }
  .step__media img { inset: 0; width: 100%; height: 100%; }
  .process__bar { display: none; }
}

/* =========================================================
   Markets — スタックカード
   ========================================================= */
.markets {
  position: relative;
  padding: clamp(100px, 16vh, 180px) 0 0;
}
.markets__head { padding: 0 var(--gutter) clamp(48px, 8vh, 96px); display: grid; gap: 20px; }
.market {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  padding: 72px var(--gutter) var(--gutter);
}
.market__inner {
  position: relative;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  transform-origin: 50% 0%;
  color: var(--bone);
  will-change: transform;
}
.market__media { position: absolute; inset: 0; }
.market__media img { transform: scale(1.15); }
.market__inner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 9, 0.7), rgba(10, 10, 9, 0) 55%);
  pointer-events: none;
}
.market__shade {
  position: absolute; inset: 0; z-index: 3;
  background: #000; opacity: 0; pointer-events: none;
}
.market__content {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(20px, 3vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 16px 40px;
}
.market__count { font-family: var(--serif); font-size: 22px; line-height: 1; grid-column: 1 / -1; }
.market__count span { opacity: 0.5; }
.market__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 11vw, 190px); line-height: 0.85; letter-spacing: -0.02em;
}
.market__name small { display: block; font: 400 15px var(--mincho); letter-spacing: 0.1em; margin-top: 14px; }
.market__desc { font-family: var(--mincho); font-size: clamp(16px, 1.5vw, 22px); }
@media (max-width: 800px) {
  .market__content { grid-template-columns: 1fr; }
}

/* =========================================================
   Works
   ========================================================= */
.works {
  position: relative;
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 140px);
}
.works__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vh, 72px); }
.works__filters { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.works__filters button {
  font-size: 14px; color: var(--muted);
  transition: color 0.3s;
}
.works__filters button sup { font-size: 10px; margin-left: 3px; }
.works__filters button:hover,
.works__filters button.is-active { color: var(--fg); }
.works__filters button.is-active { font-family: var(--serif); font-style: italic; font-size: 18px; }

.works__list { border-top: 1px solid var(--line); }
.work { border-bottom: 1px solid var(--line); overflow: hidden; }
.work.is-hidden { display: none; }
.work a {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr 160px 160px;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 2.6vw, 34px) 0;
  transition: padding 0.6s var(--ease-out), color 0.4s;
}
.work a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.work__no { font-size: 12px; color: var(--muted); }
.work__thumb { display: none; }
.work__name {
  font-family: var(--mincho);
  font-size: clamp(26px, 3.6vw, 56px); line-height: 1.1;
  display: flex; align-items: baseline; gap: 0.5em; flex-wrap: wrap;
}
.work__name em { font-size: 0.5em; color: var(--muted); }
.work__cat, .work__loc { font-size: 13px; color: var(--muted); }
.work__loc { text-align: right; }
@media (hover: hover) and (min-width: 900px) {
  .work a:hover { padding-left: 24px; padding-right: 24px; color: var(--bg); }
  .work a:hover::before { transform: scaleY(1); }
  .work a:hover .work__no, .work a:hover .work__name em,
  .work a:hover .work__cat, .work a:hover .work__loc { color: var(--bg); opacity: 0.7; }
}
@media (max-width: 899px) {
  .work a { grid-template-columns: 92px 1fr; gap: 6px 16px; }
  .work__no { display: none; }
  .work__thumb { display: block; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
  .work__loc { text-align: left; }
  .work__cat { display: none; }
}

.works__preview {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(240px, 22vw, 360px);
  aspect-ratio: 4 / 5;
  margin: calc(clamp(240px, 22vw, 360px) * -0.625) 0 0 calc(clamp(240px, 22vw, 360px) * -0.5);
  pointer-events: none;
  visibility: hidden;
}
.works__preview-inner {
  position: absolute; inset: 0;
  overflow: hidden; border-radius: 4px;
  transform: scale(0.6); opacity: 0;
}
.works__preview .media { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.works__preview .media.is-current { clip-path: inset(0 0 0 0); z-index: 2; }
@media (hover: none), (max-width: 899px) { .works__preview { display: none; } }

/* =========================================================
   Material — 文字マスク
   ========================================================= */
.material { position: relative; height: 100vh; height: 100svh; }
.material__stage {
  position: relative; height: 100%;
  overflow: hidden;
  background: #000;
}
.material__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.material__stage.is-ph { background: linear-gradient(160deg, #8c6a4f, #3a2a20); }
.material__mask {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: #000;
  mix-blend-mode: multiply;
}
.material__mask span {
  display: block;
  font: 800 clamp(64px, 17vw, 300px)/1 var(--sans);
  letter-spacing: -0.04em;
  color: #fff;
  transform-origin: 63% 50%;
}
.material__caption {
  position: absolute; inset: auto var(--gutter) var(--gutter);
  z-index: 2;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 20px;
  align-items: end;
  color: var(--bone);
  opacity: 0;
}
.material__caption .section-label { grid-column: 1 / -1; color: rgba(236, 232, 224, 0.7); }
.material__title { grid-column: 1 / 7; font-family: var(--mincho); font-size: clamp(36px, 5vw, 80px); line-height: 1.25; }
.material__text { grid-column: 9 / 13; font-size: 14px; color: rgba(236, 232, 224, 0.8); }
.material__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
  opacity: var(--shade, 0);
}
@media (max-width: 800px) {
  .material__title, .material__text { grid-column: 1 / -1; }
}

/* =========================================================
   Numbers
   ========================================================= */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  gap: var(--gutter);
}
.number { border-left: 1px solid var(--line); padding-left: 20px; }
.number__value {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 120px); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.number__value sup { font-size: 0.4em; color: var(--clay); vertical-align: top; }
.number__label { margin-top: 12px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
@media (max-width: 800px) { .numbers { grid-template-columns: 1fr 1fr; row-gap: 48px; } }

/* =========================================================
   Journal
   ========================================================= */
.journal { padding: clamp(100px, 16vh, 180px) var(--gutter); }
.journal__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vh, 72px); }
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.entry:nth-child(2) { margin-top: 12vh; }
.entry:nth-child(3) { margin-top: 6vh; }
.entry__media { aspect-ratio: 3 / 2; border-radius: 4px; }
.entry__media img { transition: transform 1.2s var(--ease-out); }
.entry:hover .entry__media img { transform: scale(1.06); }
.entry__meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.entry__title { margin-top: 8px; font-family: var(--mincho); font-weight: 400; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; }
@media (max-width: 800px) {
  .journal__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .entry:nth-child(n) { margin-top: 0; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  padding: clamp(100px, 16vh, 180px) var(--gutter) clamp(120px, 18vh, 200px);
  border-top: 1px solid var(--line);
}
.contact__big {
  display: block;
  margin-top: 40px;
  font-family: var(--mincho);
  font-size: clamp(44px, 9vw, 160px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.contact__line { display: block; overflow: hidden; }
.contact__line .char { transition: color 0.4s; }
.contact__big:hover .char { color: var(--clay); }
.contact__big:hover .char:nth-child(odd) { transition-delay: 0.04s; }
.contact__mail { margin-top: 32px; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); }
.contact__mail span { color: var(--clay); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: clamp(64px, 10vh, 120px) var(--gutter) var(--gutter);
  overflow: hidden;
}
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); font-size: 13px; }
.footer__cols p { color: var(--muted); }
.footer__cols a:hover { color: var(--clay); }
.footer__h { color: var(--fg) !important; margin-bottom: 8px; font-family: var(--serif); font-size: 20px; }
.footer__word {
  display: flex; justify-content: space-between;
  margin: clamp(48px, 10vh, 120px) 0 0;
  font-family: var(--serif);
  font-size: 34vw; line-height: 0.75;
  letter-spacing: -0.03em;
  overflow: hidden;
  padding-top: 0.04em;
}
.footer__word span { display: block; }
.footer__word span:nth-child(even) { font-style: italic; }
.footer__word span:last-child { padding-right: 0.12em; } /* イタリックの I の右上が画面端で切れないように */
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 20px; margin-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
@media (max-width: 800px) { .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .hero__window { clip-path: none; }
  .hero__video { transform: none; }
  .hero__title { display: none; }
  .hero__overlay, .material__caption { opacity: 1; }
  .material__mask { display: none; }
  .statement__text .char { opacity: 1; }
  .loader { display: none; }
}
