/* ===================================================================
   打ち消し
=================================================================== */


/* ===================================================================
   お知らせ（暫定）
=================================================================== */
.p-newrelease-attention {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1 0 0;

  /* 調整 */
  margin-block: 16px;
}

.p-newrelease-attention__title {
  /* レイアウト */
  display: flex;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;

  /* スタイル */
  color: var(--text-body);
  font-family: "Hiragino Kaku Gothic ProN";
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%; /* 15.6px */
}

.p-newrelease-attention__badge {
  display: flex;
  padding: 3px 6px;
  justify-content: center;
  align-items: center;
  gap: -1px;
  border-radius: 2px;
  background: var(--text-body);
}

.p-newrelease-attention__badge--important {
  color: var(--white);
  text-align: center;
  font-family: var(--font-hiragino, "Hiragino Kaku Gothic ProN");
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 11px */
}

.p-newrelease-attention__text {
  color: var(--text-body);
  font-family: "Hiragino Kaku Gothic ProN";
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 140%; /* 16.8px */
}

/* ===================================================================
   状態切り替え用のCSS制御（BEM Modifiers）
=================================================================== */

/* 1. デフォルトでは3つのビュー（loading, content, error）をすべて非表示にする */
.p-newrelease__view {
  display: none;
}

/* 3. --content クラスがついている時は、データ表示ビューを表示 */
.p-newrelease__state-container--content .p-newrelease__view--content {
  display: block;
}

/* 読み込み中表示 */
/*  --loading クラスがついている時は、読み込み中ビューを表示 */
.p-newrelease__state-container--loading .p-newrelease__view--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 120px 0;
}

.p-newrelease__status {
  margin-top: 12px;
  color: var(--text-caption-medium);
}

/* スピナーやエラー表示用の簡単な暫定装飾 */
.p-newrelease__spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid var(--border-medium);
  border-top: 4px solid var(--ui-green);
  border-radius: 50%;
  animation: nrSpin 1s linear infinite;
}

@keyframes nrSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* エラー表示 */
/* 4. --error クラスがついている時は、エラー・データなしビューを表示 */
.p-newrelease__state-container--error .p-newrelease__view--error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 120px 0;
}

.p-newrelease__error-icon {
  font-size: 40px;
}
.p-newrelease__error-msg {
  color: var(--text-caption-medium);
  margin-top: 12px;
}

/* ぺージャー */
.c-date_pager_prev.is-disabled,
.c-date_pager_next.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* カテゴリー切替 */
.c-tab_small li .c-tab_small_btn.is-active {
  color: var(--text-caption-high);
  font-weight: bold;
}


/* ===================================================================
   週ナビゲーションカスタムセレクトの表示制御
=================================================================== */

/* 1. デフォルトではオプション一覧を非表示にする */
.c-select_wrap .c-select_option_wrap {
  display: none;
}

/* 2. 親要素に .is-open 状態クラスが付与されたら、オプション一覧を表示する */
.c-select_wrap.is-open .c-select_option_wrap {
  display: block !important;
}

/* ===================================================================
   見出しの上部固定（Sticky Header）制御
=================================================================== */
.p-newrelease__date-heading {
  position: -webkit-sticky; /* 互換性対応 */
  position: sticky;
  top: var(--header-h, 0px); /* ヘッダーの高さ（CSS変数）に合わせて固定位置を調整 */
  z-index: 4;               /* スクロールするカード群より前面に表示 */
  background-color: var(--bg-main, #ffffff); /* 下のコンテンツが透けて見えないよう背景色を設定 */
  margin-bottom: 0;
  padding: 16px 0;
}

/* ===================================================================
   ページャー
=================================================================== */

.c-pager_prev.is-disabled, .c-pager_next.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================================================
   リスト表示
=================================================================== */
/* 共通&基準 */
.p-newrelease__date-group {
  width: 100%;
}

/* カバー表示 */
/* 基本的にはcommon.css */

/* ===================================================================
   リスト表示（最新統合版）
=================================================================== */
/* 共通&基準 */
.p-newrelease__date-group {
  width: 100%;
}

.p-newrelease-item {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  border-bottom: 1px solid var(--border-low);
}

.p-newrelease-item__inner {
  display: flex;
  align-self: stretch;
  align-items: stretch; /* 【修正】 start から stretch に変更し、右側の高さを書影に揃えます */
  gap: 12px;
  width: 100%;
}

/* 左側：書影エリア */
.p-newrelease-item__media {
  flex-shrink: 0; /* 書影サイズが縮まないように固定 */
}

.p-newrelease-item__cover-link {
  width: 105px;
  flex-shrink: 0;
  display: block;
}

/* 右側：詳細情報エリア */
.p-newrelease-item__body {
  display: flex;
  flex-direction: column; /* 縦並びのFlexにすることで最下部吸着を可能にします */
  flex-grow: 1;           /* 横幅を限界まで画面いっぱいに広げます */
  width: 100%;
}

.p-newrelease-item__title {
  width: 100%;
}

.p-newrelease-item__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  font-size: var(--size-body-large, 13px);
  font-style: normal;
  font-weight: bold;
  line-height: 160%;
  color: var(--text-body, #303030);
}

.p-newrelease-item__author {
  color: var(--text-link-high);
  font-size: var(--size-caption-large, 11px);
  font-style: normal;
  font-weight: normal;
  line-height: 160%;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px; /* 下部との最低限の隙間を確保 */
}

/* 右下のボタンアクションエリア */
.p-newrelease-item__footer {
  margin-top: auto;      /* 空きスペースを自動で埋めて最下部に押し下げます */
  width: 100%;
}

.p-newrelease-item__actions {
  display: flex;
  justify-content: flex-end; /* ボタンを右寄せにします */
  gap: 8px;                  /* ボタン同士の間隔 */
  width: 100%;
}

@media screen and (min-width: 600px) {
  .desclist-cover_link,
  .p-newrelease-item__cover-link { /* こちらにも 600px 以上の書影サイズアップを適用します */
      width: 120px;
  }
}
