:root{
  --bg: #1a2a29;
  --fg: #e6e6e0;
  --accent: #b59c36ff;
  --maxw: 1200px;
  /* デフォルト。ページごとに上書きする */
  --header-h: 88px;
  /* ハンバーガーサイズ（デフォルト） */
  --ham-box: 54px;
  --ham-w: 32px;
  --ham-h: 1.4px;
  --ham-gap: 10px;
  --cal-dot: 3.5rem;
}


* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  min-height: 100svh;   /* モバイル安定。PCはvhでもOK */
  /* scrollbar-gutter: stable; */
}
html.is-loading,
body.is-loading {
  overflow: hidden;
  height: 100%;
}
body {
  background: #b8b5b0;
  color: #ddd;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
figure {
  margin: 0;
}


@font-face {
  font-family: "Tamanegi Kaisho";
  src: url("./fonts/tamanegi-kaisho-geki/Tamanegi-Kaisho-Geki-FreeVer-7.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "tappitsu";
  src: url("./fonts/g_brushtappitsu_freeB.ttf") format("truetype");
}


/* ========== Header ========== */

header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  backdrop-filter: saturate(120%) blur(6px);
  background: rgba(18, 26, 25, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ロゴ（左上） */
.brand {
  position: relative; 
  z-index: 41;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-link{
  display: flex;
  align-items: center;

  height: 100%;
}

.logo-img{
  display: block;

  height: 62%;
  width: auto;
}

/* ハンバーガーボタン（右上） */
.hamburger{
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;

  width: var(--ham-box);
  height: var(--ham-box);

  display: grid;
  place-items: center;

  z-index: 41;
}

/* 3本線 */
.hamburger span{
  display: block;
  width: var(--ham-w);
  height: var(--ham-h);

  background: #eee;      /* ←線の色が必要 */
  position: relative;
}

.hamburger span::before,
.hamburger span::after{
  content: "";
  position: absolute;
  left: 0;

  width: var(--ham-w);
  height: var(--ham-h);

  background: #eee;
}

.hamburger span::before{ top: calc(-1 * var(--ham-gap)); }
.hamburger span::after { top: var(--ham-gap); }

/* ハンバーガー → × 変形アニメ */
.hamburger span{
  transition: background 0.3s ease;
}
.hamburger span::before,
.hamburger span::after{
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

/* メニューが開いたら .active を付与して変形 */
.hamburger.active span{
  background: transparent;
}
.hamburger.active span::before{
  top: 0;
  transform: rotate(45deg);
}
.hamburger.active span::after{
  top: 0;
  transform: rotate(-45deg);
}


/* ========== Menu (overlay) ========== */
.menu{
  position: fixed;
  inset: 0;
  z-index: 39;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding:
    calc(var(--header-h) - 45px)
    16px
    clamp(18px, 4svh, 56px);

  background: rgba(7, 10, 10, 0.88);

  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;

  /* 常時autoにしておく */
  overflow: auto;
  overscroll-behavior: contain;

  -webkit-overflow-scrolling: touch;
}

.menu.open{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.menu nav{
  width: 100%;
  max-width: 720px;

  min-height: 0;
  flex: 0 1 auto;

  margin-top: clamp(20px, 8svh, 72px);
}

.menu nav ul{
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu nav li{
  margin: clamp(12px, 2.4svh, 24px) 0;

  opacity: 0;
  transform: translateY(6px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.menu nav a{
  color: #f2f2f2;
  text-decoration: none;

  /* 高さ基準 */
  font-size: clamp(24px, 4.2svh, 35px);

  font-family: "Limelight","Noto Serif JP",sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;

  line-height: 1.08;
}

.menu nav a:hover{
  color: #f2f2f296;
}

.menu.open nav li{
  opacity: 1;
  transform: translateY(0);
}

/* stagger */
.menu.open nav li:nth-child(1){
  transition-delay: 0.05s;
}
.menu.open nav li:nth-child(2){
  transition-delay: 0.15s;
}
.menu.open nav li:nth-child(3){
  transition-delay: 0.25s;
}
.menu.open nav li:nth-child(4){
  transition-delay: 0.35s;
}
.menu.open nav li:nth-child(5){
  transition-delay: 0.45s;
}
.menu.open nav li:nth-child(6){
  transition-delay: 0.55s;
}
.menu.open nav li:nth-child(7){
  transition-delay: 0.65s;
}
.menu.open nav li:nth-child(8){
  transition-delay: 0.75s;
}

.menu .sns{
  margin-top: clamp(12px, 3svh, 28px);

  padding-bottom: 24px;

  flex-shrink: 0;
}

.menu .sns svg,
.menu .sns a svg{
  width: clamp(32px, 2.8vw, 50px);
  height: clamp(32px, 2.8vw, 50px);
}

.menu a[aria-current="page"] {
  pointer-events: none;
  cursor: default;
  opacity: 0.45;
  filter: grayscale(0.3);
  text-decoration: none;
}
/* =========================
   横長・低め画面
========================= */

@media (min-width: 600px) and (max-height: 760px){

  .menu nav{
    margin-top: 8svh;
  }

  .menu nav li{
    margin: 20px 0;
  }

  .menu nav a{
    font-size: 28px;
  }

  .menu .sns{
    margin-top: 14px;
  }
}

/* =========================
   スマホ
========================= */

@media (max-width: 599px){

  .menu nav{
    margin-top: clamp(16px, 8.5svh, 60px);
  }

  .menu nav a{
    font-size: clamp(26px, 3.5svh, 35px);
  }

  .menu nav li{
    margin: clamp(14px, 2.9svh, 28px) 0;
  }
}

/* ========== ローディング画面 ========== */
#loading-screen{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b8b5b0; /* 路地裏っぽい背景 */
  overflow: hidden;
}

.loading-logo{
  width: min(72vw, 520px);
  position: relative;
  z-index: 1;
}

.loading-logo svg{
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
}

.loading-logo svg.is-ready{
  opacity: 1;
}

.ink-cover{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1500%;
  z-index: 3;
  transform: translateY(-205%);
  pointer-events: none;
}

.ink-shape{
  fill: #ffffff; /* トップページ背景と同じ白 */
}

#loading-screen.is-ink-covering .ink-cover{
  animation:ink-cover-down 2s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes ink-cover-down{
  0%{
    transform: translateY(-25%);
  }
  100%{
    transform: translateY(0%);
  }
}

/* ========== Yumekorogashi ========== */

.page-home header{
  background: #fff;
  backdrop-filter: none;
  border-bottom: none;
  width: 100%;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition:
    opacity 1.2s ease-out,
    transform 1.2s ease-out;
}
/* ローディング終了後、ヘッダーだけ先に表示 */
.page-home.header-visible header{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* .page-home.yume-arrived header{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
} */
.header-inner{
  position: relative;
  width: min(100%, 1240px);
  height: var(--header-h);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-home .hamburger span,
.page-home .hamburger span::before,
.page-home .hamburger span::after {
  background-color: #000;
}
.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
/* デフォルト：非表示（＝全ページ） */
.hero-center-title{
  display: none;
}
/* ホームだけ表示 */
.page-home .hero-center-title{
  display: block;
}
.page-home .hero-center-title{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;          /* brand / hamburger と同階層 */
  pointer-events: none; /* クリック邪魔しない */
}
.page-home .hero-title-main{
  white-space: nowrap;
  font-family: "Londrina Shadow","Noto Serif JP",sans-serif;
  font-weight: 400;
  letter-spacing: 0.18em;

  /* ★ vwで暴走させない */
  font-size: clamp(
    28px,
    calc(var(--header-h) * 0.5),
    100px
  );

  line-height: 1;
  color: rgba(25, 25, 25, 0.88);
  text-shadow: 0 8px 28px rgba(0,0,0,0.45);

}
@media (min-width: 601px){
  .page-home{
    --header-h: 128px;   /* ←ヘッダーを背高に */
    --ham-box: 66px;     /* ←ボタン箱も大きく */
    --ham-w: 34px;
    --ham-h: 2px;
    --ham-gap: 12px;
  }
}
@media (max-width: 600px){
  .page-home{
    --header-h: 148px;   /* ←ヘッダーを背高に */
    --ham-box: 50px;     /* ←ボタン箱も大きく */
    --ham-w: 28px;
    --ham-h: 2px;
    --ham-gap: 10px;
  }
  .brand{
    display: flex;
    align-items: center;

    height: 100%;
  }

  .logo-link{
    display: flex;
    align-items: center;

    height: 100%;
  }

  .logo-img{
    display: block;

    height: 45%;
    width: auto;
  }

  .page-home .logo-img{
    height: 30%;
  }
  .page-home .hero-center-title{
    position: absolute;
    width: min(42vw, 420px);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .page-home .hero-title-main{
    font-size: clamp(
      20px,
      calc(var(--header-h) * 0.3),
      100px
    );
  }
}

.page-home main {
  flex: 1;
}

.page-home footer {
  display: none;
}

.yume-scene {
  position: relative;
  width: 100%;
  flex: 1;
  height: auto;         /* 100vhをやめる */
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: #fff;
  --yk-size: clamp(260px, 60vw, 340px);
  --unit-center-x: 50vw;
  /* 中心に到達する時間 */
  --yk-move-duration: 7s; 
  /* ★ リロードで即開始したいので delay は 0 */
  --yk-move-delay: 0s;
}

.yume-scene:not(.yume-ready) .yume-unit-mover{
  opacity: 0;
}

.yume-scene.yume-ready .yume-unit-mover{
  opacity: 1;
}
.yume-unit-mover{
  position: absolute;
  left: 0;
  bottom: 19vh;

  transform: translateX(calc(-50vw - (var(--yk-size) / 2)));

  animation: yk-move-in var(--yk-move-duration) ease-out forwards;
  animation-delay: var(--yk-move-delay);
  animation-play-state: paused;

  will-change: transform;
}

@keyframes yk-move-in {
  from {
    transform: translateX(calc(-50vw - (var(--yk-size) / 2) - 12vw));
  }
  to {
    transform: translateX(0); 
  }
}

/* 虫＋ボール全体：これを画面外→中央へ動かす */
.yume-unit {
  width: var(--yk-size);
  aspect-ratio: 1 / 1;
  animation-delay: var(--yk-move-delay);
  margin-left: 0;
  transform: translateX(calc(var(--unit-center-x) - (var(--yk-size) / 2)));
}

/* JS物理ロール時はCSSアニメを止める */
.yume-scene.physical-roll .yk-ball-wrap,
.yume-scene.physical-roll .yk-ball {
  animation: none !important;
}

/* ★ 停止状態（揺れも停止） */
.yume-scene.stop-motion .yume-unit {
  animation-play-state: paused;
}

/* ボール：ユメコロガシ全体の基準 */
.yk-ball-wrap {
  position: absolute;
  inset: 0;
}

.yk-ball {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(0rad);
  will-change: transform;
}

/* ★ 停止状態（全体） */
.yume-scene.stop-motion .yk-ball-wrap,
.yume-scene.stop-motion .yk-ball {
  animation-play-state: paused;
}

/* 虫全体（胴体＋足） */
.yk-bug {
  position: absolute;
  /* ★ ボールに対してどこに虫がいるかを決める座標 */
  bottom: -3%; /* 足がボールに触れる感じになるまで調整 */
  left: 23%; /* 右に行き過ぎ・左に行き過ぎたらここを調整 */
  width: 11%; /* 虫の全体サイズ（% = ボールに対する大きさ） */
}

/* 胴体（yk-bug の中で基準） */
.yk-body {
  position: relative;
  display: block;
  width: 100%; /* ラッパーいっぱいに胴体画像 */
  height: auto;
}

.yk-leg {
  position: absolute;
}
/* upper 全体（hip） */
.leg-upper {
  position: relative;
  width: 100%;
  height: 100%;
}
.leg-upper-img { 
  display:block; 
  width:100%; 
  height:auto; }

.leg-lower {
  position: absolute;
}
.leg-lower-img { 
  display:block; 
  width:100%; 
  height:auto; }

/* 左前足 L1 */
.yk-leg-l1 {
  top: 58%; /* yk-bug の中での位置 */
  left: -15%;
  width: 23%; /* ★ この足だけ太く・短くしたいならここ */
}
.leg-upper-l1 {
  transform-origin: 98% 23%; /* ★ ヒップの位置（% は画像内の割合） */
}
.leg-lower-l1 {
  top: 72%;
  left: -120%;
  width: 144%;
  transform-origin: 100% 0%; /* ★ ヒザの回転軸（lower 画像内での位置） */
}

/* 左中足 L2 */
.yk-leg-l2 {
  top: 27%;
  left: 8%;
  width: 13%;
}
.leg-upper-l2 {
  transform-origin: 100% 90%;
}
.leg-lower-l2 {
  top: -236%;
  left: -228%;
  width: 266%;
  transform-origin: 100% 100%;
}
/* 左後ろ足 L3 */
.yk-leg-l3 {
  top: 0%;
  left: 22%;
  width: 12%;
}
.leg-upper-l3 {
  transform-origin: 80% 78%; /* ★ ヒップの位置（% は画像内の割合） */
}
.leg-lower-l3 {
  top: -204%;
  left: 24%;
  width: 363%;
  transform-origin: 0% 100%;
}

.yk-leg-r1 {
  top: 65%;
  right: 11%;
  width: 18%;
}
.leg-upper-r1 {
  transform-origin: 15% 40%; 
}
.leg-lower-r1 {
  top: 93%;
  left: -98%;
  width: 204%;
  transform-origin: 88% 0%; /* ★ ヒザの回転軸（lower 画像内での位置） */
}

.yk-leg-r2 {
  top: 50%;
  right: -9%;
  width: 26%;
}
.leg-upper-r2 {
  transform-origin: 0% 30%; 
}
.leg-lower-r2 {
  top: -240%;
  left: 90%;
  width: 225%;
  transform-origin: 0% 100%; /* ★ ヒザの回転軸（lower 画像内での位置） */
}

.yk-leg-r3 {
  top: 22%;
  right: -17%;
  width: 23%;
}
.leg-upper-r3 {
  transform-origin: 0% 80%; 
}
.leg-lower-r3 {
  top: -330%;
  left: 84%;
  width: 145%;
  transform-origin: 0% 100%; /* ★ ヒザの回転軸（lower 画像内での位置） */
}

.leg-upper,
.leg-lower {
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  transition: transform 320ms ease-out;
}

@keyframes leg-upper-walk {
  0% {
    transform: rotate(-25deg);
  }
  100% {
    transform: rotate(25deg);
  }
}
@keyframes leg-upper-walk2 {
  0% {
    transform: rotate(-30deg);
  }
  100% {
    transform: rotate(30deg);
  }
}
@keyframes leg-lower-walk {
  0% {
    transform: rotate(30deg);
  }
  100% {
    transform: rotate(-30deg);
  }
}
@keyframes leg-lower-walk2 {
  0% {
    transform: rotate(30deg);
  }
  100% {
    transform: rotate(-30deg);
  }
}
/* 実際にアニメを適用 */
.leg-upper-l1,
.leg-upper-r1 {
  animation-name: leg-upper-walk2;
}
.leg-upper-l2,
.leg-upper-l3,
.leg-upper-r2,
.leg-upper-r3 {
  animation-name: leg-upper-walk;
}

.leg-lower-l1,
.leg-lower-r1 {
  animation-name: leg-lower-walk;
}
.leg-lower-l2,
.leg-lower-l3,
.leg-lower-r2,
.leg-lower-r3 {
  animation-name: leg-lower-walk2;
}
/* 左側の3本：フェーズA（delay なし） */
.leg-upper-l1,
.leg-lower-l1,
.leg-upper-l2,
.leg-lower-l2,
.leg-upper-l3,
.leg-lower-l3 {
  animation-delay: 0s;
}

/* 右側の3本：フェーズB（0.2秒ずらす） */
.leg-upper-r1,
.leg-lower-r1,
.leg-upper-r2,
.leg-lower-r2,
.leg-upper-r3,
.leg-lower-r3 {
  animation-delay: 0.2s; 
}

/* ===== 停止時：全脚を止めて0degへ（カクッ防止のため none は使わない） ===== */
/* 歩幅もテンポも弱める */ 
.yume-scene.legs-slow .leg-upper, .yume-scene.legs-slow .leg-lower { animation-duration: 0.5s; /* 歩く頻度を落とす */ }


/* =========================
   Yume Menu (relative to Yume size)
   - positioning : yume-unit center (by bottom + yk-size/2)
   - radius      : yk-size * ratio
   - visibility  : controlled ONLY by .yume-menu
========================= */

.yume-menu{
  /* --- place menu circle at Yume center --- */
  position: absolute;
  left: 50%;
  bottom: calc(11vh + (var(--yk-size) * 0.5));  /* ← yume-unit bottom と合わせる */
  width: 0;
  height: 0;
  --x-fix: 26px; /* +で右へ */
  transform: translate(calc(-50% + var(--x-fix)), 50%) scale(0.98);

  font-family: "Rubik Dirt", system-ui;
  font-size: 40px;
  font-weight: 400;

  /* --- show/hide --- */
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;

  /* --- layering --- */
  z-index: 30;

  /* --- radius control (tune only this) --- */
  --menu-ratio: 1.27; /* 1.05〜1.18 で調整 */
}

.yume-scene.menu-open .yume-menu{
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-50% + var(--x-fix)), 50%) scale(1);
}

/* 表示後：本来の半径・不透明へ */
.yume-scene.menu-open .yume-menu li{
  opacity: 1;
  transform:
    rotate(var(--a))
    translate(calc(var(--yk-size) * 0.5 * var(--menu-ratio)))
    rotate(calc(-1 * var(--a)))
    scale(1);
}
.yume-scene.menu-open .yume-menu.is-revealing li{
  transition-delay: var(--reveal-delay);
}

/* ===== Focused item pop-out ===== */
@media (hover: hover) and (pointer: fine){
  .yume-scene.menu-open .yume-menu li:hover{
    z-index: 2;
    font-family: "Rubik Distressed", system-ui;
    transform:
      rotate(var(--a))
      translate(calc(var(--yk-size) * 0.5 * var(--menu-ratio)))
      rotate(calc(-1 * var(--a)))
      scale(1.06);
    transition-delay: 0s !important;
  }
  .yume-scene.menu-open .yume-menu li{
    transition-delay: 0s;
  }
}

@media (hover: none) and (pointer: coarse){
  .yume-menu li.is-tapped a{
    font-family: "Rubik Distressed", system-ui;
  }
}

/* Center anchor */
.yume-menu ul{
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Items on the circle */
.yume-menu li{
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;

  transform:
    rotate(var(--a))
    translate(calc(var(--yk-size) * 0.5 * (var(--menu-ratio) + 0.13)))
    rotate(calc(-1 * var(--a)))
    scale(0.96);

  transition:
    transform .65s cubic-bezier(.2,.9,.2,1),
    opacity  .40s ease;

  will-change: transform, opacity;
  transform-origin: 0 0;

  /* ここを整理 */
  width: 0;
  height: 0;
  display: block;  /* flex をやめる */
}

.yume-menu li.is-right{
  --tx: -32%;
  --ty: -140%;
}
.yume-menu li.is-left{
  --tx: -100%;
  --ty: -140%;
}
.yume-menu li.is-top{
  --tx: -70%;
  --ty: -180%;
}

.yume-menu li.is-bottom-right{
  --tx: -60%;
  --ty: -190%;
}
.yume-menu li.is-bottom-left{
  --tx: -90%;
  --ty: -190%;
}
.yume-menu li.is-bottom{
  --tx: -60%;
  --ty: -170%;
}

.yume-menu li a{
  display: inline-block;
  white-space: nowrap;
  transform: translate(var(--tx), var(--ty));
}

/* Angles: 3 on top / 3 on bottom */
.yume-menu li:nth-child(1){ --a: 210deg; }  /* PROFILE (左上) */
.yume-menu li:nth-child(2){ --a: -90deg; }  /* MUSIC   (上) */
.yume-menu li:nth-child(3){ --a: -30deg; }  /* GALLERY (右上) */
.yume-menu li:nth-child(4){ --a:  30deg; }  /* STORE   (右下) */
.yume-menu li:nth-child(5){ --a:  90deg; }  /* T-TATTOO (下) */
.yume-menu li:nth-child(6){ --a: 150deg; }  /* NAMIKAZE (左下) */

/* ===== Reveal stagger (登場順) ===== */
.yume-menu li:nth-child(1){ --reveal-delay: .10s; } /* PROFILE */
.yume-menu li:nth-child(2){ --reveal-delay: .26s; } /* MUSIC */
.yume-menu li:nth-child(3){ --reveal-delay: .42s; } /* GALLERY */
.yume-menu li:nth-child(4){ --reveal-delay: .58s; } /* STORE */
.yume-menu li:nth-child(5){ --reveal-delay: .74s; } /* T-TATTOO */
.yume-menu li:nth-child(6){ --reveal-delay: .90s; } /* NAMIKAZE */

/* Button look */
.yume-menu a{
  display: inline-block;
  padding: .45rem .7rem;
  text-decoration: none;
  letter-spacing: .06em;
  font-size: 20px;
  border-radius: 999px;
  color: #141414;
  backdrop-filter: blur(6px);
}
@media (min-width: 680px){
  .yume-menu a{
    font-size: 22px;
    padding: .5rem .8rem; /* 文字だけ大きく見えないよう微調整 */
  }
}
.yume-menu a:focus-visible{
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 3px;
}

@media (max-width: 600px) and (orientation: portrait), (max-aspect-ratio: 3/4) {
  /* ユメコロガシの基準点を中央寄りへ */
  .yume-scene {
    --yk-size: clamp(260px, 78vw, 340px);
    --yk-move-duration: 4s;
  }
  .yume-unit-mover{
    bottom: 25svh;
  }

  .yume-unit { 
    width: var(--yk-size);
  }
  .yume-menu{
    bottom: calc(19svh + (var(--yk-size) * 0.5));
  }

  /* 円周配置を無効化して、座標配置に切り替える */
  .yume-menu li{
    transform: translate(var(--x), var(--y));
  }
    /* menu-open のときも座標配置を採用（＝円周配置を完全停止） */
  .yume-scene.menu-open .yume-menu li{
    transform: translate(var(--x), var(--y)) !important;
  }

  /* hoverポップアウトも座標ベースにする（円周用 transform を無効化） */
  @media (hover: hover) and (pointer: fine){
    .yume-scene.menu-open .yume-menu li:hover{
      transform: translate(var(--x), var(--y)) scale(1.06) !important;
    }
  }

  /*
    座標の基準は yume-menu ul の中心(0,0)
    なので、
    -X が左 / +X が右
    -Y が上 / +Y が下
  */

 /* 1: PROFILE（左上） */
  .yume-menu li:nth-child(1){
    --x: calc(var(--yk-size) * -0.25);
    --y: calc(var(--yk-size) * -0.61);
  }

  /* 2: MUSIC（上） */
  .yume-menu li:nth-child(2){
    --x: calc(var(--yk-size) *  -0.02);
    --y: calc(var(--yk-size) * -0.66);
  }

  /* 3: GALLERY（右上） */
  .yume-menu li:nth-child(3){
    --x: calc(var(--yk-size) *  0.24);
    --y: calc(var(--yk-size) * -0.61);
  }

  /* 4: STORE（右下） */
  .yume-menu li:nth-child(4){
    --x: calc(var(--yk-size) *  0.3);
    --y: calc(var(--yk-size) *  0.66);
  }

  /* 5: T-TATTOO（下中央） */
  .yume-menu li:nth-child(5){
    --x: calc(var(--yk-size) *  -0.04);
    --y: calc(var(--yk-size) *  0.78);
  }

  /* 6: NAMIKAZE（左下） */
  .yume-menu li:nth-child(6){
    --x: calc(var(--yk-size) * -0.23);
    --y: calc(var(--yk-size) *  0.66);
  }

  /* 長いのでスマホだけ少し小さく（必要なら） */
  .yume-menu li:nth-child(5) a{
    font-size: 20px;
    padding: .42rem .62rem;
    letter-spacing: .04em;
  }
}


/* ========== Profile ========== */
/* Profile ページ全体 */
body.page-profile {
  background: #000;
  color: #f5f5f5af;
  font-family: "Noto Serif Display","Noto Serif JP",sans-serif;
  font-weight: 400;
  min-height: 100vh;
}
html:has(body.page-profile){
  scrollbar-color: #ffffff3c #000000;
}
.page-profile .menu nav a{
  font-family: "Noto Serif Display","Noto Serif JP",sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;

  line-height: 1.08;
}

/* =========================
   Profile Hero
========================= */
.profile-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 通常スライダー */
.profile-hero .hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

.profile-hero .hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* PCは2枚表示 */
@media (min-width: 768px) {
  .profile-hero .hero-slider {
    grid-template-columns: 1fr 1fr;
  }
}

/* スマホはサブ非表示 */
@media (max-width: 767px) {
  .profile-hero .hero-slide-sub {
    display: none;
  }
}

/* フェード用レイヤー */
.profile-hero .hero-slide .fade-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  z-index: 1;
}

.profile-hero .hero-slide .fade-layer.is-active {
  opacity: 1;
}

/* 初回だけの特別画像 */
.profile-hero .hero-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.profile-hero .hero-intro.is-hidden {
  opacity: 0;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

#mainSlide,
#subSlide {
  position: relative;
  z-index: 1;
}

/* タイトル */
.profile-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translateY(8%);
}

.profile-hero .hero-title {
  font-family: "Noto Serif Display","Noto Serif JP",sans-serif;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(245,245,245,0.9);

  /* サイズは viewport 基準で自動調整 */
  font-size: clamp(2.2rem, 6vw, 5rem);

  /* ほんのり浮かせる */
  text-shadow:
    0 2px 12px rgba(0,0,0,0.45);

  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: heroTitleIn 1.2s ease-out 0.4s forwards;
}

@keyframes heroTitleIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ② プロフィール / 実績 */
.profile-info {
  padding: 40px 16px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.profile-title {
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.profile-text {
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.japanese-profile {
  padding-bottom: 40px;
}

.profile-page + footer,
.profile-page footer {
  background: #000;
}


/* ========== Scroll ========== */

/* ここがスクロールの親 */
/* ベース：常にスクロールコンテナ */
.page-scroll{
  height: var(--fv-h);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-padding-top: 0;
  scroll-behavior: auto;
  overscroll-behavior: contain;
}

/* 初期だけsnap */
.page-scroll.snap-on{
  scroll-snap-type: y mandatory;
}

/* snap解除 */
.page-scroll.snap-off{
  scroll-snap-type: none;
}

/* 各セクションをスナップ対象にする */
.page-section{
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#scroll-cta{
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}


/* ==========MUSIC Loading ========== */
.music-cloud-layer{
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

/* 読み込み直後にヒーローを隠す空色カバー */
.music-cloud-layer::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #223030;
  opacity: 1;
  transition: opacity .45s ease;
}
/* 雲が表示できたら、空色カバーだけ消す */
.music-cloud-layer.is-ready::before{
  opacity: 0;
}

.music-cloud-layer.is-hidden .left{
  animation:
    cloud-exit-left
    var(--cloud-duration, 2.2s)
    cubic-bezier(.72,0,.2,1)
    var(--cloud-delay, 0s)
    forwards;
  pointer-events: none;
}

.music-cloud-layer.is-hidden .right{
  animation:
    cloud-exit-right
    var(--cloud-duration, 2.4s)
    cubic-bezier(.72,0,.2,1)
    var(--cloud-delay, 0s)
    forwards;
  pointer-events: none;
}

body.page-music.is-loading .fish-unit,
body.page-music.is-loading .fish-bodywrap,
body.page-music.is-loading .fish-tail{
  animation-play-state: paused;
}
.cloud-img{
  position: absolute;
  z-index: 1;
  width: clamp(360px, 48vw, 760px);
  opacity: 1;
  filter: brightness(.82) contrast(1.08);
  pointer-events: none;
  will-change: transform, opacity;

  transition:
    opacity var(--cloud-duration, 1.8s) ease,
    transform var(--cloud-duration, 1.8s) cubic-bezier(.22, .61, .36, 1);

  transition-delay: var(--cloud-delay, 0s);
}

.cloud-a{ left: -19vw; top: -5vh; width: clamp(420px, 125vw, 2000px); --cloud-delay: 0s;   --cloud-duration: 1.9s;  --cloud-exit-x: -95vw;  --cloud-exit-y: -8vh;  --cloud-rotate: -2deg;}
.cloud-b{ right: -25vw; top: 21vh; width: clamp(420px, 130vw, 2000px); --cloud-delay: .14s;   --cloud-duration: 2.4s;  --cloud-exit-x: 105vw;  --cloud-exit-y: 6vh;  --cloud-rotate: 4deg;}
.cloud-c{ left: -23vw; top: 26vh; width: clamp(380px, 105vw, 1800px); --cloud-delay: .28s; --cloud-duration: 1.75s;  --cloud-exit-x: -88vw;  --cloud-exit-y: -1vh;  --cloud-rotate: -5deg;}
.cloud-d{ right: -20vw; top: 52vh; width:clamp(420px, 120vw, 1800px); --cloud-delay: .08s; --cloud-duration: 2.2s;  --cloud-exit-x: 98vw;  --cloud-exit-y: -1vh;  --cloud-rotate: 2deg;}
.cloud-e{ left: -5vw; top: 66vh; width: clamp(420px, 110vw, 1800px); --cloud-delay: .35s; --cloud-duration: 1.55s;  --cloud-exit-x: -105vw;  --cloud-exit-y: -2vh;  --cloud-rotate: -1deg;}

@media (max-width: 1023px){
  .cloud-a{ left: -16vw; top: -18vh; width: 140vw; }
  .cloud-b{ right: -11vw; top: 11vh; width: 140vw; }
  .cloud-c{ left: -6vw; top: 12vh; width: 145vw; }
  .cloud-d{ right: -28vw; top: 48vh; width: 140vw; }
  .cloud-e{ left: -8vw; top: 65vh; width: 130vw; }
}
@media (max-width: 900px){
  .cloud-a{ left: -46vw; top: -10vh; width: 165vw; }
  .cloud-b{ right: -61vw; top: 13vh; width: 170vw; }
  .cloud-c{ left: -51vw; top: 18vh; width: 150vw; }
  .cloud-d{ right: -36vw; top: 48vh; width: 160vw; }
  .cloud-e{ left: -7vw; top: 68vh; width: 140vw; }

  .page-profile {
    --header-h: 88px;
  }
}
@media (max-width: 767px){
  .cloud-a{ left: -60vw; top: -4vh; width: 180vw; }
  .cloud-b{ right: -29vw; top: 29vh; width: 190vw; }
  .cloud-c{ left: -22vw; top: 15vh; width: 170vw; }
  .cloud-d{ right: -35vw; top: 48vh; width: 170vw; }
  .cloud-e{ left: -18vw; top: 73vh; width: 170vw; }
}
@media (max-width: 575px){
  .cloud-a{ left: -60vw; top: 0vh; width: 180vw; }
  .cloud-b{ right: -69vw; top: 34vh; width: 240vw; }
  .cloud-c{ left: -44vw; top: 7vh; width: 190vw; }
  .cloud-d{ right: -50vw; top: 54vh; width: 210vw; }
  .cloud-e{ left: -43vw; top: 74vh; width: 200vw; }
}
@media (max-width: 428px){
  .cloud-a{ left: -61vw; top: 6vh; width: 195vw; }
  .cloud-b{ right: -74vw; top: 26vh; width: 240vw; }
  .cloud-c{ left: -66vw; top: 54vh; width: 210vw; }
  .cloud-d{ right: -50vw; top: 47vh; width: 200vw; }
  .cloud-e{ left: -37vw; top: 79vh; width: 200vw; }
}
@media (max-width: 374px){
  .cloud-a{ left: -53vw; top: 6vh; width: 195vw; }
  .cloud-b{ right: -72vw; top: 23vh; width: 245vw; }
  .cloud-c{ left: -39vw; top: 70vh; width: 210vw; }
  .cloud-d{ right: -48vw; top: 44vh; width: 220vw; }
  .cloud-e{ left: -30vw; top: 63vh; width: 200vw; }
}
@keyframes cloud-exit-left{
  to{
    transform:
      translateX(var(--cloud-exit-x, -90vw))
      translateY(var(--cloud-exit-y, -3vh))
      rotate(var(--cloud-rotate, -3deg));
    opacity: 0;
  }
}

@keyframes cloud-exit-right{
  to{
    transform:
      translateX(var(--cloud-exit-x, 90vw))
      translateY(var(--cloud-exit-y, 3vh))
      rotate(var(--cloud-rotate, 3deg));
    opacity: 0;
  }
}
/* ==========MUSIC Hero ========== */
/* heroは「1画面 - cta分」 */
body.page-music{
  --header-h: 66px;
  /* fixed header の下からページを開始させる */
  padding-top: var(--header-h);
  margin: 0;
  overflow:hidden;
  background: var(--bg);

  --ham-box: 46px;
  --ham-w: 26px;
  --ham-h: 1.2px;
  --ham-gap: 9px;

  /* header を除いた「ファーストビューで使える高さ」 */
  --fv-h: calc(100svh - var(--header-h));

  /* HEROの縦上限（5:3） */
  --hero-max-ratio: 5 / 3;

  /* 舞台幅（必要なら上限。不要なら 100vw のみでもOK） */
  --hero-art-maxw: 1200px;
  --hero-stage-w: min(100vw, var(--hero-art-maxw));

  /* HERO（アート）の最大高さ（= 横幅 × 5/3） */
  --hero-max-h: calc(var(--hero-stage-w) * var(--hero-max-ratio));

  
  /* 月（MUSICページ固有） */
  --hero-moon: #787765;
  --hero-sky:  #223030;
  
  --moon-safe-top: calc(var(--header-h) + 5px);
  --moon-r: clamp(22vmin, 34vmin, 42vmin);
  --moon-x: 45vw;
  --moon-y-offset: -6vh; /* ← ここだけ調整 */

  --moon-y: clamp(
    calc(30vh + var(--moon-y-offset)),
    calc(var(--moon-safe-top) + var(--moon-r) + var(--moon-y-offset)),
    calc(65vh + var(--moon-y-offset))
  );

  --moon-safe-r: calc(var(--moon-r) * 0.4);
  
  --fish-lane-forward: calc(var(--moon-y) - var(--moon-r) * 0.95);
  --fish-lane-reverse: calc(var(--moon-y) + var(--moon-r) * 0.15);


  --fish-width: 36vmin;
  --fish-height: 19.5vmin;

  /* フクロウ（MUSICページ固有） */
  --owl-w: clamp(220px, 56vmin, 420px);
  --owl-right: clamp(1vw, 6vw, 8vw);

  /* SCROLLは常に存在する固定高さ（好みで調整） */
  --scroll-cta-h: 92px;
  --scroll-cta-max: var(--scroll-cta-h);

  scrollbar-color: var(--hero-moon) var(--hero-sky);
}

body.page-music .menu nav a{
  font-family: "Agu Display","Noto Serif JP",sans-serif;
}

body.page-music header{
  height: var(--header-h);
}

body.page-music .hero{
  position: relative;
  height: min(var(--fv-h), var(--hero-max-h));
  display: block;
}
body.page-music .hero-art{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (max-aspect-ratio: 3/5){
  .hero-art{
    height: min(
      100%,
      calc(100vw * var(--hero-max-ratio))
    );
  }
}

/* 背景としてフルブリードにしたいレイヤーだけ100vw化 */
.hero-art .layer-sky,
.hero-art .layer-bones,
.hero-art .layer-life,
.hero-art .layer-moon{
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
}

.layer{ position:absolute; inset:0; }

.layer-sky{
  background: var(--hero-sky);
  z-index: 1;
  pointer-events: none;
}

.layer-moon{
  z-index: 2;
  pointer-events: none;
}

/* 月の円 */
.layer-moon::before{
  content:"";
  position:absolute;
  width: calc(var(--moon-r) * 2);
  height: calc(var(--moon-r) * 2);
  left: calc(var(--moon-x) - var(--moon-r));
  top:  calc(var(--moon-y) - var(--moon-r));
  background: var(--hero-moon);
  border-radius: 50%;
}

/* 月コンテンツ（文字/画像） */
.moon-content{
  position:absolute;
  width: calc(var(--moon-r) * 2);
  height: calc(var(--moon-r) * 2);
  left: calc(var(--moon-x) - var(--moon-r));
  top:  calc(var(--moon-y) - var(--moon-r));
  z-index: 3;

  border-radius: 50%;
  overflow: hidden;

  display: grid;
  place-items: center;
  pointer-events: auto;
}
.moon-content h1 {
  font-family: "Sankofa Display", sans-serif;
  font-weight: 800;
  font-style: normal;
  opacity: 0.4;
  letter-spacing: .6em;
  transform: translateX(0.3em);
}

/* 骨レイヤー（空のマスクで月だけ見せる） */
.layer-bones{
  z-index: 4;
  pointer-events: none;

  -webkit-mask-image: radial-gradient(
    circle at var(--moon-x) var(--moon-y),
    #000 0 calc(var(--moon-r) * 0.98),
    rgba(0,0,0,0.6) calc(var(--moon-r) * 0.99),
    transparent var(--moon-r)
  );
  mask-image: radial-gradient(
    circle at var(--moon-x) var(--moon-y),
    #000 0 calc(var(--moon-r) * 0.98),
    rgba(0,0,0,0.6) calc(var(--moon-r) * 0.99),
    transparent var(--moon-r)
  );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.layer-life {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.fish-unit{
  position: absolute;
  left: 0;
  top: var(--fish-lane);
  animation-duration: var(--dur, 18s);
  animation-delay: var(--delay, 0s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both; /* チラ見え防止 */
  will-change: transform;
}

.fish-unit--forward{
  --fish-lane: var(--fish-lane-forward);
  animation-name: swim-right;
  --dur: 20s;
  --delay: 0.2s;
}

.fish-unit--reverse{
  --fish-lane: var(--fish-lane-reverse);
  animation-name: swim-left;
  --dur: 20s;
  --delay: 0.2s;
}

/* 魚本体はユニット原点に置く */
.fish-move{
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fish-width);
  height: var(--fish-height);
  transform-origin: center;
  z-index: 6;
}

/* 骨はユニット内で相対配置（laneを参照しない） */
.fish-bones{
  position: absolute;
  z-index: 4;
  width: calc(var(--fish-width) * var(--bones-scale, 1.9));
  height: calc(var(--fish-height) * var(--bones-scale, 1.9));
  left: calc(var(--fish-width) * var(--bones-offset-x-mult, -1.62));
  top:  calc(var(--fish-height) * var(--bones-offset-y-mult, -0.05));
  animation: none;
}

.fish-bones img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.fish-bones--forward{
  --bones-offset-x-mult: -0.7;
  --bones-offset-y-mult: -0.1; 
  --bones-scale: 1.9;
}

.fish-bones--reverse{
  --bones-offset-x-mult: -0.2;
  --bones-offset-y-mult: -0.1; 
  --bones-scale: 1.9;
}

/* ゆっくりした“くねり” */
.fish-bodywrap {
  position: relative;
  width: 100%;
  height: 100%;
  animation: body-sway 2.5s ease-in-out infinite;
  transform-origin: center;
}

.fish-inner {
  position: relative;
}

.fish-move--reverse .fish-inner {
  transform: scaleX(-1);
  transform-origin: center;
}

.fish-bones--reverse img {
  transform: scaleX(-1);
  transform-origin: center;
}

.fish-body {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: auto;
}

.fish-tail {
  position: absolute;
  right: 98%;
  top: 1.2vmin;
  display: block;
  transform-origin: right center;
  animation: tail-wiggle 1.8s ease-in-out infinite;
  width: 48%;
  height: auto;
}

.branch_owl{
  position: absolute;
  right: var(--owl-right);
  bottom: 0;
  z-index: 6;
  width: var(--owl-w);
  min-width: 220px;
  pointer-events: none;
  transform: none;
}
.branch_owl .owl{
  width:100%;
  height:auto;
  display:block;
}

/* 高さが足りない：フクロウ優先で縮小 */
@media (max-height: 600px){
  .page-music{
    --owl-w: clamp(180px, 46vmin, 320px);
    --moon-r: clamp(20vmin, 30vmin, 38vmin);
  }
}
@media (max-height: 540px){
  .page-music{
    --moon-r: clamp(18vmin, 26vmin, 34vmin);
    --owl-w:  clamp(160px, 42vmin, 280px);
  }
}
/* 450〜715あたりの“中心寄りで邪魔”ゾーン：少し右へ＆縮小 */
@media (min-width: 320px) and (max-width: 715px){
  .page-music{
    --owl-right: clamp(2vw, 10vw, 14vw);
    --owl-w: clamp(240px, 60vmin, 360px);
  }
}

/* --- アニメーション定義 --- */
@keyframes swim-right {
  0%   { transform: translateX(calc(-1 * var(--fish-width))); } 
  40%  { transform: translateX(20vw); }
  50%  { transform: translateX(30vw); } 
  60%  { transform: translateX(40vw); }
  100% { transform: translateX(calc(100vw + var(--fish-width))); } 
}

@keyframes swim-left {
  0%   { transform: translateX(100vw); } 
  40%  { transform: translateX(50vw); }
  50%  { transform: translateX(40vw); } /* 月あたり */
  60%  { transform: translateX(20vw); }
  100% { transform: translateX(calc(-20vw - var(--fish-width))); } 
}

@keyframes body-sway {
  0% {
    transform: rotate(0deg) translateX(0);
  }
  50% {
    transform: rotate(1.2deg) translateX(-0.3vw);
  }
  100% {
    transform: rotate(0deg) translateX(0);
  }
}

@keyframes tail-wiggle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Scroll表示セクションは下に独立して置く */
/* Scroll表示の見た目（例） */
body.page-music .scroll-cta{
  position: relative;
  width: 100%;
  height: var(--scroll-cta-h);
  display: block;

  background: linear-gradient(to bottom, #223030 0%, #1a2a29 100%);
  background-repeat: no-repeat;
  background-size: cover;

  pointer-events: none;
}

@media (max-aspect-ratio: 3/5){
  .scroll-cta{
    height: clamp(
      0px,
      calc(
        var(--fv-h)
        - min(100%, calc(100vw * var(--hero-max-ratio)))
      ),
      var(--scroll-cta-max)
    );
    overflow: hidden;
  }
}


.scroll-cta:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(180deg,rgba(#787765, 0) 0, rgba(#787765, .8) 80%, rgba(#787765, .8) 100%);
}

.scroll-cta span{
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  margin: 0;

  width: auto;           /* 30px固定をやめる */
  padding: 0;            /* 110pxの底paddingをやめる */
  writing-mode: vertical-lr;

  display: inline-block;
  line-height: 1;

  color: #787765;
  font-family: "Sankofa Display", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .2em;
  z-index: 2;

  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
  transition: .2s;
  overflow: visible;
  pointer-events: auto;
}

.scroll-cta span:before {
  content: '';
  position: absolute;
  top: 100%; 
  height: 48px;
  left: 50%;
  width: 2px;
  background: #787765;
}

.scroll-cta span:after {
  content: '';
  position: absolute;
  top: 100%; 
  height: 48px;
  left: 50%;
  width: 2px;
  background: #1a2a29;
}

.scroll-cta span:hover {
  opacity: .5;
}

#scroll-cta span:after {
  animation: sdl01 3s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes sdl01 {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}


/* ========== Calendar ========== */
#calendar {
  position: relative;
  max-width: 820px;
  margin: 1.5rem auto 1rem;
  padding: 24px 12px;
}

.fc {
  background: transparent;
  border: none;
  border-radius: 18px;
  box-shadow: none;
}

/* ヘッダー（タイトル + ボタン） */
.fc-toolbar.fc-header-toolbar {
  padding: 0.75rem 0.75rem 0.25rem;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

.fc-toolbar-title {
  font-family: "Agu Display", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
  "MORF" 0;
  /* font-family: "Sankofa Display", sans-serif;
  font-style: normal; */
  /* font-family: "Major Mono Display", monospace; */
  font-size: 1.7rem;
  margin: 0 12px;
  white-space: nowrap;
}
.fc-title-year {
  font-size: 0.7em;
  opacity: 0.75;
  letter-spacing: 0.06em;
  margin-left: 0.15em;
}


/* ボタンをシンプルに */
.fc-prev-button,
.fc-next-button {
  background: none !important;
  border: none !important;
  color: #f2d666 !important; /* 例: あなたのアクセントカラー */
  font-size: 1.4rem;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: rgba(255, 255, 255, 0.2);
}

.fc .fc-button:focus {
  box-shadow: none;
}

/* マス目の線を消す */
.fc-theme-standard td,
.fc-theme-standard th {
  border: none;
}

.fc-theme-standard .fc-scrollgrid {
  border: none;
}

/* 曜日見出し */
.fc-col-header {
  background: var(--bg);
  border: none;
}

.fc-theme-standard .fc-col-header th,
.fc .fc-col-header-cell {
  background: var(--bg);
}

.fc .fc-col-header-cell-cushion {
  padding: 6px 0;
  font-family: "Agu Display", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
  "MORF" 60;
  /* font-family: "Sankofa Display", sans-serif;
  font-weight: 500;
  font-style: normal; */
  /* font-family: "Major Mono Display", monospace; */
  color: rgba(240, 240, 240, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 日付を中央に置く */
.fc-daygrid-day-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  position: relative;
}

.fc-daygrid-day.has-event {
  cursor: pointer;
}

/* 日付数字を丸くする */
.fc-day-other .fc-daygrid-day-number {
  background: rgba(245, 245, 245, 0.08);
  color: rgba(245, 245, 245, 0.55);
  box-shadow: none;
}

/* 過去日はちょっと薄くする */
.fc-day-past .fc-daygrid-day-number {
  opacity: 0.5;
}

.fc-daygrid-day {
  background: transparent;
}

/* 今日だけ特別色にしない */
.fc-day-today {
  background: transparent !important;
}

/* 今日の数字だけ色を変える */
.fc-day-today .fc-daygrid-day-number.moon span {
  color: var(--accent);
}

/* 月＋数字の入る箱 */
.fc-daygrid-day-number.moon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cal-dot);
  height: var(--cal-dot);
  border-radius: 50%;
  overflow: hidden;
  /* font-family: "Major Mono Display", monospace; */
  font-family: "Agu Display", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
  "MORF" 0;
  color: #6d583b;
  background: transparent;
  z-index: 0; /* スタックコンテキスト */
}
@media (max-width: 700px){
  :root{ --cal-dot: 2.85rem; } /* 最終防衛ライン */
  .fc-daygrid-day-frame{ padding: 4px 0; }
  body.page-music{
    --header-h: 88px;
  }
}
@media (max-width: 520px){
  :root{ --cal-dot: 2.65rem; } /* 最終防衛ライン */
  .fc-daygrid-day-frame{ padding: 4px 0; }
}
@media (max-width: 375px){
  :root{ --cal-dot: 2.35rem; } /* 2.65 → 2.35 */
  .fc-daygrid-day-frame{ padding: 6px 0; } /* 8px → 6px */
  .fc .fc-col-header-cell-cushion{ font-size: 0.7rem; } /* 任意 */
}
@media (max-width: 340px){
  :root{ --cal-dot: 2.0rem; } /* 最終防衛ライン */
  .fc-daygrid-day-frame{ padding: 4px 0; }
}


/* キャンバスは一番下 */
.moon-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 数字は一番上 */
.fc-daygrid-day-number.moon span {
  position: relative;
  z-index: 2;
}

/* イベントが入ってる日カラーリング */
.fc-daygrid-event {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.fc-daygrid-event-dot {
  display: none;
}

/* イベントが入ってる日の数字 */
.fc-daygrid-day.has-event .fc-daygrid-day-number {
  position: relative;
  color: #b59c36ff !important;
  font-weight: 800;
}

@media (max-width: 768px) {
  .fc-toolbar.fc-header-toolbar {
    flex-direction: row;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }
  /* スクロールスナップは page-scroll で継続 */
  body {
    overflow-y: auto;
  }
}
/* PC用に上書き（幅が768px以上） */
@media (min-width: 768px) {
  .mv-container {
    margin: 0.75rem auto 0px;
    padding: 0 12px;
  }
}

/* PCでホバーしたときのニュアンス（pointerのある端末だけ） */
@media (hover: hover) and (pointer: fine) {
  .fc-daygrid-day.has-event:hover .fc-daygrid-day-number {
    transform: translateY(+1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  }
}

/* ========== MV ========== */
.mv-title h2{
  font-family: "Agu Display", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
  "MORF" 0;
  font-size: 1.6rem;
  margin: 14px 12px;
}

.mv-container {
  width: 100%;
  max-width: 820px; /* カレンダーと同じ幅 */
  margin: 1rem auto 2rem;
  padding: 10px 16px; /* 900px未満のとき左右に少し余白 */
}

.mv-grid {
  display: flex;
  gap: 20px; /* 2つのMV間に少し余白 */
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
}

.mv-item {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  display: flex;
}

.mv-shell {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  background: #0e1516;
}

.mv-thumb,
.mv-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mv-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.mv-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.12); /* ここで暗さ調整 */
  pointer-events:none;
}
.mv-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9; /* サムネは常に16:9 */
  object-fit: cover;
  transition: transform 0.25s ease;
}

.mv-thumb:hover img {
  transform: scale(1.012);
}

/* まるっとした再生ボタン */
.mv-play-btn {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 30%, #fff, #f1e9d3);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: inherit;
}

.mv-play-btn::before {
  content: "";
  display: block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #333;
}

.mv-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.45);
}

.mv-play-btn:active {
  transform: translate(-50%, -50%) scale(0.97);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.mv-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.mv-item.is-playing .mv-thumb {
  opacity: 0;
  pointer-events: none;
}

.mv-item.is-playing .mv-frame {
  opacity: 1;
  pointer-events: auto;
}

.mv-frame {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* レイアウト切り替え */
@media (max-width: 768px) {
  .mv-grid {
    gap: 34px;
  }

  .mv-item {
    flex: 1 1 auto;
  }

  .mv-shell {
    max-height: 90vh;
    aspect-ratio: 16 / 9;
  }

  .mv-play-btn {
    width: 56px;
    height: 56px;
  }

  .mv-play-btn::before {
    border-width: 10px 0 10px 16px;
  }
}

/* ========== Streaming ========== */
.my-streaming {
  margin-top: 55px;
}

.my-streaming p {
  font-family: "Agu Display", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
  "MORF" 0;
  font-size: 1.6rem;
  margin: 14px 12px;
}

.my-streaming-links {
  display: inline-flex;
  gap: 24px;
}
.my-streaming-links a {
  color: rgba(221, 221, 221, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 6px;               /* ← アイコンと文字の間隔 */
  text-decoration: none;
}
.streaming-text {

  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.my-streaming-links a:hover {
  color: #fff;
}
.my-streaming-links a svg {
  display: block;     /* ベースライン余白を消す */
}
.my-streaming-links svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.my-streaming-links a:hover svg {
  stroke-width: 2.2;
}

/* ========== Modal ========== */

.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 80;
}

.event-modal.open {
  display: flex;
}

.event-modal__card {
  background: #d5d4ce;
  color: #0b0f11;
  border-radius: 16px;
  padding: 18px 20px;
  max-width: 420px;
  width: min(90vw, 420px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.event-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px;
}
.event-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #e4e4e4;
  color: #333;
  font-weight: 700;
}
.event-modal__date {
  font-size: 0.9rem;
  font-weight: 700;
}
.event-modal__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #223030;
}
.event-modal__time {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #444;
}

.event-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.event-modal__button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.event-modal__button--close {
  background: #223030;
  color: #f5f5f5;
}

.event-modal__button--link {
  background: #f2d666;
  color: #223030;
}

/* =========================
   gallery loading
========================= */

.gallery-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #faf7ef;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.gallery-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-loading__inner {
  width: min(72vw, 520px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.gallery-loading__line-wrap {
  --loading-progress: 0;

  position: relative;
  width: 100%;
  height: clamp(86px, 14vw, 130px);
}

.gallery-loading__line-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5%;
  width: 100%;
  height: 1px;
  background: rgba(24, 18, 10, 0.068);
  transform: translateY(-50%);
}
.gallery-loading__line {
  --line-start-offset: clamp(-32px, -3vw, -5px);

  position: absolute;
  left: var(--line-start-offset);
  top: 5%;
  width: calc(100% - var(--line-start-offset));
  height: 16px;
  background: #171514;

  transform: translateY(-50%) scaleX(var(--loading-progress));
  transform-origin: left center;

  /* 筆線っぽい形に切り抜く */
  clip-path: polygon(
    0% 38%,
    5% 30%,
    12% 34%,
    20% 29%,
    29% 36%,
    39% 31%,
    48% 37%,
    58% 30%,
    68% 35%,
    77% 28%,
    87% 34%,
    96% 31%,
    100% 42%,
    100% 58%,
    94% 67%,
    84% 62%,
    73% 69%,
    63% 61%,
    52% 68%,
    42% 60%,
    33% 66%,
    23% 59%,
    14% 65%,
    6% 58%,
    0% 62%
  );

  opacity: 0.96;
}

.gallery-loading__frog {
  position: absolute;
  left: calc(var(--loading-progress) * 106%);
  top: 88%;
  width: clamp(74px, 13vw, 116px);
  height: auto;
  transform: translate(-126%, -60%);
  pointer-events: none;
  user-select: none;
}

.gallery-loading__text {
  margin: 0;
  font-family: "tappitsu", "Noto Serif JP", serif;
  font-size: clamp(10px, 2.4vw, 28px);
  letter-spacing: 0.22em;
  color: rgba(23, 21, 20, 0.62);
}

/* 読み込み中はスクロール禁止 */
body.gallery-is-loading {
  overflow: hidden;
}

@media (max-width: 767px) {
  .gallery-loading__inner {
    width: min(78vw, 360px);
  }

  .gallery-loading__line-wrap {
    height: 92px;
  }

  .gallery-loading__frog {
    width: 82px;
    transform: translate(-114%, -60%);
  }
}

/* =========================
  gallery page
========================= */
.page-gallery {
  background-color: rgb(164, 142, 105);
  --header-h: 88px;
}

.page-gallery header{
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}
.page-gallery .logo-img {
  padding-top: 35%;
  padding-left: 10%;
  width: 68px;
  height: auto;
  opacity: 0.7;
}
.page-gallery .hamburger span,
.page-gallery .hamburger span::before,
.page-gallery .hamburger span::after{
  display: block;
  width: 34px;
  height: 2px;
  margin: 1px 0;
  background:
    linear-gradient(
      to right,
      rgba(43,26,18,1) 70%,
      rgba(43,26,18,.2)
    );

  /* 筆っぽい揺れ */
  border-radius: 2px;
  transform: scaleX(1);
}

.page-gallery .hamburger span:nth-child(1){
  transform: scaleX(0.9);
}
.page-gallery .hamburger span:nth-child(2){
  transform: scaleX(1.1);
}
.page-gallery .hamburger span:nth-child(3){
  transform: scaleX(0.85);
}

.page-gallery .menu{
  background: rgba(226, 212, 186, 0.955);
}
.page-gallery .menu nav a{
  color: #292929;
  font-family: "Ma Shan Zheng","Noto Serif JP",sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;

  line-height: 1.08;
}

.page-gallery .sns a{
  color: #292929;
}

/* =========================
   utility
========================= */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   section
========================= */
.tour-sheet{
  --sheet-pad-x: 20px;
  --sheet-pad-y: 24px;

  position: relative;
  min-height: 100svh;

  padding: var(--sheet-pad-y) var(--sheet-pad-x);
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-sheet__paper{
  position: relative;

  width: min(1280px, 100%);
  height: calc(100svh - var(--sheet-pad-y) * 2);
  max-height: 780px;

  min-height: 0;
  margin: 0 auto;
  overflow: hidden;

  background:
    url("../img/gallery/texture/washi_texture_01.webp") center/cover no-repeat;
}

/* =========================
   title
========================= */
.tour-sheet__title{
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(28vw, 260px);
  display: block;
  opacity: .98;
  z-index: 30;
}

/* =========================
   tiger nav
========================= */
.tour-nav{
  position: absolute;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 25;
}

.tour-nav img{
  display: block;
  width: 100%;
  height: auto;
  opacity: .9;
  transition:
    transform .25s ease,
    opacity .25s ease,
    filter .25s ease;
}

.tour-nav:hover img,
.tour-nav:focus-visible img{
  opacity: 1;
  transform: translateY(-4px) scale(1.02);
}

.tour-nav--prev{
  top: 42px;
  left: 28px;
  width: min(20vw, 220px);
}

.tour-nav--next{
  top: 42px;
  right: 28px;
  width: min(20vw, 220px);
}

.tour-nav:disabled{
  cursor: default;
  pointer-events: none;
}

.tour-nav:disabled img{
  opacity: .72;
  filter: grayscale(1);
  transform: none;
}

.tour-nav:disabled:hover img,
.tour-nav:disabled:focus-visible img{
  opacity: .72;
  transform: none;
}

/* =========================
   flyer
========================= */
.tour-flyer{
  position: absolute;
  left: 16%;
  top: 20%;
  width: clamp(360px, 26vw, 420px);
  transform: rotate(0deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.tour-flyer.is-active{
  opacity: 1;
  pointer-events: auto;
  z-index: 20;
}

.tour-flyer img{
  display: block;
  width: 100%;
  height: auto;
  /* box-shadow: 0 14px 28px rgba(0,0,0,.16); */
}

/* =========================
   終了したイベントモーダル
========================= */
.tour-flyer__detail-btn{
  position: absolute;
  left: 7%;
  bottom: -56px;
  transform: translateX(-50%);
  z-index: 26;

  border: 0;
  background: rgba(255, 248, 238, 0.353);
  padding: 10px 14px 9px;
  border-radius: 999px;

  font-family: "tappitsu","Tamanegi Kaisho", "Noto Serif JP", serif;
  font-size: clamp(18px, 2.6vw, 38px);
  line-height: 1;
  color: #781301;
  letter-spacing: .02em;
  white-space: nowrap;

  box-shadow:
    0 2px 8px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.22);

  cursor: pointer;
  transition:
    transform .2s ease,
    opacity .2s ease,
    box-shadow .2s ease;
}

.tour-flyer__detail-btn:hover,
.tour-flyer__detail-btn:focus-visible{
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    0 6px 14px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.tour-flyer__detail-btn:active{
  transform: translateX(-50%) translateY(0);
}

.tour-flyer__detail-btn:focus-visible{
  outline: none;
}

.tour-flyer[data-status="soon"] .tour-flyer__detail-btn,
.tour-flyer[data-status="current"] .tour-flyer__detail-btn{
  display: none;
}

/* =========================
   stamp
========================= */
.tour-stamp{
  position: absolute;
  right: -30px;
  top: -42px;
  z-index: 24;
  pointer-events: none;
  transform: rotate(6deg);
}

.tour-stamp img{
  display: block;
  width: 100%;
  height: auto;
}

/* 終了：縦長 */
.tour-stamp--ended{
  width: clamp(50px, 9vw, 100px);
}

/* 開催中：角印 */
.tour-stamp--current{
  width: clamp(50px, 8.2vw, 90px);
}

/* 近日開催：角印 */
.tour-stamp--soon{
  width: 9vw;
}

/* =========================
   line layer
========================= */
.tour-sheet__line-layer{
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.tour-sheet__line-canvas{
  width: 100%;
  height: 100%;
  display: block;
}

.tour-sheet__line-path{
  fill: none;
  stroke: #121f2b;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 3 1 4;
  stroke-dashoffset: 0;
  opacity: .85;
  filter: blur(.2px);
}

/* =========================
   map
========================= */
.tour-map{
  position: absolute;
  right: 9%;
  bottom: 1%;
  width: min(54vw, 630px);
  z-index: 12;
}

.tour-map__img{
  display: block;
  width: 100%;
  height: auto;
  opacity: .96;
  filter: grayscale(1) contrast(1.06);
}

/* =========================
   wood tags
========================= */
.tour-pin{
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.tour-pin__tag{
  display: inline-block;
  min-width: 22px;
  padding: 8px 5px;
  border-radius: 7px;
  background: url("../img/gallery/texture/wood_texture1.webp") center/cover no-repeat;
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,.18),
    inset 0 -5px 10px rgba(0,0,0,.24),
    0 5px 10px rgba(0,0,0,.18);
  transform: rotate(-2deg);
}

.tour-pin:nth-of-type(even) .tour-pin__tag{
  transform: rotate(2deg);
}

.tour-pin__text{
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Tamanegi Kaisho", "Noto Serif JP", serif;
  font-size: 14px;
  line-height: 1.05;
  color: #633115;
  text-shadow:
    1px 1px 0 rgba(190, 168, 130, 0.18),
    -1px -1px 2px rgba(201, 186, 164, 0.45);
}

.tour-pin.is-active .tour-pin__tag{
  transform: translateY(-4px) rotate(-1deg);
}

.tour-pin:hover .tour-pin__tag,
.tour-pin:focus-visible .tour-pin__tag{
  transform: translateY(-2px) scale(1.02);
}

/* =========================
   tablet
========================= */
@media (max-width: 1024px){
  .tour-sheet__paper{
    min-height: 700px;
  }

  .tour-sheet__title{
    width: min(38vw, 290px);
  }

  .tour-nav--prev,
  .tour-nav--next{
    width: min(32vw, 220px);
  }

  .tour-flyer{
    left: 26%;
    top: 24%;
    width: min(33vw, 320px);
  }

  .tour-map{
    right: 5%;
    bottom: -4%;
    width: min(65vw, 500px);
  }
}

/* =========================
   mobile
========================= */
@media (max-width: 767px){
  .page-gallery{
    --header-h:90px;
  }
  .page-gallery .logo-img {
  width: 56px;
  height: auto;
  padding-top: 6px;
  }

  .tour-sheet{
    --sheet-pad-x: 14px;
    --sheet-pad-y: 18px;
  }

  .tour-sheet__paper{
    width: 100%;
    min-height: 0;
  }

  .tour-sheet__title{
    top: 18px;
    width: clamp(180px, 42vw, 240px);
  }

  .tour-nav--prev{
    top: 76px;
    left: 18px;
    width: clamp(92px, 24vw, 220px);
  }

  .tour-nav--next{
    top: 76px;
    right: 18px;
    width: clamp(92px, 24vw, 220px);
  }

  .tour-flyer{
    left: 43%;
    top: 140px;
    width: min(62vw, 260px);
    transform: translateX(-50%) rotate(-1.5deg);
  }

  .tour-stamp{
    right: -24px;
    top: -17px;
    transform: rotate(5deg);
  }

  .tour-stamp--ended{
    width: 78px;
  }

  .tour-stamp--current,
  .tour-stamp--soon{
    width: 72px;
  }

  .tour-map{
    left: 55%;
    right: auto;
    bottom: 4px;
    transform: translateX(-50%);
    width: clamp(320px, 78vw, 490px);
  }

  .tour-sheet__line-path{
    stroke-width: 2.4;
  }

  .tour-pin__tag{
    min-width: 20px;
    padding: 6px 4px;
  }

  .tour-pin__text{
    font-size: 12px;
  }
}

/* =========================
   巻物
========================= */
.gallery-maki {
  position: relative;
  min-height: 700svh;
}

.gallery-maki__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.maki-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.maki-3d canvas,
#maki3d {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================
   paper ui
========================= */

.maki-paper-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  --paper-x: 50%;
  --paper-y: 50%;
  --paper-w: 0px;
  --paper-h: 0px;

  opacity: 0;
  transition: opacity .22s ease;
}

.maki-paper-ui.is-visible {
  opacity: 1;
}

.maki-paper-ui__inner {
  /* background-color: #f70693; */
  position: absolute;
  left: var(--paper-x);
  top: var(--paper-y);
  width: var(--paper-w);
  height: var(--paper-h);
  transform: translate(0, -50%);
  overflow: hidden;
  border-radius: 3px;
  pointer-events: none;
  /* 左側を隠してreveal */
  clip-path: inset(0 0 0 var(--paper-clip-left, 0px));
}


.maki-paper-washi::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.12), transparent 28%),
    radial-gradient(circle at 76% 70%, rgba(96,70,42,.08), transparent 30%);
}

/* =========================
   menu
========================= */

.maki-paper-menu {
  position: absolute;
  inset: 0;
  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse;

  padding: 13% 6% 20% 8%;
  box-sizing: border-box;

  gap: clamp(12px, 6.6%, 54px);
  pointer-events: none;
}

.maki-paper-item {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;

  opacity: 0;
  transform: translateY(8px) scale(.96);
  filter: blur(0);

  transition:
    opacity .28s ease,
    transform .36s ease,
    filter .36s ease,
    color .28s ease;
}

.maki-paper-item.is-written {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* .maki-paper-item.is-pointed,
.maki-paper-item:hover,
.maki-paper-item:focus-visible {
  opacity: 1;
  transform: translateY(0) scale(1.04);
  filter: blur(0);
  outline: none;
} */

.maki-paper-item__text {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Tamanegi Kaisho", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: var(--menu-font-size, 52px);
  line-height: 1.08;
  letter-spacing: .08em;
  color: rgba(18,18,18,.34);
  transition: color .25s ease, transform .25s ease;
  white-space: nowrap;
}

.maki-paper-item.is-written .maki-paper-item__text {
  color: rgba(18, 18, 18, 0.682);
}

.maki-paper-item.is-past .maki-paper-item__text {
  color: rgba(18, 18, 18, 0.575);
}

.maki-paper-item.is-writing .maki-paper-item__text {
  color: rgba(18,18,18,.98);
}

.maki-paper-item.is-pointed .maki-paper-item__text {
  color: rgba(10,10,10,.98);
}

.maki-paper-item.is-tapped .maki-paper-item__text {
  color: rgba(0,0,0,1);
  text-shadow: 0 0 0.5px rgba(0,0,0,.25);
}

.maki-paper-item.is-tapped {
  transform: translateY(0) scale(1.04);
}

.maki-paper-item.is-pointed .maki-paper-item__text,
.maki-paper-item:hover .maki-paper-item__text {
  color: rgba(10,10,10,.98);
}
@media (hover: hover) and (pointer: fine) {
  .maki-paper-item:focus-visible .maki-paper-item__text {
    color: rgba(0,0,0,1);
    text-shadow: 0 0 0.5px rgba(0,0,0,.25);
  }
}
/* =========================
   maki-paper-works
========================= */
.maki-paper-works {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.maki-paper-work {
  position: absolute;
  display: block;
  width: clamp(90px, 15%, 210px);
  height: auto;

  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px) scale(.96);

  transition:
    opacity .9s ease,
    filter 1.1s ease,
    transform 1.1s ease;

  mix-blend-mode: multiply;
}

.maki-paper-work.is-visible {
  opacity: .86;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.maki-paper-work--01 {
  right: 2%;
  bottom: -3%;
  width: clamp(90px, 21%, 260px);
}

.maki-paper-work--02 {
  right: 22%;
  top: -2%;
  width: clamp(80px, 14%, 210px);
}

.maki-paper-work--03 {
  right: 36%;
  bottom: 1%;
  width: clamp(50px, 26%, 220px);
}

.maki-paper-work--04 {
  left: 27%;
  top: 8%;
  width: clamp(40px, 24%, 190px);
}

/* =========================
   frog
========================= */

.maki-paper-frog {
  position: absolute;
  left: 6%;
  top: 98%;
  width: var(--frog-size);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  pointer-events: none;
  z-index: 3;
  will-change: left, top, transform, opacity;
  opacity: 0;

  transition:
    left .36s ease,
    top .36s ease,
    opacity .2s ease,
    transform .2s ease;
}

.maki-paper-ui.is-frog-visible .maki-paper-frog {
  opacity: 1;
}

#makiPaperFrog{
  transition:
    left 0.55s cubic-bezier(.22, .8, .25, 1),
    top 0.55s cubic-bezier(.22, .8, .25, 1),
    transform 0.35s ease,
    opacity 0.35s ease;
}
/* =========================
   mobile
========================= */

@media (max-width: 767px) {
  .maki-paper-menu {
    padding: 14% 9% 15% 14%;

    /* 右側へ詰めず、紙の横幅いっぱいに分散 */
    justify-content: space-between;

    /* space-betweenで間隔を作るためgapは不要 */
    gap: 0;
  }

  .maki-paper-item {
    flex: 0 0 auto;
  }

  .maki-paper-item__text {
    /* font-family: "Yuji Boku", "Noto Serif JP", serif; */
    font-size: var(--menu-font-size, 24px);
    line-height: 1.25;
    letter-spacing: 0.32em;
  }

  .maki-paper-frog {
    width: var(--frog-size, 82px);
  }

  .maki-paper-work {
    width: clamp(58px, 18vw, 92px);
    opacity: 0;
  }

  .maki-paper-work--01 {
    right: 6%;
    bottom: 2%;
    width: clamp(120px, 18%, 240px);
  }
  
  .maki-paper-work--02 {
    right: 22%;
    top: 0%;
    width: clamp(80px, 18%, 200px);
  }

  .maki-paper-work--03 {
    right: 44%;
    bottom: 0%;
    width: clamp(120px, 20%, 240px);
  }
  
  .maki-paper-work--04 {
    left: 22%;
    top: 16%;
    width: clamp(120px, 16%, 240px);
  }
}


/* ========================================
   TOUR MODAL skeleton
======================================== */

body.is-tour-modal-open{
  overflow: hidden;
}

.tour-modal{
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.tour-modal[aria-hidden="false"]{
  pointer-events: auto;
  opacity: 1;
}

.tour-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(16, 10, 7, 0.7);
}

.tour-modal__panel{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: rgb(87, 75, 56);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

.tour-modal__close{
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  font-size: 44px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.tour-modal__inner{
  padding: 12px 24px 32px;
}

.tour-modal__section + .tour-modal__section{
  margin-top: 32px;
}

.tour-modal__section-title{
  margin: 0 0 14px;
  font-family: "Stardos Stencil", sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
}

/* video */
.tour-modal__video-wrap{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.tour-modal__video{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tour-modal__sound{
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;

  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  cursor: pointer;

  display: grid;
  place-items: center;
  padding: 0;

  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.tour-modal__sound:hover,
.tour-modal__sound:focus-visible{
  transform: translateY(-1px);
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  outline: none;
}

.tour-modal__sound-icon{
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

/* スピーカー本体 */
.sound-body{
  position: absolute;
  left: -2px;
  top: -1px;
  width: 17px;
  height: 22px;
  background: #222;
  clip-path: polygon(0 30%, 38% 30%, 72% 0, 72% 100%, 38% 70%, 0 70%);
}

/* 音波（2本） */
.sound-wave::before,
.sound-wave::after{
  content: "";
  position: absolute;
  border-right: 2px solid #222;
  border-radius: 50%;
}

/* 内側 */
.sound-wave::before{
  left: 9px;
  top: 3px;
  width: 5px;
  height: 12px;
}

/* 外側 */
.sound-wave::after{
  left: 12px;
  top: 1px;
  width: 9px;
  height: 16px;
}

/* muted時は斜線を入れる */
.tour-modal__sound[aria-pressed="false"] .tour-modal__sound-icon{
  opacity: .86;
}

.tour-modal__sound[aria-pressed="false"] .tour-modal__sound-icon::after{
  border-right: 0;
}

.tour-modal__sound[aria-pressed="false"]::after{
  content: "";
  position: absolute;
  width: 32px;
  height: 2px;
  background: #222;
  transform: rotate(-45deg);
}

/* meta */
.tour-modal__meta{
  text-align: center;
}

.tour-modal__title{
  margin: 0;
  font-family: "Stardos Stencil", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  display: flex;
  gap: 0.5em;
}

.tour-modal__meta-line {
  display: flex;
  gap: 0.5em;
}

.tour-modal__date{
  margin: 10px 0 0;
  font-family: "Stardos Stencil", sans-serif;
  font-size: clamp(14px, 2vw, 24px);
}

.tour-modal__venue{
  margin: 10px 0 0;
  font-family: "Stardos Stencil", sans-serif;
  font-size: clamp(14px, 2vw, 24px);
  opacity: .82;
  font-style: italic;
}

/* swiper */
.tour-modal__slider{
  position: relative;
  padding-bottom: 36px;
  height: 90svh;
}

.tour-modal__slider .swiper-slide{
  overflow: hidden;
  border-radius: 14px;
  background: #111;
}

.tour-modal__slide-figure{
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

/* 背景のぼかし */
.tour-modal__slide-blur{
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.12);
  filter: blur(18px) brightness(.72);
  opacity: .95;
}

/* 前景の実画像 */
.tour-modal__slide-img{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tour-modal__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 32px;
  height: 32px;

  background: none;
  border: 0;
  box-shadow: none;

  cursor: pointer;
  opacity: .78;

  display: grid;
  place-items: center;

  transition:
    opacity .2s ease,
    transform .2s ease;
}

.tour-modal__nav--prev{ left: 8px; }
.tour-modal__nav--next{ right: 8px; }

.tour-modal__nav::before{
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

/* 向き */
.tour-modal__nav--prev::before{
  transform: rotate(-135deg);
}

.tour-modal__nav--next::before{
  transform: rotate(45deg);
}

/* hover時だけ少し強調 */
.tour-modal__nav:hover,
.tour-modal__nav:focus-visible{
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  outline: none;
}

/* 見づらい時用にほんのり影 */
.tour-modal__nav::before{
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}

.tour-modal .swiper-pagination-bullet{
  width: 8px;
  height: 8px;
}

@media (max-width: 767px){
  .tour-modal__panel{
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .tour-modal__close{
    width: 48px;
    height: 48px;
    font-size: 40px;
  }

  .tour-modal__inner{
    padding: 8px 14px 22px;
  }

  .tour-modal__title {
    display: block;
  }

  .title-sub {
    display: block;
  }

  .tour-modal__meta-line {
    display: block;
  }

  .venue {
    display: block;
  }

  .tour-modal__section + .tour-modal__section{
    margin-top: 24px;
  }

  .tour-modal__slide-figure{
    aspect-ratio: 3 / 4;
  }

  .tour-modal__nav{
    width: 26px;
    height: 26px;
  }

  .tour-flyer__detail-btn{
    left: 12%;
    bottom: -48px;
    font-size: clamp(17px, 3.5vw, 22px);
    padding: 7px 12px 8px;
  }

  .tour-modal__slider,
  .tour-modal__slider .swiper-wrapper,
  .tour-modal__slider .swiper-slide{
    height: auto;
  }

  .tour-modal__slide-figure{
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    margin: 0;
    overflow: hidden;
  }

  .tour-modal__slide-img,
  .tour-modal__slide-blur{
    width: 100%;
    height: 100%;
  }

  .tour-modal__slide-img{
    display: block;
    object-fit: contain;
  }

  .tour-modal__slide-blur{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }

}
@media (max-width: 562px){
  .tour-flyer{
    left: 46%;
    top: 26%;
    width: min(60vw, 250px);
    transform: translateX(-50%) rotate(-1.5deg);
  }
  .tour-stamp{
    right: -18px;
    top: -17px;
    transform: rotate(5deg);
  }
  .tour-stamp--ended{
    width: 28%;
  }
  .tour-stamp--current,
  .tour-stamp--soon{
    width: 29%;
  }
  .tour-map{
    left: 55%;
    right: auto;
    bottom: 4px;
    transform: translateX(-50%);
    width: clamp(320px, 78vw, 490px);
  }
  .tour-flyer__detail-btn{
    left: 20%;
    bottom: -48px;
    font-size: clamp(15px, 4.2vw, 20px);
    padding: 7px 12px 8px;
  }
}

.maki-paper-work__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
}

.maki-paper-work__video {
  display: block;
}

.maki-paper-work__image {
  display: none;
}

/* iPhone・iPadのみ */
html.is-ios .maki-paper-work__video {
  display: none !important;
}

html.is-ios .maki-paper-work__image {
  display: block !important;
}

/* =========================
   gallery detail common
========================= */

.gallery-detail {
  --gd-bg: #f7f4ed;
  --gd-ink: #171514;
  --gd-muted: rgba(23, 21, 20, 0.56);
  --gd-line: rgba(23, 21, 20, 0.14);
  --gd-paper: rgba(255, 255, 255, 0.48);

  min-height: 100svh;
  padding: clamp(88px, 11vw, 150px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.75), transparent 34%),
    linear-gradient(180deg, #faf7ef 0%, var(--gd-bg) 100%);
  color: var(--gd-ink);
}

.gallery-detail__hero {
  width: min(100%, 1080px);
  margin: 0 auto clamp(54px, 8vw, 104px);
}

.gallery-detail__label {
  margin: 0 0 16px;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.18em;
  color: var(--gd-muted);
}

.gallery-detail__title {
  margin: 0;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: clamp(42px, 7.8vw, 112px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}

.gallery-detail__lead {
  max-width: 680px;
  margin: clamp(20px, 3vw, 34px) 0 0;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 2;
  color: var(--gd-muted);
}

.gallery-detail__section {
  width: min(100%, 1080px);
  margin: 0 auto clamp(56px, 8vw, 120px);
}

.gallery-detail__award {
  width: min(100%, 680px);
  margin: 34px auto 0;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(60, 52, 40, 0.35);
  border-bottom: 1px solid rgba(60, 52, 40, 0.25);
  text-align: left;
}

.gallery-detail__award-label {
  margin: 0 0 8px;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(45, 39, 31, 0.7);
}

.gallery-detail__award-text {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.9;
  color: var(--gd-muted);
}

.gallery-detail__award-link {
  display: inline-block;
  font-family: "Noto Serif JP", serif;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  color: rgba(35, 31, 26, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(35, 31, 26, 0.3);
  padding-bottom: 3px;
}

.gallery-detail__award-link:hover {
  opacity: 0.65;
}

/* =========================
   visual
========================= */

.gallery-visual {
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-visual img,
.gallery-visual video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* max-height: 78svh; */
}

/* ぼかし背景つき */
.gallery-visual--blur {
  position: relative;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
}

.gallery-visual--blur::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -2;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px);
  transform: scale(1.08);
}

.gallery-visual--blur::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 16, 10, 0.22);
}

/* 表の画像は切らずに表示 */
.gallery-visual--wide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 78svh;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* videoは今まで通り */
.gallery-visual--wide video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-slider__slide.gallery-visual--portrait {
  width: min(100%, calc(78svh * 4 / 5));
  max-height: 78svh;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}

.gallery-visual--portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-visual--portrait video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 音声ボタンを動画の上に配置するために必要 */
.gallery-visual--wide{
  position: relative;
}

/* 音声切り替えボタン */
.gallery-video-sound{
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;

  width: 40px;
  height: 40px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: #faf9f6d1;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);

  display: grid;
  place-items: center;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-video-sound:hover,
.gallery-video-sound:focus-visible{
  transform: translateY(-1px);
  background: #fbfaf7;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  outline: none;
}

.gallery-video-sound__icon{
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

/* スピーカー本体 */
.gallery-video-sound__body{
  position: absolute;
  left: -2px;
  top: -1px;

  width: 17px;
  height: 22px;
  background: #171514;

  clip-path: polygon(
    0 30%,
    38% 30%,
    72% 0,
    72% 100%,
    38% 70%,
    0 70%
  );
}

/* 音波 */
.gallery-video-sound__wave::before,
.gallery-video-sound__wave::after{
  content: "";
  position: absolute;

  border-right: 2px solid #171514;
  border-radius: 50%;
}

/* 内側の音波 */
.gallery-video-sound__wave::before{
  left: 9px;
  top: 3px;
  width: 5px;
  height: 12px;
}

/* 外側の音波 */
.gallery-video-sound__wave::after{
  left: 12px;
  top: 1px;
  width: 9px;
  height: 16px;
}

/* ミュート時 */
.gallery-video-sound[aria-pressed="false"]
.gallery-video-sound__icon{
  opacity: 0.86;
}

/* ミュート時は音波を非表示 */
.gallery-video-sound[aria-pressed="false"]
.gallery-video-sound__wave{
  display: none;
}

/* ミュート時の斜線 */
.gallery-video-sound[aria-pressed="false"]::after{
  content: "";
  position: absolute;

  width: 32px;
  height: 2px;

  background: #222;
  transform: rotate(-45deg);
}
/* =========================
   feature work
========================= */

.gallery-work {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.gallery-work--image-right .gallery-work__media {
  order: 2;
}

.gallery-work--image-right .gallery-work__text {
  order: 1;
}

.gallery-work__text {
  max-width: 460px;
}

.gallery-work__number {
  margin: 0 0 18px;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gd-muted);
}

.gallery-work__title {
  margin: 0 0 22px;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.gallery-work__meta {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--gd-line);
  border-bottom: 1px solid var(--gd-line);
}

.gallery-work__meta div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}

.gallery-work__meta dt {
  font-family: "EB Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gd-muted);
}

.gallery-work__meta dd {
  margin: 0;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: 14px;
  line-height: 1.8;
}

.gallery-work__description {
  margin: 0;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 2;
  color: rgba(23, 21, 20, 0.72);
}

/* =========================
   pair / grid
========================= */

.gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
}

/* =========================
   gallery grid
========================= */

.gallery-grid-section {
  width: min(100%, 1180px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.gallery-visual--grid {
  border-radius: 4px;
}

.gallery-visual--grid img,
.gallery-visual--grid video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  /*
    goods/designは一覧性重視なので正方形トリミング。
    画像全体を絶対に見せたい場合は contain に変更。
  */
}

/* 少しリズムを出したい場合 */
.gallery-grid--goods .gallery-visual:nth-child(5n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid--goods .gallery-visual:nth-child(5n + 1) img {
  aspect-ratio: 1 / 1;
}

/* responsive */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-grid--goods .gallery-visual:nth-child(5n + 1) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* =========================
   goods mosaic
========================= */

.gallery-mosaic--goods {
  --mosaic-gap: clamp(10px, 1.6vw, 20px);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: var(--mosaic-gap);

  /*
    3カラム × 9行。
    2行ぶん = 正方形
    3行ぶん = 縦長
  */
  aspect-ratio: 2 / 3;
}

.gallery-mosaic--goods .gallery-mosaic__item {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-mosaic--goods .gallery-mosaic__item img,
.gallery-mosaic--goods .gallery-mosaic__item video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
}

/* 01 01 02 */
/* 01 01 02 */
.gallery-mosaic--goods .gallery-mosaic__item--01 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-mosaic--goods .gallery-mosaic__item--02 {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

/* 03 04 05 */
/* 03 04 05 */
/* 03 06 07 */
.gallery-mosaic--goods .gallery-mosaic__item--03 {
  grid-column: 1 / 2;
  grid-row: 3 / 6;
}

.gallery-mosaic--goods .gallery-mosaic__item--04 {
  grid-column: 2 / 3;
  grid-row: 3 / 5;
}

.gallery-mosaic--goods .gallery-mosaic__item--05 {
  grid-column: 3 / 4;
  grid-row: 3 / 5;
}

/* 08 06 07 */
/* 08 09 10 */
/* 08 09 10 */
.gallery-mosaic--goods .gallery-mosaic__item--06 {
  grid-column: 2 / 3;
  grid-row: 5 / 7;
}

.gallery-mosaic--goods .gallery-mosaic__item--07 {
  grid-column: 3 / 4;
  grid-row: 5 / 7;
}

.gallery-mosaic--goods .gallery-mosaic__item--08 {
  grid-column: 1 / 2;
  grid-row: 6 / 9;
}

.gallery-mosaic--goods .gallery-mosaic__item--09 {
  grid-column: 2 / 3;
  grid-row: 7 / 9;
}

.gallery-mosaic--goods .gallery-mosaic__item--10 {
  grid-column: 3 / 4;
  grid-row: 7 / 9;
}

/* 11 12 13 */
/* 11 12 13 */
.gallery-mosaic--goods .gallery-mosaic__item--11 {
  grid-column: 1 / 2;
  grid-row: 9 / 11;
}

.gallery-mosaic--goods .gallery-mosaic__item--12 {
  grid-column: 2 / 3;
  grid-row: 9 / 11;
}

.gallery-mosaic--goods .gallery-mosaic__item--13 {
  grid-column: 3 / 4;
  grid-row: 9 / 11;
}

@media (max-width: 767px) {
  .gallery-mosaic--goods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    /*
      2カラム用。
      1行 = 正方形の半分の高さ。
      正方形 = 2行
      横長 = 2列 × 2行
      縦長 = 1列 × 3行
    */
    grid-template-rows: repeat(16, minmax(0, 1fr));
    gap: 12px;

    /*
      2列 × 16行。
      2行ぶんが正方形になるように全体比率を固定。
    */
    aspect-ratio: 1 / 4;
  }

  .gallery-mosaic--goods .gallery-mosaic__item {
    margin: 0;
    grid-column: auto;
    grid-row: auto;
    border-radius: 4px;
    overflow: hidden;
  }

  .gallery-mosaic--goods .gallery-mosaic__item img,
  .gallery-mosaic--goods .gallery-mosaic__item video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
  }

  /*
    SP配置

    01 01
    01 01
    03 02
    03 02
    03 04
    08 04
    08 05
    08 05
    06 07
    06 07
    09 10
    09 10
    11 12
    11 12
    13
    13
  */

  /* 01 横長 */
  .gallery-mosaic--goods .gallery-mosaic__item--01 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  /* 02 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--02 {
    grid-column: 2 / 3;
    grid-row: 3 / 5;
  }

  /* 03 縦長 */
  .gallery-mosaic--goods .gallery-mosaic__item--03 {
    grid-column: 1 / 2;
    grid-row: 3 / 6;
  }

  /* 04 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--04 {
    grid-column: 2 / 3;
    grid-row: 5 / 7;
  }

  /* 08 縦長 */
  .gallery-mosaic--goods .gallery-mosaic__item--08 {
    grid-column: 1 / 2;
    grid-row: 6 / 9;
  }

  /* 05 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--05 {
    grid-column: 2 / 3;
    grid-row: 7 / 9;
  }

  /* 06 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--06 {
    grid-column: 1 / 2;
    grid-row: 9 / 11;
  }

  /* 07 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--07 {
    grid-column: 2 / 3;
    grid-row: 9 / 11;
  }

  /* 09 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--09 {
    grid-column: 1 / 2;
    grid-row: 11 / 13;
  }

  /* 10 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--10 {
    grid-column: 2 / 3;
    grid-row: 11 / 13;
  }

  /* 11 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--11 {
    grid-column: 1 / 2;
    grid-row: 13 / 15;
  }

  /* 12 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--12 {
    grid-column: 2 / 3;
    grid-row: 13 / 15;
  }

  /* 13 正方形 */
  .gallery-mosaic--goods .gallery-mosaic__item--13 {
    grid-column: 1 / 2;
    grid-row: 15 / 17;
  }
}

/* =========================
   showcase
========================= */

.gallery-showcase {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
}

.gallery-showcase__media {
  margin-inline: auto;
  width: min(100%, 1180px);
}

.gallery-showcase__text {
  width: min(100%, 760px);
  margin-inline: auto;
}

/* =========================
   fineart layout
========================= */

.gallery-detail--fineart .fineart-feature-media {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: transparent;
}

.gallery-detail--fineart .fineart-feature-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72svh;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

/* =========================
   fineart square grid
========================= */

.fineart-grid-section {
  width: min(100%, 1180px);
}

.fineart-square-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.fineart-square {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--gd-line);
  background: #faf7ef;
  box-shadow: 0 18px 52px rgba(24, 18, 10, 0.06);
}

.fineart-square__blur {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.04);
  opacity: 0.58;
}

.fineart-square__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
   fineart mecha
========================= */

.fineart-mecha-section {
  width: min(100%, 980px);
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  margin-top: clamp(84px, 12vw, 160px);
}

.fineart-mecha-text {
  width: min(100%, 760px);
  margin-inline: auto;
}

.fineart-mecha-stage {
  width: min(100%, 940px);
  margin-inline: auto;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
  overflow: visible;
}

.fineart-mecha-stage .mecha {
  position: relative;
  width: min(100%, 1180px);
  aspect-ratio: 2070 / 2004;
  overflow: visible;
}

.fineart-mecha-stage .mecha *,
.fineart-mecha-stage .mecha *::before,
.fineart-mecha-stage .mecha *::after {
  box-sizing: border-box;
}

.fineart-mecha-stage .mecha-body {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.fineart-mecha-stage .mecha-apple {
  position: absolute;
  left: 47.4%;
  bottom: -0.2%;
  width: 30%;
  transform: translateX(-50%);
  display: block;
  pointer-events: none;
  user-select: none;
}

/* clock */

.fineart-mecha-stage .clock {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fineart-mecha-stage .clock-base0 {
  position: absolute;
  left: 8.8%;
  top: 18.1%;
  width: 16.6%;
  z-index: 12;
  display: block;
}

.fineart-mecha-stage .clock-base,
.fineart-mecha-stage .clock-hand {
  position: absolute;
  left: 17.1%;
  top: 26.6%;
  width: 13.8%;
  z-index: 13;
  display: block;
  transform: translate(-50%, -50%);
}

.fineart-mecha-stage .clock-hand {
  left: 16.8%;
  top: 26.4%;
  transform:
    translate(-50%, -50%)
    rotate(var(--hand-rot, 0deg));
  transform-origin: 50% 50%;
}

/* 時計クリック領域 */

.fineart-mecha-stage .clock-hotspot {
  position: absolute;
  left: 17%;
  top: 25.5%;
  width: 22%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  z-index: 20;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}

.fineart-mecha-stage .clock-hotspot::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: inherit;
  border: 1px solid rgba(23, 21, 20, 0);
  background: rgba(250, 247, 239, 0);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.fineart-mecha-stage .clock-hotspot:hover::before,
.fineart-mecha-stage .clock-hotspot:focus-visible::before {
  border-color: rgba(23, 21, 20, 0.24);
  background: rgba(250, 247, 239, 0.25);
  box-shadow: 0 0 0 10px rgba(250, 247, 239, 0.18);
}

.fineart-mecha-stage .clock-hotspot:focus-visible {
  outline: none;
}

/* gear */

.fineart-mecha-stage .gear {
  position: absolute;
  transform:
    translate(-50%, -50%)
    rotate(var(--gear-rot, 0deg));
  transform-origin: 50% 50%;
  pointer-events: none;
  will-change: transform;
  z-index: 11;
  display: block;
  user-select: none;
}

.fineart-mecha-stage .gear.g1 {
  left: 31.5%;
  top: 24.2%;
  width: 9%;
}

.fineart-mecha-stage .gear.g2 {
  left: 27%;
  top: 32.5%;
  width: 12%;
}

/* game area */

.fineart-mecha-stage .game-area {
  position: absolute;
  left: 63.2%;
  top: 24.8%;
  width: 19.2%;
  aspect-ratio: 35 / 27;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: 10;
}

.fineart-mecha-stage .game-fall {
  position: absolute;
  left: 47.4%;
  top: 33.7%;
  width: 6%;
  transform: rotate(40deg);
  z-index: 20;
}

.fineart-mecha-stage .game-fall img {
  width: 100%;
  display: block;
}

.fineart-mecha-stage .game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 50;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transform: rotate(1deg);
  transform-origin: center;
  pointer-events: none;
  cursor: default;
  border: 0;
  padding: 0;
}

.fineart-mecha-stage .mecha.is-ready .game-overlay {
  pointer-events: auto;
  cursor: pointer;
}

.fineart-mecha-stage .game-text {
  color: #eee;
  font-family: "Jersey 10", sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 1.8vw, 22px);
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(4px) rotate(-1deg);
}

.fineart-mecha-stage .game-overlay.is-show {
  opacity: 1;
  animation: overlay-blackin 260ms ease-out forwards;
}

.fineart-mecha-stage .game-overlay.is-show .game-text {
  animation:
    text-appear 220ms ease-out 200ms forwards,
    text-blink 140ms steps(2, end) 520ms 6;
}

@keyframes overlay-blackin {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.88);
  }
}

@keyframes text-appear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes text-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* =========================
   design: show full artwork
========================= */

.gallery-detail--design .gallery-visual {
  background: #faf7ef;
}

.gallery-detail--design .gallery-visual img,
.gallery-detail--design .gallery-visual video {
  object-fit: cover;
  background: #faf7ef;
}

/* =========================
   object page
========================= */

.gallery-detail--object .gallery-work-set {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.gallery-detail--object .gallery-work-set:nth-of-type(even) {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
}

.gallery-detail--object .gallery-work-set:nth-of-type(even) .gallery-work-set__media {
  grid-column: 2;
}

.gallery-detail--object .gallery-work-set:nth-of-type(even) .gallery-work-set__text {
  grid-column: 1;
  grid-row: 1;
}

.gallery-detail--object .gallery-work-set__media {
  min-width: 0;
}

.gallery-detail--object .gallery-work-set__text {
  min-width: 0;
}

/* 横長作品 */
.gallery-detail--object .gallery-work-set--wide .gallery-slider {
  width: 100%;
}

.gallery-detail--object .gallery-work-set--wide .gallery-visual {
  aspect-ratio: 4 / 3;
}

/* 縦長作品 */
.gallery-detail--object .gallery-work-set--portrait .gallery-slider {
  width: min(100%, 520px);
  margin-inline: auto;
}

.gallery-detail--object .gallery-work-set--portrait .gallery-visual {
  aspect-ratio: 7 / 8;
}

/* 画像は切らずに全体表示 */
.gallery-detail--object .gallery-visual {
  background: #faf7ef;
}

.gallery-detail--object .gallery-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #faf7ef;
}

/* スマホ */
@media (max-width: 767px) {
  .gallery-detail--object .gallery-work-set,
  .gallery-detail--object .gallery-work-set:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-detail--object .gallery-work-set:nth-of-type(even) .gallery-work-set__media,
  .gallery-detail--object .gallery-work-set:nth-of-type(even) .gallery-work-set__text {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-detail--object .gallery-work-set--portrait .gallery-slider {
    width: min(100%, 420px);
  }

  .gallery-detail--object .gallery-work-set--wide .gallery-visual {
    aspect-ratio: 16 / 11;
  }

  .gallery-detail--object .gallery-work-set--portrait .gallery-visual {
    aspect-ratio: 3 / 4;
  }
}

/* =========================
   tattoo page
========================= */

.gallery-detail--tattoo .tattoo-portfolio-section {
  width: min(100%, 1180px);
  margin-bottom: clamp(56px, 8vw, 110px);
}

.tattoo-portfolio-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--gd-line);
  background: #faf7ef;
  box-shadow: 0 24px 70px rgba(24, 18, 10, 0.08);

  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.tattoo-portfolio-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: #faf7ef;
}

/* masonry */

.gallery-detail--tattoo .tattoo-masonry-section {
  width: min(100%, 1180px);
}

.tattoo-masonry {
  columns: 3;
  column-gap: clamp(12px, 1.8vw, 22px);
}

.tattoo-masonry__item {
  break-inside: avoid;
  margin: 0 0 clamp(12px, 1.8vw, 22px);
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--gd-line);
  background: #faf7ef;
  box-shadow: 0 16px 42px rgba(24, 18, 10, 0.055);
}

.tattoo-masonry__item img,
.tattoo-masonry__item video {
  display: block;
  width: 100%;
  height: auto;
  background: #faf7ef;
}

/* hoverできる端末だけ、少し反応 */
@media (hover: hover) and (pointer: fine) {
  .tattoo-masonry__item {
    transition:
      transform 0.28s ease,
      box-shadow 0.28s ease;
  }

  .tattoo-masonry__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 64px rgba(24, 18, 10, 0.09);
  }
}

/* tablet */
@media (max-width: 1024px) {
  .tattoo-masonry {
    columns: 3;
  }
}

/* mobile */
@media (max-width: 767px) {
  .gallery-detail--tattoo .tattoo-portfolio-section {
    margin-bottom: 56px;
  }

  .tattoo-masonry {
    columns: 2;
    column-gap: 10px;
  }

  .tattoo-masonry__item {
    margin-bottom: 10px;
    border-radius: 3px;
  }
}

/* =========================
   nav
========================= */

.gallery-detail__nav {
  width: min(100%, 1180px);
  margin: clamp(64px, 8vw, 120px) auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--gd-line);
}

.gallery-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--gd-ink);
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;

  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.gallery-detail__back::before {
  content: "←";
}

.gallery-detail__back:hover {
  opacity: 0.62;
}

.gallery-work__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 26px;
  padding: 12px 0;
  color: var(--gd-ink);
  font-family: "Cinzel", "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 21, 20, 0.32);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.gallery-work__link:hover {
  opacity: 0.62;
  transform: translateX(3px);
  border-color: rgba(23, 21, 20, 0.12);
}

.gallery-work__link-arrow {
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  line-height: 1;
}

/* =========================
   gallery slider
========================= */

.gallery-slider {
  width: 100%;
}

.gallery-slider__viewport {
  overflow: hidden;
}

.gallery-slider__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(.22, .8, .25, 1);
  will-change: transform;
}

.gallery-slider__slide {
  flex: 0 0 100%;
  width: 100%;
}

.gallery-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.gallery-slider__button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gd-ink);
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  opacity: 0.72;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.gallery-slider__button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.gallery-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.22);
  transition:
    width 0.25s ease,
    background-color 0.25s ease;
}

.gallery-slider__dot.is-active {
  width: 18px;
  background: rgba(23, 21, 20, 0.72);
}

/* =========================
   work set
========================= */

.gallery-work-set {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 0.58fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.gallery-work-set__media {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.gallery-work-set__text {
  max-width: 460px;
}

/* square visual */

.gallery-visual--square img,
.gallery-visual--square video {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* 高さが画面を超えすぎないようにする場合 */
.gallery-visual--square img,
.gallery-visual--square video {
  max-height: 72svh;
}

/* responsive */

@media (max-width: 767px) {
  .gallery-work-set {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-work-set__text {
    max-width: none;
  }

  .gallery-visual--square img,
  .gallery-visual--square video {
    max-height: 66svh;
  }
}

/* =========================
   responsive
========================= */

@media (max-width: 767px) {
  .gallery-detail {
    padding: 84px 18px 72px;
  }

  .gallery-detail__hero {
    margin-bottom: 54px;
  }

  .gallery-work,
  .gallery-work--image-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-work--image-right .gallery-work__media,
  .gallery-work--image-right .gallery-work__text {
    order: initial;
  }

  .gallery-work__text {
    max-width: none;
  }

  .gallery-work__meta div {
    grid-template-columns: 72px 1fr;
  }

  .gallery-pair {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   fineart responsive
========================= */

@media (max-width: 900px) {
  .fineart-square-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fineart-mecha-stage .mecha {
    width: min(100%, 900px);
  }

  .fineart-mecha-stage .clock-hotspot {
    width: 25%;
  }
}

@media (max-width: 767px) {
  .gallery-detail--fineart .fineart-feature-media img {
    max-height: 66svh;
  }

  .fineart-square-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .fineart-square__blur {
    filter: blur(14px);
  }

  .fineart-mecha-section {
    margin-top: 88px;
  }

  .fineart-mecha-stage {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
  }

  .fineart-mecha-stage .mecha {
    width: 100%;
    max-width: 760px;
  }

  .fineart-mecha-stage .clock-hotspot {
    width: 28%;
  }

  .fineart-mecha-stage .game-text {
    font-size: clamp(8px, 2.4vw, 14px);
  }
}

/* =========================
   NAMIKAZE PAGE BASE
========================= */

body.page-namikaze{
  margin: 0;
  background: #efe7d2;
  color: #1d292c;

  --nk-bg: #efe7d2;
  --nk-ink: #384b50;
  --nk-blue: #517085;
  --nk-green: #66837c;
  --nk-deep: #4f6c73;
  --nk-mid: #5b7b82;
  --nk-cream: #edddc0;
  --nk-water-dark: #2f5964;
  --nk-water-mid-dark: #3e6970;
  --nk-water-deep: #223f46;
  --nk-water-light: #9dbec5;

  --header-h: 60px;
}

html:has(body.page-namikaze){
  scrollbar-color: #efe7d2 #66837c;
}

/* 最初はヘッダー非表示 */
body.page-namikaze header{
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .8s ease,
    background-color .8s ease;
}

/* ローディング完了後に表示 */
body.page-namikaze.loading-complete header{
  opacity: 1;
  pointer-events: auto;
  background: rgba(132, 155, 149, 0.9);
  backdrop-filter: blur(8px);
}

/* =========================
   PAGE LAYOUT
========================= */

.namikaze-page{
  background: var(--nk-bg);
  /* background: var(--nk-bg); */
}

.namikaze-hero{
  position: relative;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(180deg, #efe7d2 0%, #e7ddc6 100%);
}

/* =========================
   MENU
========================= */
.page-namikaze .menu{
  background: #66837cf2;
}
.page-namikaze .menu nav a{
  color: var(--nk-bg);
  font-family: "Cormorant Garamond","Noto Serif JP",serif;
}

/* =========================
   HERO / LOADING LOGO
========================= */

.namikaze-loading{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.nk-logo-stage{
  position: relative;
  width: min(78vw, 720px);
  z-index: 3;
}

.nk-logo{
  display: block;
  width: 100%;
  height: auto;
}

.nk-logo.bw{
  position: relative;
  z-index: 1;
}

.nk-color-mask{
  position: absolute;
  inset: 0;
  z-index: 2;

  width: 100%;
  height: 100%;

  overflow: hidden;
  pointer-events: none;

  /* 下からカラーが出る */
  clip-path: inset(100% 0 0 0);

  animation:
    nk-logo-color-rise 4.5s cubic-bezier(.65,.02,.22,1) forwards;
}

.nk-color-mask .nk-logo.color{
  display: block;
  width: 100%;
  height: auto;
}

/* カラー化。波とタイミングを合わせる */
@keyframes nk-logo-color-rise{
  0%{
    clip-path: inset(100% 0 0 0);
  }

  25%{
    clip-path: inset(61% 0 0 0);
  }

  50%{
    clip-path: inset(31% 0 0 0);
  }

  75%{
    clip-path: inset(10% 0 0 0);
  }

  100%{
    clip-path: inset(0 0 0 0);
  }
}
/* =========================
   WAVE LINES
========================= */

.nk-water{
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.wave-wrap{
  position: absolute;
  left: -35vw;
  width: 170vw;
  height: 180px;
}

.wave-svg{
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wave-svg path{
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave-back{
  bottom: 0;
  animation: wave-back-move 4.5s cubic-bezier(.65,.02,.22,1) forwards;
}
.wave-back path{
  stroke: var(--nk-deep);
  stroke-width: 3;
  opacity: .45;
}

.wave-mid{
  bottom: 5vh;
  animation: wave-mid-move 4.5s cubic-bezier(.65,.02,.22,1) forwards;
}
.wave-mid path{
  stroke: var(--nk-mid);
  stroke-width: 4;
  opacity: .68;
}

.wave-front{
  bottom: 10vh;
  animation: wave-front-move 4.5s cubic-bezier(.65,.02,.22,1) forwards;
}
.wave-front path{
  stroke: var(--nk-green);
  stroke-width: 5;
  opacity: .92;
}

/* y値を小さくすると全体が上がる */
@keyframes wave-back-move{
  0%   { transform: translate(-29vw, 14vh); }
  25%  { transform: translate(-23vw, -24vh); }
  50%  { transform: translate(-29vw, -49vh); }
  75%  { transform: translate(-21vw, -72vh); }
  100% { transform: translate(-24vw, -97vh); }
}

@keyframes wave-mid-move{
  0%   { transform: translate(-25vw, 18vh); }
  25%  { transform: translate(-18vw, -13vh); }
  50%  { transform: translate(-22vw, -42vh); }
  75%  { transform: translate(-15vw, -65vh); }
  100% { transform: translate(-26vw, -99vh); }
}

@keyframes wave-front-move{
  0%   { transform: translate(-25vw, 24vh); }
  25%  { transform: translate(-30vw, -11vh); }
  50%  { transform: translate(-24vw, -39vh); }
  75%  { transform: translate(-32vw, -68vh); }
  100% { transform: translate(-27vw, -98vh); }
}


/* =========================
   SCROLL MARK
========================= */

.namikaze-scroll-mark{
  position: absolute;
  left: 50%;
  bottom: 55px;
  transform: translateX(-50%);
  z-index: 7;

  color: var(--nk-deep);
  text-align: center;
  font-family: "Cormorant Garamond","Noto Serif JP",serif;
  font-size: 18px;
  text-decoration: none;

  opacity: 0;
  pointer-events: none;

  transition: opacity .8s ease;
}

body.page-namikaze.loading-complete .namikaze-scroll-mark{
  opacity: 1;
  pointer-events: auto;
  transition-delay: .25s;
}

.namikaze-scroll-mark a,
.namikaze-scroll-mark:visited{
  color: var(--nk-blue);
  text-decoration: none;
}

.wavy-text span{
  position: relative;
  display: inline-block;
  animation: wave 2s infinite;
  animation-delay: calc(0.1s * var(--i));
}

.wavy-text_arrow{
  position: absolute;
  top: 30px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--nk-blue);
  border-bottom: 1px solid var(--nk-blue);
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: float 2s infinite;
}

@keyframes wave{
  0%, 100%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-10px);
  }
}

@keyframes float{
  0%, 100%{
    transform: translateY(-20%) rotate(-45deg);
  }
  50%{
    transform: translateY(20%) rotate(-45deg);
  }
}

/* =========================
   SECTION COMMON
========================= */

.namikaze-section{
  position: relative;
  padding: clamp(86px, 14vw, 160px) 24px;
  background: transparent;
}

.namikaze-section::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(880px, 82vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(81, 112, 133, 0.045),
    transparent
  );
}

.namikaze-section__inner{
  width: min(1080px, 100%);
  margin: 0 auto;
}

.namikaze-section h2{
  margin: 0 0 28px;
  font-family: "Cormorant Garamond","Noto Serif JP",serif;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--nk-deep);
}

.namikaze-section p{
  max-width: 760px;
  font-family: "Cormorant Garamond","Noto Serif JP",serif;
  font-size: clamp(15px, 1.5vw, 28px);
  line-height: 2;
  color: rgba(29,41,44,.82);
}

/* =========================
WATER WORLD
========================= */

.namikaze-water-world{
  position: relative;
  overflow: hidden;
  background: #2f5964;
  isolation: isolate;
}

.nk-bg-video{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.page-namikaze.loading-complete .nk-bg-video{
  opacity: 1;
}

.nk-bg-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  filter:
  saturate(.65)
  contrast(.9)
  brightness(1.06);
}

.namikaze-water-world .namikaze-section{
  position: relative;
  z-index: 1;
  background: transparent;
}
.namikaze-water-world .namikaze-section::before{
  display: none;
}

/* =========================
   背景色
========================= */
/* MAP〜QUALIFIER：同じ海の上に浮いてる感じ */
.namikaze-water-world .kanagawa-map-section{
  background: rgba(8, 85, 22, 0.342);
}
.namikaze-water-world .qualifier-section{
  background:
    radial-gradient(
      circle at 72% 128%,
      rgba(237, 221, 192, .12),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(8, 85, 22, 0.342) 0%,
      rgba(47, 89, 100, .88) 100%
    );
}

/* ENTRY：少し明るくして、次の案内エリア感を出す */
.namikaze-water-world .entry-section{
  background:
    radial-gradient(
      circle at 72% 18%,
      rgba(237, 221, 192, .12),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(47, 89, 100, .88) 0%,
      rgba(62, 105, 112, .92) 100%
    );
}

/* ARCHIVE：少し暗くして締める */
.namikaze-water-world .archive-section{
  background:
    linear-gradient(
      180deg,
      rgba(62, 105, 112, .92) 0%,
      rgba(34, 63, 70, .96) 100%
    );
}

/* =========================
   ABOUT
========================= */
.namikaze-water-world .namikaze-about{
  background:
    linear-gradient(
      180deg,
      rgba(237, 221, 192, 0.969) 0%,
      rgba(237, 221, 192, 0.473) 70%,
      rgba(8, 85, 22, 0.342) 100%
    );
}

.namikaze-about{
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.namikaze-about__inner{
  display: grid;
  justify-items: start;
}
.namikaze-about__inner p{
  font-family: "EB Garamond","Noto Serif JP",serif;
  font-weight: 400;
  font-size: clamp(16px, 2.2vw, 42px);
  letter-spacing: .02em;
}
.namikaze-about__inner p:first-child{
  color: var(--nk-green);
  font-size: clamp(18px, 2.3vw, 42px);
  font-family: "Cinzel Decorative","Noto Serif JP",serif;
  font-weight: 400;
  letter-spacing: .02em;
}
.namikaze-about__inner h2{
  font-family: "Cormorant Garamond","Noto Serif JP",serif;
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 200;
  letter-spacing: .01em;
  margin: 20px 0 40px;
  line-height: 1.4;
}

/* =========================
   KANAGAWA MAP
========================= */
.kanagawa-map-section{
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h, 60px) + 40px) 24px 64px;
}
.kanagawa-map-section .namikaze-section__inner{
  position: relative;
  width: min(1280px, 100%);
  min-height: calc(100svh - var(--header-h, 60px) - 104px);
  display: grid;
  place-items: center;
}
.kanagawa-map-section p,
.kanagawa-map-section h2{
  position: absolute;
  left: clamp(8px, 4vw, 96px);
  z-index: 2;
}

.kanagawa-map-section p{
  top: clamp(16px, 5vh, 72px);
  margin: 0;
}

.kanagawa-map-section h2{
  top: clamp(8px, 10vh, 120px);
  margin: 0;
  font-family: "Alfa Slab One",monospace;
  font-size: clamp(12px, 3vw, 52px);
  color: var(--nk-bg);
}

.kanagawa-map-section p{
  margin: 0 0 10px;
  font-family: "Cinzel Decorative","Noto Serif JP",monospace;
  font-size: clamp(6px, 1.3vw, 22px);
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--nk-bg);
}

.map-lead{
  margin-bottom: 36px;
}

.kanagawa-map{
  display: grid;
  place-items: center;
}

.kanagawa-map__art{
  position: relative;
  width: min(860px, 94vw);
  aspect-ratio: 1.35 / 1;
}

.kanagawa-map__image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: .86;
  filter: drop-shadow(0 24px 40px rgba(29,41,44,.16));
}

.map-pin{
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #557179;
  font-family: "Alfa Slab One", monospace;
  font-size: clamp(10px, 1.9vw, 28px);
  letter-spacing: .09em;

  /* 文字をピンの左側にする */
  flex-direction: row-reverse;
}

.map-pin::before{
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;

  background: rgba(85, 113, 121, 0.64);
  box-shadow:
    0 0 0 6px rgba(85, 113, 121, 0.12),
    0 0 0 14px rgba(85, 113, 121, 0.08);
}

.map-pin:hover::before{
  animation: map-ripple 1.1s ease-out infinite;
}

@keyframes map-ripple{
  0%{
    box-shadow:
      0 0 0 4px rgba(85, 113, 121, 0.28),
      0 0 0 10px rgba(85, 113, 121, 0.18);
  }
  100%{
    box-shadow:
      0 0 0 16px rgba(102, 131, 124, 0),
      0 0 0 28px rgba(102, 131, 124, 0);
  }
}

.map-pin--shonan{ left: 43%; top: 65%; }
.map-pin--kawasaki{ left: 81%; top: 27%; }
.map-pin--machida{ left: 55%; top: 30%; }
.map-pin--yokohama{ left: 74%; top: 43%; }

/* =========================
   QUALIFIER HORIZONTAL
========================= */

.qualifier-section{
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}

.qualifier-sticky{
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(120px, 22vw) 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);

  padding:
    calc(var(--header-h, 60px) + 48px)
    clamp(18px, 4vw, 64px)
    72px;
}

.qualifier-title-rail{
  margin-top: 15px;
  align-self: stretch;
  display: flex;
  flex-direction: row;
  justify-content: center;
  min-width: 0;
}

.qualifier-title-rail h2{
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;

  font-size: clamp(24px, 7.8vw, 108px);
  line-height: .66;
  letter-spacing: .07em;
  color: rgba(29, 41, 44, 0.743);
}

.qualifier-title-rail h2 span{
  display: block;
}

.qualifier-title-rail p{
  writing-mode: vertical-rl;
  margin: 28px 0 0;
  font-family: "Noto Serif JP",serif;
  font-size: clamp(14px, 4.7vw, 28px);
  letter-spacing: .28em;
  color: rgba(29, 41, 44, 0.709);
}

.qualifier-track{
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  padding:
    clamp(12px, 3vw, 36px)
    clamp(22px, 5vw, 72px)
    clamp(24px, 4vw, 48px);

  scroll-behavior: smooth;
}

.qualifier-track::-webkit-scrollbar{
  height: 6px;
}

.qualifier-track::-webkit-scrollbar-track{
  background: rgba(81,112,133,.12);
  border-radius: 999px;
}

.qualifier-track::-webkit-scrollbar-thumb{
  background: rgba(81,112,133,.42);
  border-radius: 999px;
}

.qualifier-list{
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 3vw, 44px);
  width: max-content;
}

.qualifier-card{
  position: relative;
  flex: 0 0 min(72vw, 360px);
  min-height: clamp(420px, 58vh, 560px);

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: clamp(24px, 3vw, 38px);

  scroll-snap-align: center;

  overflow: hidden;
  border-radius: 36px;

  background:
    linear-gradient(
      180deg,
      #efe7d2f4,
      #efe7d2e5
    );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,.22);

  box-shadow:
    0 28px 80px rgba(29,41,44,.10);

  scroll-margin-top: 120px;
}

.qualifier-card__area{
  margin: 0 0 6px;
  font-family: "Cormorant Garamond","Noto Serif JP",monospace;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: .12em;
  opacity: .78;
}

.qualifier-card__title-row{
  display: flex;
  align-items: center;
  gap: 16px;
}

.qualifier-card__header p{
  margin: 0 5px;
  font-family: "Cormorant Garamond","Noto Serif JP",monospace;
  font-size: clamp(14px, 1.5vw, 22px);
  
}
.qualifier-card__title-row h3{
  margin: 0 0 10px;
  font-family: "CINZEL","Noto Serif JP",monospace;
  font-size: clamp(34px, 3vw, 64px);
  font-weight: 500;
  color: var(--nk-ink);
  line-height: .85;
  letter-spacing: .01em;
}

.qualifier-details-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--nk-deep);
  color: var(--nk-bg);
  text-decoration: none;
  font-family: "Cinzel Decorative", monospace;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  white-space: nowrap;
  transform: translateY(-6px);
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.qualifier-details-button:hover{
  background: var(--nk-bg);
  color: var(--nk-ink);
  transform: translateY(-4px);
}

.qualifier-card__info{
  margin: 14px 0 0;
}

.qualifier-card__info > div{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 3px;
  padding: 15px 0;
  border-top: 1px solid rgba(0,0,0,.14);
}

.qualifier-card__info > div:last-child{
  border-bottom: 1px solid rgba(0,0,0,.14);
}

.qualifier-card__info dt{
  font-family: "Cinzel Decorative", monospace;
  font-weight: 500;
  font-size: 13px;
  line-height: 2.4;
  letter-spacing: .12em;
  opacity: .72;
}

.qualifier-card__info dd{
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "EB Garamond","Noto Serif JP", serif;
  font-size: clamp(12px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .05em;
}

.qualifier-address{
  display: inline-block;
}

.qualifier-icon-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #66837c;
  background: rgba(102, 131, 124, .12);
  text-decoration: none;
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.qualifier-icon-link svg{
  width: 20px;
  height: 20px;
  display: block;
}

.qualifier-icon-link:hover{
  background: #66837c;
  color: #fff;
  transform: translateY(2px);
}

.qualifier-entry-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--nk-deep);
  color: var(--nk-bg);
  text-decoration: none;
  font-family: "EB Garamond",monospace;
  font-weight: 1000;
  font-size: 15px;
  letter-spacing: .12em;
  white-space: nowrap;
  transform: translateY(-1px);
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.qualifier-entry-button:hover{
  background: var(--nk-bg);
  color: var(--nk-ink);
  transform: translateY(1px);
}

.qualifier-scroll-wrap {
  min-width: 0;
  width: 100%;
  position: relative;
}

@media (max-width: 768px) {
  .qualifier-scroll-wrap{
    width: 100svw;
  }
}

@media (max-width: 640px){
  .page-namikaze header{
    --header-h: 82px;
  }

  .qualifier-card {
    scroll-margin-top: 280px;
  }

  .qualifier-card__title-row{
    gap: 12px;
    flex-wrap: wrap;
  }

  .qualifier-card__info > div{
    grid-template-columns: 76px 1fr;
    gap: 12px;
  }

  .qualifier-card__info dd{
    align-items: flex-start;
  }

  @keyframes nk-logo-color-rise{
    0%{
      clip-path: inset(100% 0 0 0);
    }

    25%{
      clip-path: inset(72% 0 0 0);
    }

    50%{
      clip-path: inset(51% 0 0 0);
    }

    75%{
      clip-path: inset(30% 0 0 0);
    }

    100%{
      clip-path: inset(0 0 0 0);
    }
  }

  @keyframes wave-back-move{
    0%   { transform: translate(-29vw, 18vh); }
    25%  { transform: translate(-23vw, -22vh); }
    50%  { transform: translate(-29vw, -31vh); }
    75%  { transform: translate(-21vw, -40vh); }
    100% { transform: translate(-34vw, -90vh); }
  }

  @keyframes wave-mid-move{
    0%   { transform: translate(-5vw, 18vh); }
    25%  { transform: translate(-18vw, -16vh); }
    50%  { transform: translate(-11vw, -24vh); }
    75%  { transform: translate(-15vw, -33vh); }
    100% { transform: translate(-6vw, -90vh); }
  }

  @keyframes wave-front-move{
    0%   { transform: translate(-25vw, 18vh); }
    25%  { transform: translate(-30vw, -18vh); }
    50%  { transform: translate(-24vw, -27vh); }
    75%  { transform: translate(-32vw, -37vh); }
    100% { transform: translate(-27vw, -98vh); }
  }
}


body.page-namikaze .qualifier-track {
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 231, 210, .75) transparent;
}

body.page-namikaze .qualifier-track::-webkit-scrollbar {
  height: 6px;
}

body.page-namikaze .qualifier-track::-webkit-scrollbar-track {
  background: transparent;
}

body.page-namikaze .qualifier-track::-webkit-scrollbar-thumb {
  background: rgba(239, 231, 210, .75);
  border-radius: 999px;
}

body.page-namikaze .qualifier-track::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

/* =========================
   ENTRY
========================= */
.entry-section{
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.entry-section__inner > p:first-child{
  margin: 0 5px;
  font-family: "Noto Serif JP",monospace;
  font-size: clamp(8px, 3.8vw, 32px);
  color: rgba(237, 221, 192, 0.658);
}
.entry-section h2{
  color: var(--nk-bg);
  font-family: "Cormorant Garamond","Noto Serif JP",serif;
  font-size: clamp(6px, 5.6vw, 62px);
  font-weight: 200;
  letter-spacing: .01em;
  margin: 20px 0 50px;
  line-height: 0.2;
}

.entry-section::before{
  display: block;
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(920px, 84vw);
  height: 24px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(237,221,192,.22), transparent 68%);
  opacity: .75;
}
.entry-panel{
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background:
    linear-gradient(
      180deg,
      rgba(237,221,192,.18),
      rgba(237,221,192,.08)
    );
  border: 1px solid rgba(237,221,192,.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0,0,0,.16);
}
.entry-panel > p:first-child{
  margin: 0 5px;
  font-family: "Cormorant Garamond","Noto Serif JP",monospace;
  font-size: clamp(8px, 2.6vw, 32px);
  color: rgba(237, 221, 192, 0.866);
}

.entry-list{
  display: grid;
  gap: 0;
  margin: 0;
}

.entry-list div{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 14px 10px;
  border-top: 1px solid rgba(237,221,192,.2);
}

.entry-list dt{
  font-family: "Noto Serif JP",monospace;
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 1.8;
  color: rgba(237,221,192,.62);
}

.entry-list dd{
  margin: 0;
  font-family: "EB Garamond","Noto Serif JP",serif;
  font-size: 18px;
  color: rgba(237,221,192,.9);
}

.entry-notes{
  margin-top: 28px;
}

.entry-notes p{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(237, 221, 192, 0.723);
}

/* =========================
   ARCHIVE
========================= */
.archive-section{
  position: relative;
  /* min-height: 100svh; */
  overflow: hidden;
}
.archive-section p:first-child{
  margin: 0 5px;
  font-family: "Noto Serif JP",monospace;
  font-size: clamp(8px, 1.8vw, 32px);
  color: rgba(237, 221, 192, 0.384);
}
.archive-section h2{
  color: rgba(237, 221, 192, 0.562);
  font-family: "Cormorant Garamond","Noto Serif JP",serif;
  font-size: clamp(6px, 5.6vw, 62px);
  font-weight: 200;
  letter-spacing: .01em;
  margin: 20px 0 50px;
  line-height: 0.2;
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 760px){
  .kanagawa-map-section p,
  .kanagawa-map-section h2{
    position: absolute;
    left: clamp(8px, 4vw, 96px);
    z-index: 2;
  }

  .kanagawa-map-section p{
    top: clamp(16px, 2vh, 72px);
    margin: 0;
  }

  .kanagawa-map-section h2{
    top: clamp(8px, 5vh, 120px);
    margin: 0;
    font-family: "Alfa Slab One",monospace;
    font-size: clamp(12px, 7vw, 52px);
    color: var(--nk-bg);
  }

  .kanagawa-map-section p{
    margin: 0 0 10px;
    font-family: "Cinzel Decorative","Noto Serif JP",monospace;
    font-size: clamp(6px, 3.8vw, 32px);
    font-weight: 300;
    letter-spacing: .02em;
    color: var(--nk-bg);
  }

  .map-pin{
    font-size: clamp(10px, 2.4vw, 24px);
    letter-spacing: .09em;
  }
  .map-pin--shonan{ left: 41%; top: 65%; }
  .map-pin--kawasaki{ left: 79%; top: 27%; }
  .map-pin--machida{ left: 53%; top: 30%; }
  .map-pin--yokohama{ left: 72%; top: 43%; }

  .qualifier-sticky{
    grid-template-columns: 1fr;
    gap: 2px;

    padding:
      calc(var(--header-h, 88px) + 32px)
      0
      64px;
  }

  .qualifier-title-rail{
    padding: 0 22px;
    display: block;
  }

  .qualifier-title-rail p,
  .qualifier-title-rail h2,
  .qualifier-title-ja{
    writing-mode: horizontal-tb;
  }

  .qualifier-title-rail h2{
    font-size: clamp(32px, 10vw, 72px);
    line-height: .65;
  }
  .qualifier-title-rail p{
    font-size: 16px;
    writing-mode: unset;
    margin: 0 5px;
  }

  .qualifier-track{
    padding-inline: 22px;
  }

  .qualifier-card{
    flex-basis: min(82vw, 340px);
    min-height: 450px;
  }

  .qualifier-card__info dd{
    font-size: clamp(12px, 3.2vw, 22px);
  }

  .entry-section h2{
    font-size: clamp(16px, 9.4vw, 62px);
    margin: 0 0 30px;
    line-height: 0.6;
  }
  .entry-panel > p:first-child{
    font-size: clamp(8px, 4vw, 22px);
  }
  .entry-list dd{
    font-size: 16px;
  }

  .archive-section p:first-child{
    font-size: clamp(8px, 3.2vw, 32px);
  }
  .archive-section h2{
    font-size: clamp(16px, 9.4vw, 62px);
    line-height: 0.6;
    margin: 0 0 20px;
  }
}

@media (max-width: 520px){
  .nk-logo-stage{
    width: min(88vw, 420px);
  }
  .namikaze-section{
    padding-inline: 18px;
  }
}
/* =========================
   BUTTON
========================= */

.namikaze-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  margin-top: 28px;
  padding: 14px 22px;

  border: 1px solid rgba(81,112,133,.45);
  background: var(--nk-bg);
  border-radius: 999px;
  color: var(--nk-ink);
  text-decoration: none;
  font-family: "Cormorant Garamond",monospace;
  font-weight: 1000;
  font-size: 22px;
  letter-spacing: .04em;
  white-space: nowrap;
  transform: translateY(-1px);
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;

}

.namikaze-button.is-disabled{
  opacity: .58;
  pointer-events: none;
}

.namikaze-button:hover{
  background: var(--nk-ink);
  color: var(--nk-bg);
  transform: translateY(1px);
}

/* ========================================
  footer tune
======================================== */
.page-gallery footer {
  display: none;
}

/* ========================================
  utility
======================================== */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========== Footer ========== */
footer {
  position: relative;
  z-index: 30;
  margin-top: 0;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1px 6px 1px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  opacity: 0.6;
}
.sns {
  display: inline-flex;
  gap: 12px;
}
.sns a{
  color: rgba(221,221,221,.75);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.sns a:hover {
  color: #fff;
}
.sns a svg{
  display:block;
  width:24px;
  height:24px;
}
.sns svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.sns a:hover svg {
  stroke-width: 2.2;
}

.copy {
  font-size: 12px;
  opacity: 0.5;
}

/* 小さめ端末でヘッダー分の余白 */
.spacer {
  display: none;
}

@media (max-width: 900px) and (orientation: portrait), (max-aspect-ratio: 3/4) {
  .sns {
    gap: 10px;
  }
  .copy {
    order: 2;
  }
}


/* =========================
   T-TATTOO PAGE
========================= */

:root {
  --tattoo-ink: #24170f;
  --tattoo-ink-soft: #4c3422;
  --tattoo-paper: #b98a56;
  --tattoo-paper-light: #d1a36c;
  --tattoo-paper-dark: #553923;
  --tattoo-line: rgba(43, 25, 14, 0.42);
  --tattoo-panel: rgba(238, 199, 139, 0.42);
  --tattoo-panel-strong: rgba(91, 56, 31, 0.38);
  --tattoo-white: #fff4df;
}

html {
  scroll-behavior: smooth;
}

/* タトゥーページだけスクロール可能にする */
html:has(.tattoo-page),
body:has(.tattoo-page) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body:has(.tattoo-page) {
  position: static;
}

/* =========================
   T-TATTOO PAGE BACKGROUND
========================= */

/* 背景本体 */
.tattoo-page {
  position: relative;
  min-height: 100vh;
  color: var(--tattoo-ink);
  background-color: #b88955;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  overflow-x: clip;
  isolation: isolate;
}

/* 色レイヤー：今の色味を作る */
/* 色レイヤー：少しグレー・緑を足した版 */
/* 色レイヤー：黄みを抑えて、グレー・オリーブ寄りにした版 */
.tattoo-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    /* 全体の黄みを抑える青みグレー */
    linear-gradient(
      rgba(131, 170, 162, 0.182),
      rgba(154, 196, 187, 0.199)
    ),

    /* 紙の中心色：黄色を減らしてベージュ〜くすみ茶に */
    radial-gradient(
      ellipse at center,
      rgba(215, 184, 135, 0.938) 0%,
      rgba(201, 162, 118, 0.757) 42%,
      rgba(129, 97, 70, 0.527) 70%,
      rgba(68, 52, 40, 0.623) 100%
    ),

    /* 上下の焼け感：オレンジではなく焦げ茶寄り */
    linear-gradient(
      to bottom,
      rgba(49, 41, 34, 0.26) 0%,
      rgba(139, 111, 82, 0.10) 24%,
      rgba(183, 148, 107, 0.04) 56%,
      rgba(50, 42, 35, 0.30) 100%
    ),

    /* 左右の暗さ：セピアよりグレーブラウン寄り */
    linear-gradient(
      to right,
      rgba(41, 34, 30, 0.28) 0%,
      rgba(86, 73, 57, 0.10) 22%,
      rgba(182, 148, 106, 0.02) 50%,
      rgba(86, 73, 57, 0.11) 78%,
      rgba(41, 34, 30, 0.28) 100%
    );

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-blend-mode:
    multiply,
    normal,
    normal,
    normal;
}

/* 和紙テクスチャレイヤー：色の上に乗せる */
.tattoo-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(109, 76, 51, 0.329),
      rgba(122, 85, 57, 0.277)
    ),
    url("../img/gallery/texture/washi_texture_02.webp");

  background-size:
    cover,
    cover;

  background-position:
    center,
    center;

  background-repeat:
    no-repeat,
    no-repeat;

  background-blend-mode:
    color-burn,
    luminosity;

  opacity: 0.58;
  mix-blend-mode: multiply;

  filter:
    grayscale(1)
    contrast(1.9)
    brightness(1.16);
}

.tattoo-page > section,
.tattoo-page > nav,
.tattoo-fixed-menu,
.tattoo-modal {
  position: relative;
  z-index: 2;
}

/* コンテンツを背景より上に出す */
.tattoo-page > section,
.tattoo-page > nav,
.tattoo-fixed-menu,
.tattoo-modal {
  position: relative;
  z-index: 1;
}

.tattoo-page * {
  box-sizing: border-box;
}

.tattoo-page a {
  color: inherit;
  text-decoration: none;
}

.tattoo-page img {
  max-width: 100%;
}


.page-tattoo {
  background-color: rgb(164, 142, 105);
  --header-h: 88px;
}

.page-tattoo header{
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}
.page-tattoo .logo-img {
  padding-top: 35%;
  padding-left: 10%;
  width: 68px;
  height: auto;
  opacity: 0.7;
}
.page-tattoo .hamburger span,
.page-tattoo .hamburger span::before,
.page-tattoo .hamburger span::after{
  display: block;
  width: 38px;
  height: 3px;
  margin: 3px 0;
  background:
    linear-gradient(
      to right,
      rgba(43,26,18,1) 70%,
      rgba(43,26,18,.2)
    );

  /* 筆っぽい揺れ */
  border-radius: 2px;
  transform: scaleX(1);
}

.page-tattoo .hamburger span:nth-child(1){
  transform: scaleX(0.9);
}
.page-tattoo .hamburger span:nth-child(2){
  transform: scaleX(1.1);
}
.page-tattoo .hamburger span:nth-child(3){
  transform: scaleX(0.85);
}

.page-tattoo .hamburger.active span,
.page-tattoo .hamburger.active span::before,
.page-tattoo .hamburger.active span::after {
  background:
    linear-gradient(
      to right,
      rgba(216, 178, 118, 1) 70%,
      rgba(216, 178, 118, 0.25)
    );
}

.page-tattoo .menu{
  background: rgba(38, 29, 18, 0.94);
}
.page-tattoo .menu nav a{
  color: #d8b276;
  font-family: "Ma Shan Zheng","Noto Serif JP",sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;

  line-height: 1.08;
}

.page-tattoo .sns a{
  color: #d8b276;
}


/* =========================
   HERO
========================= */

.tattoo-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  padding: clamp(46px, 6vw, 128px) 20px clamp(86px, 11vw, 188px);
}

.tattoo-hero::before {
  content: none;
}

.tattoo-hero__inner {
  position: relative;
  width: min(1280px, 100%);
  min-height: min(760px, calc(100svh - 150px));
  display: grid;
  place-items: center;
}

.tattoo-hero__visual {
  margin: 0;
  display: grid;
  place-items: center;
}

.tattoo-hero__visual img {
  display: block;
  width: min(86vw, 1060px);
  max-height: 78svh;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 20px 26px rgba(34, 20, 12, 0.18))
    contrast(1.02)
    saturate(1.02);
}

