.ourWorkBlock section {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 15px;
}

.ourWorkItemBox {
    min-width: 0;
    width: 100%;
}

.thumb-swiper .swiper-slide img+.noimg{
    display: none;
}

/* モーダル表示時にbodyに付与するスクロール防止クラス */
body.is-modal-open {
  overflow: hidden !important;
}

.is-modal-open .wrapper01, .is-modal-open .inner {
    position: static;
}

/* ページャーカラム調整 */
.ourWorkBlock>section .webgene-pagination:nth-last-child(1) {
    grid-area: auto/auto/auto/span 2;
    margin: 30px 0 0;
}

/* ==================================
   カテゴリ
================================== */

.ourWorkCateBox.firstBox {
    display: none;
}

.ourWorkCateBox.firstBox:first-child {
    display: inline-block;
}

.ourWorkCateBox {
    display: inline-block;
}

.ourWorkBtn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #83705B;
    font-weight: 500;
    transition: all .4s;
}

.ourWorkBtn:before {
    content: "";
    width: 30px;
    height: 1px;
    background-color: #83705B;
}

.ourWorkBtnBlockBox section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 30px;
}

.ourWorkBtn.active,.ourWorkBtn:hover {
    color: #9a7725;
}

.ourWorkBtn.active:before,.ourWorkBtn:before:hover {
    background-color: #9a7725;
}

/* ==================================
   モーダルスクロールバーのカスタマイズ
================================== */

/* 1. Chrome / Safari / Edge (WebKit系) */
.modal-container::-webkit-scrollbar {
  width: 8px; /* スクロールバーの幅（細めに設定） */
}

.modal-container::-webkit-scrollbar-track {
  background: #f1f1f1; /* バーの背景（レール部分） */
  border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: #ccc; /* スクロールつまみの色 */
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: #4B433A; /* ホバー時のつまみの色 */
}

/* ----------------------------------
   サムネイル・カード全体
---------------------------------- */

.post-list {
    border: 8px solid #ccc;
}

.post-thumb:hover img {
    transform: scale(1.1);
    transition: all .4s;
}

.post-thumb img {
    transition: all .4s;
}

.post-thumb .swiper-slide {
    position: relative;
    padding-top: 131.52%;
}

.post-thumb .swiper-slide>img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.post-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.post-thumb {
  cursor: pointer;
  overflow: hidden;
}

.thumb-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ----------------------------------
   モーダル背景（オーバーレイ）
---------------------------------- */

/* モーダルオーバーレイ（最前面に配置） */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999999 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ----------------------------------
   モーダル容器（カード本体）
---------------------------------- */
.modal-container {
  position: relative;
  background-color: #ffffff;
  width: 100%;
  max-width: 420px; /* 画像の比率に合わせた幅調整 */
  max-height: 90vh;
  overflow-y: auto; /* コンテンツが溢れた場合にスクロール */
  padding: 20px;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  z-index: 10;
}

/* ----------------------------------
   Swiperスライダー領域
---------------------------------- */
.modal-swiper {
  width: 100%;
  margin-bottom: 16px;
  position: relative;
}

.modal-swiper .swiper-slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 131.52%;
}

.modal-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
   /* 縦長画像でも画面内に収まる上限設定 */
  max-height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

/* インジケーター（ドット）の位置とカラー調整 */
.modal-swiper .swiper-pagination {
  position: static; /* 画像下に配置 */
  margin-top: 12px;
  text-align: left; /* 画像左下の配置に寄せる場合 */
}

.modal-swiper .swiper-pagination-bullet {
  background: #bbb;
  opacity: 1;
}

.modal-swiper .swiper-pagination-bullet-active {
  background: #3C352C;
}

/* ----------------------------------
   非表示時
---------------------------------- */

/* モーダル用Swiper（矢印なし・ドットのみ） */
.modal-swiper .swiper-pagination {
  position: static;
  margin-top: 12px;
  text-align: left;
}

/* 登録画像が0枚の時のモーダル余白自動調整 */
.modal-swiper:has(.swiper-wrapper:empty) {
  display: none;
}

/* ----------------------------------
   テキストエリア（タイトル・本文）
---------------------------------- */
.modal-body {
  padding: 0 !important;
}

.modal-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc; /* タイトル下の薄い下線 */
  line-height: 1.4;
}

.modal-text {
  line-height: 1.5em;
  margin: 0;
  white-space: pre-wrap; /* 改行コードを有効化 */
  font-size: 16px;
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:375px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 375px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:414px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 414px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:544px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 544px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:768px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

.ourWorkBlock section {
    grid-template-columns: repeat(3, 1fr);
}

.ourWorkBlock>section .webgene-pagination:nth-last-child(1) {
    grid-area: auto/auto/auto/span 3;
}

.ourWorkBtn {
    font-size: 18px;
}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 768px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:992px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 992px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:1024px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

.ourWorkBlock section {
    grid-template-columns: repeat(4, 1fr);
}

.ourWorkBlock>section .webgene-pagination:nth-last-child(1) {
    grid-area: auto/auto/auto/span 4;
}
  
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 1024px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */