body {
  --theme-color: #fff;
  --card-background-color: #fff;
  --background-image: url("../images/business/background.png");

  &.theme-dotlife {
    --theme-color: var(--color-dotlife);
    --card-background-color: #FFCCE5;

    &.life1 {
      --cover-image: url("../images/business/dotlife1/dotlife1_cover.png");
    }

    &.life2 {
      --cover-image: url("../images/business/dotlife1/dotlife2_cover.png");
    }

    &.life3 {
      --cover-image: url("../images/business/dotlife1/dotlife3_cover.png");
    }

  }

  &.theme-dothome {
    --theme-color: var(--color-dothome);
    --background-image: url("../images/business/dothome_background.png");
    --card-background-color: #CCEAD8;

    &.home1 {
      --cover-image: url("../images/business/dothome/dothome1_cover.png");
    }

    &.home2 {
      --cover-image: url("../images/business/dothome/dothome2_cover.png");
    }

  }

  &.theme-dotstay {
    --theme-color: var(--color-dotstay);
    --background-image: url("../images/business/dotstay_background.png");
    --card-background-color: #CCEAFF;

    &.stay1 {
      --cover-image: url("../images/business/dotstay/dotstay2_cover.png");
    }

    &.stay2 {
      --cover-image: url("../images/business/dotstay/dotstay1_cover.png");
    }

  }

  &.theme-dotcenter {
    --theme-color: var(--color-dotcenter);
    --background-image: url("../images/business/dotcenter_background.png");
    --card-background-color: #FFF3CC;

    &.center1 {
      --cover-image: url("../images/business/dotcenter/dotcenter1_cover.png");
    }

    &.center2 {
      --cover-image: url("../images/business/dotcenter/dotcenter2_cover.png");
    }

  }

  &.theme-dotjunior {
    --theme-color: var(--color-dotjunior);
    --background-image: url("../images/business/dotjunior_background.png");
    --card-background-color: #FFE5CC;

    &.junior1 {
      --cover-image: url("../images/business/dotjunior/dotjunior1_cover.png");
    }

    &.junior2 {
      --cover-image: url("../images/business/dotjunior/dotjunior2_cover.png");
    }

  }

  &.theme-dotwork {
    --theme-color: var(--color-dotwork);
    --background-image: url("../images/business/dotwork_background.png");
    --card-background-color: #CCEBE5;

    &.work1 {
      --cover-image: url("../images/business/dotwork/dotwork1_cover.png");
    }

    &.work2 {
      --cover-image: url("../images/business/dotwork/dotwork2_cover.png");
    }

    &.work3 {
      --cover-image: url("../images/business/dotwork/dotwork3_cover.png");
    }

  }

  &.theme-dotinnovation {
    --theme-color: var(--color-dotinnovation);
    --background-image: url("../images/business/dotwork_background.png");
  }


}


header {
  .inner {

  }
}

