@charset "utf-8";

.about-desc{
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
  background-image: url("https://ryoushu-souko.com/system_panel/uploads/images/20250608200320330856.png");
  width: 100%;
  padding: 3rem 0;
}

.ab-desc-text{
  margin: 5rem 5%;
  color: #fff;
}

.ab-desc-text h2{
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 2rem;
  position: relative;
  color: #fff;
  margin-bottom: 3rem;
}

.ab-desc-text h2:before{
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 4px;
  background-color: #FFF;
}

.ab-desc-text h3{
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  color: #fff;
}

/* スライドレールの枠 */
.ab-desc-wrap {
  overflow: hidden;
  display: flex;
  gap: 2rem;
  margin-left: 5%;
}


/* スライドする要素 */
.ab-slide-img {
  width: 300px;
  height: 240px;
  margin: 0 0.25rem;
}

/* スライドレールの枠 */
.ab-slide-wrap {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 340px;
  max-height: 640px;
  margin-bottom: 100px;
}

.ab-slide-wrap:nth-child(even) .ab-slideshow{
  display: flex;
  flex-direction: column;
  -webkit-animation: loop-slide 32s infinite linear 1s both;
  animation: loop-slide 32s infinite linear 1s both;
}

/* content4つをまとめたスライドブロック */
.ab-slideshow {
  display: flex;
  flex-direction: column;
  -webkit-animation: loop-slide 20s infinite linear 1s both;
  animation: loop-slide 20s infinite linear 1s both;
}

@-webkit-keyframes loop-slide {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}
@keyframes loop-slide {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}


.ab-feature{
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
  background-image: url("https://ryoushu-souko.com/system_panel/uploads/images/20250611002306919590.png");
  width: 100%;
  padding: 3rem 0;
}

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

.ab-feature-text{
  margin: 3rem auto;
  color: #fff;
  width: 50%; 
}

.ab-feature-text h2{
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 2rem;
  position: relative;
  color: #fff;
  margin-bottom: 3rem;
}

.ab-feature-text h2:before{
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 4px;
  background-color: #FFF;
}

.ab-feature-cont{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ab-feature-item{
  position: relative;
  display: flex;
  border: 1px solid #fff; 
  gap: 1rem;
  align-items: center;
  animation-delay: 250ms;
}

.ab-feature-item:nth-child(2){
  animation-delay: 750ms;
}

.ab-feature-item:nth-child(3){
  animation-delay: 1250ms;
}

.ab-feature-item img{
  width: 40%; 
  height: 100%;
  object-fit: cover;
}

.ab-feature-desc{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  //text-align: center;
  padding: 0.5rem;
}

.ab-feature-desc h3{
  //text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

.ab-feature-desc p{
  font-size: 12px;
}

@media screen and (max-width: 1280px) {
  .ab-feature-text{
    margin: 3rem 3% 3rem auto;
    color: #fff;
  }
}

@media screen and (max-width: 1024px) {
  .ab-slide-wrap:nth-child(even){
    display: none;
  }
  .ab-feature{
    position: relative;
    background-position: 80% 50%;
  }  
    .ab-feature{
    padding: 1rem 0;
    background-image: url("https://ryoushu-souko.com/system_panel/uploads/images/20250611004205560851.png");
      background-repeat: no-repeat;
      background-size: cover;
  }
  .ab-feature-cont{
    gap: 3rem;
  }
  .ab-feature{
    flex-direction: column;
  }
  .ab-feature-img{
    max-width: 70%;
    height: auto;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .ab-desc-text h2 {
    font-size: 1rem;
  }
  .ab-feature-text{
    margin: 1rem auto;
    color: #fff;
    width: 95%; 
  }

  .ab-feature-cont{
    gap: 1rem;
  }
  .ab-feature-text h2{
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
  .ab-feature-item{
    gap: 0.5rem;
  }
  .ab-feature-img{
    max-width: 60%;
  }
  .ab-feature-desc{
    gap: 0.5rem;
  }
}

@media screen and (max-width: 414px) {
  .about-desc{
    position: relative;
    display: flex;
   flex-direction: column;
  }
  /* スライドレールの枠 */
  .ab-slide-wrap {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-height: 340px;
    width: auto;
    margin-bottom: 0;
  }

  /* content4つをまとめたスライドブロック */
  .ab-slideshow {
    display: flex;
    flex-direction: row;
    -webkit-animation: loop-slide 20s infinite linear 1s both;
    animation: loop-slide 20s infinite linear 1s both;
  }

  @-webkit-keyframes loop-slide {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-100%);
    }
  }
  @keyframes loop-slide {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-100%);
    }
  }
  .ab-desc-text{
    margin: 1rem 2.5%;
    color: #fff;
  }
  .ab-feature-item{
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .ab-feature-item img{
    width: 100%; 
    height: 120px;
    object-fit: cover;
  }
  .ab-feature-desc{
    padding-bottom: 1rem;
  }
  .ab-feature{
    position: relative;
    background-position: 50% 0%;
  }  
}