@charset "utf-8";
.page-container{
  overflow: visible!important;
}
.ab-fv {
  margin: 3rem auto 5rem;
}

.ab-fv img{
  width: 100%;
  height: auto;
}

.ab-cont{
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.ab-item{
  position: relative;
  display: flex;
  gap: 5rem;
}

.ab-item-back{
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 60%;
  z-index: -1;
  object-fit: cover;
}

.ab-item:nth-child(2){
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  gap: 5rem;
  justify-content: space-between;
}

.ab-item-title{
  display: flex;
  flex-direction: column;
  padding-left: 10%;
}

.ab-item-title-even{
  display: flex;
  flex-direction: column;
  padding-right: 10%;
  overflow: hidden;
}

.ab-item-title h2{
  margin: 5rem 0;
  font-size: 2rem;
  font-weight: 300;
}

.ab-item-title-even h2{
  margin: 5rem 0;
  font-size: 2rem;
  font-weight: 300;
}

.ab-item-title-num{
  position: relative;
  width: 300px;
  text-align: right;
}

.ab-item-title-num:before{
  content: "";
  position: absolute;
  top: 14px;
  left: -80%;
  width: 500px;
  height: 1px;
  background-color: #000;
}

.ab-item-title-num-even{
  position: relative;
  width: 300px;
  text-align: left;
}

.ab-item-title-num-even:before{
  content: "";
  position: absolute;
  top: 14px;
  right: -80%;
  width: 500px;
  height: 1px;
  background-color: #000;
}

.ab-item-text{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ab-item-text p{
  line-height: 2;
}

.ab-item-text-st{
  font-size: 1.25rem;
}

.ab-item-img{
  max-width: 45%;
  height: auto; 
}

.ab-item-img-02{
  max-width: 45%;
  height: auto; 
  margin-right: 5%; 
}

.ab-item-link{
  margin: 3rem 0 0;
  width: 120px;
  height: auto;
}

.ab-item-link:hover{
  opacity: .7;
}

.pride-title{
  margin: 0 0 3rem auto;
}

.pride-title h2{
  font-size: 2rem;
  margin: 0!important;
}

.pride-cont{
  background-color: #EDEDED;
  padding: 5rem 0;
  justify-content: space-between;
}

.pride-item-wrap{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 800px;
}

.pride-item{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #000;
  margin: 0 5% 3rem 0;
  font-weight: 300;
}

.pride-item-img{
  position: relative;
  width: 100%;
  height: auto;
}

.pride-item-deco{
  position: absolute;
  width: 120px;
  height: auto;
  top: -60px;
  left: -60px;
  z-index: 1;
}

.gr-title-cont{
  justify-content: flex-end;
}

.gr-title{
  margin: 0 auto 3rem 0;
}

.gr-title h2{
  font-size: 2rem;
  margin: 0!important;
}

.gr-item{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  width: 80%;
  margin: 0 auto 3rem;
}

.gr-item-02{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  width: 70%;
  margin: 3rem 10% 3rem auto;
   justify-content: flex-end;
}

.gr-item-img{
  width: 40%;
  max-width: 500px;
}

.gr-item-img-02{
  width: 30%;
  max-width: 400px;
}

.gr-item-text{
  margin-top: 3rem;
}

.gr-item-text h3{
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.gr-item-text h4{
  font-size: 2rem;
  font-weight: 300;
}

.gr-item-text-name{
  margin-bottom: 2rem;
}

.gr-item-down{
  border-top: 1px solid #000;
  padding-top: 2rem;
  padding: 2rem 5rem 0 0;
}

.company-info{
  position: relative;
  margin: 5rem auto 5rem 0;
  width: 85%;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
}

.company-info-title{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.company-info-item{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.company-info-title h2{
  font-size: 2.5rem;
}

.company-info img{
  max-width: 55%;
  height: auto;
}

.company-info-list{
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}

.company-info-list p:nth-child(1){
  color: #707070;
}

.company-info-list p:nth-child(2){
  font-size: 1.125rem;
}

.company-info-list-btn p{
  color: #000;
}


.sticky-section {
  position: relative; /* 親要素を基準にする */
}


.sticky-title {
  position: sticky; /* ここがポイント */
  top: 10%;           /* 上からの距離 */
  z-index: 10;
  height: fit-content;
}

@media screen and (max-width: 960px) {
  .ab-fv {
    margin: 3rem auto;
  }
  .ab-cont{
    gap: 5rem;
  }
  .ab-item{
    flex-direction: column;
    gap: 3rem;
  }
  .ab-item:nth-child(2){
    flex-direction: column-reverse;
    gap: 3rem;
  }
  .ab-item:nth-child(3){
    flex-direction: column-reverse;
    gap: 3rem;
  }
  .ab-item-title{
    padding-left: 5%;
  }
  .ab-item-title-even{
    display: flex;
    flex-direction: column;
    padding-right: 0;
    padding-left: 5%;
  }
  .ab-item-title h2{
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 300;
  }
  .ab-item-title-even h2{
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 300;
  }
  .ab-item-text{
    width: 90%;
    margin: 0 auto;
  }
  .ab-item-text p{
    line-height: 2;
  }

  .ab-item-text-st{
    font-size: 1.25rem;
  }

  .ab-item-img{
    max-width: 100%;
    height: auto; 
  }

  .ab-item-img-02{
    max-width: 90%;
    height: auto; 
    margin: 0 auto; 
  }
  .ab-item-link{
    margin: 3rem auto;
    width: 100px;
  }
  .pride-title{
    margin: 0 0 3rem;
  }
  .pride-item-wrap{
    gap: 5rem;
  }
  .pride-item{
    width: 90%;
    margin: 0 auto;
  }
  .pride-item-deco{
    position: absolute;
    width: 80px;
    top: -40px;
    left: 20px;
    z-index: 1;
  }
  .gr-item{
    position: relative;
    flex-direction: column;
    gap: 2rem;
    width: 90%;
    margin: 0 auto 3rem;
  }
  .gr-item-02{
    gap: 2rem;
    width: 90%;
    margin: 3rem auto;
  }
  .gr-item-img{
    width: 100%;
    max-width: 400px;
  }
  .gr-item-img-02{
    width: 70%;
    max-width: 300px;
  }
  .gr-item-text{
    margin-top: 0;
  }
  .gr-item-text h3{
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
  }

  .gr-item-text h4{
    font-size: 2rem;
    font-weight: 300;
  }

  .gr-item-text-name{
    margin-bottom: 2rem;
  }

  .gr-item-down{
    border-top: 1px solid #000;
    padding: 2rem 3rem 0 0;
  }
   .company-info{
    position: relative;
    margin: 3rem auto;
    width: 90%;
    min-width: 90%;
    flex-direction: column;
  }
  .company-info img{
     max-width: 100%;
  }
  .sticky-title {
  position: relative; /* ここがポイント */
  top: auto;           /* 上からの距離 */
  z-index: 10;
  height: fit-content;
}
}

@media screen and (max-width: 600px) {
  .gr-item-img-02{
    width: 50%;
    max-width: 160px;
  }
  .gr-item-text h4{
    font-size: 1.25rem;
    font-weight: 300;
  }
  .gr-item-down{
    border-top: 1px solid #000;
    padding: 1rem 1.5rem 0 0;
  }
  .company-info-list p:nth-child(2){
  font-size: 14px;
}

}