.business-details {
  .top {
    position: relative;
    background-color: var(--theme-color);

    .top-cover {
      display: block;
      height: 67vw;
      margin-right: auto;
      animation: mask-animation 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
      -webkit-mask-image: url("../images/business/dotlife1/mask.svg");
      -webkit-mask-size: 90%;
      mask-image: url("../images/business/dotlife1/mask.svg");
      mask-size: 90%;
      mask-repeat: no-repeat;
      mask-position: 0% -4vw;


      .cover-trim {
        width: 100vw;
        height: 140vw;
        background-image: var(--cover-image);
        object-fit: cover;
        object-position: 100% 100%;

        &.life1 {
          background-position: 120% -2%;
          background-size: 120%;
        }

        &.life2 {
          background-position: 110% 0%;
          background-size: 105%;
        }

        &.life3 {
          background-position: 110% 0%;
          background-size: 102%;
        }

        &.home1 {
          background-position: 180% 0%;
          background-size: 105%;
        }

        &.home2 {
          background-position: 120% 0%;
          background-size: 150%;
        }

        &.stay1 {
          background-position: 180% 0%;
          background-size: 105%;
        }

        &.stay2 {
          background-position: 140% 0%;
          background-size: 105%;
        }

        &.center1 {
          background-position: 140% 0%;
          background-size: 110%;
        }

        &.center2 {
          background-position: 300% 0%;
          background-size: 105%;
        }

        &.junior1 {
          background-position: 200% 0%;
          background-size: 105%;
        }

        &.junior2 {
          background-position: 110% 0%;
          background-size: 130%;
        }

        &.work1 {
          background-position: 300% 0%;
          background-size: 105%;
        }

        &.work2 {
          background-position: 120% 0%;
          background-size: 105%;
        }

      }
    }


    .logo {
      position: absolute;
      top: 52%;
      left: 57%;
      min-width: 25vw;
      border-bottom: 5px solid var(--theme-color);
      scale: 1.0;

      svg {
        margin-bottom: 2vw;
      }

      p {
        font-size: 1.6vw;
        font-weight: bolder;
        margin-bottom: 2vw;
      }

      &.life2 {
        svg {
          fill: white;
        }

        p {
          color: white;
        }
      }

      &.life3 {
        top: 15%;
        left: 5%;
        border-bottom: 5px solid white;

        p {
          color: white;
        }
      }

      &.center2 {
        svg {
          fill: white;
        }

        p {
          color: white;
        }
      }

      &.junior1 {
        svg {
          fill: white;
        }

        p {
          color: white;
        }
      }

      &.junior2 {
        svg path {
          fill: white;
        }

        p {
          color: white;
        }
      }

      &.work2 {
        svg path {
          fill: white;
        }

        p {
          color: white;
        }
      }
    }
  }

  .message-group1 {
    max-width: 25rem;
    margin-right: 0;
    margin-left: auto;

    .message1 {
      font-size: 2.5rem;
      line-height: 1.75em;
      margin-bottom: 1.75em;
      padding-bottom: 1.5em;
      color: var(--theme-color);
      border-bottom: 5px solid var(--theme-color);
    }

    .message2 {
      line-height: 2.5em;
    }
  }

  .reason {
    margin-top: min(10vw, 324px);

    .img {
      width: 3rem;
      transform: translate(8px, 8px);
    }

    .title {
      .shadow-box {
        font-size: 1.25rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        text-align: center;
        color: var(--theme-color);

        --border-color: var(--theme-color);
        --shadow-color: var(--theme-color);
        --shadow-size: 1.5rem;
      }
    }

    .reason-grid {
      display: grid;
      margin-top: 6rem;
      grid-template-columns: 50% 50%;
      gap: 10% 0%;
      justify-items: center;


      .grid-item {
        display: flex;
        flex-direction: column;
        width: 80%;

        .title {
          font-size: 1.25rem;
          display: flex;
          align-items: end;
          color: var(--theme-color);
          gap: 1rem;

          svg {
            flex-shrink: 0;
            width: 4em;
            fill: var(--theme-color);

            * {
              fill: var(--theme-color);
            }
          }
        }

        .shadow-box {
          font-size: 14px;
          font-weight: bold;
          line-height: 32px;
          flex-grow: 1;
          margin-top: 2rem;
          padding: 40px 40px 40px 40px;
          --border-color: var(--theme-color);
          --shadow-color: var(--theme-color);
          --background-color: var(--card-background-color);
          --shadow-size: 35px;

          .dotline {
            margin: auto;
            padding-top: 40px;
          }
        }
      }
    }
  }

  .survey {
    margin-top: 15vw;

    .title {
      font-size: 0.9375rem;
      width: 20rem;
      margin-right: auto;
      margin-left: auto;
      padding-top: 0.5em;
      padding-bottom: 0.5em;
      text-align: center;
      color: var(--theme-color);
      --border-color: var(--theme-color);
      --shadow-color: var(--theme-color);
    }

    .survey-result {
      display: flex;

      .flex-center {
        > div {
          width: 5rem;

          .quicksand {
            font-size: 3.125rem;
            font-weight: bold;

            span {
              font-size: 4.8125rem;
              line-height: 1.2em;
            }
          }
        }
      }
    }
  }

  .customer-voices {
    .title {
      position: relative;
      z-index: -1;
      max-width: 40rem;
      margin-right: 0;
      margin-left: auto;
      padding-top: 8rem;
      padding-right: 0.75rem;
      padding-bottom: 8rem;
      transform: translateY(-5rem);
      background: var(--background-image);

      .shadow-box {
        font-size: 1.25rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        text-align: center;
        color: var(--theme-color);
        background-color: white;
        --border-color: var(--theme-color);
        --shadow-color: var(--theme-color);
      }
    }

    .voices {
      img {
        width: 580px;
      }

      img:not(:last-child) {
        margin-bottom: -5rem;
        margin-left: 2rem;
      }

      img:nth-child(2) {
        margin-top: 13rem;
      }

      img:first-child {
        margin-top: -14rem;
      }

      img:nth-child(2n) {
        margin-right: 0;
        margin-left: auto;
      }
    }
  }

  .box {
    .shadow-box {
      display: flex;
      margin-top: 8rem;

      div:first-child {
        flex-grow: 1;

        p:first-child {
          font-size: 2.8rem;
font-weight:bold;
max-width:12em;
        }

        img {
          margin-top: 1em;
        }
      }

      .button {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-top: 3em;
        padding-top: 1.75em;
        padding-bottom: 1.8em;
        color: white;
        gap: 1em;

        img {
          transform: translateY(0.5em);
        }
      }
    }
  }

  .entry {
    .shadow-box {
      --border-color: var(--theme-color);
      --shadow-color: var(--theme-color);

      div:first-child {
        p:first-child {
          color: var(--theme-color);
        }
      }

      .button {
        --button-color: var(--theme-color);
      }
    }
  }

  .offices {
    .button {
      display: flex;
      align-items: normal;
      flex-direction: column;
      justify-content: none;
      text-align: none;

      img {
        margin: auto;
      }

      p {
        margin: auto;
      }
    }
  }

  .contact {
    margin-bottom: 6rem;
    padding: 2em 6em;
  }
}

