/*==============================================================
HOME
==============================================================*/
/*共通*/
.nav-list li:first-child a::before {
  content: "";
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 4px;
  border-radius: 50px;
  background-color: #2e377b;

  @media (max-width: 768px) {
    display: none;
  }
}

.footer-menu li:first-child a {
  border-bottom: 1px solid #2e377b;

  @media (max-width: 991px) {
    border-bottom: unset;
  }
}

.common-ttl {
  position: relative;
}

.common-main-ttl {
  font-size: clamp(2.5rem, 1.0662rem + 5.8824vw, 8.125rem);
  color: #4b6f9138;
}

.common-sub-ttl {
  position: absolute;
  top: 110px;
  left: 0;

  @media (max-width: 1600px) {
    top: 65px;
  }

  @media (max-width: 991px) {
    top: 44px;
  }

  @media (max-width: 420px) {
    top: 32px;
  }
}

.common-sub-ttl p {
  font-size: clamp(1rem, 0.777rem + 0.915vw, 1.875rem);
  color: #4b6f91;
}

.common-des {
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  gap: 16px;
  background: linear-gradient(135deg, #4b6f91, #002057);
  justify-content: center;
  border-radius: 50px;
  padding: 12px 16px;
  margin-top: 88px;
  width: 100%;
  max-width: 165px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  @media (max-width: 991px) {
    max-width: 140px;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 0px;
  }
}

.btn img {
  width: 100%;
  max-width: 10px;

  @media (max-width: 991px) {
    max-width: 8px;
  }
}

.btn-p {
  color: #fff;
  font-weight: 500;
  font-size: clamp(1rem, 0.9681rem + 0.1307vw, 1.125rem);
}

@supports (-webkit-touch-callout: none) {
  .btn-p {
    color: #fff;
  }
}

.btn:hover {
  transform: translateY(-4px); /* 少し浮かせる */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* 影を付ける */
}

.btn.btn-b {
  margin-top: 24px;
}

.under-line {
  background-color: #fff;
  height: 20px;
}

/*==============================================================
FV*/

.fv {
  position: relative;
  padding: 100px 32px 10px;

  @media (max-width: 768px) {
    padding: 80px 16px 10px;
  }
}

.fv-cont {
  max-width: 1860px;
  margin: 0 auto;
  padding: 56px 0;

  @media (max-width: 768px) {
    padding: 0;
  }
}

.fv-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  @media (max-width: 1800px) {
  }

  @media (max-width: 768px) {
    flex-direction: column-reverse;
  }
}

.fv-left {
  width: 42%;

  @media (max-width: 768px) {
    width: 100%;
  }
}

.fv-txt-cont {
  width: 100%;
}

.main-txt {
  @media (max-width: 768px) {
    text-align: center;
  }
}

.sub-txt {
  width: 100%;
  max-width: 70%;
}

.fv-main-ttl-jp {
  display: inline-block;
  background-color: #30387b;
  font-size: clamp(1.5rem, 0.8627rem + 2.6144vw, 4rem);
  align-items: center;
  padding: 0px 8px;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
  padding-bottom: 4px;
}

