/* =============================================================================
   article-template.css — 記事ページ専用（article-template.html）

   構成: HEADER → HERO → LEAD → BODY → Gallery → Startup Costs → Shop Information
         → Related Stories → Footer

   レイアウト型
   A. コンテンツカラム型 … LEAD / BODY / Startup Costs / Shop Information / Related Stories 見出し
   B. 画面幅型 (full-bleed) … HERO / Gallery スライド / Footer 背景

   SP 基準
   --bs-sp-page-gutter: 28px
   --bs-sp-content-width: calc(100% - 56px)
   ============================================================================= */

:root {
  --bs-sp-page-gutter: 28px;
  --bs-sp-content-width: calc(100% - (2 * var(--bs-sp-page-gutter)));
  --bs-font-mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --bs-font-yumin: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", serif;
  --bs-font-en: DINCondensed, "Helvetica Neue", Arial, sans-serif;
  --bs-color-text: #333333;
  --bs-color-muted: #555555;
  --bs-color-note: #8c8c8c;
  --bs-narrow: 36%;
  --bs-page-bg: #faf9f4;
  --bs-section-max-lg: 672px;
  --bs-section-max-xl: 798px;
  --bs-section-max-xxl: 924px;
}

/* --- ベース --- */

html,
body.page-legacy-article {
  height: 100%;
  margin: 0;
}

body.page-legacy-article,
body.page-legacy-article.page-article {
  background-color: var(--bs-page-bg);
  color: var(--bs-color-text);
}

