/* About Section */
.about-us-introduce {
  position: relative;
  background: #f2f2f2 url("../images/about-us-bg-1.svg") no-repeat;
  background-size: 100% auto;
  background-position: top center;
  margin-top: -150px;
  padding-top: 150px;
  width: 100%;
  overflow: hidden;
}

.about-section {
  max-width: 1200px;
  margin: 80px auto;
}

.about-title {
  font-size: 52px;
  color: #2c3e50;
  font-weight: 500;
  margin-bottom: 100px;
  margin-bottom: 100px;
  margin-top: 40px;
  text-align: center;
  position: relative;
  z-index: 11111;
}

.about-title::after {
  content: url(../images/after-sub-title-bold.svg);
  position: absolute;
  left: 50%;
  transform: translate(-50%, -25%);
  z-index: -1;
}

.about-content {
  margin: 0 auto;
  max-width: 800px;
}

/* Home Intro */
.home-intro__cta {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 200px;
  margin: 0 auto;
}

.home-intro__cta-text {
  font-size: 16px;
  font-weight: 700;
  margin-right: 18px;
}

/* Text Content */
.text-block {
  margin-bottom: 24px;
  font-size: 14px;
  color: #313a3b;
  text-align: left;
}

.text-block:last-child {
  margin-bottom: 24px;
}

/* Vision Section */
.vision-link {
  text-align: center;
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.vision-text {
  font-size: 24px;
  color: #2c3e50;
  font-weight: 500;
}

.arrow-button {
  width: 50px;
  height: 50px;
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.arrow-button:hover {
  background: #34495e;
}

.arrow-button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Member Section */
.member-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.member-title {
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  color: #313a3b;
}

.member-title::after {
  content: url(../images/after-sub-title.svg);
  position: absolute;
  left: 50%;
  transform: translate(-50%, -25%);
  z-index: -1;
}

.member-subtitle {
  text-align: center;
  font-size: 14px;
  color: #313a3b;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 30px;
}

/* Member Card */
.member-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding-top: 80px;
}

.chat-bubble {
  display: none;
}

.member-image {
  cursor: pointer;
  width: 100%;
  height: 315px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.member-card:hover .member-image {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.member-info {
  padding: 40px;
  background-color: #eefff7;
}

.member-name {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #313a3b;
}

.member-position {
  font-size: 12px;
  font-weight: 700;
  color: #313a3b;
  text-transform: uppercase;
}

.member-name-container {
  display: flex;
  align-items: center;
  padding: 40px;
  border-bottom: 1px solid #dddddd;
}

.member-name-container-left {
  width: 40px;
  height: 60px;
}

.member-name-container-left-image {
  width: 100%;
  height: 100%;
}

.member-name-container-right {
  margin-left: 10px;
}

/* Member Popup */
.member-popup {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  width: 100%;
  min-height: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #0fe47e;
}

.member-popup::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 30px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #0fe47e;
}

.member-popup p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #313a3b;
}

.member-card:hover .member-popup {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 11111111111111111;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: #f9f9f9;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 24px;
  font-weight: 500;
  color: #313a3b;
}

.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  cursor: pointer;
  border-radius: 0;
  font-size: 40px;
  color: white;
  padding: 0;
  z-index: 1001;
}

.modal-body {
  display: flex;
}

.modal-image {
  width: 420px;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1;
}

.member-description {
  padding: 40px;
  font-size: 12px;
  color: #333333;
}

/* Info Section */
.info-section {
  position: relative;
  background-image: url(../images/what-about-bg.svg);
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
}

.info-section-container {
  background-color: white;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.info-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 40px;
  color: #313a3b;
  position: relative;
}

.info-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.info-table tr {
  display: flex;
  padding: 16px 0;
  border: none;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th {
  width: 180px;
  text-align: left;
  font-weight: 500;
  padding-right: 20px;
  color: #2c3e50;
  font-size: 16px;
}

.info-table td {
  flex: 1;
  font-size: 16px;
  color: #313a3b;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.services-list li:last-child {
  margin-bottom: 0;
}

/* Language Switch */
.lang-switch {
  position: absolute;
  top: 60px;
  right: 120px;
  gap: 10px;
}

.lang-btn {
  padding: 5px 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: color 0.3s ease;
}

.lang-btn.active {
  color: #000;
  font-weight: bold;
  position: relative;
}

.lang-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #0fe47e;
}

