/* ==========================================================================
   AQUAPONICS CAFE at MACHI NO KAKUREGA
   Editorial Greenhouse — see DESIGN.md
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --stone: #EEEBE3;
  --ink: #1C1F1C;
  --ink-soft: #5B605A;
  --leaf: #3E5A43;
  --sage: #A7B79C;
  --soil: #B39A7A;
  --line: rgb(28 31 28 / .14);
  --line-light: rgb(247 246 242 / .2);

  --f-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --f-display: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 80px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(112px, 14vw, 240px);
  --max: 1600px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-gothic);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 2;
  letter-spacing: .06em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-break: strict;
  word-break: auto-phrase;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em, i { font-style: italic; }
small { font-size: .8em; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}
section[tabindex="-1"]:focus { outline: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.pc { display: none; }
.nowrap { display: inline-block; white-space: nowrap; }
@media (min-width: 768px) { .pc { display: inline; } }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); position: relative; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .92;
}
.display em { font-style: italic; }

.h2 {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.5;
  letter-spacing: .08em;
  font-feature-settings: "palt" 1;
}
.prose {
  color: var(--ink-soft);
  line-height: 2.2;
}
.prose p + p { margin-top: 1.6em; }

.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  margin-bottom: clamp(32px, 4vw, 56px);
}
/* 番号 — 罫線 — 見出し英字 */
.label span {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-size: 15px; letter-spacing: 0;
  color: var(--leaf);
}
.label span::after { content: ""; width: 40px; height: 1px; background: var(--ink); opacity: .4; }
.label--light { color: var(--paper); }
.label--light span { color: var(--sage); }
.label--light span::after { background: var(--paper); }

.fig {
  font-size: 11px; letter-spacing: .16em;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.6;
}
.fig::first-letter { text-transform: uppercase; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .6em;
  padding-block: 12px;
  border-bottom: 1px solid currentColor;
  font-size: 14px; letter-spacing: .12em;
  transition: gap .5s var(--ease), opacity .3s;
}
.arrow-link:hover { gap: 1.1em; }

.tbd { color: var(--ink-soft); letter-spacing: .16em; }

/* ---------- Media（画像枠）----------
   枠が縦横比を持ち、画像は cover で入る → どんな写真に差し替えても崩れない */
