/* ============================================
   材木町お囃子会 — style v4

   考え方：白地に墨の文字。半纏の黄色は「出口（見学の案内）」だけに
   面で使う。夜の写真は墨の面に載せる。
   縦書きは冒頭の題字だけ。見出しはアンチック体、本文は角ゴシック。
   ============================================ */

:root {
  --sumi: #14110d;      /* 墨：文字と夜の面 */
  --sumi-2: #211c15;
  --shiro: #ffffff;     /* 提灯の白 */
  --ki: #f0d43a;        /* 半纏の黄 */
  --shu: #c8321b;       /* 山車の柱の朱：小さな印だけ */
  --nezu: #665f55;      /* 白地の上の補助文字 */
  --usu: #b5ad9f;       /* 墨地の上の補助文字 */
  --line: rgba(20, 17, 13, .14);
  --line-d: rgba(255, 255, 255, .16);

  --display: "Zen Antique", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --text: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--sumi);
  background: var(--shiro);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-locked, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sec { position: relative; padding-block: clamp(88px, 12vw, 168px); scroll-margin-top: 40px; }
.dark { background: var(--sumi); color: #f4f0e7; }

/* ---------- 見出しまわり ---------- */
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 46em; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em;
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--shu); flex: none; }
.sec-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 5.4vw, 76px); line-height: 1.24;
  letter-spacing: .02em; text-wrap: balance;
  font-feature-settings: "palt";
}
.sec-lead {
  margin-top: 22px; max-width: 34em;
  font-size: clamp(15px, 1.25vw, 18px); line-height: 2;
  color: var(--nezu);
}
.dark .sec-lead { color: var(--usu); }

/* ---------- 現れ方（JSが動くときだけ隠す） ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .1s; }
.js .rv.d2 { transition-delay: .2s; }
.js .rv.d3 { transition-delay: .3s; }

.ph { overflow: hidden; border-radius: 4px; background: #e9e6de; }
.dark .ph { background: var(--sumi-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* 写真は、枠の中の画像だけを上から開く。
   枠そのものを切り抜くと「画面に入った」ことをブラウザが検知できず、写真が出てこなくなるため */
.js .rv-img img {
  clip-path: inset(0 0 100% 0); transform: scale(1.16);
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), transform 1.7s var(--ease);
}
.js .rv-img.in img { clip-path: inset(0 0 0 0); transform: none; }
.js .rv-img.d1 img { transition-delay: .12s; }
.js .rv-img.d2 img { transition-delay: .24s; }
.js .rv-img.d3 img { transition-delay: .36s; }

a.zoom { cursor: zoom-in; }
figcaption, .note { font-size: 14px; line-height: 1.8; color: var(--nezu); }
.dark figcaption, .dark .note { color: var(--usu); }

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px var(--pad);
  color: #fff;
  transition: transform .45s var(--ease), background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.is-solid { background: rgba(255, 255, 255, .96); color: var(--sumi); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-102%); }
body.menu-open .site-header { background: transparent; color: #fff; box-shadow: none; transform: none; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {              /* 「材壱」の提灯をかたどった印 */
  width: 26px; height: 36px; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--sumi);
  border-block: 4px solid var(--shu);
  border-radius: 12px / 14px;
  box-shadow: 0 0 0 1px var(--line);
  font-family: var(--display); font-size: 15px; line-height: 1;
}
.brand-name { font-family: var(--display); font-size: 19px; letter-spacing: .08em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.nav a { position: relative; padding: 10px 0; text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta { background: var(--ki); color: var(--sumi); padding: 10px 18px; border-radius: 3px; }
.nav .nav-cta::after { display: none; }

/* 会員ページへの入口。主役にならないよう、小さく・淡く・区切り線のあとに置く */
.nav .nav-member {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 2px; padding: 10px 0 10px clamp(14px, 1.8vw, 22px);
  font-size: 12px; font-weight: 500; letter-spacing: .1em;
  opacity: .62; transition: opacity .25s ease;
  background: linear-gradient(currentColor, currentColor) left center / 1px 14px no-repeat;
}
.nav .nav-member::after { display: none; }
.nav .nav-member svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav .nav-member:hover, .nav .nav-member:focus-visible { opacity: 1; }

.menu-btn {
  display: none; position: relative; z-index: 60;
  width: 48px; height: 48px; margin-right: -12px;
  background: transparent; border: 0; color: inherit; cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 28px; }
.menu-btn.open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad) 48px;
  background: var(--sumi); color: #f4f0e7;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-family: var(--display); font-size: clamp(30px, 9vw, 44px); line-height: 1.3;
  text-decoration: none; border-bottom: 1px solid var(--line-d);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .2s; }
