@charset "utf-8";
/* CSS Document */
body {
  font-family: "zen old Mincho", serif;
  background: #F4F2F2;
}
.header_d {
  background-color: #000;}
  .header_d .more a{
    border: 1px solid #fff;
}
/* =====ボタン==== */
.blackbtn a {
  gap: 20px;
  padding: 10px 0px 0;
  border-bottom: 1px solid #707070;
}
.blackbtn .arrow_icon {
  width: 20px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transition: ease 0.3s;
  background-color: #000;
}
.blackbtn .arrow_icon i {
  font-size: 12px;
  color: #fff;
}
.blackbtn a:hover .arrow_icon {
  transform: translateX(2px);
}


.cate1 .gallery-header p, .cate1 .gallery-header h2 {
  color: #000;
}
.cate2 .blackbtn p {
  color: #fff;
}
.cate2 .blackbtn a {
  border-bottom: 1px solid #fff;
}
.cate2 .blackbtn .arrow_icon {
  width: 20px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transition: ease 0.3s;
  background-color: #fff;
}
.cate2 .blackbtn .arrow_icon i {
  font-size: 12px;
  color: #000;
}
.sun-gallery1 .gallery-header {
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
}

/* ===== ギャラリーグリッド ===== */
.sun-gallery1 .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
  grid-auto-flow: row dense;
  margin-bottom: 50px;
}

/* 各タイル */
.sun-gallery1 .gallery-grid .tile {
  grid-column: span 1;
  grid-row: span 1;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  box-sizing: border-box;
}

/* 🔸 aタグをタイル全体に広げる */
.sun-gallery1 .gallery-grid .tile a.lightbox-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
}

/* 画像設定 */
.sun-gallery1 .gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover演出（任意） */
.sun-gallery1 .gallery-grid .tile a:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 特定タイルを大きくするパターン */
.sun-gallery1 .gallery-grid .tile:nth-child(13n + 3),
.sun-gallery1 .gallery-grid .tile:nth-child(13n + 5),
.sun-gallery1 .gallery-grid .tile:nth-child(13n + 8),
.sun-gallery1 .gallery-grid .tile:nth-child(13n + 11) {
  grid-row: span 2;
}
.sun-gallery1 .gallery-grid .tile:nth-child(13n + 12) {
  grid-column: span 2;
  grid-row: span 2;
}
.cate1 {
  background-image: url("https://astral253.com/system_panel/uploads/images/bg_sun.jpg");
}
.cate2 {
  background-image: url("https://astral253.com/system_panel/uploads/images/bg_sun2.jpg");
}
/* ---------- IEのみ ---------- */
@media all and (-ms-high-contrast: none) {}
/* ---------- 1280px ~ ---------- */
@media screen and (max-width: 1280px) {}
/* ---------- 1080px ~ ---------- */
@media screen and (max-width: 1080px) {
      .sun-gallery1 .gallery-grid {
    grid-auto-rows: 180px;
    gap: 10px;
  }
}
/* ---------- 768px ~ ---------- */
@media screen and (max-width: 768px) {
      .sun-gallery1 .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 10px;
    margin-bottom: 40px;
  }
  /* 2列時に横2倍タイルは縦だけ拡大に寄せる（崩れ防止） */
  .sun-gallery1 .gallery-grid .tile:nth-child(13n + 12) {
    grid-column: span 2; /* 2列横いっぱい */
    grid-row: span 2;
  }
    
}
/* ---------- 576px ~ ---------- */
@media screen and (max-width: 576px) {}
/* ---------- 350px ~ ---------- */
@media screen and (max-width: 350px) {}