/* =========================================================
   十夢 tendreams — monochrome / sumi-ink theme
   ========================================================= */
:root {
  --ink: #0b0b0b;
  --ink-2: #1a1a1a;
  --ink-3: #2b2b2b;
  --paper: #f1efea;
  --paper-2: #e6e3dc;
  --grey: #8a8780;
  --grey-2: #b9b6ae;
  --line-dark: rgba(255,255,255,.14);
  --line-light: rgba(0,0,0,.14);

  --f-brush: "Yuji Boku", "Shippori Mincho", serif;
  --f-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --f-latin: "Cormorant Garamond", "Times New Roman", serif;

  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .03em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; }

/* paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .4s, backdrop-filter .4s;
  mix-blend-mode: difference;
  color: #fff;
}
.site-header.scrolled { mix-blend-mode: normal; background: rgba(11,11,11,.82); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-kanji { font-family: var(--f-brush); font-size: 28px; line-height: 1; filter: url(#sumi-soft); }
.brand-latin { font-family: var(--f-latin); font-style: italic; font-size: 18px; letter-spacing: .08em; opacity: .8; }

.menu-toggle {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: grid; place-content: center; gap: 7px; padding: 0; color: inherit;
}
.menu-toggle span { display: block; width: 28px; height: 2px; background: currentColor; transition: transform .35s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.nav {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  z-index: -1;
  overflow-y: auto;
}
.nav.open { opacity: 1; visibility: visible; }
body.nav-open .site-header { mix-blend-mode: normal; }
.nav ol { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 900px; columns: 2; column-gap: 48px; }
.nav li { break-inside: avoid; border-bottom: 1px solid var(--line-dark); }
.nav li a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; text-decoration: none; font-family: var(--f-mincho); font-size: clamp(16px, 2vw, 20px); transition: padding .3s, opacity .3s; }
.nav li a:hover { padding-left: 10px; }
.nav li i { font-style: normal; font-family: var(--f-brush); font-size: 1.5em; width: 1.4em; color: var(--grey-2); }
.nav-about { display: block; max-width: 900px; width: 100%; margin: 32px auto 0; font-family: var(--f-latin); font-style: italic; font-size: 20px; text-decoration: none; opacity: .75; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: 100px var(--gutter) 48px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 30% 40%, #1c1c1c 0%, var(--ink) 65%);
}
.hero-ink {
  position: absolute; z-index: -1;
  width: min(92vmin, 860px); aspect-ratio: 1;
  left: 50%; top: 46%;
  transform: translate(-58%, -50%) rotate(-12deg);
  color: #262626;
}
.ensou { width: 100%; height: 100%; animation: ensou-in 2.4s cubic-bezier(.6,0,.2,1) both; }
.ensou path { stroke-dasharray: 1900; stroke-dashoffset: 1900; animation: draw 2.6s .2s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ensou-in { from { opacity: 0; } to { opacity: 1; } }

.hero-title { margin: 0; align-self: center; justify-self: center; grid-column: 1 / -1; grid-row: 1; }
.hero-kanji {
  display: flex; align-items: flex-end;
  font-family: var(--f-brush);
  font-weight: 400;
  line-height: .9;
  color: #f6f4ef;
  filter: url(#sumi);
  text-shadow: 0 0 1px rgba(255,255,255,.25);
}
.hero-kanji .k { display: inline-block; opacity: 0; animation: brush-in 1.4s cubic-bezier(.2,.7,.1,1) forwards; }
.hero-kanji .k1 { font-size: clamp(140px, 30vw, 420px); transform-origin: 50% 80%; animation-delay: .5s; }
.hero-kanji .k2 { font-size: clamp(170px, 37vw, 520px); margin-left: -.08em; transform: translateY(.06em); animation-delay: .95s; }
@keyframes brush-in {
  0% { opacity: 0; transform: scale(1.06) translateY(10px); clip-path: inset(0 100% 0 0); }
  60% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

.hero-side {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.hero-vertical {
  writing-mode: vertical-rl;
  font-family: var(--f-mincho); font-weight: 600;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .5em;
  margin: 0;
  color: var(--grey-2);
  opacity: 0; animation: fade 1.2s 1.8s forwards;
}
.seal {
  width: 52px; height: 52px;
  border: 2px solid var(--paper); border-radius: 6px;
  display: grid; place-content: center;
  font-family: var(--f-mincho); font-weight: 800; font-size: 13px; letter-spacing: .12em;
  background: var(--paper); color: var(--ink);
  transform: rotate(-4deg);
  filter: url(#sumi-soft);
  opacity: 0; animation: stamp .5s 2.4s cubic-bezier(.3,1.6,.5,1) forwards;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.8); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes fade { to { opacity: 1; } }

.hero-foot {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 32px;
  border-top: 1px solid var(--line-dark); padding-top: 22px;
  opacity: 0; animation: fade 1.2s 2s forwards;
}
.hero-latin { margin: 0; font-family: var(--f-latin); font-style: italic; font-size: clamp(28px, 4vw, 52px); line-height: 1; letter-spacing: .04em; }
.hero-lead { margin: 0; font-family: var(--f-mincho); font-size: 14px; line-height: 2; color: var(--grey-2); max-width: 30em; }
.scroll-cue { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-latin); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--paper), transparent); animation: cue 2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- common ---------- */
.section-label {
  margin: 0 0 14px;
  font-family: var(--f-latin); font-style: italic;
  font-size: 15px; letter-spacing: .12em;
  color: var(--grey);
}
h2 { font-family: var(--f-mincho); font-weight: 800; letter-spacing: .06em; line-height: 1.35; margin: 0 0 24px; }

