/* =========================================================
   Yotsugi Studio — renewal 2026
   余白（生成りの紙）と暗転（映像の帯）の二色で組む
   ========================================================= */
:root {
  --paper: #f3f0ea;
  --paper-2: #e9e4db;
  --ink: #1d1b19;
  --ink-2: #57524c;
  --ink-3: #6f6962; /* 紙の上で 4.5:1 以上 */
  --line: rgba(29, 27, 25, 0.14);
  --shu: #a23428; /* 朱。紙の上で 6:1 前後 */
  --field: #fbf9f5; /* 入力欄。紙より一段明るく */
  --field-line: rgba(29, 27, 25, 0.28);

  --night: #121113;
  --night-2: #1b1a1c;
  --night-ink: #ebe6de;
  --night-ink-2: #a9a29a;
  --night-line: rgba(235, 230, 222, 0.14);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --space: clamp(112px, 16vw, 208px); /* セクションの上下余白 */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --f-mincho: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-latin: "Cormorant Garamond", "Shippori Mincho B1", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "palt" 1;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 4px; }
::selection { background: var(--shu); color: #fff; }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }

.label {
  margin: 0;
  font-family: var(--f-latin);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

/* ---------- section head ---------- */
.sec-head { margin-bottom: clamp(56px, 8vw, 96px); max-width: 640px; }
.sec-head__title {
  margin: 12px 0 0;
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.4;
  letter-spacing: 0.12em;
}
.sec-head__lead { margin: 28px 0 0; color: var(--ink-2); }
.sec-head--dark .label { color: var(--night-ink-2); }
.sec-head--dark .sec-head__lead { color: var(--night-ink-2); }

/* ---------- links ---------- */
.text-link {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  font-size: 14px; letter-spacing: 0.08em;
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 300ms var(--ease-out), color 200ms ease;
}
.text-link .count { color: var(--ink-3); }
.text-link--dark { color: var(--night-ink); }
.inline-link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 4px; transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { background-size: 30% 1px; }
  .inline-link:hover { text-decoration-color: var(--shu); }
}

/* ---------- button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; min-height: 52px; padding: 0 32px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; letter-spacing: 0.2em;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  padding-top: max(20px, env(safe-area-inset-top));
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.nav.is-scrolled { background: rgba(243, 240, 234, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav.is-dark:not(.is-open) { color: var(--night-ink); }
.nav.is-dark.is-scrolled:not(.is-open) { background: rgba(18, 17, 19, 0.82); box-shadow: 0 1px 0 var(--night-line); }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid currentColor; font-family: var(--f-mincho); font-size: 14px; line-height: 1;
}
.nav__name { font-family: var(--f-latin); font-size: 19px; letter-spacing: 0.06em; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); font-size: 13px; letter-spacing: 0.12em; }
.nav__links a { text-decoration: none; opacity: 0.72; transition: opacity 200ms ease; }
.nav__links a.is-active { opacity: 1; }
.nav__cta { opacity: 1 !important; padding: 8px 20px; border: 1px solid currentColor; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { opacity: 1; } }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; position: relative; z-index: 2; }
  .nav__toggle i { display: block; width: 22px; height: 1px; background: currentColor; transition: transform 240ms var(--ease-out); }
  .nav.is-open .nav__toggle i:first-child { transform: translateY(4px) rotate(20deg); }
  .nav.is-open .nav__toggle i:last-child { transform: translateY(-4px) rotate(-20deg); }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--paper); color: var(--ink); font-family: var(--f-mincho); font-size: 20px;
    opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s 200ms;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transition: opacity 240ms ease; }
  .nav__links a { opacity: 1; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--gutter) 64px;
  max-width: calc(var(--max) + var(--gutter) * 2 + 120px);
  margin: 0 auto;
}
/* 大きな一字（絵 → 綴 → 縁）と、細い罫の下の小さな注記 */
.hero__glyph { width: clamp(220px, 24vw, 360px); aspect-ratio: 1; margin-left: -4%; }
.hero__glyph svg { display: block; width: 100%; height: 100%; overflow: visible; color: var(--ink); }
.hero__glyph path { transform-box: view-box; transform-origin: 0 0; }
.hero__note { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; min-height: 3.2em; max-width: 360px; }
.hero__note-k { font-family: var(--f-mincho); font-size: 15px; letter-spacing: 0.2em; white-space: nowrap; }
.hero__note-d { font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.hero__note > * { transition: opacity 400ms ease; }
.hero__note.is-swap > * { opacity: 0; }

.hero__text { margin-top: 36px; }
.hero__catch { margin: 0 0 14px; font-family: var(--f-mincho); font-weight: 500; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: 0.2em; line-height: 1.9; }
.hero__title { margin: 0; font-family: var(--f-latin); font-weight: 400; font-size: 18px; letter-spacing: 0.06em; line-height: 1.6; }
.hero__lead { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; max-width: 30em; }
.hero__latest { margin: 28px 0 0; display: flex; align-items: baseline; gap: 16px; }
.hero__latest-link {
  font-family: var(--f-mincho); font-size: 17px; letter-spacing: 0.12em; text-align: left;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: border-color 200ms ease;
}
.hero__latest-link small { display: block; font-family: var(--f-latin); font-size: 13px; color: var(--ink-3); letter-spacing: 0.08em; }
@media (hover: hover) and (pointer: fine) { .hero__latest-link:hover { border-color: var(--shu); } }

.hero__visual { margin: 0; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); align-items: start; }
/* 背景の白さが絵ごとにちがうので、なじませずに「刷った一枚」として額に入れる */
.hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; background: #fff; }
.hero__img--b { transform: translateY(-8%); }
.hero__visual figcaption { position: absolute; right: 0; bottom: -36px; }

/* 入場：一度だけ、静かに（一字は main.js の文字の波から始まる） */
.js .hero__text, .js .hero__img {
  opacity: 0; transform: translateY(12px);
  animation: enter 900ms var(--ease-out) forwards;
}
.js .hero__img--b { transform: translateY(calc(-8% + 12px)); animation-name: enter-b; animation-delay: 120ms; }
.js .hero__text { animation-delay: 600ms; }
@keyframes enter { to { opacity: 1; transform: translateY(0); } }
@keyframes enter-b { to { opacity: 1; transform: translateY(-8%); } }

/* 文字の波：画面全体を、1〜2 秒だけ通り抜ける */
.wave { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.wave span { position: absolute; left: 0; top: 0; line-height: 1; color: var(--ink); will-change: transform; white-space: nowrap; }
.wave .wave__key { color: var(--shu); font-family: "Noto Serif JP", var(--f-mincho); font-weight: 500; transform-origin: 50% 50%; }

/* タブレット：一字と文を横に、絵は下に */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 104px; gap: 48px; }
  .hero__copy { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; }
  .hero__glyph { width: 34vw; }
  .hero__text { margin-top: 0; }
  .hero__visual figcaption { position: static; grid-column: 1 / -1; margin-top: 12px; }
}
/* スマホ：一列。一字は画面幅の 6 割 */
@media (max-width: 639px) {
  .hero { padding-top: 88px; }
  .hero__copy { display: block; }
  .hero__glyph { width: 62vw; margin: 0 auto 0 -2%; }
  .hero__note { max-width: none; }
  .hero__text { margin-top: 28px; }
  .hero__visual { gap: 10px; }
}

