html {
  font-size: clamp(14px, 1.49vw, 18px);
  overflow: auto;
	overflow-wrap: anywhere;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  display: grid;
  overflow: hidden;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
}

header {
  z-index: 100;
  background-color: white;

  a {
    text-decoration: none;
  }

  .inner {
    display: flex;
    border-bottom: 3px solid var(--color-dotline);

    .logo-wrapper {
      padding: 0.8rem 2rem;
    }

    .nav-wrapper {
      flex-grow: 1;
    }

    nav {
      display: flex;
      align-items: center;
      justify-content: space-evenly;
      max-width: 1080px;
      height: 100%;
      margin-right: auto;
      margin-left: auto;

      a {
        color: var(--color-white);
      }

      .nav-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;

        .toggle-submenu {
          position: absolute;
          right: 0;
          bottom: 0;
          left: 0;
          display: flex;
          align-items: center;
          justify-content: center;
          height: 15px;
          cursor: pointer;
          border: 3px solid var(--color-dotline);
          border-bottom: none;

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

          &:has(+ .open) {
            background-color: var(--color-dotline);

            .down {
              display: none;
            }
          }
        }

        .toggle-submenu::before {
          position: absolute;
          top: -250%;
          right: 0;
          bottom: -40%;
          left: 0;
          content: "";
        }

        .submenu {
          font-size: 0.56rem;
          position: absolute;
          z-index: 100;
          bottom: 0;
          left: 0;
          width: min(100vw, 250px);
          transform: translateY(100%);
          border: 3px solid var(--color-dotline);

          ul {
            padding: 0;

            li {
              padding: 0.85em 1em;
              list-style: none;
            }
          }

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

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

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

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

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

          &.dotjunior {
            background-color: var(--color-dotjunior);
          }

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

          &.dotinnovation {
            background-color: var(--color-dotinnovation);
          }
        }
      }
    }

    .recruit {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 20px;
      margin-top: 1.25rem;
      margin-right: 30px;
      padding: 12px 1rem;
      color: var(--color-white);
      border-radius: 80px;
      background-color: var(--color-mediumblue-500);
      gap: 0.5rem;

      span {
        font-size: 0.78rem;
        font-weight: bold;
      }

      img {
        width: 100%;
        max-width: 18px;
      }
    }
  }

  .bar {
    position: relative;
  }

  .menu {
    font-size: 0.67em;
    font-weight: bold;
    position: absolute;
    z-index: 100;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 138px;
    padding: 0 1em;
    color: var(--color-dotline);
    border: 3px solid var(--color-dotline);
    border-top: none;
    background-color: var(--color-white);
  }
}

footer, .open-menu-wrap {
  font-size: 0.62rem;
  color: var(--color-white);
  background-color: var(--color-mediumblue-500);

  .menu-content.inner {
    padding-right: 0;
    padding-left: 0;
  }

  ul {
    display: flex;
    flex-direction: column;
    list-style: none;

    &.guide {
      margin-top: 5px;
      margin-bottom: 5px;

      li {
        margin-top: 3px;
        margin-bottom: 8px;
      }

    }

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

  a {
    text-decoration: none;
    color: var(--color-white);
  }

  span:not(.toggle-footer-submenu), p, li:not(:first-child), li > ul li {
    display: inline-block;
    margin-top: 1em;
margin-bottom: 8px;
  }

  .inner {
    padding: 2rem 1rem 3rem;
  }

  .links {
    display: grid;
    margin-top: 10px;
    gap: 1em;
    grid-template-columns: 24% 48% 28%;

    > div:nth-child(2) > ul {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1em;
    }

    > div {
      .guide {
        padding-left: 1.5rem;
      }

      > .guide {
        padding-left: 0.5rem;

        > li:first-child {
          grid-row: 1 / 6;
        }
      }
    }

    > div:nth-child(1), > div:nth-child(2) {
      > div:first-child {
        margin-right: 1em;
        border-bottom: 1px solid white;
      }
    }

    > div:nth-child(3) {
      > div:first-child {
        p {
          margin-top: 0;
          margin-right: 1em;
          padding-right: 2em;
          padding-bottom: 2px;
          border-bottom: 1px solid white;
        }
      }

      > div:nth-child(2) {
        margin-top: 2.5em;
      }
    }
  }

  *:has(> .toggle-accordion) {
    .toggle-accordion {
      margin-left: 20px;
      transform: rotateZ(90deg);
    }

    &:has(+ .close) {
      .toggle-accordion {
        transform: rotateZ(-90deg);
      }
    }
  }

  .close {
    display: none;
  }

  .sub-grid {
    display: grid;
    align-content: start;
    grid-template-columns: 60% 40%;

    > div:nth-child(2) {
      display: flex;
      flex-direction: column;
      margin-top: 1em;
      gap: 2em;
    }

    > div:nth-child(3) {
      grid-column: 1 / 3;

      > div {
        width: min(355px, 100%);
        margin-top: 3em;
        margin-right: 0;
        margin-left: auto;

        .copyright {
          font-size: 0.56rem;
          display: flex;
          justify-content: space-between;
          margin-top: 1em;
        }
      }
    }
  }
}

html:has(.modal.open) {
  overflow: hidden;
}

.modal-wrapper {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow: auto;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.6);
  overscroll-behavior: none;

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

  .close {
    cursor: pointer;
  }
}