/* ---------- about ---------- */
.about {
  background: var(--paper); color: var(--ink);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.about-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.about-mark .eq-a { font-family: var(--f-latin); font-size: clamp(44px, 6vw, 80px); line-height: 1; font-style: italic; }
.about-mark .eq-op { font-family: var(--f-latin); font-size: 28px; color: var(--grey); padding-left: .4em; }
.about-mark .eq-b { font-family: var(--f-brush); font-size: clamp(90px, 13vw, 180px); line-height: 1; filter: url(#sumi); }
.about-mark .eq-c { font-family: var(--f-latin); font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: .04em; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 42px); }
.about-text p { font-size: 15.5px; color: #333; }
.about-text strong { font-weight: 500; background: linear-gradient(transparent 62%, rgba(0,0,0,.12) 62%); }
.about-text em { font-family: var(--f-latin); font-size: 1.25em; }

.index-grid {
  list-style: none; padding: 0;
  max-width: var(--maxw); margin: clamp(64px, 9vw, 120px) auto 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light);
}
.index-grid li { border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.index-grid a {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 20px 20px;
  text-decoration: none;
  min-height: 170px;
  transition: background .35s, color .35s;
  overflow: hidden;
}
.index-grid b { font-family: var(--f-brush); font-weight: 400; font-size: 54px; line-height: 1; margin-bottom: auto; transition: transform .5s; }
.index-grid span { font-family: var(--f-mincho); font-weight: 600; font-size: 16px; }
.index-grid small { font-family: var(--f-latin); font-style: italic; font-size: 14px; color: var(--grey); }
.index-grid a:hover { background: var(--ink); color: var(--paper); }
.index-grid a:hover b { transform: scale(1.12) rotate(-4deg); }

/* ---------- dreams ---------- */
.dream {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(80px, 11vw, 150px) max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  background: var(--ink); color: var(--paper);
  border-top: 1px solid var(--line-dark);
}
.dream:nth-child(even) { background: var(--paper); color: var(--ink); border-top-color: var(--line-light); }
.dream.reverse .dream-visual { order: -1; grid-column: 1 / 2; }
.dream.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 120px); }
.dream.reverse .dream-num { order: 3; }

.dream-num { align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: 100px; }
.dream-num .kan { font-family: var(--f-brush); font-size: clamp(64px, 8vw, 110px); line-height: 1; filter: url(#sumi); }
.dream-num .arab { font-family: var(--f-latin); font-style: italic; font-size: 18px; letter-spacing: .1em; color: var(--grey); }
.dream-num .arab::before { content: ""; display: block; width: 1px; height: 40px; background: currentColor; margin: 0 auto 10px; opacity: .5; }

.dream-body h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 14px; }
.dream-body h2 span { display: block; font-size: .42em; font-weight: 600; letter-spacing: .14em; color: var(--grey); margin-top: 6px; }
.dream-catch {
  font-family: var(--f-mincho); font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  margin: 0 0 22px; padding-left: 18px;
  border-left: 3px solid currentColor;
  line-height: 1.6;
}
.dream-body > p { font-size: 15px; }
.dream:nth-child(odd) .dream-body > p { color: #cfccc5; }
.dream:nth-child(even) .dream-body > p { color: #3a3a3a; }

.dream-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.dream-cols section { border-top: 1px solid currentColor; padding-top: 14px; }
.dream-cols h3 { margin: 0 0 10px; font-family: var(--f-mincho); font-weight: 800; font-size: 14px; letter-spacing: .16em; }
.dream-cols ul { list-style: none; margin: 0; padding: 0; }
.dream-cols li { position: relative; padding-left: 1.3em; font-size: 13.5px; line-height: 1.8; margin-bottom: 6px; opacity: .85; }
.dream-cols li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7em; height: 1px; background: currentColor; }
.dream-cols section:last-child li::before { content: "◯"; width: auto; height: auto; background: none; top: 0; font-size: .75em; }

.progress { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 32px; font-family: var(--f-latin); font-style: italic; font-size: 14px; letter-spacing: .1em; }
.progress span { font-family: var(--f-mincho); font-style: normal; font-size: 12px; opacity: .7; }
.progress i { position: relative; height: 3px; background: currentColor; opacity: .18; }
.progress i::after { content: ""; position: absolute; left: 0; top: -1px; height: 5px; width: calc(var(--p) * 100%); background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.2,.7,.1,1) .2s; }
.progress { position: relative; }
.progress i { opacity: 1; background: color-mix(in srgb, currentColor 18%, transparent); }
.dream.inview .progress i::after { transform: scaleX(1); }
.note { font-size: 12px !important; opacity: .6; margin-top: 24px; }

/* ---------- dream visuals (abstract, monochrome) ---------- */
.dream-visual {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid currentColor;
  overflow: hidden;
  display: grid; place-items: center;
}
.dream-visual::before { content: ""; position: absolute; inset: 10px; border: 1px solid currentColor; opacity: .25; pointer-events: none; }
.v-word {
  position: absolute; right: 14px; bottom: 6px;
  font-family: var(--f-brush); font-size: clamp(90px, 11vw, 150px); line-height: 1;
  filter: url(#sumi);
  color: currentColor;
  text-shadow: 0 0 18px var(--bg-v, var(--ink)), 0 0 6px var(--bg-v, var(--ink));
}
.dream:nth-child(even) .v-word { --bg-v: var(--paper); }

/* 01 motion streaks */
.v-motion { background: var(--paper); color: var(--ink); }
.dream:nth-child(odd) .v-motion { background: #141414; color: var(--paper); }
.streaks { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; transform: skewY(-8deg); }
.streaks i { display: block; height: 4px; background: linear-gradient(90deg, transparent, currentColor 40%, currentColor 70%, transparent); animation: streak 2.2s linear infinite; opacity: .85; }
.streaks i:nth-child(2n) { height: 2px; animation-duration: 1.6s; opacity: .5; }
.streaks i:nth-child(3n) { height: 10px; animation-duration: 2.8s; }
.streaks i:nth-child(4) { animation-delay: -.8s; }
.streaks i:nth-child(5) { animation-delay: -1.4s; }
@keyframes streak { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* 02 frame */
.frame { position: absolute; inset: 18%; }
.corner { position: absolute; width: 26px; height: 26px; border: 2px solid currentColor; }
.c1 { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.c2 { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.sun { position: absolute; left: 50%; top: 42%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); animation: sunset 8s ease-in-out infinite alternate; }
.horizon { position: absolute; left: 0; right: 0; top: 58%; bottom: 0; background: var(--paper); }
.dream:nth-child(odd) .horizon { background: var(--ink); }
.dream:nth-child(even) .horizon { background: var(--paper); }
.horizon::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; }
@keyframes sunset { from { top: 34%; } to { top: 54%; } }

/* 03 lens */
.lens { position: relative; width: 70%; aspect-ratio: 1; }
.lens i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid currentColor; }
.lens i:nth-child(1) { border-width: 14px; }
.lens i:nth-child(2) { inset: 16%; border-width: 2px; border-style: dashed; animation: spin 24s linear infinite; }
.lens i:nth-child(3) { inset: 30%; border-width: 6px; }
.lens i:nth-child(4) { inset: 42%; background: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 04 checker flag */
.checker {
  position: absolute; inset: -20%;
  background-image: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0);
  background-size: 64px 64px;
  transform: perspective(600px) rotateY(-24deg) rotateZ(-10deg);
  animation: wave 4s ease-in-out infinite alternate;
  opacity: .9;
}
@keyframes wave { to { transform: perspective(600px) rotateY(-10deg) rotateZ(-6deg) skewY(4deg); } }

/* 05 road */
.road { position: absolute; inset: 0; clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); background: currentColor; }
.road i { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, var(--paper) 0 30px, transparent 30px 70px); background-size: 6px 70px; animation: road 1s linear infinite; }
.dream:nth-child(odd) .road i { background-image: repeating-linear-gradient(to bottom, var(--ink) 0 30px, transparent 30px 70px); }
@keyframes road { to { background-position: 0 70px; } }

/* 06 code */
.v-grid { background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.v-grid::after { content: ""; position: absolute; inset: 0; background: inherit; }
.dream:nth-child(even) .v-grid { background-color: var(--paper); }
.v-grid { --gc: rgba(0,0,0,.08); background-image: linear-gradient(var(--gc) 1px, transparent 1px), linear-gradient(90deg, var(--gc) 1px, transparent 1px); }
.dream:nth-child(odd) .v-grid { --gc: rgba(255,255,255,.07); }
.v-grid::after { display: none; }
.code { position: relative; z-index: 1; margin: 0 0 20% 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(12px, 1.3vw, 15px); line-height: 2; letter-spacing: 0; }
.code b { font-weight: 700; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* 07 network */
.v-net svg { width: 78%; }
.v-net line { stroke: currentColor; stroke-width: 1; opacity: .5; stroke-dasharray: 4 4; animation: dash 3s linear infinite; }
.v-net circle { fill: currentColor; }
.v-net .nodes circle:last-child { animation: pulse 2s ease-in-out infinite; transform-origin: 160px 100px; }
@keyframes dash { to { stroke-dashoffset: -32; } }
@keyframes pulse { 50% { transform: scale(1.5); } }

/* 08 equalizer */
.eq { display: flex; align-items: flex-end; gap: 6px; height: 60%; width: 76%; }
.eq i { flex: 1; background: currentColor; height: 30%; animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(2n) { animation-duration: .8s; }
.eq i:nth-child(3n) { animation-duration: 1.4s; }
.eq i:nth-child(4n+1) { animation-delay: -.5s; }
.eq i:nth-child(5n) { animation-delay: -.2s; }
@keyframes eq { to { height: 100%; } }

/* 09 strings */
.strings { position: absolute; inset: 0 22%; display: flex; justify-content: space-between; }
.strings i { width: 1px; background: currentColor; animation: pluck 2.6s ease-in-out infinite; }
.strings i:nth-child(1) { width: 3px; }
.strings i:nth-child(2) { width: 2.5px; animation-delay: .2s; }
.strings i:nth-child(3) { width: 2px; animation-delay: .4s; }
.strings i:nth-child(4) { width: 1.5px; animation-delay: .6s; }
.strings i:nth-child(5) { animation-delay: .8s; }
.strings i:nth-child(6) { animation-delay: 1s; }
@keyframes pluck { 0%, 70%, 100% { transform: translateX(0); } 75% { transform: translateX(3px); } 80% { transform: translateX(-3px); } 85% { transform: translateX(2px); } 90% { transform: translateX(-1px); } }

/* 10 skyline */
.v-skyline { align-items: end; }
.v-skyline svg { width: 100%; height: auto; }
.v-skyline::after { content: ""; position: absolute; left: 50%; top: 22%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 1px solid currentColor; transform: translateX(-50%); opacity: .5; }

/* ---------- closing ---------- */
.closing {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: clamp(110px, 14vw, 200px) var(--gutter);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 90px); align-items: center;
  max-width: none;
  border-top: 1px solid var(--line-dark);
}
.closing-big { margin: 0; font-family: var(--f-brush); font-size: clamp(180px, 30vw, 420px); line-height: .85; filter: url(#sumi); }
.closing-text h2 { font-size: clamp(28px, 4vw, 52px); }
.closing-text p { font-family: var(--f-mincho); font-size: 16px; color: var(--grey-2); line-height: 2.2; }
.closing-text .sign { font-family: var(--f-latin); font-style: italic; font-size: 24px; color: var(--paper); margin-top: 28px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper); color: var(--ink);
  padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
}
.foot-brand { display: flex; align-items: baseline; gap: 12px; }
.foot-brand .brand-kanji { font-size: 34px; }
.foot-brand .brand-latin { font-size: 16px; }
.foot-copy { margin: 0; font-size: 12px; color: var(--grey); }
.to-top { font-family: var(--f-latin); font-style: italic; font-size: 16px; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.1,1), transform 1s cubic-bezier(.2,.7,.1,1); }
.reveal.inview { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .index-grid a { min-height: 130px; }
  .dream, .dream.reverse { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "num body" "num visual"; row-gap: 40px; }
  .dream .dream-num, .dream.reverse .dream-num { grid-area: num; order: 0; }
  .dream .dream-body { grid-area: body; }
  .dream .dream-visual, .dream.reverse .dream-visual { grid-area: visual; order: 0; aspect-ratio: 16 / 10; }
  .about-grid { grid-template-columns: 1fr; }
  .about-mark { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .nav ol { columns: 1; }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-kanji { flex-direction: column; align-items: center; }
  .hero-kanji .k1 { font-size: 46vw; }
  .hero-kanji .k2 { font-size: 56vw; margin: -.12em 0 0; }
  .hero-side { top: auto; bottom: 230px; transform: none; gap: 16px; }
  .hero-vertical { display: none; }
  .seal { width: 42px; height: 42px; font-size: 11px; }
  .hero-foot { grid-template-columns: 1fr; gap: 14px; }
  .scroll-cue { display: none; }
  .dream, .dream.reverse { grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "body" "visual"; }
  .dream-num { position: static; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
  .dream-num .arab::before { display: none; }
  .dream-cols { grid-template-columns: 1fr; gap: 20px; }
  .closing { grid-template-columns: 1fr; text-align: left; }
  .closing-big { font-size: 60vw; }
  .brand-latin { display: none; }
  .index-grid b { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-kanji .k, .hero-vertical, .seal, .hero-foot { opacity: 1; }
  .ensou path { stroke-dashoffset: 0; }
}

/* ---------- gallery link (dream 01) ---------- */
.gallery-link {
  display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 22px; align-items: center;
  margin-top: 36px; padding: 16px 24px;
  border: 1px solid currentColor; text-decoration: none;
  transition: background .3s, color .3s;
}
.gallery-link span { font-family: var(--f-mincho); font-weight: 800; font-size: 16px; letter-spacing: .12em; }
.gallery-link small { grid-row: 2; font-family: var(--f-latin); font-style: italic; font-size: 13px; color: var(--grey); letter-spacing: .1em; }
.gallery-link i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-family: var(--f-latin); font-size: 26px; transition: transform .3s; }
.gallery-link:hover { background: var(--paper); color: var(--ink); }
.gallery-link:hover i { transform: translateX(6px); }
.log-link { margin-top: 40px; }
.log-link:hover { background: var(--ink); color: var(--paper); }