.media {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-9x16 { aspect-ratio: 9 / 16; }
.ar-21x9 { aspect-ratio: 21 / 9; }
.ar-3x2  { aspect-ratio: 3 / 2; }
.ar-4x3  { aspect-ratio: 4 / 3; }
.ar-4x5  { aspect-ratio: 4 / 5; }
.ar-3x4  { aspect-ratio: 3 / 4; }
.ar-1x1  { aspect-ratio: 1 / 1; }

@media (hover: hover) {
  a:hover .media img,
  .cat:hover .media img,
  .exp__row:hover .media img,
  .g:hover .media img { transform: scale(1.03); }
}

/* ---------- Intro ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--paper);
  transition: clip-path 1.1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.intro__mark {
  display: grid; justify-items: center; gap: 10px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.intro.is-show .intro__mark { opacity: 1; transform: none; }
.intro.is-leave { clip-path: inset(0 0 100% 0); }
.intro.is-leave .intro__mark { opacity: 0; transform: translateY(-10px); transition-duration: .5s; }
.intro__en { font-family: var(--f-display); font-size: 18px; letter-spacing: .04em; color: var(--leaf); }
.intro__ja { font-family: var(--f-mincho); font-size: clamp(24px, 3vw, 34px); letter-spacing: .24em; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  color: var(--paper);
  transition: background-color .5s var(--ease), color .5s var(--ease), height .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgb(247 246 242 / .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--line);
  --header-h: 60px;
}
.is-menu-open .header { color: var(--ink); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand { display: grid; line-height: 1.2; padding-block: 6px; }
.brand__sm { font-family: var(--f-display); font-size: 14px; letter-spacing: .03em; }
.brand__lg { font-family: var(--f-mincho); font-size: 17px; letter-spacing: .2em; }

.gnav { margin-left: auto; display: none; }
.gnav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.gnav a {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  position: relative; padding-block: 8px;
}
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 1024px) { .gnav { display: block; } }

.menu-btn {
  display: flex; align-items: center; gap: 14px;
  min-height: 48px; min-width: 48px; justify-content: flex-end;
}
.menu-btn__label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.menu-btn__lines { position: relative; width: 28px; height: 8px; }
.menu-btn__lines span {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-btn__lines span:first-child { top: 0; }
.menu-btn__lines span:last-child { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:first-child { top: 4px; transform: rotate(20deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:last-child { top: 4px; transform: rotate(-20deg); }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: calc(var(--header-h) + 5vh) var(--gutter) max(32px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  overflow-y: auto;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io), opacity .4s;
}
.drawer.is-open { opacity: 1; clip-path: inset(0 0 0 0); }
.drawer__nav ol { display: grid; }
.drawer__nav li { border-bottom: 1px solid var(--line); }
.drawer__nav a {
  display: grid; grid-template-columns: 3em 1fr auto; align-items: baseline;
  gap: 12px; padding-block: 14px; min-height: 48px;
  transition: color .3s, padding .5s var(--ease);
}
.drawer__nav a:hover { color: var(--leaf); padding-left: 8px; }
.drawer__no { font-family: var(--f-display); font-size: 14px; color: var(--leaf); }
.drawer__ja { font-family: var(--f-mincho); font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .14em; }
.drawer__en { font-family: var(--f-display); font-style: italic; font-size: 16px; color: var(--ink-soft); }
.drawer__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; font-size: 13px; color: var(--ink-soft); }
.drawer__links { display: flex; gap: 24px; }
.drawer__links a { text-decoration: underline; text-underline-offset: 4px; }
.is-menu-open body { overflow: hidden; }
@media (min-width: 900px) {
  .drawer__nav ol { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
}

/* ==========================================================================
   01 HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 600px;
  color: var(--paper);
  overflow: hidden;
  background: #2E3A30;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__media { display: block; }
.hero__media img { object-fit: cover; will-change: transform; }
/* ロード時のズームは picture 側、パララックスは img 側（JS）で分担 */
.js .hero__media { transform: scale(1.08); transition: transform 2.4s var(--ease); }
.js.is-loaded .hero__media { transform: scale(1.02); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(16 20 16 / .5) 0%, rgb(16 20 16 / 0) 26%),
    linear-gradient(0deg, rgb(16 20 16 / .62) 0%, rgb(16 20 16 / 0) 52%),
    linear-gradient(270deg, rgb(16 20 16 / .38) 0%, rgb(16 20 16 / 0) 28%);
}
.hero__sub, .hero__place, .hero__title, .scroll { text-shadow: 0 1px 14px rgb(0 0 0 / .45); }
.header:not(.is-solid) { text-shadow: 0 1px 12px rgb(0 0 0 / .4); }
.hero__inner {
  position: relative; height: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto auto;
  padding: calc(var(--header-h) + 24px) var(--gutter) clamp(28px, 4vw, 48px);
  column-gap: 24px;
}
.hero__place {
  grid-column: 1; grid-row: 1; align-self: start;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .85;
  display: none;
}
.hero__copy {
  grid-column: 1; grid-row: 2;
  font-family: var(--f-mincho); font-weight: 500;
  font-size: clamp(46px, 8.4vw, 136px);
  line-height: 1.22;
  letter-spacing: .06em;
  font-feature-settings: "palt" 1;
  margin-bottom: clamp(28px, 4vw, 56px);
  text-shadow: 0 0 40px rgb(0 0 0 / .12);
}
.hero__copy .line { display: block; }
.hero__copy .line:nth-child(2) { padding-left: 1.1em; }
.hero__sub {
  grid-column: 2; grid-row: 1 / 3; align-self: end;
  writing-mode: vertical-rl;
  font-family: var(--f-mincho);
  font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: .32em; line-height: 2.2;
  margin-bottom: clamp(28px, 4vw, 56px);
  margin-right: 64px;
}
.hero__title {
  grid-column: 1 / -1; grid-row: 3;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px;
  padding-top: 18px;
  border-top: 1px solid rgb(247 246 242 / .4);
  font-weight: 400;
  padding-right: 88px;
}
.hero__title-ja {
  font-family: var(--f-mincho); font-weight: 500;
  font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .18em;
}
.hero__title-ja i { font-family: var(--f-display); letter-spacing: .02em; font-size: 1.1em; padding-inline: .2em; }
.hero__title-cafe { font-family: var(--f-display); font-size: 1.15em; letter-spacing: .08em; padding-left: .15em; }
.hero__title-en { font-family: var(--f-display); font-style: italic; font-size: clamp(14px, 1.2vw, 17px); opacity: .85; letter-spacing: .02em; }

