/* ============================================================
   祇園 こよみ / GION KOYOMI
   和モダン — 生成り × 墨 × 苔
   ============================================================ */

:root {
  --paper: #F3EEE3;
  --paper-warm: #E9E1D0;
  --ink: #1E1F1B;
  --ink-70: rgba(30, 31, 27, 0.70);
  --ink-50: rgba(30, 31, 27, 0.50);
  --line: rgba(30, 31, 27, 0.15);
  --moss: #3F4A33;
  --matcha: #7C8C46;
  --brass: #A98A55;
  --dark: #191A16;
  --dark-line: rgba(233, 225, 208, 0.16);

  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(84px, 13vh, 190px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(14px, 1.02vw, 16px);
  line-height: 2.05;
  letter-spacing: 0.055em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 紙の質感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--matcha); color: var(--paper); }

.wrap {
  width: min(1320px, 88vw);
  margin-inline: auto;
}

/* ---------- 共通タイポ ---------- */
.eyebrow {
  font-family: var(--latin);
  font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 400;
}

.jp-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--ink-50);
}

.num {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: 0;
}

.vtitle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.45;
  margin: 0;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.section-head__left { display: flex; align-items: baseline; gap: 18px; }
.section-head .num { font-size: clamp(26px, 2.4vw, 38px); color: var(--moss); }

/* ---------- ヘッダー ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4.4vw, 60px);
  transition: background 0.6s var(--ease), padding 0.6s var(--ease),
    border-color 0.6s var(--ease);
  border-bottom: 1px solid transparent;
  /* ヒーロー上の可読性を保つ淡いスクリム */
  background: linear-gradient(
    180deg,
    rgba(243, 238, 227, 0.95) 0%,
    rgba(243, 238, 227, 0.80) 46%,
    rgba(243, 238, 227, 0.0) 100%
  );
}

.site-head.is-scrolled {
  background: rgba(243, 238, 227, 0.93);
  backdrop-filter: blur(14px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--line);
}

.site-head.is-scrolled {
  background: rgba(243, 238, 227, 0.92);
  backdrop-filter: blur(14px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: baseline; gap: 12px; flex: none; }
.brand__jp {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3em;
  white-space: nowrap;
}
.brand__en {
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(30, 31, 27, 0.55);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); }
.site-nav a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1E1F1B;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.site-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);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  border: 1px solid rgba(30, 31, 27, 0.45);
  background: rgba(243, 238, 227, 0.92);
  padding: 9px 18px 8px !important;
  font-family: var(--sans) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-cta::after { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #c8c0af;
}

.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  animation: kenburns 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.4%, -1.2%, 0); }
}

.hero__haze {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(243, 238, 227, 0.62) 0%, rgba(243, 238, 227, 0.22) 24%, rgba(243, 238, 227, 0) 44%),
    linear-gradient(180deg, rgba(25, 26, 22, 0.30) 0%, rgba(25, 26, 22, 0) 22%, rgba(25, 26, 22, 0.10) 62%, rgba(25, 26, 22, 0.46) 100%);
}

.hero__type {
  position: absolute;
  left: clamp(24px, 6vw, 108px);
  top: clamp(104px, 14.5vh, 168px);
  display: flex;
  flex-direction: row-reverse;
  gap: clamp(14px, 1.8vw, 26px);
  align-items: flex-start;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, min(4.1vw, 5.4vh), 66px);
  letter-spacing: 0.2em;
  line-height: 1.34;
  white-space: nowrap;
  color: #20211C;
  text-shadow: 0 0 34px rgba(243, 238, 227, 0.75), 0 0 8px rgba(243, 238, 227, 0.4);
  margin: 0;
}

.hero__sub {
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.36em;
  color: rgba(30, 31, 27, 0.72);
  padding-top: 6px;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(243, 238, 227, 0.8);
}