.fv-main-ttl-en {
  font-size: clamp(4rem, 3.1078rem + 3.6601vw, 7.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: #000;
}

.fv-small-txt {
  font-size: clamp(1.125rem, 0.7745rem + 1.4379vw, 2.5rem);
}

.fv-sub-ttl-en {
  width: 100%;
  margin-top: 8px;
  padding: 0 0 24px 0;
  border-bottom: 1px solid #ccc;
}

.fv-right {
  flex: 1;
  width: 100%;
}

.right-img {
  width: 100%;
}

.fv-right img {
  border-radius: 10px;

  @media (max-width: 768px) {
  }
}

.under-txt {
  justify-content: space-between;
}

.under-txt p {
  font-size: clamp(0.5rem, 0.3725rem + 0.5229vw, 1rem);
  font-family: "Raleway", sans-serif;
  font-weight: 700;
}

.text-rotator span,
.text-rotator-sub span {
  position: absolute;
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 0.8s ease, transform 0.8s ease;

  @media (max-width: 768px) {
    left: 0%;
  }
}

.text-rotator,
.text-rotator-sub {
  position: relative;
  display: inline-block;
  height: auto;
  width: 100%;
  white-space: nowrap;
  overflow: visible;

  @media (max-width: 768px) {
    width: 100%;
    text-align: center;
    overflow: visible;
  }
}

.text-rotator span.active,
.text-rotator-sub span.active {
  opacity: 1;
  transform: translateY(0);
}

.text-rotator {
  height: 1.05em; /* フォントサイズに比例して少し余裕を持たせる */
}

/*==============================================================
METAL WARMTHについて*/

.about {
  width: 100%;
  background-image: url(../assets/img/home/about-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-cont {
  max-width: 1520px;
  margin: 0 auto;
  padding: 120px 32px;

  @media (max-width: 768px) {
    padding: 40px 16px;
    background-color: #000;
  }
}

.about-box {
  gap: 40px;

  @media (max-width: 768px) {
    gap: 24px;
  }
}

.about-main-ttl {
  font-size: clamp(1.5rem, 1.1176rem + 1.5686vw, 3rem);
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  line-height: 52px;

  @media (max-width: 768px) {
    line-height: 24px;
  }
}

.about-sub-ttl {
  display: block;
}

.about-sub-ttl p {
  font-size: clamp(0.875rem, 0.8431rem + 0.1307vw, 1rem);
  display: inline-block;
  border-radius: 50px;
  padding: 2px 16px;
  font-weight: 500;
  background: linear-gradient(135deg, #30387b, #466bac);
}

.about-content-box {
  gap: 80px;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 24px;
  }
}

.about-left {
  width: 60%;

  @media (max-width: 768px) {
    width: 100%;
  }
}

.about-left img {
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.288);
  border-radius: 10px;
}

.about-right {
  flex: 1;
}

.about-right p {
  line-height: 32px;

  @media (max-width: 768px) {
    line-height: 24px;
  }
}

/*==============================================================
事業内容*/

.business {
  padding: 120px 32px;

  @media (max-width: 768px) {
    padding: 40px 16px;
  }
}

.business-cont {
  max-width: 1520px;
  margin: 0 auto;
}

.business-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 24px;

  @media (max-width: 768px) {
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
  }
}

.business-left {
  width: 32%;
  gap: 32px;

  @media (max-width: 991px) {
    width: 100%;
    gap: 16px;
    align-items: center;
  }
}

.business-main-ttl p {
  font-size: clamp(1.5rem, 1.2451rem + 1.0458vw, 2.5rem);
  font-weight: 600;
  line-height: 72px;

  @media (max-width: 991px) {
    line-height: 32px;
    text-align: center;
  }
}

.business-main-ttl span {
  background-color: #30387b;
  color: #fff;
  padding: 0 4px;
  line-height: 40px;
}

.business-des {
  line-height: 32px;
  font-weight: 600;

  @media (max-width: 768px) {
    line-height: 24px;
    font-weight: 500;
  }
}

.business-right {
  position: relative;
}

.business-right img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.288);
}

.business-img-txt {
  position: absolute;
  top: -74px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  @media (max-width: 768px) {
    position: unset;
    top: unset;
    right: unset;
    align-items: center;
  }
}

.business-ttl-en {
  font-size: clamp(2rem, 1.4902rem + 2.0915vw, 4rem);
  line-height: 70px;
  font-weight: 600;
  padding-right: 48px;

  @media (max-width: 768px) {
    padding-right: 0px;
    line-height: 32px;
    color: #333 !important;
  }
}

.business-ttl-en .white {
  @media (max-width: 768px) {
    color: #333 !important;
  }
}

.business-ttl-jp {
  font-size: clamp(0.875rem, 0.8431rem + 0.1307vw, 1rem);
  background: linear-gradient(135deg, #30387b, #466bac);
  border-radius: 50px 0 0 50px;
  width: 100%;
  max-width: 200px;
  padding-right: 52px;
  margin-top: 12px;
  color: #fff;

  @media (max-width: 768px) {
    padding-right: 0;
    text-align: center;
    max-width: 200px;
    margin: 4px 0 12px;
    border-radius: 50px;
    color: #fff !important;
  }
}

/*==============================================================
会社概要*/

.company {
  padding: 120px 32px;

  @media (max-width: 768px) {
    padding: 40px 16px;
  }
}

.company-cont {
  max-width: 1650px;
  margin: 0 auto;
}

.company-box {
  background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0)
    ),
    url(../assets/img/home/home-img-03.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 440px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  position: relative;

  @media (max-width: 991px) {
    height: 340px;
    padding: 16px;
    align-items: center;
    justify-content: flex-end;
  }
}

.company-des {
  margin-bottom: 16px;
}

.company-img-txt {
  position: absolute;
  top: -74px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  @media (max-width: 991px) {
    top: 16px;
    left: unset;
    align-items: center;
    width: 100%;
  }
}

.company-ttl-en {
  font-size: clamp(2rem, 1.4902rem + 2.0915vw, 4rem);
  line-height: 70px;
  font-weight: 600;
  padding-left: 48px;

  @media (max-width: 768px) {
    line-height: 32px;
    font-weight: 600;
    padding-left: 0px;
    text-align: center;
  }
}

.company-ttl-jp {
  font-size: clamp(0.875rem, 0.8431rem + 0.1307vw, 1rem);
  background: linear-gradient(135deg, #30387b, #466bac);
  border-radius: 0 50px 50px 0;
  width: 100%;
  max-width: 200px;
  padding-left: 52px;
  margin-top: 12px;
  color: #fff;

  @media (max-width: 768px) {
    padding-left: 0;
    text-align: center;
    max-width: 160px;
    margin: 4px 0 12px;
    border-radius: 50px;
    color: #fff !important;
  }
}

.company-box .common-btn {
  background-color: #fff;
  font-weight: 600;
}
