/* =========================================
   「地域雇用と新鮮な農作物」4枚写真だけを修正
   ========================================= */

/* 4枚写真を囲っている columns */
.wp-block-columns.none.has-background {
    align-items: flex-start !important;
  }
  
  /* 左右55pxの余白カラムはそのまま、中央だけ広く使う */
  .wp-block-columns.none.has-background > .wp-block-column[style*="flex-basis:55px"] {
    flex: 0 0 55px !important;
    max-width: 55px !important;
  }
  
  .wp-block-columns.none.has-background > .wp-block-column.has-background {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
  
  /* ギャラリー本体を4列固定で広げる */
  .wp-block-gallery.wp-block-gallery-1 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  /* 各画像枠 */
  .wp-block-gallery.wp-block-gallery-1 > .wp-block-image {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-width: 0 !important;
  }
  
  /* 画像サイズを揃える */
  .wp-block-gallery.wp-block-gallery-1 > .wp-block-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 8px;
  }
  
  /* ギャラリーの下の本文幅も少し整える */
  .wp-block-columns.mt-30.has-background > .wp-block-column[style*="flex-basis:100px"] {
    flex: 0 0 100px !important;
    max-width: 100px !important;
  }
  
  .wp-block-columns.mt-30.has-background > .wp-block-column:not([style*="flex-basis:100px"]) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  
  /* タブレット */
  @media (max-width: 1024px) {
    .wp-block-gallery.wp-block-gallery-1 {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }
  
  /* スマホ */
  @media (max-width: 767px) {
    .wp-block-columns.none.has-background {
      display: block !important;
    }
  
    .wp-block-columns.none.has-background > .wp-block-column[style*="flex-basis:55px"] {
      display: none !important;
    }
  
    .wp-block-gallery.wp-block-gallery-1 {
      grid-template-columns: 1fr !important;
    }
  
    .wp-block-columns.mt-30.has-background {
      display: block !important;
    }
  
    .wp-block-columns.mt-30.has-background > .wp-block-column[style*="flex-basis:100px"] {
      display: none !important;
    }
  }

/* =========================================
top cover 設定
========================================= */
.wp-block-cover.top-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.wp-block-columns.video-block {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
}
.wp-block-video video {
    aspect-ratio: 480 / 848;
    max-width: 100%;
    height: 100%;
}

/* =========================================
footer copyright 設定
========================================= */
.wp-block-cover.footer {
    position: relative;
}
.footer .copyright {
    position: absolute;
    bottom: 1rem;
    left: 0;
    text-align: center;
    width: 100%;
}

@media(max-width: 600px){
    h2 {
        padding: 3rem 15px 1rem;
        width: 100%;
    }
    #content .lab-content-area .wp-block-columns {
        display: block;
    }
    .wp-block-column {
        padding: 30px;
    }
    .wp-block-columns.video-block {
        position: static;
    }

}