body {
  display: grid;
    height: absolute;
    width: absolute;
    background-color: rgba(211, 211, 85, 0.726);
    margin: 2rem;
   /* overflow: hidden; */
   height: 100vm; 
  }
  

.containerhead {
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    text-align: center;
}

nav li {
    display: inline-block;
}

p {
  font-weight: 300;
  font-size: 1.5vw;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.1px;
}

h2 {
  font-size: 2vw;
}


section {
    display: flex;
    gap: 2rem 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article {
    flex: 1;
    border-radius: 1rem;
}

article img {
max-width: 100%;
padding: 1px;
border-radius: 2vw;
opacity: 90%;
}

article ul {
list-style: none;
font-size: 1.3vw;
}

article a::link {
font-size: clamp(1rem, 1.5vw + 0.5rem, 1rem);
color: rgba(177, 88, 0, 0.756);
}

article a::hover {
color: #495E57;
}

article a::active {
color: #EDEFEE;
background-color: #495E57
}

main article {
background-color: #fedeaf79;
padding-left: 1vw;
padding-right: 1vw;
box-shadow: 1px 1px 1px #5f746b4d;
font-family: 'Noto Sans JP', sans-serif;
}

/* Button Hover effect*/
.containerbtn {
  text-align: 0px right;
  margin-top: 10px;
  padding: 1px;
  margin: 15px;
 }

.btn li button{
  border: 1.5px solid #5F746B;
  border-radius: 5px;
  background: none;
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.4px;
  font-weight: bold;
  cursor: pointer;
  margin: 15px;
  transition: 0.8s;
  position: relative;
  overflow: hidden;
}

  .containerbtn li:nth-child(1) button, .containerbtn li:nth-child(2) button   {
    color: #5F746B;
  }

  .containerbtn li:nth-child(3) button,.containerbtn li:nth-child(4) button{
    color: #FFF7CA;
  }

  .containerbtn li:nth-child(1) button:hover,.containerbtn li:nth-child(2) button:hover{
    color: #FFF7CA;
  }
  .containerbtn li:nth-child(3) button:hover,.containerbtn li:nth-child(4) button:hover{
    color: #5F746B;
  }
  .btn li button::before{
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 0%;
    background: #5F746B;
    z-index: -1;
    transition: 0.8s;
  }

  .containerbtn li:nth-child(1) button::before,.containerbtn li:nth-child(3) button::before{
    top: 0;
    border-radius: 0 0 50% 50%;
  }

  .containerbtn li:nth-child(2) button::before,.containerbtn li:nth-child(4) button::before{
    bottom: 0;
    border-radius: 50% 50% 0 0;
  }

  .containerbtn li:nth-child(3) button::before,.containerbtn li:nth-child(4) button::before{
    height: 180%;
  }

  .containerbtn li:nth-child(1) button:hover::before,.containerbtn li:nth-child(2) button:hover::before{
    height: 180%;
  }

  .containerbtn li:nth-child(3) button:hover::before,.containerbtn li:nth-child(4) button:hover::before{
    height: 0%;
  }
  

  /*Promo Banner*/
  h1::first-letter {
    font-size: 4vw;
    font-weight: bold;
    color: rgb(0, 0, 0);
    border: solid thin;
    border-color: #5F746B;
    border-radius: 7%;
    background-color: rgba(255, 247, 202, 1);
    opacity: 80%;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 1px;
  }

  p::first-letter {
    font-size: 2vw;
    font-weight: bold;
    color: rgb(5, 5, 5);
    border: solid thin;
    border-color: black;
    border-radius: 7%;
    background-color: rgba(255, 247, 202, 1);
    padding: 0.5px;
    margin-bottom: 3px;
    opacity: 80%;
  }

#promo {
    background-image: url("../logo/8.png");
    background-size: cover;
    background-position: center;
    color: #161817;
    text-shadow: 0.7px .5px 1px rgba(255, 247, 202, .6);
    text-align: right;
    font-weight: bold;
    }

#promo h1 {
    margin-right: 1rem;
    font-weight: 600;
    font-size: 3vw;
    font-family: 'Noto Sans JP', sans-serif;
}

#promo p {
    max-width: 90%;
    margin-left: 19vh;
    margin-right: 2vh;
    font-size: 1.5vw;
    font-family: 'Noto Sans JP', sans-serif;
}

/* footer */
footer {
  display: flex;
  margin: 2vw;
  gap: 2vw 1vw;
}

footer p {
  font-size: 1.5vw;
  border-bottom: none;
  text-align: right;
  font-family: 'Noto Sans JP', sans-serif;
}

footer div {
  flex: 1;
}


/* Info Page */

#info {
  background-image: url("../logo/7.png");
  background-size: cover;
  background-position: center;
  color: #121312;
  text-shadow: 0.5px .5px 1px rgb(177, 177, 177);
  text-align: right;
  }

#info h1 {
  margin-right: 1rem;
  font-weight: 400;
  font-size: 2vw;
  font-family: 'Noto Sans JP', sans-serif;
}

  /* Portfolio Page */

  .image-grid {
    --gap: 16px;
    --num-cols: 3;
    --row-height: 400px;

    box-sizing: border-box;
    padding: var(--gap);

    display: grid;
    grid-template-columns: repeat(var(--num-cols), 1fr);
    grid-auto-rows: var(--row-height);
    gap: var(--gap);
}

.image-grid > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid-col-2 {
  grid-column: span 2;
}

.image-grid-row-2 {
  grid-row: span 2;
}

/* Anything under 1024px */
@media screen and (max-width: 768px) {
    .image-grid{
      --num-col: 1;
      --row-height: 250px;
  }
}