/*
  横方向の描画ルール（HOME準拠＋記事の競合解消）:
  - ルート全幅背景は body の overflow-x で切らない（visible）
  - HERO 右bleed の document はみ出しは .bsa-hero 側で clip
  - html 背景は紙面色でルートを揃える（スクロールバー色はブラウザ標準のまま）
*/
html:has(body.page-legacy-article.page-article) {
  background-color: var(--bs-page-bg, #faf9f4);
}

body.page-legacy-article.page-article {
  overflow-x: visible;
}

body.page-legacy-article.page-article img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.page-legacy-article.page-article a {
  color: inherit;
}

body.page-legacy-article a:hover img {
  opacity: 0.7;
}

body.page-legacy-article main,
body.page-legacy-article .bs-article,
body.page-legacy-article main .bs-lead,
body.page-legacy-article main .bs-body,
body.page-legacy-article main .bs-body-image,
body.page-legacy-article main .bs-body-text,
body.page-legacy-article main .bs-photo-strip,
body.page-legacy-article main .bs-costs,
body.page-legacy-article main .bs-company,
body.page-legacy-article main .bs-dog {
  background-color: var(--bs-page-bg);
}

body.page-legacy-article main .bs-curious {
  background-color: #eee7dd;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* mystyle section 余白リセット */
body.page-legacy-article main section.bs-lead,
body.page-legacy-article main .bs-body-image,
body.page-legacy-article main .bs-body-text,
body.page-legacy-article main .bs-photo-strip,
body.page-legacy-article main .bs-costs,
body.page-legacy-article main .bs-company,
body.page-legacy-article main .bs-dog {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* style.css section { overflow: hidden } による Shop Information 説明文切れ防止 */
body.page-legacy-article main section.bs-company,
body.page-legacy-article main section.bs-dog {
  overflow: visible;
}

/* 任意セクション ON/OFF */
body.page-legacy-article .bs-article[data-section-gallery="off"] [data-section="gallery"],
body.page-legacy-article .bs-article[data-section-costs="off"] [data-section="costs"],
body.page-legacy-article .bs-article[data-section-company="off"] [data-section="company"],
body.page-legacy-article .bs-article[data-section-dog="off"] [data-section="dog"] {
  display: none;
}

/* =============================================================================
   §SP（max-width: 1023px）— コンテンツカラム幅・セクション別余白
   ============================================================================= */

@media screen and (max-width: 1023px) {
  /* Header — 一覧ページ SP と同一基準線（style-new.css §91） */
  body.page-legacy-article.page-article .header {
    padding: 11px 18px 8px;
    min-height: 43px;
  }

  body.page-legacy-article.page-article .header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    flex-wrap: nowrap;
    row-gap: 0;
    align-items: center;
    gap: 10px;
  }

  /* コンテンツカラム型 — gutter 基準で幅統一 */
  body.page-legacy-article.page-article .bs-lead-inner,
  body.page-legacy-article.page-article .bs-body,
  body.page-legacy-article.page-article .bs-costs .container,
  body.page-legacy-article.page-article .bs-company .container,
  body.page-legacy-article.page-article .bs-dog .container,
  body.page-legacy-article.page-article .bs-curious-inner.container {
    width: var(--bs-sp-content-width);
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
  }

  body.page-legacy-article.page-article .bs-costs .container,
  body.page-legacy-article.page-article .bs-company .container,
  body.page-legacy-article.page-article .bs-dog .container,
  body.page-legacy-article.page-article .bs-curious-inner.container {
    padding-left: 0;
    padding-right: 0;
  }

  body.page-legacy-article.page-article .bs-lead-entity {
    padding-top: 122px;
  }

  body.page-legacy-article.page-article .bs-body {
    padding-bottom: 115px;
  }

  body.page-legacy-article.page-article .bs-body-text-inner,
  body.page-legacy-article.page-article .bs-body-image {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  body.page-legacy-article.page-article .bs-body > .bs-body-text:last-of-type h2 {
    padding-top: 95px;
  }

  body.page-legacy-article.page-article .bs-body > .bs-body-text:last-of-type p {
    padding-bottom: calc(2em - 25px);
  }

  body.page-legacy-article.page-article main .bs-photo-strip {
    padding-top: calc(clamp(80px, 10vw, 127px) - 50px);
    padding-bottom: calc(clamp(80px, 10vw, 127px) + 80px);
  }

  body.page-legacy-article.page-article .bs-costs .bs-section-heading-ja,
  body.page-legacy-article.page-article .bs-company .bs-section-heading-ja,
  body.page-legacy-article.page-article .bs-dog .bs-section-heading-ja {
    font-size: 31px;
  }

  body.page-legacy-article.page-article .bs-company,
  body.page-legacy-article.page-article .bs-dog {
    padding-top: 65px;
  }

  body.page-legacy-article.page-article .bs-company .bs-split,
  body.page-legacy-article.page-article .bs-dog .bs-split {
    margin-bottom: 0;
  }

  body.page-legacy-article.page-article .bs-costs .row,
  body.page-legacy-article.page-article .bs-company .row,
  body.page-legacy-article.page-article .bs-dog .row {
    margin-left: 0;
    margin-right: 0;
  }

  body.page-legacy-article.page-article .bs-costs .row > *,
  body.page-legacy-article.page-article .bs-company .row > *,
  body.page-legacy-article.page-article .bs-dog .row > * {
    padding-left: 0;
    padding-right: 0;
  }

  body.page-legacy-article.page-article .bs-split-content {
    padding-left: 0;
    padding-right: 0;
  }

  body.page-legacy-article.page-article .bs-curious-intro {
    max-width: none;
  }

  body.page-legacy-article.page-article .bs-curious-card-link {
    aspect-ratio: 600 / 560;
  }

}

/* 769–1023px のフッター左右だけ従来の記事ガター。768px以下は style-new.css §45.3 が正本。 */
@media screen and (max-width: 1023px) and (min-width: 769px) {
  body.page-legacy-article.page-article .footer-home-inner {
    padding-left: var(--bs-sp-page-gutter);
    padding-right: var(--bs-sp-page-gutter);
    box-sizing: border-box;
  }
}

@media screen and (max-width: 768px) {
  body.page-legacy-article.page-article .header .header-inner {
    padding-left: 2px;
    padding-right: 0;
  }

  body.page-legacy-article.page-article .logo {
    margin-left: -10px;
  }

  body.page-legacy-article.page-article .header-actions {
    margin-right: -6px;
  }
}

/* --- HERO（画面幅型 / full-bleed） --- */

body.page-legacy-article .bg-switcher.bs-hero {
  background-image: url("shop/40/petitpas/img/history/mainvisual/995.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.bs-hero-inner {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  transform: translateY(-40px);
}

.bs-hero-brand {
  margin: 10px 0 0;
  color: #ffffff;
  font-family: var(--bs-font-mincho);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.5;
}

.bs-hero-tagline {
  margin: 0;
  color: #ffffff;
  font-family: var(--bs-font-mincho);
  font-size: 14.4px;
  font-weight: 600;
  line-height: 1.5;
}

@media screen and (min-width: 1024px) {
  .bs-hero-inner {
    width: 75%;
  }

  .bs-hero-brand {
    margin-top: 50px;
    font-size: 74px;
    font-weight: 600;
  }

  .bs-hero-tagline {
    font-size: 25.2px;
    font-family: var(--bs-font-yumin);
  }
}

/* --- LEAD（コンテンツカラム型） --- */

.bs-lead {
  padding-top: 40px;
}

.bs-lead-inner {
  margin-inline: auto;
  max-width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.bs-lead-entity {
  margin: 0;
  padding-top: 140px;
  padding-bottom: 44px;
  font-family: var(--bs-font-mincho);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.bs-lead-title {
  margin: 0;
  margin-top: -12px;
  padding-bottom: 58px;
  font-family: var(--bs-font-yumin);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.bs-lead-body p {
  margin: 0;
  padding-bottom: 70px;
  font-family: var(--bs-font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: normal;
  color: #3e3e3e;
}

@media screen and (min-width: 1024px) {
  .bs-lead {
    padding-top: 120px;
  }

  .bs-lead-inner {
    width: var(--bs-narrow);
  }

  .bs-lead-entity {
    padding-top: 100px;
    padding-bottom: 80px;
    font-size: 17px;
    line-height: 2;
  }

  .bs-lead-title {
    padding-bottom: 86px;
    font-size: 47px;
  }

  .bs-lead-body p {
    margin-top: -18px;
    padding-bottom: 100px;
    font-family: var(--bs-font-yumin);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 2.2;
  }
}

/* --- BODY（コンテンツカラム型） --- */

.bs-body-image {
  margin: 0;
  padding: 40px 0 80px;
}

.bs-body-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* 本文内で画像が上下に連続する場合の区切り（画像間 20px） */
body.page-legacy-article main .bs-body-image + .bs-body-image {
  margin-top: 20px;
}

.bs-body-text-inner {
  text-align: left;
}

.bs-body-text h2 {
  margin: 0;
  padding: 120px 0 40px;
  font-family: var(--bs-font-yumin);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--bs-color-text);
}

.bs-body-text p {
  margin: 0;
  padding-bottom: 2em;
  font-family: var(--bs-font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: normal;
  color: #3e3e3e;
}

.bs-body-text h2:nth-of-type(2) {
  padding-top: 85px;
}

.bs-body-text h2:nth-of-type(2) + p {
  padding-bottom: calc(2em + 35px);
}

@media screen and (min-width: 1024px) {
  .bs-body-image {
    padding: 80px 0 120px;
  }

  .bs-body-image img {
    width: 600px;
    max-width: 100%;
    margin-inline: auto;
  }

  .bs-body-image:last-of-type {
    padding-bottom: 140px;
  }

  .bs-body-text-inner {
    width: var(--bs-narrow);
    max-width: 100%;
    margin-inline: auto;
  }

  .bs-body-text h2 {
    font-size: 33px;
    line-height: 1.8;
  }

  .bs-body-text p {
    font-size: 20px;
    line-height: 2;
  }
}

/* --- セクション見出し（Startup Costs / Shop Information） --- */

.bs-section-heading {
  margin: 0 0 24px;
  text-align: center;
}

.bs-section-heading-en {
  margin: 0;
  font-family: var(--bs-font-en);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.bs-section-heading-ja {
  margin: 16px 0 0;
  font-family: var(--bs-font-yumin);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #444444;
}

.bs-section-heading--investment .bs-section-heading-en {
  color: #eeaa05;
}

.bs-section-heading--place .bs-section-heading-en {
  color: #d64483;
}

.bs-section-heading--dog .bs-section-heading-en {
  color: #4f7f83;
}

.bs-section-note {
  margin: 10px 0 0;
  font-family: var(--bs-font-yumin);
  font-size: 9px;
  font-weight: 200;
  line-height: 1.7;
  color: #666666;
}

@media screen and (min-width: 1024px) {
  .bs-section-heading-en {
    font-size: 18px;
  }

  .bs-section-heading-ja {
    font-size: 40px;
  }

  body.page-legacy-article .bs-costs .bs-section-heading-ja {
    font-size: 47px;
  }

  body.page-legacy-article .bs-company .bs-section-heading-ja {
    font-size: 47px;
  }

  .bs-section-heading--investment {
    padding-top: 100px;
  }

  .bs-section-heading--place {
    padding-top: 80px;
  }

  .bs-section-heading--dog {
    padding-top: 80px;
  }

  .bs-section-note {
    font-size: 16px;
    line-height: 1.6;
    color: var(--bs-color-note);
  }

  body.page-legacy-article .bs-costs .bs-section-note {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* --- Gallery（画面幅型 / full-bleed） --- */

.bs-photo-strip {
  background-color: var(--bs-page-bg);
  overflow: hidden;
}

body.page-legacy-article main .bs-photo-strip {
  padding: clamp(80px, 10vw, 127px) 0;
}

.bs-photo-strip-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.bs-photo-strip-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: bs-photo-strip-marquee 110s linear infinite;
}

.bs-photo-strip-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bs-photo-strip-item {
  flex: 0 0 auto;
  width: clamp(346px, 52vw, 662px);
  aspect-ratio: 16 / 12;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.bs-photo-strip-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.02) saturate(0.92) brightness(0.96);
}

@keyframes bs-photo-strip-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs-photo-strip-track {
    animation: none;
  }
}

/* --- PC セクション最大幅（Startup Costs / Shop Information / Related Stories） --- */

@media screen and (min-width: 1024px) and (max-width: 1199px) {
  body.page-legacy-article .bs-costs > .container,
  body.page-legacy-article .bs-company > .container,
  body.page-legacy-article .bs-dog > .container,
  body.page-legacy-article .bs-curious-inner {
    width: 100%;
    max-width: var(--bs-section-max-lg);
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  body.page-legacy-article .bs-costs > .container,
  body.page-legacy-article .bs-company > .container,
  body.page-legacy-article .bs-dog > .container,
  body.page-legacy-article .bs-curious-inner {
    width: 100%;
    max-width: var(--bs-section-max-xl);
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1400px) {
  body.page-legacy-article .bs-costs > .container,
  body.page-legacy-article .bs-company > .container,
  body.page-legacy-article .bs-dog > .container,
  body.page-legacy-article .bs-curious-inner {
    width: 100%;
    max-width: var(--bs-section-max-xxl);
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Startup Costs --- */

.bs-costs {
  padding-top: 80px;
  background-color: var(--bs-page-bg);
  background-image: none;
}

.bs-costs .bs-section-heading-ja {
  margin-bottom: 15px;
}

body.page-legacy-article .bs-costs .bs-section-heading {
  border-bottom: none;
  margin-bottom: 4px;
}

body.page-legacy-article .bs-costs .bs-section-heading-ja::after,
body.page-legacy-article .bs-costs .bs-section-heading-en::after {
  content: none;
  display: none;
}

body.page-legacy-article .bs-costs .bs-section-note {
  font-size: 8px;
  padding-bottom: clamp(18px, 2vw, 24px);
  margin-bottom: 0;
  border-bottom: 1px solid rgba(12, 10, 8, 0.12);
}

/* --- Shop Information / The Dog --- */

.bs-company,
.bs-dog {
  background-color: var(--bs-page-bg);
  background-image: none;
}

body.page-legacy-article .bs-company .bs-section-heading,
body.page-legacy-article .bs-dog .bs-section-heading {
  padding-bottom: clamp(18px, 2vw, 24px);
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(12, 10, 8, 0.12);
}

body.page-legacy-article .bs-company .bs-section-heading-ja::after,
body.page-legacy-article .bs-company .bs-section-heading-en::after,
body.page-legacy-article .bs-dog .bs-section-heading-ja::after,
body.page-legacy-article .bs-dog .bs-section-heading-en::after {
  content: none;
  display: none;
}

/* --- Startup Costs / Shop Information 共通 --- */

body.page-legacy-article .bs-costs .container,
body.page-legacy-article .bs-costs .bs-section-heading,
body.page-legacy-article .bs-costs .bs-section-note,
body.page-legacy-article .bs-costs .bs-split,
body.page-legacy-article .bs-costs .bs-split-content,
body.page-legacy-article .bs-costs .bs-split-media,
body.page-legacy-article .bs-costs .row,
body.page-legacy-article .bs-costs .col-lg-6,
body.page-legacy-article .bs-company .container,
body.page-legacy-article .bs-company .bs-section-heading,
body.page-legacy-article .bs-company .bs-section-note,
body.page-legacy-article .bs-company .bs-split,
body.page-legacy-article .bs-company .bs-split-content,
body.page-legacy-article .bs-company .bs-split-media,
body.page-legacy-article .bs-company .row,
body.page-legacy-article .bs-company .col-lg-6,
body.page-legacy-article .bs-dog .container,
body.page-legacy-article .bs-dog .bs-section-heading,
body.page-legacy-article .bs-dog .bs-split,
body.page-legacy-article .bs-dog .bs-split-content,
body.page-legacy-article .bs-dog .bs-split-media,
body.page-legacy-article .bs-dog .row,
body.page-legacy-article .bs-dog .col-lg-6 {
  background-color: var(--bs-page-bg);
  background-image: none;
}

.bs-split {
  margin-bottom: 20px;
}

body.page-legacy-article .bs-company .bs-split,
body.page-legacy-article .bs-dog .bs-split {
  margin-bottom: -50px;
}

.bs-split-media {
  padding-top: 0;
}

.bs-split-media img {
  width: 100%;
  height: auto;
}

.bs-split-content {
  padding: 12px 24px 20px;
}

.bs-split-title {
  margin: 0 0 16px;
  font-family: var(--bs-font-mincho);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
}

.bs-split-body {
  margin: 0;
  font-family: var(--bs-font-mincho);
  font-size: 12px;
  line-height: 1.9;
}

.bs-costs-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--bs-font-mincho);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--bs-color-muted);
}

.bs-costs-list li::before {
  content: "・";
}

.bs-company-facts,
.bs-dog-facts {
  margin: 0 0 20px;
}

.bs-company-facts div,
.bs-dog-facts div {
  margin: 0 0 0.35em;
  font-family: var(--bs-font-mincho);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--bs-color-muted);
}

.bs-company-facts dt,
.bs-company-facts dd,
.bs-dog-facts dt,
.bs-dog-facts dd {
  display: inline;
  margin: 0;
  font-weight: inherit;
}

.bs-company-facts dt::after,
.bs-dog-facts dt::after {
  content: "：";
}

@media screen and (min-width: 1024px) {
  body.page-legacy-article .bs-costs .bs-split .row,
  body.page-legacy-article .bs-company .bs-split .row,
  body.page-legacy-article .bs-dog .bs-split .row {
    align-items: center;
  }

  body.page-legacy-article .bs-costs .bs-split-media,
  body.page-legacy-article .bs-company .bs-split-media,
  body.page-legacy-article .bs-dog .bs-split-media {
    align-self: center;
    padding-top: 0;
  }

  .bs-split-media {
    padding-top: 20px;
  }

  .bs-split-title {
    font-size: 35px;
    padding-top: 22px;
    padding-bottom: 16px;
  }

  .bs-split-body {
    font-size: 16px;
  }

  .bs-costs-list {
    font-size: 17px;
    font-weight: 500;
  }

  .bs-company-facts div,
  .bs-dog-facts div {
    font-size: 17px;
    font-weight: 500;
  }
}

/* --- Related Stories（背景 full-bleed / 見出しはコンテンツカラム型） --- */

body.page-legacy-article main .bs-curious {
  padding-top: 70px;
  padding-bottom: 130px;
}

body.page-legacy-article .bs-curious-inner,
body.page-legacy-article .bs-curious-grid,
body.page-legacy-article .bs-curious-intro {
  background-color: transparent;
}

.bs-curious-inner {
  margin-inline: auto;
  max-width: 100%;
  padding: clamp(36px, 4.5vw, 52px) 0 0;
  box-sizing: border-box;
}

.bs-curious-intro {
  margin: 0 auto clamp(38px, 4.2vw, 45px);
  padding: 0;
  max-width: min(100%, 52em);
  text-align: center;
  border: none;
  box-shadow: none;
}

.bs-curious-intro::before,
.bs-curious-intro::after,
.bs-curious-grid::before,
.bs-curious-grid::after {
  content: none;
  display: none;
  border: none;
  background: none;
}

.bs-curious-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.bs-curious-heading-en {
  margin: 0;
  font-family: "Noto Serif JP", var(--bs-font-yumin);
  font-size: clamp(21px, calc(1.92vw + 12.8px), 32px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: #2e2a26;
}

.bs-curious-heading-ja {
  margin: 11px 0 0;
  font-family: var(--bs-font-mincho);
  font-size: clamp(11.9px, calc(0.342vw + 10.7px), 13.9px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: rgba(46, 42, 38, 0.72);
}

.bs-curious-card {
  margin: 0;
  min-width: 0;
}

.bs-curious-card-link {
  position: relative;
  display: block;
  aspect-ratio: 600 / 800;
  overflow: hidden;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  border: none;
  box-shadow: none;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  isolation: isolate;
}

.bs-curious-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 48%,
    rgba(8, 6, 5, 0.02) 58%,
    rgba(8, 6, 5, 0.06) 68%,
    rgba(6, 5, 4, 0.12) 76%,
    rgba(6, 5, 4, 0.22) 84%,
    rgba(4, 3, 2, 0.36) 91%,
    rgba(2, 2, 1, 0.52) 100%
  );
}

.bs-curious-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 10, 8, 0.12);
}

.bs-curious-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.bs-curious-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 36%;
  filter: contrast(1.02) saturate(0.9) brightness(0.94);
  transition: transform 0.65s ease, filter 0.5s ease;
}

body.page-legacy-article .bs-curious-card-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: none;
}

.bs-curious-card-media img[src*="05-993"] {
  object-position: center 32%;
}

.bs-curious-card-media img[src*="05-994"] {
  object-position: center 44%;
}

.bs-curious-card-media img[src*="05-995"] {
  object-position: center 28%;
}

.bs-curious-card-link:hover .bs-curious-card-media img {
  transform: scale(1.03);
  filter: contrast(1.03) saturate(0.92) brightness(0.97);
}

.bs-curious-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 0.9vw, 12px);
  padding: clamp(20px, 2.2vw, 28px) clamp(18px, 2vw, 24px) clamp(22px, 2.4vw, 30px);
  box-sizing: border-box;
  pointer-events: none;
}

.bs-curious-card-heading {
  margin: 0;
  font-family: "Noto Serif JP", var(--bs-font-yumin);
  font-size: clamp(16px, 0.55vw + 13px, 20px);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  color: rgba(255, 252, 248, 0.98);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.bs-curious-card-desc {
  margin: 0;
  font-family: var(--bs-font-mincho);
  font-size: clamp(12px, 0.35vw + 10px, 14px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.05em;
  color: rgba(255, 250, 246, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.bs-curious-card-cta {
  display: inline-block;
  margin-top: clamp(4px, 0.5vw, 8px);
  padding: clamp(7px, 0.7vw, 9px) clamp(14px, 1.4vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1px;
  font-family: var(--bs-font-mincho);
  font-size: clamp(11px, 0.32vw + 9px, 12px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: rgba(255, 252, 248, 0.94);
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.bs-curious-card-link:hover .bs-curious-card-cta {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
}

@media screen and (min-width: 1024px) {
  .bs-curious-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
  body.page-legacy-article .bs-curious-inner {
    max-width: min(100%, calc(var(--bs-section-max-lg) + 30px));
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  body.page-legacy-article .bs-curious-inner {
    max-width: min(100%, calc(var(--bs-section-max-xl) + 30px));
  }
}

@media screen and (min-width: 1400px) {
  body.page-legacy-article .bs-curious-inner {
    max-width: min(100%, calc(var(--bs-section-max-xxl) + 30px));
  }
}

/* --- 記事末尾余白 --- */

.bs-article {
  padding-bottom: 100px;
}

@media screen and (min-width: 1024px) {
  .bs-article {
    padding-bottom: 200px;
  }
}

/* --- Header / Footer（style-new.css 連携） --- */

body.page-legacy-article.page-article .header {
  background-color: var(--bs-page-bg);
  border-bottom: 1px solid rgba(12, 10, 8, 0.08);
}

/*
  フッター全幅:
  HOME と同じく viewport 基準の全幅意図を保つ。
  width:100% + 左右 box-shadow で scrollWidth を増やさず描画を伸ばす。
*/
body.page-legacy-article.page-article .site-footer.home-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
  background-color: #111111;
  box-shadow:
    -100vw 0 0 0 #111111,
    100vw 0 0 0 #111111;
}
