/*==============================================================
Service
==============================================================*/
.ttl-jp {
  &::before {
    background: #3b8800 !important;
  }
}

.service {
  .about {
    .cont {
      .box {
        max-width: 1320px;

        .item {
          display: flex;
          gap: 80px;

          @media screen and (max-width: 991px) {
            flex-direction: column;
            gap: 24px;
          }

          .left {
            flex: 1.2;

            .img {
              & img {
                border-radius: 10px;
              }

              @media screen and (max-width: 991px) {
                width: 100%;
                max-width: 50%;
              }

              @media screen and (max-width: 560px) {
                max-width: 100%;
              }
            }
          }

          .middle {
            flex: 1.2;
            padding: 24px 0 80px;
            position: relative;
            z-index: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;

            @media screen and (max-width: 991px) {
              padding: 0 24px;
            }

            @media screen and (max-width: 560px) {
              padding: 0;
            }

            &::before {
              content: "FORGING";
              position: absolute;
              top: 8%;
              left: 10%;
              font-family: "Noto Serif JP", serif;
              font-size: clamp(2.5rem, 0.4412rem + 5.8824vw, 7.5rem);
              color: #0135af0c;
              line-height: 1;
              font-weight: 900;
              z-index: -1;
            }

            .ttl {
              font-size: clamp(2rem, 1.2794rem + 2.0588vw, 3.75rem);
              font-weight: 900;
              font-family: "Noto Serif JP", serif;

              & span {
                font-size: clamp(1.125rem, 0.5588rem + 1.6176vw, 2.5rem);
                font-weight: 900;
                color: #333;
              }
            }
          }

          .right {
            flex: 1;
            display: flex;
            align-items: flex-end;

            .img {
              @media screen and (max-width: 560px) {
                max-width: 100%;
                height: 180px;
              }

              & img {
                border-radius: 10px;
              }

              @media screen and (max-width: 991px) {
                width: 100%;
                max-width: 50%;
                margin: 0 0 0 auto;
              }

              @media screen and (max-width: 560px) {
                max-width: 100%;
              }
            }
          }
        }
      }
    }
  }

  .forging {
    background: #000000;

    @media screen and (max-width: 991px) {
      overflow: hidden;
    }

    .cont {
      padding: 80px 0;

      @media screen and (max-width: 991px) {
        padding: 40px 32px;
      }

      @media screen and (max-width: 560px) {
        padding: 40px 16px;
      }

      .box {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 100px;

        .item {
          display: flex;
          align-items: center;
          gap: 120px;

          @media screen and (max-width: 991px) {
            gap: 40px;
            flex-direction: column;
          }

          .content-ttl.sp {
            @media screen and (max-width: 991px) {
              display: flex !important;
              flex-direction: column;
              align-items: center;

              .en {
                font-size: clamp(1.5rem, 0.8309rem + 1.9118vw, 3.125rem);
                font-weight: 600;
                font-family: Arial, Helvetica, sans-serif;
              }

              .jp {
                font-weight: 600;
              }
            }
          }

          .left {
            flex: 1.4;
            position: relative;
            z-index: 1;

            .img {
              & img {
                border-radius: 0 30px 30px 0;

                @media screen and (max-width: 991px) {
                  border-radius: 30px;
                }

                @media screen and (max-width: 560px) {
                  border-radius: 10px;
                }
              }
            }
          }

          .right {
            flex: 1;
            padding-right: 10%;
            display: flex;
            flex-direction: column;
            gap: 80px;

            .content-ttl {
              display: flex;
              flex-direction: column;
              align-items: flex-end;

              .en {
                font-size: clamp(1.5rem, 0.8309rem + 1.9118vw, 3.125rem);
                font-weight: 600;
                font-family: Arial, Helvetica, sans-serif;
              }

              .jp {
                font-weight: 600;
              }
            }
          }

          .content {
            display: flex;
            flex-direction: column;
            gap: 24px;

            .ttl {
              font-weight: 600;
              font-size: clamp(1.5rem, 1.0882rem + 1.1765vw, 2.5rem);
              font-family: "Noto Serif JP", serif;
              line-height: 1;
              position: relative;

              &::before {
                content: "";
                position: absolute;
                top: 50%;
                right: 52%;
                transform: translate(-50%, -50%);
                width: 100%;
                height: 1px;
                background-color: #fff;
                z-index: 0;
              }
            }
          }

          &.reverse {
            @media screen and (max-width: 991px) {
              flex-direction: column-reverse;
            }

            .left {
              flex: 1;
              padding-left: 10%;

              .img {
                & img {
                  border-radius: 0;
                }
              }
            }

            .right {
              flex: 1.4;
              padding-right: 0%;
              position: relative;
              z-index: 1;

              .img {
                & img {
                  border-radius: 30px 0 0 30px;

                  @media screen and (max-width: 560px) {
                    border-radius: 10px;
                  }
                }
              }
            }

            .content {
              .ttl {
                &::before {
                  content: "";
                  position: absolute;
                  top: 50%;
                  right: unset;
                  left: 130%;
                  transform: translate(-50%, -50%);
                  width: 100%;
                  height: 1px;
                  background-color: #fff;
                  z-index: 0;

                  @media screen and (max-width: 991px) {
                    left: 95%;
                  }

                  @media screen and (max-width: 560px) {
                    left: 99%;
                    width: 20%;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  .forging-content {
    background-color: #474747;

    .cont {
      .box {
        max-width: 1320px;
        display: flex;
        flex-direction: column;
        gap: 32px;

        .item {
          display: flex;
          flex-direction: column;
          gap: 24px;

          .ttl-cont {
            .ttl {
              font-size: clamp(1.125rem, 0.9706rem + 0.4412vw, 1.5rem);
              font-weight: 600;
              font-family: "Noto Serif JP";
              display: flex;
              align-items: center;
              gap: 8px;

              & span {
                content: "";
                display: block;
                flex: 1;
                width: 100%;
                height: 1px;
                background-color: #fff;
                margin-top: 2px;
              }
            }
          }

          .img-cont {
            display: block;
            width: 100%;

            .swiper-wrapper {
              display: grid;
              grid-template-columns: repeat(3, 1fr);
              gap: 32px;

              @media screen and (max-width: 560px) {
                display: flex;
                gap: 0;
              }
            }

            .swiper-slide {
              @media screen and (max-width: 560px) {
                width: 100% !important;
                flex-shrink: 0;
              }
            }

            &.under {
              overflow: hidden;

              .swiper-wrapper {
                display: flex;
                flex-wrap: wrap;
                gap: 32px;

                @media screen and (max-width: 991px) {
                  gap: 24px;
                }

                @media screen and (max-width: 560px) {
                  flex-wrap: nowrap;
                  gap: 0;
                }
              }

              .swiper-slide {
                width: calc((100% - 32px * 3) / 4);

                @media screen and (max-width: 991px) {
                  width: calc((100% - 24px * 2) / 3);
                }

                @media screen and (max-width: 560px) {
                  width: 100% !important;
                  flex-shrink: 0;
                }
              }
            }

            .img {
              & img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 5px;
              }
            }
          }
        }
      }
    }
  }

  .works {
    background-color: #000;

    &.m {
      background-color: #474747;
    }

    .cont {
      .box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;

        .content-ttl {
          display: flex;
          flex-direction: column;
          align-items: center;

          .en {
            font-size: clamp(1.5rem, 0.8309rem + 1.9118vw, 3.125rem);
            font-weight: 600;
            font-family: Arial, Helvetica, sans-serif;
          }

          .jp {
            font-weight: 600;
          }
        }

        .item {
        }

        .btns {
          display: flex;

          .btn {
            display: flex;
            background: #0135af;
            align-items: center;
            padding: 10px 16px;
            border-radius: 3px;
            gap: 16px;
            transition: background 0.3s ease;

            .btn-txt {
              color: #fff;
              flex: 1;
            }

            .img {
              width: 100%;
              max-width: 16px;
              transition: transform 0.3s ease;

              & img {
                object-fit: contain;
              }
            }

            &:hover {
              .img {
                transform: translateX(4px);
              }
            }
          }
        }
      }
    }

    .p-works-archive__list {
      max-width: 1320px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      list-style: none;
      padding: 0;

      @media (max-width: 1280px) {
        grid-template-columns: repeat(3, 1fr);
      }

      @media (max-width: 560px) {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .p-works-archive__link {
      display: block;
    }

    .p-works-archive__item {
      border-radius: 5px;
      overflow: hidden;
    }

    .p-works-archive__thumb {
      position: relative;
      overflow: hidden;
      aspect-ratio: 4 / 3;

      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 5px;
      }
    }

    .p-works-archive__overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #fff;
      padding: 8px 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transform: translateY(100%);
      transition: transform 0.3s ease;
      border-radius: 5px;
    }

    .p-works-archive__thumb:hover .p-works-archive__overlay {
      transform: translateY(0);
    }

    .p-works-archive__title {
      margin: 0;
      font-size: clamp(1rem, 0.8971rem + 0.2941vw, 1.25rem);
      font-weight: 600;
    }

    .p-works-archive__category {
      font-size: clamp(1rem, 0.8971rem + 0.2941vw, 1.25rem);
      font-weight: 600;
      opacity: 0.9;
      border-left: 1px solid #fff;
      padding-left: 8px;
    }
  }

  .machining {
    .cont {
      padding: 80px 0;

      @media screen and (max-width: 991px) {
        padding: 40px;
      }

      @media screen and (max-width: 560px) {
        padding: 40px 16px;
      }

      .box {
        max-width: 100%;

        .item {
          display: flex;
          align-items: center;
          gap: 80px;

          @media screen and (max-width: 991px) {
            flex-direction: column-reverse;
            gap: 40px;
          }

          @media screen and (max-width: 560px) {
            gap: 24px;
          }

          .left {
            flex: 1;
            position: relative;
            padding-left: 20%;
            display: flex;
            flex-direction: column;
            gap: 24px;

            @media screen and (max-width: 991px) {
              padding-left: 0%;
            }

            @media screen and (max-width: 560px) {
              gap: 8px;
            }

            &::before {
              content: "MACHINING";
              position: absolute;
              top: -30%;
              left: 10%;
              font-family: "Noto Serif JP", serif;
              font-size: clamp(2.5rem, 0.4412rem + 5.8824vw, 7.5rem);
              color: #0135af0c;
              line-height: 1;
              font-weight: 900;
              z-index: -1;

              @media screen and (max-width: 991px) {
                top: 10%;
                left: 30%;
              }

              @media screen and (max-width: 560px) {
                left: 7%;
              }
            }

            .ttl {
              font-size: clamp(2rem, 1.2794rem + 2.0588vw, 3.75rem);
              font-weight: 900;
              font-family: "Noto Serif JP", serif;
            }
          }
          .right {
            flex: 1.4;

            .img {
              @media screen and (max-width: 560px) {
                height: 200px;
              }

              & img {
                border-radius: 24px 0 0 24px;

                @media screen and (max-width: 991px) {
                  border-radius: 24px;
                }

                @media screen and (max-width: 560px) {
                  border-radius: 10px;
                }
              }
            }
          }
        }
      }
    }
  }

  .equipment {
    background-color: #000;

    .cont {
      .box {
        max-width: 1320px;
        display: flex;
        flex-direction: column;
        gap: 32px;

        .content-ttl {
          display: flex;
          flex-direction: column;
          align-items: flex-start;

          .en {
            font-size: clamp(1.5rem, 0.8309rem + 1.9118vw, 3.125rem);
            font-weight: 600;
            font-family: Arial, Helvetica, sans-serif;
          }

          .jp {
            font-weight: 600;
          }
        }

        .item {
          display: flex;
          flex-direction: column;
          gap: 8px;

          .img-cont {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;

            @media screen and (max-width: 991px) {
              grid-template-columns: repeat(2, 1fr);
            }

            .img {
              & img {
                border-radius: 5px;
              }
            }
          }
        }
        .btns {
          display: flex;
          justify-content: center;

          .btn {
            display: flex;
            background: #0135af;
            align-items: center;
            padding: 10px 16px;
            border-radius: 3px;
            gap: 16px;
            transition: background 0.3s ease;

            .btn-txt {
              color: #fff;
              flex: 1;
            }

            .img {
              width: 100%;
              max-width: 16px;
              transition: transform 0.3s ease;

              & img {
                object-fit: contain;
              }
            }

            &:hover {
              .img {
                transform: translateX(4px);
              }
            }
          }
        }
      }
    }
  }
}

.pc {
  @media screen and (max-width: 991px) {
    display: none !important;
  }
}
