header {
  .inner {
  }

  .recruit {
    position: absolute;
    bottom: 0;
    width: 138px;
    margin-right: 14px;
  }
}

.message {
  > div {
    display: flex;
    align-items: baseline;
    gap: 1em;

    img {
      width: min(25vw, 16.875rem);
      margin-top: 0px;
    }

    p {
      font-weight: bold;
      position: relative;
      bottom: min(0.5vw, 0.078125rem);
    }

    &.managers {
      flex-direction: column;
      padding-top: 40px;

      img {
        width: 71%;
        margin-bottom: 10px;
      }

      p {
        font-size: 0.7em;
      }
    }
  }

  > p {
    font-size: 0.8125rem;
    font-weight: bold;
    line-height: 1.9em;
    max-width: min(71vw, 48rem);
    margin-top: 1em;
  }
}

.sm-cards {
  position: relative;
  display: grid;
  margin-top: 8.69rem;
  grid-template-columns: 40vw 40vw;
  gap: 10vw 10vw;

  .card {
    .card-header {
      margin-bottom: 1.5em;
      border-bottom: 4px solid var(--color-mediumblue-500);

      > div {
        font-size: 0.625rem;
        display: flex;
        align-items: end;
        gap: 1rem;
      }
    }

    &.c1 {
      grid-column: 1 / 3;
    }

    &.c2 {
      grid-column: 1 / 3;

      .card-body {
        div img {
          overflow: hidden;
          width: 55%;
          margin: auto;
        }
      }
    }

    &.c3 {
      grid-column: 1 / 3;

      .card-body {
        div {
          position: relative;
          height: 27vw;
          background: white;

        }

        div img:nth-child(1) {
          position: absolute;
          z-index: 200;
          top: 0;
          right: 0;
          bottom: 0;
          left: 0;
          width: 50%;
          height: 100%;
          margin: auto;
          object-fit: cover;
          mix-blend-mode: multiply;
          -webkit-mix-blend-mode: multiply;
          will-change: transform;
        }

        div img:nth-child(2) {
          position: absolute;
          z-index: 100;
          top: 0;
          right: 0;
          bottom: 0;
          left: 0;
          width: 90%;
          margin: auto;
        }
      }
    }

    &.c4 {
      grid-column: 1 / 3;

      .card-body {
        div img {
          overflow: hidden;
          width: 80vw;
          margin: auto;
          border-radius: 25px;
          object-fit: cover;
        }
      }
    }

    &.c5 {
      .card-body {
        div img {
          width: 40%;
          margin-right: 25%;
          margin-left: 35%;
          padding-top: 7%;
          padding-bottom: 7%;
        }
      }
    }

    .card-body {
      > div {
        border: 5px solid var(--color-mediumblue-500);
        border-radius: 20px;
        box-shadow: 10px 10px var(--color-mediumblue-500);
      }
    }
  }

  .logo {
    img {
      padding-top: 25%;
      scale: 1.1;
    }
  }

  .hands {
    > div {
      font-size: 0.8125rem;
      max-width: 13em;
      margin-right: 0;
      margin-left: auto;
      transform: translateY(-1rem);

      > div {
        display: flex;
      }
    }

    .dotline-pride {
      font-weight: bold;
      text-decoration: underline;
    }
  }
}

.top {
  position: relative;
  margin-top: 0;
  margin-bottom: 7rem;

  .message {
    > div {
      display: flex;
      align-items: baseline;
      flex-direction: column;
      gap: 1em;

      img {
        width: 16em;
      }

      + p {
        width: 19em;
        margin-top: 4em;
      }
    }
  }


  .dotline-social {
    font-size: 0.6rem;
    font-weight: bold;
    position: absolute;
    top: 6rem;
    right: 0;
    display: flex;
    align-items: center;
    transform: rotate(90deg) translate(2rem, -150%);
    letter-spacing: 1px;
    gap: 1em;

    img {
      transform: rotate(-90deg);
    }
  }
}