.business-innovation {
  .top {
    position: relative;

    .images {
      margin-top: 4rem;
    }

    .description {
      margin-top: 4rem;
      padding-bottom: 3rem;

      p:nth-child(1) {
        font-size: 1.5rem;
        text-align: center;
      }

      p:nth-child(2) {
        font-size: 0.9375rem;
        line-height: 1.85em;
        margin-top: 1rem;
      }
    }

    .arrow {
      position: absolute;
      z-index: -1;
      top: 0;
      left: 0;
      transform: translateX(-85%);
    }
  }

  .card-container {
    max-width: min(780px, calc(100vw - 8%));
    margin-top: 6rem;
    margin-right: auto;
    margin-left: auto;

    .shadow-box {
      background-color: white;
      --border-color: var(--color-red);
      --shadow-color: var(--color-red);

      .num {
        position: relative;
        left: 100%;
        display: flex;
        transform: translate(10px, -25px);

        p {
          font-weight: bold;
          position: absolute;
        }

        .font-30 {
          transform: translateX(-42px);
          letter-spacing: 2px;
        }

        .font-10 {
          transform: rotateZ(90deg) translateX(10px);
          transform-origin: 0% 50%;
        }
      }

      .inner {
        max-width: 618px;
        margin-right: auto;
        margin-left: auto;

        .card-header {
          display: flex;
          gap: 2em;

          img {
            width: 232px;
          }

          .texts {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
          }

          a {
            color: black;
          }

          .mt-2 img {
            width: 50px;
          }
        }
      }

      .text-logo {
        flex-shrink: 0;
        width: 250px;
        max-width: 30%;
      }
    }
  }

  .button {
    --button-color: var(--color-red);
  }
}

.location-body {
  overflow: visible;
}

