/* ============================================================
   30-home.css — トップページ（と、ほかのページでも使う部品）
     1. 共通の検索窓（トップ・検索結果・一覧・404）
     2. 検索帯（トップの黒い帯）
     3. ランキングカード（トップ・機材一覧の棚・機材ページの「関連」）
     4. 人気アーティストの横スクロール（メンバーページ）
     5. 新着アーティスト・数字・案内・カテゴリー（トップ）
     6. 注目のアーティスト（トップ。地続きの帯とリスト）
     7. ポータル型の並び（トップ）
   v5.1.0 で、同じ要素への上書きの積み重ねを1つにまとめた（見た目は同じ）。
   ============================================================ */

/* ------------------------------------------------------------
   1. 共通の検索窓
   一覧ページの検索窓は 42-index.css で形を変えている（v5.1.0 の時点ではそのまま）。
   ------------------------------------------------------------ */
.rl-hero__search { align-items: center; }
.rl-hero__search svg { position: absolute; color: var(--rl-text-3); pointer-events: none; }
.rl-hero__search input { width: 100%; height: 58px; box-sizing: border-box; padding: 0 20px 0 52px; border-radius: 999px; border: 1px solid var(--rl-line); background: var(--rl-bg); font-family: var(--ff-body); font-size: var(--fs-lg); color: var(--rl-text); outline: none; transition: border-color .2s, box-shadow .2s; }
.rl-hero__search input::placeholder { color: var(--rl-text-3); font-size: var(--fs-base); }
.rl-hero__search input:focus { border-color: #b9b9b9; box-shadow: 0 0 0 4px rgba(0,0,0,.04); }
.rl-hero__search svg { left: 22px; width: 20px; height: 20px; }
.rl-hero__search input[type="search"] { padding-left: 24px; padding-right: 64px; }
@media (max-width: 600px) {
  .rl-hero__search input[type="search"] { padding-right: 58px; }
}
.rl-hero__search { position: relative; display: block; }
.rl-hero__search-ico { position: absolute; color: var(--rl-text-3); pointer-events: none; }
.rl-hero__search input[type="search"] { width: 100%; box-sizing: border-box; border-radius: 999px; border: 1px solid var(--rl-line); background: var(--rl-bg); color: var(--rl-text); box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.05); }
.rl-hero__search input[type="search"]::placeholder { color: var(--rl-text-3); font-size: var(--fs-base); }
.rl-hero__search input[type="search"]:focus { border-color: #b9b9b9; box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
.rl-hero__search-ico { left: 0; top: 0; height: 100%; width: 60px; transform: none; display: flex; align-items: center; justify-content: center; }
.rl-hero__search-ico svg { width: 22px; height: 22px; }
.rl-hero__search input[type="search"] { height: 68px; padding: 0 28px 0 60px; font-size: var(--fs-xl, 1.125rem); }
@media (max-width: 600px) {
  .rl-hero__search input[type="search"] { height: 54px; padding-left: 52px; }
  .rl-hero__search-ico { width: 52px; }
}

/* ------------------------------------------------------------
   2. 検索帯（トップの黒い帯）… HTML は templates/home.php
   画面の幅いっぱいに広げ、中身は中央に 900px までで置く。
   ------------------------------------------------------------ */
.rl-shell--home { padding-top: 0; padding-bottom: 90px; }
.rl-hero--search { width: 100vw; margin: 0 calc(50% - 50vw); padding: 76px 24px 80px; background: #1c1c1e; text-align: center; }
.rl-hero__inner { max-width: 900px; margin: 0 auto; }
.rl-hero__h1 { margin: 0 0 14px; color: var(--rl-bg); font-family: var(--ff-display); font-size: clamp(1.75rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
/* 「アーティストの」「使用機材をさがす。」を、それぞれ途中で折り返さない */
.rl-hero__h1-line { display: inline-block; }
/* 見出しのすぐ下の「掲載数のひとこと」 */
.rl-hero__note { margin: 0 0 30px; color: rgba(255,255,255,.7); font-family: var(--ff-body); font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: .04em; }
/* 検索窓：白い丸い枠の中に、虫眼鏡と入力欄を横に並べる */
.rl-hero--search .rl-hero__search { display: flex; align-items: center; gap: 12px; max-width: 540px; height: 58px; margin: 0 auto; padding: 0 24px; border-radius: 999px; background: var(--rl-bg); box-shadow: 0 4px 18px rgba(0,0,0,.22); text-align: left; }
.rl-hero--search .rl-hero__search-ico { position: static; flex: 0 0 auto; width: 22px; height: 22px; color: #9a9a9a; }
.rl-hero--search .rl-hero__search-ico svg { width: 21px; height: 21px; }
.rl-hero--search .rl-hero__search input[type="search"] { position: static; flex: 1 1 auto; width: auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: #1c1c1e; font-size: 15px; line-height: 1; text-align: left; }
.rl-hero--search .rl-hero__search input::placeholder { color: #9a9a9a; }
@media (max-width: 900px) {
  .rl-hero--search { padding-bottom: 36px; }
}
@media (max-width: 600px) {
  .rl-shell--home { padding-bottom: 64px; }
  .rl-hero--search { padding: 44px 18px 48px; }
  .rl-hero__h1 { margin-bottom: 10px; font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.32; letter-spacing: var(--ls-tight); }
  .rl-hero__note { margin-bottom: 22px; font-size: 12.5px; letter-spacing: .02em; }
  .rl-hero--search .rl-hero__search { height: 52px; }
}

/* ------------------------------------------------------------
   3. ランキングカード … HTML は templates/parts/nrank-shelf.php（機材ページの「関連」は single-gear.php）
   横に並べて、はみ出した分は横にスクロールする。
   ------------------------------------------------------------ */
.rl-nrank-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 16px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #d8d5ce transparent; }
.rl-nrank { display: block; padding: 18px 18px 20px; border: 1px solid #d9d9d3; border-radius: 18px; background: var(--rl-bg); text-decoration: none; scroll-snap-align: start; transition: box-shadow .15s, border-color .15s; }
.rl-nrank:hover { border-color: #b4b4ad; box-shadow: 0 5px 18px rgba(0,0,0,.07); }
/* 写真の後ろに、大きな順位の数字を敷く */
.rl-nrank__top { position: relative; height: 146px; overflow: hidden; }
.rl-nrank__no { position: absolute; left: -1px; bottom: 0; z-index: 0; color: #e6e6e6; font-family: var(--ff-display); font-size: 118px; font-weight: 800; line-height: .82; letter-spacing: -0.04em; user-select: none; }
.rl-nrank__no--1 { color: #ecd89e; }
.rl-nrank__no--2 { color: #cfd8e1; }
.rl-nrank__no--3 { color: #eccfb4; }
.rl-nrank__img { position: absolute; left: 50%; bottom: 0; z-index: 1; width: 124px; height: 124px; overflow: hidden; transform: translateX(-50%); filter: drop-shadow(0 6px 9px rgba(0,0,0,.2)); }
.rl-nrank__img img { width: 100%; height: 100%; box-sizing: border-box; object-fit: contain; }
.rl-nrank__maker { margin-top: 16px; color: var(--rl-text-3); font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; }
.rl-nrank__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; color: var(--rl-text); font-family: var(--ff-display); font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.rl-nrank__count { margin-top: 6px; color: var(--rl-text-3); font-family: var(--ff-body); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
/* 使っている人の顔（重ねて並べる） */
.rl-nrank__users { display: flex; margin-top: 10px; padding-top: 10px; padding-left: 7px; border-top: 1px solid var(--rl-line-2); }
.rl-nrank__face { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; margin-left: -7px; border: 2px solid #fff; border-radius: 50%; overflow: hidden; background: #f2f0ec; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rl-nrank__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-nrank__face-fill { position: absolute; inset: 0; }
.rl-nrank__face-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--rl-bg); font-family: var(--ff-display); font-size: 11px; font-weight: 400; }
.rl-nrank__face--more { background: #1c1c1e; color: var(--rl-bg); font-family: var(--ff-body); font-size: 9px; font-weight: 600; }
@media (min-width: 700px) {
  .rl-nrank-shelf { grid-auto-columns: 220px; gap: 18px; }
  .rl-nrank__img { width: 138px; height: 138px; }
}
/* トップと機材一覧の棚では、ひとまわり小さく */
.rl-shell--home .rl-nrank-shelf, .rl-gshelf .rl-nrank-shelf { grid-auto-columns: 168px; gap: 12px; }
.rl-shell--home .rl-nrank, .rl-gshelf .rl-nrank { padding: 12px 14px 14px; }
.rl-shell--home .rl-nrank__top, .rl-gshelf .rl-nrank__top { height: 124px; }
.rl-shell--home .rl-nrank__img, .rl-gshelf .rl-nrank__img { width: 100%; height: 100%; max-width: 138px; }
.rl-shell--home .rl-nrank__no, .rl-gshelf .rl-nrank__no { left: -6px; font-size: 100px; }
@media (max-width: 600px) {
  .rl-nrank-shelf, .rl-shell--home .rl-nrank-shelf, .rl-gshelf .rl-nrank-shelf { grid-auto-columns: 132px; gap: 9px; padding: 4px 2px 12px; }
  .rl-nrank-shelf .rl-nrank { padding: 10px 10px 12px; border-radius: 12px; }
  .rl-nrank-shelf .rl-nrank__top { height: 92px; }
  .rl-nrank-shelf .rl-nrank__img { width: 88px; height: 88px; max-width: 88px; }
  .rl-nrank-shelf .rl-nrank__no { left: -4px; font-size: 70px; }
  .rl-nrank-shelf .rl-nrank__maker { margin-top: 8px; font-size: 9px; }
  .rl-nrank-shelf .rl-nrank__name { margin-top: 3px; font-size: .82rem; }
  .rl-nrank-shelf .rl-nrank__count { margin-top: 3px; font-size: 10.5px; }
  .rl-nrank-shelf .rl-nrank__users { margin-top: 8px; padding-top: 8px; padding-left: 5px; }
  .rl-nrank-shelf .rl-nrank__face { width: 21px; height: 21px; margin-left: -6px; border-width: 1.5px; }
  .rl-nrank-shelf .rl-nrank__face--more { font-size: 8px; }
}

/* ------------------------------------------------------------
   4. 人気アーティストの横スクロール … HTML は templates/parts/featured-scroller.php（メンバーページ）
   ------------------------------------------------------------ */
/* 機材の写真：左に大きく1枚、右に小さく4枚（最後の枠は「+N」） */

/* ------------------------------------------------------------
   5. 新着アーティスト・数字・案内・カテゴリー（トップ）
   ------------------------------------------------------------ */
/* 新着アーティスト（右の列の小さなパネルの中） */
.rl-new { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px 4px; padding: 14px 12px 16px; }
.rl-new__item { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 12px; text-align: center; text-decoration: none; transition: background .15s ease; }
.rl-new__item:hover { background: var(--rl-bg-soft); }
.rl-new__avatar { position: relative; width: 52px; height: 52px; margin-bottom: 7px; border-radius: 50%; overflow: hidden; }
.rl-new__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-new__avatar-fill { position: absolute; inset: 0; }
.rl-new__initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--rl-bg); font-family: var(--ff-display); font-size: 21px; font-weight: 400; }
.rl-new__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; color: var(--rl-text); font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.rl-new__sub { max-width: 100%; margin-top: 2px; overflow: hidden; color: #aaa; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }

/* 数字（アーティスト・バンド・機材・使用機材データ） */
.rl-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 6px; padding: 16px 10px; border: 1px solid var(--rl-line); border-radius: 14px; background: var(--rl-bg-soft); }
.rl-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.rl-stat__num { color: var(--rl-text); font-family: var(--ff-display); font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rl-stat__label { margin-top: 9px; color: #8a8a8a; font-family: var(--ff-body); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .06em; }
/* 1列表示の中くらいの幅だけ、4つを横に並べる（広い画面では右の列に2×2で置く） */
@media (min-width: 620px) and (max-width: 1023px) {
  .rl-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .rl-stats { gap: 2px 4px; padding: 8px 6px; border-radius: 12px; }
  .rl-stat { gap: 1px; padding: 8px 4px; }
  .rl-stat__num { font-size: 1.55rem; }
  .rl-stat__label { font-size: 9.5px; }
}

/* 案内（自分だけの機材ページをつくろう） */
.rl-join { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 22px; background: #1d4e5c; }
.rl-join__eyebrow { display: block; margin-bottom: 14px; color: rgba(255,255,255,.5); font-family: var(--ff-body); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.rl-join__title { margin: 0 0 16px; color: var(--rl-bg); font-family: var(--ff-display); font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.035em; word-break: auto-phrase; }
.rl-join__lead { margin: 12px 0 26px; color: rgba(255,255,255,.66); font-family: var(--ff-body); font-size: 13.5px; line-height: 1.9; word-break: auto-phrase; }
.rl-join__btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 14px 30px; border-radius: 999px; background: var(--rl-bg); color: var(--rl-text); font-family: var(--ff-display); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.rl-join__btn:hover { background: #e8e8e4; color: var(--rl-text); transform: translateY(-1px); }
.rl-join__btn-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(10,10,10,.1); font-size: 12px; transition: transform .16s ease; }
.rl-join__btn:hover .rl-join__btn-ico { transform: translateX(2px); }
/* ページのイメージ図（紙が重なっている見立て。後ろの紙は回転させず、右下へ同じ幅ずつずらす） */
.rl-join__preview { display: flex; justify-content: center; box-sizing: border-box; padding: 6px 22px 16px 0; }
.rl-join__stack { position: relative; width: 100%; max-width: 172px; margin: 0 auto; }
.rl-join__ghost { position: absolute; inset: 0; border-radius: 12px; background: var(--rl-bg); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.rl-join__ghost--1 { opacity: .55; transform: translate(10px, 10px); }
.rl-join__ghost--2 { opacity: .3; transform: translate(20px, 20px); }
.rl-join__card { position: relative; padding: 13px; border-radius: 12px; background: var(--rl-bg); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.rl-join__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rl-join__av { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #d6982a 0 50%, #c0433f 50% 100%); box-shadow: inset 0 0 0 2.5px #fff; }
.rl-join__lines { display: flex; flex-direction: column; flex: 1 1 auto; gap: 7px; }
.rl-join__line { display: block; height: 8px; border-radius: 4px; background: #e6e6e2; }
.rl-join__line--name { width: 62%; height: 11px; background: #26261f; }
.rl-join__line--sub { width: 40%; }
.rl-join__label { margin-bottom: 10px; }
.rl-join__label span { display: block; width: 68px; height: 16px; border-radius: 4px; background: var(--rl-text); }
.rl-join__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rl-join__cell { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 10px; background: #f3f3f0; color: #c4c4be; }
.rl-join__cell svg { width: 26px; height: 26px; }
.rl-join__cell--plus { border: 1px dashed #d9d9d3; background: var(--rl-bg); color: #b0b0aa; font-size: 18px; }
@media (max-width: 833px) {
  .rl-join__ghost--1 { transform: translate(8px, 8px); }
  .rl-join__ghost--2 { transform: translate(16px, 16px); }
}
@media (max-width: 600px) {
  .rl-join { grid-template-columns: 1fr 38%; border-radius: 16px; }
  .rl-join__eyebrow { margin-bottom: 8px; font-size: 9.5px; }
  .rl-join__title { margin-bottom: 10px; }
  .rl-join__lead { margin-bottom: 14px; line-height: 1.85; }
  .rl-join__lead br { display: none; }
  .rl-join__btn { gap: 8px; padding: 11px 18px; font-size: 13px; }
  .rl-join__btn-ico { width: 18px; height: 18px; font-size: 10px; }
  .rl-join__preview { justify-content: flex-end; padding: 4px 16px 12px 0; }
  .rl-join__ghost--1 { transform: translate(6px, 6px); }
  .rl-join__ghost--2 { transform: translate(12px, 12px); }
  .rl-join__head { gap: 7px; }
  .rl-join__av { width: 26px; height: 26px; box-shadow: inset 0 0 0 1.5px #fff; }
  .rl-join__lines { gap: 4px; }
  .rl-join__line { height: 4px; border-radius: 2px; }
  .rl-join__line--name { height: 6px; }
  .rl-join__label { margin-bottom: 7px; }
  .rl-join__label span { width: 40px; height: 9px; border-radius: 2px; }
  .rl-join__grid { gap: 5px; }
  .rl-join__cell { border-radius: 6px; }
  .rl-join__cell svg { width: 15px; height: 15px; }
  .rl-join__cell--plus { font-size: 12px; }
}
@media (max-width: 360px) {
  .rl-join { grid-template-columns: 1fr; }
  .rl-join__btn { justify-content: center; width: 100%; }
  .rl-join__preview { justify-content: center; }
}

/* カテゴリーから探す */
.rl-cats { margin: 0 0 56px; }
.rl-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.rl-catcard { display: block; padding: 13px 15px 12px; border: 1px solid var(--rl-line); border-radius: 12px; background: var(--rl-bg); color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.rl-catcard:hover { border-color: #1d4e5c; box-shadow: 0 6px 16px rgba(0,0,0,.07); transform: translateY(-2px); }
.rl-catcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rl-catcard__name { overflow: hidden; color: var(--rl-text); font-family: var(--ff-body); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.rl-catcard__num { color: #1d4e5c; font-family: var(--ff-display); font-size: 15px; font-weight: 800; }
/* 件数の棒（いちばん多いカテゴリーを100%として、長さを決める） */
.rl-catcard__bar { display: block; height: 3px; margin-top: 9px; border-radius: 2px; overflow: hidden; background: var(--rl-bg-alt); }
.rl-catcard__bar span { display: block; height: 100%; border-radius: 2px; background: #1d4e5c; opacity: .55; }
.rl-catcard:hover .rl-catcard__bar span { opacity: 1; }
@media (max-width: 600px) {
  .rl-cats { margin-bottom: 36px; }
  .rl-cats__grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
  .rl-catcard { padding: 11px 12px 10px; border-radius: 10px; }
  .rl-catcard__name { font-size: 12.5px; }
  .rl-catcard__num { font-size: 13.5px; }
}

/* ------------------------------------------------------------
   6. 注目のアーティスト … HTML は templates/home.php（見出し）と templates/parts/featured-list.php（リスト）
   見出しは TRENDING GEAR・CHARTS と同じ（10-base.css の .rl-sec-head / .rl-sec-title）。
   行は、注目の機材のカードと同じ「白い面＋細い線」でそろえてある。
   ------------------------------------------------------------ */
/* リスト：アイコン・名前（下にバンド）・機材の写真3つ・機材の点数 */
.rl-alist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rl-alist__item { min-width: 0; margin: 0; }
.rl-alist__row { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--rl-line); border-radius: 12px; background: var(--rl-bg); color: var(--rl-text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.rl-alist__row:hover { border-color: #ada595; box-shadow: 0 2px 10px rgba(0,0,0,.05); color: var(--rl-text); }
.rl-alist__row:focus-visible { outline: 2px solid var(--rl-text); outline-offset: 2px; }
.rl-alist__av { position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--rl-bg-alt); }
.rl-alist__av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-alist__av-fill { position: absolute; inset: 0; }
.rl-alist__initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--rl-bg); font-family: var(--ff-display); font-size: 19px; }
.rl-alist__id { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.rl-alist__name { overflow: hidden; font-family: var(--ff-display); font-size: 15px; font-weight: 700; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.rl-alist__band { overflow: hidden; margin-top: 2px; color: var(--rl-text-3); font-family: var(--ff-body); font-size: 11.5px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
/* 機材の写真（ギター・ベースが多いので縦長の枠） */
.rl-alist__gears { display: flex; flex: 0 0 auto; gap: 4px; }
.rl-alist__tile { display: flex; align-items: center; justify-content: center; width: 34px; height: 48px; overflow: hidden; border-radius: 7px; background: var(--rl-bg-soft); }
.rl-alist__tile img { display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 3px; object-fit: contain; }
.rl-alist__tile-ph { color: #b6b6b6; font-family: var(--ff-mono); font-size: 11px; }
.rl-alist__count { flex: 0 0 auto; min-width: 3.4em; color: var(--rl-text-3); font-family: var(--ff-body); font-size: 11px; text-align: right; white-space: nowrap; }
.rl-alist__count b { margin-right: 1px; color: var(--rl-text); font-family: var(--ff-display); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .rl-alist { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rl-alist__row { gap: 10px; padding: 8px 10px 8px 8px; }
  .rl-alist__av { width: 42px; height: 42px; }
  .rl-alist__name { font-size: 14px; }
  .rl-alist__band { font-size: 11px; }
  .rl-alist__gears { gap: 3px; }
  .rl-alist__tile { width: 28px; height: 40px; border-radius: 6px; }
  .rl-alist__count b { font-size: 15px; }
}

/* ------------------------------------------------------------
   7. ポータル型の並び（v4.62.0）
   広い画面（1024px以上）：左にデータベースの区画、右にスクロールしても残る列。
   それより狭い画面：1列にして、右の列の中身を左の区画のあいだに差し込む（order で並べ替え）。
   ------------------------------------------------------------ */
.rl-portal { margin-top: 44px; }
/* 見出しの横の「機材一覧 →」など（トップでは少し大きく） */
.rl-portal .rl-sec-link { font-size: 14px; }

/* CHARTS：ギタリスト／ベーシストの切り替えボタン。どの画面幅でも見出しのすぐ下に置く
   （見出しの下の余白 22px を少し詰めて、見出しとボタンがひとまとまりに見えるように） */
.rl-ctabs { display: flex; gap: 6px; margin: -8px 0 12px; }
.rl-ctabs__btn { padding: 6px 14px; border: 1px solid #d9d9d3; border-radius: 999px; background: var(--rl-bg); color: var(--rl-text-2); font-family: var(--ff-body); font-size: 13px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.rl-ctabs__btn:hover { border-color: var(--rl-text); color: var(--rl-text); }
.rl-ctabs__btn[aria-selected="true"] { border-color: #1c1c1e; background: #1c1c1e; color: var(--rl-bg); }
.rl-ctabs__btn:focus-visible { outline: 2px solid #1d4e5c; outline-offset: 2px; }
.rl-ctabs__panel[hidden] { display: none; }
.rl-ctabs__only { margin: 0 0 10px; color: var(--rl-text-3); font-family: var(--ff-body); font-size: 12px; font-weight: 600; }

/* 右の列の小さなパネル（新着アーティスト）。枠と見出しはタイムラインと同じ形 */
.rl-spanel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--rl-line); border-radius: 18px; background: var(--rl-bg); }
.rl-spanel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rl-line-2); }
.rl-spanel__title { margin: 0; color: var(--rl-text); font-family: var(--ff-body); font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.rl-spanel__link { color: var(--rl-text-3); font-family: var(--ff-body); font-size: 12px; text-decoration: none; white-space: nowrap; }
.rl-spanel__link:hover { color: var(--rl-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- 広い画面：左右2列 ---- */
@media (min-width: 1024px) {
  .rl-portal { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(300px, 1fr); gap: 32px; align-items: stretch; }
  .rl-portal__main { min-width: 0; }
  .rl-portal__side { display: flex; flex-direction: column; min-width: 0; }
  /* 右の列は、画面の上（ヘッダーの下）で止める */
  .rl-portal__stick { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
  /* 画面より高いときは、下端で止める（JSが is-tall を付ける）。
     列の下に寄せておくと、上から読んでいって下端が画面の下に来たところで止まる */
  .rl-portal__stick.is-tall { top: auto; bottom: 16px; margin-top: auto; }

  /* 数字は2×2 */
  .rl-portal__stats { padding: 14px 8px; row-gap: 12px; }
  .rl-portal__stats .rl-stat__num { font-size: 30px; }
  .rl-portal__stats .rl-stat__label { margin-top: 6px; font-size: 11px; }

  /* 案内：文字を左に、イメージ図を右の余白の中央に置く。
     イメージ図の中の大きさは em で決め、.rl-join__preview の文字の大きさ1つで全体を伸び縮みさせる
     （図の幅 = 10em。後ろの紙の分だけ、右と下を 1.2em あける） */
  .rl-portal__join { display: flex; align-items: center; gap: 14px; padding: 22px 20px 22px 22px; border-radius: 18px; }
  .rl-portal__join .rl-join__text { flex: 0 1 auto; min-width: 0; }
  .rl-portal__join .rl-join__eyebrow { margin-bottom: 10px; }
  .rl-portal__join .rl-join__title { margin: 0; font-size: 1.35rem; line-height: 1.32; }
  .rl-portal__join .rl-join__lead { margin: 10px 0 0; font-size: 12px; line-height: 1.75; }
  .rl-portal__join .rl-join__btn { margin-top: 16px; padding: 11px 20px; font-size: 13.5px; }
  .rl-portal__join .rl-join__preview { flex: 1 0 auto; padding: 0 1.2em 1.2em 0; font-size: 8.4px; }
  .rl-portal__join .rl-join__stack { width: 10em; max-width: none; margin: 0; }
  .rl-portal__join .rl-join__ghost { border-radius: .9em; box-shadow: 0 .8em 2em rgba(0,0,0,.22); }
  .rl-portal__join .rl-join__ghost--1 { transform: translate(.6em, .6em); }
  .rl-portal__join .rl-join__ghost--2 { transform: translate(1.2em, 1.2em); }
  .rl-portal__join .rl-join__card { padding: .9em; border-radius: .9em; box-shadow: 0 1.4em 3.4em rgba(0,0,0,.4); }
  .rl-portal__join .rl-join__head { gap: .6em; margin-bottom: .75em; }
  .rl-portal__join .rl-join__av { width: 2.6em; height: 2.6em; box-shadow: inset 0 0 0 .18em #fff; }
  .rl-portal__join .rl-join__lines { gap: .38em; }
  .rl-portal__join .rl-join__line { height: .38em; border-radius: .25em; }
  .rl-portal__join .rl-join__line--name { height: .62em; }
  .rl-portal__join .rl-join__label { margin-bottom: .62em; }
  .rl-portal__join .rl-join__label span { width: 3.6em; height: .9em; border-radius: .25em; }
  .rl-portal__join .rl-join__grid { gap: .5em; }
  .rl-portal__join .rl-join__cell { border-radius: .62em; }
  .rl-portal__join .rl-join__cell svg { width: 1.45em; height: 1.45em; }
  .rl-portal__join .rl-join__cell--plus { font-size: 1.15em; }

  /* タイムラインは、右の列に収まる高さに */
  .rl-portal__side .rl-mfeed__list { max-height: 420px; }
}

@media (min-width: 1280px) {
  .rl-portal__join .rl-join__preview { font-size: 10.8px; }
}
@media (min-width: 1440px) {
  .rl-portal__join .rl-join__preview { font-size: 12px; }
}

/* ---- 狭い画面：1列。右の列の中身を区画のあいだに差し込む ---- */
@media (max-width: 1023px) {
  .rl-portal { display: flex; flex-direction: column; }
  .rl-portal__main, .rl-portal__side, .rl-portal__stick { display: contents; }
  .rl-portal__trend { order: 1; }
  .rl-portal__join { order: 2; margin-bottom: 44px; }
  .rl-portal__stats { order: 3; margin-bottom: 44px; }
  .rl-portal__artists { order: 4; }
  .rl-portal__tl { order: 5; margin-bottom: 44px; }
  .rl-portal__charts { order: 6; }
  .rl-portal__cats { order: 7; }
  .rl-portal__new { order: 8; }
}
@media (max-width: 900px) {
  .rl-portal { margin-top: 34px; }
}
@media (max-width: 600px) {
  .rl-portal { margin-top: 26px; }
  .rl-portal__join, .rl-portal__stats, .rl-portal__tl { margin-bottom: 32px; }
  .rl-ctabs__btn { padding: 5px 13px; font-size: 12px; }
  .rl-portal .rl-sec-link { font-size: 12.5px; }
  .rl-spanel { border-radius: 16px; }
  .rl-spanel__head { padding: 12px 14px; }
}
