/* ===== reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Yu Gothic", "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ",
    sans-serif;
  color: #fff;
  background: url("../images/image2.jpeg") no-repeat center center fixed;
  background-size: cover;
  overflow-y: hidden; /* ページ全体のスクロールは非表示 */
}

/* hr */
hr {
  border: none;
  border-top: 1px solid #444;
  margin: 0;
}

/* ===== header ===== */
header.site-header {
  background-color: #000;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #444;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

header h1 {
  margin: 0;
  font-size: 24px;
  color: #fff;
}

.sub-description {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

/* ===== ナビリンク ===== */
.header-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  row-gap: 4px;
  column-gap: 40px;
  justify-content: start;
  list-style: none;
}

.header-links li {
  position: relative;
}

.header-links a {
  display: block;
  line-height: 1;
  padding-left: 1em;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header-links li.active a::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #fff;
}

/* ===== main container ===== */
.container {
  max-width: 900px;
  height: 80vh; /* 高さは画面の80% */
  margin: 40px auto;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow-y: auto; /* 縦スクロール可能 */
}

/* ===== category ===== */
.category {
  margin-bottom: 30px;
}

.category h2 {
  margin-bottom: 10px;
  border-bottom: 1px solid #fff;
  display: inline-block;
}

.images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.images img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.images img:hover {
  transform: scale(1.05);
}

/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px; /* ヘッダー分の余白 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 40px;
  right: 60px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}
/* ===== responsive ===== */
@media screen and (max-width: 768px) {
  .images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 16px;
  }

  .images img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* 正方形を維持 */
  }

  .container {
    padding: 20px;
    height: auto;
  }

  body {
    overflow-y: auto; /* スマホでは全体スクロール許可 */
  }
}
