@charset "utf-8";

/* ========================================================
   ギャラリーページ（gallery.html）専用のデザイン
======================================================= */

/* パンくずリスト（ホーム > 作品紹介） */
#topicpath ol {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  font-size: 14px;
}

#topicpath li, #topicpath a {
  color: #888888;
  text-decoration: none;
}

#topicpath a:hover {
  color: #5e5043;
  text-decoration: underline;
}

/* ギャラリー全体（article）の表示エリアを広げて画像を大きくする */
article {
  max-width: 1100px; /* ★ここを広げることで、5個の画像が連動して一回り大きくなります */
  margin: 0 auto;    /* 画面の中央に寄せる */
  padding: 0 20px;   /* 画面端の余白 */
}

/* 作品の一覧エリア（高さのバランスを再調整） */
.pic_field {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 15px;                             
  margin-bottom: 20px;
}

/* 画像自体のサイズ調整 */
.pic_field figure img {
  width: 100%;
  height: 180px;       /* ★横幅が大きくなった分、高さも150pxから180pxに少し高くすると綺麗な比率になります */
  object-fit: cover;   
  border-radius: 4px;
  display: block;
}

/* 作品の一覧エリア（3列のグリッド配置） */
.pic_field {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 綺麗に3等分して横並び */
  gap: 20px;                             /* 画像同士のすき間 */
  margin-bottom: 20px;
}

/* 画像を囲う枠（カード風） */
.pic_field figure {
  margin: 0;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* ほんのり影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスを乗せたときに少し浮かび上がらせる */
.pic_field figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 画像自体のサイズ調整 */
.pic_field figure img {
  width: 100%;
  height: 200px;       /* 高さを揃えて整列 */
  object-fit: cover;   /* きれいに枠に収める */
  border-radius: 4px;
  display: block;
}

/* 作品の一覧エリア（1行に5列のグリッド配置にする） */
.pic_field {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* ★ここを 3 から 5 に変更しました */
  gap: 15px;                             /* 5個並び用にすき間を少しスマートに調整 */
  margin-bottom: 20px;
}

/* 画像自体のサイズ調整 */
.pic_field figure img {
  width: 100%;
  height: 150px;       /* ★5個並びだと横幅が狭くなるので、高さも150pxにして綺麗な四角にします */
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* --------------------------------------------------------
   ライトボックス（画像をクリックしたときに出る画面）
-------------------------------------------------------- */
.lightbox {
  display: none;
}

.lightbox:target {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 20px;
}

.lightbox img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  border: 4px solid #ffffff;
  border-radius: 4px;
}

.lightbox-title {
  color: #ffffff;
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
  max-width: 80%;
}

.lightbox-close {
  color: #ffffff;
  text-decoration: none;
  background-color: #5e5043;
  padding: 10px 20px;
  border-radius: 20px;
  margin-top: 15px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.lightbox-close:hover {
  background-color: #7a6958;
}