/* PCでは左下 */
.tattoo-hero__actions {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  transform: translateY(48px);
}

/* 画面には出さないがSEO/アクセシビリティ用に残す */
.tattoo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.tattoo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.tattoo-hero__visual {
  margin: 0;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.tattoo-hero__visual img {
  width: min(100%, 680px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 24px 28px rgba(34, 20, 12, 0.24))
    sepia(0.08)
    contrast(1.03);
}

/* BUTTON */

/* =========================
   TATTOO BUTTON - 渋め版
========================= */
/* =========================
   TATTOO BUTTON - 渋め版
========================= */

.tattoo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  min-width: 164px;
  padding: 12px 26px;

  border: 1px solid rgba(34, 22, 14, 0.72);
  border-radius: 4px;

  background:
    linear-gradient(
      135deg,
      rgba(64, 54, 22, 0.771),
      rgba(51, 38, 20, 0.863)
    );

  

  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: none;

  box-shadow:
    0 10px 24px rgba(24, 14, 8, 0.22),
    inset 0 1px 0 rgba(255, 220, 160, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.tattoo-hero__actions a {
  color: #d8b276;
}

/* 細い内枠 */
.tattoo-btn::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(218, 177, 113, 0.22);
  pointer-events: none;
}

/* ホバー */
.tattoo-btn:hover {
  transform: translateY(2px);
  background:
    linear-gradient(
      135deg,
      rgba(44, 27, 16, 0.96),
      rgba(20, 12, 8, 0.98)
    );
  color: #f0d49c;
  border-color: rgba(216, 178, 118, 0.48);
}

/* 左の「作品を見る」用：古紙札っぽい明るめ */
.tattoo-btn--ghost {
  background:
    linear-gradient(
      135deg,
      rgba(198, 155, 93, 0.72),
      rgba(139, 97, 54, 0.72)
    );

  color: #24170f;
  border-color: rgba(42, 25, 15, 0.62);

  box-shadow:
    0 10px 22px rgba(24, 14, 8, 0.18),
    inset 0 1px 0 rgba(255, 228, 174, 0.24),
    inset 0 -1px 0 rgba(51, 29, 15, 0.24);
}

.tattoo-btn--ghost::before {
  border-color: rgba(43, 25, 15, 0.22);
}

.tattoo-btn--ghost:hover {
  background:
    linear-gradient(
      135deg,
      rgba(92, 58, 32, 0.9),
      rgba(42, 25, 14, 0.96)
    );
  color: #f0d49c;
}

.tattoo-btn--large {
  min-height: 54px;
  padding-inline: 34px;
}
.tattoo-section__inner a {
  color: #d8b276;
}

/* PAGE MENU */

.tattoo-page-menu {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.8vw, 34px);
  padding: 14px 18px;
  border-top: 1px solid rgba(45, 26, 15, 0.42);
  border-bottom: 1px solid rgba(45, 26, 15, 0.42);
  background:
    linear-gradient(
      to right,
      rgba(67, 42, 25, 0.58),
      rgba(192, 134, 72, 0.56),
      rgba(67, 42, 25, 0.58)
    );
  backdrop-filter: blur(8px);
}