.scroll {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  min-width: 48px; padding-top: 8px;
}
.scroll span { writing-mode: vertical-rl; }
.scroll i {
  position: relative; display: block; width: 1px; height: 56px;
  background: rgb(247 246 242 / .3); overflow: hidden;
}
.scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  animation: scrollLine 2.6s var(--ease-io) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
@media (min-width: 768px) {
  .hero__place { display: block; }
}
@media (max-width: 767px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
  .hero__sub {
    grid-column: 1; grid-row: 1; align-self: start; justify-self: end;
    margin: 8px 0 0; font-size: 14px;
  }
  .hero__copy { font-size: clamp(38px, 11.4vw, 64px); margin-bottom: 32px; }
  .hero__title { padding-right: 56px; }
}

/* hero text entrance */
.js .hero__copy .line { overflow: hidden; padding-bottom: .06em; }
.js .hero__copy .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js.is-loaded .hero__copy .line > span { transform: none; }
.js.is-loaded .hero__copy .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero__sub, .js .hero__title, .js .hero__place, .js .scroll { opacity: 0; transition: opacity 1.4s var(--ease) .6s; }
.js.is-loaded .hero__sub, .js.is-loaded .hero__title, .js.is-loaded .hero__place, .js.is-loaded .scroll { opacity: 1; }

/* ==========================================================================
   02 CONCEPT
   ========================================================================== */
.concept { background: var(--paper); padding-bottom: calc(var(--section) * .7); }
.concept__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  position: relative;
}
.concept .label { grid-column: 1 / -1; }
.concept__text { grid-column: 1 / 7; grid-row: 2 / 4; position: relative; z-index: 1; }
.concept__text .h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.concept__img1 { grid-column: 8 / 13; grid-row: 2; margin-top: -2vw; }
.concept__img2 { grid-column: 5 / 9; grid-row: 3; margin-top: -8vw; z-index: 2; box-shadow: 0 0 0 clamp(8px, 1vw, 14px) var(--paper); }
.concept__giant {
  grid-column: 1 / -1; grid-row: 4;
  font-size: clamp(88px, 17vw, 300px);
  color: var(--leaf);
  opacity: .9;
  margin-top: clamp(40px, 6vw, 96px);
  text-align: right;
}
.concept__giant em { color: var(--ink); }
.concept__text .prose { max-width: 30em; }

@media (max-width: 899px) {
  .concept__text { grid-column: 1 / -1; grid-row: 2; }
  .concept__img1 { grid-column: 4 / -1; grid-row: 3; margin-top: 64px; }
  .concept__img2 { grid-column: 1 / 8; grid-row: 4; margin-top: -18vw; }
  .concept__giant { grid-row: 5; text-align: left; margin-top: 48px; }
}

/* ==========================================================================
   03 FOOD
   ========================================================================== */
.food { background: var(--white); }
.food__giant {
  font-size: clamp(64px, 13vw, 232px);
  margin-bottom: clamp(48px, 6vw, 96px);
  margin-left: -.04em;
}
.food__giant em { color: var(--leaf); padding-left: 1.2em; }
.food__intro {
  display: grid; gap: 32px 64px; align-items: end;
  margin-bottom: clamp(56px, 7vw, 120px);
}
@media (min-width: 900px) {
  .food__intro { grid-template-columns: 1.1fr 1fr; padding-left: calc(100% / 12); }
}
.food__hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-bottom: var(--section);
}
.food__img1 { grid-column: 1 / 9; }
.food__img2 { grid-column: 9 / 13; margin-top: 30%; }
@media (max-width: 767px) {
  .food__hero { margin-inline: calc(var(--gutter) * -1); }
  .food__img1 { grid-column: 1 / -1; }
  .food__img2 { grid-column: 6 / -1; margin-top: -22%; margin-right: var(--gutter); box-shadow: 0 0 0 8px var(--white); }
}