.mobile-menu a.m-member {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: 22px; padding: 10px 0; border-bottom: 0;
  font-family: inherit; font-size: 14px; letter-spacing: .1em; line-height: 1.4;
}
.mobile-menu a.m-member svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu.open a.m-member { opacity: .6; transition-delay: .3s; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ============================================
   冒頭：写真いっぱい＋縦書きの題字
   スクロールすると写真が一枚の「額」に縮んでいく
   ============================================ */
.hero {
  position: relative; isolation: isolate;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--shiro); color: #fff;
}
.hero-frame {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: var(--sumi);
  transform: scale(calc(1 - var(--p, 0) * .09));
  border-radius: calc(var(--p, 0) * 40px);
  will-change: transform;
}
.hero-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 32%;
  animation: heroImg 1.9s var(--ease) both;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 13, .42) 0%, rgba(20, 17, 13, 0) 26%, rgba(20, 17, 13, 0) 50%, rgba(20, 17, 13, .82) 100%),
    linear-gradient(270deg, rgba(20, 17, 13, .5) 0%, rgba(20, 17, 13, 0) 42%);
}
.hero-ui {
  position: absolute; inset: 0;
  opacity: calc(1 - var(--p, 0) * 1.9);
  transform: translateY(calc(var(--p, 0) * -48px));
}
.hero-title {
  position: absolute; top: calc(64px + 5vh); top: calc(64px + 5svh); right: var(--pad);
  writing-mode: vertical-rl;
  font-family: var(--display); font-weight: 400;
  font-size: min(13vh, 19vw); font-size: min(13svh, 19vw);
  line-height: 1.12; letter-spacing: .06em;
  text-shadow: 0 2px 32px rgba(0, 0, 0, .35);
}
.hero-title .col { display: block; overflow: hidden; }
.hero-title .col + .col { margin-top: 1.1em; }
.hero-title .col > span { display: inline-block; animation: rise 1.1s var(--ease) .25s both; }
.hero-title .col + .col > span { animation-delay: .42s; }

.hero-foot {
  position: absolute; left: var(--pad); bottom: clamp(28px, 6vh, 64px);
  max-width: min(31em, calc(100% - var(--pad) * 2));
  animation: fadeUp 1s var(--ease) .9s both;
}
.hero-lead { font-size: clamp(15px, 1.45vw, 19px); font-weight: 500; line-height: 2; }
.hero-next {
  display: inline-flex; align-items: baseline; gap: 12px;
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .45);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-decoration: none;
}
.hero-next strong { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .06em; }
.hero-next .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ki); align-self: center; }
.hero-next .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ki);
  animation: ping 2.4s ease-out infinite;
}

@keyframes heroImg { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(104%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }

/* ============================================
   音の帯：スクロールした分だけ、ゆっくり横に流れる
   白地に細い線と淡い文字で、写真と本文のあいだの「間」として置く
   ============================================ */
.oto {
  overflow: hidden; padding-block: clamp(16px, 2vw, 24px);
  background: var(--shiro); color: #bdb6a8;
  border-bottom: 1px solid var(--line);
}
.oto-track {
  display: inline-block; white-space: nowrap;
  font-family: var(--display); font-size: clamp(15px, 1.5vw, 20px); line-height: 1.6; letter-spacing: .5em;
  transform: translate3d(calc(var(--p, .3) * -12%), 0, 0);
  will-change: transform;
}

/* ============================================
   はじめに：大きめの文字で、静かに置く
   ============================================ */
.intro-grid { display: grid; gap: clamp(48px, 7vw, 104px); }
.say {
  max-width: 24em;
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 32px); line-height: 1.9; letter-spacing: .03em;
  font-feature-settings: "palt";
}
.intro-photo { width: min(100%, 980px); margin-left: auto; }
.intro-photo .ph { aspect-ratio: 16 / 10; }
.intro-photo figcaption { margin-top: 12px; }