.tattoo-page-menu a {
  position: relative;
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: 0.13em;
  color: #28170d;
  white-space: nowrap;
}

.tattoo-page-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.tattoo-page-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* COMMON SECTION */

.tattoo-section {
  padding: clamp(72px, 9vw, 128px) 20px;
  scroll-margin-top: 76px;
}

.tattoo-section__inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.tattoo-section__inner--wide {
  width: min(1240px, 100%);
}

.tattoo-section h2 {
  margin: 0 0 28px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--tattoo-ink);
}

.tattoo-section__text,
.tattoo-about__body,
.tattoo-note-box,
.tattoo-access-card,
.tattoo-guest-card,
.tattoo-contact__text {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2;
  color: rgba(36, 23, 15, 0.88);
}

.tattoo-about__body {
  width: min(760px, 100%);
}

.tattoo-about__body p {
  margin: 0 0 16px;
}

/* STYLE LIST */

.tattoo-style-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.tattoo-style-list li {
  padding: 9px 13px;
  border: 1px solid rgba(42, 25, 15, 0.42);
  background: rgba(238, 199, 139, 0.22);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* GALLERY */

.tattoo-gallery-grid {
  column-count: 4;
  column-gap: 14px;
  margin-top: 34px;
}

.tattoo-gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid rgba(42, 25, 15, 0.38);
  background: rgba(38, 22, 12, 0.22);
  cursor: pointer;
  break-inside: avoid;
  overflow: hidden;
}

