/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 17 2026 | 07:39:35 */

/* ==========================================
   CLUBカテゴリー専用デザイン
   カテゴリースラッグ：club

   ・記事デザイン
   ・ギャラリー1〜5枚
   ・PC / スマホ対応
   ・サイドバーへの影響を防止
========================================== */


/* ==========================================
   01. 記事タイトル
========================================== */

/* メイン記事のタイトルだけに適用 */
body.single-post:has(article.category-club)
article.category-club > .entry-header .entry-title,

body.single-post:has(article.category-club)
.mainSection .page-header .page-header_title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;

  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* ==========================================
   02. 投稿日・カテゴリー
========================================== */

body.single-post:has(article.category-club)
article.category-club .entry-meta {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;

  font-size: 0.8rem;
  color: #777;
  letter-spacing: 0.08em;
}


/* ==========================================
   03. 記事本文
========================================== */

body.single-post:has(article.category-club)
article.category-club .entry-body {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

body.single-post:has(article.category-club)
article.category-club .entry-body p {
  margin-bottom: 2em;

  font-size: 1rem;
  line-height: 2;
}


/* ==========================================
   04. H2見出し
========================================== */

body.single-post:has(article.category-club)
article.category-club .entry-body h2 {
  margin-top: 70px;
  margin-bottom: 30px;
  padding-bottom: 15px;

  border-bottom: 1px solid #ddd;

  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.5;
  font-weight: 600;
}


/* ==========================================
   05. アイキャッチ
========================================== */

body.single-post:has(article.category-club)
article.category-club .post-thumbnail {
  max-width: 1100px;
  margin: 40px auto 70px;
}

body.single-post:has(article.category-club)
article.category-club .post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}


/* ==========================================
   06. ギャラリー共通設定
========================================== */

/* ギャラリー全体 */
body.single-post:has(article.category-club)
.wp-block-gallery {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;

  gap: 5px !important;

  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;

  margin: 35px 0 45px !important;
  padding: 0 !important;

  position: static !important;
  left: auto !important;
  transform: none !important;

  align-items: stretch !important;
  box-sizing: border-box;
}


/* ==========================================
   07. 写真の基本設定
========================================== */

body.single-post:has(article.category-club)
.wp-block-gallery > figure.wp-block-image {
  grid-column: auto / span 1 !important;
  grid-row: auto / span 1 !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  height: auto !important;

  aspect-ratio: 4 / 3;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  border-radius: 3px;
  box-sizing: border-box;
}


/* ==========================================
   08. 写真本体
========================================== */

body.single-post:has(article.category-club)
.wp-block-gallery > figure.wp-block-image img {
  display: block !important;

  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  object-fit: cover !important;
  object-position: center;

  transition: transform 0.35s ease;
}


/* ==========================================
   09. 画像リンク
========================================== */

body.single-post:has(article.category-club)
.wp-block-gallery > figure.wp-block-image > a {
  display: block !important;

  width: 100% !important;
  height: 100% !important;
}


/* ==========================================
   10. ホバーエフェクト
========================================== */

@media (hover: hover) {

  body.single-post:has(article.category-club)
  .wp-block-gallery > figure.wp-block-image:hover img {
    transform: scale(1.025);
  }

}


/* ==========================================
   11. 写真1枚
   横幅いっぱい
========================================== */

body.single-post:has(article.category-club)
.wp-block-gallery:has(> figure.wp-block-image:only-child)
> figure.wp-block-image {
  grid-column: 1 / -1 !important;

  aspect-ratio: 16 / 9;
}


/* ==========================================
   12. 写真2枚
   左右2列
========================================== */

body.single-post:has(article.category-club)
.wp-block-gallery:has(
  > figure.wp-block-image:nth-child(2):last-child
)
> figure.wp-block-image {
  grid-column: auto / span 1 !important;

  aspect-ratio: 4 / 3;
}


/* ==========================================
   13. 写真3枚
   上段1枚・下段2枚
========================================== */

/* 1枚目 */
body.single-post:has(article.category-club)
.wp-block-gallery:has(
  > figure.wp-block-image:nth-child(3):last-child
)
> figure.wp-block-image:nth-child(1) {
  grid-column: 1 / -1 !important;

  aspect-ratio: 16 / 9;
}