/* ============================================
   囃子：左に固定した写真が、右の文章に合わせて替わる
   ============================================ */
.yaku {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.yaku-stage {
  position: sticky; top: 12vh; height: 76vh;
  border-radius: 6px; overflow: hidden; background: var(--sumi-2);
}
.yaku-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .7s ease, transform 1.4s var(--ease);
}
.yaku-stage img.is-on { opacity: 1; transform: none; }
.yaku-item {
  min-height: 76vh; padding-block: 4vh;
  display: flex; flex-direction: column; justify-content: center;
  transition: opacity .5s ease;
}
.yaku-live .yaku-item { opacity: .3; }
.yaku-live .yaku-item.is-on { opacity: 1; }
.yaku-inline { display: none; }
.yaku-name {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .16em;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 9.5vw, 150px); line-height: 1.05;
}
.yaku-name .yomi { font-family: var(--text); font-size: 15px; font-weight: 700; letter-spacing: .3em; color: var(--usu); }
.yaku-kind { margin-top: 18px; font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--ki); }
.yaku-desc { margin-top: 10px; max-width: 26em; font-size: clamp(15px, 1.2vw, 17px); line-height: 2; color: #d8d1c3; }

@media (max-width: 899px) {
  .yaku { grid-template-columns: minmax(0, 1fr); }
  .yaku-stage { display: none; }
  .yaku-item, .yaku-live .yaku-item { min-height: 0; padding-block: 0 56px; opacity: 1; }
  .yaku-item:last-child { padding-bottom: 0; }
  .yaku-inline { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin-bottom: 22px; }
}

/* ============================================
   一年の出番
   ============================================ */
.deban {
  display: grid;
  grid-template-columns: minmax(130px, .46fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 64px); align-items: start;
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.deban:last-child { border-bottom: 1px solid var(--line); }
.deban-tsuki { display: flex; align-items: baseline; gap: .06em; font-family: var(--display); line-height: .9; }
.deban-tsuki .num { font-size: clamp(72px, 10vw, 148px); }
.deban-tsuki .unit { font-size: clamp(22px, 2.4vw, 34px); }
.deban-name {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.4;
}
.next-tag {
  font-family: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .1em; line-height: 1.6;
  color: #fff; background: var(--shu); padding: 2px 10px; border-radius: 2px;
}
.deban-desc { margin-top: 14px; max-width: 30em; color: #3a352d; }
.deban-when { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--nezu); }
.deban-photos { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.deban-photos.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deban-photos .ph { display: block; aspect-ratio: 3 / 2; }

@media (max-width: 899px) {
  .deban { grid-template-columns: auto minmax(0, 1fr); }
  .deban-photos { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .deban { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ============================================
   帯写真：ゆっくりずれる
   ============================================ */
.band { position: relative; height: clamp(360px, 82vh, 860px); overflow: hidden; background: var(--sumi); color: #fff; }
.band img {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%; max-width: none;
  object-fit: cover; object-position: 50% 30%;
  transform: translate3d(0, calc((var(--p, .5) - .5) * -14%), 0);
  will-change: transform;
}
.band::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(180deg, rgba(20, 17, 13, 0), rgba(20, 17, 13, .7)); }
.band-cap {
  position: absolute; z-index: 1; left: var(--pad); bottom: clamp(20px, 4vw, 44px);
  font-family: var(--display); font-size: clamp(18px, 2.2vw, 28px); letter-spacing: .06em;
}

/* ============================================
   山車
   ============================================ */
.dashi-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.dashi-title { display: flex; align-items: flex-end; gap: .1em; font-family: var(--display); font-weight: 400; line-height: .95; }
.dashi-title .big { font-size: clamp(104px, 21vw, 320px); letter-spacing: -.02em; }
.dashi-title .yomi {
  writing-mode: vertical-rl; padding-bottom: 1.4em;
  font-family: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .4em; color: var(--nezu);
}
.dashi-head .sec-lead { margin-top: 0; padding-bottom: clamp(8px, 2vw, 32px); }
@media (max-width: 899px) { .dashi-head { grid-template-columns: minmax(0, 1fr); } }

/* 画面に入ると、余白のある一枚から画面いっぱいに広がる */
.dashi-lead {
  height: clamp(320px, 88vh, 920px); overflow: hidden; background: var(--sumi);
  clip-path: inset(calc((1 - var(--p, 1)) * 7%) calc((1 - var(--p, 1)) * 13%) round calc((1 - var(--p, 1)) * 32px));
}
.dashi-lead img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%;
  transform: scale(calc(1.14 - var(--p, 1) * .14));
  will-change: transform;
}

.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 64px); border-top: 2px solid var(--sumi); }
.spec > div { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.spec > div + div { padding-left: clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--line); }
.spec dt { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--nezu); }
.spec dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; margin-top: 4px; font-size: 15px; font-weight: 700; }
.spec b { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 88px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.spec dd span { flex-basis: 100%; font-size: 14px; font-weight: 400; color: var(--nezu); }
@media (max-width: 640px) {
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec > div + div { padding-left: 0; border-left: 0; }
}

.two-col {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr);
  gap: clamp(40px, 7vw, 112px); align-items: start;
  margin-top: clamp(56px, 8vw, 112px);
}
@media (max-width: 899px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.prose p { max-width: 33em; font-size: clamp(15px, 1.25vw, 18px); line-height: 2.1; }
.prose p + p { margin-top: 1.5em; }
.prose .note { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.9; }
.dark .prose .note { border-top-color: var(--line-d); }
.dashi-day .ph { aspect-ratio: 3 / 4; }
.dashi-day figcaption { margin-top: 12px; }

/* ---------- 彫刻（墨の面） ---------- */
.strip {
  margin-block: clamp(40px, 6vw, 80px);
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip-track { display: flex; gap: clamp(10px, 1.4vw, 18px); width: max-content; padding-inline: var(--pad); }
.strip-track a { flex: none; display: block; overflow: hidden; border-radius: 4px; scroll-snap-align: center; }
.strip-track img { height: clamp(220px, 46vh, 440px); width: auto; max-width: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* 広い画面では、スクロールに合わせて列が横へ送られる */
  .js .strip { overflow: hidden; }
  .js .strip-track { transform: translate3d(calc((100% - 100vw) * var(--p, 0) * -1), 0, 0); will-change: transform; }
}

.keifu { border-top: 2px solid #f4f0e7; }
.keifu > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.keifu dt { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--usu); padding-top: .3em; }
.keifu dd { font-family: var(--display); font-size: clamp(18px, 1.7vw, 23px); line-height: 1.6; }
.keifu dd small { display: block; font-family: var(--text); font-size: 13px; color: var(--usu); }
.hori .two-col { margin-top: 0; }

/* ============================================
   集合写真
   ============================================ */
.album-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.album-grid a { position: relative; display: block; grid-column: span 3; aspect-ratio: 4 / 3; }
.album-grid a.w7 { grid-column: span 7; aspect-ratio: 3 / 2; }
.album-grid a.w5 { grid-column: span 5; aspect-ratio: auto; }
.album-grid img { position: absolute; inset: 0; }
.album-grid .cap {
  position: absolute; z-index: 1; left: 10px; bottom: 10px;
  font-size: 12px; font-weight: 700; line-height: 1.6; color: #fff;
  background: rgba(20, 17, 13, .76); padding: 2px 9px; border-radius: 2px;
}
@media (max-width: 899px) {
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-grid a { grid-column: span 1; }
  .album-grid a.w7, .album-grid a.w5 { grid-column: span 2; aspect-ratio: 3 / 2; }
}

/* ============================================
   見学・入会（半纏の黄）
   ============================================ */
.join { background: var(--ki); }
.join .sec-lead { color: var(--sumi); }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .join-grid { grid-template-columns: minmax(0, 1fr); } }
.join .sec-head { margin-bottom: 0; }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px;
  padding: 14px 28px; border-radius: 3px;
  background: var(--sumi); color: #fff;
  font-weight: 700; letter-spacing: .08em; text-decoration: none;
  transition: background-color .3s ease;
}
.btn:hover { background: #000; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(6px); }
.join-mail { font-size: 14px; font-weight: 700; }
.join-mail a { text-underline-offset: 4px; }

.keiko { border-top: 2px solid var(--sumi); }
.keiko > div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(20, 17, 13, .3); }
.keiko dt { font-weight: 700; letter-spacing: .1em; }
.join-photo { margin-top: 32px; }
.join-photo .ph { aspect-ratio: 3 / 2; background: rgba(20, 17, 13, .12); }
.join-photo figcaption { margin-top: 12px; color: var(--sumi); font-weight: 700; }

/* ============================================
   体験会の申し込み（Contact Form 7 の出力クラスに合わせてある）
   ============================================ */
.apply-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.apply .sec-head { margin-bottom: 0; }
@media (min-width: 900px) { .apply .sec-head { position: sticky; top: 96px; } }
@media (max-width: 899px) { .apply-grid { grid-template-columns: minmax(0, 1fr); } }

.wpcf7-form { display: grid; gap: 28px; }
.f-row { display: grid; gap: 8px; }
.f-row label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 700; }
.req, .opt { font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.7; padding: 0 8px; border-radius: 2px; }
.req { color: #fff; background: var(--shu); }
.opt { color: var(--nezu); box-shadow: inset 0 0 0 1px #8b8478; }
.f-help { font-size: 14px; line-height: 1.7; color: var(--nezu); }
.wpcf7-form-control-wrap { display: block; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  display: block; width: 100%; min-height: 56px; padding: 14px 16px;
  font: inherit; font-size: 16px; letter-spacing: .03em; color: var(--sumi);
  background-color: #fff; border: 1.5px solid #8b8478; border-radius: 3px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7-form textarea { min-height: 148px; line-height: 1.8; resize: vertical; }
.wpcf7-form select {
  padding-right: 48px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--sumi) 50%), linear-gradient(135deg, var(--sumi) 50%, transparent 50%);
  background-position: right 23px center, right 16px center;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
  outline: none; border-color: var(--sumi); box-shadow: 0 0 0 4px var(--ki);
}
.wpcf7-form .wpcf7-not-valid { border-color: var(--shu); }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--shu); }