/* 見出しの一文字ずつを軽く立ち上げる（透明度に依存しないので必ず表示される） */
.hero__title .ch {
  display: inline-block;
  animation: charUp 1.05s var(--ease) backwards;
  animation-delay: calc(0.15s + var(--i, 0) * 0.07s);
}
@keyframes charUp {
  from { transform: translateY(-11px); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .ch { animation: none; }
}

.hero__foot {
  position: absolute;
  left: clamp(20px, 4.4vw, 62px);
  right: clamp(20px, 4.4vw, 62px);
  bottom: clamp(24px, 5vh, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: #F5F0E4;
}

.hero__caption {
  max-width: 342px;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 16px rgba(20, 20, 16, 0.55);
}

/* 背の低い画面では見出しを抑え、キャプションを低く収める */
@media (max-height: 780px) and (min-width: 861px) {
  .hero__title { font-size: clamp(26px, 4.6vh, 46px); }
  .hero__type { top: clamp(84px, 11.5vh, 124px); }
  .hero__caption { max-width: 400px; font-size: 12px; }
  .hero__caption .en { display: none; }
}
.hero__caption .en {
  display: block;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.24em;
  opacity: 0.72;
  margin-top: 8px;
  text-transform: uppercase;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 54px;
  background: rgba(245, 240, 228, 0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #F5F0E4;
  transform: translateY(-100%);
  animation: drip 2.6s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- コンセプト ---------- */
.concept { padding: var(--pad) 0 calc(var(--pad) * 0.9); }

.concept__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 110px);
  align-items: start;
  margin-top: clamp(50px, 7vw, 96px);
}

.concept__lead { padding-right: 20px; }
.concept__lead .vtitle {
  font-size: clamp(26px, 2.7vw, 40px);
  color: var(--ink);
  width: 1.45em;
  height: auto;
  letter-spacing: 0.14em;
  line-height: 1.5;
}
.concept__lead p {
  margin: 46px 0 0;
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 2.25;
  color: var(--ink-70);
}

.concept__figure { position: relative; }
.concept__figure .frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-warm);
}
.concept__figure img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.concept__figcap {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-50);
  font-family: var(--sans);
}

.concept__en {
  margin-top: clamp(50px, 7vw, 96px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 110px);
}
.concept__en blockquote {
  margin: 0;
  font-family: var(--latin);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.05vw, 31px);
  line-height: 1.65;
  letter-spacing: 0.015em;
  color: var(--moss);
}
.concept__en figcaption {
  margin-top: 18px;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* ---------- メニュー ---------- */
.menu {
  padding: var(--pad) 0;
  background: var(--paper);
  position: relative;
}

.menu__cards {
  margin-top: clamp(48px, 6vw, 86px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 44px);
  align-items: start;
}
.menu__cards > :nth-child(2) { margin-top: clamp(30px, 5vw, 76px); }

.card { position: relative; }
.card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
}
.card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.card:hover .card__frame img { transform: scale(1.045); }

.card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  background: rgba(243, 238, 227, 0.94);
  padding: 5px 10px;
  color: var(--ink);
}

.card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--line);
}
.card__name { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: 0.12em; }
.card__en {
  display: block;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 400;
  margin-top: 7px;
}
.card__price { font-family: var(--latin); font-size: 19px; letter-spacing: 0.04em; white-space: nowrap; }
.card__desc { margin: 12px 0 0; font-size: 12.5px; line-height: 2; color: var(--ink-70); }

/* メニュー表 */
.menu__list {
  margin-top: clamp(64px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4.4vw, 72px);
}
.mlist h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
}
.mlist h3 span {
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-50);
  font-weight: 400;
}
.mlist ul { margin: 0; padding: 0; list-style: none; }
.mlist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  letter-spacing: 0.07em;
}
.mlist .dots {
  flex: 1;
  border-bottom: 1px dotted rgba(30, 31, 27, 0.28);
  transform: translateY(-4px);
}
.mlist .p { font-family: var(--latin); font-size: 13.5px; color: var(--ink-70); }
.mlist li.em { color: var(--moss); }
.mlist li.em .p { color: var(--moss); }

.menu__note {
  margin-top: clamp(44px, 6vw, 74px);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-end;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-50);
  line-height: 1.9;
}
.menu__note::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--ink-50);
  margin-top: 10px;
  flex: none;
}

/* ---------- こだわり（暗部） ---------- */
.craft {
  background: var(--dark);
  color: #EAE3D4;
  padding: var(--pad) 0;
  position: relative;
  overflow: hidden;
}
.craft::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  right: -30vw;
  top: -20vw;
  background: radial-gradient(circle, rgba(124, 140, 70, 0.20) 0%, rgba(124, 140, 70, 0) 62%);
  pointer-events: none;
}
.craft .section-head { border-bottom-color: var(--dark-line); }
.craft .section-head .num { color: var(--matcha); }
.craft .eyebrow { color: rgba(234, 227, 212, 0.5); }