.location {
  font-weight: 700;


  .block-center {
    margin-right: 0;
    margin-bottom: -3em;
  }

  .grid {
    display: grid;
    grid-template-columns: 148px auto;
    gap: 2em;
  }

  .button {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-right: 3em;
    padding-left: 3em;
    gap: 1em;
  }

  .shadow-box {
    padding: 0.5em 0.8em;
    color: var(--color-mediumblue-500);
    border-radius: 8px;
  }

  .cities {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    gap: 1em;
    grid-template-columns: repeat(5, 1fr);

    a {
      display: inline-block;
      padding: 0.25rem 1.5rem;
      text-decoration: none;
      color: black;
      border: 1px solid;
      border-radius: 50px;
    }
  }

  label {
    display: flex;
    align-items: center;
    gap: 0.3em;
  }

  .services {
    display: grid;
    margin-top: 5em;
    margin-bottom: 5rem;
    padding-top: 2em;
    gap: 4em 2em;
    grid-template-columns: repeat(3, 1fr);

    img {
      width: auto;
      height: 1.8rem;
      margin-right: auto;
      margin-bottom: 1em;
      margin-left: 0.5em;
    }

    div:has(> label) {
      display: flex;
      flex-direction: column;
      gap: 0.5em;
    }

    a {
      line-height: 2.25;
      display: block;
      color: black;
    }
  }

  .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4em 2em;

    .images {
      display: flex;
      align-items: end;
      gap: 1em;

      div:first-child {
        display: flex;
        overflow: hidden;
        align-items: end;
        width: 148px;
        max-height: 148px;

        img {
          margin: auto auto 0 0;
        }
      }

      > img {
        width: 64px;
      }
    }
  }

  .filters {
    display: flex;
    align-items: start;
    justify-content: center;
    margin-top: 3rem;
    gap: 1.5rem;

    > span {
      margin-top: 2.5rem;
    }

    .filter-title {
      font-size: var(--font-size-16);
      font-weight: 700;
      display: inline-block;
      margin-bottom: 0.5em;
      color: var(--color-mediumblue-500);
    }

    .filter {
      flex-grow: 1;
      margin-right: 8px;

      &:has(.open) {
        position: absolute;
        margin-bottom: 2em;
      }
    }

    .toggle-submenu {
      display: flex;
      gap: 2.5em;
    }

    .filter-content {
      position: unset;
      display: flex;
      align-items: start;
      flex-direction: column;
      margin-top: 0.75em;
      padding: unset;
      transform: unset;
      border: unset;
      border-bottom-right-radius: unset;
      border-bottom-left-radius: unset;
      background-color: unset;
      gap: 0.75em;
    }
  }

  .filter-button {
    width: 10rem;
    margin: 2.5em auto 3rem;
  }
}