/* =========================================================
   FILMS（暗転）
   ========================================================= */
.films { background: var(--night); color: var(--night-ink); padding: var(--space) 0; }
.play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(18, 17, 19, 0.5); border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color 200ms ease, transform 200ms var(--ease-out);
}
.play svg { width: 22px; fill: #fff; margin-left: 3px; }

.feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.feature__player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--night-2); }
.feature__player img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.feature__player:active .play { transform: scale(0.95); }
.feature__title { margin: 12px 0 0; font-family: var(--f-mincho); font-weight: 500; font-size: clamp(26px, 3vw, 36px); letter-spacing: 0.16em; line-height: 1.5; }
.feature__desc { color: var(--night-ink-2); font-size: 14px; margin: 20px 0 0; }
.feature .label { color: var(--night-ink-2); }
.credit { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 13px; }
.credit div { display: grid; grid-template-columns: 4em 1fr; gap: 12px; }
.credit dt { color: var(--night-ink-2); }
.credit dd { margin: 0; }

.film-grid {
  list-style: none; margin: clamp(80px, 10vw, 128px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px;
}
.film button { display: block; width: 100%; text-align: left; }
.film__thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--night-2); }
.film__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 300ms ease, transform 600ms var(--ease-out); }
.film__title { display: block; margin-top: 16px; font-family: var(--f-mincho); font-size: 15px; letter-spacing: 0.12em; line-height: 1.6; }
.film__meta { display: block; font-family: var(--f-latin); font-size: 13px; color: var(--night-ink-2); letter-spacing: 0.08em; }
.film button:active .film__thumb { transform: scale(0.98); transition: transform 160ms var(--ease-out); }
.films__foot { margin: 72px 0 0; }