.craft__intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: end;
  margin-top: clamp(44px, 6vw, 84px);
  position: relative;
}
.craft__title {
  font-size: clamp(32px, 3.6vw, 58px);
  line-height: 1.55;
  letter-spacing: 0.16em;
  margin: 0;
  font-weight: 500;
}
.craft__intro p {
  margin: 0;
  font-size: 13.5px;
  line-height: 2.15;
  color: rgba(234, 227, 212, 0.66);
  max-width: 42ch;
}

.craft__steps { margin-top: clamp(50px, 8vw, 110px); }

.step {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  padding: clamp(34px, 5vw, 68px) 0;
  border-top: 1px solid var(--dark-line);
  position: relative;
}
.step:nth-child(even) { grid-template-columns: 0.58fr 0.42fr; }
.step:nth-child(even) .step__media { order: 2; }

.step__media { overflow: hidden; aspect-ratio: 5 / 4; background: #24261F; }
.step__media img { width: 100%; height: 108%; object-fit: cover; will-change: transform; }
.step:nth-child(2) .step__media { aspect-ratio: 4 / 3; }

.step__text { position: relative; }
.step__no {
  font-family: var(--latin);
  font-style: italic;
  font-size: clamp(58px, 6.4vw, 108px);
  line-height: 0.8;
  color: var(--matcha);
  opacity: 0.55;
  display: block;
  margin-bottom: 18px;
}
.step__title {
  margin: 0 0 6px;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: 0.16em;
}
.step__en {
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(234, 227, 212, 0.45);
}
.step__body {
  margin: 20px 0 0;
  font-size: 13.5px;
  line-height: 2.2;
  color: rgba(234, 227, 212, 0.76);
  max-width: 34ch;
}

/* ---------- ギャラリー（横スクロール固定） ---------- */
.gallery {
  position: relative;
  height: 340vh;
  background: var(--paper);
}
.gallery__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gallery__head {
  width: min(1320px, 88vw);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.gallery__title { font-size: clamp(24px, 2.6vw, 42px); letter-spacing: 0.18em; margin: 0; font-weight: 500; }
.gallery__count { font-family: var(--latin); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-50); }

.gallery__view { flex: 1; display: flex; align-items: center; overflow: hidden; }
.gallery__track {
  display: flex;
  gap: clamp(16px, 2.4vw, 40px);
  padding-inline: 6vw;
  will-change: transform;
}
.gframe {
  flex: none;
  position: relative;
  width: clamp(240px, 30vw, 470px);
  overflow: hidden;
  background: var(--paper-warm);
}
.gframe:nth-child(1) { aspect-ratio: 4 / 5; }
.gframe:nth-child(2) { aspect-ratio: 3 / 4; width: clamp(260px, 34vw, 540px); }
.gframe:nth-child(3) { aspect-ratio: 1 / 1; width: clamp(200px, 22vw, 340px); margin-top: 6vh; }
.gframe:nth-child(4) { aspect-ratio: 4 / 5; }
.gframe:nth-child(5) { aspect-ratio: 1 / 1; width: clamp(210px, 24vw, 360px); margin-top: 9vh; }
.gframe:nth-child(6) { aspect-ratio: 3 / 4; }
.gframe img { width: 100%; height: 100%; object-fit: cover; }
.gframe figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(245, 240, 228, 0.85);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ---------- 店舗情報 ---------- */
.visit { padding: var(--pad) 0; }
.visit__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 5.4vw, 92px);
  margin-top: clamp(46px, 6vw, 84px);
  align-items: start;
}
.visit__figure { overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper-warm); }
.visit__figure img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }

.visit__title { font-size: clamp(28px, 3vw, 46px); letter-spacing: 0.18em; margin: 0 0 10px; font-weight: 500; }
.visit__sub {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 34px;
}

.info-row {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.info-row:last-of-type { border-bottom: 1px solid var(--line); }
.info-row dt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-50);
}
.info-row dd { margin: 0; font-size: 13.5px; line-height: 1.95; letter-spacing: 0.06em; }
.info-row dd small {
  display: block;
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-50);
  margin-top: 3px;
}

.map-slot {
  margin-top: 26px;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(30, 31, 27, 0.055) 0 1px,
    transparent 1px 9px
  );
  display: grid;
  place-items: center;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-50);
  text-align: center;
  padding: 16px;
}