.social-innovation {
  .social-top {
    min-height: min(70vw, 756px);
    background-color: var(--theme-color);

    > img {
      position: relative;
      bottom: 0;
      left: 0;
      width: 1080px;
    }

    > div {
      line-height: 2em;
      position: absolute;
      z-index: 1;
      left: 50%;
      display: flex;
      flex-direction: column;
      max-width: 540px;
      min-height: min(70vw, 756px);
      margin-top: 3rem;
      margin-right: 0;
      margin-left: auto;
      padding-right: 2rem;
      padding-bottom: 0;
      color: white;

      img {
        width: 80%;
        max-width: 80%;
        margin-bottom: 40px;
      }

      p {
        margin-top: auto;

        margin-bottom: 40px;
      }
    }
  }

  .shadow-box {
    font-weight: 700;
    position: relative;
    max-width: 768px;
    margin-right: auto;
    margin-left: auto;
    color: black;
    background-color: #fff;
    --shadow-size: 2rem;

    &:first-child {
      margin-top: 7rem;
    }

    &:last-child {
      margin-bottom: 7rem;
    }

    &.dotlife {
      --border-color: var(--color-dotlife);
      --shadow-color: var(--color-dotlife);
    }

    &.dothome {
      --border-color: var(--color-dothome);
      --shadow-color: var(--color-dothome);
    }

    &.dotstay {
      --border-color: var(--color-dotstay);
      --shadow-color: var(--color-dotstay);
    }

    &.dotcenter {
      --border-color: var(--color-dotcenter);
      --shadow-color: var(--color-dotcenter);
    }

    &.dotjunior {
      --border-color: var(--color-dotjunior);
      --shadow-color: var(--color-dotjunior);

      .flex {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
      }

      p, a {
        white-space: wrap !important;
      }
    }

    &.dotwork {
      --border-color: var(--color-dotwork);
      --shadow-color: var(--color-dotwork);
    }

    &.dotinnovation {
      --border-color: var(--color-dotinnovation);
      --shadow-color: var(--color-dotinnovation);

      img.icon {
        width: 80%;
      }

      a {
        display: inline-block;
      }
    }

    img.icon {
      width: 45%;
    }

    .dotline {
      position: relative;
      width: 50%;
      margin-right: 0;
      margin-bottom: 2em;
      margin-left: auto;
      border-bottom: 1px solid black;

      img {
        position: absolute;
        top: 0;
        bottom: 0;
        padding: 0 2em;
        transform: translate(50%, -50%);
        background-color: white;
      }

      .bg-deco {
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
      }
    }

    .flex {
      display: grid;
      justify-content: space-evenly;
      text-align: center;
      gap: 2rem;
      grid-template-columns: repeat(3, 1fr);

      &:has(.kiraku) {
        gap: .6rem;
      }

      img {
        width: auto;
        height: 4em;
        margin-right: auto;
        margin-left: auto;

        &.kiraku {
          height: 2em;
          margin-top: 1em;
          margin-bottom: 0;
        }
      }

      p {
        margin-top: 1em;
        white-space: nowrap;
      }

      a {
        font-size: 0.625rem;
        display: inline-block;
        margin-top: 3em;
        margin-bottom: 2rem;
        white-space: nowrap;
        color: black;
      }
    }

    .flex.biyou {
      display: grid;
      justify-content: space-evenly;
      text-align: center;
      gap: .6rem;
      grid-template-columns: repeat(3, 1fr);
    }

  }

  .title {
    font-size: 1.25rem;
    margin-top: 4rem;
    margin-bottom: .5em;;
  }

  p.font-14.l-height-2.mt-4 {
    margin-top: 0;
  }

  .dotinnovation p.font-14.l-height-2.mt-4.mb-4 {
    width: 80%;
    margin: 2rem auto 6rem;
  }

  .dotinnovation .d-grid-2.gap-2.mt-4.pl-2.pr-2 {
    display: grid;

    div {
      position: relative;

      a {
        position: absolute;
        bottom: 0;
        left: 0;
        padding-bottom: 0;
      }

      .font-20 {
        font-size: 1.1rem;

        + p.font-14 {
          font-size: .8em;
          padding-bottom: 4rem;
        }
      }
    }
  }
}

.only-sp {
  display: none;
}

.animation {
  position: absolute;
  z-index: -1;
  right: max(35vw, calc(50vw - 540px + 378px));
  margin-top: min(10vw, 108px);

  transform: scale(1);

  transform-origin: center;
  animation: scale-animation linear both;

  &.dotcenter {
    right: max(50vw, calc(50vw - 540px + 540px));
  }

  animation-timeline: view();

  &.animation1, &.animation3 {
    right: max(55vw, calc(50vw - 540px + 378px));
  }

  &.animation2 {
    right: unset;
    left: max(55vw, calc(50vw - 540px + 378px));
  }

  &.animation3, &.animation4 {
    top: 50%;
  }

  &.animation4 {
    right: unset;
    left: max(65vw, calc(60vw - 540px + 378px));
  }

  &.animation5 {
    right: max(05vw, calc(15vw - 540px + 378px));
    transform: scale(2);
  }

  &.animation6 {
    top: 10%;
    right: unset;
    left: max(35vw, calc(30vw - 540px + 378px));
  }

  &.animation7 {
    bottom: -10%;
    left: max(-15vw, calc(-10vw - 540px + 378px));
    transform: scale(2);
  }
}


@keyframes mask-animation {
  0% {
    mask-size: 0%;
    mask-position: 50vw calc(30vw);

  }
  100% {
    mask-size: 90%;
    mask-position: 0% -4vw;
  }
}

@keyframes scale-animation {
  0% {
    transform: scale(0.2);
  }
  100% {
    transform: scale(1);
  }
}