/* 三十秒の短編（AZ8 クリエイタープログラム） */
.shorts { margin-top: clamp(120px, 14vw, 176px); padding-top: clamp(56px, 7vw, 80px); border-top: 1px solid var(--night-line); }
.shorts__head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 72px); }
.shorts__head .label { color: var(--night-ink-2); }
.shorts__title { margin: 12px 0 0; font-family: var(--f-mincho); font-weight: 500; font-size: clamp(24px, 3vw, 32px); letter-spacing: 0.16em; line-height: 1.5; }
.shorts__lead { margin: 20px 0 0; color: var(--night-ink-2); font-size: 14px; }
.shorts__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.short button { display: block; width: 100%; text-align: left; }
.short__thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--night-2); }
.short__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 300ms ease, transform 600ms var(--ease-out); }
.short__title { display: block; margin-top: 16px; font-family: var(--f-mincho); font-size: 16px; letter-spacing: 0.12em; line-height: 1.6; }
.short__title small, .feature__title small { font-size: 0.5em; color: var(--night-ink-2); margin-left: 0.8em; letter-spacing: 0.2em; }
.short__meta { display: block; font-family: var(--f-latin); font-size: 13px; color: var(--night-ink-2); letter-spacing: 0.08em; }
.short__desc { display: block; margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--night-ink-2); }
.play--sm { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.play--sm svg { width: 18px; }
.short button:active .short__thumb { transform: scale(0.98); transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .short button:hover .short__thumb img { opacity: 1; transform: scale(1.03); }
  .short button:hover .play { background: var(--shu); border-color: var(--shu); }
}
@media (max-width: 900px) { .shorts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; } }
@media (max-width: 520px) { .shorts__grid { grid-template-columns: 1fr; } }

@media (hover: hover) and (pointer: fine) {
  .feature__player:hover img { transform: scale(1.02); }
  .feature__player:hover .play { background: var(--shu); border-color: var(--shu); }
  .film button:hover .film__thumb img { opacity: 1; transform: scale(1.03); }
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
}

/* =========================================================
   ILLUSTRATION
   ========================================================= */