.sm-profiles {
  grid-template-columns: 100%;
  gap: 10vw;

  .profile {

    .profile-header {
      position: relative;
      display: grid;
      margin-bottom: 2.2em;
      grid-template-columns: 100%;
      gap: 0%;

      > div:nth-child(1) {
        font-weight: bold;
        padding-top: 12%;

        img:nth-child(1) {
          position: absolute;
          z-index: 200;
          width: 18%;
          margin-bottom: 0%;
          margin-left: 1%;
          transform: translateY(40%);
        }

        & .mng-icon {
          position: absolute;
          z-index: 200;
          top: 0;
          width: 38%;
          margin-bottom: 0;

          img:nth-child(1) {
            position: static;
            width: 100%;
            margin-bottom: 0;
            margin-left: 0;
            margin-left: 0;
            transform: translateY(0);
          }
        }

        & .mng-icon.mng2 {
          top: 10%;
        }

        img.profico {
          position: relative;
          z-index: 100;
          display: block;
          width: 110vw;
          max-width: 110vw;
          margin-bottom: 15%;
          margin-left: -10vw;
        }

        .name {
          font-size: 18px;
          margin-bottom: 5%;
          letter-spacing: 3px;
        }

        .position {
          font-size: 13px;
          margin-bottom: 15%;
        }

        .detail {
          font-size: 13px;
          line-height: 2.2em;
        }
      }

      > div:nth-child(2) {
        img {
          display: none;
        }
      }
    }

    .profile-bio {
      font-weight: bold;

      p {
        font-size: 14px;
        line-height: 2.2em;
      }

      .title {
        font-size: 16px;
        padding-left: 15px;
        border-left: 3px solid var(--color-mediumblue-200);
      }
    }

    &.p1 {
      margin-top: -45px;
      margin-bottom: 20px;

      .profile-bio {
        position: relative;
        display: grid;
        padding-bottom: 10em;
        grid-template-columns: 100%;
        gap: 12%;

        > div {
          display: flex;
          flex-direction: column;

          a {
            display: none;
          }
        }

        > div:nth-child(2) {
          a {
            display: inline-block;
            margin-top: 20px;
          }
        }
      }
    }

    &.p7 {
      .profile-bio {
        position: relative;
        display: grid;
        grid-template-columns: 100%;
        gap: 12%;

        > div {
          display: flex;
          flex-direction: column;
        }
      }
    }

    &.p9 {
      .profile-header {
        > div:nth-child(1) {
          img:nth-child(1) {
            position: absolute;
            z-index: 200;
            width: 30%;
            margin-bottom: 0%;
            margin-left: 1%;
            transform: translateY(40%);
          }

          img:nth-child(2) {
            position: relative;
            z-index: 100;
            display: block;
            width: 110vw;
            max-width: 110vw;
            margin-bottom: 15%;
            margin-left: -10vw;
          }

        }
      }
    }
  }
}

.adviser {
  margin-top: 150px;

  .title {
    font-size: 16px;
    display: block;
    padding: 2px;
    border: 5px solid var(--color-mediumblue-500);
    border-radius: 20px;
    box-shadow: 10px 10px var(--color-mediumblue-500);
  }

  > div {
    font-weight: bold;
    margin-top: 100px;
    grid-template-columns: 100%;
    gap: 12%;

    > div {
      img {
        width: 60%;
        margin-bottom: 3em;
      }

      p:nth-child(2) {
        font-size: 20px;
        margin-bottom: 0.7em;
        letter-spacing: 3px;
      }

      p:nth-child(3) {
        font-size: 14px;
        margin-bottom: 1.6em;
      }

      p:nth-child(4) {
        font-size: 15px;
        margin-bottom: 0.5em;
      }

      p:nth-child(5) {
        font-size: 14px;
        line-height: 2.2em;
      }
    }
  }
}

.thum-managers {
  display: none;
  width: 100vw;
  margin-top: 12vw;
}

.thum-managers-sp {
  display: block;
  width: 100vw;
  margin-top: 0;
  margin-bottom: 0;
}

.thum-managers-b {
  display: none;
  width: 100vw;
  margin-top: 12vw;
}

.thum-managers-b-sp {
  display: block;
  width: 100vw;
  margin-top: 60vw;
}