.tattoo-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.tattoo-gallery-item:hover img {
  transform: scale(1.035);
  filter: contrast(1.04) sepia(0.08);
}

/* PRICE */

.tattoo-price-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tattoo-price-card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(45, 26, 15, 0.46);
  background:
    linear-gradient(
      135deg,
      rgba(245, 207, 142, 0.30),
      rgba(82, 50, 28, 0.22)
    );
  box-shadow: 0 18px 50px rgba(30, 18, 10, 0.13);
}

.tattoo-price-card__name {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.tattoo-price-card__price {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.tattoo-price-card__note {
  margin: 18px 0 0;
  font-size: 15px;
}

.tattoo-note-box {
  margin-top: 20px;
  padding: 20px 22px;
  border-left: 1px solid rgba(42, 25, 15, 0.55);
  background: rgba(238, 199, 139, 0.18);
}

.tattoo-note-box p {
  margin: 0;
}

.tattoo-note-box p + p {
  margin-top: 6px;
}

/* FLOW */

.tattoo-flow {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.tattoo-flow li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(42, 25, 15, 0.32);
}

.tattoo-flow span {
  font-size: 18px;
  letter-spacing: -0.04em;
  color: rgba(48, 29, 17, 0.62);
}

.tattoo-flow h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.tattoo-flow p {
  margin: 0;
  line-height: 1.8;
}

.tattoo-attention {
  margin-top: 48px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(42, 25, 15, 0.46);
  background:
  linear-gradient(
      135deg,
      rgba(238, 199, 139, 0.22),
      rgba(78, 48, 27, 0.16)
    );
}

.tattoo-attention h3,
.tattoo-guest-card h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.tattoo-attention ul {
  margin: 0;
  padding-left: 1.2em;
}

.tattoo-attention li {
  line-height: 1.9;
}

/* ACCESS / CONTACT */

.tattoo-access-card,
.tattoo-guest-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(42, 25, 15, 0.42);
  background: rgba(238, 199, 139, 0.18);
}

.tattoo-access-card__main {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.tattoo-guest-card {
  margin-top: 18px;
}

.tattoo-sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tattoo-sns-links a {
  padding: 8px 14px;
  border: 1px solid rgba(42, 25, 15, 0.48);
  background: rgba(238, 199, 139, 0.18);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.tattoo-contact {
  text-align: center;
  padding-bottom: clamp(96px, 12vw, 160px);
}

.tattoo-contact__text {
  width: min(620px, 100%);
  margin: 0 auto 28px;
}

.tattoo-contact__small {
  margin: 18px 0 0;
  font-size: 12px;
  color: rgba(36, 23, 15, 0.68);
}

/* FIXED MENU BUTTON */

.tattoo-fixed-menu {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(246, 220, 174, 0.42);
  border-radius: 50%;
  background: rgba(35, 21, 12, 0.84);
  color: #f5dfb8;
  font-size: 11px;
  letter-spacing: 0.12em;
  box-shadow: 0 12px 28px rgba(25, 15, 9, 0.28);
  backdrop-filter: blur(6px);
}

/* MODAL */
body.tattoo-modal-open {
  overflow: hidden !important;
}
.tattoo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 22px;
}

.tattoo-modal.is-open {
  display: grid;
}

.tattoo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 11, 7, 0.82);
}