.gallery {
  list-style: none; margin: 0; padding: 0;
  columns: 4 220px; column-gap: clamp(16px, 2.4vw, 32px);
}
.gallery .art { break-inside: avoid; margin-bottom: clamp(16px, 2.4vw, 32px); }
.gallery .art[hidden] { display: none; }
.art__btn { display: block; width: 100%; position: relative; overflow: hidden; background: var(--paper-2); }
.art__btn img, .art__btn video { width: 100%; transition: transform 600ms var(--ease-out); }
.art__btn:active { transform: scale(0.99); transition: transform 160ms var(--ease-out); }
.art__cap { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
@media (hover: hover) and (pointer: fine) { .art__btn:hover img, .art__btn:hover video { transform: scale(1.025); } }
.gallery__more { margin: 56px 0 0; text-align: center; }

/* =========================================================
   MUSIC
   ========================================================= */
.music { border-top: 1px solid var(--line); }
.music__wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.music .sec-head { position: sticky; top: 120px; }
.music__count { margin: 40px 0 0; font-family: var(--f-latin); font-size: 64px; line-height: 1; letter-spacing: 0; }
.music__count small { font-family: var(--f-mincho); font-size: 14px; margin-left: 8px; color: var(--ink-3); }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track[hidden] { display: none; }
.track a {
  display: grid; grid-template-columns: 2.5em 48px 1fr auto; gap: 20px; align-items: center;
  padding: 14px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color 200ms ease;
}
.track__no { font-family: var(--f-latin); font-size: 14px; color: var(--ink-3); }
.track__cover { width: 48px; height: 48px; object-fit: cover; background: var(--paper-2); }
.track__title { font-family: var(--f-mincho); font-size: 15px; letter-spacing: 0.1em; line-height: 1.6; }
.track__title i { font-family: var(--f-latin); font-style: italic; color: var(--ink-3); margin-left: 8px; letter-spacing: 0.02em; }
.track__mark { font-size: 11px; color: var(--shu); letter-spacing: 0.1em; margin-left: 10px; vertical-align: 2px; }
.track__play { font-size: 12px; color: var(--ink-3); }
.track a.is-playing .track__play { color: var(--shu); }
.track a.is-playing .track__title { color: var(--shu); }
.track a:active { background: var(--paper-2); }
@media (hover: hover) and (pointer: fine) { .track a:hover { background: var(--paper-2); } }
.tracks__more { margin: 40px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .music__wrap { grid-template-columns: 1fr; }
  .music .sec-head { position: static; }
  .music__count { display: none; }
  .track a { grid-template-columns: 40px 1fr auto; gap: 14px; }
  .track__no { display: none; }
}

/* =========================================================
   WITH（できること）
   ========================================================= */
.with { background: var(--paper-2); }
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.offer__visual { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.offer__visual img { width: 100%; height: 100%; object-fit: cover; }
.offer__no { margin: 28px 0 0; font-family: var(--f-mincho); color: var(--shu); font-size: 15px; }
.offer__title { margin: 4px 0 0; font-family: var(--f-mincho); font-weight: 500; font-size: 22px; letter-spacing: 0.14em; }
.offer__list { list-style: none; margin: 20px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.offer__list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.offer__ref { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }

.tone {
  margin: clamp(80px, 10vw, 128px) auto 0; max-width: 720px; text-align: center;
}
.tone__head { margin: 0; font-family: var(--f-mincho); font-size: 18px; letter-spacing: 0.2em; }
.tone__list { list-style: none; margin: 24px 0 0; padding: 0; font-family: var(--f-mincho); font-size: 16px; line-height: 2.4; letter-spacing: 0.1em; }
.tone__note { margin: 40px 0 0; font-size: 13px; color: var(--ink-3); text-align: left; }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; gap: 64px; } }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.about__visual { margin: 0; }
.about__visual img { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; background: #fff; }
.about__text .sec-head { margin-bottom: 40px; }
.about__body p { margin: 0 0 1.2em; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 2em 4em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.steps__no { font-family: var(--f-mincho); color: var(--shu); }
.steps b { font-family: var(--f-mincho); font-weight: 500; color: var(--ink); letter-spacing: 0.14em; }
.profile { display: flex; align-items: center; gap: 20px; margin-top: 48px; }
.profile__avatar { width: 56px; height: 56px; border-radius: 50%; }
.profile__name { margin: 0; font-family: var(--f-latin); font-size: 20px; line-height: 1.4; }
.profile__links { margin: 0; display: flex; gap: 20px; font-size: 13px; }
.profile__links a { color: var(--ink-3); text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .profile__links a:hover { color: var(--shu); } }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual img { max-width: 280px; margin: 0 auto; }
  .steps li { grid-template-columns: 2em 1fr; }
  .steps li b { grid-column: 2; }
  .steps li { row-gap: 0; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 128px); }
.contact__body { margin: 0; }
.contact__alt { margin: 24px 0 0; font-size: 13px; color: var(--ink-3); }
.form { display: grid; gap: 28px; }
.field { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.field label, .field legend { font-size: 13px; letter-spacing: 0.08em; padding: 0; }
.field legend { margin-bottom: 10px; }
.req, .opt { font-size: 11px; margin-left: 6px; color: var(--shu); }
.opt { color: var(--ink-3); }
/* 入力欄：紙より一段明るい「欄」を敷き、枠で囲む。入力中は墨の枠と淡い影で、いまどこに書いているかを示す */
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; /* iOS のズーム防止 */
  color: var(--ink); background-color: var(--field);
  border: 1px solid var(--field-line); border-radius: 2px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  -webkit-appearance: none; appearance: none;
}
.field select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236f6962'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 3px rgba(29, 27, 25, 0.08); }
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
}
.field ::placeholder { color: var(--ink-3); opacity: 0.7; }
.field .is-invalid { border-color: var(--shu); }
.field--half { grid-template-columns: 1fr 1fr; gap: 24px; }
.field--half > div { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 18px; border: 1px solid var(--field-line); background: var(--field); font-size: 13px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--shu); outline-offset: 2px; }
.chips.is-invalid span { border-color: var(--shu); }
@media (hover: hover) and (pointer: fine) { .chips label:hover span { border-color: var(--ink-2); } }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; margin-top: 8px; }
.form__status { margin: 0; font-size: 13px; min-height: 1.5em; }
.form__status.is-ok { color: var(--ink); }
.form__status.is-err { color: var(--shu); }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .field--half { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 64px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.footer__name { margin: 0; font-family: var(--f-latin); font-size: 20px; color: var(--ink); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; }
.footer__copy { margin: 0; }
body.has-player .footer { padding-bottom: 180px; }

/* =========================================================
   PLAYER
   ========================================================= */
.player {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: min(380px, calc(100vw - 32px));
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(29, 27, 25, 0.12);
}
.player:not([hidden]) { animation: rise 240ms var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; font-size: 12px; }
.player__now { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__title { color: var(--ink); font-weight: 500; font-family: var(--f-mincho); margin-left: 6px; }
.player__ctrl { display: flex; }
.player__btn { width: 36px; height: 36px; font-size: 18px; color: var(--ink-2); transition: color 200ms ease, transform 160ms var(--ease-out); }
.player__btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .player__btn:hover { color: var(--shu); } }
.player__frame iframe { display: block; width: 100%; height: 120px; border: 0; }

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(18, 17, 19, 0.94);
  padding: 64px var(--gutter);
}
.modal:not([hidden]) { animation: fade 240ms ease; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal__frame { width: min(1100px, 100%); }
.modal__frame iframe, .modal__video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.modal__img { margin: 0; text-align: center; color: var(--night-ink-2); font-size: 13px; }
.modal__img img, .modal__img video { max-height: calc(100svh - 180px); width: auto; margin: 0 auto 16px; animation: modal-in 280ms var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.98); } }
.modal__close, .modal__nav {
  position: absolute; width: 48px; height: 48px; color: var(--night-ink); font-size: 26px;
  transition: opacity 200ms ease, transform 160ms var(--ease-out); opacity: 0.7;
}
.modal__close:active, .modal__nav:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .modal__close:hover, .modal__nav:hover { opacity: 1; } }
.modal__close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.modal__nav { top: 50%; margin-top: -24px; display: none; }
.modal__nav--prev { left: 8px; }
.modal__nav--next { right: 8px; }
.modal.is-image .modal__nav { display: block; }
.modal__count { position: absolute; top: 20px; left: 24px; margin: 0; font-family: var(--f-latin); color: var(--night-ink-2); font-size: 14px; }

