/* ============= */
/*    役員紹介    */
/* ============= */
#director .sub-container,
#committeMember .sub-container {
  padding-bottom: 0;
}

#director .sub-container,
#committeMember .sub-container,
#matrix .sub-container {
  position: relative;
}

.update {
  position: absolute;
  top: 40px;
  right: 0px;
  color: #acadad;
  font-size: 1.2rem;
}

#matrix .update {
  top: 100px;
}

/* 取締役・社外取締役 ======================================*/
.officer-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.officer-box .officer-li {
  width: 100%;
}

.officer-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 100%;
  border-radius: 20px;
  box-shadow: 2px 2px 4px #b7b7b7;
}

.officer-img {
  width: 100%;
  height: 55%;
}

.officer-img img {
  display: inline-block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.officer-profile {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  width: 100%;
  height: 45%;
  padding: 15px 25px 45px;
}

.officer-name {
  width: 100%;
  margin-bottom: 15px;
}

.officer-name p {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.officer-name p.roman {
  font-size: 1.3rem;
  color: #888;
  font-weight: 400;
}

.officer-profile .post p {
  font-size: 1.4rem;
  line-height: 1.5;
}

.modal-btn {
  position: relative;
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 17px;
  right: 20px;
}

.modal-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.3px;
  background-color: #333;
  transform: translateY(-48%) scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.modal-btn .link-btn {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  border-color: #888;
}

.modal-btn .link-btn::before {
  width: 0.6rem;
  height: 0.6rem;
  border-top: solid 1px #888;
  border-right: solid 1px #888;
}

.modal-btn:hover::before {
  transform: translateY(-50%) scaleX(1);
}

.modal-btn:hover .link-btn {
  background-color: #333;
  border-color: #333;
  transition: 0.3s;
}

.modal-btn:hover .link-btn::before {
  border-top-color: #fff;
  border-right-color: #fff;
  transition: 0.3s;
}

/* モーダルウィンドウ ======================================*/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.mo-cont {
  position: fixed;
  top: 56%;
  left: 50%;
  align-content: center;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background-color: #fff;
  border-radius: 20px;
}

.mo-cont .wrap {
  width: 100%;
  height: 100%;
  padding: 70px 90px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#modal1 .mo-cont .wrap {
  padding-top: 53px;
  padding-bottom: 0px;
}

#modal7 .mo-cont .wrap {
  padding-top: 55px;
  padding-bottom: 0px;
}

.mo-cont .wrap::-webkit-scrollbar {
  width: 12px;
}

.mo-cont .wrap::-webkit-scrollbar-thumb {
  background: #acadad;
  border-radius: 5px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  background-clip: padding-box;
}

.mo-cont .wrap::-webkit-scrollbar-track {
  margin-top: 30px;
  margin-bottom: 30px;
}

.mo-name {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  font-size: 3rem;
  font-weight: 600;
}

.mo-name::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0px;
  height: 5px;
  width: 25px;
  background-color: #008db7;
}

.mo-name span.mo-roman {
  padding-left: 15px;
  color: #888;
  font-weight: 400;
}

.mo-post {
  font-size: 1.8rem;
}

.mo-birth {
  font-size: 1.4rem;
}

.mo-career ol {
  margin-top: 35px;
  margin-bottom: 30px;
}

.mo-career dl {
  display: flex;
}

.mo-career dt {
  width: 100px;
}

.mo-career dd {
  padding-left: 35px;
}

.concurrent {
  display: inline-block;
  padding: 2px 10px;
  background-color: #f0f1f1;
}

/* モーダルを閉じるボタン（×）のスタイル */
.closeModal {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -45px;
  right: 0px;
  font-size: 42px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  width: 50px;
  height: 50px;
}

.closeModal:hover {
  opacity: 0.6;
  transition: 0.3s;
}

body.is-modal-open {
  overflow: hidden;
}

/* スキルマトリックス */
#matrix .scroll-wrap {
  width: 100%;
}

#matrix table {
  border-bottom: solid 1px #c0c0c0;
}

.head-bg {
  width: 100%;
  text-align: center;
  background-color: #f4f4f4;
}

.head-bg th {
  width: 225px;
  height: 30px;
  padding: 0 15px;
}

.head-border th {
  width: 130px;
  height: 60px;
  text-align: center;
  background-color: #f4f4f4;
  border-top: solid 1px #666;
}

.head-border th:first-child {
  border-left: solid 1px #666;
}

.matrix-officer th,
.matrix-officer td {
  height: 60px;
  border-top: solid 1px #c0c0c0;
}

