/* page-header */
.page-header {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f8ff; /* より明るい青背景に変更 */
  overflow: hidden;
  padding-top: 70px;
}

.page-title {
  font-size: 36px;
  font-weight: 300;
  text-align: center;
  color: #3878bd; /* 明るい青に変更 */
  position: relative;
  z-index: 2;
}

.page-title-en {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-top: 5px;
  color: #5aadff; /* より明るい青に変更 */
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/page-header-bg.svg');
  background-position: center;
  background-size: cover;
  opacity: 0.3;
  z-index: 1;
}

/* profile-section */
.profile-section {
  background-color: #fff;
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.profile-info {
  flex: 1;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.profile-table th {
  width: 120px;
  text-align: left;
  font-weight: 500;
  color: #2c4f7c;
  vertical-align: top;
}

.profile-table td {
  line-height: 1.7;
}

.profile-table td ul {
  padding-left: 20px;
  margin: 0;
}

.profile-table td ul li {
  margin-bottom: 5px;
}

.profile-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  transition: all 0.3s ease;
}

.profile-social-link:hover {
  color: #2c4f7c;
}

.profile-social-link img {
  width: 20px;
  height: 20px;
}

.profile-image {
  flex: 1;
  max-width: 500px;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* philosophy-section */
.philosophy-section {
  background-color: #f5f9fe;
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/philosophy-bg.svg');
  background-position: center;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.philosophy-content {
  position: relative;
  z-index: 1;
}

.philosophy-main {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.philosophy-main-title {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #2c4f7c;
}

.philosophy-main-text {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

.philosophy-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.philosophy-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.philosophy-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-card-icon img {
  width: 100%;
  height: auto;
}

.philosophy-card-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #2c4f7c;
}

.philosophy-card-text {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* message-section */
.message-section {
  background-color: #fff;
}

.message-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.message-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.message-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.message-text {
  flex: 1;
  min-width: 300px;
}

.message-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.message-text strong {
  color: #2c4f7c;
  font-weight: 500;
}

/* faq-section */
.faq-section {
  background-color: #f5f9fe;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 25px 60px 25px 70px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(120, 160, 204, 0.05);
}

.faq-q {
  position: absolute;
  left: 25px;
  top: 25px;
  font-size: 20px;
  font-weight: 700;
  color: #2c4f7c;
  font-family: 'Montserrat', sans-serif;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  padding: 8px; /* Increased hit area */
  margin: -8px; /* Offset the padding */
}

.faq-question:hover .faq-toggle {
  background-color: rgba(120, 160, 204, 0.1);
}

.faq-toggle span {
  position: absolute;
  background-color: #3878bd;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px; /* Added border-radius to round the corners of the plus/minus lines */
}

.faq-toggle span:first-child {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-toggle span:last-child {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-toggle span:last-child {
  height: 0;
  transform: translateX(-50%) rotate(90deg);
}

.faq-item.active .faq-toggle {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  padding: 0 25px 25px 70px;
  position: relative;
  display: none;
  height: 0;
  transition: height 0.3s ease-in-out;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-a {
  position: absolute;
  left: 25px;
  top: 0;
  font-size: 20px;
  font-weight: 700;
  color: #78a0cc;
  font-family: 'Montserrat', sans-serif;
}

.faq-answer p {
  margin: 0;
  line-height: 1.8;
  color: #666;
}

/* cta-section */
.cta-section {
  background-color: #2c4f7c;
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.4;
}

.cta-text {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.7;
  opacity: 0.8;
}

/* Animation */
.fade-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .profile-content {
    flex-direction: column;
  }
  
  .profile-info {
    width: 100%;
  }
  
  .profile-image {
    max-width: 100%;
  }
  
  .message-content {
    flex-direction: column-reverse;
  }
  
  .message-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-header {
    height: 200px;
    margin-top: 60px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .profile-table th {
    width: 100px;
    padding: 10px;
  }
  
  .profile-table td {
    padding: 10px;
  }
  
  .philosophy-main-title {
    font-size: 28px;
  }
  
  .philosophy-main-text {
    font-size: 16px;
  }
  
  .faq-question {
    padding: 20px 50px 20px 50px;
  }
  
  .faq-q {
    left: 20px;
    top: 20px;
    font-size: 18px;
  }
  
  .faq-question h3 {
    font-size: 16px;
  }
  
  .faq-toggle {
    right: 20px;
    width: 20px;
    height: 20px;
  }
  
  .faq-answer {
    padding: 0 20px 20px 50px;
  }
  
  .faq-a {
    left: 20px;
    font-size: 18px;
  }
  
  .cta-title {
    font-size: 26px;
  }
  
  .cta-text {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .page-header {
    height: 180px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .profile-table {
    display: block;
  }
  
  .profile-table tr {
    display: block;
    margin-bottom: 20px;
  }
  
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
  }
  
  .profile-table th {
    border-bottom: none;
    padding-bottom: 5px;
  }
  
  .profile-table td {
    padding-top: 5px;
  }
  
  .philosophy-main-title {
    font-size: 24px;
  }
}