/* =========================================================
   REVEAL — 一度だけ、短く、小さく
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .js .hero__text, .js .hero__img { animation: fade-only 400ms ease forwards; transform: none; }
  .js .hero__img--b { transform: translateY(-8%); }
  @keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }
  .art__btn img, .art__btn video, .film__thumb img, .feature__player img { transition: none; }
}

/* =========================================================
   さりげない動き
   ========================================================= */

/* 大きな透かし文字（映・絵・歌・縁） */
.films, .section { position: relative; overflow: clip; } /* hidden だと sticky が効かなくなる */
.films > .wrap, .section > .wrap { position: relative; }
.watermark {
  position: absolute; top: 8%; right: calc(var(--gutter) * -0.5);
  font-family: var(--f-mincho); font-weight: 400;
  font-size: clamp(260px, 38vw, 560px); line-height: 1;
  color: var(--ink); opacity: 0.035;
  pointer-events: none; user-select: none;
  will-change: transform;
}
.films .watermark { color: var(--night-ink); opacity: 0.04; }
.music .watermark { left: calc(var(--gutter) * -0.5); right: auto; top: 30%; }

/* 絵：傾きに合わせて、紙に光がすべる */
.art__btn { transform-style: preserve-3d; will-change: transform; }
.art__btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0; transition: opacity 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .art__btn:hover::after { opacity: 1; }
  .art__btn:hover img, .art__btn:hover video { transform: none; } /* 傾きと拡大は重ねない */
}