.f-submit { display: grid; gap: 14px; justify-items: start; margin-top: 8px; }
.wpcf7-form .wpcf7-submit {
  min-height: 60px; padding: 16px 44px; border: 0; border-radius: 3px;
  background: var(--sumi); color: #fff; cursor: pointer;
  font: inherit; font-weight: 700; letter-spacing: .12em;
  -webkit-appearance: none; appearance: none;
  transition: background-color .3s ease;
}
.wpcf7-form .wpcf7-submit:hover { background: #000; }
.wpcf7-form .wpcf7-submit:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }

.wpcf7 form .wpcf7-response-output {
  margin: 0; padding: 14px 16px;
  border: 1.5px solid var(--sumi); border-radius: 3px;
  font-size: 15px; font-weight: 700; line-height: 1.8;
}
.wpcf7 form.init .wpcf7-response-output { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--sumi); background: var(--ki); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--shu); color: var(--shu); }

/* ============================================
   フッター
   ============================================ */
.site-footer { padding-block: clamp(64px, 8vw, 112px) 36px; font-size: 14px; }
.foot-mark { font-family: var(--display); font-size: clamp(40px, 9.6vw, 148px); line-height: 1.1; letter-spacing: .04em; white-space: nowrap; }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(36px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line-d);
  color: #d8d1c3;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid li { line-height: 2.3; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ki); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; color: var(--usu); font-size: 13px;
}
.foot-bottom a { text-underline-offset: 4px; }
.foot-bottom a:hover { color: var(--ki); }

