@charset "UTF-8";
.declaration{
    display: grid;
	gap: 30px;
  grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    margin-top: 20px;
}

.declaration div{
    margin-bottom: 30px;
}

/* モーダル */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  position: relative;
  max-width: 80vw;
  max-height: 85vh;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin: 20px; /* ×ボタン分の余白を確保 */
  max-width: 1280px;
  height: fit-content;
}
.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;      /* 追加：引き伸ばし防止 */
  height: auto;     /* 追加：アスペクト比維持 */
  display: block;
  margin: 0 auto;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* 既存の画像にポインタ追加 */
.declaration img {
  cursor: pointer;
}

.tokyo_dec{
  grid-template-columns:repeat(2, 1fr);
}

@media screen and (max-width: 768px){
.declaration{
    display: grid;
	gap: 20px;
	grid-template-columns: auto auto ;
    justify-content: center;
}
.declaration div{
    margin-bottom: 2vw;
}
.tokyo_dec{
  grid-template-columns:repeat(1, 1fr);
}
}