/* 今夜の一曲 */
.pick { margin-bottom: 32px; }
.pick__btn {
  display: flex; align-items: baseline; gap: 16px; width: 100%; text-align: left;
  padding: 18px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.pick__btn:active { transform: scale(0.99); }
.pick__label { font-size: 12px; color: var(--shu); letter-spacing: 0.14em; white-space: nowrap; }
.pick__title { display: inline-block; font-family: var(--f-mincho); font-size: 18px; letter-spacing: 0.12em; }
.pick__title.is-flip { animation: flip 220ms var(--ease-out); }
@keyframes flip { from { opacity: 0; transform: translateY(-0.4em); filter: blur(2px); } }
@media (hover: hover) and (pointer: fine) { .pick__btn:hover { background: var(--paper-2); } }

/* プレイヤー：ジャケットがレコードのようにゆっくり回る */
.player__bar { padding-left: 8px; }
.player__disc { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; position: relative; }
.player__disc img { width: 100%; height: 100%; object-fit: cover; animation: spin 14s linear infinite; }
.player__disc::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--paper); }
@keyframes spin { to { rotate: 360deg; } }
.player__now { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .player__disc img { animation: none; }
  .pick__title.is-flip { animation: none; }
}

/* =========================================================
   花札「ご縁、承りました」— 送信できた時だけ、一度
   ========================================================= */
.fuda { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(243, 240, 234, 0.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); cursor: pointer; }
.fuda[hidden] { display: none; }
.fuda__stage { position: relative; display: grid; justify-items: center; }
/* 花札の比率（およそ 3:5）。墨の縁取りの内側に生成りの面 */
.fuda__card {
  position: relative; width: clamp(168px, 20vw, 232px); aspect-ratio: 3 / 5;
  background: var(--ink); border-radius: 8px; padding: 9px;
  box-shadow: 0 18px 40px rgba(29, 27, 25, 0.18);
  will-change: transform;
}
.fuda__card::before {
  content: ""; position: absolute; inset: 9px; border-radius: 3px;
  background: #f7f2e8;
  box-shadow: inset 0 0 0 1px rgba(162, 52, 40, 0.5), inset 0 0 0 5px #f7f2e8, inset 0 0 0 6px rgba(162, 52, 40, 0.25);
}
.fuda__text {
  position: absolute; inset: 9px; margin: 0;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl;
  font-family: "Yuji Boku", var(--f-mincho); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.35; letter-spacing: 0.08em;
  color: var(--ink);
}
.fuda__seal {
  position: absolute; left: 20px; bottom: 22px;
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--shu); color: #f7f2e8; border-radius: 3px;
  font-family: var(--f-mincho); font-size: 20px; line-height: 1;
  transform: rotate(-4deg);
}
.fuda__shadow { width: 70%; height: 14px; margin-top: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(29, 27, 25, 0.22), transparent); }

/* =========================================================
   上へ — 縦書きの「上へ」と、読み進めた分だけ伸びる朱の糸
   ========================================================= */
