


.certification-section,
.access-section {
  padding-top: 7rem;
}

.info-row {
    display: grid;
    grid-template-columns: 40% 60%;
    padding: 1.8rem 0;
    border-bottom: 1px solid #E6E6E6;
  }
  
  .info-row h3 {
    color: #002C44;
    font-family:  "noto-sans-cjk-jp", sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.5625rem;
    padding-left: 9rem;
  }
  
  .info-row p {
    font-family:  "noto-sans-cjk-jp", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5625rem;
    color: #002C44;
  }
  
  /* Office Photos */
  .office-photos {
    max-width: 1200px;
    margin: 2.47rem auto 0;
    padding: 0 2rem;
  }
  
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
    column-gap: 4rem;
  }
  .photo-item  {
    overflow: hidden;
    border-radius: 10px;
    height: auto;
    width: 100%;
  }
  .photo-item img {
    width: 100%;

  }

  .photo-item:last-child img {
    transform: scale(1.4);
  } 
  
  /* Certification Section */
  


  .title-ja {
    display: block;
    color: #002C44;
    font-family:  "noto-sans-cjk-jp", sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 2.75rem;
    letter-spacing: 0.1125rem;
  }
  
  .certification-intro {
    margin-bottom: 2.3rem;
  }
  
  .certification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
    column-gap: 4rem;
  }
  
  .certification-item {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .certification-item-title {
    margin-bottom: 0.8rem;
  }
  
  .title-en {
    display: block;
    color: #00547D;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.05rem;
  }
  
  .title-ja {
    display: block;
    color: #002C44;
    font-family:  "noto-sans-cjk-jp", sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 2.75rem;
    letter-spacing: 0.1125rem;
  }
  
  .certification-description {
    margin-bottom: 0.8rem;
    color: #002C44;
    font-family:  "noto-sans-cjk-jp", sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5625rem;
    letter-spacing: 0.01875rem;
    min-height: 5rem;
  }
  
  .certification-link {
    display: block;
    margin-top: auto;
    flex: 1;
  }
  
  .certification-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #FFF;
    height: 21rem;
  }
  .certification-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;

  }
  .certification-image-wrap img.logo {
    width: auto;
    height: 15rem;
  }

  .certification-image img {
    width: 100%;
    margin: 0 auto;
    height: auto;
    display: block;
    transition: all 0.3s ease;
  }
  
  .certification-link:hover img {
    transform: scale(1.05);
    opacity: 0.9;
  }
  
  .certification-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.6rem;
    background: linear-gradient(to right, rgba(30,30,30,0.1) 0%, rgba(27,27,27,0.2) 42%,  rgba(25,25,25,0.5) 100% );
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  
  .certification-overlay .overlay-text {
    padding-right: 2rem;
    min-height: 4rem;
    position: relative;
  }
  .overlay-text {
    color: #FFF;
    font-family:  "noto-sans-cjk-jp", sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.875rem;
    letter-spacing: 0.065rem;
  }
  
  .overlay-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    position: absolute;
    right: 1.8rem;
    bottom: 1.6rem;
  }
  
  .certification-link:hover .overlay-arrow {
    transform: translateX(10px);
  }


  /* Access Section */
.access-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;

  
}

.access-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.access-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
}

.address-info, .transportation-info {
  color: #002C44;
  font-family:  "noto-sans-cjk-jp", sans-serif;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5625rem; /* 166.667% */
  letter-spacing: 0.01875rem;
}

.address-info .contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact span {
  display: inline-block;
}

.google-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.google-maps-link:hover {
  opacity: 0.7;
}

.google-maps-link:hover .arrow {
  transform: translateX(5px);
}

.map-icon {
  font-size: 1.2rem;
}
.map-txt {
color: #002C44;
font-family:  "noto-sans-cjk-jp", sans-serif;
font-size: 0.9375rem;
font-style: normal;
font-weight: 400;
line-height: 1.125rem; /* 120% */
letter-spacing: 0.01875rem;
border-bottom: .5px solid #707070;
}

.arrow {
  transition: transform 0.3s ease;
  color: #707070;
  font-weight: 100;
  font-size: 1rem;
}

.map-container {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}




  
  /* Fade In Animation */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .certification-section .section-title {
    margin-bottom: 3rem;
  }
  
  .adress-text {
    text-decoration: none !important;
    border-bottom: none !important;
  }
  

    /* Responsive Styles */


  @media (max-width: 1024px) {

    .second-wrapper {
      margin: 5rem auto 0;
    }

    .certification-section .section-title {
      margin-bottom: 2.5rem;
    }

    .section-title-en {
      font-size: 0.8125rem;
      font-style: normal;
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: 0.04063rem;
    }
  
    .section-title-ja {
      font-size: 2.375rem;
      font-style: normal;
      font-weight: 700;
      line-height: 1.5; /* 115.789% */
      letter-spacing: 0.0475rem;

    }

    .certification-item-title {
      min-height: 6rem;
    }
    
  
    .info-row {
      grid-template-columns: 30% 70%;
    }
  
    .info-row h3 {
      padding-left: 2rem;
    }

    .certification-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .certification-intro {
      margin-bottom: 1.3rem;
    }


.certification-section,
.access-section {
  padding-top: 5rem;
}


  }
  
  @media (max-width: 768px) {
    .second-wrapper {
      margin: 6rem auto 0;
    }
    .info-row {
      grid-template-columns: 100%;
    }
  
    .info-row h3 {
      padding-left: 0;
      padding-bottom: .3rem;
    }
  
    .photo-grid {
      grid-template-columns: 1fr;
    }
    .certification-section .section-title {
      margin-bottom: 2.25rem;
    }


    .certification-grid {
      grid-template-columns: 1fr;;
      row-gap: 3rem;
    }
  
    .certification-item {
      text-align: left;
    }

    .certification-item-title {
      min-height: auto;
    }
  
    .certification-item-title,
    .certification-description {
      text-align: left;
    }

    .access-section {
      margin-top: 5.3rem;
    }
  
    .access-content {
      grid-template-columns: 1fr;
    }

    .access-info {
      padding-bottom: 0;
    }
    

    .title-ja {
      color: #002C44;
      font-family:  "noto-sans-cjk-jp", sans-serif;
      font-size: 1.5625rem;
      font-style: normal;
      font-weight: 700;
      line-height: 1.5; /* 1.5625rem */
      letter-spacing: 0.0625rem;
    }

    .title-en {
      font-size: 0.8125rem;
      font-style: normal;
      font-weight: 600;
      line-height: normal;
      letter-spacing: 0.04063rem;
      line-height: 1.5;
    }


   
  }