.open-modal {
  cursor: pointer;
}

.falling_objects {
  position: relative;
  z-index: -100;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  transform: translateY(-100%);

  img {
    position: absolute;
  }
}

.left-top-block {
  font-weight: bold;
  position: absolute;
  top: 7.5rem;
  left: 2rem;
  max-width: 130px;

  p:nth-of-type(1) {
    font-size: 0.625rem;
    margin-top: 1.5rem;
  }

  p:nth-of-type(2) {
    font-size: 0.75rem;
    margin-top: 1rem;
    white-space: nowrap;
  }
}

.modal-wrapper .modal.open {
  position: relative;
}

.message1 {
  font-weight: bold;
}


#open2, #close2 {
  &:hover {
    cursor: pointer;
  }
}

/* ヘッダーメニュー用 共通に移植する */
#menu, #menu2 {
  position: absolute;
  top: 10px;
  left: 0;
  background-color: lightgray;
}

/* checkbox は非表示 */
#check, #check2 {
  display: none; /* checkbox の非表示 */
}

/* checkbox が OFF(=初期状態) の表示・非表示設定 */
#close, #close2 {
  display: none; /* close の非表示 */
}

#menu, #menu2 {
  display: none; /* menu の非表示 */
}

/* checkbox が ON の表示・非表示設定 */
#check:checked ~ #open {
  display: none; /* open の非表示 */
}

#check2:checked ~ #open2 {
  display: none; /* open の非表示 */
}

#check:checked ~ #close {
  display: block; /* close の表示 */
}

#check2:checked ~ #close2 {
  display: block; /* close の表示 */
}

#check:checked ~ #menu {
  display: block; /* menu の表示 */
}

#check2:checked ~ #menu2 {
  display: block; /* menu の表示 */
}

.btn2 {
  /* クリック領域のデザイン */
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.open-menu-wrap > .inner2 {
  display: block;
}

#open .menu2,
#open .menu2::before,
#open .menu2::after,
#close .menu2::before,
#close .menu2::after,
#open2 .menu2,
#open2 .menu2::before,
#open2 .menu2::after,
#close2 .menu2::before,
#close2 .menu2::after {
  /* 横棒のデザイン */
  position: absolute;
  display: block;
  width: 18px;
  height: 2px;
  content: "";
  background-color: #0000C8;
}

#open .menu2, #open2 .menu2 {
  top: 50%;
  margin: -1px 5px 0;
}

#open .menu2::before, #open2 .menu2::before {
  top: -6px;
}

#open .menu2::after, #open2 .menu2::after {
  top: 6px;
}

#close .menu2::before, #close2 .menu2::before {
  top: 14px;
  left: 6px;
  transform: rotate(45deg);
}

#close .menu2::after, #close2 .menu2::after {
  top: 14px;
  left: 6px;
  transform: rotate(-45deg);
}

#menu, #menu2 {
  position: absolute;
  top: 40px;
  left: 0;
  width: 95vw;
  list-style: none;
  animation: fadeIn .2s linear;
  border-radius: 5px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.typing {
  display: none;

  &:after {
    content: "|";
    animation: typingCursor .8s ease infinite;
  }
}

@keyframes typingCursor {
  from {
    opacity: 0;
  }

  to {
    opacity: 1
  }
}

.intro {
  position: absolute;
  z-index: 10000;
  top: 0;
  right: 0;
  left: 0;
  height: 125vh;
  transition: all 2.5s ease-in;
  background-color: var(--color-mediumblue-500);
  clip-path: polygon(0 0, 100% 0, 100% 100vh, 0% 100%);

  .intro-grid {
    display: grid;
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
    padding-top: 100px;
    grid-template-columns: 55% 45%;

    > div:nth-child(1) {
      display: flex;
      flex-direction: column;
      margin-top: 2rem;
      margin-bottom: 1.5rem;
      margin-left: 2rem;

      > div:nth-child(1) {
        display: flex;
        gap: 4rem;

        > img:nth-child(1) {
          width: 8em;
        }

        > img:nth-child(2) {
          width: 7em;
        }
      }

      > div:nth-child(2) {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: end;
        margin-bottom: 1.5rem;

        img {
          width: 420px;
        }
      }

      > div:nth-child(3) {
        img {
          width: 150px;
        }
      }
    }

    > div:nth-child(2) {
      > img {
        width: auto;
        height: calc(100vh - 110px);
      }
    }
  }

  &.intro-managers {
    height: 140vh;
    clip-path: polygon(0 0, 100% 0, 100% 125vh, 0% 100%);

    .intro-grid2 {
      display: grid;
      max-width: 1080px;
      margin-right: auto;
      margin-left: auto;
      padding-top: 1rem;
      padding-right: 2rem;
      padding-left: 2rem;
      gap: 1em;
      grid-template-columns: 75% 25%;
    }
  }
}

