@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
  }
  
  img {
    width: 40%;
    height: auto;
    vertical-align: bottom;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: rgb(135, 42, 140);
    height: 100%;
    background-color: rgb(235, 235, 235)
  }
  
  #wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
  }
  
  /* header */
  
  header {
    position: relative;
  }
  
  header h1 {
    font-size: 2rem;
    text-align: center;
    padding: 1rem;
  }
  
  #navBtn {
    display: none;
  }
  
  .open {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    z-index: 100;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(187, 149, 149);
    border-radius: 2px;
  }
  
  /*humburger button*/
  
  .open::before,
  .open::after {
    content: "";
  }
  
  .open span,
  .open::before,
  .open::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 30%;
    width: 40%;
    border-bottom: 2px solid rgb(255, 193, 229);
    transition: transform .5s;
  }
  
  .open::before {
    transform: translateY(-8px);
  }
  
  .open::after {
    transform: translateY(8px);
  }
  
  /*close button*/
  #navBtn:checked + .open {
    background: rgb(255, 235, 235);
  }
  
  #navBtn:checked + .open span {
    transform: scaleX(0);
  }
  
  #navBtn:checked + .open::before {
    transform: rotate(45deg);
  }
  
  #navBtn:checked + .open::after {
    transform: rotate(-45deg);
  }
  
  nav {
      /* display: none; */
      height: 100vh;
    width: 300px;
    position: absolute;
    top: 0;
    right: -300px;
    z-index: 50;
    background-color: rgba(17, 17, 17, 0.5);
    transition: transform .5s;
  }
  
  #navBtn:checked ~ nav {
    display: block;
    transform: translateX(-300px);
  
  }
  
  nav ul {
    list-style: none;
    padding-bottom: 1rem;
    text-align: center;
  }
  
  nav ul li {
    /* display: inline-block;*/
    margin: 0 10px;
    padding: 10px ;
  }

  nav ul li.current{
    border: 2px solid rgb(135, 42, 140);
    }

  
  nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: rgb(135, 42, 140);
  }
  
  /* main contents */
  main {
    padding: 5em;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
    width: 100%;
    text-align: center
    
  }
  mg {
    width: 100%;
    height: auto;
  }
  .subject{
    padding: 3rem;
    text-align:center
  }
 .container img{
  text-align: center;
 }
  
  /*.sec01 {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 1;
    grid-column-end: 2;
  }
  
  .sec02 {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 2;
    grid-column-end: 3;
  }
  
  .sec03 {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 1;
    grid-column-end: 3;
  }*/
  
  
  
  /* 
  .column-img {
    flex: 1;
  }
  
  .column-text {
    flex: 2;
  }
   */
  
  /* footer */
  footer {
    background: rgb(135, 42, 140);
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: 100%;
  }
  
  /*タブレット用*/
  @media all and (min-width: 600px) {
    .container {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  /*コンピュータ用*/
  @media all and (min-width: 1025px) {
    
    header h1 {
      font-size: 4rem;
    }
  
    nav {
      display: block;
      height: auto;
      width: 100%;
      position: static;
      background-color: transparent;
    }
    
    nav ul li {
      display: inline-block;
    }
    #navBtn,
    .open {
      display: none;
    }
  
   
  
    
  
    .container {
      grid-template-columns: 1fr 1fr 1fr;
    }
  }
  
  .photo-box {
  position: relative;
  display: inline-block;
  margin: 10px;
}

.photo-box img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: "源ノ明朝", serif;
  font-size: 0.8rem;
  padding: 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-box:hover .caption {
  opacity: 1;
}

.photo-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.photo-box {
  width: 45%; /* または max-width: 300px; にするといい感じ */
}

@media screen and (max-width: 600px) {
  .photo-box {
    width: 100%;
  }
}