.matrix-officer:first-child th,
.matrix-officer:first-child td {
  border-top: none;
}

.matrix-officer th {
  text-align: center;
  padding: 0 15px;
}

.matrix-officer td {
  padding: 0;
  text-align: center;
  line-height: 1.2;
}

.matrix-officer .mat-post {
  padding: 0 15px 0 50px;
  text-align: left;
}

#matrix .notes {
  padding-top: 10px;
}

/* ------------------------------------------------
   responsive
------------------------------------------------- */

/* 1439～960px ---------------------------------- */
@media screen and (max-width: 1439px) {
}

@media screen and (max-width: 1199px) {
  .officer-profile {
    align-content: flex-start;
    height: 52%;
    padding: 12px 15px 40px;
  }

  .officer-img {
    height: 47%;
  }

  .officer-name {
    margin-bottom: 10px;
  }

  .modal-btn {
    bottom: 5px;
    right: 15px;
  }

  /* モーダルウィンドウ */
  #modal1 .mo-cont .wrap,
  #modal7 .mo-cont .wrap {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .mo-cont {
    top: 55%;
    width: 80%;
    height: 70%;
  }

  .mo-cont .wrap {
    padding: 70px 60px;
  }

  /* スキルマトリックス */
  #matrix .scroll-wrap {
    overflow-x: scroll;
    white-space: nowrap;
  }

  #matrix .update {
    top: 90px;
  }

  .head-border th {
    padding: 0 10px;
  }
}

/* 959～560px tab -------------------------------- */
@media screen and (max-width: 959px) {
  .officer-box {
    grid-template-columns: repeat(3, 1fr);
  }

  /* モーダルウィンドウ */
  .mo-career dl {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .mo-career dt {
    width: 100%;
    padding: 5px 10px;
    background-color: #f7f7f7;
  }

  .mo-career dd {
    width: 100%;
    padding: 5px 10px 20px;
  }

  .concurrent {
    margin-bottom: 8px;
  }

  .concurrent-box ul li {
    list-style: square;
    list-style-position: outside;
    margin-left: 25px;
    margin-bottom: 3px;
  }

  /* スキルマトリックス */
  .matrix-officer .mat-post {
    padding: 0 15px;
    text-align: center;
  }

  .head-bg th {
    font-size: 1.4rem;
  }

  .head-border th {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 768px) {
  .update {
    top: 20px;
  }

  .modal-btn {
    bottom: 10px;
    font-size: 1.4rem;
  }

  .modal-btn .link-btn {
    width: 20px;
    height: 20px;
  }

  .modal-btn .link-btn::before {
    width: 0.5rem;
    height: 0.5rem;
  }

  /* モーダルウィンドウ */
  .mo-cont {
    top: 55%;
  }

  /* スキルマトリックス */
  #matrix .update {
    top: 10px;
  }
}

/* 559px～ SP -------------------------------- */
@media screen and (max-width: 559px) {
  #director .sub-head-h3,
  #committeMember .sub-head-h3,
  #matrix .sub-head-h3 {
    margin-bottom: 50px;
  }

  .update,
  #matrix .update {
    width: 100%;
    top: 30px;
  }

  .officer-box {
    grid-template-columns: repeat(1, 1fr);
  }

  .officer-container {
    flex-direction: unset;
    flex-wrap: nowrap;
    height: 180px;
  }

  .officer-img {
    width: 40%;
    height: 100%;
  }

  .officer-img img {
    object-fit: cover;
    border-radius: 20px 0 0 20px;
  }

  .officer-profile {
    align-content: center;
    width: 60%;
    height: 100%;
    padding: 0 20px 20px;
  }

  .officer-name p {
    font-size: 2rem;
    font-weight: 600;
  }

  .modal-btn:hover::before {
    transform: none;
  }

  /* モーダルウィンドウ */
  .mo-cont {
    top: 58%;
    width: 90%;
    height: 70vh;
  }

  #modal1 .mo-cont .wrap,
  #modal7 .mo-cont .wrap,
  .mo-cont .wrap {
    padding: 50px 20px 50px 30px;
  }

  .mo-name {
    margin-bottom: 25px;
    line-height: 1;
  }

  .mo-name span.mo-roman {
    padding-left: 0;
  }

  .mo-name::before {
    bottom: -8px;
  }

  /* スキルマトリックス */
  #matrix table {
    border-collapse: separate;
  }

  .head-bg th:first-child,
  .matrix-officer th {
    position: sticky;
    left: 0;
  }

  .head-bg th:first-child {
    background-color: #f4f4f4;
  }

  .matrix-officer th {
    background-color: #fff;
  }
}
