/* 共通CSS */
@media screen and (min-width: 767px) {
  .pc {
    display: block !important;
  }
  .inline_pc {
    display: inline-block !important;
  }
  .sp {
    display: none !important;
  }
}
@media screen and (max-width: 768px) {
  .pc {
    display: none !important;
  }
  .inline_pc {
    display: none !important;
  }
  .sp {
    display: block !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.small_text{
  font-size: 16px;
}

main {
  .contents {
    width: 1024px;
    margin: 0 auto 100px;
    text-align: center;
    @media screen and (max-width: 1024px) {
      width: 90%;
      margin: 0 auto 50px;
    }
    &.zeb_main_header{
      width: 100%;
      margin-top: -80px;
      padding-top: 30px;
      background: #fff;
      z-index: 99;
    }
    &.zeb-zeh_contents {
      margin: 50px auto;
        @media screen and (max-width: 1024px) {
          margin: 30px auto;
        }
      .flex_design{
        gap: 5%;
      }
      p {
        margin-bottom: 20px;
        &.office_space_text1{
          width: 55%;
            @media screen and (max-width: 1024px) {
              width: 100%;
            }
        }
        &.office_space_text2{
          width: 55%;
            @media screen and (max-width: 1024px) {
              width: 100%;
            }
        }
        &.office_space_text3{
          width: 55%;
            @media screen and (max-width: 1024px) {
              width: 100%;
            }
        }
      }
    }
    &.zeb_accordion_box{
      margin: -100px auto 50px;
        @media screen and (max-width: 1024px) {
            margin: 0 auto 50px;
        }
    }
    &.zeb_contents_4th{
      padding: 0 0 30px;
      .zeb_contents{
        background-color: unset;
        border: none;
      }
    }
  }

  p {
    font-size: 18px;
    line-height: 1.5;
    font-family: "Zen Kaku Gothic New";
    line-height: 1.8;
    @media screen and (max-width: 1024px) {
      font-size: 16px;
      margin: auto 0px 0px;
    }
  }

  h2 {
    font-size: 32px;
    line-height: 1.6;
    font-weight: bold;
    font-family: "Zen Kaku Gothic New";
    @media screen and (max-width: 1024px) {
      font-size: 30px;
    }
  }

  h3 {
    font-size: 30px;
    line-height: 1.6;
    font-family: "Zen Kaku Gothic New";
    @media screen and (max-width: 1024px) {
      font-size: 20px;
    }
  }

  h4 {
    font-size: 25px;
    line-height: 1.6;
    font-family: "Zen Kaku Gothic New";
  }

  .title {
    font-size: 20px;
    letter-spacing: 20px;
    font-family: "Zen Kaku Gothic New";
    margin: 75px 0 50px;
    padding-bottom: 20px;
  }

  .title_underline {
    font-size: 20px;
    letter-spacing: 20px;
    font-family: "Zen Kaku Gothic New";
    margin: 75px 0 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
    text-align: center;
  }

  .image_header {
    display: block;
    margin: 20px auto 40px;
    width: auto;
    height: auto;
    max-height: 40px;
    @media screen and (max-width: 768px) {
      max-height: 20px;
    }
  }
}

.fs-20 {
  font-size: 20px;
  line-height: 1.6;
}

/* ヘッダーCSS */
header {
  .header_icon {
    margin-left: 20px;
    width: 160px;
    height: auto;
    @media screen and (max-width: 768px) {
      margin: 0;
      width: 100px;
      height: auto;
    }
  }

  .header_items {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 20px;
    z-index: 100;
    background-color: #fff;
    @media screen and (max-width: 768px) {
      padding: 15px 20px;
    }
    a {
      z-index: 100;
    }
  }

  .icon_and_hamburger {
    display: flex;
    align-items: center;
    gap: 10px;
    .sns_icon {
      img {
        width: 40px;
        height: auto;
      }
    }
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 45px;
    height: 35px;
    cursor: pointer;
    position: relative;
    margin: 20px 25px 20px 20px;
    @media screen and (max-width: 768px) {
      margin: 10px 5px 0 0;
      z-index: 100;
    }
    .bar {
      width: 100%;
      height: 5px;
      background: #15638c;
      transition: 0.3s;
    }
    &.active .bar:nth-child(1) {
      @media screen and (max-width: 768px) {
        background: #fff;
      }
      transform: translateY(15px) translateX(30px) rotate(90deg);
    }
    &.active .bar:nth-child(2) {
      @media screen and (max-width: 768px) {
        background: #fff;
      }
      transform: translateX(10px) rotate(90deg);
    }
    &.active .bar:nth-child(3) {
      @media screen and (max-width: 768px) {
        background: #fff;
      }
      transform: translateY(-15px) translateX(-10px) rotate(90deg);
    }
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 140px;
    right: 0;
    width: 150px;
    background: #15638c;
    text-align: start;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    border: 2px solid #fff;
    margin-right: -10px;
    padding: 40px 0 40px;
    z-index: 9999;
    opacity: 0.9;
    @media screen and (max-width: 1024px) {
      width: 17%;
      @media screen and (max-width: 768px) {
        top: 0;
        width: 100%;
        height: 100vh;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border: none;
        margin-right: 0;
        z-index: 99;
        text-align: center;
      }
    }
    .menu_item {
      display: block;
      position: relative;
      margin: 15px 15px 15px 30px;
      color: #fff;
      span{
        display: inline-block;
        position: relative;
      &::after{
          content: ''; /* 擬似要素にはcontentプロパティが必須 */
          position: absolute;
          bottom: -5px;
          left: 0;
          width: 0; /* 初期状態は下線を非表示 */
          height: 2px; /* 下線の高さ */
          background-color: #fff; /* 下線の色 */
          transition: width 0.3s ease-out; /* widthの変化にアニメーションを設定 */
      }
      &:hover::after{
        width: 100%;
      }
    }
    }
  }

  .menu.show {
    display: flex;
    justify-content: center;
  }
}
/* ヘッダーCSS ここまで */

/* サイドメニューCSS */
.sidebar {
  margin-right: 30px;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
  justify-content: center;
  max-height: 90vh;
  a {
    opacity: 1;
    @media screen and (max-width: 768px) {
      display: none;
    }
    img {
      width: 90px;
      height: auto;
      @media screen and (max-width: 768px) {
        display: none;
      }
    }
  }
  a:hover {
    opacity: 0.8;
  }
}

/* サイドメニューCSS ここまで */

/* 求人サイドメニューCSS */
.recruit_sidebar {
  position: fixed;
  right: 0;
  top: 600px !important;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 9999;
  justify-content: center;
  max-height: 90vh;
  a {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    /*writing-mode: vertical-rl;*/
    text-orientation: upright;
    background-color: #918b8a;
    color: #fff;
    padding: 30px 25px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    opacity: 1;
    @media screen and (max-width: 768px) {
      display: none;
    }
    &.menu_item1 {
      background-color: #fc9968;
    }
    &.menu_item2 {
      background-color: #618bb4;
    }
  }
  a:hover {
    opacity: 0.8;
  }
}
/* 求人サイドメニューCSS ここまで */

/* フッターCSS */
.footer_wrapper {
  text-align: center;
  .footer_icon {
    display: inline-table;
    margin: 50px auto;
    @media screen and (max-width: 1024px) {
      margin: 20px auto;
    }
  }
  img {
    width: 200px;
    opacity: 1;
    @media screen and (max-width: 1024px) {
      max-width: 200px;
      width: 80%;
      height: auto;
    }
    &:hover {
      opacity: 0.8;
    }
  }
}

footer {
  display: block;
  background-color: #efefef;
  z-index: 9;
  position: relative;
  padding: 50px 0px 25px;
  text-align: center;
  @media screen and (max-width: 1024px) {
    padding: 50px 0px 50px;
  }
  .footer_icon{
    width: 120px;
  }
  .footer_contents {
    display: flex;
    justify-content: center;
    max-width: 1024px;
    margin: 0 auto;
    gap: 30px;
    @media screen and (max-width: 1024px) {
      display: block;
    }
  }
  .home_button {
    width: 1024px;
    margin: 0 auto;
    text-align: center;
    @media screen and (max-width: 1024px) {
      width: 80%;
    }
    a {
      display: block;
      max-width: 300px;
      padding: 12px 24px;
      margin: 50px auto 0;
      border: #000 solid 2px;
      font-weight: bold;
      text-decoration: none;
      border-radius: 8px;
      &:hover {
        background-color: #333;
        color: #fff;
      }
    }
  }
  .inner {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 20px;
    @media screen and (max-width: 1024px) {
      margin: 0 auto;
      max-width: 80%;
      gap: 0;
    }
  }

  h3 {
    font-weight: 500;
    letter-spacing: 0.08rem;
    margin-bottom: 12px;
    line-height: 1.5em;
    border-bottom: 1px solid #000;
    font-weight: bold;
    @media screen and (max-width: 1024px) {
      font-size: 20px !important;
    }
    a {
      display: inline-flex;
      align-items: center;
      gap: 0.3em;
    }
    .sdgs_icon {
      display: inline-block;
      width: 1rem;
      height: auto;
    }
  }

  h4 {
    font-weight: 500;
    letter-spacing: 0.08rem;
    margin-bottom: 12px;
    line-height: 1.5em;
    a {
      display: inline-flex;
      align-items: center;
      gap: 0.3em;
    }
    .sdgs_icon {
      display: inline-block;
      width: 1rem;
      height: auto;
    }
  }

  ul {
    padding: 0;
    gap: 20px;
    list-style-type: none;
    @media screen and (max-width: 1024px) {
      display: flex;
      flex-wrap: wrap;
      margin: 0 auto 50px;
      max-width: 100%;
      gap: 10px;
    }
    &.recruit {
      display: flex;
      flex-direction: row;
      max-width: 100%;
      @media screen and (max-width: 1024px) {
        flex-direction: column;
        margin: 0px;
      }
    }
    li {
      margin: 10px 0;
      padding: 0;
      box-sizing: border-box;
      line-height: 1.5;
      @media screen and (max-width: 1024px) {
        width: calc(50% - 5px);
        margin: 10px 0 auto;
        @media screen and (max-width: 768px) {
          width: 48%;
        }
      }
    }
  }

  a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    @media screen and (max-width: 1024px) {
    }
    &:hover {
      opacity: 0.8;
    }
  }

  .information_copyright {
    margin: 0 auto;
    display: inline-block;

    .company_information {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      margin: 0 auto;
      text-align: center;
      flex-wrap: wrap;
      font-size: 12px;
      letter-spacing: 0.9px;
      @media screen and (max-width: 768px) {
        display: block;
      }

      &::after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: #000;
        margin: 10px 0;
      }

      .company_name {
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 5px;
        white-space: nowrap;
        margin-right: 25px;
        @media screen and (max-width: 768px) {
          margin-right: 0;
        }
      }
    }

    .copyright {
      margin: 0 auto;
      text-align: center;
      font-size: 12px;
      letter-spacing: 1.3px;
    }
  }
}
/* フッターCSS ここまで */