.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.cat { position: relative; }
.cat:nth-child(2) { margin-top: 12%; }
.cat:nth-child(3) { margin-top: 4%; }
.cat:nth-child(4) { margin-top: 18%; }
.cat .media { margin-bottom: 20px; }
.cat__no { font-family: var(--f-display); font-size: 14px; color: var(--leaf); line-height: 1; }
.cat__en { font-size: clamp(36px, 3.6vw, 60px); margin-block: 6px 12px; }
.cat__ja { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 767px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .cat:nth-child(2), .cat:nth-child(4) { margin-top: 64px; }
  .cat:nth-child(3) { margin-top: 0; }
}

.menu {
  margin-top: clamp(80px, 10vw, 160px);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
}
.menu__empty {
  display: grid; gap: 16px 64px; align-items: baseline;
  color: var(--ink-soft); font-size: 14px;
}
.menu__soon { font-size: clamp(32px, 4vw, 56px); color: var(--ink); }
.menu__soon em { color: var(--leaf); }
@media (min-width: 900px) { .menu__empty { grid-template-columns: auto 1fr; } }
.menu__group { display: grid; gap: 16px 64px; padding-block: 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .menu__group { grid-template-columns: 1fr 2fr; } }
.menu__cat { font-size: clamp(32px, 3vw, 44px); }
.menu__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding-block: 14px; border-top: 1px dashed var(--line); }
.menu__item:first-child { border-top: 0; }
.menu__name { font-family: var(--f-mincho); font-size: 17px; letter-spacing: .08em; }
.menu__note { grid-column: 1; font-size: 13px; color: var(--ink-soft); }
.menu__price { grid-column: 2; grid-row: 1; font-family: var(--f-display); font-size: 20px; }

/* ==========================================================================
   04 AQUAPONICS
   ========================================================================== */
