.gallery-title {
  text-align: center;
  font-size: 2.5em;
  margin: 20px 0;
}

.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px; /* 隙間を狭く */
}

.photo-container {
  text-align: center;
  flex: 1 1 45%;
}

.photo-container img {
  width: 300px; /* 固定幅に設定 */
  height: 200px; /* 固定高さに設定 */
  object-fit: cover; /* アスペクト比を保ちながら枠に収める */
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* リンクボタン */
.link_btn a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 225px;
  padding: 10px 0px 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.link_btn a:before, .link_btn a:after {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
}

.link_btn a:before {
  width: 0.5rem;
  height: 0.5rem;
  left: 1.1rem;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s;
}

.link_btn a:after {
  left: 0;
  background: rgb(66, 172, 112);
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 4rem;
  transform: translateY(-50%);
  transition: all 0.5s;
}

.link_btn a span {
  position: relative;
  transition: all 0.3s;
  z-index: 3;
}

.link_btn a:hover span {
  color: #fff;
}

.link_btn a:hover:before {
  left: 2rem;
}

.link_btn a:hover:after {
  right: 0;
  width: 100%;
}