body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  color: #333;
}

.dela-gothic-one-regular {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 35px;
}

.dela-gothic-one-regular a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  padding: 10px 0;
}

.Century-Gothic{
  font-family: "Century Gothic";
}

header {
  display: flex;
  justify-content: left;
  padding: 3px 30px;
  background: #fff;
  border-bottom: 2px solid #ccc;
}

header h1 {
  margin-top: 10px;
  margin-bottom: 10px;
}

h2 {
  margin: auto;
  text-align: center;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 30px;
  
}


main {
  padding: 20px;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← ここが重要！ */
  gap: 100px;
  padding: 40px;
}

.works-item {
  text-align: center;
}

.works-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.works-item img:hover {
  transform: scale(1.05);
}

.works-item h2 {
  margin: 5px 5px 5px;
  font-size: 20px;
}

.works-item p {
  margin: 0;
  font-size: 15px;
  color: #666;
}


/* モーダルの背景 */
.modal {
  display: none; /* 最初は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* 背景に影をつける */
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* モーダルの中身 */
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  text-align: center;
  position: relative;
}

/* 閉じるボタン */
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* 表示される画像 */
#modal-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* 説明文 */
#modal-description {
  font-size: 1rem;
  color: #333;
}

