/* トンマナ：B 夜のプラム・細字ゴシック（CLAUDE.md 参照）。色は4つだけ */
:root {
  --bg: #2a1c24;
  --line: #5a4450;
  --ink: #f1e6dc;
  --accent: #d3e06a;
  --ink-soft: #b7a2ac;
  --display: "Archivo", "IBM Plex Sans JP", sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 52px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Sans JP", "Hiragino Sans", sans-serif; font-weight: 300;
  font-size: 15px; line-height: 1.8; letter-spacing: .02em;
}
h1, h2, h3, b { font-weight: 400; line-height: 1.4; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* hidden を付けたものは、display を指定していても必ず隠す */
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.display { font-family: var(--display); font-stretch: 125%; font-weight: 200; letter-spacing: .02em; line-height: 1; }
.eyebrow { font-family: var(--display); font-stretch: 100%; font-weight: 400; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

.btn { display: inline-block; text-align: center; text-decoration: none; font-family: var(--display); font-weight: 400;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 12px; white-space: nowrap; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.actions .btn:only-child { grid-column: 1 / -1; }

/* 外のサイトへ飛ぶリンク（新しいタブで開くもの）には、すべて同じ ↗ の印を付ける */
a[target="_blank"]::after { content: "\2197"; content: "\2197" / ""; margin-left: .35em; font-family: var(--display); font-weight: 300; font-stretch: 100%; }
/* ただし、メンバーの Instagram とフッターの SNS は付けない（見ればアカウントだと分かるので） */
.members a::after, .sns a::after { content: none; }

/* 押せるものは、カーソルを合わせると差し色になる。スマホは指で押した瞬間に同じ色になる */
a, button, summary { transition: color .2s, background-color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
a:is(:hover, :active), button:is(:hover, :active) { color: var(--accent); }
.btn:is(:hover, :active) { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.ghost:is(:hover, :active) { background: transparent; color: var(--accent); }
.gnav-logo .logo { transition: background-color .2s; }
.gnav-logo:is(:hover, :active) .logo { background: var(--accent); }
.cover summary::after { transition: color .2s; }
.cover summary:is(:hover, :active)::after { color: var(--accent); }

/* ヘッダー */
.gnav { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter); min-height: 52px; background: var(--bg); border-bottom: 1px solid var(--line); }
.gnav-logo { display: block; width: 56px; }
/* ロゴは黒の手書き PNG。形だけ借りて、文字色で塗る */
.logo { display: block; aspect-ratio: 901 / 535; background: var(--ink);
  -webkit-mask: url(images/logo.png) center / contain no-repeat; mask: url(images/logo.png) center / contain no-repeat; }
.gnav-menu a { display: block; padding: 10px 0; text-decoration: none; font-family: var(--display); font-weight: 300;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

/* スマホのメニュー：2本線のボタン（開くと ×）。メニューは右から出て、うしろを暗くする */
@media (max-width: 767px) {
  .gnav-toggle { position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0;
    background: none; border: 0; color: var(--ink); cursor: pointer; }
  .gnav-toggle::before, .gnav-toggle::after { content: ""; position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; }
  .gnav-toggle::before { top: 18px; }
  .gnav-toggle::after { top: 25px; }
  .gnav.open .gnav-toggle::before { top: 21.5px; transform: rotate(45deg); }
  .gnav.open .gnav-toggle::after { top: 21.5px; transform: rotate(-45deg); }
  .gnav-menu { position: fixed; z-index: 2; top: 52px; right: 0; bottom: 0; width: min(78vw, 320px); padding: 28px 28px;
    background: var(--bg); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; }
  .gnav-menu a { padding: 14px 0; font-size: 15px; }
  .gnav-shade { position: fixed; z-index: 1; inset: 52px 0 0; background: rgba(20, 12, 17, .6); opacity: 0; visibility: hidden; }
  .gnav.open .gnav-menu { transform: none; visibility: visible; }
  .gnav.open .gnav-shade { opacity: 1; visibility: visible; }
  html.menu-open { overflow: hidden; }
}

/* メイン画像 */
.hero { position: relative; overflow: hidden; aspect-ratio: 3 / 2; max-height: 86vh; width: 100%; }
/* --zoom はスクロールに合わせて main.js が少しずつ大きくする */
.hero::before { content: ""; position: absolute; inset: 0; background: url(images/photo-main.jpg) center 30% / cover;
  transform: scale(var(--zoom, 1)); transform-origin: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(42, 28, 36, .55) 70%, var(--bg)); } /* 下にいくほどページの色に溶け込む */
.hero-logo { width: clamp(110px, 30vw, 220px); margin: 24px auto 32px; }
.sec-photo { display: block; width: 100%; height: auto; margin: 40px 0 0; }
#profile .sec-photo { margin: 0 0 32px; }

/* セクション */
.sec { max-width: 960px; margin: 0 auto; padding: 64px var(--gutter); border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; }
.sec-title { margin: 0 0 32px; }
.sec-title h2 { font-size: 44px; }
.sub { margin: 48px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.empty, .error { color: var(--ink-soft); font-size: 14px; }

/* LIVE：次のライブ */
.next .date small, .card .date small { display: block; margin-top: 8px; font-size: 11px; font-weight: 400; letter-spacing: .2em; color: var(--ink-soft); }
.next .info { margin-top: 8px; }
.next .actions { grid-auto-flow: column; }
.info { display: grid; grid-template-columns: 4.5em 1fr; gap: 2px 8px; margin: 0; font-size: 14px; }
.info dt { color: var(--ink-soft); }
.info dd { margin: 0; }

/* LIVE：一覧のカード */
.card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
/* 日付は白（.card p の薄い色を受け継がないように）。過去の公演だけ控えめな色 */
.card .date { font-size: 22px; color: var(--ink); }
.past .card .date { color: var(--ink-soft); }
.card h3 { font-size: 15px; margin-bottom: 2px; }
.card p { font-size: 13px; color: var(--ink-soft); }
.card .actions { margin-top: 10px; grid-template-columns: auto; justify-content: start; }
.card .btn { padding: 8px 16px; font-size: 11px; }
.past .card .date { font-size: 15px; }
.soldout { display: inline-block; font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: .15em;
  border: 1px solid var(--ink-soft); padding: 1px 6px; color: var(--ink-soft); justify-self: start; }

/* 02 RELEASE */
.release-meta { margin: 20px 0 8px; }
.release-title { font-size: 48px; overflow-wrap: anywhere; }
.links { margin-top: 24px; border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-family: var(--display); font-weight: 300; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.jacket { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
/* RELEASE の最新作のジャケットは、横幅いっぱいより少し小さく（7割） */
.release .jacket { width: 70%; }
.jacket.none { display: grid; place-items: center; font-family: var(--display); font-weight: 200; font-size: 28px; color: var(--ink-soft); }

/* DISCOGRAPHY（作品の一覧） */
.music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 12px; }
.work h3 { font-size: 16px; margin-top: 12px; }
.work .eyebrow { margin-top: 4px; }
/* 曲目：ジャケットに重ねる。右下の + が目印 */
.cover { position: relative; }
.cover summary { display: block; list-style: none; cursor: pointer; }
.cover summary::-webkit-details-marker { display: none; }
.cover summary::after { content: "+"; position: absolute; z-index: 2; right: 0; bottom: 0; width: 28px; height: 28px;
  display: grid; place-items: center; background: var(--bg); color: var(--ink); font-family: var(--display); font-weight: 300; font-size: 16px; }
.cover[open] summary::after { content: "−"; }
.cover .tracks { position: absolute; z-index: 1; inset: 0; margin: 0; padding: 12px 12px 12px 2.2em; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: rgba(42, 28, 36, .9); font-size: 13px; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.work .links { margin-top: 10px; }
.work .links a { padding: 8px 0; font-size: 11px; }

/* SHOP */
.shop-lead { color: var(--ink-soft); }

/* PROFILE */
.bio { max-width: 40em; }
.bio p + p { margin-top: .9em; }
.members { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.members li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.members .part { grid-column: 1 / -1; }
.members b { font-size: 17px; }
.members a { grid-column: 2; grid-row: 2; align-self: center; padding: 12px 0; margin: -12px 0; font-size: 13px; color: var(--ink-soft); }
.members a:is(:hover, :active) { color: var(--accent); }

/* 05 CONTACT */
.contact-mail { margin-top: 8px; font-family: var(--display); font-weight: 200; font-size: clamp(20px, 6vw, 32px); overflow-wrap: anywhere; }

/* フッター */
.footer { padding: 48px var(--gutter); border-top: 1px solid var(--line); text-align: center; }
.sns { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 28px; }
.sns a { padding: 12px 0; font-family: var(--display); font-weight: 300; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.copy { margin-top: 12px; font-size: 11px; color: var(--ink-soft); }

/* スマホでは文字を全体に一回り小さく（11〜12px の小さいラベルはそのまま） */
@media (max-width: 767px) {
  body { font-size: 14px; }
  .btn, .links a { font-size: 12px; }
  .sec-title h2 { font-size: min(36px, 9.2vw); } /* DISCOGRAPHY が狭いスマホでもはみ出さないように */
  .info { font-size: 13px; }
  .card .date { font-size: 20px; }
  .card h3, .past .card .date { font-size: 14px; }
  .card p, .cover .tracks, .members a { font-size: 12px; }
  .release-title { font-size: 40px; }
  .work h3 { font-size: 15px; }
  .members b { font-size: 15px; }
  .contact-mail { font-size: clamp(18px, 5.4vw, 28px); }
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .gnav-toggle, .gnav-shade { display: none; }
  .gnav-menu { display: flex; gap: 28px; }
  .hero { aspect-ratio: 16 / 9; }
  .sec-title h2 { font-size: 64px; }
  /* パソコン：ジャケットの列を前の7割（半分→35%）にして、文字はその横に詰めて置く */
  .release { display: grid; grid-template-columns: 35% 1fr; gap: 40px; align-items: end; }
  .release .jacket { width: 100%; }
  .music-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
}

/* 動き：写真をくっきり出す／スクロールでふわっと出す。動きを減らす設定の人には出さない */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* 開いたときの順番：写真がぼやけた状態からくっきり → メニュー。合計約1.4秒（main.js の INTRO と合わせる） */
  .hero { animation: focus 1.2s ease-out .1s both; }
  @keyframes focus { from { opacity: 0; filter: blur(18px); } to { opacity: 1; filter: none; } }
  .gnav { animation: appear .8s ease .7s both; }
  @keyframes appear { from { opacity: 0; } }

  /* スマホのメニュー：線が × に変わり、メニューが右からぬるっと出て、項目が少しずつ遅れて並ぶ */
  .gnav-toggle::before, .gnav-toggle::after { transition: top .35s cubic-bezier(.65, 0, .35, 1), transform .35s cubic-bezier(.65, 0, .35, 1); }
  .gnav-menu { transition: transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s .45s; }
  .gnav.open .gnav-menu { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
  .gnav-shade { transition: opacity .45s ease, visibility 0s .45s; }
  .gnav.open .gnav-shade { transition: opacity .45s ease; }
  @media (max-width: 767px) {
    .gnav-menu a { opacity: 0; transform: translateX(24px); transition: opacity .3s ease, transform .3s ease, color .2s; }
    .gnav.open .gnav-menu a { opacity: 1; transform: none;
      transition: opacity .4s ease, transform .45s cubic-bezier(.2, .7, .2, 1), color .2s;
      /* 項目はパネルとほぼ同時に出し始め、少しずつ遅らせる（前は待ちが長すぎた。2026-11-30） */
      transition-delay: calc(.04s + var(--i) * .03s), calc(.04s + var(--i) * .03s), 0s; }
  }

  .rv { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .rv.in { opacity: 1; transform: none; }
  .cover[open] .tracks { animation: appear .25s ease; }

  /* 区切りの線を左から右へ引く */
  .sec.line { position: relative; border-top-color: transparent; }
  .sec.line::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
    transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.65, 0, .35, 1); }
  .sec.line.in::before { transform: none; }
}

/* 区切りの横線を減らした構成（2026-11-17 試し中）。線の代わりに余白で区切る。
   元に戻すときは index.html の <html class="calm"> から calm を消す（この塊は消しても消さなくてもよい） */
.calm .sec, .calm .footer { border-top: 0; }
.calm .sec { padding-block: 56px; }
.calm .sec.line::before { display: none; }
.calm .sub { border-bottom: 0; padding-bottom: 0; }
.calm .card { border-bottom: 0; padding: 12px 0; }
.calm .links, .calm .links a { border: 0; }
.calm .links a { justify-content: flex-start; gap: 10px; padding: 8px 0; }
.calm .members, .calm .members li { border: 0; }
.calm .members li { padding: 10px 0; }

/* 404 ページ（404.html） */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; border: 0; }
.notfound-logo { width: 110px; margin-bottom: 24px; }
.notfound-logo:is(:hover, :active) .logo { background: var(--accent); }
.notfound h1 { font-size: 64px; }
.notfound p { color: var(--ink-soft); font-size: 14px; }
.notfound .links { border: 0; margin-top: 0; }
.notfound .links a { border: 0; justify-content: flex-start; gap: 10px; }