.hero-grid {
  display: grid;
  margin-top: 1.5rem;
  margin-bottom: 5rem;
  grid-template-columns: repeat(5, 1fr);
  gap: 1em;

  img {
    width: 100%;
    border-radius: 4px;
  }

  .flip {
    position: relative;
    width: var(--size);
    height: var(--size);
    --size: calc(((min(1080px, 92vw) - 2em - 148px) - 4em) / 5);
  }

  .flip-front, .flip-back {
    position: absolute;
  }

  .flip-back {
    border-radius: 12px;
  }

  a:last-child {
    .flip-back {
      background-color: white !important;

      > div {
        position: absolute;
        width: 100%;
        height: 100%;
        transition: all .5s ease-in;
        transform-origin: left bottom;
        border-radius: 12px;
        background-color: var(--color-mediumblue-500);
      }

      > div:nth-child(1) {
        clip-path: polygon(100% 6%, 100% 0, 0 0, 0 36%);
      }

      > div:nth-child(2) {
        clip-path: polygon(100% 15%, 100% 100%, 0 100%, 0 45%);
      }
    }
  }
}

.hero-anim {
  margin-top: 1.5rem;

  img {
    width: 100%;
  }
}

.filter-bar {
  font-size: var(--font-size-10);
  font-weight: bold;
  position: relative;
  z-index: 12;
  height: 2em;
  margin-top: 5rem;

  p {
    position: absolute;
    z-index: 11;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2em;
    padding: 0 1em;
    cursor: pointer;
    color: white;
    border-radius: 10px;
    background-color: #0040D6;
    gap: 1rem;

    span {
      transform: rotate(90deg);
    }

    &:has(+ .open) {
      span {
        transform: rotate(-90deg);
      }
    }
  }
}

.filter-content {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
  transform: translateY(calc(100% - 1em));
  border: 1px solid #0040D6;
  border-bottom-right-radius: 22px;
  border-bottom-left-radius: 22px;
  background-color: white;
  gap: 1rem;

  img {
    width: auto;
    height: 1.75rem;
  }

  &:not(.open) {
    display: none;
  }
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
}

.fixed {
  position: fixed;
  top: 0px;
  right: 4%;
  margin-top: 30px;
}

.social-innovation.theme-dotinnovation {
  .title {
    font-size: 1.25rem;
    width: 80%;
    margin: 4rem auto .5rem;
    margin-top: 4rem;
    margin-bottom: .5em;
  }
}

.social-innovation {
  & .dotinnovation .d-grid-2.gap-2.mt-4.pl-2.pr-2 {
    & div {
      a {
        font-size: .8rem;
        position: absolute;
        bottom: 0;
        left: 0;
        padding-bottom: 0;
      }
    }
  }
}

.business-details {
  & .box.offices {
    & .shadow-box {
      & div:first-child {
        p:first-child {
          color: #0000c8;
        }
      }
    }
  }
}

.business-innovation {
  & .card-container {
    & .shadow-box {
      & .num {
        .font-30 {
          transform: translateX(-55px);
          letter-spacing: 2px;
        }
      }
    }
  }
}

.business-innovation {
  & .card-container {
    & .shadow-box {
      & .inner {
        & .card-header {
          .mt-2 .modal-wrapper img {
            width: 650px;
          }
        }
      }
    }
  }
}

.location .box {
  .shadow-box {
    font-weight: normal;
    display: flex;
    margin: 2rem 0 8rem;
    margin-top: 8rem;
    padding: 2rem;

    div:first-child {
      flex-grow: 1;

      p:first-child {
        font-size: 3.125rem;
      }

      img {
        margin-top: 1em;
      }
    }

    .button {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-top: 3em;
      padding-top: 1.75em;
      padding-bottom: 1.8em;
      color: white;
      gap: 1em;

      img {
        transform: translateY(0.5em);
      }
    }
  }
}


.location .offices {
  .button {
    display: flex;
    align-items: normal;
    flex-direction: column;
    justify-content: none;
    text-align: none;

    img {
      margin: auto;
    }

    p {
      margin: auto;
    }
  }
}

.social-innovation {
  & .dotinnovation .d-grid-2.gap-2.mt-4.pl-2.pr-2 {
    & div {
      .font-20 {
        font-size: 1.1rem;
        padding-left: 15px;
        border-left: 5px solid var(--color-dotinnovation);

        + p.font-14 {
          font-size: .8em;
          padding-bottom: 2rem;
        }
      }
    }
  }
}