.tattoo-modal__content {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 960px);
  max-height: 88svh;
}

.tattoo-modal__content img {
  display: block;
  max-width: 100%;
  max-height: 88svh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(245, 218, 178, 0.28);
  background: rgba(20, 12, 8, 0.8);
}

.tattoo-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 218, 178, 0.46);
  border-radius: 50%;
  background: rgba(24, 14, 8, 0.88);
  color: #f5dfb8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .tattoo-hero__inner {
    width: min(100%, 860px);
  }

  .tattoo-hero__actions {
    justify-content: center;
  }

  .tattoo-hero__visual {
    order: -1;
  }
  
  .tattoo-hero__visual img {
    width: min(94vw, 760px);
    max-height: 70svh;
  }

  .tattoo-gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 680px) {
  .tattoo-page {
    background-size: cover, cover, cover, 390px auto;
  }

  .tattoo-page::before {
    background-size:
      cover,
      cover,
      cover,
      auto 100%;
    background-position:
      center,
      center,
      center,
      center;
  }

  .tattoo-hero {
    min-height: auto;
    padding: 46px 18px 42px;
  }

  .tattoo-hero__inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .tattoo-hero__visual img {
    width: min(96vw, 560px);
    max-height: none;
  }

  /* スマホでは画像の下・中央 */
  .tattoo-hero__actions {
    position: static;
    transform: none;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
  }

  .tattoo-hero__actions .tattoo-btn {
    width: auto;
    min-width: 138px;
  }

  .tattoo-page-menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding-inline: 14px;
    scrollbar-width: none;
  }

  .tattoo-page-menu::-webkit-scrollbar {
    display: none;
  }

  .tattoo-section {
    padding: 68px 18px;
  }

  .tattoo-price-cards {
    grid-template-columns: 1fr;
  }

  .tattoo-gallery-grid {
    column-count: 2;
    column-gap: 10px;
  }

  .tattoo-gallery-item {
    margin-bottom: 10px;
  }

  .tattoo-flow li {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .tattoo-fixed-menu {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .tattoo-hero__actions {
    gap: 10px;
  }

  .tattoo-hero__actions .tattoo-btn {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
  }

  .tattoo-gallery-grid {
    column-count: 1;
  }

  .tattoo-contact .tattoo-btn {
    width: 100%;
  }
}

/* =========================
   TATTOO COMING SOON
========================= */

/* Coming soon中はヒーロー以外を非表示 */
.tattoo-page--coming-soon .tattoo-page-menu,
.tattoo-page--coming-soon .tattoo-section,
.tattoo-page--coming-soon .tattoo-fixed-menu,
.tattoo-page--coming-soon .tattoo-modal {
  display: none !important;
}

/* HEROだけでファーストビュー完結 */
.tattoo-page--coming-soon .tattoo-hero {
  min-height: calc(100svh - 72px);
  padding-bottom: clamp(72px, 8vh, 110px);
}

/* PCでも中央下に配置 */
.tattoo-page--coming-soon .tattoo-coming-soon {
  position: absolute;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);

  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;

  width: auto;
  margin: 0;
}

