/* =========================================
   共通CSS（新規）
   針とらBOOKS で全ページ共通のCSSはここに書く。
   旧来のルールは legacy.css に分離している。
   ========================================= */

/* =========================================
   共通LPヘッダー（コンテンツブロックとして貼付）
   作品別の装飾は assets/css/pages/{slug}.css 側で
   body.page-{slug} .lp-site-header にスコープして書く
   ========================================= */
.lp-site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(30, 130, 210, 0.18);
  box-shadow: 0 2px 10px rgba(20, 80, 140, 0.08);
  position: relative;
  z-index: 20;
}

.lp-site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-site-header__brand {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.lp-site-header__brand-main {
  color: #17233c;
}

.lp-site-header__brand-accent {
  color: #1f73d8;
  margin-left: 0.18em;
}

.lp-site-header__nav {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
}

.lp-site-header__nav a {
  color: #17233c;
  text-decoration: none;
  padding: 0 18px;
  position: relative;
  line-height: 1.4;
}

/* ナビ項目間の縦区切り線（PCモック準拠） */
.lp-site-header__nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1em;
  background: rgba(23, 35, 60, 0.25);
}

.lp-site-header__nav-mobile {
  display: none;
}

.lp-site-header a:hover {
  color: #0b95df;
}

.lp-site-header a:focus-visible {
  outline: 3px solid rgba(31, 115, 216, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .lp-site-header__inner {
    min-height: 56px;
    padding: 0 18px;
  }

  .lp-site-header__brand {
    font-size: 22px;
  }

  .lp-site-header__nav {
    display: none;
  }

  .lp-site-header__nav-mobile {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
  }

  .lp-site-header__nav-mobile a {
    color: #1f73d8;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
  }
}

/* =========================================
   共通LPフッター（コンテンツブロックとして貼付）
   作品別の装飾は assets/css/pages/{slug}.css 側で
   body.page-{slug} .lp-site-footer にスコープして書く
   ========================================= */
.lp-site-footer {
  background: linear-gradient(180deg, #102d57 0%, #0a1d3c 100%);
  color: #fff;
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    sans-serif;
}

.lp-site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.lp-site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.lp-site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}

.lp-site-footer__brand-mark {
  width: 40px;
  height: 40px;
  background: url('../images/footer/book-icon.svg') no-repeat center / contain;
  display: inline-block;
  flex-shrink: 0;
}

.lp-site-footer__brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.lp-site-footer__lead {
  flex-basis: 100%;
  font-size: 13px;
  color: #c5d3e6;
  margin: 0;
  line-height: 1.7;
  text-align: center;
}

.lp-site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.lp-site-footer__nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  position: relative;
}

.lp-site-footer__nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1em;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

/* 創作アーカイブリンクはデビュー前作品集のため、各LPからの導線は絞る運用。
   トップ・プロフィール・ブログ一覧・記事詳細でのみ表示する。
   page-blog は「投稿ページ」設定の有無に関わらず効くよう blog/page-blog 両方書く。
   セパレータ「｜」は a + a::before で実装されているため、リンク自体を
   display:none すれば前の縦線も一緒に消える。 */
.lp-site-footer__nav-archives {
  display: none;
}
body.page-home .lp-site-footer__nav-archives,
body.page-profile .lp-site-footer__nav-archives,
body.blog .lp-site-footer__nav-archives,
body.page-blog .lp-site-footer__nav-archives,
body.single-post .lp-site-footer__nav-archives,
body.page-archives .lp-site-footer__nav-archives,
body.page-studies_white .lp-site-footer__nav-archives,
body.page-studies_black .lp-site-footer__nav-archives,
body.page-studies_mystery .lp-site-footer__nav-archives,
body.page-studies_others .lp-site-footer__nav-archives,
body.page-rengoku_kamaitachi .lp-site-footer__nav-archives {
  display: inline-block;
}

/* SPでは4本横並びが入りきらないので、創作アーカイブを次行センターに送る。
   補助的な項目なので少し小さめにして主要3本との階層感を出す。
   折り返した先で行頭に出てしまう「｜」セパレータも非表示に。 */
@media (max-width: 767px) {
  .lp-site-footer__nav-archives {
    flex-basis: 100%;
    text-align: center;
    font-size: 12.5px;
  }
  .lp-site-footer__nav-archives::before {
    display: none;
  }
}

.lp-site-footer__social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.lp-site-footer__social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(143, 208, 255, 0.32);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lp-site-footer__social-link:hover {
  background: rgba(143, 208, 255, 0.2);
  border-color: rgba(143, 208, 255, 0.55);
  transform: translateY(-2px);
}

.lp-site-footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lp-site-footer__social-link--litlink span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.lp-site-footer__notices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.lp-site-footer__notice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(143, 208, 255, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #d4dfeb;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lp-site-footer__notice::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-top: 2px;
}

.lp-site-footer__notice--site::before {
  background-image: url('../images/footer/notice-site.svg');
}

.lp-site-footer__notice--rights::before {
  background-image: url('../images/footer/notice-rights.svg');
}

/* 作品別noticeはデフォルト非表示。body.page-{slug} 側で表示する */
.lp-site-footer__notice--minecraft {
  display: none;
}

.lp-site-footer__copyright {
  text-align: center;
  font-size: 12px;
  color: #aab8cd;
  margin: 0;
  letter-spacing: 0.04em;
}

/* 装飾モブの共通設定。各LPで body.page-{slug} .lp-site-footer__decor--left/right
   に display: block と background-image を指定すれば配置される。
   左右は独立して制御可能（片方だけ出す／左右で違うキャラ／両方なし、自由）。 */
.lp-site-footer__decor {
  display: none;
  position: absolute;
  pointer-events: none;
  z-index: 2;
  bottom: 12px;
  width: 84px;
  height: 96px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

.lp-site-footer__decor--left {
  left: 12px;
}

.lp-site-footer__decor--right {
  right: 12px;
}

.lp-site-footer a:focus-visible {
  outline: 3px solid rgba(143, 208, 255, 0.5);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .lp-site-footer {
    padding: 56px 0 40px;
  }

  .lp-site-footer__inner {
    padding: 0 32px;
  }

  .lp-site-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
  }

  .lp-site-footer__brand {
    justify-content: flex-start;
    flex: 0 0 auto;
    max-width: 360px;
  }

  .lp-site-footer__brand-name {
    font-size: 24px;
    text-align: left;
  }

  .lp-site-footer__lead {
    text-align: left;
    font-size: 12.5px;
  }

  .lp-site-footer__nav {
    flex: 1 1 auto;
    justify-content: center;
  }

  .lp-site-footer__nav a {
    font-size: 16px;
    padding: 8px 22px;
  }

  .lp-site-footer__social {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .lp-site-footer__notices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 32px;
  }

  .lp-site-footer__notice {
    /* 要素数に応じて等幅に伸びる：3つなら1/3、2つなら1/2幅
       アイコン+テキストが横に広がることで縦の高さを抑える */
    flex: 1 1 0;
    min-width: 0;
    padding: 18px 20px;
  }

  .lp-site-footer__decor {
    width: 120px;
    height: 138px;
    bottom: 16px;
  }

  .lp-site-footer__decor--left {
    left: 24px;
  }

  .lp-site-footer__decor--right {
    right: 24px;
  }
}

/* =========================================
   針とらのほかの作品（SANGO Group Slider 版・試作）
   - SANGOテーマのグループスライダー（Splide.js）に被せる装飾CSS
   - 各スライドの .splide__slide に Additional CSS Class で work--{slug} を付与する前提
   - 中身（書影、作品名、キャッチコピー、リンク）はSANGO管理画面で編集
   - 外側ラッパーは Gutenberg グループブロック（追加CSSクラス: lp-other-works）で
     見出しh2とスライダーをまとめている前提
   ========================================= */

/* 外側のセクションパネル（白半透明背景＋角丸）
   font-smoothingでWebフォント（M PLUS Rounded 1c）の小サイズ表示時に
   PC Chromiumのアンチエイリアスが甘くなる現象を抑える */
.lp-other-works {
  width: min(1120px, calc(100% - 32px));
  margin: clamp(20px, 4vw, 48px) auto !important;
  padding: clamp(20px, 4vw, 36px) clamp(16px, 3vw, 28px) !important;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(120, 190, 230, 0.35);
  box-shadow: 0 12px 28px rgba(20, 90, 140, 0.12);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 見出し（h2）：両脇に星アクセント、中央寄せ
   フォントは M PLUS Rounded 1c の太字で目を引かせる */
.lp-other-works > h2 {
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #15315f;
}

.lp-other-works > h2::before,
.lp-other-works > h2::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background-image: url('../images/common/other-works-sparkle.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .lp-other-works > h2 {
    margin-bottom: 24px !important;
    gap: 14px;
  }

  .lp-other-works > h2::before,
  .lp-other-works > h2::after {
    width: 26px;
    height: 26px;
  }
}