.flip {
  width: 100%;
  background-color: transparent;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  text-align: center;
  transform-style: preserve-3d;
}

.flip-front, .flip-back {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-card {
  width: 100%;
  background-color: transparent;
  aspect-ratio: 179 / 195;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  text-align: center;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.has-top-header header {
  .bar {
    position: relative;
    height: 37px;
    border-top: 3px solid var(--color-dotline);
    border-bottom: 3px solid var(--color-dotline);
    background-color: var(--color-dotline);
  }

  .bar-messages {
    position: absolute;
    top: 0;
    right: 100vw;
    bottom: 0;
    left: -100vw;
    display: flex;
    align-items: center;
    animation: dotty 50s linear infinite;
    white-space: nowrap;
    color: white;

    p {
      display: inline;
      margin-right: 8rem;

      span {
        &:nth-child(2n) {
          font-family: "Quicksand", sans-serif;
          font-size: var(--font-size-15);
          font-weight: bold;
          margin-right: 2rem;
        }

        &:nth-child(2n+1) {
          font-size: var(--font-size-10);
          font-weight: 700;
          margin-right: 0.5rem;
        }
      }
    }
  }
}


@keyframes dotty {
  from {
    transform: translateX(100%);
  }

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

header {
  .menu.tab {
    position: fixed;
    top: 1.1rem;
    right: 2rem;
    left: unset;
  }

  #menu, #menu2 {
    span:not(.toggle-footer-submenu), p, li:not(:first-child), li > ul li {
      display: inline;
      margin-top: 0;
    }
  }
}

footer {
  .toggle-accordion, .toggle-accordion span, span:has(+ .toggle-accordion) {
    margin-top: 0 !important;
  }
}

.toggle-accordion {
  display: none !important;
}

/*追加*/
.menu {
  font-family: "Quicksand", sans-serif;

}

footer, .open-menu-wrap {
  & .sub-grid {
    & > div:nth-child(3) {
      & > div {
        .copyright {
          font-size: 0.56rem;
          display: flex;
          justify-content: space-between;
          margin-top: 1.5em;
        }
      }
    }
  }
}

/*0627追加*/
.open-menu-wrap {
  & .sub-grid {
    & > div:nth-child(3) {
      & > div {
        display: none;
      }
    }
  }
}

header {
  padding: 10px 0;
}

footer, .open-menu-wrap {
  & .sub-grid {
    & > div:nth-child(3) {
      > div {
        margin-top: 35em;
      }
    }
  }
}

.social-innovation header, .theme-dotstay header, .theme-dotlife header, .theme-dothome header, .theme-dotjunior header, .theme-dotwork header, .theme-dotcenter header, .theme-dotinnovation header {
  padding: 10px 0 0;
}

.bar-messages div {
  margin-top: -4px;
}

.knowledge2 h2, .knowledge2 h3 {
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: .5em;
}
footer, .open-menu-wrap {
    & .links {
        & > div {
            > .guide:first-child {
                padding-left: 0.5rem;
            }
        }
    }
}


footer, .open-menu-wrap {
    & .links {
        > div:nth-child(1){
.guide li{
                margin-bottom: .8rem;
.guide li{margin-bottom: 3px;}
            }
 }
 }
 }
footer, .open-menu-wrap {
span.gaibulink img {
    width: 15px;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    /* height: 100%; */
    margin-left: 5px;
}
}


/* 説明会バナー追加 */

.foot_kotei {
  position: fixed;
  right: 0;
  bottom: 0;
  box-shadow: 0 0 10px #ccc;
  max-width: 400px;
  transition: .5s;
  z-index: 99;

  a {
    img {
      width: 100%;
    }
  }
}

.foot_kotei.hide {
  transform: translateY(100%);
}

.close-btn {
  font-size: 100%;
  font-weight: bold;
  border: 1px solid #999;
  color: #999;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  width: 1.3em;
  line-height: 1.3em;
  cursor: pointer;
  transition: .2s;
  position: absolute;
  right: 5px;
  top: -10px;
  background: #fff;
  /* font-weight: bold; */
}