.aqua { background: var(--stone); }
.aqua__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.aqua__head { grid-column: 1 / 6; }
.aqua__head .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.aqua__poem {
  font-family: var(--f-mincho);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 2.3; letter-spacing: .12em;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.aqua__img { width: 72%; }
.cycle { grid-column: 7 / 13; position: relative; margin-top: clamp(40px, 8vw, 140px); }
@media (min-width: 900px) {
  .aqua__head { position: sticky; top: 100px; }
}
@media (max-width: 899px) {
  .aqua__head, .cycle { grid-column: 1 / -1; }
  .aqua__img { width: 64%; margin-left: auto; }
}

/* cycle diagram */
.cycle__svg { width: 100%; height: auto; overflow: visible; }
.cycle__ring { fill: none; stroke: var(--ink); stroke-opacity: .22; stroke-width: 1; }
.cycle__ring--inner { stroke-dasharray: 2 6; stroke-opacity: .28; }
.cycle__path { fill: none; stroke: none; }
.cycle__ticks line { stroke: var(--leaf); stroke-width: 1.2; }
.cycle__dot { fill: var(--leaf); }
.cycle__labels { display: none; }
.cycle__labels text { font-family: var(--f-display); font-size: 30px; fill: var(--leaf); }
.cycle__center { font-family: var(--f-mincho); font-size: 30px; letter-spacing: .2em; fill: var(--ink); }
.cycle__center-en { font-family: var(--f-display); font-style: italic; font-size: 18px; fill: var(--ink-soft); }

.cycle__steps { position: absolute; inset: 0; pointer-events: none; }
.cycle__step {
  position: absolute; display: grid; gap: 2px;
  width: max-content; max-width: 46%;
  background: var(--stone);
  padding: 6px 10px;
  line-height: 1.5;
}
.cycle__no { font-family: var(--f-display); font-size: 13px; color: var(--leaf); }
.cycle__en { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.cycle__ja { font-size: 12px; color: var(--ink-soft); letter-spacing: .08em; line-height: 1.7; margin-top: 4px; }
/* ring radius 220 / 600 → positions in % of the square */
.cycle__step--top    { left: 50%; top: 13.3%; transform: translate(-50%, -100%); text-align: center; justify-items: center; }
.cycle__step--right  { left: 86.6%; top: 50%; transform: translate(-30%, -50%); }
.cycle__step--bottom { left: 50%; top: 86.6%; transform: translate(-50%, 0); text-align: center; justify-items: center; }
.cycle__step--left   { right: 86.6%; top: 50%; transform: translate(30%, -50%); text-align: right; justify-items: end; }

.cycle__table {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  margin-top: clamp(150px, 13vw, 200px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cycle__table .cycle__en { font-style: italic; color: var(--leaf); }
.cycle__table .cycle__ja { font-family: var(--f-mincho); font-size: 15px; color: var(--ink); letter-spacing: .14em; }
.cycle__arrow { width: 32px; height: 1px; background: var(--leaf); align-self: center; }

@media (max-width: 599px) {
  .cycle { margin-top: 96px; padding-inline: 4px; }
  .cycle__svg { width: 58%; margin-inline: auto; }
  .cycle__labels { display: inline; }
  .cycle__center { font-size: 40px; }
  .cycle__center-en { font-size: 26px; }
  .cycle__steps { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 40px; }
  .cycle__step, .cycle__step--top, .cycle__step--right, .cycle__step--bottom, .cycle__step--left {
    position: static; transform: none; width: auto; max-width: none;
    text-align: left; justify-items: start; padding: 16px 0 0; border-top: 1px solid var(--line);
    background: none;
  }
  .cycle__table { margin-top: 56px; }
}

/* ==========================================================================
   05 THE FARM（唯一の暗面）
   ========================================================================== */
.farm { background: var(--ink); color: var(--paper); }
.farm .prose { color: rgb(247 246 242 / .72); }
.farm .fig { color: rgb(247 246 242 / .6); }
.farm .media { background: #2A302A; }
.farm__head {
  display: grid; gap: 40px var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-bottom: clamp(64px, 8vw, 128px);
  align-items: end;
}
.farm__giant {
  grid-column: 1 / 8;
  font-size: clamp(80px, 14vw, 250px);
  color: var(--paper);
}
.farm__giant em { color: var(--sage); padding-left: .9em; }
.farm__text { grid-column: 8 / 13; }
.farm__text .h2 { font-size: clamp(26px, 2.8vw, 42px); margin-bottom: 32px; }
@media (max-width: 899px) {
  .farm__giant, .farm__text { grid-column: 1 / -1; }
}
.farm__wide { width: 100%; }
@media (max-width: 767px) {
  .farm__wide { aspect-ratio: 4 / 3; }
}
.fig--wide { text-align: right; }
.farm__details {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(80px, 10vw, 160px);
  align-items: start;
}
.farm__d1 { grid-column: 2 / 6; margin-top: 18%; }
.farm__d2 { grid-column: 7 / 11; }
.farm__d3 { grid-column: 5 / 13; margin-top: clamp(48px, 6vw, 96px); }
@media (max-width: 767px) {
  .farm__d1 { grid-column: 1 / 8; margin-top: 0; }
  .farm__d2 { grid-column: 5 / -1; margin-top: 48px; }
  .farm__d3 { grid-column: 1 / -1; margin-top: 48px; }
}

/* ==========================================================================
   06 EXPERIENCE
   ========================================================================== */
.exp { background: var(--paper); }
.exp__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  margin-bottom: clamp(56px, 7vw, 104px);
}
.exp__head .label { grid-column: 1 / -1; }
.exp__head .h2 { grid-column: 7 / 13; }
@media (max-width: 899px) { .exp__head .h2 { grid-column: 1 / -1; } }

.exp__list { border-top: 1px solid var(--line); }
.exp__row {
  display: grid;
  grid-template-columns: 3em minmax(0, 1.4fr) minmax(0, 1fr) clamp(140px, 18vw, 280px);
  align-items: center;
  gap: 16px var(--gap);
  padding-block: clamp(20px, 2.4vw, 32px);
  border-bottom: 1px solid var(--line);
}
.exp__no { font-family: var(--f-display); font-size: 15px; color: var(--leaf); align-self: start; padding-top: .6em; }
.exp__en {
  font-size: clamp(48px, 6.4vw, 112px);
  transition: transform .8s var(--ease), color .5s;
}
.exp__en em { color: var(--leaf); }
.exp__ja { font-size: 14px; color: var(--ink-soft); line-height: 1.9; }
.exp__ja strong {
  display: block; font-weight: 500; color: var(--ink);
  font-family: var(--f-mincho); font-size: 16px; letter-spacing: .14em; margin-bottom: 6px;
}
.exp__ja small { display: block; margin-top: 8px; }
.exp__ja small a { text-decoration: underline; text-underline-offset: 4px; }
.exp__img { width: 100%; }
@media (hover: hover) and (min-width: 900px) {
  .exp__row:hover .exp__en { transform: translateX(16px); color: var(--leaf); }
}
@media (max-width: 899px) {
  .exp__row { grid-template-columns: 2.2em minmax(0, 1fr) 36%; grid-template-rows: auto auto; row-gap: 8px; align-items: start; }
  .exp__no { grid-row: 1; padding-top: .9em; }
  .exp__en { grid-column: 2; grid-row: 1; font-size: clamp(32px, 8.4vw, 64px); }
  .exp__ja { grid-column: 2; grid-row: 2; }
  .exp__img { grid-column: 3; grid-row: 1 / 3; }
  .exp__ja { font-size: 13px; letter-spacing: .03em; }
  .exp__ja strong { font-size: 15px; letter-spacing: .06em; }
}

/* ==========================================================================
   07 FAMILY
   ========================================================================== */
.family { background: var(--stone); overflow: hidden; }
.family__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.family__img1 { grid-column: 1 / 7; grid-row: 1 / 3; }
.family__img2 { grid-column: 6 / 9; grid-row: 2; margin-bottom: -12%; z-index: 1; box-shadow: 0 0 0 clamp(8px, 1vw, 14px) var(--stone); }
.family__text {
  grid-column: 9 / 13; grid-row: 1;
  display: grid; grid-template-columns: auto 1fr; column-gap: 32px;
  padding-top: 4vw;
}
.family__text .label { grid-column: 1 / -1; }
.family__title {
  writing-mode: vertical-rl;
  font-family: var(--f-mincho); font-weight: 500;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: .2em; line-height: 1.9;
  font-feature-settings: "vpal" 1;
}
.family__title span { display: block; }
.family__title span + span { padding-top: 3em; }
.family__text .prose { font-size: 14px; line-height: 2.3; }
@media (max-width: 1099px) {
  .family__text { grid-column: 8 / 13; }
}
@media (max-width: 899px) {
  .family__text { grid-column: 1 / -1; grid-row: 1; margin-bottom: 64px; padding-top: 0; grid-template-columns: 1fr; }
  .family__title { writing-mode: horizontal-tb; font-size: clamp(21px, 5.6vw, 34px); line-height: 1.8; margin-bottom: 32px; letter-spacing: .1em; }
  .family__title span + span { padding-top: 0; padding-left: .8em; }
  .family__img1 { grid-column: 1 / 10; grid-row: 2; }
  .family__img2 { grid-column: 7 / -1; grid-row: 3; margin-top: -30%; margin-bottom: 0; }
}

/* ==========================================================================
   08 GALLERY
   ========================================================================== */
.gallery { background: var(--paper); }
.gallery__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end; margin-bottom: clamp(56px, 7vw, 112px);
}
.gallery__head .label { grid-column: 1 / -1; }
.gallery__title { grid-column: 1 / 9; font-size: clamp(56px, 9vw, 160px); }
.gallery__title em { color: var(--leaf); padding-left: .8em; }
.gallery__ja { grid-column: 9 / 13; font-family: var(--f-mincho); letter-spacing: .16em; padding-bottom: 1em; }
@media (max-width: 767px) {
  .gallery__title, .gallery__ja { grid-column: 1 / -1; }
  .gallery__ja { margin-top: 24px; }
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px) var(--gap);
  align-items: start;
}
.g .fig { font-family: var(--f-display); font-size: 13px; letter-spacing: .06em; margin-top: 10px; }
.g1 { grid-column: 1 / 8; }
.g2 { grid-column: 9 / 13; margin-top: 16%; }
.g3 { grid-column: 2 / 5; margin-top: -4%; }
.g4 { grid-column: 6 / 10; }
.g5 { grid-column: 1 / 13; }
.g6 { grid-column: 1 / 5; }
.g7 { grid-column: 6 / 9; margin-top: 30%; }
.g8 { grid-column: 9 / 13; margin-top: 8%; }
@media (min-width: 768px) {
  .g5 { grid-column: 3 / 13; }
}
@media (max-width: 767px) {
  .gallery__grid { row-gap: 32px; column-gap: 12px; }
  .g1 { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); }
  .g1 .fig { padding-inline: var(--gutter); }
  .g2 { grid-column: 1 / 8; margin-top: 0; }
  .g3 { grid-column: 8 / -1; margin-top: 45%; }
  .g4 { grid-column: 3 / -1; margin-top: 0; }
  .g5 { grid-column: 1 / -1; }
  .g6 { grid-column: 1 / 7; }
  .g7 { grid-column: 7 / -1; margin-top: 35%; }
  .g8 { grid-column: 1 / 11; margin-top: 0; }
}
.gallery__insta { margin-top: 64px; text-align: right; }
.gallery__insta a { display: inline-flex; gap: .6em; padding-block: 12px; border-bottom: 1px solid currentColor; font-size: 14px; letter-spacing: .12em; }

/* ==========================================================================
   09 NEWS
   ========================================================================== */
.news { background: var(--white); }
.news__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
}
.news__head { grid-column: 1 / 5; }
.news__body { grid-column: 5 / 13; border-top: 1px solid var(--line); }
@media (max-width: 899px) {
  .news__head, .news__body { grid-column: 1 / -1; }
  .news__head { margin-bottom: 40px; }
}
.news__empty { padding-top: clamp(32px, 4vw, 56px); color: var(--ink-soft); font-size: 14px; }
.news__soon { font-size: clamp(44px, 5vw, 80px); color: var(--ink); margin-bottom: 20px; }
.news__soon em { color: var(--leaf); }
.news__item {
  display: grid; grid-template-columns: 7.5em 7em 1fr; gap: 4px 24px; align-items: baseline;
  padding-block: 24px; border-bottom: 1px solid var(--line);
}
.news__date { font-family: var(--f-display); font-size: 17px; letter-spacing: .04em; }
.news__date:empty::before { content: "—"; }
.news__type { font-size: 10px; letter-spacing: .2em; color: var(--leaf); }
.news__title { font-size: 15px; }
a.news__title { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .3s; }
a.news__title:hover { text-decoration-color: currentColor; }
@media (max-width: 599px) {
  .news__item { grid-template-columns: auto 1fr; }
  .news__title { grid-column: 1 / -1; }
}

