@charset "utf-8";
* {
   margin: 0;
   padding: 0;
   list-style: none;
   scroll-behavior: smooth;
 }
 
 /* body */
 body {
   font-family: serif;
   background-color: #F0F0F0;
 }
 
/* バナーページ */
.title {
   text-align: center;
   font-size: 24px;
   margin: 200px 0 24px 0;
   font-weight: 400;
   color: #707070;
}

 
 h2 {
   text-align: center;
   margin-bottom: 40px;
 }
 
 .grid {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr;
   gap: 16px;
   max-width: 1080px;
   margin: auto;
   padding-bottom: 80px;
   background-color: white;
 }
 
 .item {
   text-align: center;
 margin: 16px;
 }
 
 .item-title {
   font-size: 1.2rem;
   margin-bottom: 10px;
   color: #454545;
 }
 
 .item img {
   max-width: 80%;
   height: auto;
   border: 1px solid #454545;
 }
 

/* TOPに戻るリンク */
.back-btn {
   display: block;
   width: 100px;
   text-decoration: none;
   font-size: 14px;
   margin: auto ;
   color: #454545;
   text-align: center;
   border-bottom: 1px solid #45454559;
position: relative;
top: 24px;
}

.back-btn:hover {
   color:#4545454b;
   transition: .5s;
}

/* ------------------------------ */
/* モーダルの背景 */
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* モーダルに表示する画像 */
.img-modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  margin-top: 60px;
  animation: fadeIn 0.3s ease;
}

/* バツボタン */
.img-modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.img-modal-close:hover {
  color: #ccc;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
