/* =========================================================
   JASO — Jemmy and so on.
   見出し：Shrikhand ／ 本文：しっぽり明朝
   ========================================================= */
:root {
  /* ダークテーマ：--paper=背景 / --ink=文字 */
  --paper: #0D0C0B;
  --ink: #F2EEE6;
  --sub: #A9A39A;
  --line: #3A3733;
  --ph: #24211E;
  --white: #FFFFFF;
  --deep: #070706;
  --brush: #D9601C;
  --accent: #F08A4B;
  --link-hover: #F08A4B;
  --pad: 4vw;
  --head: 'Shrikhand', cursive;
  --body: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: var(--body); line-height: 1.8; }
img, video { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--link-hover); }
button { font: inherit; color: inherit; }
.nb { display: inline-block; white-space: nowrap; }
.head { font-family: var(--head); font-weight: 400; letter-spacing: 0.01em; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.sub { color: var(--sub); }
.small { font-size: 13px; }

/* ---------- 画像枠（写真が無い時はグレーで表示） ---------- */
.media { position: relative; background: var(--ph); overflow: hidden; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media.r-45 { aspect-ratio: 4 / 5; } .media.r-34 { aspect-ratio: 3 / 4; }
.media.r-11 { aspect-ratio: 1 / 1; } .media.r-43 { aspect-ratio: 4 / 3; } .media.r-169 { aspect-ratio: 16 / 9; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--paper); border: 1px solid var(--ink); font-size: 11px; line-height: 1; padding: 5px 8px; }
.badge.sold { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- H 共通ヘッダー ---------- */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header .logo { font-family: var(--head); font-size: 28px; text-decoration: none; line-height: 1; }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid currentColor; }
.lang button { min-width: 44px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 13px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.base-btn { border: 1px solid currentColor; padding: 8px 14px; font-size: 13px; text-decoration: none; white-space: nowrap; }
.menu-btn { width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0; }
.menu-btn span { display: block; width: 26px; height: 2px; background: currentColor; }
/* TOPだけ：メインビジュアルに重なる透過ヘッダー */
.is-top .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; color: var(--white); }
.is-top .site-header a { color: var(--white); }
.is-top .lang button[aria-pressed="true"] { background: var(--white); color: #111; }
@media (max-width: 640px) { .base-btn { display: none; } .site-header .logo { font-size: 24px; } }

/* ---------- M メニュー画面 ---------- */
.menu { position: fixed; inset: 0; z-index: 100; background: #000; color: var(--ink); display: flex; flex-direction: column; padding: 14px var(--pad) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.menu.open { opacity: 1; visibility: visible; }
.menu a { color: var(--ink); }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-top .logo { font-family: var(--head); font-size: 28px; text-decoration: none; }
.menu-close { width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.menu-links a { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; padding: 10px 0; border-bottom: 1px solid #3A3833; text-decoration: none; }
.menu-links .head { font-size: clamp(36px, 6vw, 56px); line-height: 1.15; }
.menu-links .sub-ja { font-size: 14px; color: #C9C4BA; }
.menu-links a[aria-current="page"] .head { color: var(--accent); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; }
.menu-foot a { color: #C9C4BA; }
body.menu-open { overflow: hidden; }

/* ---------- F 共通フッター ---------- */
.site-footer { position: relative; z-index: 1; background: #000; color: var(--ink); border-top: 1px solid var(--line); padding: 64px var(--pad) 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--ink); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; line-height: 2.1; }
.footer-cols div { display: flex; flex-direction: column; }
.copyright { font-size: 12px; color: var(--sub); }

/* ---------- T トップページ ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1000px; color: var(--white); display: flex; align-items: flex-end; padding: 0 var(--pad) 72px; overflow: hidden; background: #5E5A53; }
.hero .media { position: absolute; inset: 0; background: transparent; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 180px; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0)); z-index: 1; pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.35)); pointer-events: none; }
.hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.hero-text h1 { margin: 0; font-size: clamp(52px, 8vw, 104px); line-height: 1; }
.hero-text p { margin: 0; font-size: clamp(16px, 1.6vw, 20px); }
.tiles { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; padding: 28px; text-decoration: none; color: var(--white); overflow: hidden; background: #2B2825; }
.tile .media { position: absolute; inset: 0; background: transparent; }
.tile .media img { transition: transform .6s; }
.tile:hover .media img { transform: scale(1.04); }
.tile::after { content: ''; position: absolute; inset: 40% 0 0 0; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.45)); }
.tile > span { position: relative; z-index: 1; }
.tile .head { font-size: clamp(40px, 4vw, 52px); line-height: 1.1; }
.tile .tile-sub { display: flex; justify-content: space-between; font-size: 14px; }
.tile:hover { color: var(--white); }
.concept { border-top: 1px solid var(--line); padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.concept .head { font-size: clamp(40px, 5vw, 56px); line-height: 1.1; margin-bottom: 8px; }
.concept p + p { margin-top: 18px !important; }
.concept p { margin: 0; font-size: clamp(17px, 1.8vw, 22px); line-height: 2.1; max-width: 720px; }

/* ---------- P 一覧ページ共通 ---------- */
.page-title { padding-top: 64px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.crumb { font-size: 13px; color: var(--sub); }
.crumb a { color: var(--sub); }
.page-title h1 { margin: 0; font-size: clamp(48px, 6vw, 72px); line-height: 1; }
.page-title p { margin: 0; color: var(--sub); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters button { border: 1px solid var(--ink); background: transparent; padding: 9px 16px; font-size: 14px; cursor: pointer; min-height: 44px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.grid { padding-top: 48px; padding-bottom: 96px; display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.grid.sm { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 40px 20px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.card-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.card-meta { font-size: 12px; color: var(--sub); }
.card-name { font-size: 15px; font-weight: 500; }
.empty { padding: 48px 0; color: var(--sub); }

/* ---------- I 商品詳細 ---------- */
.item { padding-top: 24px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.gallery { flex: 3 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery .main { grid-column: span 2; }
.info { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.info h1 { margin: 0; font-size: 32px; line-height: 1.4; font-weight: 500; }
.price { font-size: 24px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 56px; min-height: 44px; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.sizes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.buy-btn { display: block; text-align: center; background: var(--ink); color: var(--paper); padding: 18px; text-decoration: none; letter-spacing: 0.08em; }
.buy-btn:hover { color: var(--paper); opacity: .85; }
.buy-btn.disabled { background: var(--line); pointer-events: none; }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: '+'; }
.details details[open] summary::after { content: '−'; }
.details p { margin: 10px 0 0; font-size: 14px; color: var(--sub); white-space: pre-line; }
.related { border-top: 1px solid var(--line); padding-top: 64px; }
.related h2 { margin: 0; font-size: 36px; }

/* ---------- S SELECT ---------- */
.pr-note { align-self: flex-start; border: 1px solid var(--line); padding: 10px 14px; font-size: 12px; color: var(--sub); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--sub); align-items: center; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filter-bar .filters { border: 0; padding: 0; }
.review { font-size: 13px; color: var(--sub); line-height: 1.7; }

/* ---------- J JOURNAL ---------- */
.feature { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.feature .media { flex: 3 1 520px; }
.feature-text { flex: 2 1 320px; display: flex; flex-direction: column; gap: 12px; }
.feature-text h2 { margin: 0; font-size: 36px; line-height: 1.2; }
.center-btn { display: flex; justify-content: center; padding-bottom: 96px; }
.outline-btn { border: 1px solid var(--ink); padding: 14px 28px; text-decoration: none; }

/* ---------- A ABOUT ---------- */
.about-hero { position: relative; height: 70vh; min-height: 420px; max-height: 720px; display: flex; align-items: flex-end; padding: 0 var(--pad) 56px; color: var(--white); background: #2B2825; overflow: hidden; }
.about-hero .media { position: absolute; inset: 0; background: transparent; }
.about-hero::after { content: ''; position: absolute; inset: 40% 0 0 0; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.4)); }
.about-hero > div { position: relative; z-index: 1; }
.about-hero h1 { margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.about-hero .crumb, .about-hero .crumb a { color: var(--white); }
.block { padding-top: 96px; padding-bottom: 96px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.block > .media { flex: 1 1 420px; max-width: 600px; }
.block-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.block-text h2 { margin: 0; font-size: 44px; line-height: 1.1; }
.block-text p { margin: 0; }
.story { align-items: flex-start; }
.story > .head { flex: 1 1 200px; font-size: 28px; }
.story .block-text { flex: 3 1 560px; font-size: 17px; line-height: 2.1; }
.contact { padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.contact h2 { margin: 0; font-size: 36px; }
.solid-btn { background: var(--ink); color: var(--paper); padding: 16px 32px; text-decoration: none; }
.solid-btn:hover { color: var(--paper); opacity: .85; }

/* ---------- 法務・名称一覧 ---------- */
.doc { max-width: 820px; padding-top: 24px; padding-bottom: 96px; }
.doc h2 { font-size: 22px; margin: 48px 0 12px; font-family: var(--body); font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
.doc th { width: 34%; font-weight: 500; }
.parts-group { margin-top: 40px; }
.parts-group h2 { margin: 0 0 8px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--accent); color: #111; padding: 2px 6px; white-space: nowrap; }

/* ---------- 名称ガイド表示（URLの末尾に ?guide=1） ---------- */
body.guide [data-part] { outline: 2px dashed var(--accent); outline-offset: -2px; }
.part-label { position: absolute !important; top: 0; left: 0; z-index: 90; background: var(--accent); color: var(--ink); font: 700 11px/1.3 ui-monospace, Menlo, monospace; padding: 3px 6px; pointer-events: none; white-space: nowrap; letter-spacing: 0; text-transform: none; }
.guide-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--accent); color: var(--ink); font-size: 13px; padding: 10px 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.guide-bar a { color: var(--ink); font-weight: 700; }

/* ---------- 非表示 ---------- */
[hidden] { display: none !important; }
body:not(.sec-ready) [data-sec] { visibility: hidden; }

/* ---------- 背景（任意の背景ループ映像） ---------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.8); }
main { position: relative; z-index: 1; overflow-x: clip; }
.site-header { z-index: 20; }

/* ---------- B 見出し：グリッチしながら登場 ---------- */
.glitch { position: relative; display: inline-block; }
.glitch-ready .glitch:not(.in) { opacity: 0; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; white-space: nowrap; }
.glitch::before { color: #FF2E4D; }
.glitch::after { color: #19E3FF; }
.glitch.run { animation: g-main .9s steps(1, end) both; }
.glitch.run::before { opacity: .9; mix-blend-mode: screen; animation: g-red .9s steps(1, end) both; }
.glitch.run::after { opacity: .9; mix-blend-mode: screen; animation: g-cyan .9s steps(1, end) both; }
@keyframes g-main {
  0% { opacity: 0; transform: translate(0); clip-path: inset(40% 0 45% 0); }
  6% { opacity: 1; transform: translate(-6px, 0) skewX(-12deg); clip-path: inset(10% 0 60% 0); }
  12% { transform: translate(5px, 0); clip-path: inset(55% 0 10% 0); }
  18% { transform: translate(-2px, 1px) skewX(8deg); clip-path: inset(0 0 0 0); }
  26% { transform: translate(8px, 0); clip-path: inset(30% 0 35% 0); }
  32% { transform: translate(0) skewX(0); clip-path: inset(0 0 0 0); }
  44% { transform: translate(-4px, 0); clip-path: inset(70% 0 5% 0); }
  50% { transform: translate(0); clip-path: inset(0 0 0 0); }
  64% { transform: translate(3px, 0) skewX(-4deg); clip-path: inset(20% 0 65% 0); }
  70%, 100% { opacity: 1; transform: none; clip-path: none; }
}
@keyframes g-red {
  0% { transform: translate(-10px, 0); clip-path: inset(0 0 70% 0); }
  10% { transform: translate(8px, -2px); clip-path: inset(60% 0 0 0); }
  20% { transform: translate(-5px, 1px); clip-path: inset(25% 0 50% 0); }
  30% { transform: translate(12px, 0); clip-path: inset(80% 0 5% 0); }
  42% { transform: translate(-3px, 0); clip-path: inset(10% 0 75% 0); }
  56% { transform: translate(4px, 0); clip-path: inset(45% 0 30% 0); }
  70% { transform: translate(-2px, 0); clip-path: inset(0 0 0 0); opacity: .6; }
  80%, 100% { transform: none; opacity: 0; }
}
@keyframes g-cyan {
  0% { transform: translate(10px, 0); clip-path: inset(65% 0 0 0); }
  10% { transform: translate(-8px, 2px); clip-path: inset(0 0 55% 0); }
  20% { transform: translate(6px, 0); clip-path: inset(40% 0 30% 0); }
  30% { transform: translate(-11px, 0); clip-path: inset(5% 0 80% 0); }
  42% { transform: translate(3px, 0); clip-path: inset(70% 0 10% 0); }
  56% { transform: translate(-4px, 0); clip-path: inset(30% 0 45% 0); }
  70% { transform: translate(2px, 0); clip-path: inset(0 0 0 0); opacity: .6; }
  80%, 100% { transform: none; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .glitch.run, .glitch.run::before, .glitch.run::after { animation: none; }
  .glitch::before, .glitch::after { display: none; }
}


/* ---------- G フィルムの粒子 ---------- */
.film-grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; animation: g-flicker 4s steps(1, end) infinite; }
.film-grain::before { content: ''; position: absolute; inset: -60%; background-image: var(--grain); background-size: 220px 220px; animation: g-grain .5s steps(5, end) infinite; opacity: .75; }
.film-grain .scratch { position: absolute; top: -5%; bottom: -5%; width: 1px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.35) 30%, rgba(255,255,255,.1) 70%, rgba(255,255,255,0)); opacity: 0; animation: g-scratch 7s linear infinite; }
.film-grain .scratch.s2 { animation-duration: 11s; animation-delay: 3s; width: 2px; }
@keyframes g-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-7%, 4%); } 40% { transform: translate(5%, -6%); }
  60% { transform: translate(-3%, -9%); } 80% { transform: translate(8%, 3%); } 100% { transform: translate(-5%, 7%); }
}
@keyframes g-flicker { 0%, 100% { opacity: 1; } 31% { opacity: .78; } 32% { opacity: 1; } 67% { opacity: .85; } 68% { opacity: 1; } }
@keyframes g-scratch {
  0%, 86% { opacity: 0; left: 18%; }
  87% { opacity: 1; left: 22%; } 89% { opacity: .4; left: 22.6%; } 91% { opacity: .9; left: 23.2%; } 93%, 100% { opacity: 0; left: 23.5%; }
}
.film-grain .scratch.s2 { left: 71%; }
.film-grain .dust { position: absolute; overflow: visible; filter: blur(.4px); }
@media (prefers-reduced-motion: reduce) {
  .film-grain, .film-grain::before, .film-grain .scratch { animation: none; }
  .film-grain .scratch { display: none; }
}

/* ---------- JASO.ロゴの横ブレ（スミア） ---------- */
.smear { position: relative; display: inline-block; filter: url(#jaso-smear); }
.smear::after { content: attr(data-text); position: absolute; left: 0; top: 0; opacity: 0; filter: blur(2px); animation: smear-ghost 3.4s steps(1, end) infinite; pointer-events: none; }
@keyframes smear-ghost { 0%, 24% { opacity: 0; transform: translateX(0); } 27% { opacity: .55; transform: translateX(7px); } 31% { opacity: .35; transform: translateX(-5px); } 36%, 100% { opacity: 0; transform: translateX(0); } }

/* ---------- 起動時のロゴ ---------- */
/* O-1 オープニング：背景は透明。下のトップページ（MV）が透けた状態で JASO. が出て、ブレてから消える。
   消え方は config.js の introOut で切替：'cut'＝ブレが強まって一瞬で消える ／ 'split'＝赤と青に割れて溶ける */
.intro { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(0,0,0,.42); }
.intro.out { pointer-events: none; }
.intro-wrap { display: inline-block; }
.intro-logo { display: inline-block; font-family: var(--head); font-weight: 400; color: var(--ink); font-size: clamp(64px, 16vw, 168px); line-height: 1; opacity: 0; animation: intro-in .5s .15s ease-out forwards; text-shadow: 0 0 24px rgba(0,0,0,.35); }
@keyframes intro-in { from { opacity: 0; letter-spacing: .08em; } to { opacity: 1; letter-spacing: 0; } }

/* --- cut：ブレがだんだん激しくなり、最後の1コマで「プツン」と消える。背景の暗さも同時に切れる --- */
.intro.out.cut { animation: cut-veil .62s steps(1, end) forwards; }
@keyframes cut-veil { 0% { background: rgba(0,0,0,.42); } 92% { background: rgba(0,0,0,.55); } 100% { background: rgba(0,0,0,0); } }
.intro.out.cut .intro-wrap { animation: cut-off .62s steps(1, end) forwards; }
.intro.out.cut .intro-logo { opacity: 1; animation: cut-jitter .62s steps(1, end) forwards; }
@keyframes cut-jitter {
  0%   { transform: translate(0, 0) skewX(0); }
  12%  { transform: translate(-4px, 0) skewX(-2deg); }
  24%  { transform: translate(6px, 1px) skewX(3deg); }
  36%  { transform: translate(-9px, -1px) skewX(-4deg); }
  48%  { transform: translate(13px, 0) skewX(6deg); }
  58%  { transform: translate(-16px, 2px) skewX(-8deg); }
  68%  { transform: translate(20px, -2px) skewX(10deg); }
  78%  { transform: translate(-26px, 1px) skewX(-12deg); }
  86%  { transform: translate(30px, 0) skewX(14deg); }
  92%  { transform: translate(0, 0) skewX(0); }
}
@keyframes cut-off {
  0%   { opacity: 1; filter: none; }
  60%  { opacity: .9; filter: none; }
  70%  { opacity: 1; filter: none; }
  78%  { opacity: .55; filter: none; }
  86%  { opacity: 1; filter: none; }
  92%  { opacity: 1; filter: brightness(2.2); }
  100% { opacity: 0; filter: none; }
}

/* --- split：横にズレて赤と青に割れ、引き伸ばされながら溶ける（前の演出） --- */
.intro.out.split { background: rgba(0,0,0,0); transition: background .9s ease; }
.intro.out.split .intro-wrap { animation: intro-blur .75s cubic-bezier(.5,0,.75,0) forwards; }
.intro.out.split .intro-logo { animation: intro-shake .75s steps(1, end) forwards; opacity: 1; }
@keyframes intro-blur {
  0%   { filter: blur(0); opacity: 1; transform: scaleX(1); }
  35%  { filter: blur(1px); opacity: 1; transform: scaleX(1.06); }
  100% { filter: blur(14px); opacity: 0; transform: scaleX(1.9); }
}
@keyframes intro-shake {
  0%   { transform: translateX(0);     text-shadow: 0 0 0 transparent; }
  10%  { transform: translateX(-10px); text-shadow: 6px 0 rgba(255,46,77,.8), -6px 0 rgba(25,227,255,.8); }
  20%  { transform: translateX(14px);  text-shadow: -10px 0 rgba(255,46,77,.8), 10px 0 rgba(25,227,255,.8); }
  32%  { transform: translateX(-4px);  text-shadow: 14px 0 rgba(255,46,77,.7), -14px 0 rgba(25,227,255,.7); }
  45%  { transform: translateX(22px);  text-shadow: -22px 0 rgba(255,46,77,.6), 22px 0 rgba(25,227,255,.6); }
  60%  { transform: translateX(-18px); text-shadow: 30px 0 rgba(255,46,77,.5), -30px 0 rgba(25,227,255,.5); }
  80%  { transform: translateX(34px);  text-shadow: -40px 0 rgba(255,46,77,.35), 40px 0 rgba(25,227,255,.35); }
  100% { transform: translateX(60px);  text-shadow: -60px 0 rgba(255,46,77,0), 60px 0 rgba(25,227,255,0); }
}
body.intro-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .smear { filter: none; } .smear::after { display: none; } }

/* T-3 キャッチコピー（2行目はブランド名の署名） */
.hero-text .catch { display: flex; flex-direction: column; gap: 6px; font-size: clamp(26px, 4.2vw, 52px); line-height: 1.25; letter-spacing: .02em; }
.hero-text .catch-sign { padding-left: 1.6em; font-size: .82em; opacity: .85; }

/* A-2 ストーリー：スマホでは改行を外して自然に折り返す */
@media (max-width: 700px) {
  .story .block-text br { display: none; }
  .story .block-text { font-size: 16px; line-height: 2; }
}

.profile-line { font-size: 15px; color: var(--sub); letter-spacing: .04em; }
.profile-line > span { white-space: nowrap; }

.model-size { margin: -8px 0 0; }

/* T-4 階層ボタンのスライドショー */
.tile .media.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, transform .6s; }
.tile .media.slides img.on { opacity: 1; }

/* ---------- W 映像のお仕事 ---------- */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--ph); cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .9; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(0,0,0,.35); }
.yt-play::after { content: ''; position: absolute; left: 26px; top: 21px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt-empty { display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 12px; cursor: default; }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.reel { padding-top: 8px; padding-bottom: 24px; }
.reel-cap { margin: 10px 0 0; letter-spacing: .08em; }
.works-intro { padding-top: 56px; padding-bottom: 20px; }
.works-intro h2, .services h2 { margin: 0; font-size: clamp(40px, 5vw, 56px); line-height: 1.1; }
.works-grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.services { padding-top: 40px; padding-bottom: 72px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; }
.service-list h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.service-list p { margin: 0; font-size: 14px; color: var(--sub); }

/* 見出しはグリッチ中に折り返さない（下の要素がブレないように） */
.glitch { white-space: nowrap; }
.page-title h1.one-line { font-size: clamp(34px, 9.5vw, 72px); white-space: nowrap; }

/* F-4 SNSアイコン */
.footer-cols .sns-icons { display: flex; flex-direction: row; align-items: center; gap: 18px; margin-bottom: 10px; }
.site-footer a.sns-icon { display: inline-flex; width: 30px; height: 30px; color: var(--ink); opacity: .85; transition: opacity .2s, transform .2s; }
.site-footer a.sns-icon:hover { opacity: 1; transform: translateY(-2px); text-decoration: none; }
.sns-icon svg { width: 100%; height: 100%; }

/* 表示中のタイルが4枚・2枚のときはPCで2列にして、空きマスを作らない */
@media (min-width: 800px) {
  .tiles[data-n="4"], .tiles[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
  .tiles[data-n="4"] .tile, .tiles[data-n="2"] .tile { aspect-ratio: 16 / 9; }
}

/* A-1 ABOUTメインビジュアル（動画） */
.hero-v > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-v .hv-bg { display: none; }
@media (min-width: 800px) {
  /* PC：縦動画を切り取りすぎないよう、ぼかした同じ映像を背景に敷いて中央に全体を表示 */
  .hero-v .hv-bg { display: block; filter: blur(28px) brightness(.55) saturate(.9); transform: scale(1.15); }
  .hero-v .hv-fg { object-fit: contain; object-position: 80% center; }
}

/* G-3 ページ送り（11件以上で表示） */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 48px auto 0; padding: 0 var(--pad); }
.pager[hidden] { display: none; }
.pager button { font: inherit; font-size: 14px; letter-spacing: .08em; color: var(--ink); background: transparent; border: 1px solid var(--line); min-width: 44px; height: 44px; padding: 0 14px; cursor: pointer; transition: background .2s, color .2s; }
.pager button:hover:not([disabled]) { border-color: var(--ink); }
.pager button[aria-current="page"] { background: var(--ink); color: #000; border-color: var(--ink); }
.pager button[disabled] { opacity: .3; cursor: default; }
.pg-nums { display: flex; gap: 6px; }
@media (max-width: 500px) { .pager .pg-step { flex: 1 1 40%; } .pg-nums { order: -1; width: 100%; justify-content: center; } }

/* 中央のJASO.演出中は左上のロゴを隠し、演出が終わったらフェードで出す */
.site-header .logo { transition: opacity .6s ease .1s; }
body.intro-on .site-header .logo { opacity: 0; transition: none; }

/* H-5 メニューボタン：画面に固定。スクロールしても常に右上で押せる（ヘッダーには同じ幅の空きを確保） */
.header-right::after { content: ''; width: 48px; height: 48px; flex: none; }
.menu-btn { position: fixed; top: 14px; right: var(--pad); z-index: 95; color: inherit; transition: background .3s, color .3s; }
.site-header .menu-btn { color: inherit; }
body.scrolled .menu-btn { color: var(--white); background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.menu-open .menu-btn, body.intro-on .menu-btn { visibility: hidden; }

/* V-1 映像リンク：右下に固定。回る文字の輪＋ビデオカメラのアイコン。右上の×で非表示 */
.works-fab { position: fixed; right: var(--pad); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 95; width: 84px; height: 84px; transition: opacity .3s, transform .3s; }
.works-fab.bye { opacity: 0; transform: scale(.8); }
.works-fab > a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); text-decoration: none; transition: border-color .3s; }
.works-fab > a:hover { border-color: rgba(255,255,255,.7); }
.fab-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: fab-spin 14s linear infinite; }
.fab-ring text { fill: currentColor; font-size: 9.5px; letter-spacing: .06em; font-family: var(--body); }
.fab-icon { width: 30px; height: 30px; }
.works-fab > a:hover .fab-ring { animation-duration: 6s; }
@keyframes fab-spin { to { transform: rotate(360deg); } }
.fab-close { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: #000; color: var(--white); padding: 6px; cursor: pointer; display: flex; }
.fab-close svg { width: 100%; height: 100%; }
/* タップしやすいよう、×の押せる範囲を見た目より広く */
.fab-close::before { content: ''; position: absolute; inset: -10px; }
body.menu-open .works-fab, body.intro-on .works-fab { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .fab-ring { animation: none; } }

/* W-6 サイト内の動画（video 列）。YouTubeの箱と同じ比率で */
.vid { position: relative; background: #111; overflow: hidden; }
.vid.r-169 { aspect-ratio: 16 / 9; }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* T-4 階層ボタン：最初は隠しておき、画面に半分入ったら写真はグリッチ、見出しは右→左上→定位置へ瞬間移動 */
.tile-block.tile-wait .tile, .tile-block.tile-wait .tile-more { opacity: 0; }
.tile-block.tile-in .tile { animation: tile-glitch .9s var(--d, 0ms) steps(1, end) both; }
.tile-block.tile-in .tile .head { animation: head-warp .9s var(--d, 0ms) steps(1, end) both; }
.tile-block.tile-in .tile-more { animation: more-in .5s calc(var(--d, 0ms) + .6s) ease-out both; }
@keyframes tile-glitch {
  0%   { opacity: 0; }
  8%   { opacity: 1; clip-path: inset(12% 0 64% 0); transform: translateX(-14px); filter: saturate(2.2) contrast(1.3); }
  16%  { opacity: 1; clip-path: inset(58% 0 18% 0); transform: translateX(12px);  filter: hue-rotate(-25deg) contrast(1.4); }
  24%  { opacity: 0; clip-path: none; transform: none; filter: none; }
  32%  { opacity: 1; clip-path: inset(30% 0 40% 0); transform: translateX(-8px);  filter: hue-rotate(30deg) saturate(1.8); }
  40%  { opacity: 1; clip-path: inset(0 0 0 0);     transform: translateX(6px);   filter: contrast(1.5) brightness(1.2); }
  50%  { opacity: .55; clip-path: inset(0 0 0 0);   transform: translateX(-3px);  filter: none; }
  62%  { opacity: 1; clip-path: inset(70% 0 6% 0);  transform: translateX(5px); }
  70%  { opacity: 1; clip-path: inset(0 0 0 0);     transform: translateX(0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0);     transform: none; filter: none; }
}
/* 見出し：右端に出現 → 左上へワープ → 定位置。各位置で小刻みにブレて色が割れる */
@keyframes head-warp {
  0%   { opacity: 0; }
  12%  { opacity: 1; transform: translate(var(--tx), 0);               text-shadow: 4px 0 rgba(255,46,77,.85), -4px 0 rgba(25,227,255,.85); }
  18%  { opacity: 1; transform: translate(calc(var(--tx) - 6px), 2px); text-shadow: -5px 0 rgba(255,46,77,.85), 5px 0 rgba(25,227,255,.85); }
  24%  { opacity: 0; }
  30%  { opacity: 1; transform: translate(0, var(--ty));               text-shadow: 5px 0 rgba(255,46,77,.85), -5px 0 rgba(25,227,255,.85); clip-path: inset(0 0 45% 0); }
  36%  { opacity: 1; transform: translate(7px, calc(var(--ty) - 2px)); text-shadow: -4px 0 rgba(255,46,77,.85), 4px 0 rgba(25,227,255,.85); clip-path: none; }
  42%  { opacity: .3; transform: translate(0, var(--ty)); }
  48%  { opacity: 0; }
  54%  { opacity: 1; transform: translate(-6px, 0); text-shadow: 6px 0 rgba(255,46,77,.8), -6px 0 rgba(25,227,255,.8); clip-path: inset(40% 0 0 0); }
  60%  { opacity: 1; transform: translate(4px, 0);  text-shadow: -3px 0 rgba(255,46,77,.7), 3px 0 rgba(25,227,255,.7); clip-path: none; }
  68%  { opacity: 1; transform: translate(-2px, 0); text-shadow: 2px 0 rgba(255,46,77,.5), -2px 0 rgba(25,227,255,.5); }
  76%  { opacity: 1; transform: none; text-shadow: none; }
  100% { opacity: 1; transform: none; text-shadow: none; }
}
@keyframes more-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* T-6 VIEW MOREボタン：各階層ボタンの下。ボタン同士の間隔をあけて落ち着かせる */
.tiles { row-gap: 72px; column-gap: 24px; }
.tile-block { display: flex; flex-direction: column; gap: 16px; }
.tile-block[hidden] { display: none; }
.tile-more { align-self: flex-end; display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .18em; transition: border-color .2s, background .2s, color .2s; }
.tile-more span { transition: transform .2s; }
.tile-more:hover { border-color: var(--ink); background: var(--ink); color: #000; text-decoration: none; }
.tile-more:hover span { transform: translateX(4px); }

/* T-1／A-1 メインビジュアル：下の方をぼかしたフェードで背景になじませる（くっきり区切らない） */
.hero, .about-hero { background: transparent; }
.hero .media, .about-hero .media {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.75) 70%, rgba(0,0,0,.3) 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.75) 70%, rgba(0,0,0,.3) 86%, transparent 100%);
}
.hero .media { background: #5E5A53; }
.about-hero .media { background: #2B2825; }
/* 文字を読みやすくする暗がりも、下端では消えるように */
.hero::after { height: 60%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.3) 55%, rgba(0,0,0,0)); }
.about-hero::after { inset: 35% 0 0 0; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.35) 55%, rgba(0,0,0,0)); }

/* A-1 ABOUTのMVも、TOPと同じくヘッダー（左上のJASO.）の下まで広げる */
.about-hero { height: 80vh; min-height: 480px; max-height: 820px; }
.about-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 180px; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0)); z-index: 1; pointer-events: none; }

/* =========================================================
   余白の見直し：全体を広々と。セクション間・左右・カード間をゆったり
   ========================================================= */
:root { --pad: clamp(22px, 6vw, 96px); --gap-sec: clamp(120px, 14vw, 200px); }
body { line-height: 1.9; }

/* TOP */
.hero { padding-bottom: clamp(96px, 10vw, 140px); }
.tiles { padding-top: var(--gap-sec); padding-bottom: var(--gap-sec); row-gap: clamp(88px, 10vw, 128px); column-gap: clamp(24px, 3vw, 40px); }
.concept { padding-top: var(--gap-sec); padding-bottom: calc(var(--gap-sec) + 40px); gap: 36px; }

/* 下層ページの見出しまわり */
.page-title { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(40px, 5vw, 64px); gap: 20px; }
.filter-bar, .filters { margin-top: 8px; }
.grid { padding-top: clamp(56px, 6vw, 88px); padding-bottom: var(--gap-sec); gap: clamp(56px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.card-name { margin-top: 4px; }
.pager { margin-top: clamp(64px, 8vw, 104px); }

/* 商品ページ */
.item { padding-top: 48px; padding-bottom: clamp(120px, 12vw, 180px); gap: clamp(56px, 7vw, 104px); }
.related { padding-top: clamp(88px, 10vw, 128px); }
.feature { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); gap: clamp(40px, 5vw, 72px); }

/* ABOUT */
.about-hero { padding-bottom: clamp(72px, 8vw, 112px); }
.block { padding-top: var(--gap-sec); padding-bottom: var(--gap-sec); gap: clamp(48px, 7vw, 104px); }
.contact { padding-top: var(--gap-sec); padding-bottom: var(--gap-sec); gap: 28px; }

/* WORKS */
.works-intro { padding-top: clamp(64px, 8vw, 104px); padding-bottom: 32px; }
.reel { padding-top: 16px; padding-bottom: clamp(48px, 6vw, 80px); }
.services { padding-top: clamp(88px, 10vw, 128px); padding-bottom: var(--gap-sec); gap: 40px; }

/* 規約ページ */
.doc { padding-top: 48px; padding-bottom: var(--gap-sec); }
.doc h2 { margin-top: clamp(72px, 8vw, 104px); }
.doc th, .doc td { padding: 18px 10px; }

/* フッター：規約リンクは「映像のお仕事」「お問い合わせ」の下に小さく */
.site-footer { padding: clamp(104px, 11vw, 160px) var(--pad) 40px; gap: clamp(72px, 8vw, 112px); }
.footer-cols { gap: 56px clamp(64px, 10vw, 160px); line-height: 2.3; }
.footer-cols .footer-side { gap: 0; }
.footer-cols .footer-legal { margin-top: 28px; font-size: 12px; line-height: 2.2; }
.footer-cols .footer-legal a { color: var(--sub); }
.footer-cols .footer-legal a:hover { color: var(--ink); }

/* G-1 絞り込み：四角の枠をやめて文字だけで並べる。選択中は白＋下線、それ以外は薄く */
.filters, .filter-bar { border-bottom: 0; }
.filters { gap: 4px clamp(24px, 3vw, 40px); padding-bottom: 0; }
.filters button { border: 0; background: transparent; color: var(--sub); padding: 0; min-height: 44px; font-size: 15px; letter-spacing: .08em; position: relative; transition: color .2s; }
.filters button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: transparent; color: var(--ink); }
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }

/* H-3 言語切替・H-4 BASEボタン：箱をやめて文字だけに（JP / EN） */
.lang, .is-top .lang { border: 0; align-items: center; gap: 0; }
.lang button, .is-top .lang button { min-width: 0; height: 44px; padding: 0 6px; background: transparent; color: inherit; opacity: .45; font-size: 13px; letter-spacing: .12em; transition: opacity .2s; }
.lang button + button::before { content: '/'; display: inline-block; margin-right: 12px; opacity: .6; }
.lang button[aria-pressed="true"], .is-top .lang button[aria-pressed="true"] { background: transparent; color: inherit; opacity: 1; }
.lang button:hover { opacity: 1; }
.base-btn { border: 0; padding: 8px 0; letter-spacing: .12em; position: relative; }
.base-btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.base-btn:hover::after { transform: scaleX(1); }
.header-right { gap: clamp(16px, 2.4vw, 32px); }

/* V-1 映像リンク：文字の輪は常時は止めておき、スクロール中とカーソルを乗せたときだけ回す */
.fab-ring { animation-play-state: paused; }
body.is-scrolling .fab-ring, .works-fab > a:hover .fab-ring { animation-play-state: running; }

/* 明るい写真の上でもヘッダーの文字が読めるよう、うっすら影を */
.is-top .site-header .lang button, .is-top .site-header .base-btn { text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.lang button { opacity: .55; }
.hero::before, .about-hero::before { background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); }

/* A-2 ストーリー：1行20文字前後に収めて読みやすく。話の区切り（4か所）の最初の1文字を大きく */
.story .block-text { max-width: 20.5em; font-size: 17px; }
.story .block-text br { display: none; }
.story .block-text p.dc:not(:first-child) { margin-top: 1.4em; }
.story .block-text p.dc::first-letter { float: left; font-size: 3.3em; line-height: 1; margin: .1em .14em 0 0; font-weight: 500; color: var(--white); }
@media (max-width: 700px) { .story .block-text { font-size: 16px; } }

/* M-1 メニュー：項目の間隔を広く。入りきらないときはメニューの中でスクロール */
.menu-links { justify-content: flex-start; padding: clamp(40px, 8vh, 96px) 0; }
.menu-links > a:first-child { margin-top: auto; }
.menu-links > a:last-child { margin-bottom: auto; }
.menu-links a { padding: clamp(22px, 3.2vh, 34px) 0; gap: 10px 24px; }
.menu { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.menu-foot { padding-top: 24px; row-gap: 14px; }

/* 文節ごとに折り返す（名詞や言葉の途中で改行しない）。区切りは <wbr> で指定済み */
.phr { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }

/* A-4 オーナー紹介：Jemmy目線の紹介文。行を短めにして、読み物として */
.block-text p.voice { max-width: 22em; }
.block-text p.voice-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 12px; font-size: 1.08em; }
.voice-sign { font-size: 13px; letter-spacing: .12em; color: var(--sub); }

/* =========================================================
   PC版（画面幅 1024px 以上）だけの調整
   ========================================================= */
@media (min-width: 1024px) {
  /* A-1＋A-2：縦動画を画面の横幅いっぱいに。MVからStoryの下まで1枚の背景としてつなげる */
  .about-stage { position: relative; isolation: isolate; }
  .about-stage .about-hero { position: static; height: 86vh; min-height: 620px; max-height: none; background: transparent; overflow: visible; }
  .about-stage .about-hero > .hero-text, .about-stage .about-hero > * { position: relative; z-index: 2; }
  .about-stage .about-hero .media.hero-v { position: absolute; inset: 0; z-index: -2; width: auto; background: transparent;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0,0,0,.6) 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0,0,0,.6) 88%, transparent 100%); }
  .about-stage .hero-v .hv-bg { display: none; }
  .about-stage .hero-v .hv-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
  /* 文字を読みやすくする暗がり：上はヘッダー用にうっすら、Storyの辺りはしっかり暗く */
  .about-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,.35) 0, rgba(0,0,0,0) 180px, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.72) 70%, rgba(0,0,0,.6) 100%); }
  .about-stage .about-hero::before, .about-stage .about-hero::after { content: none; }

  /* A-2 ストーリー：話のまとまりごとに、左・右・左・右と交互にずらして置く */
  .about-stage .story { display: block; padding-top: clamp(64px, 7vw, 120px); }
  .about-stage .story > .head { display: block; font-size: 32px; margin-bottom: 48px; }
  .about-stage .story .block-text { display: flex; flex-direction: column; gap: clamp(48px, 5vw, 80px); max-width: none; font-size: 17px; line-height: 2.1; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
  .about-stage .story .chap { width: min(36em, 60%); }
  .about-stage .story .chap-2, .about-stage .story .chap-4 { margin-left: auto; margin-right: clamp(0px, 6vw, 120px); }
  .about-stage .story .block-text p.dc::first-letter { font-size: 3.5em; }

  /* A-3：写真は横に残る */
  .block:has(> .media) { align-items: flex-start; }

  /* A-4 オーナー：Jemmyと同じく、写真を左・文章を右に。写真はスクロールしても横に残る */
  /* A-3 Jemmy・A-4 オーナー：同じ形にそろえる。写真を左（スクロールしても残る）、文章を右に横長で */
  :is([data-part^="A-3"], [data-part^="A-4"]) > .media { position: sticky; top: 120px; }
  .block:is([data-part^="A-3"], [data-part^="A-4"]) > .media { flex: 0 0 34%; max-width: 34%; }
  .block:is([data-part^="A-3"], [data-part^="A-4"]) > .block-text { flex: 1 1 0; min-width: 0; }
  :is([data-part^="A-3"], [data-part^="A-4"]) .voice-body p.voice { max-width: 44em; margin: 0; }
}

/* セクションの背景ビジュアル（TOPのConcept・お問い合わせ欄）。上下は背景に溶かし、文字の後ろは暗く */
:is(.contact, .concept).has-bg { position: relative; isolation: isolate; color: var(--white); }
.sec-media { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.sec-media img, .sec-media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.sec-media video + img { display: none; }
.sec-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.55), rgba(0,0,0,.25) 70%); }
:is(.contact, .concept).has-bg > *:not(.sec-media) { position: relative; text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* A-2 ストーリー：話のまとまり（chap）ごとの間隔（スマホ・PC共通） */
.story .chap { display: flex; flex-direction: column; gap: 16px; }
.story .chap + .chap { margin-top: 1.4em; }
@media (min-width: 1024px) { .about-stage .story .chap + .chap { margin-top: 0; } }

/* Jemmy目線・オーナー目線の紹介文の段落間隔（スマホ・PC共通） */
.voice-body { display: flex; flex-direction: column; gap: 16px; }
.voice-body p { margin: 0; }

/* A-6 好き・嫌い：紹介文のあとに、項目名と中身を並べた一覧 */
.likes { margin: 28px 0 8px; padding: 0; border-top: 1px solid var(--line); max-width: 44em; }
.likes > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.likes dt { font-size: 12px; letter-spacing: .14em; color: var(--sub); padding-top: .25em; }
.likes dd { margin: 0; font-size: 15px; line-height: 1.8; }
@media (max-width: 600px) { .likes > div { grid-template-columns: 1fr; } }

/* 納品物・商品写真の上にはフィルムの粒子・チラつき・ホコリを載せない
   （映像のポートフォリオ、商品・古着・おすすめの写真、TOPのサムネイル）。
   main を重なり順の箱にしないことで、これらだけを粒子の層（z-index 90）より手前に出す */
main { z-index: auto; }
.card .media, .gallery .media, .yt, .vid, .tile { position: relative; z-index: 91; }

/* T-4 階層ボタン：番号・左右交互・VIEW MOREはやめ、同じ大きさの写真を余白だけで区切って素直に並べる */
.tile-block::before { content: none; }
.tile-block .tile { aspect-ratio: 4 / 5; }
@media (min-width: 800px) {
  .tiles[data-n="4"], .tiles[data-n="2"] { grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 4vw, 64px); }
  .tiles[data-n="4"] .tile, .tiles[data-n="2"] .tile { aspect-ratio: 4 / 5; }
}