/* ============================================
   写真の拡大表示
   ============================================ */
.lb {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(12, 10, 8, .95);
  opacity: 0; transition: opacity .3s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb img {
  max-width: min(92vw, 1500px); max-height: 82vh; width: auto; height: auto; border-radius: 3px;
  transform: scale(.96); transition: transform .45s var(--ease);
}
.lb.is-open img { transform: none; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 16px; padding-inline: 64px; text-align: center; font-size: 13px; color: #d8d1c3; }
.lb button {
  position: absolute; min-width: 48px; min-height: 48px; padding: 10px 14px;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .1em;
}
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.lb.is-single .lb-prev, .lb.is-single .lb-next { display: none; }

/* ============================================
   動きを減らす設定のとき：すべて止めて、最初から全部見せる
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-frame, .hero-ui, .oto-track, .band img, .dashi-lead img { transform: none; }
  .hero-frame { border-radius: 0; }
  .hero-ui { opacity: 1; }
  .hero-frame img, .hero-title .col > span, .hero-foot, .hero-next .dot::after { animation: none; }
  .dashi-lead { clip-path: none; }
  .js .rv, .js .rv-img, .js .rv-img img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .yaku-stage img { transition: opacity .2s ease; transform: none; }
}

/* ============================================
   成り立ち：文章と、短い年表
   ============================================ */
.nari { padding-top: 0; }
.nari .two-col { margin-top: 0; }
.ayumi { margin: 0; border-top: 2px solid var(--sumi); }
.ayumi > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ayumi dt { font-family: var(--display); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; }
.ayumi dd { margin: 0; font-size: 15px; line-height: 1.9; color: #3a352d; padding-top: .15em; }

/* ============================================
   曲目（墨の面）
   ============================================ */
.sec-head .sec-lead + .sec-lead { margin-top: 1em; }
.kyoku {
  display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 80px); align-items: start;
  margin-top: clamp(72px, 10vw, 144px);
}
.kyoku-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.2; }
.kyoku-list { margin: 0; border-top: 2px solid #f4f0e7; }
.kyoku-list > div { display: grid; grid-template-columns: clamp(120px, 13vw, 170px) minmax(0, 1fr); gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line-d); }
.nb { display: inline-block; }
.kyoku-list dt { white-space: nowrap; font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; }
.kyoku-list dd { margin: 0; }
.kyoku-list dd p { margin: 0; max-width: 30em; font-size: clamp(15px, 1.2vw, 17px); line-height: 2; color: #d8d1c3; padding-top: .35em; }
.kyoku-parts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.kyoku-parts li { padding: 4px 14px; border: 1px solid var(--line-d); border-radius: 2px; font-family: var(--display); font-size: 17px; line-height: 1.7; }
.kyoku-parts .etc { border-color: transparent; padding-inline: 2px; font-family: var(--text); font-size: 14px; color: var(--usu); align-self: center; }
.kyoku-list .hikkase dt { color: var(--ki); }
@media (max-width: 899px) {
  .kyoku { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .kyoku-list > div, .ayumi > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}


/* ============================================
   WordPress に置いたときだけ使うもの
   ============================================ */
.brand-logo { height: 36px; width: auto; flex: none; }
.gate .brand-logo { height: 64px; margin: 0 auto 20px; display: block; }
.no-hero .site-header { background: rgba(255, 255, 255, .96); color: var(--sumi); box-shadow: 0 1px 0 var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.form-wait { padding: 20px 22px; border: 1px solid rgba(20, 17, 13, .3); border-radius: 4px; font-weight: 700; }
.form-admin { margin-top: 12px; font-size: 14px; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7-spinner { display: none; }

/* お知らせなど、トップページ以外のページ */
.plain { padding-block: clamp(120px, 14vw, 190px) clamp(72px, 10vw, 140px); }
.entry + .entry { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.entry-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.3; text-wrap: balance; }
.entry-title a { text-decoration: none; }
.entry-date { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--nezu); }
.entry-body { margin-top: 32px; max-width: 40em; font-size: clamp(15px, 1.25vw, 18px); line-height: 2.1; }
.entry-body > * + * { margin-top: 1.5em; }
.entry-body img { height: auto; border-radius: 4px; }
.entry-body a { text-underline-offset: 4px; }
.entry-body h2 { font-family: var(--display); font-weight: 400; font-size: 1.6em; line-height: 1.4; margin-top: 2.2em; }
.entry-body h3 { font-size: 1.15em; margin-top: 2em; }
.nav-links { display: flex; gap: 16px; margin-top: 56px; }
