/*==============================================================
Recruit
==============================================================*/
.common-recruit-left {
  position: absolute;
  bottom: 40px;
  left: 3%;
  z-index: 3;
  width: 94%;
  border-bottom: 1px solid #ffffff85;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  .common-ttl-cont {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;

    @media screen and (max-width: 991px) {
      align-items: flex-start;
    }

    .common-ttl {
      font-family: "noto serif jp";
      font-weight: 900;
      font-size: clamp(3.5rem, 2.1667rem + 2.7778vw, 5.5rem);
      line-height: 1.2;

      @media screen and (max-width: 991px) {
        line-height: 1.1;
      }

      & span {
        font-size: clamp(3rem, 1.1667rem + 3.8194vw, 5.75rem);
      }
    }
  }
  .dec {
    width: 280px;
  }
}

.message {
  background: #ebebeb;

  .cont {
    .box {
      max-width: 1200px;

      .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 60px;
        padding: 40px 40px 0;
        align-items: flex-end;

        @media screen and (max-width: 991px) {
          gap: 24px;
          padding: 24px 0px 0;
          align-items: flex-start;
          position: relative;
        }

        @media screen and (max-width: 560px) {
          flex-direction: column-reverse;
        }

        .left {
          flex: 1;

          @media screen and (max-width: 991px) {
            position: absolute;
            width: 100%;
            max-width: 9%;
            bottom: -80px;
            left: 62%;
          }

          @media screen and (max-width: 560px) {
            max-width: 19%;
            bottom: -100px;
            left: 73%;
          }

          .img {
            width: 100%;
            max-width: 100%;

            & img {
              object-fit: contain;
            }
          }
        }

        .middle {
          flex: 2;

          @media screen and (max-width: 991px) {
            flex: 3;
          }

          .des-cont {
            display: flex;
            flex-direction: column;
            gap: 24px;

            .des {
              line-height: 2;
            }
          }
        }

        .right {
          flex: 2;
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          gap: 40px;

          @media screen and (max-width: 991px) {
            gap: 16px;
          }

          .img {
            position: relative;

            &::before {
              content: "";
              position: absolute;
              top: 5%;
              left: -5%;
              width: 100%;
              height: 100%;
              border-radius: 15px;
              background-color: #ffbb0044;
              z-index: -1;

              @media screen and (max-width: 991px) {
                top: 2%;
                left: -2%;
              }
            }

            & img {
              border-radius: 10px;
            }
          }

          .president-name-cont {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: flex-end;
            gap: 8px;

            .president-role {
              font-family: "ab-ootori", sans-serif;
              font-weight: 400;
              font-style: normal;
              line-height: 1;
              font-size: clamp(0.875rem, 0.7917rem + 0.1736vw, 1rem);
            }

            .president-name {
              font-family: "ab-ootori", sans-serif;
              font-weight: 400;
              font-style: normal;
              line-height: 1;
              font-size: clamp(1.5rem, 1.1667rem + 0.6944vw, 2rem);
            }
          }
        }
      }
    }
  }
}

.job {
  .cont {
    .box {
      max-width: 1200px;

      .item {
        display: flex;
        align-items: flex-start;
        gap: 40px;

        @media screen and (max-width: 991px) {
          flex-direction: column;
          gap: 24px;
        }

        .left {
          flex: 1;
          padding: 40px 40px 0 0;
          display: flex;
          flex-direction: column;
          gap: 40px;
          position: sticky;
          top: 120px;

          @media screen and (max-width: 991px) {
            padding: 0;
            position: unset;
            gap: 24px;
          }

          .img-cont {
            display: flex;
            align-items: center;
            justify-content: space-between;

            @media screen and (max-width: 991px) {
              width: 100%;
              max-width: 80%;
              margin: 0 auto;
            }

            @media screen and (max-width: 560px) {
              max-width: 100%;
              gap: 16px;
            }
          }
        }

        .right {
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: flex-end;
          gap: 40px;
          margin-top: 8%;

          @media screen and (max-width: 991px) {
            width: 100%;
            max-width: 80%;
            margin: 0 auto;
          }

          @media screen and (max-width: 560px) {
            max-width: 100%;
          }

          .right-item {
            background-color: #f1f1f1;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            padding: 10px;
            position: relative;

            .ttl {
              position: absolute;
              display: block;
              background-color: #1f2e55;
              width: 100%;
              max-width: max-content;
              padding: 2px 12px;
              font-size: 18px;
              font-weight: 900;
              color: #fff;
              top: 5%;
              left: -2%;
            }
            .img {
              & img {
                border-radius: 12px;
              }
            }

            .des {
              padding: 8px 4px 0;
            }
          }
        }
      }
    }
  }
}