/* ボタンCSS */
.toggle_button {
  display: grid;
  gap: 10px;
  width: 1024px;
  margin: 50px auto 0;
  border-top: 5px solid #d9d9d9;
  border-left: 5px solid #d9d9d9;
  border-right: 5px solid #d9d9d9;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 30px 50px 0 50px;
  @media screen and (max-width: 1024px) {
    width: 100%;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 40px 25px 0 25px;
  }
  &.tow_rows {
    grid-template-columns: repeat(2, 1fr);
  }

  &.three_rows {
    grid-template-columns: repeat(3, 1fr);
    @media screen and (max-width: 1024px) {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  &.four_rows {
    grid-template-columns: repeat(4, 1fr);
    @media screen and (max-width: 1024px) {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .custom_button {
    font-size: 21px;
    font-family: "Zen Kaku Gothic New";
    border-radius: 8px;
    background-color: #d9d9d9;
    color: #fff;
    border: none;
    padding: 30px 15px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    @media screen and (max-width: 1024px) {
      padding: 10px;
      font-size: 15px;
      min-height: 50px;
    }
    @media screen and (max-width: 768px) {
      font-size: 14px;
    }
    &.four_rows_button {
      border-radius: 0;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
    }
    &:hover {
      background-color: #15638c;
    }

    &.active {
      background-color: #15638c;

      .toggle_button:has(.custom_button:hover) &:not(:hover) {
        background-color: #d9d9d9;
      }
    }
  }
  a {
    display: grid;
  }
}
/* ボタンCSS ここまで */

/* パンくずリストCSS */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  list-style: none;
  padding: 0;
  margin: 10px auto 50px;

  .home {
    display: flex;
    justify-content: center;

    img {
      width: 25px;
      height: auto;
      margin: 0 10px 2px 0;
    }
  }

  li {
    position: relative;
    margin: 0 10px 10px;
    text-align: left;

    &:not(:first-child)::before {
      content: "/";
      position: absolute;
      left: -10px;
      color: #999;
    }

    a {
      text-decoration: none;
      color: #333;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}
/* パンくずリストCSS ここまで */

/* アニメーションCSS */
/* フェードインアニーション */
.fade-first,
.fade-second,
.fade-third {
  opacity: 0;
  transition: all 1s ease;

  &.fade-top {
    transform: translateY(-30px);
  }

  &.fade-bottom {
    transform: translateY(30px);
  }

  &.fade-left {
    transform: translateX(-30px);
  }

  &.fade-right {
    transform: translateX(30px);
  }
}

.fade-first.show,
.fade-second.show,
.fade-third.show {
  opacity: 1;
  transform: translateY(0);
}

/* ズームアウトアニメーション */
@keyframes u-zoomOut {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.u-zoomOut {
  animation: u-zoomOut 12s linear 0s normal both;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.u-zoomOut-contents {
  position: relative;
  overflow: hidden;
}

/* ジャンプアニメーション */
.jump-img {
  display: inline-block;
  transition: transform 0.3s ease;

  &:hover {
    animation: jumpTwice 0.6s ease;
  }
}

@keyframes jumpTwice {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-10px);
  }
  40% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-6px);
  }
  80% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

/* 大きくなるアニメーション */
.big-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  &:hover {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

/* 透明から表示させるアニメーション */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in.show {
  animation: fadeToFull 1s ease-in-out forwards;
}

@keyframes fadeToFull {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* アニメーションCSS ここまで */