/* スライダー全体ラッパー（外側パネル内では追加マージンを抑える） */
.wp-block-sgb-group-slider {
  margin: 0 auto;
}

/* スライド1枚 = カード
   矢印は ::after で absolute 配置するため、カード高さ自体は最小に保つ。
   コピー文（p）側に padding-right を確保することで矢印と重ならないように */
.wp-block-sgb-group-slider .splide__slide {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(120, 190, 230, 0.28);
  box-shadow: 0 8px 18px rgba(20, 90, 140, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
  position: relative;
  cursor: pointer; /* JSでカード全体クリック化 */
}

/* マウスデバイス（PC）でのみカードがふわっと浮き上がる
   タッチ端末ではスワイプ時の誤発火で気になるので無効化 */
@media (hover: hover) {
  .wp-block-sgb-group-slider .splide__slide:hover {
    box-shadow: 0 16px 32px rgba(20, 90, 140, 0.22);
    transform: translateY(-4px);
  }
}

/* 内側のカラム配置 */
.wp-block-sgb-group-slider .splide__slide .wp-block-columns {
  margin: 0 !important;
  gap: 12px;
  align-items: center;
}

/* 書影カラム */
.wp-block-sgb-group-slider .splide__slide .wp-block-column:first-child {
  flex-basis: 45%;
  flex-grow: 0;
}

/* 書影画像（全スライド共通：縦横比2:3で揃え、角丸＋影） */
.wp-block-sgb-group-slider .splide__slide figure {
  margin: 0 !important;
}

.wp-block-sgb-group-slider .splide__slide figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  display: block;
}

/* テキストカラム */
.wp-block-sgb-group-slider .splide__slide .wp-block-column:last-child {
  flex-grow: 1;
  position: relative;
}

/* 作品名（h2）：SANGO見出しブロックの装飾を打ち消して統一
   2行までは折り返し許容、それ以上は省略
   フォントは Zen Maru Gothic（小サイズでhinting安定の丸ゴシック）。
   見出しの M PLUS Rounded 1c とは別フォントだが、丸ゴシック系で雰囲気は揃う */
.wp-block-sgb-group-slider .splide__slide h2 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "YuGothic", sans-serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.3 !important;
  color: #15315f !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* SANGO見出しブロック内側のspanが独自にfont/colorを当ててくるため
   全部親h2から継承させて、CSSの一元管理に揃える */
.wp-block-sgb-group-slider .splide__slide h2 .sgb-heading__inner,
.wp-block-sgb-group-slider .splide__slide h2 .sgb-heading__text {
  background: transparent !important;
  border: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  padding: 0 !important;
}

/* キャッチコピー（p） */
.wp-block-sgb-group-slider .splide__slide p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #24364f;
}

/* 作品別アクセントカラー（slugクラスで作品名h2を着色）
   SANGOの sgb-heading__text に inline style で color:#333 が当たっているため、
   specificity を爆上げ＋h2配下全要素に適用して確実に上書きする */
