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

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

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

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

      img {
        width: min(484px, 45vw);
      }

      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: 3rem;
  grid-template-columns: min(25em, 40vw) min(10em, 16vw) min(10em, 16vw);
  gap: min(2.5em, 4vw) min(5em, 8vw);

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

      > p {
        font-weight: bold;
      }
    }

    &.c1 {
      grid-column: 1 / 4;

      .card-body {
        div {
          display: flex;
          overflow: hidden;
        }
      }
    }

    &.c2 {
      .card-body {
        div img {
          overflow: hidden;
          width: min(57%, 250px);
          margin: auto;
        }
      }
    }

    &.c3 {
      grid-column: 2 / 4;

      .card-body {
        div {
          position: relative;
          height: min(12.7vw, 137px);
        }


        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;
        }

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

    &.c4 {
      .card-body {
        div img {
          overflow: hidden;
          width: 90%;
          height: 90%;
          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: 20px 20px var(--color-mediumblue-500);
      }

      /*> div:hover {
        border: 4px solid var(--color-mediumblue-500);
        border-radius: 20px;
        box-shadow: 10px 10px 0px -4px white, 10px 10px var(--color-mediumblue-500);
      }*/
    }
  }

  .logo {
    img {
      padding-top: 30%;
      scale: 1.2;
    }
  }

  .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;
    }
  }
}

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

  .profile {

    .profile-header {
      position: relative;
      display: grid;
      margin-bottom: 2.2em;
      grid-template-columns: 30% 65%;
      gap: 5%;

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

        img:nth-child(1) {
          width: 31%;
          margin-bottom: 27%;
          margin-left: 10%;
        }

        .mng-icon {
          display: grid;
          width: 63%;
          margin-bottom: 27%;
          grid-template-columns: 1fr 1fr;
          gap: .5rem;

          img {
            width: 100%;
          }

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

        img.profico {
          display: none;
        }

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

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

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

    .profile-bio {
      font-weight: bold;

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

      .title {
        font-size: 16px;
      }
    }

    &.p1 {
      margin-top: -95px;

      .profile-bio {
        position: relative;
        display: grid;
        grid-template-columns: 48% 40%;
        gap: 12%;

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

          p {
            font-size: 14px;
          }

          .title {
            font-size: 16px;
          }

          a {
            font-size: 14px;
            font-weight: normal;
            width: 165px;
            margin-top: auto;
            padding: 4px 8px;
            text-align: center;
            text-decoration: none;
            color: white;
            border-radius: 20px;
            background-color: var(--color-mediumblue-500);
          }
        }

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

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

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

    &.p9 {
      .profile-header {
        > div:nth-child(1) img {
          width: 50%;
          margin-bottom: 27%;
          margin-left: 3%;
        }
      }
    }
  }
}

.adviser {
  margin-top: 150px;

  .title {
    font-size: 14px;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
    color: var(--color-mediumblue-500);
    border: 4px solid var(--color-mediumblue-500);
    border-radius: 20px;
    box-shadow: 10px 10px var(--color-mediumblue-500);
  }

  .title {
    font-size: 14px;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
    color: var(--color-mediumblue-500);
    border: 4px solid var(--color-mediumblue-500);
    border-radius: 20px;
    box-shadow: 10px 10px var(--color-mediumblue-500);
  }

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

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

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

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

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

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

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

.thum-managers-sp {
  display: none;
}

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

.thum-managers-b-sp {
  display: none;
}

.Corporate-profile-header {
  .Corporate-profile {
    position: relative;
    display: grid;
    margin-top: 7vw;
    grid-template-columns: 15% 20%;
    gap: 1%;

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

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

  img:nth-child(2) {
    margin: auto;
    margin-top: 2vw;
  }

  img:nth-child(3) {
    margin: auto;
    margin-top: 5vw;
    margin-bottom: 5vw;
  }
}

.com-profile {
  font-size: 14px;
  font-weight: bold;
  line-height: 40px;
  position: relative;
  display: grid;
  margin-bottom: 5vw;
  grid-template-columns: 33% 56%;
  gap: 11%;
}

.business-details {
  margin-top: min(15vw, 6em);

  .title {
    font-size: 14px;
    font-weight: bold;
    display: block;
    width: 100%;
    max-width: 20em;
    margin-right: auto;
    margin-bottom: min(12vw, 6em);
    margin-left: auto;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    text-align: center;
    --shadow-size: 10px;
  }

  > div {
    position: relative;
    display: grid;
    grid-template-columns: 22% 22% 22% 23%;
    gap: 10% 4%;

    .detail {
      img {
        padding-left: 12px;
        scale: 1.4;
      }

      p {
        font-size: 14px;
        line-height: 30px;

        a {
          color: #000;
        }
      }

      .header {
        font-size: 13px;
        font-weight: bold;
        margin-top: 1rem;
        letter-spacing: 1px;

        &.life {
          border-bottom: 4px solid var(--color-dotlife);
        }

        &.home {
          border-bottom: 4px solid var(--color-dothome);
        }

        &.stay {
          border-bottom: 4px solid var(--color-dotstay);
        }

        &.cent {
          border-bottom: 4px solid var(--color-dotcenter);
        }

        &.junior {
          border-bottom: 4px solid var(--color-dotjunior);
        }

        &.work {
          border-bottom: 4px solid var(--color-dotwork);
        }

        &.innovation {
          border-bottom: 4px solid var(--color-dotinnovation);
        }
      }
    }
  }
}

.another {
  position: relative;
  display: grid;
  margin-top: min(20vw, 8em);
  margin-bottom: min(12vw, 6em);
  grid-template-columns: 32% 32% 32%;
  gap: 2%;

  > div {
    .title {
      font-size: 14px;
      font-weight: bold;
      display: block;
      width: 100%;
      margin-bottom: min(12vw, 5.5em);
      text-align: center;
      color: var(--color-mediumblue-500);
      border: 4px solid var(--color-mediumblue-500);
      border-radius: 20px;
      box-shadow: 10px 10px var(--color-mediumblue-500);
    }

    p:nth-child(n+2) {
      font-size: 14px;
      line-height: 36px;
    }
  }
}

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

  .about-dotty {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(30%, 8rem);

    > img:first-child {
      transform: translateX(-35%);
    }
  }

  .dotline-social {
    font-size: 0.625rem;
    font-weight: bold;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    transform: rotate(90deg) translate(2rem, -150%);
    gap: 1em;

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

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

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

    .history-section {
      line-height: 24px;
      position: relative;
      display: grid;
      margin-top: 10px;
      margin-left: 5%;
      grid-template-columns: 16% 80%;
      gap: 4%;

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

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

  .history-picture {
    margin-top: -39%;
    margin-right: 5%;

    .pink {
      --theme-color: var(--color-dotlife);
    }

    .blue {
      --theme-color: var(--color-dotline);
    }

    .yellow {
      margin-top: -100px;
      color: black;
      --theme-color: var(--color-yellow);
    }

    .drop-shadow {
      position: relative;
      display: grid;
      width: min(100%, 488px);

      grid-template-columns: 100% 100%;

      .front {
        line-height: 45px;
        padding: 2em;
        border: 5px solid var(--theme-color);
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.9);

        .icon {
          position: absolute;
          transform: translate(0, -5em);
        }

        p:nth-child(2) {
          font-size: 30px;
          font-weight: bolder;
          margin-top: 12%;
        }

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

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

      }

      .back {
        position: relative;
        z-index: -1;
        transform: translate(calc(-100% + 40px), 40px);
        border: 5px solid var(--theme-color);
        border-radius: 20px;
        background-color: var(--theme-color);
      }
    }

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

.history-head {
  display: grid;
  grid-template-columns: 100%;

  img:nth-child(1) {
    margin-top: 7%;
  }

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

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

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

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

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

.generalbg .inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;

  img {
    margin: auto;
  }
}

.generalbg a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
  text-align: center;
  color: #fff;
}

.generalbg::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  transform: skewY(-12.5deg);
  background: #0000C8;
}

.generalbg.bg2::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  transform: skewY(-12.5deg);
  background: #FF0000;
}

.generalbg.bg3::before {
  position: absolute;
  z-index: -1;
  top: 80%;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  transform: skewY(-12.5deg);
  background: #0000C8;
}

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

  &.corp-managers {
    aspect-ratio: 924 / 190;
  }

  &.corp-news {
    aspect-ratio: 350 / 179;

    .thumb {
      overflow: hidden;

      img {
        margin-top: -13px !important;
        margin-bottom: -13px !important;
      }
    }
  }

  &.corp-history {
    aspect-ratio: 350 / 118;
  }

  &.corp-profile {
    aspect-ratio: 429 / 225;
  }
}

.color-filter {
  &.a {
    filter: hue-rotate(45deg);
  }

  &.b {
    filter: hue-rotate(90deg);
  }

  &.c {
    filter: hue-rotate(135deg);
  }

  &.d {
    filter: hue-rotate(180deg);
  }

  &.e {
    filter: hue-rotate(225deg);
  }
}

@keyframes loop-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-600%);
  }
}