#top:focus { outline: none; }
.totop {
  position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 44px; padding: 10px 8px; color: var(--ink-2);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 240ms ease, transform 240ms var(--ease-out), bottom 300ms var(--ease-out), color 200ms ease;
}
.totop.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.totop.is-dark { color: var(--night-ink-2); }
.totop__label { writing-mode: vertical-rl; font-family: var(--f-mincho); font-size: 12px; letter-spacing: 0.3em; line-height: 1; }
/* 薄い地の線の上を、朱の糸が上から伸びる */
.totop__line { position: relative; width: 1px; height: 64px; transition: height 300ms var(--ease-out); }
.totop__line::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0.3; }
.totop__line i { position: absolute; inset: 0; background: var(--shu); transform-origin: 50% 0; transform: scaleY(0); }
.totop:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .totop:hover { color: var(--shu); }
  .totop:hover .totop__line { height: 76px; } /* 糸をたぐるように、少し伸びる */
}
.totop:focus-visible { outline: 2px solid var(--shu); outline-offset: 2px; }
/* プレイヤーが出ている時は、その上に避ける */
body.has-player .totop { bottom: calc(190px + env(safe-area-inset-bottom)); }
@media (max-width: 639px) { .totop__line { height: 48px; } }
@media (prefers-reduced-motion: reduce) { .totop { transition: opacity 200ms ease; transform: none; } }

/* =========================================================
   押せるところは、乗せたら必ず変わる（PC のみ）
   ことば：文字は朱へ、下に朱の糸。暗転の帯の上では明るい朱
   ========================================================= */
:root { --shu-light: #e08a78; } /* 暗い地の上の朱（4.5:1 以上） */

/* メニュー：朱の糸が左から引かれ、離すと右へ抜ける */
.nav__links a:not(.nav__cta) { position: relative; padding: 6px 0; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--shu); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 260ms var(--ease-out);
}
.nav.is-dark:not(.is-open) .nav__links a:not(.nav__cta)::after { background: var(--shu-light); }

/* ご相談・送る：入った位置から朱がにじんで広がる（ご相談は文字が生成りに抜ける） */
.nav__cta, .btn { position: relative; overflow: hidden; isolation: isolate; }
.nav__cta { transition: color 240ms ease 80ms, border-color 240ms ease; }
.nav__cta::before, .btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--x, 50%); top: var(--y, 50%); width: 260%; aspect-ratio: 1;
  /* 水彩のにじみ：中は少し淡く、縁に顔料がたまる。形は真円にしない */
  background: radial-gradient(closest-side, rgba(162, 52, 40, 0.86) 0%, rgba(162, 52, 40, 0.92) 62%, var(--shu) 78%, rgba(162, 52, 40, 0.55) 92%, rgba(162, 52, 40, 0) 100%);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(3px);
  transform: translate(-50%, -50%) scale(0) rotate(-20deg);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: 0 50%; }
  .nav__cta:hover, .nav__cta:focus-visible { color: #f7f2e8; border-color: var(--shu); }
  .btn:not(:disabled):hover::before, .btn:focus-visible::before,
  .nav__cta:hover::before, .nav__cta:focus-visible::before { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 120ms ease; }

  /* ロゴ：印が朱に */
  .nav__logo .nav__mark { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
  .nav__logo:hover .nav__mark { background: var(--shu); border-color: var(--shu); color: #f7f2e8; }

  /* 文字のリンク：朱になり、下線も朱の糸に */
  .text-link:hover { color: var(--shu); background-size: 100% 1px; }
  .text-link--dark:hover { color: var(--shu-light); }
  .inline-link:hover { color: var(--shu); }
  .hero__latest-link:hover { color: var(--shu); }
  .contact__alt a, .footer__links a, .modal__img a { transition: color 200ms ease, text-decoration-color 200ms ease; text-decoration-color: transparent; text-underline-offset: 4px; }
  .contact__alt a:hover, .footer__links a:hover { color: var(--shu); text-decoration: underline; text-decoration-color: var(--shu); }
  .modal__img a:hover { color: var(--shu-light); text-decoration: underline; }

  /* 作品：題名も朱に */
  .film button:hover .film__title, .short button:hover .short__title { color: var(--shu-light); }
  .film__title, .short__title { transition: color 200ms ease; }
  .track a:hover .track__title, .track a:hover .track__play { color: var(--shu); }
  .track__title, .track__play { transition: color 200ms ease; }
  .art__btn { cursor: zoom-in; }
}
.contact__alt a { color: inherit; }
