/* FIT ID まとめサイト v6（2026-12-02）。旧版＝assets/_v1/（v3・v5）
   SNSと同じ世界観：ページの地＝投稿ごとの深い色（--page。トップ・アーティストは紫紺）＋ライラックの光＋粒子
   カード＝押せる立体ガラス（Apple風。SNSのカードと同じ作り：光る縁・表面の反射・2段の影・右下の丸いボタン）
   文字は最小限。アフィの横の小さな「PR」だけ（ASP規約・ステマ規制対策）
   トークンの正本＝creatives/templates/fitid.css（同じ値） */
:root {
  --page: #23203A;
  --ink: #121212;
  --fg: #FFFFFF;
  --sub: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .16);
  --acc: #9CA5FF;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --ja: "Noto Sans JP", "Inter", sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.39, .575, .565, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  margin: 0; min-height: 100vh; color: var(--fg); font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70% 40% at 70% 18%, rgba(156, 165, 255, .22), transparent 70%),
    radial-gradient(80% 50% at 0% 100%, color-mix(in srgb, var(--page) 55%, #ffffff 14%), transparent 72%),
    var(--page);
  background-attachment: fixed;
}
body::after { /* 粒子（SNSと同じ） */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
.acc { color: var(--acc); }
.pr { display: inline-block; font-family: var(--mono); font-size: 8.5px; line-height: 1; letter-spacing: .06em; border: 1px solid currentColor; padding: 2px 4px; vertical-align: 1px; opacity: .8; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
a:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }

.glass, .hd, .card, .avatar { backdrop-filter: blur(24px) saturate(1.7); -webkit-backdrop-filter: blur(24px) saturate(1.7); }

/* ヘッダー */
.hd {
  position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px;
  background: color-mix(in srgb, var(--page) 55%, transparent); border-bottom: 1px solid var(--line);
}
.hd__logo { font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.hd__link { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--sub); min-height: 32px; display: inline-flex; align-items: center; }

/* ステージ：投稿の色＋ライラックの光＋切り抜いた本人 */
.stage {
  --bg: #23203A;
  position: relative; overflow: hidden; background: var(--bg);
  background-image:
    radial-gradient(55% 45% at 58% 42%, rgba(156, 165, 255, .34), transparent 70%),
    radial-gradient(65% 55% at 0% 100%, color-mix(in srgb, var(--bg) 55%, #ffffff 18%), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .18));
}
.stage__person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 94%; width: auto; max-width: none; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.stage--hero { aspect-ratio: 4 / 5; max-height: 78vh; width: 100%; margin-top: -60px; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.stage--tile { aspect-ratio: 4 / 5; border-radius: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 40px rgba(0, 0, 0, .3); transition: transform .5s var(--spring); }
.stage--round { aspect-ratio: 1 / 1; border-radius: 50%; }
.stage--round .stage__person { height: 120%; bottom: -30%; }

/* アーティストの写真（Spotify） */
.profile { position: relative; margin-top: -60px; aspect-ratio: 1 / 1; max-height: 78vh; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.profile > img { width: 100%; height: 100%; object-fit: cover; }
.profile .glass { bottom: 40px; }

/* ガラスのラベル（中央揃い） */
.glass {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; gap: .8em; align-items: center; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  background:
    linear-gradient(172deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .14)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .15) 40%, rgba(255, 255, 255, .5)) border-box;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), 0 12px 30px rgba(0, 0, 0, .3);
}
.stage--tile .glass { font-size: 10px; padding: 7px 12px; bottom: 12px; }

/* 見出し・パンくず */
.lbl { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 10px; align-items: baseline; }
.lbl .sub { font-weight: 400; color: var(--sub); letter-spacing: .04em; text-transform: none; font-family: var(--ja); font-size: 11px; }
.sec { padding-block: 28px 8px; display: grid; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); }
.crumbs a { min-height: 24px; display: inline-flex; align-items: center; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs [aria-current] { color: var(--fg); }
.h1 { font-family: var(--ja); font-weight: 700; font-size: 26px; letter-spacing: .02em; line-height: 1.3; padding-top: 4px; }

/* カード：押せる立体ガラス（SNSのカードと同じ） */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative; display: grid; gap: 2px; min-width: 0; padding: 8px 8px 12px; border-radius: 26px; overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(172deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .09) 48%, rgba(255, 255, 255, .05) 70%, rgba(255, 255, 255, .12)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .16) 32%, rgba(255, 255, 255, .05) 62%, rgba(255, 255, 255, .5)) border-box;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .45), inset 0 -8px 18px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .18), 0 14px 32px rgba(0, 0, 0, .26);
  transition: transform .45s var(--spring), box-shadow .45s var(--ease);
}
.card::after { /* 表面の反射 */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 42%, transparent 52%);
  transition: transform .8s var(--ease); transform: translateX(-30%);
}
.card__hit { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card__img { position: relative; aspect-ratio: 1 / 1; background: #fff; border-radius: 19px; overflow: hidden; margin-bottom: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.card__so, .card__tag { position: absolute; top: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; line-height: 1; padding: 5px 8px; border-radius: 999px; }
.card__so { left: 8px; background: var(--ink); color: #fff; }
.card__tag { right: 8px; background: rgba(255, 255, 255, .9); color: var(--ink); }
.card__b { font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding-inline: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__n { font-size: 12px; color: var(--sub); padding-inline: 4px; padding-right: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__row { display: flex; align-items: center; gap: 6px; margin: 8px 2px 0; padding-right: 34px; min-width: 0; }
.cap { display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 6px 11px; border-radius: 999px; color: var(--ink); background: linear-gradient(180deg, #fff, #E9E9F0); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 0, 0, .25); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__shop { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__go {
  position: absolute; right: 10px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; font-weight: 600; line-height: 1; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .12)); border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 10px rgba(0, 0, 0, .25);
  transition: transform .45s var(--spring);
}
/* 押した感触：タップで沈む／ホバーで浮く・反射が流れる */
.card:active { transform: scale(.97); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .5), inset 0 -8px 18px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .2), 0 26px 50px rgba(0, 0, 0, .32); }
  .card:hover::after { transform: translateX(30%); }
  .card:hover .card__img img { transform: scale(1.04); }
  .card:hover .card__go { transform: translateX(2px) scale(1.08); }
  .tile:hover .stage--tile { transform: translateY(-4px); }
}

/* 横スクロールの列 */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail--tiles { grid-auto-columns: 42%; }

/* タイル・アーティスト */
.hero-link { display: block; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: grid; gap: 6px; min-width: 0; }
.tile__meta { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--sub); text-transform: uppercase; padding-inline: 2px; }
.artists { display: grid; grid-auto-flow: column; grid-auto-columns: 26%; gap: 14px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 6px; scrollbar-width: none; }
.artists::-webkit-scrollbar { display: none; }
.artist { display: grid; gap: 8px; justify-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.artist .stage, .avatar { width: 100%; }
.avatar { display: block; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; padding: 3px; background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .15) 45%, rgba(156, 165, 255, .7)); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* フッター：ロゴだけ */
.ft { margin-top: 56px; padding: 28px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px); border-top: 1px solid var(--line); }
.ft__logo { font-family: var(--mono); font-weight: 700; letter-spacing: .08em; }

/* PC */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .stage--hero { aspect-ratio: 16 / 9; max-height: 82vh; }
  .profile { aspect-ratio: 16 / 9; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .tiles, .rail--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .artists { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .h1 { font-size: 36px; }
  .glass { font-size: 14px; bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 写真の下端のぼかし（mask）にラベルが巻き込まれないよう、ぼかしを浅くしてラベルを上げる */
.stage--hero, .profile { -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent); mask-image: linear-gradient(180deg, #000 90%, transparent); }
.stage--hero .glass, .profile .glass { bottom: 14%; }
/* 明るい写真（Spotifyの白壁など）の上でも文字が読めるよう、ガラスに薄い暗さを足す */
.glass {
  background:
    linear-gradient(172deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .12)) padding-box,
    linear-gradient(rgba(10, 10, 12, .34), rgba(10, 10, 12, .34)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .15) 40%, rgba(255, 255, 255, .5)) border-box;
}
