:root {
  font-family:  "noto-sans-cjk-jp", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #000;
  background-color: #FFF;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.8rem;
}


/* Profile Section */

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-title {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.01rem solid #707070;
  color: #002C44;
  font-size: 1.875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 2.625rem; /* 140% */
  letter-spacing: 0.0375rem;
}

.profile-text {
  color: #002C44;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5625rem; /* 166.667% */
  letter-spacing: 0.01875rem;
}

.profile-text p {
  margin-bottom: 1.5rem;
}

.profile-image-wrapper {
  width: 21.0625rem;
  max-width: 600px;
  margin: 2rem 0;
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.top-profile.pc {
  display: block;
  margin-top: 3rem;
}
.top-profile.sp {
  display: none;
}

.profile-name-wrapper {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 0.01rem solid #707070;
  text-align: right;
}

.profile-position {
  display: block;
  color: #002C44;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5625rem; /* 166.667% */
  letter-spacing: 0.01875rem;
}


.profile-name {
  color: #002C44;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.0375rem;
  line-height: 2rem;
  }

.profile-education {
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: right;
}


.profile-name-wrapper,
.profile-education {
  text-align: right;
}

/* Rest of the styles remain the same until media queries */



/* Media Queries */
@media (min-width: 769px) {
  .profile-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.7rem;
  }

  .profile-image-wrapper {
    order: -1;
    flex-shrink: 0;
    margin: 0;
  }

  .profile-text-content {
    flex: 1;
  }

}

@media (max-width: 1024px) {

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}

  .profile-title {
    padding-bottom: 1.75rem;
  }

  .profile-section .container {
    padding: 0;
  }
  .profile-text {
    order: 1;
  }

  .profile-image-wrapper {
    max-width: 100%;
    order: 2;
    align-self: flex-end;
  }
}


@media (max-width: 768px) {
  .profile-section {
    padding: 0;
  }

  .profile-content {
    padding: 0 1.8rem;
  }

  .profile-title {
    font-size: 1.5rem;
    padding-bottom: 1.5rem;
    line-height: 1.3;
  }

  .profile-text {
    order: 1;
  }

  .profile-image-wrapper {
    align-self: center;
  }



  .profile-name-wrapper {
    order: 3;
  }

  .profile-education {
    order: 4;
  }

  /* Rest of the mobile styles remain the same */
}

/* Ethical Media Section */
.ethical-section {
  margin: 0 auto;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 2rem;
}
.ethical-section .container {
  border-top: 0.01rem solid #707070;
  padding-top: 4rem;
}

.ethical-section .section-title {
  margin-bottom: 4rem;
}



.ethical-media-content {
  max-width: 30.1875rem;
  margin: 0 auto;
  text-align: left;
}

.ethical-media-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.read-more-button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 3rem;
  background-color: #2476B4;
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.read-more-button:hover {
  background-color: #1a5a8c;
}

.read-more-button::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more-button:hover::after {
  transform: translateX(4px);
}

.ethical-section .button-large {
  margin-top: 2rem;
}




/* 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);
}

/* Media Queries */

@media (max-width: 768px) {


  .ethical-section {
    margin: 0 auto;
    padding-top: 3.5rem;
  }

  .ethical-section .container {
    padding-top: 3.5rem;
    padding: 0 ;
    padding-top: 4rem;
    padding-bottom: 2rem;

  }


  .ethical-section .section-title-ja {
    line-height: 1.3;
  }


}