/* ===== DESIGN TOKENS ===== */
:root {
  /* --- Colors --- */
  --mint:         #9ddcb8;
  --mint-dark:    #7ec89a;
  --mint-bg:      #F1FFF9;
  --mint-light:   #b8e0c8;
  --white:        #ffffff;
  --text:         #222222;
  --text-mid:     #555555;
  --text-light:   #888888;
  --border:       #e8e8e8;
  --bg:           #f0f0f0;
  --overlay-dark: rgba(0,0,0,0.45);

  /* --- Shadows --- */
  --shadow-card:       2px 4px 16px rgba(0,0,0,0.12);
  --shadow-card-hover: 4px 8px 28px rgba(0,0,0,0.22);
  --shadow-works:      3px 3px 10px rgba(0,0,0,0.13);

  /* --- Layout --- */
  --max-w:          1080px;
  --header-h:       70px;
  --radius:         4px;
  --pad-section:    120px;
  --pad-section-sm: 80px;

  /* --- Z-index scale --- */
  --z-base:      1;
  --z-deco:      5;
  --z-section:   10;
  --z-news:      20;
  --z-header:    200;
  --z-menu:      300;
  --z-hamburger: 301;
  --z-modal:     1000;

  /* --- Typography --- */
  --font-display: 'Fredoka One', cursive;
  --font-ui:      'Lato', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;

  /* --- Transitions --- */
  --transition:        0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow:   0.6s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: hidden; } /* Lenis がスムーズスクロールを担当 */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity var(--transition-medium);
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ===== FADE-IN ANIMATIONS ===== */
.hero   { opacity: 0; }
.header { opacity: 0; }
.hero.visible   { animation: fadeIn 1.8s cubic-bezier(0.4,0,0.2,1) forwards; }
.header.visible { animation: fadeIn 1.2s cubic-bezier(0.4,0,0.2,1) 1.2s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== SCROLL ICON ===== */
.scroll-icon {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 80px; object-fit: contain;
  z-index: var(--z-base); opacity: 0;
}
.scroll-icon.visible {
  animation: fadeInHalf 1.2s cubic-bezier(0.4,0,0.2,1) 2.2s forwards;
}
@keyframes fadeInHalf { from { opacity: 0; } to { opacity: 0.5; } }

/* ===== LAYOUT UTILITIES ===== */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.section-divider-img {
  width: 100%; line-height: 0; overflow: hidden;
  margin-top: -14%; margin-bottom: -8%;
  position: relative; z-index: var(--z-base);
  pointer-events: none;
}
.section-divider-img img { width: 100%; height: auto; filter: brightness(1.01); }

.news-viewmore-wrap {
  display: flex; justify-content: flex-end;
  padding-bottom: 190px;
}

.works-corner-wrap {
  display: flex; justify-content: flex-end;
  padding-bottom: 40px;
}

.bio-viewmore-wrap {
  display: flex; justify-content: flex-end;
  margin-top: 4px; padding-right: 40px;
}

.mobile-menu-list {
  list-style: none;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  position: fixed; top: 13px; right: 20px;
  z-index: var(--z-hamburger);
}
.hamburger-line {
  display: block; width: 24px; height: 2px;
  background: #000; border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--white); z-index: var(--z-menu);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition-medium);
}
.mobile-menu.open    { display: flex; }
.mobile-menu.visible { opacity: 1; }

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: 0.10em; color: #000;
  transition: color var(--transition);
}
.mobile-menu-link:hover { color: var(--mint-dark); }

.mobile-menu-x {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: #000; border-radius: var(--radius);
  transition: background 0.25s;
}
.mobile-menu-x:hover { background: var(--mint-dark); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  z-index: var(--z-header);
  display: flex; align-items: center; justify-content: center;
}
.header-inner {
  width: 100%; display: flex;
  align-items: center; justify-content: flex-end;
  padding-right: 100px;
}

/* ===== NAV ===== */
.nav-list { display: flex; list-style: none; align-items: center; gap: 28px; }
.nav-list a {
  font-family: var(--font-display);
  font-size: 16px; letter-spacing: 0.06em; color: #000;
  transition: color 0.25s ease;
}
.nav-list a:hover { color: var(--mint-dark); }

.nav-x a {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: #000; border-radius: var(--radius);
}
.nav-x a:hover { background: var(--mint-dark); }
.nav-x svg { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative; width: 100%;
  height: 100vh; min-height: 600px;
  background: var(--white); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; pointer-events: none;
}
.hero-shield {
  position: absolute; inset: 0; z-index: var(--z-base);
  background: transparent;
  -webkit-user-select: none; user-select: none;
}

/* ===== 境界楽譜デコ ===== */
.boundary-score { position: relative; height: 0; overflow: visible; z-index: var(--z-section); pointer-events: none; }
.boundary-score img {
  position: absolute; left: -40px; top: -50px;
  transform: rotate(-28deg); width: 260px; opacity: 0.4; object-fit: contain;
}

/* ===== セクション共通見出し ===== */
.sec-heading-reveal { display: inline-block; clip-path: inset(0 100% 0 0); }
.sec-heading-reveal.draw {
  clip-path: inset(0 0% 0 0);
  transition: clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.pickup-deco {
  width: 32px; height: 32px; object-fit: contain; flex-shrink: 0;
  opacity: 0; transition: opacity 0.5s ease;
}
.pickup-deco.deco-shown  { opacity: 1; }
.pickup-deco--right      { margin-left: -6px; }
.pickup-deco.spinning    { animation: spinDeco 0.6s ease-in-out; }
@keyframes spinDeco {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pickup-heading {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 120px;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 400; letter-spacing: 0.05em;
  color: var(--text); line-height: 1;
  opacity: 0; transition: opacity 0.8s ease;
}
.pickup-heading.appeared { opacity: 1; }
.pickup-heading:hover     { opacity: 0.6; }

.sec-heading-link {
  display: flex; width: fit-content;
  margin-left: auto; margin-right: auto;
  cursor: pointer;
}

.view-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  font-family: var(--font-display); font-size: 13px;
  font-weight: 400; letter-spacing: 0.18em;
  color: var(--text); border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-slow);
}
.view-more.appeared           { opacity: 1; pointer-events: auto; }
.view-more.appeared:hover     { opacity: 0.6; }
.view-more .vm-arrow          { display: inline-block; transition: transform 0.22s ease; }
.view-more:hover .vm-arrow    { transform: translateX(5px); }

/* ===== TORN EDGE ===== */
.torn-edge {
  position: absolute; left: 0; width: 100%;
  overflow: visible; line-height: 0;
  pointer-events: none; z-index: var(--z-section);
}
.torn-edge--bottom { bottom: -1px; }
.torn-edge svg { display: block; width: 100%; overflow: hidden; }

/* ===== PICKUP ===== */
.pickup-sec {
  background: var(--mint-bg);
  padding: var(--pad-section) 0 90px;
  overflow: visible; position: relative;
}
.pickup-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  position: relative; z-index: var(--z-section);
}
.pickup-card {
  display: inline-flex; flex-direction: column; align-items: center;
  color: inherit; opacity: 0;
  cursor: pointer; width: fit-content;
  margin: 0 auto; padding: 3px; border-radius: 3px;
  transition: opacity var(--transition-slow);
  align-self: start;
}
.pickup-card.appeared         { opacity: 1; }
.pickup-card:not(.appeared)   { pointer-events: none; }
.pickup-card.appeared:hover   { opacity: 0.5; }