/* V-1 映像リンク：回る文字の輪をやめ、アイコン＋文字だけの静かなボタンに */
.works-fab { width: auto; height: auto; }
.works-fab > a { position: relative; inset: auto; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .08em; }
.works-fab .fab-icon { width: 22px; height: 22px; }
.fab-close { top: -10px; right: -10px; }

/* V SERVICE：メニューと料金 */
.svc { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 128px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(72px, 9vw, 120px); }
.svc-group { display: grid; gap: 24px; }
.svc-group-name { font-size: 14px; letter-spacing: .16em; color: var(--sub); font-weight: 500; margin: 0; }
.svc-items { border-top: 1px solid var(--line); }
.svc-item { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.svc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; }
.svc-head h3 { margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 500; }
.svc-price { margin: 0; font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
.svc-desc { margin: 0; color: var(--ink); max-width: 40em; }
.svc-note { margin: 0; }
@media (min-width: 1024px) {
  .svc-group { grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); column-gap: clamp(48px, 6vw, 104px); }
  .svc-group-name { padding-top: 30px; }
}
.svc-flow { padding-bottom: clamp(72px, 9vw, 120px); display: grid; gap: 32px; }
.flow-list { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow-list li { counter-increment: flow; display: grid; grid-template-columns: 3em minmax(8em, 12em) 1fr; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.flow-list li::before { content: counter(flow, decimal-leading-zero); font-size: 13px; color: var(--sub); letter-spacing: .1em; }
.flow-list b { font-weight: 500; }
.flow-list span { color: var(--sub); }
@media (max-width: 700px) { .flow-list li { grid-template-columns: 3em 1fr; } .flow-list span { grid-column: 2; } }

/* =========================================================
   スクロール演出
   ========================================================= */
/* T-1 メインビジュアル：スクロールで額縁のように縮む（clip-path は JS で更新） */
.hero.is-shrink .media { will-change: clip-path; }

/* T-4 階層ボタン：画面を固定し、写真が下から入って中央に収まり、前の写真は奥へ沈む */
.tiles.is-stack { display: block; position: relative; padding: 0; row-gap: 0; }
.tiles.is-stack::before { content: none; }
.stack-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stack-label { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 1; font-family: var(--head); font-size: clamp(32px, 3.6vw, 52px); line-height: 1; color: var(--ink); }
.tiles.is-stack .tile-block { position: absolute; left: 50%; top: 52%; width: min(78vw, calc(68svh * .8)); margin: 0; gap: 0; will-change: transform; transform-origin: 50% 50%; }
.tiles.is-stack .tile-block .tile { aspect-ratio: 4 / 5; transform: none !important; filter: none !important; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.tiles.is-stack .tile-block:not(.is-front) .tile { pointer-events: none; }
@media (max-width: 799px) { .stack-label { top: 9%; left: var(--pad); transform: none; font-size: 30px; } .tiles.is-stack .tile-block { top: 55%; } }
/* T-5 コンセプト：1行ずつ帯がめくれて文字が出る */
.concept .cl { display: block; position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.concept.cl-ready .cl::after { content: ''; position: absolute; inset: .2em -.15em; background: var(--ink); transform-origin: right center; transform: scaleX(1); transition: transform .8s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * .14s); }
.concept.cl-ready .cl-in { opacity: 0; transition: opacity .01s linear calc(var(--i, 0) * .14s + .38s); }
.concept.cl-ready .cl.cl-on::after { transform: scaleX(0); }
.concept.cl-ready .cl.cl-on .cl-in { opacity: 1; }

/* A-2 ストーリー：今読んでいるまとまりだけをはっきり */
.story.is-focus .chap { opacity: .28; transition: opacity .6s ease; }
.story.is-focus .chap.is-active { opacity: 1; }

/* M-2 メニュー・フッター：カーソルを乗せると文字が上に入れ替わる */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.roll > span { grid-area: 1 / 1; transition: transform .45s cubic-bezier(.6, 0, .2, 1); }
.roll-b { transform: translateY(105%); }
a:hover .roll-a, a:focus-visible .roll-a { transform: translateY(-105%); }
a:hover .roll-b, a:focus-visible .roll-b { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .roll > span { transition: none; } }
/* 斜めの書体（Shrikhand）の端が切れないよう、入れ替わり用の枠に左右の余白を持たせる */
.roll { padding: 0 .18em .12em .06em; margin: 0 -.18em -.12em -.06em; }

/* M-2 メニュー：ABOUT などはメニューの中で開く。右に「›」、開くと下向きに */
.menu-links > :first-child { margin-top: auto; }
.menu-links > :last-child { margin-bottom: auto; }
.menu-group { border-bottom: 1px solid #3A3833; }
.menu-parent { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: baseline; flex-wrap: nowrap; gap: 10px 24px; padding: clamp(22px, 3.2vh, 34px) 0; cursor: pointer; color: inherit; }
.menu-parent:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.menu-parent .sub-ja { flex: 1 1 auto; }
.menu-parent[aria-current="page"] .head { color: var(--accent); }
.menu-chev { width: 28px; height: 28px; flex: none; align-self: center; transition: transform .3s ease; }
.menu-group.is-open .menu-chev { transform: rotate(90deg); }
.menu-sub { display: grid; padding: 0 0 clamp(18px, 3vh, 28px) 4px; }
.menu-sub[hidden] { display: none; }
.menu-sub a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border: 0; text-decoration: none; }
.menu-sub .ms-head { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: .02em; }
.menu-sub .ms-ja { font-size: 13px; color: #A9A39A; }
.menu-sub a:hover .ms-head { color: var(--accent); }
/* ページ内の場所へ飛んだとき、見出しがヘッダーに隠れないように */
#story, #jemmy, #owner, #contact { scroll-margin-top: 90px; }

/* A-6 Profile見出し：Jemmyとオーナーの紹介をまとめる見出し */
.profile-head { padding-top: var(--gap-sec); display: grid; gap: 10px; }
.profile-head + .block { padding-top: clamp(48px, 6vw, 88px); }
#profile { scroll-margin-top: calc(100px - var(--gap-sec)); }

/* A-7 Profile：Jemmy と Owner を横に並べ、スワイプ・横スクロール・タブで切り替え */
.profile-slider { position: relative; }
.ps-tabs { position: relative; display: flex; gap: clamp(28px, 4vw, 48px); padding-top: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ps-tab { all: unset; cursor: pointer; font-family: var(--head); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; color: var(--sub); padding: 6px 0; transition: color .3s; }
.ps-tab[aria-selected="true"] { color: var(--ink); }
.ps-tab:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.ps-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--ink); transition: transform .45s cubic-bezier(.6, 0, .2, 1), width .45s cubic-bezier(.6, 0, .2, 1); }
.ps-track { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; transition: height .45s ease; }
.ps-track::-webkit-scrollbar { display: none; }
.ps-track > .block { flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; box-sizing: border-box; padding-top: clamp(48px, 6vw, 80px); }
.ps-track > .block > .media { position: relative !important; top: auto !important; }
.ps-track > .block:not(.is-active) { opacity: .35; transition: opacity .4s; }
.ps-track > .block.is-active { opacity: 1; transition: opacity .4s; }
.profile-head + .block, .profile-head + .profile-slider { padding-top: 0; }

/* 写真の切り替え（carousel）：枠の中で横にスワイプ、左右のボタン、下に点 */
.carousel { position: relative; overflow: hidden; }
.car-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; }
.car-slide img, .car-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-btn { all: unset; position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.42); color: #fff; cursor: pointer; opacity: 0; transition: opacity .25s, background .2s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.car-btn svg { width: 20px; height: 20px; }
.car-btn.prev { left: 10px; } .car-btn.next { right: 10px; }
.car-btn:disabled { opacity: 0 !important; pointer-events: none; }
.carousel:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
@media (hover: none) { .car-btn { opacity: .85; } }
.car-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.car-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .2s, transform .2s; }
.car-dots span.on { background: #fff; transform: scale(1.2); }
.carousel.single .car-btn, .carousel.single .car-dots { display: none; }

/* I-1 商品ページ：メイン写真を上に大きく、その下にディテール写真を小さく並べる */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery .main { width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-width: 560px; }
.thumb { all: unset; cursor: pointer; display: block; position: relative; z-index: 91; opacity: .55; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.thumb .media { z-index: auto; }
.thumb.on { opacity: 1; outline-color: var(--ink); }
.thumb:hover { opacity: .9; }

/* V-2 Jemmyの案内：右下にJemmy、吹き出しで「服、欲しくない？」。押すとSHOPへ。×で消える */
.jemmy-nudge { position: fixed; right: calc(var(--pad) - 6px); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 95; width: 96px; transition: bottom .35s ease, opacity .3s, transform .3s; }
.jemmy-nudge.above-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
.jemmy-nudge.bye { opacity: 0; transform: translateY(10px) scale(.9); }
.jn-link { display: block; position: relative; text-decoration: none; }
.jn-dog { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 6px 14px rgba(0,0,0,.5)); transform-origin: 50% 100%; animation: jn-bob 3.2s ease-in-out infinite; }
.jn-link:hover .jn-dog { animation-duration: 1.2s; }
@keyframes jn-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
.jn-bubble { position: absolute; right: calc(100% + 6px); top: 18%; white-space: nowrap; background: var(--ink); color: #000; font-size: 13px; letter-spacing: .04em; padding: 9px 14px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.35); opacity: 0; transform: translateX(8px) scale(.9); transform-origin: right center; transition: opacity .35s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.jn-bubble::after { content: ''; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left-color: var(--ink); border-right: 0; }
.jemmy-nudge.talk .jn-bubble { opacity: 1; transform: none; }
.jn-close { all: unset; position: absolute; top: -4px; right: -2px; width: 24px; height: 24px; border-radius: 50%; background: #000; border: 1px solid rgba(255,255,255,.35); color: #fff; display: grid; place-items: center; cursor: pointer; }
.jn-close svg { width: 10px; height: 10px; }
.jn-close::before { content: ''; position: absolute; inset: -10px; }
body.menu-open .jemmy-nudge, body.intro-on .jemmy-nudge { visibility: hidden; }
@media (max-width: 600px) { .jemmy-nudge { width: 78px; } .jemmy-nudge.above-fab { bottom: calc(72px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .jn-dog { animation: none; } }
/* V-2 吹き出し：小さめにして、Jemmyの胸元に少しかかる位置へ */
.jn-bubble { right: 58%; top: auto; bottom: 30%; font-size: 11px; letter-spacing: .02em; padding: 5px 10px; border-radius: 12px; }
.jn-bubble::after { right: -5px; margin-top: -5px; border-width: 5px; }
.jn-bubble { bottom: 16%; right: 52%; z-index: 2; }

/* TOP：メインビジュアル表示中はJemmyを隠し、Indexの見出しが中央より上に来たらフェードイン */
.jemmy-nudge { transition: bottom .35s ease, opacity .6s ease, transform .6s ease, visibility 0s; }
.jemmy-nudge.wait { opacity: 0; transform: translateY(14px); visibility: hidden; pointer-events: none; transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s; }

/* TOP：カードの下でゆっくり流れる霧 */
.stack-fog { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.stack-fog.is-on { opacity: 1; }
.stack-label { z-index: 2; }

/* 商品ページ：実寸表・送料/発送/返品・売り切れ時の案内 */
.size-table { display: grid; gap: 8px; }
.size-table .st-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.size-table th, .size-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; }
.size-table tr:first-child th { color: var(--sub); font-size: 12px; }
.size-table tr th:first-child { text-align: left; color: var(--ink); }
.buy-notes { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 6px; color: var(--sub); line-height: 1.6; }
.buy-notes li { display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; }
.buy-notes li > span:first-child { color: var(--ink); }
.sold-note { margin: -4px 0 0; color: var(--sub); }
.sold-note a, .sold-info a { color: var(--ink); text-underline-offset: 3px; }
.sold-info { text-align: center; margin: 56px auto 0; }
.card.is-sold .media { opacity: .5; transition: opacity .3s; }
.card.is-sold:hover .media { opacity: .8; }