/* ==========================================================================
   10 ACCESS
   ========================================================================== */
.access { background: var(--paper); }
.access__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start;
}
.access__text { grid-column: 1 / 7; }
.access__text .h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.access__visual { grid-column: 8 / 13; margin-top: clamp(0px, 8vw, 140px); display: grid; gap: var(--gap); }
@media (max-width: 899px) {
  .access__text { grid-column: 1 / -1; }
  .access__visual { grid-column: 3 / -1; margin-top: 64px; }
}
.info { border-top: 1px solid var(--line); }
.info__row {
  display: grid; grid-template-columns: 7.5em 1fr; gap: 24px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.9;
}
.info dt { font-size: 12px; letter-spacing: .16em; color: var(--ink-soft); padding-top: .2em; }
.info dd a { text-decoration: underline; text-underline-offset: 4px; }
.access__note { font-size: 12px; color: var(--ink-soft); margin-top: 16px; }
.access__map-link { margin-top: 40px; }
.access__map { aspect-ratio: 4 / 3; background: var(--stone); }
.access__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.7) contrast(1.05); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--paper);
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__line {
  font-family: var(--f-mincho); font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .2em;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.footer__mark {
  font-size: clamp(56px, 13.4vw, 250px);
  line-height: .9;
  white-space: nowrap;
  margin-left: -.04em;
  color: var(--ink);
}
.footer__mark em { color: var(--leaf); }
.footer__bottom {
  display: grid; gap: 20px 40px; align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .18em;
}
.footer__name { font-weight: 500; }
.footer__name i { font-family: var(--f-display); font-size: 1.3em; letter-spacing: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; text-transform: uppercase; }
.footer__nav a { display: inline-block; padding-block: 12px; }
.footer__nav a:hover { color: var(--leaf); }
.footer__copy { color: var(--ink-soft); letter-spacing: .1em; }
.footer__note { grid-column: 1 / -1; color: var(--ink-soft); letter-spacing: .06em; }
@media (min-width: 1024px) {
  .footer__bottom { grid-template-columns: 1fr auto auto auto; }
}
@media (max-width: 767px) {
  .footer__mark { font-size: 17vw; white-space: normal; }
}

/* ==========================================================================
   Reveal（JS有効時のみ隠す → JSが動かなくても内容はすべて見える）
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal-lines] .line { display: block; overflow: hidden; }
.js [data-reveal-lines] .line > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 1.2s var(--ease);
}
.js [data-reveal-lines].is-in .line > span { transform: none; }
.js [data-reveal-lines].is-in .line:nth-child(2) > span { transition-delay: .1s; }
.js [data-reveal-lines].is-in .line:nth-child(3) > span { transition-delay: .2s; }
[data-reveal-lines] .line { display: block; }

/* clip-path は img 側に（観測対象に clip-path があると IntersectionObserver が反応しないため） */
.js [data-reveal-img] img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-io), transform 1.8s var(--ease);
}
.js [data-reveal-img].is-in img { clip-path: inset(0 0 0 0); }
.js [data-reveal-img]:not([data-parallax]) img { transform: scale(1.1); }
.js [data-reveal-img].is-in:not([data-parallax]) img { transform: scale(1); }
/* パララックス画像は transform を JS が毎フレーム書くので、transition は clip-path のみ */
.js [data-reveal-img][data-parallax] img { transition: clip-path 1.4s var(--ease-io); }