.pickup-card:nth-child(1) { transform: rotate(-1.5deg); margin-top: 0px;  }
.pickup-card:nth-child(2) { transform: rotate(1deg);    margin-top: 24px; }
.pickup-card:nth-child(3) { transform: rotate(-0.8deg); margin-top: 8px;  }
.pickup-card:nth-child(4) { transform: rotate(1.8deg);  margin-top: 18px; }
.pickup-card:nth-child(5) { transform: rotate(-1.2deg); margin-top: 4px;  }
.pickup-card:nth-child(6) { transform: rotate(0.8deg);  margin-top: 30px; }
.pickup-card.appeared:hover { transition: opacity var(--transition-medium); }

.pickup-img-wrap { padding: 0; margin: 0; overflow: visible; flex-shrink: 0; }
.pickup-img {
  width: 200px; aspect-ratio: 210/297;
  background: #d8eee4; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 11px; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
}
.pickup-card.appeared:hover .pickup-img {
  transform: scale(1.1);
  box-shadow: var(--shadow-card-hover);
}
.pickup-info  { padding: 10px 2px 6px; width: 200px; text-align: left; display: block; }
.pickup-label { font-size: clamp(9px, calc(9px + 2 * (100vw - 551px) / 473), 11px); color: var(--text-light); letter-spacing: 0.05em; margin-bottom: 1px; }
.pickup-title { font-size: clamp(13px, calc(13px + 3 * (100vw - 551px) / 473), 16px); font-weight: 700; line-height: 1.4; }
.pickup-price { font-size: 12px; color: var(--text-light); margin-top: 8px; }

.pickup-corner-deco {
  width: 90px; height: 90px; object-fit: contain;
  pointer-events: none; display: block; margin-left: auto;
}

/* ===== NEWS 背景楽譜デコ ===== */
.ms-paper {
  position: absolute; pointer-events: none;
  z-index: var(--z-deco); opacity: 0.28;
}
.ms-paper svg { display: block; }

/* ===== NEWS ===== */
.news-sec { background: var(--white); padding: 40px 0 0; position: relative; z-index: var(--z-section); }

.news-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 48px; align-items: start;
}
.news-list { display: flex; flex-direction: column; gap: 20px; }

.news-card {
  background: var(--white); border-radius: 8px;
  display: flex; gap: 16px; padding: 18px 16px;
  position: relative; min-height: 120px;
  color: inherit; cursor: pointer;
  border: 1px solid #cfd9de;
  opacity: 0; transition: opacity var(--transition-slow);
  z-index: var(--z-news);
}
.news-card.appeared         { opacity: 1; }
.news-card:not(.appeared)   { pointer-events: none; }
.news-card.appeared:hover   { opacity: 0.4; }

.news-thumb {
  width: 76px; flex-shrink: 0; aspect-ratio: 210/297;
  background: #d8eee4; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 10px; overflow: hidden;
  align-self: flex-start;
  box-shadow: 2px 3px 12px rgba(0,0,0,0.18);
}
.news-thumb.has-img {
  aspect-ratio: unset;
  background: transparent;
  align-self: center;
}
.news-thumb img {
  width: 100%; height: auto; display: block;
  transition: transform 0.35s ease;
}
.news-card.appeared:hover .news-thumb img { transform: scale(1.07); }

