/* 役員紹介
 * ================================================
 * Board member page specific styles.
 * Shared member-profile styles are in components/member-profile.css
 */

/* Page Layout
 * ------------------------------------------------ */

.main-content {
  background: linear-gradient(90deg, #0f74b3 0%, #115495 18%, #143b7e 37%, #152a6e 56%, #161f64 76%, #171c61 100%);
}

/* Hero Section
 * ------------------------------------------------ */

.board-hero {
  margin: auto;
  margin-bottom: min(calc(100 / 1366 * 100vw), 100px);
  max-width: min(calc(910 / 1366 * 100vw), 910px);
  padding: 4rem 0 0;
}

.board-hero__content {
  padding-top: min(calc(96 / 1366 * 100vw), 96px);
  position: relative;
  width: 100%;
}

.board-hero__content::before {
  content: url("../../images/board-member/hero_decoration.svg");
  height: 100%;
  left: min(calc(20 / 1366 * 100vw), 20px);
  position: absolute;
  top: min(calc(120 / 1366 * 100vw), 120px);
  width: 100%;
  z-index: 0;
}

.board-hero__title {
  background: #fff;
  color: #152a6d;
  left: 40%;
  min-width: min(calc(300 / 1366 * 100vw), 300px);
  margin: 1rem auto;
  padding: 0.5rem 0.7rem;
  position: absolute;
  text-align: center;
  top: 5%;
  transform: skewX(-10deg) translateY(50%) translateX(30%);
  width: max-content;
  z-index: 10;
}

.board-hero__title p {
  font-family: var(--font-family-primary);
  font-size: min(calc(24 / 1366 * 100vw), 24px);
  font-weight: bold;
}

.board-hero__image {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Section Wrappers
 * ------------------------------------------------ */

.board-ceo,
.board-director,
.board-advisor {
  margin: auto;
}

.board-ceo {
  max-width: min(calc(910 / 1366 * 100vw), 910px);
  padding: 0 0 3rem;
}

.board-director {
  margin-top: min(calc(70 / 1366 * 100vw), 70px);
  max-width: min(calc(940 / 1366 * 100vw), 940px);
  padding: 0 0 min(calc(100 / 1366 * 100vw), 100px);
}

.board-advisor {
  background:
    linear-gradient(90deg, rgb(62 62 62 / 40%), rgb(62 62 62 / 40%)), linear-gradient(90deg, #0d76a3, #181f63);
  max-width: none;
  padding: min(calc(90 / 1366 * 100vw), 90px) 0;
}

.board-advisor .member-profile {
  margin: auto;
  max-width: min(calc(940 / 1366 * 100vw), 940px);
}

.board-advisor .member-profile__greeting--reverse {
  align-items: center;
  gap: min(calc(40 / 1366 * 100vw), 40px);
}

/* Shared (CEO + Director + Advisor)
 * ------------------------------------------------ */

.board-ceo .member-profile__profile img,
.board-director .member-profile__profile img,
.board-advisor .member-profile__profile img {
  box-shadow: min(calc(10 / 1366 * 100vw), 10px) min(calc(10 / 1366 * 100vw), 10px) 0 white;
}

.board-ceo .member-profile__body h2,
.board-director .member-profile__body h2,
.board-advisor .member-profile__body h2 {
  font-size: min(calc(24 / 1366 * 100vw), 24px);
}

.board-ceo .member-profile__name,
.board-director .member-profile__name,
.board-advisor .member-profile__name {
  bottom: auto;
  left: min(calc(170 / 1366 * 100vw), 170px);
  position: absolute;
  transform: translate(max(calc(-20 / 1366 * 100vw), -20px), 0) skewX(-10deg);
  width: min(calc(165 / 1366 * 100vw), 165px);
}

.board-ceo .member-profile__name p,
.board-director .member-profile__name p,
.board-advisor .member-profile__name p {
  font-size: min(calc(22 / 1366 * 100vw), 22px);
}

/* Shared (CEO + Director)
 * ------------------------------------------------ */

.board-ceo .member-profile__profile,
.board-director .member-profile__profile {
  flex-shrink: 0;
  width: min(calc(335 / 1366 * 100vw), 335px);
}

.board-ceo .member-profile__answer p,
.board-director .member-profile__answer p {
  font-size: min(calc(14 / 1366 * 100vw), 14px);
  font-weight: bold;
  line-height: calc(27 / 14);
}

.board-ceo .member-profile__role,
.board-director .member-profile__role {
  left: max(calc(-10 / 1366 * 100vw), -10px);
  position: absolute;
  top: min(calc(25 / 1366 * 100vw), 25px);
}

/* CEO Section
 * ------------------------------------------------ */

.board-ceo .member-profile__greeting {
  gap: min(calc(40 / 1366 * 100vw), 40px);
}

.board-ceo .member-profile__interview {
  margin-top: min(calc(20 / 1366 * 100vw), 20px);
}

.board-ceo .member-profile__question span {
  font-family: var(--font-family-en);
  font-size: min(calc(18 / 1366 * 100vw), 18px);
  line-height: 1;
}

.board-ceo .member-profile__name {
  top: min(calc(395 / 1366 * 100vw), 395px);
}

/* CEO Accordion
 * ------------------------------------------------ */

.board-ceo .member-profile__more {
  border-top: #fff solid 2px;
  border-bottom: #fff solid 2px;
  margin-top: min(calc(40 / 1366 * 100vw), 40px);
}

.board-ceo .member-profile__more-toggle {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: min(calc(14 / 1366 * 100vw), 14px);
  font-weight: bold;
  gap: min(calc(20 / 1366 * 100vw), 20px);
  padding: min(calc(10 / 1366 * 100vw), 10px) min(calc(20 / 1366 * 100vw), 20px);
}

.board-ceo .member-profile__toggle-icon {
  background: #fff;
  border-radius: 50%;
  padding: min(calc(5 / 1366 * 100vw), 5px);
  transition: all 0.4s ease;
  width: min(calc(20 / 1366 * 100vw), 20px);
}

.board-ceo .member-profile__toggle-icon.is-open {
  transform: none;
}

.board-ceo .member-profile__accordion {
  display: none;
}

.board-ceo .member-profile__accordion-item {
  margin-top: min(calc(40 / 1366 * 100vw), 40px);
}

.board-ceo .member-profile__accordion-question {
  font-weight: bold;
}

.board-ceo .member-profile__accordion-question p,
.board-ceo .member-profile__question p {
  align-items: baseline;
  display: flex;
  font-size: min(calc(18 / 1366 * 100vw), 18px);
  gap: min(calc(5 / 1366 * 100vw), 5px);
  justify-content: flex-start;
  line-height: calc(24 / 18);
  padding-left: min(calc(10 / 1366 * 100vw), 10px);
}

.board-ceo .member-profile__accordion-question span {
  font-family: var(--font-family-en);
  font-size: min(calc(18 / 1366 * 100vw), 18px);
  line-height: calc(26 / 18);
}

.board-ceo .member-profile__accordion-answer {
  font-size: min(calc(14 / 1366 * 100vw), 14px);
  font-weight: bold;
  line-height: calc(21 / 14);
  margin-top: min(calc(20 / 1366 * 100vw), 20px);
}

.board-ceo .member-profile__accordion-item--last {
  padding-bottom: min(calc(20 / 1366 * 100vw), 20px);
}

/* CEO Links
 * ------------------------------------------------ */

.board-ceo .member-profile__links {
  display: flex;
  gap: min(calc(10 / 1366 * 100vw), 10px);
  margin-top: min(calc(30 / 1366 * 100vw), 30px);
}

.board-ceo .member-profile__link {
  align-items: center;
  background-color: #fff;
  border: none;
  border-radius: min(calc(5 / 1366 * 100vw), 5px);
  color: #152a6d;
  cursor: pointer;
  display: flex;
  flex: 1 0 0;
  font-size: min(calc(14 / 1366 * 100vw), 14px);
  font-weight: bold;
  justify-content: space-between;
  padding: min(calc(15 / 1366 * 100vw), 15px) min(calc(20 / 1366 * 100vw), 20px);
  text-decoration: none;
}

.member-profile__link-icon {
  position: relative;
  width: min(calc(15 / 1366 * 100vw), 15px);
  height: min(calc(15 / 1366 * 100vw), 15px);
  background: linear-gradient(90deg, #0d74a2 0%, #115489 18%, #133b78 37%, #152a6b 56%, #161f63 76%, #171c61 100%);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.member-profile__link-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.member-profile__link-arrow:nth-child(2) {
  transform: translateX(-100%);
}

.member-profile__link:hover .member-profile__link-arrow:first-child {
  transform: translateX(100%);
}

.member-profile__link:hover .member-profile__link-arrow:nth-child(2) {
  transform: translateX(0);
}

.member-profile__link:hover .member-profile__link-icon {
  transform: scale(1.3);
}

/* Director Section
 * ------------------------------------------------ */

.board-director .member-profile__greeting--reverse {
  gap: min(calc(40 / 1366 * 100vw), 40px);
}

.board-director .member-profile__interview {
  margin-top: min(calc(49 / 1366 * 100vw), 49px);
}

.board-director .member-profile__role {
  background-color: #fff;
}

.board-director .member-profile__name {
  top: min(calc(385 / 1366 * 100vw), 385px);
}

/* Advisor Section
 * ------------------------------------------------ */

.board-advisor .member-profile__body {
  font-size: min(calc(14 / 1366 * 100vw), 14px);
  font-weight: bold;
  width: 80%;
}

.board-advisor .member-profile__interview {
  margin-top: min(calc(30 / 1366 * 100vw), 30px);
}

.board-advisor .member-profile__answer p {
  font-size: min(calc(14 / 1366 * 100vw), 14px);
  font-weight: bold;
  line-height: calc(28 / 14);
}

.board-advisor .member-profile__profile {
  flex-shrink: 0;
  height: min(calc(400 / 1366 * 100vw), 400px);
  width: min(calc(335 / 1366 * 100vw), 335px);
}

.board-advisor .member-profile__name {
  top: min(calc(348 / 1366 * 100vw), 348px);
}

/* Responsive (SP)
 * ------------------------------------------------ */

@media screen and (width <= 750px) {
  /* Page Layout */
  .main-content {
    padding-top: 0;
  }

  /* Hero */
  .board-hero {
    max-width: 100%;
    margin-bottom: 0;
    padding: calc(80 / 375 * 100vw) 20px 0 0;
  }

  .board-hero__content {
    display: flex;
    flex-direction: column-reverse;
    padding-top: 0;
  }

  .board-hero__content::before {
    height: auto;
    left: 8px;
    top: 8px;
    width: 100%;
  }

  .board-hero__title {
    left: 0;
    margin: -15px 0 0;
    min-width: auto;
    padding: 0.4rem 2rem 0.4rem 0.6rem;
    position: relative;
    top: auto;
    transform: skewX(0);
    width: fit-content;
  }

  .board-hero__title::after {
    position: absolute;
    left: 100%;
    top: 0;
    width: 20px;
    height: 100%;
    background-color: #fff;
    transform: skewX(-10deg) translateX(-50%);
    content: "";
    display: block;
  }

  .board-hero__title p {
    font-size: 18px;
  }

  /* Section Wrappers */
  .board-ceo,
  .board-director {
    max-width: 100%;
    padding: 30px 20px;
  }

  .board-director {
    margin-top: 0;
  }

  .board-advisor {
    padding: 50px 20px;
  }

  .board-advisor .member-profile {
    max-width: 100%;
  }

  .board-advisor .member-profile__greeting--reverse {
    align-items: stretch;
  }

  .board-advisor .member-profile__profile {
    height: auto;
    width: 300px;
  }

  .board-advisor .member-profile__name {
    top: auto;
  }

  .board-advisor .member-profile__answer p {
    font-size: 14px;
    line-height: calc(21 / 14);
  }

  /* Greeting layout: column for SP with order control */
  .member-profile__greeting {
    flex-direction: column;
    gap: 30px;
  }

  .member-profile__greeting--reverse {
    flex-direction: column;
  }

  /* Body dissolves so h2 / interview become direct flex children */
  .member-profile__body {
    display: contents;
  }

  .board-ceo .member-profile__body h2,
  .board-director .member-profile__body h2,
  .board-advisor .member-profile__body h2 {
    border-bottom: #fff solid 2px;
    font-family: var(--font-family-primary);
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    order: -2;
    padding-bottom: 10px;
    text-align: center;
  }

  .member-profile .member-profile__profile {
    order: -1;
  }

  /* Profile */
  .member-profile .member-profile__profile {
    height: auto;
    margin: 0 auto;
    width: 300px;
  }

  .member-profile .member-profile__profile img {
    box-shadow: 8px 8px 0 white;
    height: 400px;
    object-fit: cover;
    width: 100%;
  }

  /* Role badge */
  .member-profile .member-profile__role {
    background: #fff;
    inset: auto auto 88px 0;
    left: 0;
    padding: 0 1rem 0 0.5rem;
    position: absolute;
    top: auto;
    transform: skewX(0);
    width: auto;
  }

  .member-profile .member-profile__role::after {
    background-color: #fff;
    content: "";
    display: block;
    height: 100%;
    left: 100%;
    position: absolute;
    top: 0;
    transform: skewX(-10deg) translateX(-50%);
    width: 20px;
  }

  .member-profile .member-profile__role p {
    font-size: 14px;
  }

  /* Name badge */
  .member-profile .member-profile__name {
    background: #fff;
    inset: auto auto 50px 0;
    left: 0;
    padding: 0.3rem 1rem 0.3rem 0.5rem;
    position: absolute;
    top: auto;
    transform: skewX(0);
    width: auto;
  }

  .member-profile .member-profile__name::after {
    background-color: #fff;
    content: "";
    display: block;
    height: 100%;
    left: 100%;
    position: absolute;
    top: 0;
    transform: skewX(-10deg) translateX(-50%);
    width: 20px;
  }

  .member-profile .member-profile__name p {
    font-size: 24px;
    transform: skewX(0);
  }

  /* Interview Q&A */
  .member-profile .member-profile__interview {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .member-profile .member-profile__question {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
  }

  .member-profile .member-profile__question p {
    align-items: baseline;
    display: flex;
    font-size: 16px;
    gap: 5px;
    line-height: calc(24 / 16);
    padding-bottom: 15px;
    position: relative;
  }

  .member-profile .member-profile__question p::after {
    border-bottom: 1px solid #fff;
    content: "";
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .member-profile .member-profile__question span {
    font-family: var(--font-family-en);
    font-size: 16px;
    line-height: calc(26 / 16);
  }

  .member-profile .member-profile__answer {
    margin-top: 0;
    padding: 15px 0;
  }

  .member-profile .member-profile__answer p {
    font-size: 14px;
    font-weight: bold;
    line-height: calc(21 / 14);
  }

  /* CEO Accordion */
  .board-ceo .member-profile__more {
    border-bottom: none;
    border-top: 2px solid #fff;
    margin-top: 0;
  }

  .board-ceo .member-profile__more-toggle {
    font-size: 14px;
    gap: 20px;
    justify-content: flex-end;
    padding: 10px 20px;
  }

  .board-ceo .member-profile__toggle-icon {
    padding: 5px;
    width: 20px;
  }

  .board-ceo .member-profile__accordion-item {
    margin-top: 40px;
  }

  .board-ceo .member-profile__accordion-item:first-child {
    margin-top: 0;
  }

  .board-ceo .member-profile__accordion {
    padding-bottom: 10px;
    padding-top: 30px;
  }

  .board-ceo .member-profile__accordion-question p,
  .board-ceo .member-profile__question p {
    align-items: baseline;
    display: flex;
    font-size: 16px;
    gap: 5px;
    line-height: calc(24 / 16);
    padding-bottom: 15px;
    padding-left: 0;
    position: relative;
  }

  .board-ceo .member-profile__accordion-question p::after {
    border-bottom: 1px solid #fff;
    content: "";
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .board-ceo .member-profile__accordion-question span {
    font-family: var(--font-family-en);
    font-size: 16px;
    line-height: calc(26 / 16);
  }

  .board-ceo .member-profile__accordion-answer {
    margin-top: 15px;
    padding-top: 15px;
  }

  .board-ceo .member-profile__accordion-answer p {
    font-size: 14px;
    line-height: calc(21 / 14);
  }

  .board-ceo .member-profile__more::after {
    border-bottom: 2px solid #fff;
    content: "";
    display: block;
  }

  /* SP Links */
  .board-ceo .member-profile__links {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .board-ceo .member-profile__link {
    border-radius: 5px;
    flex: none;
    font-size: 14px;
    justify-content: space-between;
    padding: 15px 20px;
    width: 100%;
  }

  .member-profile__link-icon {
    height: 15px;
    width: 15px;
  }
}