.social-innovation {
  .dotinnovation p.font-14.l-height-2.mt-4.mb-4 {
    width: 80%;
    margin: 2rem auto 2rem;
  }
}

.social-innovation {
  & .shadow-box {
    & .flex {
      a {

        margin-top: 1em;

      }
    }
  }
}


/*****�ύX*******/
.location {
    & .services {
        img {
           margin-left: 0;
        }
    }
}

.location {
    & .services {
        div {
           > p{
color:#000;

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

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

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

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

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

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

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


.location {
    .services {
 gap: 4em 6em;
    }
}

.business-details {
    & .reason {
        & .reason-grid {
            & .grid-item {
                .title {
align-items: center;
                }
            }
        }
    }
}

.kousiki-btn {
    margin: 15em auto 4em;
    text-align: center;
}
.theme-dotjunior .kousiki-btn {
    margin: 10em auto 0em;
    text-align: center;
}
.kousiki-btn .button {
    font-size: 1.4em;
    margin: 0 auto;
    background-color: #ff007d;
    padding: 1.5em 6em 1.5em 6em;
    position: relative;
overflow:hidden;
}

.theme-dothome .kousiki-btn .button {
   background-color: var(--color-dothome);
}

.theme-stay .kousiki-btn .button {
   background-color: var(--color-dotstay);
}
.theme-dotcenter .kousiki-btn .button {
   background-color: var(--color-dotcenter);
}

.theme-dotjunior .kousiki-btn .button {
   background-color: var(--color-dotjunior);
}

.theme-dotwork .kousiki-btn .button {
   background-color: var(--color-dotwork);
}
.kousiki-btn .button::after {
    
    background: url(../images/anime_dotlife_re.svg) no-repeat;
    background-size: 100% auto;
    position: absolute;
    left: 0;
    top: auto;
    width: 50%;
    height: 200%;
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(305deg) brightness(103%) contrast(103%);
    opacity: 0.3;
    transform: translateX(-1em) translateY(-2em);
}

.social-innovation {
    & .social-top {
        & > div {
            p {
                line-height: 1.8;
            }
        }
    }
}


.offices-s {
    width: 100%;
    margin: 18em auto 4em;
    max-width: 440px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.offices-s div:first-child img {
    max-width: 380px;
    margin: 0 auto;
    border-bottom: 4px solid var(--color-dotlife);
    padding-bottom: 1em;
}
.offices-s p {
    font-weight: bold;
    text-align: center;
    padding: 1.5em 0;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.theme-dothome .offices-s div:first-child img {
    border-bottom: 4px solid var(--color-dothome);
}
.theme-dotstay .offices-s div:first-child img {
    border-bottom: 4px solid var(--color-dotstay);
}
.theme-dotcenter .offices-s div:first-child img {
    border-bottom: 4px solid var(--color-dotcenter);
}
.theme-dotjunior .offices-s div:first-child img {
    border-bottom: 4px solid var(--color-dotjunior);
}
.theme-dotwork .offices-s div:first-child img {
    border-bottom: 4px solid var(--color-dotwork);
}

.inno6 .media-grid img {
    object-fit: cover;
        height: 150px;
    width: 100%;
}


.social-innovation {
& .theme-dotlife,& .theme-dotjunior,& .theme-innovation{
    .title {
        font-size: 1.25rem;
        margin-top: 3rem;
        margin-bottom: 1em;
        text-align: center;
        letter-spacing: 1px;
    }
}
}

/* ソーシャルビジネス改修 */

.dotcenter02 {
  .animation {
    &.animation4 {
        right: unset;
        left: max(30vw, calc(60vw - 540px + 378px));
        transform: scale(0.5) !important;
    }
  }
}

.social-innovation {
  .theme-dotjunior {
    .social-top02 {
      background-color: var(--color-dotjunior);
    }
  }
}

.social-innovation {
  .theme-dotjunior {
    .social-top03 {
      background-color: var(--color-dotinnovation);
    }
  }
}

.dotinnovation2 {
  .animation {
    &.animation7 {
        bottom: -10%;
        left: max(-15vw);
        transform: scale(0.577374) !important;
    }
  }
}
