/* ===========================================================
   苺咲べりぃ 官網 2026 改版 — profile.html 専用スタイル
   legacy.css の profile 専用規則（約 537〜681 行：キービジュアル・基本データ・
   自己紹介・ハッシュタグ・ビジュアル 2D/3D・ロゴ・オリジナルBGM）を
   新しい版型（頁首帯＋白カード .panel）向けに移植したもの。
   ・色は既存トークン（tokens.css 冒頭の実測色 --ink-body 等）をそのまま使う。
     カードは A/B とも常に白（--card-bg）なので、これらの実測色はどちらの
     配色でも変わらず読める。
   ・legacy.css は 980px 固定幅の .card 前提で余白を組んでいたが、
     .panel は可変幅なので固定 px の左右余白は外し、要素そのものの
     max-width とセンタリングだけで再現する。
   ・見出し（苺咲べりぃ / Maisaki Berry・ハッシュタグ・ビジュアル・ロゴ・
     オリジナルBGM）は legacy.css 独自の .sec-title--sub をやめ、
     site.css の共通コンポーネント .subtitle をそのまま使う。
   =========================================================== */

.profile-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.profile-sec {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- キービジュアル ---------- */
.profile-banner {
  width: 100%;
  max-width: 847px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
}
/* 9/9 katy：手機で絵の一部しか出ていなかった。<img width=847 height=310> の高さが固定のまま幅だけ縮んで
   cover で切れていたので、幅に合わせて高さも縮める（847:310 のまま全体を見せる） */
.profile-banner img { display: block; width: 100%; height: 310px; object-fit: cover; }   /* 桌機は原站どおり 847×310 の枠 */
@media (max-width: 900px) { .profile-banner img { height: auto; object-fit: initial; } }

/* ---------- 基本データ（原站実測：15px / lh 20.8px / ls .01em / #2A2A2A） ---------- */
.profile-meta {
  font-size: 15px;
  line-height: 20.8px;
  letter-spacing: .01em;
  color: var(--ink-body);
}

/* ---------- 自己紹介（原站実測：16px / lh 20.8px / ls .01em / #2A2A2A、淡粉底） ---------- */
.profile-intro {
  max-width: 567px;
  background: var(--pink-bg);
  border-radius: 6px;
  padding: 22px 20px;
  font-size: 16px;
  line-height: 20.8px;
  letter-spacing: .01em;
  color: var(--ink-body);
}

/* ---------- ハッシュタグ（原站実測：16px / lh 40px / ls normal / #000） ---------- */
.hashtags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.hashtags li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 40px;
  color: var(--ink-black);
}
.hashtags svg { width: 21px; height: 20px; fill: var(--pink-pale); flex: none; }
.hashtags b { font-weight: 500; }
.hashtags a { color: var(--ink-black); }

/* ---------- ビジュアル：2D／3D 二段（16 着）----------
   人物の高さ・下端を揃える正規化は tools/build_visual_row.py 側で済んでいる
   （画像は height:100% / 下端揃え）。 */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 32px 0;
  align-items: end;
}
.visual-grid--3d { margin-top: 8px; }
.visual-item {
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform .18s, filter .18s;
}
.visual-item:hover { transform: translateY(-3px); filter: brightness(1.05); }
.visual-item img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom;
}
/* 見た目上はラベルを出さない（原站どおり。リンクの意味は title 属性で持つ） */
.visual-item span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* 2-2 の衣装入口：立ち絵 2 段の下から衣装一覧（costume.html）へ */
.visual-more-link { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- ロゴ ---------- */
.logo-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
}
.logo-row figure { margin: 0; }
/* 原站実測：ロゴ説明 15px / 400 / ls normal / #E68E94 */
.logo-row figcaption {
  font-size: 15px;
  color: var(--rose);
  margin-top: 14px;
  letter-spacing: normal;
}

/* ---------- オリジナルBGM ---------- */
.bgm-box {
  width: 100%;
  max-width: 796px;
  background: var(--pink-bg);
  border: 2px dashed var(--pink-line);
  border-radius: 10px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 10px;
}
.bgm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bgm-item .play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink-pale);
  display: grid;
  place-items: center;
  flex: none;
  transition: background .15s, transform .15s;
}
.bgm-item:hover .play { background: var(--pink-deep); transform: scale(1.06); }
.bgm-item .play svg { width: 14px; height: 14px; fill: var(--white); margin-left: 2px; grid-area: 1 / 1; }
.bgm-item .play .pause { display: none; grid-area: 1 / 1; }
.bgm-item .play .pause svg { margin-left: 0; }
.bgm-item.is-playing .play { background: var(--pink-deep); }
.bgm-item.is-playing .play > svg { display: none; }
.bgm-item.is-playing .play .pause { display: block; }
/* 原站実測：BGM 名 20px / 400 / #5D393D、作曲 12px / 400 / #E68E94 */
.bgm-item .n { font-size: 20px; font-weight: 500; color: var(--ink-brown); }
.bgm-item .c { font-size: 12px; font-weight: 500; color: var(--rose); letter-spacing: normal; }
.bgm-item.is-playing .n::after {
  content: '♪';
  margin-left: 6px;
  animation: bgm-beat 1s ease-in-out infinite;
  display: inline-block;
}
@keyframes bgm-beat { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.25); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bgm-item.is-playing .n::after { animation: none; } }

/* ===========================================================
   RWD：site.css と同じブレークポイント（900 / 600）に合わせる
   =========================================================== */
@media (max-width: 900px) {
  .visual-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .visual-item { height: 190px; }
}

@media (max-width: 600px) {
  .profile-panel { gap: 32px; }
  .hashtags { grid-template-columns: 1fr; }
  .visual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 0; }
  .visual-item { height: 140px; }
  .visual-grid--3d { margin-top: 4px; }
  .logo-row { gap: 24px; }
  .bgm-box { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
}