.Corporate-profile-header {
  .Corporate-profile {
    margin-bottom: 1.5em;
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  img:nth-child(3) {
    margin-top: 6em;
    margin-bottom: 6em;
  }
}

.com-profile {
  grid-template-columns: 1fr;
  gap: 3em;

  p.mt-5 {
    margin-top: 3rem;
  }
}

.business-details {
  margin-top: 12em;

  > div {
    position: relative;
    display: grid;
    margin-top: 5em;
    grid-template-columns: 1fr 1fr;
    gap: 8% 4%;

    & .detail {
      .header {
        font-size: 13px;
        font-weight: bold;
        margin-top: 1rem;
        margin-bottom: 1.4rem;
        letter-spacing: 1px;
      }
    }
  }
}

.another {
  margin-top: 25em;
  grid-template-columns: 1fr;

  .bank,
  .consultant {
    margin-bottom: 7em;
    text-align: center;

    .title {
      margin-bottom: 5em;
    }
  }
}


.all-history {
  position: relative;
  display: grid;
  margin-top: 100px;
  grid-template-columns: 100%;
  gap: 1%;

  .history-sentence {
    order: 2;
    margin-bottom: 100px;
    gap: 10px;

    .history-section {
      line-height: 20px;
      margin-top: 10px;
      margin-left: 0%;
      gap: 4%;
      grid-template-columns: 20% 76%;

      p:nth-child(1) {
        font-size: 10px;
        font-weight: bold;
      }

      p:nth-child(2) {
        font-size: 14px;
        font-weight: bold;
      }
    }
  }

  .history-picture {
    order: 1;
    margin-top: 0%;
    margin-right: 5%;

    .drop-shadow {
      .front {
        p:nth-child(2) {
          font-size: 24px;
          font-weight: bolder;
          margin-top: 20%;
        }

        p:nth-child(3) {
          font-size: 15px;
          font-weight: bold;
          margin-bottom: 10%;
        }

        p:nth-child(4) {
          font-size: 14px;
          font-weight: bold;
          line-height: 2.4;
          margin-bottom: 15%;
        }

      }

      .back {
        transform: translate(calc(-100% + 20px), 20px);
      }
    }

    .history-anime {
      position: relative;
      z-index: -2;
      width: 60%;
      margin-bottom: -40px;
      margin-left: 30%;
    }
  }
}

.history-head {
  margin-top: 3em;

  img:nth-child(1) {
    order: 3;
    margin-top: 1.5rem;
  }

  p:nth-child(2) {
    font-size: 10px;
    font-weight: bold;
    order: 1;
    margin-top: 10%;
    margin-bottom: 5%;
  }

  p:nth-child(3) {
    font-size: 12px;
    order: 2;
    margin-bottom: 5%;
  }
}

.generalbg {
  position: relative;
  margin: 20em 0 0;
  padding: 15em 1em 14em 1em;
}

.generalbg.bg2 {
  position: relative;
  margin: 10em 0 0;
  padding: 12em 0 8em;
}

.generalbg.bg3 {
  position: relative;
  margin: 0 0;
  padding: 8em 0 6em;
}

.generalbg::after {
  transform: skewY(-13deg);
}

.generalbg.bg2::after {
  transform: skewY(-12.5deg);

}

.generalbg.bg3::after {
  transform: skewY(-12.5deg);

}

.generalbg.bg2 img,
.generalbg.bg3 img {
  width: 90%;
  margin: 0 auto;

}

.flip-card {
  .flip-card-back {
    img {
      width: 100%;
      border-radius: 20px;
      box-shadow: 12px 12px 0px -5px white, 12px 12px var(--color-mediumblue-500);

    }

    .sp {
      display: block !important;
    }
  }

  &.corp-managers {
    aspect-ratio: 355 / 153;
  }
}


/* 240628中川加筆 */

.img_pc {
  display: none !important;
}

.img_sp {
  display: block !important;
}

.message {
  & > div {
    &.managers {
      p {
        font-size: 1.2em;
      }
    }
  }
}


.sm-profiles {
  position: relative;
  display: grid;
  margin-top: 3rem;
  grid-template-columns: 100%;
  gap: 10vw;

  .profile {

    .profile-header {
      & > div:nth-child(1) {
        img.profico {

        }
      }


    }


    &.p9 {
      .profile-header {
        & > div:nth-child(1) {

          .mng-icon {
            img:nth-child(1) {
              position: static;
              width: 100%;
              margin-bottom: 0;
              margin-left: 0;
              margin-left: 0;
              transform: translateY(0);
            }

            img:nth-child(2) {
              position: static;
              width: 100%;
              margin-left: 0;
            }
          }

          img.profico {

          }
        }


      }
    }
  }
}


.sm-profiles {
  & .profile {
    & .profile-header {
      margin-bottom: 1.2em;

      & > div:nth-child(1) {

        img.profico {
          margin-bottom: 2em;
        }

        .name {
          margin-bottom: 0.1em;
        }

        .position {
          margin-bottom: 0.6em;
        }

        .detail {
          font-weight: 400;
          line-height: 1.6em;
        }
      }
    }

    &.p1 {
      & .profile-bio {

        padding-bottom: 2em;
        gap: 2.5%;

        & > div {
          .title {

            font-weight: bold;
            margin-bottom: 0.3em;
          }

          p {
            font-weight: 400;
            line-height: 1.8em;
          }

          p + p {
            margin-bottom: 0.4em;
          }
        }

        & > div:nth-child(2) {
          p + p {
            margin-bottom: 0;
          }

          p.title {
            margin-top: 1em;
          }
        }
      }
    }

    &.p7 {
      .profile-bio {
        position: relative;
        display: grid;
        grid-template-columns: 100%;
        gap: 5%;
      }
    }

    & .profile-bio {

      padding-bottom: 1em;
      gap: 2.5%;

      & > div {
        .title {
          font-weight: bold;
          margin-bottom: 0.3em;
        }

        p {
          font-weight: 400;
          line-height: 1.8em;
        }

        p + p {
          margin-bottom: 0.4em;
        }
      }
    }
  }

  .profile + .profile {
    padding-top: 10px;
  }

}

.sm-profiles {
  gap: 0.5vw;
}

.adviser {
  margin-top: 60px;

  > div {
    margin-top: 50px;
    gap: 5%;

    > div {
      img {
        width: 90vw;
        margin-bottom: 1.5em;
        margin-inline: auto;
      }

      p:nth-child(2) {
        margin-bottom: 0.1em;
      }

      p:nth-child(5) {
        font-weight: 400;
        line-height: 1.8em;
      }
    }
  }
}

.generalbg {
  margin-top: 10em;
  padding: 8em 1em 11em 1em;
}

.generalbg.bg2 {
  margin-top: 5em;
}

.business-details {
  margin-top: 2em;
}

.com-profile {
  font-size: 15px;
  gap: 1em;

}

.business-details {
  > div {
    position: relative;
    display: grid;
    margin-top: 5em;
    grid-template-columns: 1fr 1fr;
    gap: 3% 4%;
  }
}

.another {
  margin-top: 10em;
  grid-template-columns: 1fr;
}

.another {
  & > div {
    .title {
      font-size: 16px;
    }
  }
}

.another {
  .bank, .consultant {
    margin-bottom: 2em;
    text-align: center;

    .title {
      margin-bottom: 2em;
    }
  }
}

.Corporate-profile-header {
  img:nth-child(2) {
    width: 5em;
  }
}

.com_message {
  font-size: 1.1em;
  font-weight: bold;
  max-width: 1080px;
  margin: 2rem auto 4rem;
  padding: 0 1em;
}

.message {
  > p {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.9em;
    max-width: min(71vw, 48rem);
    margin-top: 1em;
  }
}

.sm-profiles {
  & .profile {
    &.p1 {
      & .profile-bio {
        & > div {
          p + p {
            font-size: 14px;
            margin-bottom: 0.4em;
          }
        }
      }
    }
  }
}


.privacypolicy {
  & .container {
    & .sidemenu {
      .info_jp {
        font-size: 15px;
        font-weight: 700;
      }
    }
  }
}

.privacypolicy {
  & .container {
    & .content {
      .font-14 {
        font-size: 15px;
        line-height: 30px;
        letter-spacing: 3px;
      }
    }
  }
}

.privacypolicy {
  & .container {
    & .content {
      & > div {
        .title {
          margin-bottom: 40px;

          p.font-12 {
            font-size: 16px;
          }
        }
      }
    }
  }
}


.business-details {
    & > div {
        & .detail {
            p {
                font-size: 14px;
                line-height: 1.6;
            }
        }
    }
}


.com-profile {
    justify-content: flex-start;
    justify-items: flex-start;
}

.history-ttl {
    font-size: 2.8em;
    font-weight: bold;
       transform: translateY(.7em);
position:relative;
        letter-spacing: 1.5px;
img{
            position: absolute;
            right: 1em;
            top: 0;
            height: 120%;
}
}

    .history-head {
        img:nth-child(1) {
            order: 0;
            margin-top: -3em;
            width: 12em;

        }
    }