@charset "UTF-8";

/* ========================================================================== */
/* SUB_PAGE_HEADER */
/* ========================================================================== */
.sub_page_header { background-image: url("../images/works/sub_header_bg.jpg"); }


/* ========================================================================== */
/* LINEUP_INNER */
/* ========================================================================== */
.lineup_inner {
   max-width: 1340px;
   width: calc(100% - 80px);
   margin: 0 auto;
}


/* ========================================================================== */
/* LINEUP_FLEX */
/* ========================================================================== */
.lineup_flex {
   display: flex;
   align-items: flex-end;
   gap: 60px;
   margin-bottom: 50px;
}

.lineup_flex .lead {
   font-size: 16px;
   line-height: 2.1;
}


/* ========================================================================== */
/* PICS (画像3列グリッドエリア) */
/* ========================================================================== */
.pics {
   display: flex;
   align-content: space-between;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 49px; /* 画像同士の隙間を30pxにする */
}

.pics figure {
   margin: 0;
   flex: 0 0 calc((100% - 49px * 2) / 3);
   box-sizing: border-box;
}

.pics figure img {
   display: block;
   width: 100%;
   height: auto;
   aspect-ratio: 1 / 1;
   object-fit: cover;
}

.pics figcaption {
   margin-top: 10px;
   font-size: 15px;
   line-height: 1.4;
}



/* ========================================================================== */
/* RESPONSIVE (レスポンシブ対応) */
/* ========================================================================== */

/* -------------------------------------------------------------
   【タブレットサイズ（1024px以下）】
   ------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   .lineup_inner {
      width: 100%;
      padding: 0 20px;
   }

   /* ★【追加】見出しと紹介文が窮屈になるため、タブレット以下では縦並びに切り替える */
   .lineup_flex {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
      margin-bottom: 40px;
   }

   .lineup_flex .lead br {
      display: none; /* タブレットの幅で不自然な改行になるのを防ぐ */
   }

   /* タブレットは少し狭いので「2列並び」に変更 */
   .pics {
      gap: 30px; /* ★【調整】49pxは広すぎるため、タブレット向けに30pxに調整 */
      /* space-betweenによる端のポッカリ空きを防ぐため、安全な左詰めにリセット */
      justify-content: flex-start; 
   }
   
   .pics figure {
      /* ★【最重要】タブレット用の隙間（30px * 1箇所分）で再計算して上書き */
      flex: 0 0 calc((100% - 30px * 1) / 2) !important;
   }
}

/* -------------------------------------------------------------
   【スマートフォンサイズ（768px以下）】
   ------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   .lineup_inner {
      padding: 0 15px;
   }

   .lineup_flex {
      margin-bottom: 30px;
   }

   .section_title {
      display: block; /* inline-blockを解除して横いっぱいに広げる */
      width: 100%;
   }
   .section_title .en {
      display: block; /* 100%幅で線を端まで伸ばす */
      width: 100%;
      box-sizing: border-box;
   }

   .lineup_flex .lead {
      font-size: 14px;
      line-height: 1.6;
   }

   /* スマホは画面いっぱいの「1列並び」に変更 */
   .pics {
      gap: 25px; /* 縦に並んだときのアイテム同士の隙間 */
   }

   .pics figure {
      /* ★【最重要】スマホは横幅100%いっぱいに広げる指定を完全に上書き */
      flex: 0 0 100% !important;
   }
   
   .pics figcaption {
      font-size: 14px;
   }
}
