/* 静的版で足した分だけ（見た目の本体は SWELL の CSS をそのまま同梱している）。 */

/* トップのスライダー: Swiper の JS を入れないので、横スクロール（スナップ）で代える。
   幅・余白は SWELL の値（--swl-post_slide_width--pc 33% / --sp 50%、--ps_space）をそのまま使う */
.p-postSlider .swiper-wrapper { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.p-postSlider .swiper-wrapper::-webkit-scrollbar { display: none; }
.p-postSlider .swiper-slide { flex-shrink: 0; scroll-snap-align: start; }

/* スマホの記事一覧: WP は UA でスマホを見分けて「サムネイル型（-type-thumb）」の HTML を返していた。
   静的版は1種類の HTML なので、画面幅 959px 以下でカード型をサムネイル型の見た目にする（SWELL の -type-thumb の規則を写した） */
@media not all and (min-width: 960px) {
  .p-postList.-type-card.-sp-thumb .p-postList__item { margin-bottom: 1em; padding: 0 .5em; }
  .p-postList.-type-card.-sp-thumb .p-postList__thumb { box-shadow: none; width: 100%; }
  .p-postList.-type-card.-sp-thumb .c-postThumb__figure:before { padding-top: var(--thumb_posts_thumb_ratio); }
  .p-postList.-type-card.-sp-thumb .p-postList__link { position: relative; }
  .p-postList.-type-card.-sp-thumb .p-postList__body { background: rgba(0,0,0,.5); bottom: 0; color: #fff; left: 0; padding: .75em; position: absolute; width: 100%; }
  .p-postList.-type-card.-sp-thumb .p-postList__excerpt { display: none; }
  .p-postList.-type-card.-sp-thumb .p-postList__meta { margin-top: 0; }
  .p-postList.-type-card.-sp-thumb .p-postList__title { font-size: 14px; }
}

/* 目次から飛んだとき、固定ヘッダに見出しが隠れないように */
.post_content [id^="index_id"] { scroll-margin-top: 80px; }

/* 問い合わせフォームの置き場（置き換え先が決まるまで） */
.u-contact-pending { border: 2px dashed #c00; padding: 1.5em; text-align: center; }