.news-card-body {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; justify-content: flex-start;
}
.news-card-top     { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.news-card-date    { font-size: 11px; color: #333; white-space: nowrap; }

/* 蛍光マーカー風バッジ */
.news-card-badge {
  position: relative; display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  padding: 0 4px; color: #2a2a2a;
  line-height: 1.6; white-space: nowrap;
}
.news-card-badge .mk-svg {
  position: absolute; left: -3px; top: 50%;
  transform: translateY(-50%);
  width: calc(100% + 20px); height: 1.6em;
  pointer-events: none; overflow: visible;
}
.news-card-badge .mk-text { position: relative; display: inline-block; }

.news-card-subtitle  { font-size: 10px; color: var(--text-light); letter-spacing: 0.06em; margin-bottom: 0; }
.news-card-title {
  font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-desc {
  font-size: 11px; color: var(--text-mid); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.7em * 2);
}
.news-card-notes {
  font-size: 10px; color: #888; line-height: 1.7; margin-top: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-card-updated {
  position: absolute; bottom: 12px; right: 16px;
  font-family: var(--font-ui); font-size: 9px; color: #aaa; letter-spacing: 0.05em;
}

.news-x {
  background: var(--white); overflow: hidden; min-height: 300px;
  max-width: 500px; width: 100%; margin: 0 auto;
  align-self: start;
  position: relative; z-index: var(--z-base); margin-top: -10px;
  opacity: 0; transition: opacity var(--transition-slow);
}
.news-x.appeared { opacity: 1; }

/* ===== WORKS ===== */
.works-sec { background: var(--mint-bg); padding: var(--pad-section) 0 0; overflow: visible; position: relative; }

.works-list-outer {
  display: flex; align-items: start; justify-content: center;
  padding-top: 16px; overflow: visible; padding-bottom: 40px;
}
.works-list {
  display: grid; grid-template-columns: repeat(3, 190px);
  gap: 28px 44px; align-items: stretch;
  flex-shrink: 0; width: fit-content;
}
.works-view-more-wrap {
  padding-bottom: 24px; margin-top: -16px;
  display: flex; justify-content: center;
}
.works-view-more-inner {
  width: calc(3 * 190px + 2 * 44px); display: flex; justify-content: flex-end;
}

/* ゴーストカード（左右フェードアウト） */
.works-ghost-side {
  display: flex; flex-direction: column; gap: 28px;
  flex-shrink: 0; pointer-events: none;
}
.works-ghost-left {
  margin-right: 44px;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,1) 100%);
}
.works-ghost-right {
  margin-left: 44px;
  mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,1) 100%);
}
.works-ghost-card {
  width: 190px; border-radius: var(--radius); padding: 0 0 16px;
  box-shadow: var(--shadow-works);
  opacity: 0; transition: opacity var(--transition-slow);
  display: flex; flex-direction: column;
}
.works-ghost-card.appeared { opacity: 1; }
.works-ghost-card:nth-child(1) { transform: rotate(-1.5deg) !important; background: #FFF9C4 !important; margin-top: 0 !important; }
.works-ghost-card:nth-child(2) { transform: rotate(0.9deg)  !important; background: #E3F2FD !important; margin-top: 22px !important; }

.works-ghost-card .works-cat,
.works-ghost-card .works-name,
.works-ghost-card .works-info-list,
.works-ghost-card .player-scale { visibility: hidden !important; }

/* WORKS カード */
.works-card {
  border-radius: var(--radius); padding: 0 0 10px;
  display: flex; flex-direction: column; position: relative;
  opacity: 0; width: 190px; height: 200px; cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-works);
  /* opacity は transition から切り離し、animation で制御する */
  transition: transform var(--transition), box-shadow var(--transition);
}
.works-card:nth-child(1) { transform: rotate(-1.5deg); margin-top: 0;   }
.works-card:nth-child(2) { transform: rotate(1deg);    margin-top: 22px; }
.works-card:nth-child(3) { transform: rotate(-0.8deg); margin-top: 8px;  }
.works-card:nth-child(4) { transform: rotate(1.8deg);  margin-top: 12px; }
.works-card:nth-child(5) { transform: rotate(-1.2deg); margin-top: 28px; }
.works-card:nth-child(6) { transform: rotate(0.8deg);  margin-top: 6px;  }
/* .appeared 追加時に animation でフェードイン → fill-mode:forwards で opacity:1 を維持 */
.works-card.appeared {
  animation: worksCardReveal 0.6s ease forwards;
  will-change: transform;   /* GPU レイヤーを先に確保してホバー時のチラツキを防ぐ */
  z-index: 1;               /* ホバー時の z-index 変化を相対的にする */
}
@keyframes worksCardReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.works-card:not(.appeared)    { pointer-events: none; }
.works-card.appeared:hover {
  transform: rotate(0deg) scale(1.04) !important;
  box-shadow: 6px 8px 20px rgba(0,0,0,0.18);
  z-index: var(--z-section);
}

.works-card-tape   { height: 28px; border-radius: var(--radius) var(--radius) 0 0; background: rgba(0,0,0,0.07); margin-bottom: 8px; flex-shrink: 0; }
.works-card-body   { padding: 0 12px 0 12px; flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }

.works-cat             { display: block; font-size: 11px; font-weight: 400;
                         font-family: 'Yomogi', 'Noto Sans JP', cursive;
                         letter-spacing: 0.06em; padding: 3px 10px; border-radius: 20px; margin-bottom: 4px;
                         text-align: right; }
.works-cat--choir      { background: rgba(255,255,255,0.55); color: #1a5a8a; }
.works-cat--inst       { background: rgba(255,255,255,0.55); color: #7a4800; }
.works-cat--arr        { background: rgba(255,255,255,0.55); color: #8a1a1a; }
.works-cat--sound      { background: rgba(255,255,255,0.55); color: #1a6a3a; }

.works-label-sub { font-size: 10px; color: #777; margin-bottom: 2px; line-height: 1.4; }

.works-name {
  font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.3;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.works-info-list { list-style: none; margin: 4px 0 0; padding-right: 54px; display: flex; flex-direction: column; gap: 0; }
.works-info-list li {
  font-size: 10px; color: var(--text-mid); line-height: 1.75;
  padding-left: 12px; position: relative;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.works-info-list li::before { content: '·'; position: absolute; left: 3px; color: #bbb; font-size: 13px; line-height: 1.4; }

/* ===== AUDIO PLAYER ===== */
.player-wrap   { position: absolute; bottom: 0; right: 10px; width: 51px; height: 51px; }
.player-scale  {
  position: absolute; top: 50%; left: 50%;
  width: 51px; height: 51px;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}
.player-scale.pop { transform: translate(-50%, -50%) scale(0.93); }
.player-progress  { position: absolute; top: 0; left: 0; width: 51px; height: 51px; pointer-events: none; z-index: 3; }
.player-btn {
  position: absolute; top: 0; left: 0;
  width: 51px; height: 51px; border-radius: 50%;
  background: var(--white); border: 3px solid #66BB6A;
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2;
  pointer-events: auto;
}
.player-btn:hover { background: #f0fff0; }
.player-icon { width: 35px; height: 35px; fill: #80C96F; pointer-events: none; }

/* ===== WORKS MODAL（本型モーダル） ===== */
.works-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: var(--z-modal);
  align-items: center; justify-content: center;
  padding: 16px;
  overscroll-behavior: contain;
}
.works-modal-overlay.open { display: flex; }
/* 本を開くアニメーション：中央の縦線（背表紙）から左右に広がる */
@keyframes wmIn {
  from { transform: scaleX(0.01); }
  to   { transform: scaleX(1); }
}
@keyframes wmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.works-modal-close { display: none; }

/* 本体（book.webp を枠として使用） */
.wm-book {
  position: relative;
  /* 幅は vw・vh 両方で制限し、本が常に画面に収まるようにする */
  width: min(94vw, 1100px, 150.25vh);
  aspect-ratio: 4000 / 2396;
  background: url('https://pub-6bf01576c39945f2a2fa6d611c34de55.r2.dev/elements/book.webp')
              center / 100% 100% no-repeat;
  transform-origin: center center;
  animation: wmIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  /* vw・vh 両方に応じてフォントを縮小（本の幅の1/100） */
  font-size: clamp(7px, min(0.94vw, 1.5025vh), 11px);
}
/* 背表紙の影：中央付近を左右からやや暗くする */
.wm-book::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 背表紙（中央）の影 */
    linear-gradient(to right,
      rgba(0,0,0,0)     18%,
      rgba(0,0,0,0.035) 38%,
      rgba(0,0,0,0.055) 50%,
      rgba(0,0,0,0.035) 62%,
      rgba(0,0,0,0)     82%),
    /* ページ端の影（両端が暗い、各ページ中央が明るい） */
    linear-gradient(to right,
      rgba(0,0,0,0.04)  0%,
      rgba(0,0,0,0.015) 14%,
      rgba(0,0,0,0)     27%,
      rgba(0,0,0,0)     73%,
      rgba(0,0,0,0.015) 86%,
      rgba(0,0,0,0.04)  100%);
  pointer-events: none;
}
.wm-book::after {
  content: '';
  position: absolute;
  top: 4%; bottom: 4%;
  left: calc(50% - 0.5px);
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(80,60,40,0.22) 8%,
    rgba(80,60,40,0.22) 92%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── 左ページ：本画像の上に絶対位置で重ねる ── */
.wm-left {
  position: absolute;
  left: 4%; top: 10%; width: 43%; height: 83%;
  display: flex; flex-direction: column; gap: 0;
  overflow: hidden;
  animation: wmFadeIn 0.4s ease-out 0.5s both;
}
.wm-left-top {
  display: flex; gap: 1.27em; align-items: flex-end; flex-shrink: 0;
  margin-bottom: 6em;
}
/* 再生ボタンの縦位置は JS(_runMeasure)が動的に margin-bottom で制御 */
/* プレーヤーを正方形に（border-radius:50% で真円を保つため） */
.wm-player-wrap {
  flex-shrink: 0; position: relative; width: 4.64em; height: 4.64em;
}
.wm-player-wrap .player-scale   { width: 100%; height: 100%; top: 0; left: 0; transform: none; }
.wm-player-wrap .player-scale.pop { transform: scale(0.93); }
.wm-player-wrap .player-progress { width: 100%; height: 100%; }
.wm-player-wrap .player-btn     { width: 100%; height: 100%; }
.wm-player-wrap .player-icon    { width: 68%; height: 68%; }
.wm-meta { min-width: 0; flex: 1; }
.wm-label {
  font-size: 1.05em; letter-spacing: 0.08em; color: #111;
  margin-bottom: 0.5em;
}
.wm-title {
  font-size: 2.36em; font-weight: 800; line-height: 1.4;
  color: #111; word-break: break-all; margin: 0;
  padding-bottom: 0.52em;
  position: relative;
  width: fit-content;
  max-width: 100%;
}
/* 手書き風マーカーライン：左は始点の角、右はスッと払うように長めにかすれ */
.wm-title::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -1.6em;
  bottom: 0.41em;
  height: 0.21em;
  background: var(--wm-accent, #66BB6A);
  opacity: 0.62;
  border-radius: 3px 1px 1px 3px;
  transform: rotate(-0.4deg);
  filter: blur(0.45px);
  -webkit-mask-image: linear-gradient(to right,
    black       0%,
    black       74%,
    rgba(0,0,0,0.75) 83%,
    rgba(0,0,0,0.35) 91%,
    transparent 100%);
  mask-image: linear-gradient(to right,
    black       0%,
    black       74%,
    rgba(0,0,0,0.75) 83%,
    rgba(0,0,0,0.35) 91%,
    transparent 100%);
}
/* タイトルが2行になる場合：1行目の下にも同じマーカーラインを引く */
.wm-title--two-line::before {
  content: '';
  position: absolute;
  left: -0.04em;
  right: auto;
  width: calc(var(--wm-first-line-w, 100%) + 0.5em);
  top: 1.3em;
  height: 0.21em;
  background: var(--wm-accent, #66BB6A);
  opacity: 0.62;
  border-radius: 3px 1px 1px 3px;
  transform: rotate(-0.4deg);
  filter: blur(0.45px);
  -webkit-mask-image: linear-gradient(to right,
    black       0%,
    black       74%,
    rgba(0,0,0,0.75) 83%,
    rgba(0,0,0,0.35) 91%,
    transparent 100%);
  mask-image: linear-gradient(to right,
    black       0%,
    black       74%,
    rgba(0,0,0,0.75) 83%,
    rgba(0,0,0,0.35) 91%,
    transparent 100%);
}
/* 2段以上タイトルの ::after（最終行ライン）：top は JS が --wm-last-line-top で動的設定 */
.wm-title--two-line::after {
  bottom: auto;
  top: var(--wm-last-line-top, 2.7em);
  right: auto;
  width: calc(var(--wm-last-line-w, 100%) + 0.5em);
}
/* 3段以上のとき JS が注入する中間行マーカースパン（::before / ::after と同じ見た目） */
.wm-title-line-mark {
  position: absolute;
  left: -0.04em;
  height: 0.21em;
  background: var(--wm-accent, #66BB6A);
  opacity: 0.62;
  border-radius: 3px 1px 1px 3px;
  transform: rotate(-0.4deg);
  filter: blur(0.45px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right,
    black       0%,
    black       74%,
    rgba(0,0,0,0.75) 83%,
    rgba(0,0,0,0.35) 91%,
    transparent 100%);
  mask-image: linear-gradient(to right,
    black       0%,
    black       74%,
    rgba(0,0,0,0.75) 83%,
    rgba(0,0,0,0.35) 91%,
    transparent 100%);
}
.wm-performer { display: none; }
.wm-info {
  display: grid; grid-template-columns: auto 1fr;
  gap: 2em 1em; margin: 0;
  font-size: 1.1em; line-height: 1.6;
  align-items: start;
  align-content: start; /* 行間を伸ばさず上詰め、下に余白を作る */
  flex: 1; min-height: 0;
  overflow: hidden;
}
.wm-info dt { color: #aaa; white-space: nowrap; }
.wm-info dd { color: #333; margin: 0; word-break: break-word; overflow-wrap: anywhere; }
.wm-info-tracks { display: flex; flex-direction: column; gap: 2px; }
.wm-info-track { display: block; }
.wm-info-track-num { color: #aaa; margin-right: 4px; }
.wm-info-track-dur { color: #aaa; }

/* ── 右ページ：本画像の上に絶対位置で重ねる ── */
.wm-right {
  position: absolute;
  right: 4%; top: 10%; width: 43%; height: 83%;
  display: flex; flex-direction: column; gap: 3.5em;
  justify-content: center;
  padding: 2.5em 0;
  overflow: hidden;
  animation: wmFadeIn 0.4s ease-out 0.8s both;
}
.wm-body { font-size: 1.15em; color: #444; line-height: 1.75; margin: 0; flex-shrink: 0; white-space: pre-line; }

.wm-mid {
  display: flex; gap: 0.91em; align-items: flex-end; flex-shrink: 0;
}
/* 動画を 250×141px（11px基準のem換算）に固定。
   transform: translateZ(0) でコンポジターレイヤーを強制し
   クロスオリジン iframe が overflow: hidden を突き破るのを防ぐ */
.wm-video-wrap {
  position: relative;
  width: 22.73em; height: 12.82em;   /* 250px × 141px @ 11px base */
  flex-shrink: 0; overflow: hidden;
  border-radius: 3px;
  transform: translateZ(0);
}
.wm-video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none; display: block;
}
.wm-credits { flex: 1; min-width: 0; font-size: 0.95em; color: #777; line-height: 1.65; white-space: pre-line; }
.wm-custom { font-size: 1em; line-height: 1.7; color: #444; }

.wm-bottom {
  display: flex; gap: 0.73em; align-items: flex-end;
  flex-shrink: 0;
  margin-left: auto;
}
.wm-links { display: flex; flex-direction: column; gap: 0.45em; }
.wm-link {
  font-size: 1.05em; color: #555; text-decoration: none;
  display: flex; align-items: center; gap: 0.45em;
  transition: color 0.2s; letter-spacing: 0.03em;
}
.wm-link:hover { color: #111; }
.wm-link svg { flex-shrink: 0; transition: transform 0.2s; width: 1.09em; height: 0.73em; }
.wm-link:hover svg { transform: translateX(3px); }
.wm-score-img {
  width: 9.82em; height: auto; border-radius: 3px;
  box-shadow: 3px 4px 10px rgba(0,0,0,0.18); flex-shrink: 0;
}

/* ===== NEWS MODAL（付箋風・左画像＋右本文） ===== */
.nm-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:var(--z-modal); align-items:center; justify-content:center; padding:24px; overscroll-behavior: contain; }
.nm-overlay.open { display:flex; }
@keyframes nmIn { from{opacity:0;transform:scale(0.92) translateY(16px);}to{opacity:1;transform:none;} }

.nm-modal {
  background: #FFFEF5; border-radius: 4px;
  width: 78%; max-width: 960px; height: 90vh;
  overflow: hidden; position: relative;
  overscroll-behavior: contain;
  box-shadow: 0 2px 0 #e0d89a, 0 12px 40px rgba(0,0,0,0.18), 4px 6px 24px rgba(0,0,0,0.10);
  animation: nmIn 0.28s cubic-bezier(0.34,1.4,0.64,1);
  display: flex; flex-direction: column;
}
.nm-close { position:absolute; top:14px; right:18px; z-index:20; background:none; border:none; font-size:18px; cursor:pointer; color:#aaa; line-height:1; padding:4px; }
.nm-close:hover { color:#333; }

.nm-header { padding:28px 44px 16px; border-bottom:1.5px dashed #d8d4a8; flex-shrink:0; position:relative; }
.nm-meta    { display:flex; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.nm-meta .news-card-badge { font-size:11px; }
.nm-date    { font-size:13px; color:#1a1a1a; letter-spacing:0.05em; }
.nm-subtitle{ font-size:13px; color:#aaa; letter-spacing:0.08em; margin-bottom:1px; }
.nm-title   { font-size:26px; font-weight:700; line-height:1.45; color:#1a1a1a; font-family:var(--font-body); }

.nm-split   { display:flex; flex:1; min-height:0; padding:28px 36px 36px; gap:36px; }

.nm-img-col { width:180px; flex-shrink:0; display:flex; flex-direction:column; align-items:center; }
.nm-img     { width:100%; height:auto; object-fit:contain; display:block; border-radius:3px; box-shadow:3px 4px 14px rgba(0,0,0,0.15); }
.nm-img-placeholder {
  width:100%; min-height:240px;
  background: linear-gradient(135deg,#eee8d0 0%,#f5f0e4 100%);
  border-radius:3px; display:flex; align-items:center; justify-content:center;
  color:#bbb; font-size:12px; letter-spacing:0.08em;
  box-shadow:3px 4px 14px rgba(0,0,0,0.08);
}
.nm-price {
  font-size:11px; color:#999; line-height:1.7; margin-top:10px;
  text-align:center; letter-spacing:0.04em;
}
.nm-img-links {
  width:100%; margin-top:20px;
  display:flex; flex-direction:column; gap:6px; align-items:flex-start;
}
.nm-img-link {
  font-size:13px; color:#1a6ab0; font-weight:700;
  display:flex; align-items:center; gap:6px;
  letter-spacing:0.04em; text-decoration:none; transition:color 0.2s;
  white-space: nowrap;
}
.nm-img-link svg { display:inline-block; transition:transform 0.2s ease; flex-shrink:0; }
.nm-img-link:hover { color:#0d4a80; }
.nm-img-link:hover svg { transform:translateX(4px); }
button.nm-modal-link,
button.wm-modal-link { background:none; border:none; padding:0; cursor:pointer; font:inherit; }

.nm-body {
  flex:1; overflow-y:auto; padding:0 4px 0 0;
  overscroll-behavior: contain;
}
.nm-content {
  font-size:14px; color:#333; line-height:32px; padding:0 12px 32px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='32'%3E%3Cline x1='0' y1='0.5' x2='14' y2='0.5' stroke='%23d8d4a8' stroke-width='1' stroke-dasharray='6 8'/%3E%3C/svg%3E");
  background-size: 14px 32px;
}
.nm-content p { margin:0; }

.nm-intro {
  background: #fff9c4; border-radius: 3px;
  padding: 0 14px; margin: 0 50px; font-size: 13px; color: #555; line-height: 32px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.08), 1px 1px 0 #e8d84a inset;
  position: relative;
}
.nm-intro::before { content:'♪'; position:absolute; top:8px; right:10px; font-size:11px; color:#c8b840; opacity:0.6; }

.nm-notes       { display:flex; flex-direction:column; }
.nm-notes-item  { display:flex; gap:12px; align-items:flex-start; min-height:32px; font-size:12px; line-height:32px; }
.nm-notes-key   { flex-shrink:0; width:72px; color:#888; font-size:10px; letter-spacing:0.08em; line-height:32px; }
.nm-notes-val   { color:#1a1a1a; font-size:13px; line-height:32px; }
.nm-notes-tracks { align-items:flex-start !important; }

.nm-tracks-list { display:flex; flex-direction:column; gap:0; }
.nm-track       { display:flex; align-items:baseline; gap:4px; font-size:13px; line-height:32px; }
.nm-track-num   { color:#888; font-size:11px; width:22px; flex-shrink:0; }
.nm-track-title { flex:1; color:#1a1a1a; }
.nm-track-dur   { color:#888; font-size:11px; letter-spacing:0.04em; font-family:var(--font-ui); }
.nm-custom { font-size:13px; line-height:32px; color:#333; }

/* ── コンサート記事セクション ── */
.nm-section { margin-top: 32px; }
.nm-section-head {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: #333; height: 32px; display: flex; align-items: center;
  padding-left: 7px; border-left: 2px solid #c8a828;
}

.nm-performers { list-style: none; margin: 0; padding: 0; }
.nm-performers li { font-size: 13px; color: #1a1a1a; height: 32px; display: flex; align-items: center; }

.nm-venue { font-size: 13px; color: #1a1a1a; }
.nm-venue-hall { font-weight: 600; height: 32px; display: flex; align-items: center; }
.nm-venue-date { height: 32px; display: flex; align-items: center; }
.nm-venue-time { height: 32px; display: flex; align-items: center; color: #1a1a1a; }
.nm-venue-map  {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: #1a6ab0; font-weight: 700; text-decoration: none;
  height: 32px; transition: color 0.2s;
}
.nm-venue-map svg { transition: transform 0.2s; flex-shrink: 0; }
.nm-venue-map:hover { color: #0d4a80; }
.nm-venue-map:hover svg { transform: translateX(4px); }

.nm-ticket-row {
  display: flex; align-items: center; gap: 10px;
  height: 32px; font-size: 13px;
}
.nm-ticket-type  { width: 7em; color: #444; font-size: 13px; flex-shrink: 0; }
.nm-ticket-price { font-weight: 600; color: #1a1a1a; }
.nm-ticket-note  { font-size: 12px; color: #666; }

/* プログラム（すべて 32px グリッドに揃える） */
.nm-program { }
.nm-prog-block {
  display: flex; align-items: flex-start; gap: 8px;
}
.nm-prog-block:not(:last-of-type) {
  margin-bottom: 32px;
}
.nm-prog-num        { font-size: 12px; color: #999; min-width: 18px; flex-shrink: 0; line-height: 32px; }
.nm-prog-pieces-wrap { flex: 1; }
.nm-prog-title      { font-size: 13px; color: #1a1a1a; line-height: 32px; }
.nm-prog-highlight .nm-prog-title { font-weight: 700; color: #1a4a8a; }
.nm-prog-sub        { font-size: 12px; color: #555; line-height: 32px; }
.nm-prog-note       {
  font-size: 12px; color: #666; line-height: 32px;
  margin-top: 32px;
}

.nm-img.expandable { cursor: zoom-in; transition: opacity 0.15s; }
.nm-img.expandable:hover { opacity: 0.88; }

.nm-lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1100;
  align-items: center; justify-content: center;
  overscroll-behavior: contain;
}
.nm-lightbox.open { display: flex; }
.nm-lightbox-img {
  max-width: 88vw; max-height: 88vh;
  object-fit: contain; border-radius: 2px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
  cursor: default;
}
.nm-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  color: rgba(255,255,255,0.5); font-size: 28px;
  cursor: pointer; line-height: 1; padding: 6px;
  transition: color 0.2s;
}
.nm-lightbox-close:hover { color: #fff; }

.nm-detail-link-wrap { height:32px; display:flex; align-items:center; }
.nm-detail-link { font-size:13px; color:#1a6ab0; font-weight:700; display:inline-flex; align-items:center; gap:6px; letter-spacing:0.04em; text-decoration:none; transition:color 0.2s; }
.nm-detail-link svg { display:inline-block; transition:transform 0.2s ease; flex-shrink:0; }
.nm-detail-link:hover { color:#0d4a80; }
.nm-detail-link:hover svg { transform:translateX(4px); }

@media (max-width: 768px) {
  .nm-overlay  { padding: 0; }
  .nm-modal    { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }

  .nm-header   { padding: 20px 52px 12px 20px; flex-shrink: 0; }
  .nm-title    { font-size: 20px; }

  .nm-split {
    flex-direction: column;
    padding: 0 0 56px;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nm-img-col {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 24px;
    border-bottom: 1px solid #ebe7c0;
  }
  .nm-img             { max-width: 160px; margin: 0 auto; }
  .nm-img-placeholder { width: 120px; min-height: unset; aspect-ratio: 210/297; margin: 0 auto; }
  .nm-price           { text-align: center; }
  .nm-img-links       { align-items: center; margin-top: 12px; width: auto; }

  .nm-body { flex: none; overflow-y: visible; padding: 20px 20px 0; }
  .nm-intro { margin: 0 8px; }

  /* =====================================================
     WORKS モーダル：本デザイン → フルスクリーン縦レイアウト
     ===================================================== */

  .works-modal-overlay { padding: 0; }

  .works-modal-close {
    display: block;
    position: fixed; top: 14px; right: 16px;
    z-index: 1010;
    background: none; border: none;
    font-size: 18px; color: #aaa;
    cursor: pointer; line-height: 1; padding: 4px;
  }
  .works-modal-close:hover { color: #333; }

  /* 本コンテナ：book 背景・アスペクト・アニメーションをリセット */
  .wm-book {
    width: 100%; height: 100%;
    align-self: stretch;          /* overlay の align-items:center を打ち消す */
    aspect-ratio: unset;
    background: #FFFEF5;
    font-size: 14px;              /* clamp(vw/vh) → 固定 px */
    animation: wmFadeIn 0.25s ease both;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex; flex-direction: column;
  }
  .wm-book::before,
  .wm-book::after { display: none; } /* 背表紙の影・縦線を非表示 */

  /* 左ページ → ヘッダー＋info ブロック */
  .wm-left {
    position: static;
    width: 100%; height: auto;
    overflow: visible;
    animation: none;
    padding: 52px 20px 0;      /* 上：閉じるボタン分を確保、区切り線なし */
    flex-shrink: 0;
  }
  .wm-left-top   { margin-bottom: 36px; gap: 14px; align-items: center; }
  .wm-player-wrap { width: 44px; height: 44px; }
  .wm-label      { font-size: 10px; }
  .wm-title      { font-size: 17px; }
  .wm-info {
    flex: none;          /* desktop の flex:1 をリセット */
    overflow: visible;   /* desktop の overflow-y:auto をリセット */
    scrollbar-width: none;
    font-size: 12px;
    gap: 0.7em 1em;
  }

  /* 右ページ → 本文・動画・リンク ブロック */
  .wm-right {
    position: static;
    width: 100%; height: auto;
    overflow: visible;
    animation: none;
    padding: 40px 20px 72px;   /* 上：作品データとの間を広めに */
    gap: 36px;
    flex-shrink: 0;
  }
  .wm-body {
    font-size: 13px;
    line-height: 32px;
    background-image: repeating-linear-gradient(
      transparent, transparent 31px,
      #e0dcb8 31px, #e0dcb8 32px
    );
    padding-bottom: 8px;
  }
  .wm-mid     { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wm-video-wrap  { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .wm-credits { font-size: 11px; color: #999; }
  .wm-bottom  {
    margin-left: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 32px;
  }
  .wm-score-img {
    order: 1;
    width: 55%;
    max-width: 200px;
  }
  .wm-links   { order: 2; align-self: center; }
  .wm-link    { font-size: 13px; color: #1a6ab0; font-weight: 700; }
}

/* ===== BIO ルーズリーフ ===== */
#bioPaperWrap {
  position: relative; width: 100%; max-width: 820px;
  overflow: visible; padding-top: 20px;
}
#bioPaperCol {
  max-width: 820px;
  z-index: 2;
  width: 55vw;
  min-width: 400px;
}
#bioPaperSvg { display: block; width: 100%; overflow: visible; margin-top: -20px; }

.bio-text-overlay {
  position: absolute; top: 0; left: 0; right: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
.bio-text-overlay.reveal {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bio-text-inner   { padding-bottom: 36px; font-family: var(--font-body); }
.bio-name-row     { font-size: 18px; font-weight: 700; color: #1a1a1a; line-height: 28px; }
.bio-name-sub-row {
  font-family: 'Patrick Hand', cursive;
  font-size: 13px; font-weight: 400;
  color: var(--text-light); letter-spacing: 0.16em;
  line-height: 28px; margin-bottom: 28px;
}
.bio-lang-content        { display: none; }
.bio-lang-content.active { display: block; }
#contentEN .bio-para     { font-family: 'Patrick Hand', cursive; font-size: 13px; }
.bio-para {
  font-size: 12px; color: #333;
  line-height: 28px; margin-bottom: 28px; text-align: justify;
}
.bio-para:last-child { margin-bottom: 0; }

/* ===== BIOGRAPHY ===== */
.bio-sec .wrap { padding: 0; }
.bio-sec {
  background: url("https://pub-6bf01576c39945f2a2fa6d611c34de55.r2.dev/elements/profilewall.webp") center bottom / 100% auto no-repeat;
  padding: var(--pad-section) 0;
  position: relative; overflow: visible;
}
.bio-layout {
  width: 100%; display: flex; justify-content: center;
  opacity: 0; transition: opacity 0.8s 0.4s;
}
.bio-group {
  display: flex; gap: 0; align-items: flex-start;
  width: 90vw; max-width: 1400px; flex-shrink: 0;
  margin-left: 7vw; margin-right: 3vw;
}
.bio-profile-img {
  width: 45vw; max-width: 700px; min-width: 200px; height: auto;
  flex-shrink: 1; flex-grow: 0;
  transform: rotate(-3deg); align-self: flex-start;
  margin-top: 80px; margin-right: -18%; z-index: var(--z-base);
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
}

/* ===== CONTACT ===== */
.contact-sec { background: var(--bg); padding: var(--pad-section) 0 100px; position: relative; }
.contact-heading-link { display: inline-block; }
.contact-heading-wrap {
  margin-bottom: 48px; text-align: center;
  opacity: 0; transition: opacity 0.7s ease;
}
.contact-heading-wrap.appeared { opacity: 1; }
.contact-heading-text {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: 0.06em; color: #2a2a2a; display: block;
}
.contact-heading-link:hover { opacity: 0.6; transition: opacity 0.25s; }

.contact-crayon-wrap { margin-top: -25px; overflow: visible; display: flex; justify-content: center; }

.contact-form-wrap { max-width: 680px; margin: 0 auto; }
.contact-form      { width: 100%; display: flex; flex-direction: column; gap: 18px; }

.form-row   { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11px; font-weight: 500; color: var(--text); letter-spacing: 0.06em; }

.form-input,
.form-textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid #ddd; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px;
  background: var(--white); color: var(--text);
  outline: none; transition: border-color var(--transition);
}
.form-input:focus,
.form-textarea:focus { border-color: var(--mint-dark); }
.form-textarea { min-height: 180px; resize: vertical; }

.form-file-input { display: none; }
.form-file-row   { display: flex; align-items: center; gap: 12px; }
.form-file-row + .form-file-row { margin-top: 8px; }
.form-file-label {
  display: inline-block; flex-shrink: 0; padding: 8px 18px;
  border: 1px solid #ccc; border-radius: var(--radius);
  font-size: 12px; color: #666; cursor: pointer; background: var(--white);
  transition: border-color var(--transition), color var(--transition);
}
.form-file-label:hover { border-color: var(--mint-dark); color: var(--mint-dark); }

.form-file-info  { display: flex; align-items: center; gap: 8px; min-width: 0; }
.form-file-info.empty .form-file-name { color: #bbb; font-size: 11px; }
.form-file-name  { font-size: 12px; color: var(--text-mid); white-space: nowrap; }
.form-file-ext   { font-size: 12px; color: var(--text-mid); white-space: nowrap; flex-shrink: 0; }
.form-file-size  { font-size: 12px; color: #888;            white-space: nowrap; flex-shrink: 0; }
.form-file-note  {
  font-size: 10px; color: var(--text-light); line-height: 1.9; margin-top: 6px;
  border-left: 2px solid var(--mint-light); padding-left: 10px;
}
.form-submit {
  width: 100%; padding: 16px;
  background: var(--text); color: var(--white);
  border: none; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.28em;
  cursor: pointer; transition: background var(--transition); margin-top: 4px;
}
.form-submit:hover { background: var(--mint-dark); }

.form-success         { display: none; text-align: center; padding: 40px 0; }
.form-success.visible { display: block; }
.form-success p       { font-size: 14px; color: var(--text-mid); line-height: 2; }

/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a; color: rgba(255,255,255,0.5);
  text-align: center; padding: 24px 32px;
  font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.15em;
}

/* ===== RESPONSIVE ===== */

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .header-inner .nav-list { display: none; }
  .hamburger { display: flex; }

  .wrap { padding: 0 24px; }

  .hero { height: 100vh; margin: 0; background: #fcfcfc; }
  .hero::before { background-size: 150%; background-position: center; }

  /* PICKUP */
  .pickup-sec { padding: var(--pad-section-sm) 0 0; }
  .pickup-heading { margin-bottom: 100px; }
  .pickup-sec .wrap { padding: 0; }
  .pickup-grid {
    display: flex;
    overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 40px;
    padding: 20px 0 190px;
    scrollbar-width: none;
    margin-top: -80px;
  }
  .pickup-grid::-webkit-scrollbar { display: none; }
  .pickup-card {
    flex: 0 0 60%;
    scroll-snap-align: center;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .pickup-card:first-child { margin-left: 20% !important; }
  .pickup-card:last-child  { margin-right: 20% !important; }
  .pickup-img-wrap { width: 100%; padding: 0; margin: 0; box-sizing: border-box; }
  .pickup-img      { width: 100%; height: auto; }
  .pickup-info     { width: 100%; padding-left: 0; padding-right: 0; }

  /* WORKS */
  .works-ghost-side { display: none; }
  .works-list-outer { justify-content: center; }
  .works-list { grid-template-columns: repeat(3, 190px); margin: 0 auto; }
  .works-card:nth-child(n) { transform: none !important; margin-top: 0 !important; }
  .works-card:nth-child(1) { transform: rotate(-1.5deg) !important; margin-top: 0px  !important; }
  .works-card:nth-child(2) { transform: rotate( 1deg)   !important; margin-top: 24px !important; }
  .works-card:nth-child(3) { transform: rotate(-0.8deg) !important; margin-top: 8px  !important; }
  .works-card:nth-child(4) { transform: rotate( 1.8deg) !important; margin-top: 18px !important; }
  .works-card:nth-child(5) { transform: rotate(-1.2deg) !important; margin-top: 4px  !important; }
  .works-card:nth-child(6) { transform: rotate( 0.8deg) !important; margin-top: 30px !important; }
  .works-card.appeared:hover { transform: scale(1.04) !important; }
  .works-view-more-wrap  { padding-bottom: 80px; justify-content: flex-end; }
  .works-view-more-inner { width: auto; display: flex; justify-content: flex-end; }

  /* NEWS */
  .news-sec .ms-paper:first-of-type { width: 200px; }
  .news-sec .ms-paper:last-of-type  { width: 180px; }
  .news-layout { grid-template-columns: 1fr; }
  .news-x { max-width: none; width: 100%; margin: 0; }

  /* BIO */
  .bio-layout { display: block; }
  .bio-group  { flex-direction: column; align-items: center; width: 96vw; margin-left: auto; margin-right: auto; gap: 0; }
  .bio-profile-img { width: clamp(260px, 80vw, 600px) !important; margin-top: 24px !important; margin-right: 0 !important; align-self: center !important; order: 1; z-index: 2 !important; margin-bottom: -80px !important; }
  #bioPaperCol  { position: relative !important; width: 100% !important; right: auto !important; top: auto !important; padding-right: 0 !important; flex: none !important; margin-left: 0 !important; margin-right: 0 !important; order: 2; z-index: 3; }
  #bioPaperWrap { width: 94vw !important; max-width: 820px; margin: 0 auto !important; transform: translateX(-3.0%); padding-top: 0 !important; }
  #bioPaperSvg  { margin-top: 0 !important; }

  /* CONTACT */
  .contact-form-wrap { max-width: 100%; }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-inner { display: none; }
  .wrap { padding: 0 16px; }

  /* HERO */
  .hero { height: 100vh; margin: 0; padding: 0; background: #fcfcfc; }
  .hero::before { background-size: 150%; background-position: center; }

  /* PICKUP */
  .pickup-sec { padding: 60px 0 0; }
  .pickup-heading { font-size: 26px; margin-bottom: 120px; }
  .pickup-sec .wrap { padding: 0; }
  .pickup-grid {
    gap: 40px;
    overflow-x: auto; overflow-y: visible;
    padding: 30px 0 190px;
    margin-top: 0;
    scroll-snap-type: x mandatory;
  }
  .pickup-grid::-webkit-scrollbar { display: none; }
  .pickup-card {
    flex: 0 0 62%;
    scroll-snap-align: center;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .pickup-card:first-child { margin-left: 19% !important; }
  .pickup-card:last-child  { margin-right: 19% !important; }
  .pickup-title { font-size: 13px; }
  .pickup-card.appeared:hover .pickup-img { transform: none; }
  .pickup-card.appeared:hover { opacity: 1; box-shadow: none; transform: none; }
  .pickup-img-wrap { width: 100%; padding: 0; margin: 0; box-sizing: border-box; }
  .pickup-img      { width: 100%; height: auto; }
  .pickup-info     { width: 100%; padding-left: 0; padding-right: 0; }

  /* NEWS */
  .news-sec .ms-paper:first-of-type { width: 140px; }
  .news-sec .ms-paper:last-of-type  { width: 120px; }
  .news-sec    { padding: var(--pad-section-sm) 0 0; }
  .news-layout { padding: 0; }
  .news-list   { width: 100%; }
  .news-card   { width: 100%; min-width: 0; min-height: 0; box-sizing: border-box; padding-bottom: 28px; }
  .news-card-updated { position: absolute; bottom: 8px; right: 12px; }
  .news-thumb  { width: 56px; aspect-ratio: 210/297; }
  .news-card-title { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: normal; }
  .news-card-desc  { display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0; white-space: normal; }
  .news-card-notes { white-space: normal; overflow: visible; text-overflow: clip; }
  .news-card-date  { white-space: normal; }
  .news-viewmore-wrap { padding-bottom: 40px !important; }
  .news-x { padding-bottom: 0; max-width: none; width: 100%; margin: 0; }
  .twitter-tweet { background: var(--white) !important; }

  /* WORKS */
  .works-sec        { padding: var(--pad-section-sm) 0 0; overflow: visible; }
  .works-list-outer { overflow: visible; }
  .works-list { grid-template-columns: repeat(2, minmax(140px, 190px)); gap: clamp(20px, 4vw, 44px); width: 100%; max-width: calc(190px * 2 + 44px); margin: 0 auto; }
  .works-card { width: 100%; aspect-ratio: unset; }
  .works-card:nth-child(1) { transform: rotate(-1.5deg) !important; margin-top: -20px !important; }
  .works-card:nth-child(2) { transform: rotate(1deg)    !important; margin-top: 40px  !important; }
  .works-card:nth-child(3) { transform: rotate(-0.8deg) !important; margin-top: -20px !important; }
  .works-card:nth-child(4) { transform: rotate(1.8deg)  !important; margin-top: 40px  !important; }
  .works-card:nth-child(5) { transform: rotate(-1.2deg) !important; margin-top: -20px !important; }
  .works-card:nth-child(6) { transform: rotate(0.8deg)  !important; margin-top: 40px  !important; }
  .works-card-bottom { padding: 4px 8px 0; }

  /* BIO */
  .bio-sec    { padding: var(--pad-section-sm) 0 0; }
  .bio-layout { display: block; }
  .bio-group  { gap: 0; width: 100%; margin-left: 0; margin-right: 0; }
  .bio-photo-img-el { width: 160px !important; }
  .bio-profile-img  { width: 125vw !important; margin-top: 16px !important; margin-right: 0 !important; align-self: center !important; order: 1; z-index: 2 !important; margin-bottom: -80px !important; }
  #bioPaperCol  { position: relative !important; width: 100% !important; right: auto !important; top: auto !important; padding-right: 0 !important; flex: none !important; margin-left: 0 !important; margin-right: 0 !important; order: 2; z-index: 3; }
  #bioPaperWrap { width: 94vw !important; max-width: 820px; margin: 0 auto !important; transform: translateX(-3.0%); padding-top: 0 !important; }
  #bioPaperSvg  { margin-top: 0 !important; }

  /* CONTACT */
  .contact-sec { padding: var(--pad-section-sm) 0 60px; }

  /* pickup corner deco */
  .pickup-corner-deco { width: 60px; height: 60px; }

  /* torn edge */
  .torn-edge { display: none; }

  /* 見出しサイズ */
  .works-heading, .news-heading, .bio-heading { font-size: 26px; }
  .bio-heading { margin-bottom: 72px !important; }

  /* モバイルメニュー */
  .mobile-menu-link { font-size: 28px; }

  /* ハンバーガー */
  .hamburger { display: flex; position: fixed; top: 14px; right: 16px; z-index: var(--z-hamburger); }
}

/* ============================================================
   PICKUP レスポンシブ
============================================================ */

/* ── 551px以上：3列グリッド共通設定 ── */
@media (min-width: 551px) {
  .pickup-sec .wrap {
    padding-left:  clamp(24px, 4vw, 40px) !important;
    padding-right: clamp(24px, 4vw, 40px) !important;
  }
  .pickup-sec .pickup-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px 20px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: auto !important;
    padding: 20px 0 0 !important;
    margin-top: 0 !important;
    scrollbar-width: auto !important;
  }
  .pickup-sec .pickup-grid::-webkit-scrollbar { display: revert; }

  .pickup-sec .pickup-card {
    flex: none !important;
    scroll-snap-align: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .pickup-sec .pickup-card.appeared       { opacity: 1 !important; pointer-events: none !important; }
  .pickup-sec .pickup-card:not(.appeared) { pointer-events: none !important; }
  .pickup-sec .pickup-card.appeared .pickup-img-wrap,
  .pickup-sec .pickup-card.appeared .pickup-info { pointer-events: auto !important; }
  .pickup-sec .pickup-card.appeared .pickup-img-wrap:hover,
  .pickup-sec .pickup-card.appeared .pickup-img-wrap:hover ~ .pickup-info,
  .pickup-sec .pickup-card.appeared .pickup-info:hover { opacity: 0.5; }
  .pickup-sec .pickup-card:first-child { margin-left:  auto !important; }
  .pickup-sec .pickup-card:last-child  { margin-right: auto !important; }

  .pickup-sec .pickup-card:nth-child(1) { transform: rotate(-1.5deg) !important; margin-top: 0px  !important; }
  .pickup-sec .pickup-card:nth-child(2) { transform: rotate( 1deg)   !important; margin-top: 24px !important; }
  .pickup-sec .pickup-card:nth-child(3) { transform: rotate(-0.8deg) !important; margin-top: 8px  !important; }
  .pickup-sec .pickup-card:nth-child(4) { transform: rotate( 1.8deg) !important; margin-top: 18px !important; }
  .pickup-sec .pickup-card:nth-child(5) { transform: rotate(-1.2deg) !important; margin-top: 4px  !important; }
  .pickup-sec .pickup-card:nth-child(6) { transform: rotate( 0.8deg) !important; margin-top: 30px !important; }

  .pickup-sec .pickup-img-wrap {
    width: 100% !important; padding: 0 !important; margin: 0 !important;
    box-sizing: border-box !important; overflow: visible !important;
  }
  .pickup-sec .pickup-img  { width: 100% !important; max-width: 200px !important; height: auto !important; }
  .pickup-sec .pickup-info {
    width: 100% !important; max-width: 200px !important;
    padding-left: 0 !important; padding-right: 0 !important;
    align-self: stretch !important; text-align: left !important;
  }
  .pickup-sec .pickup-label { text-align: left !important; }
  .pickup-sec .pickup-title { text-align: left !important; }
  .pickup-sec .pickup-price { text-align: left !important; }

  .pickup-sec .pickup-card:nth-child(1):hover .pickup-img { transform: rotate( 1.5deg) scale(1.1) !important; box-shadow: var(--shadow-card-hover) !important; }
  .pickup-sec .pickup-card:nth-child(2):hover .pickup-img { transform: rotate(-1deg)   scale(1.1) !important; box-shadow: var(--shadow-card-hover) !important; }
  .pickup-sec .pickup-card:nth-child(3):hover .pickup-img { transform: rotate( 0.8deg) scale(1.1) !important; box-shadow: var(--shadow-card-hover) !important; }
  .pickup-sec .pickup-card:nth-child(4):hover .pickup-img { transform: rotate(-1.8deg) scale(1.1) !important; box-shadow: var(--shadow-card-hover) !important; }
  .pickup-sec .pickup-card:nth-child(5):hover .pickup-img { transform: rotate( 1.2deg) scale(1.1) !important; box-shadow: var(--shadow-card-hover) !important; }
  .pickup-sec .pickup-card:nth-child(6):hover .pickup-img { transform: rotate(-0.8deg) scale(1.1) !important; box-shadow: var(--shadow-card-hover) !important; }
}

/* ── 551px〜1024px：タブレット専用余白 ── */
@media (min-width: 551px) and (max-width: 1024px) {
  .pickup-sec { padding: var(--pad-section-sm) 0 120px !important; }
  .pickup-heading { margin-bottom: 100px; }
}

/* ── 550px以下：横スクロールスライダー ── */
@media (max-width: 550px) {
  .pickup-sec { padding: 60px 0 90px !important; }
  .pickup-sec .wrap { padding: 0 !important; }
  .pickup-heading { font-size: 26px; margin-bottom: 120px; }

  .pickup-sec .pickup-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 40px !important;
    padding: 30px 0 0 !important;
    margin-top: 0 !important;
    scrollbar-width: none !important;
  }
  .pickup-sec .pickup-grid::-webkit-scrollbar { display: none; }

  .pickup-sec .pickup-card {
    flex: 0 0 62% !important;
    width: auto !important;
    scroll-snap-align: center !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0 !important;
  }
  .pickup-sec .pickup-card:nth-child(1),
  .pickup-sec .pickup-card:nth-child(2),
  .pickup-sec .pickup-card:nth-child(3),
  .pickup-sec .pickup-card:nth-child(4),
  .pickup-sec .pickup-card:nth-child(5),
  .pickup-sec .pickup-card:nth-child(6) { transform: none !important; margin-top: 0 !important; }
  .pickup-sec .pickup-card:first-child { margin-left:  19% !important; }
  .pickup-sec .pickup-card:last-child  { margin-right: 19% !important; }

  .pickup-sec .pickup-img-wrap { width: 100% !important; padding: 0 !important; margin: 0 !important; box-sizing: border-box !important; }
  .pickup-sec .pickup-img      { width: 100% !important; max-width: none !important; height: auto !important; }
  .pickup-sec .pickup-info     { width: 100% !important; max-width: none !important; }
  .pickup-sec .pickup-card:hover .pickup-img { transform: none !important; box-shadow: var(--shadow-card) !important; }
}

/* ── MOBILE SMALL (≤425px) ── */
@media (max-width: 425px) {
  .news-sec .wrap { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  .news-card      { width: 100%; max-width: 100%; box-sizing: border-box; }
  .news-list      { width: 100%; box-sizing: border-box; }

  /* WORKS: 424px以下は1列 */
  .works-list { grid-template-columns: 1fr; gap: 20px 0; width: 100%; max-width: 190px; margin: 0 auto; }
  .works-card { width: 100%; }
  .works-card:nth-child(1) { transform: rotate(-1.5deg) translateX(-8vw) !important; margin-top: 0 !important; }
  .works-card:nth-child(2) { transform: rotate( 1deg)   translateX( 8vw) !important; margin-top: 0 !important; }
  .works-card:nth-child(3) { transform: rotate(-0.8deg) translateX(-8vw) !important; margin-top: 0 !important; }
  .works-card:nth-child(4) { transform: rotate( 1.8deg) translateX( 8vw) !important; margin-top: 0 !important; }
  .works-card:nth-child(5) { transform: rotate(-1.2deg) translateX(-8vw) !important; margin-top: 0 !important; }
  .works-card:nth-child(6) { transform: rotate( 0.8deg) translateX( 8vw) !important; margin-top: 0 !important; }
}