.lang-btn:hover {
  color: #000;
}

.member-grid-sp {
  display: none;
}

/* Language Display */
[lang="en"] {
  display: none;
}

body.en [lang="ja"] {
  display: none;
}

body.en [lang="en"] {
  display: block;
}

/* Thank You Button */
.thank-you__button {
  margin: 60px 0 100px 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    width: 90%;
    max-width: 700px;
  }

  .modal-image {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .about-us-introduce {
    background: url("../images/about-us-bg-sp.svg") no-repeat;
    background-size: 100% auto;
    background-position: top center;
    margin-top: -100px;
    padding-top: 100px;
    background-color: #f2f2f2;
    overflow-x: hidden;
  }

  .about-section {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    margin: 60px auto 40px;
  }

  .about-title {
    font-size: 40px;
    margin-bottom: 80px;
  }

  .about-title::after {
    content: url(../images/sp-after-sub-title-bold.png);
    width: 66px;
    height: 100px;
    transform: translate(-50%, -40%);
  }

  .about-content {
    font-size: 12px;
  }

  .text-block {
    margin-bottom: 30px;
    font-size: 12px;
  }

  .vision-text {
    font-size: 20px;
  }

  .arrow-button {
    width: 40px;
    height: 40px;
  }

  .home-intro__cta {
    margin: 0;
  }

  .member-section {
    padding: 60px 20px;
  }

  .member-title {
    font-size: 36px;
  }

  .member-subtitle {
    font-size: 14px;
    text-align: left;
    margin-bottom: 60px;
  }

  .member-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
    margin-bottom: 24px;
  }

  .member-grid .member-card {
    padding-top: 0;
  }

  .pc-only {
    display: none;
  }

  .member-grid-sp {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .member-card-sp {
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
  }

  .member-card-sp .member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .member-card-sp .member-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 12px;
  }

  .member-card-sp .member-name {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
  }

  .member-card-sp .member-position {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
  }

  .member-card {
    padding-top: 40px;
  }

  .member-image {
    height: auto;
    aspect-ratio: 1;
  }

  .member-info {
    padding: 15px;
  }

  .member-name {
    font-size: 16px;
  }

  .member-position {
    font-size: 12px;
  }

  .member-popup,
  .member-card::before {
    display: none;
  }

  .member-description {
    height: calc(90vh - 225px);
  }

  .modal {
    align-items: end;
  }

  .modal-content {
    width: 100%;
    margin: 0;
    height: 90vh;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-image {
    width: 100%;
    max-width: 150px;
  }

  .member-name-container-sp {
    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
  }

  .member-name-container {
    border: none;
    padding: 0px 20px;
  }

  .member-name-container-left {
    width: 30px;
    height: 45px;
  }

  .member-name {
    font-size: 16px;
  }

  .member-position {
    font-size: 10px;
  }

  .member-description {
    padding: 24px 12px;
    overflow-y: auto;
  }

  .info-table tr {
    flex-direction: column;
  }

  .info-table th,
  .info-table td {
    width: 100%;
  }

  .info-table th {
    margin-bottom: 5px;
  }

  .modal-close {
    top: -46px;
    right: 0;
    width: 30px;
    height: 30px;
  }

  .modal-close::before,
  .modal-close::after {
    width: 16px;
  }

  .info-section {
    padding: 60px 20px;
  }

  .info-section-container {
    padding: 40px 20px;
  }

  .info-title {
    font-size: 22px;
    margin-bottom: 0;
    width: 70%;
  }

  .info-table tr {
    flex-direction: column;
    padding: 20px 0;
  }

  .info-table th {
    width: 100%;
    margin-bottom: 8px;
  }

  .info-table td {
    width: 100%;
  }

  .lang-switch {
    top: 0;
    right: 0;
    position: relative;
    gap: 0;
    display: flex;
  }

  .info-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
  }

  .thank-you__button {
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.pc {
  display: block;
}

.sp {
  display: none;
}

@media (max-width: 768px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}