/* ---------- 予約 CTA ---------- */
.cta {
  background: var(--paper-warm);
  padding: clamp(70px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.cta h2 {
  margin: 22px 0 0;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.6;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.cta p { margin: 20px 0 0; font-size: 13px; color: var(--ink-70); max-width: 46ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 34px 19px;
  background: var(--moss);
  color: #F3EEE3;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.26em;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn i {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 1px;
  background: currentColor;
  display: block;
  transition: width 0.4s var(--ease);
}
.btn:hover i { width: 34px; }

/* ---------- フッター ---------- */
.foot {
  background: var(--dark);
  color: #EAE3D4;
  padding: clamp(50px, 7vw, 90px) 0 34px;
}
.foot__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--dark-line);
}
.foot__mark { display: flex; align-items: baseline; gap: 16px; }
.foot__mark strong { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: 0.24em; }
.foot__mark span { font-family: var(--latin); font-size: 11px; letter-spacing: 0.36em; color: rgba(234, 227, 212, 0.5); }
.foot__links { display: flex; gap: clamp(16px, 2.4vw, 34px); flex-wrap: wrap; }
.foot__links a {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(234, 227, 212, 0.72);
  transition: color 0.3s;
}
.foot__links a:hover { color: #EAE3D4; }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(234, 227, 212, 0.4);
  line-height: 2;
}
.foot__bottom p { margin: 0; }

/* ---------- 右側のセクション索引 ---------- */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(30, 31, 27, 0.42);
  transition: color 0.4s, opacity 0.4s;
}
.rail a b { font-weight: 400; opacity: 0; transition: opacity 0.4s; }
.rail a::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease), background 0.4s;
}
.rail a:hover { color: var(--ink); }
.rail a.is-active { color: var(--ink); }
.rail a.is-active b { opacity: 1; }
.rail a.is-active::after { width: 30px; background: var(--matcha); }
.rail.on-dark a { color: rgba(234, 227, 212, 0.4); }
.rail.on-dark a.is-active { color: #EAE3D4; }
.rail.on-dark a.is-active::after { background: var(--matcha); }

/* ---------- スクロール演出 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease) var(--d, 0s);
}
.mask.in { clip-path: inset(0 0 0 0); }

.inkword {
  display: inline-block;
  position: relative;
}
.inkword::after {
  content: "";
  position: absolute;
  inset: auto 0 0.12em 0;
  height: 0.5em;
  background: linear-gradient(90deg, rgba(124, 140, 70, 0.30), rgba(124, 140, 70, 0.10));
  filter: blur(6px);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s var(--ease) 0.3s;
}
.in .inkword::after { transform: scaleX(1); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .rail { display: none; }
  .concept__grid,
  .concept__en { grid-template-columns: 1fr; }
  .concept__lead .vtitle { height: auto; }
  .craft__intro { grid-template-columns: 1fr; align-items: start; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__figure { aspect-ratio: 4 / 3; max-height: 64svh; }
  .concept__figure .frame { aspect-ratio: 4 / 3; }
  .cta__grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 860px) {
  body { font-size: 14px; line-height: 1.95; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav { gap: 0; }
  .hero { height: 92svh; }
  .hero__type { top: 16vh; left: 8vw; }
  .hero__title { font-size: clamp(34px, 9vw, 46px); letter-spacing: 0.14em; }
  .hero__sub { display: none; }
  .hero__caption { max-width: 21ch; font-size: 12px; }
  .hero__scroll { display: none; }

  .menu__cards { grid-template-columns: 1fr; gap: 42px; }
  .menu__cards > :nth-child(2) { margin-top: 0; }
  .menu__list { grid-template-columns: 1fr; gap: 34px; }
  .menu__note { justify-content: flex-start; }

  .step,
  .step:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .step__media { order: 0; }

  /* ギャラリーは横スクロールに切替 */
  .gallery { height: auto; }
  .gallery__pin {
    position: static;
    height: auto;
    padding: 70px 0 64px;
    display: block;
  }
  .gallery__head { width: 86vw; }
  .gallery__view {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 26px 0 8px;
  }
  .gallery__view::-webkit-scrollbar { height: 2px; }

  .gallery__track { padding-inline: 7vw; }
  .gframe {
    scroll-snap-align: center;
    width: 72vw !important;
    aspect-ratio: 4 / 5 !important;
    margin-top: 0 !important;
  }

  .concept__figure .frame { aspect-ratio: 4 / 5; }
  .visit__figure { aspect-ratio: 4 / 5; }
  .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .mask { opacity: 1; transform: none; clip-path: none; }
}