/* 2・3枚目 */
body.single-post:has(article.category-club)
.wp-block-gallery:has(
  > figure.wp-block-image:nth-child(3):last-child
)
> figure.wp-block-image:nth-child(2),

body.single-post:has(article.category-club)
.wp-block-gallery:has(
  > figure.wp-block-image:nth-child(3):last-child
)
> figure.wp-block-image:nth-child(3) {
  grid-column: auto / span 1 !important;

  aspect-ratio: 4 / 3;
}


/* ==========================================
   14. 写真4枚
   2列 × 2段
========================================== */

body.single-post:has(article.category-club)
.wp-block-gallery:has(
  > figure.wp-block-image:nth-child(4):last-child
)
> figure.wp-block-image {
  grid-column: auto / span 1 !important;

  aspect-ratio: 4 / 3;
}


/* ==========================================
   15. 写真5枚
   上段1枚・下段2枚 × 2段
========================================== */

/* 1枚目 */
body.single-post:has(article.category-club)
.wp-block-gallery:has(
  > figure.wp-block-image:nth-child(5):last-child
)
> figure.wp-block-image:nth-child(1) {
  grid-column: 1 / -1 !important;

  aspect-ratio: 16 / 9;
}

/* 2〜5枚目 */
body.single-post:has(article.category-club)
.wp-block-gallery:has(
  > figure.wp-block-image:nth-child(5):last-child
)
> figure.wp-block-image:nth-child(n+2) {
  grid-column: auto / span 1 !important;

  aspect-ratio: 4 / 3;
}


/* ==========================================
   16. スマートフォン
========================================== */

@media screen and (max-width: 767px) {

  /* ----------------------------------------
     記事タイトル
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  article.category-club > .entry-header .entry-title,

  body.single-post:has(article.category-club)
  .mainSection .page-header .page-header_title {
    font-size: 2rem;
    line-height: 1.45;
  }


  /* ----------------------------------------
     本文
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  article.category-club .entry-body p {
    line-height: 1.9;
  }


  /* ----------------------------------------
     H2見出し
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  article.category-club .entry-body h2 {
    margin-top: 50px;
    margin-bottom: 25px;

    font-size: 1.5rem;
  }


  /* ----------------------------------------
     ギャラリー全体
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  .wp-block-gallery {
    display: grid !important;

    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;

    gap: 3px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 25px 0 35px !important;
  }


  /* ----------------------------------------
     写真の基本設定
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  .wp-block-gallery > figure.wp-block-image {
    grid-column: auto / span 1 !important;
    grid-row: auto / span 1 !important;

    aspect-ratio: 1 / 1;

    border-radius: 2px;
  }


  /* ----------------------------------------
     写真1枚
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  .wp-block-gallery:has(
    > figure.wp-block-image:only-child
  )
  > figure.wp-block-image {
    grid-column: 1 / -1 !important;

    aspect-ratio: 4 / 3;
  }


  /* ----------------------------------------
     写真2枚
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  .wp-block-gallery:has(
    > figure.wp-block-image:nth-child(2):last-child
  )
  > figure.wp-block-image {
    grid-column: auto / span 1 !important;

    aspect-ratio: 1 / 1;
  }


  /* ----------------------------------------
     写真3枚
     1枚目を横幅いっぱい
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  .wp-block-gallery:has(
    > figure.wp-block-image:nth-child(3):last-child
  )
  > figure.wp-block-image:nth-child(1) {
    grid-column: 1 / -1 !important;

    aspect-ratio: 16 / 10;
  }


  /* ----------------------------------------
     写真4枚
     2列 × 2段
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  .wp-block-gallery:has(
    > figure.wp-block-image:nth-child(4):last-child
  )
  > figure.wp-block-image {
    grid-column: auto / span 1 !important;

    aspect-ratio: 1 / 1;
  }


  /* ----------------------------------------
     写真5枚
     1枚目を横幅いっぱい
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  .wp-block-gallery:has(
    > figure.wp-block-image:nth-child(5):last-child
  )
  > figure.wp-block-image:nth-child(1) {
    grid-column: 1 / -1 !important;

    aspect-ratio: 16 / 10;
  }


  /* ----------------------------------------
     画像表示
  ---------------------------------------- */

  body.single-post:has(article.category-club)
  .wp-block-gallery > figure.wp-block-image img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
  }

}