/* 保険：main.js が読み込めない／エラーの場合でも 3 秒後に必ず表示する */
@keyframes failsafe { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); visibility: visible; } }
@keyframes failsafeHide { to { opacity: 0; visibility: hidden; } }
.js:not(.is-ready) [data-reveal],
.js:not(.is-ready) [data-reveal-img] img,
.js:not(.is-ready) [data-reveal-lines] .line > span,
.js:not(.is-ready) .hero__copy .line > span,
.js:not(.is-ready) .hero__sub,
.js:not(.is-ready) .hero__title,
.js:not(.is-ready) .hero__place,
.js:not(.is-ready) .scroll { animation: failsafe .01s 3s forwards; }
.js:not(.is-ready) .intro { animation: failsafeHide .4s 3s forwards; }

.cats .cat:nth-child(2) { transition-delay: .08s; }
.cats .cat:nth-child(3) { transition-delay: .16s; }
.cats .cat:nth-child(4) { transition-delay: .24s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-reveal-img] img, .js .hero__copy .line > span, .js [data-reveal-lines] .line > span {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .scroll i::after { display: none; }
  .cycle__dot { display: none; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: grid; align-content: center; gap: 32px;
  padding: 80px var(--gutter);
}
.notfound .label { margin-bottom: 0; }
.notfound__giant { font-size: clamp(64px, 12vw, 200px); }
.notfound__giant em { color: var(--leaf); padding-left: .8em; }