body .splide__slide.work--minecraft_adventure h2,
body .splide__slide.work--minecraft_adventure h2 *,
body .splide__slide.work--minecraft_adventure h2 a { color: #5ba93a !important; }
body .splide__slide.work--kamieshi_note h2,
body .splide__slide.work--kamieshi_note h2 *,
body .splide__slide.work--kamieshi_note h2 a { color: #1f73d8 !important; }
body .splide__slide.work--zetsuoni h2,
body .splide__slide.work--zetsuoni h2 *,
body .splide__slide.work--zetsuoni h2 a { color: #c81818 !important; }
body .splide__slide.work--battlecats h2,
body .splide__slide.work--battlecats h2 *,
body .splide__slide.work--battlecats h2 a { color: #ee8c2c !important; }
body .splide__slide.work--novel-irumakun h2,
body .splide__slide.work--novel-irumakun h2 *,
body .splide__slide.work--novel-irumakun h2 a { color: #7e3fab !important; }
/* anthology / other_originals は #15315f のまま（強調なし） */

/* にゃんこえほん書影は正方形寄り（0.904）なので contain で見切れ防止 */
.work--battlecats figure img {
  object-fit: contain;
}

/* カード内の青矢印アイコン（カード全体の右下隅に配置）
   テキストカラムからカード全体に基準を変更したことで、コピー文の長さに依らず位置が揃う */
.wp-block-sgb-group-slider .splide__slide::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #1f73d8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12 H17 M13 7 L18 12 L13 17'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  box-shadow: 0 2px 6px rgba(20, 90, 140, 0.25);
  display: block;
  pointer-events: none;
  transition: background-color 0.18s ease;
}

/* マウスデバイス（PC）でのみホバー時に矢印色を濃く */
@media (hover: hover) {
  .wp-block-sgb-group-slider .splide__slide:hover::after {
    background-color: #0b5cb6;
  }
}

/* タッチデバイス（スマホ・タブレット）では青矢印を非表示
   カード全体クリックで遷移するので冗長＋タブレットでは表示領域を圧迫する */
@media (hover: none) {
  .wp-block-sgb-group-slider .splide__slide::after {
    display: none;
  }
}

/* 自カード非表示（自LPでは自分のカードを隠す） */
body.page-minecraft_adventure .work--minecraft_adventure { display: none; }
body.page-kamieshi_note .work--kamieshi_note { display: none; }
body.page-zetsuoni .work--zetsuoni { display: none; }
body.page-battlecats .work--battlecats { display: none; }
body.page-novel-irumakun .work--novel-irumakun { display: none; }
body.page-anthology .work--anthology { display: none; }
body.page-other_originals .work--other_originals { display: none; }

/* スマホ：縦型カードに切替（書影上、テキスト下） */
@media (max-width: 767px) {
  .wp-block-sgb-group-slider .splide__slide {
    padding: 14px;  /* スマホでは矢印分の下padding不要 */
  }

  .wp-block-sgb-group-slider .splide__slide .wp-block-columns {
    flex-direction: column;
    gap: 8px;
  }

  .wp-block-sgb-group-slider .splide__slide .wp-block-column:first-child {
    flex-basis: auto;
    width: 100%;
  }

  .wp-block-sgb-group-slider .splide__slide h2 {
    font-size: 17px !important;
  }
}

/* Splideのスライダーナビゲーション矢印（前/次ボタン）を枠の外側寄りに
   .wp-block-sgb-group-slider のSANGO標準 overflow:hidden を解除して、
   矢印がパネル領域いっぱいに広がっても見切れないようにする。
   スライド非表示部分は内側の .splide__track で隠す */
.lp-other-works .wp-block-sgb-group-slider {
  overflow: visible !important;
}

.lp-other-works .wp-block-sgb-group-slider .splide__track {
  overflow: hidden;
}

.lp-other-works .splide__arrow {
  background: #fff;
  border: 1px solid rgba(120, 190, 230, 0.45);
  box-shadow: 0 4px 12px rgba(20, 90, 140, 0.18);
  width: 38px;
  height: 38px;
  opacity: 1;
}

.lp-other-works .splide__arrow svg {
  fill: #1b79d8;
  width: 16px;
  height: 16px;
}

.lp-other-works .splide__arrow--prev {
  left: -40px;
}

.lp-other-works .splide__arrow--next {
  right: -40px;
}

.lp-other-works .splide__arrow:hover {
  background: #1f73d8;
}

.lp-other-works .splide__arrow:hover svg {
  fill: #fff;
}

/* =========================================
   針とらのほかの作品（横長カード版バリアント）
   - 各LP固定ページで .lp-other-works グループブロックの追加CSSクラスに
     `lp-other-works--cards` を足すと有効化される
   - 書影は 4:3 横長クロップ（トップページ lineup と同じ縦横比）
   - テキストは書影下に縦積み（PC・タブレット・SP 共通レイアウト）
   - 既存の縦長書影レイアウトは残してあるので、追加クラスを外せば元に戻る
   - 「シリーズ既刊」セクションを将来追加するときは、追加クラス無しの縦長で
     縦長書影＋右テキストのまま使える（差別化を CSS 側で完結）
   ========================================= */

/* 書影クロップ位置を slug ごとに微調整する用の CSS 変数。
   デフォルトは center。必要な作品だけ下記のコメントを外して値を編集する。
   値は CSS の object-position と同じ書式。例：
     center           ←  デフォルト（縦も横も中央）
     center 25%       ←  上寄せ（書影の上から25%付近を中心に）
     center 75%       ←  下寄せ
     30% center       ←  左寄せ（書影の左から30%付近を中心に）
   トップページの featured / lineup カードも同じ変数を参照するので、
   ここでの調整はサイト全体（トップ + 各LP のほかの作品）に同時に効く。 */

.work--minecraft_adventure { --hb-cover-position: center 45%; }
.work--kamieshi_note       { --hb-cover-position: center 45%; }
.work--zetsuoni            { --hb-cover-position: center 60%; }
.work--battlecats          { --hb-cover-position: center 72%; }
.work--novel-irumakun      { --hb-cover-position: center 25%; }
.work--anthology           { --hb-cover-position: center 25%; }
/* .work--other_originals     { --hb-cover-position: center; } */

.lp-other-works--cards .wp-block-sgb-group-slider .splide__slide .wp-block-columns {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.lp-other-works--cards .wp-block-sgb-group-slider .splide__slide .wp-block-column:first-child {
  flex-basis: auto;
  flex-grow: 0;
  width: 100%;
}

.lp-other-works--cards .wp-block-sgb-group-slider .splide__slide figure img {
  /* Gutenberg 側で画像の「寸法」（％）やHTML属性 width が当たっていても、
     カード幅いっぱいまで伸ばしたいので !important で強制。
     根本対処は管理画面で各書影画像の「画像の寸法」をリセット or 100% にすること。 */
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--hb-cover-position, center);
}

/* figure 自身にもインライン width が当たっている可能性があるので念の為強制。 */
.lp-other-works--cards .wp-block-sgb-group-slider .splide__slide figure {
  width: 100% !important;
  max-width: 100% !important;
}

/* battlecats はトップページが cover + center で統一されているので、こちらも合わせる。
   既存の `.work--battlecats figure img { object-fit: contain }` は縦長書影モード用の
   フリンジ防止策なので、--cards モディファイアでは打ち消して cover に戻す。 */
.lp-other-works--cards .splide__slide.work--battlecats figure img {
  object-fit: cover;
}

/* 作品名タイトルの幅別出し分け
   各カード（splide__slide）の h2 に PC / タブレット / SP それぞれ用の <span> を入れる：
     <h2>
       <span class="title-pc">小説 魔入りました！入間くん</span>
       <span class="title-tab">小説 入間くん</span>
       <span class="title-sp">入間くん</span>
     </h2>
   省略したい span は管理画面側で空にする（または書かない）と、その幅では何も出ない。
   既存の books-home-lineup ヘッダーの __heading-pc / __heading-sp と同じ思想。 */

.lp-other-works--cards .wp-block-sgb-group-slider .splide__slide h2 .title-pc,
.lp-other-works--cards .wp-block-sgb-group-slider .splide__slide h2 .title-tab,
.lp-other-works--cards .wp-block-sgb-group-slider .splide__slide h2 .title-sp {
  display: none;
}

/* PC（1024px〜） */
@media (min-width: 1024px) {
  .lp-other-works--cards .wp-block-sgb-group-slider .splide__slide h2 .title-pc {
    display: inline;
  }
}

/* タブレット（768〜1023px） */
@media (min-width: 768px) and (max-width: 1023px) {
  .lp-other-works--cards .wp-block-sgb-group-slider .splide__slide h2 .title-tab {
    display: inline;
  }
}

/* SP（〜767px） */
@media (max-width: 767px) {
  .lp-other-works--cards .wp-block-sgb-group-slider .splide__slide h2 .title-sp {
    display: inline;
  }
}

/* SP（〜767px）：キャッチコピー（テキストカラム内の p）を非表示にして
   タイトルだけ見せる。狭い画面でテキスト2行を出すとカードが間延びするため。 */
@media (max-width: 767px) {
  .lp-other-works--cards .wp-block-sgb-group-slider .splide__slide .wp-block-column:last-child p {
    display: none;
  }

  /* SP はセンターモード解除。JS の breakpoint で focus:false + padding:0 を入れているが、
     Splide の padding オプションが既に DOM に反映されている場合の保険として、
     .splide__track の padding を CSS でも打ち消す。 */
  .lp-other-works--cards .wp-block-sgb-group-slider .splide__track {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