.tattoo-coming-soon p {
  position: relative;
  margin: 0;
  padding: clamp(17px, 1.8vw, 24px) clamp(42px, 5vw, 76px);

  border: 1px solid rgba(37, 23, 14, 0.78);
  border-radius: 2px;

  background:
    linear-gradient(
      135deg,
      rgba(57, 36, 22, 0.9),
      rgba(24, 15, 9, 0.96)
    );

  color: #d8b276;

  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(22px, 3.8vw, 42px);
  letter-spacing: 0.22em;
  line-height: 1;
  white-space: nowrap;

  box-shadow:
    0 16px 36px rgba(24, 14, 8, 0.26),
    inset 0 1px 0 rgba(255, 220, 160, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.36);
}

/* 内枠 */
.tattoo-coming-soon p::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(218, 177, 113, 0.22);
  pointer-events: none;
}

/* スマホも中央下 */
@media (max-width: 680px) {
  .tattoo-page--coming-soon .tattoo-hero {
    min-height: calc(100svh - 72px);
    padding-bottom: 42px;
  }

  .tattoo-page--coming-soon .tattoo-coming-soon {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
  }

  .tattoo-coming-soon p {
    padding: 15px 34px;
    font-size: clamp(20px, 7vw, 32px);
    letter-spacing: 0.16em;
  }
}