.benefit {
  background-color: #ebebeb;

  .cont {
    .box {
      max-width: 1200px;

      .item {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding-top: 32px;
        width: 100%;
        max-width: 1160px;
        margin: 0 auto;

        @media screen and (max-width: 991px) {
          grid-template-columns: repeat(1, 1fr);
          gap: 24px;
        }

        .bene {
          background-color: #cfdcff;
          border-radius: 100px 20px 20px 100px;
          display: flex;
          align-items: flex-start;
          min-height: 170px;

          @media screen and (max-width: 560px) {
            flex-direction: column;
            align-items: center;
            width: 100%;
            min-height: unset;
            border-radius: 25px;
          }

          .img {
            flex: 0 0 auto;
            background: #fff;
            border-radius: 100px;
            padding: 16px;
            height: 100%;
            aspect-ratio: 1 / 1;

            @media screen and (max-width: 560px) {
              padding: unset;
              height: unset;
              aspect-ratio: unset;
              width: 100%;
              border-radius: 25px;
              padding: 24px;
            }

            & img {
              width: 100%;
              max-width: 70%;
              margin: 0 auto;
              object-fit: contain;

              @media screen and (max-width: 560px) {
                max-width: 20%;
              }
            }
          }

          .ttl-cont {
            flex: 4;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;

            .ttl {
              font-size: clamp(1.125rem, 1.0417rem + 0.1736vw, 1.25rem);
              font-weight: 900;
              color: #1f2e55;
            }

            .des {
            }
          }
        }
      }
    }
  }
}

.information {
  .cont {
    .box {
      max-width: 1200px;

      .under-ttl {
        display: flex;
        flex-direction: column;
        gap: 24px;

        @media screen and (max-width: 560px) {
          display: flex;
          flex-direction: column;
          gap: 8px;
        }

        .ttl-jp {
          @media screen and (max-width: 560px) {
            padding: 2px 8px;
            font-size: 14px;
            margin-left: 12px;
            width: 100%;
            max-width: max-content;
          }

          &::before {
            top: -37%;
            left: 50%;
            transform: translateX(-50%);
            width: 1px;
            height: 20px;

            @media screen and (max-width: 560px) {
              left: -3px;
              height: 1px;
              width: 14px;
              top: 50%;
            }
          }
        }
      }

      .item {
        padding: 40px 40px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;

        @media screen and (max-width: 991px) {
          padding: 24px 0 0;
        }

        .tab-btn-cont {
          display: flex;
          flex-wrap: wrap;
          justify-content: center;
          width: 100%;

          @media screen and (max-width: 560px) {
            margin-bottom: 5px;
            gap: 4px;
          }

          .tab-btn {
            padding: 12px 28px;
            background: #d1d1d1;
            color: #ffffff;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition:
              background 0.25s,
              color 0.25s;
            border-radius: 10px 10px 0 0;
            width: 100%;
            max-width: 200px;
            text-align: center;

            @media screen and (max-width: 991px) {
              max-width: 160px;
            }

            @media screen and (max-width: 560px) {
              max-width: 49%;
              border-radius: 5px;
            }

            &.active {
              background: #1f2e55;
              border: 1px solid #ffffff;
              color: #fff;
            }

            &:hover {
              background: #1f2e55;
              color: #fff;
            }
          }
        }

        .tab-content {
          opacity: 0;
          visibility: hidden;
          transform: translateY(10px);
          transition:
            opacity 0.4s ease,
            transform 0.4s ease,
            visibility 0.4s ease;
          height: 0;
          overflow: hidden;
          width: 100%;

          .table-bg {
            background: #efefef;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            padding: 32px;
          }

          &.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            height: auto;
          }

          .table-ttl {
            text-align: center;
            font-weight: 900;
            font-size: clamp(1.5rem, 1.3333rem + 0.3472vw, 1.75rem);
          }

          .table-ttl-line {
            content: "";
            display: block;
            width: 100%;
            height: 8px;
            border-radius: 10px 10px 0 0;
            background-color: #1f2e55;
            margin-top: 4px;
          }

          .info-table {
            width: 100%;
            border-collapse: collapse;

            & tr {
              display: flex;
              align-items: center;
              width: 100%;
              border-bottom: 1px solid #e0e0e0;

              @media screen and (max-width: 991px) {
                flex-direction: column;
                align-items: flex-start;
              }

              & th {
                flex: 1;
                padding: 40px 16px;
                font-weight: 700;
                text-align: left;
                vertical-align: top;
                white-space: nowrap;
                color: #333;
                font-family: Noto sans jp;

                @media screen and (max-width: 991px) {
                  padding: 16px 0px 2px;
                }
              }

              & td {
                flex: 3.3;
                padding: 40px 16px;
                font-family: Noto sans jp;

                @media screen and (max-width: 991px) {
                  padding: 2px 8px 16px;
                }
              }
            }
          }
        }

        .entry-btn-wrap {
          display: flex;
          justify-content: center;
          margin-top: 40px;

          @media screen and (max-width: 991px) {
            margin-top: 16px;
          }

          .entry-btn {
            background: #ffba00;
            padding: 10px 24px;
            color: #fff;
            font-weight: 600;
            transition:
              opacity 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
            font-family: Noto Sans jp;
            display: flex;
            align-items: center;
            gap: 16px;

            .img {
              & img {
                object-fit: contain;
              }
            }

            &:hover {
              opacity: 0.85;
              transform: translateY(-2px);
              box-shadow: 0 6px 16px rgba(255, 145, 0, 0.4);
            }
          }
        }
      }
    }
  }
}
