/* 🔧 開発用メモ：対応JS → top-0-rankings-entry-101-3.js ／ 対応HTML → homeトップランキング
   🔧 概要：もっと観る／閉じるボタンの見た目　カラー適用＋フォーカスリング） */


/* ============================
   Home: セクション区切りだけ
   （他のルールは入れない）
============================ */

/* セクション間の上下余白 */
.home-section{
  margin: 20px 0 28px;
}

/* 見出しの帯（やさしい区切り） */
.home-section .type-heading{
  margin: 0 0 14px;
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  border-radius: 14px;
  background: #fff1f5;     /* ライトピンク帯（既存トーンに合わせる） */
  border: 1px solid #f7cad8;/* 右カラムと同系の枠色 */
  color: #334155;
  letter-spacing: .04em;
}






.home-section{
  margin: 20px 0 28px;
}
.home-section .type-heading{
  margin: 0 0 14px;
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  border-radius: 14px;
  background: #fff1f5;
  border: 1px solid #f7cad8;
  color: #334155;
}






/* === Home: セクション間の区切り（最初は付けない） === */
.home-section + .home-section{
  margin-top: 22px;         /* セクション間の外側余白 */
  padding-top: 14px;        /* 区切り線と内容の間隔 */
  border-top: 2px solid #f7cad8;  /* ライトピンク（右カラム系） */
  /* 必要なら青系に： border-top-color: #d3efff; */
}





/* === Home: ピル型の帯見出し（右カラムと同系色） === */
.home-band{
  margin: 10px 8px 14px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #fff1f5;      /* やわらかピンク */
  border: 1px solid #f7cad8;/* 右カラムのトーンに寄せる */
  color: #334155;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
}
.home-band .icon{ font-size: 16px; line-height: 1; }

/* セクションの先頭中央に置く（幅に合わせて自然に） */
.home-section .home-band{ display:flex; justify-content:center; margin-inline:auto; }







/* ===== Home: たたむ／もっと観る の土台 ===== */

/* 非表示化（JSで付け外しする） */
.home-grid .is-hidden { display: none !important; }

/* セクション末尾の操作バー */
.home-more-wrap{
  display: flex;
  justify-content: center;
  margin: 10px 0 22px;
}

/* もっと観る ボタン */
.home-more-btn{
  appearance: none;
  border: 1px solid #f7cad8;
  background: #fff1f5;
  color: #334155;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
}
.home-more-btn:hover{
  background: #ffe6ee;
  border-color: #f2bccc;
}






/* === Home: 展開中は「たたむ」バーを下辺追従（セクション内でsticky） === */
.home-section { position: relative; }

.home-section.is-expanded .home-more-wrap{
  position: sticky;
  bottom: 12px;             /* 画面下からの距離 */
  z-index: 20;
  justify-content: flex-end;/* 右寄せ（お好みで center にしてもOK） */
  padding-right: 8px;
}

/* 小さめ画面は距離を少し詰める */
@media (max-width: 640px){
  .home-section.is-expanded .home-more-wrap{
    bottom: 8px;
    padding-right: 6px;
  }
}






/* top-101-2.css に追加 */
.more-toggle {
  position: sticky;
  bottom: 0;
  background: #fff;       /* 背景色を付けないとカードに隠れる */
  padding: 6px 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  z-index: 5;
}





/* 展開中の「閉じる」を右下に追従（is-float が付いた時のみ） */
.home-more-btn.is-float{
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 10px 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* 小さめ画面で少し詰める */
@media (max-width: 640px){
  .home-more-btn.is-float{
    right: 12px;
    bottom: 14px;
    padding: 8px 14px;
  }
}









/* 20250923 PC展開時の「閉じる」ボタンUI */
.home-more-wrap{
  display:flex; gap:8px; justify-content:center; align-items:center;
  margin-top:10px;
}
.home-more-btn,
.home-close-btn{
  appearance:none; border:1px solid #ddd; border-radius:999px;
  padding:8px 14px; font-size:14px; line-height:1; cursor:pointer;
  background:#fff;
}
.home-more-btn:hover,
.home-close-btn:hover{ border-color:#bbb; }

/* 展開時に右下追従する“もっと観る/閉じる”フロート */
.home-more-btn.is-float{
  position:fixed; right:16px; bottom:24px; z-index:50;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
}

/* モバイル/タブレットでは“閉じる”は常時非表示（JSで展開時も出さない方針） */
@media (max-width:1023px){
  .home-close-btn{ display:none !important; }
}










/* 20250923 PC展開時の「閉じる」ボタンUI */
.home-more-wrap{
  display:flex; gap:8px; justify-content:center; align-items:center;
  margin-top:10px;
}
.home-more-btn,
.home-close-btn{
  appearance:none; border:1px solid #ddd; border-radius:999px;
  padding:8px 14px; font-size:14px; line-height:1; cursor:pointer;
  background:#fff;
}
.home-more-btn:hover,
.home-close-btn:hover{ border-color:#bbb; }

/* 展開時の右下追従（“もっと観る”用） */
.home-more-btn.is-float{
  position:fixed; right:16px; bottom:24px; z-index:50;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
}

/* モバイル/タブレットでは“閉じる”は常時非表示（展開時も出さない方針） */
@media (max-width:1023px){
  .home-close-btn{ display:none !important; }
}





/* 20250923 ボタン配色を基本カラーに合わせる */
.home-more-btn,
.home-close-btn{
  border:1px solid #E97EA1;
  background:#D3EFFF;
  color:#333;
  transition: background 0.2s, border-color 0.2s;
}
.home-more-btn:hover,
.home-close-btn:hover{
  background:#E97EA1;
  border-color:#D3EFFF;
  color:#fff;
}

/* キーボード操作時のフォーカスリング */
.home-more-btn:focus-visible,
.home-close-btn:focus-visible{
  outline:2px solid #E97EA1;
  outline-offset:2px;
}






/* 20251127 タブ操作を隠さない：サムネの絶対配置を解除 */
.cmx-card .work-thumb-link,
.cmx-card .main-image {
  position: static !important;
  z-index: auto !important;
  pointer-events: auto !important;
}







#sidebar-series-list {
  visibility: hidden;
}




/* =========================
   Footer Login Buttons
========================= */

.footer-auth-buttons{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:12px;
}

.footer-auth-btn{
  min-width:120px;

  padding:10px 20px;

  border:1px solid #C8D1E6;
  border-radius:10px;

  background:#FFFFFF;

  color:#4B4B69;

  font-size:14px;
  font-weight:600;

  cursor:pointer;

  transition:
    background .2s,
    border-color .2s,
    transform .15s;
}

.footer-auth-btn:hover{
  background:#F4F7FC;
  border-color:#AEBEDA;
}

.footer-auth-btn:active{
  transform:translateY(1px);
}


.footer-auth-text{
  margin-top:14px;
  margin-bottom:12px;

  color:#4B4B69;

  font-size:14px;
  line-height:1.8;

  text-align:center;
}