/* 240628中川加筆 */

.img_pc {
  display: block !important;
}

.img_sp {
  display: none !important;
}

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

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

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

          img {
            width: 100%;
          }

          .mng-icon {
            grid-template-columns: 1fr 1.6fr;
          }
        }
      }
    }

    &.p1 {
      & .profile-bio {
        & > div {
          .title {
            margin-top: 1.5em;
          }
        }
      }
    }
  }
}

@media screen and (min-width: 1000px) {
  .sm-profiles {
    margin-top: 8rem;
    grid-template-columns: 1fr 1fr;
    gap: 3em 5em;

    & .profile {
      & .profile-header {
        & > div:nth-child(1) {
          padding-top: 20%;

          .position {
            margin-bottom: 1em;
          }

          .detail {
            line-height: 1.8em;
          }

        }
      }

      & .profile-bio {
        p {
          line-height: 1.8em;
        }

        .title {
          margin-bottom: 0.5em;
          padding-left: 10px;
          border-left: 3px solid var(--color-mediumblue-200);
        }
      }
    }
  }

  .sm-profiles1 {
    grid-template-columns: 1fr;

    & .profile {
      & .profile-header {
        & > div:nth-child(1) {
          display: block;
          padding-top: 40%;
        }
      }
    }
  }
}

.adviser {
  & > div {
    & > div {
      padding: 0 5%;

      img {
        width: 100%;
        margin-bottom: 1.5em;
        margin-inline: auto;
      }

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

      p:nth-child(3) {
        margin-bottom: 1.2em;
      }

      p:nth-child(4) {
        margin-bottom: 0.2em;
        padding-left: 10px;
        border-left: 3px solid var(--color-mediumblue-200);
      }

      p:nth-child(5) {
        line-height: 2em;
      }
    }
  }
}

/*工藤加筆0628*/
.com_message {
  font-size: .9em;
  font-weight: bold;
  max-width: 1080px;
  margin: 2rem auto 4rem;
}

.com-profile p {
    margin-bottom: 1em;
    line-height: 1.6;
    font-weight: normal;
}

.com-profile p span.pl-ttl {
    border-left: 5px solid #000;
    padding-left: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.com-profile {
    grid-template-columns: 43% 52%;
    gap: 5%;
    justify-content: center;
    justify-items: center;
}

.history-ttl {
    font-size: 4em;
    font-weight: bold;
    transform: translateY(-1em);
}