@charset "utf-8";

.container{
  padding:0!important;
}

.com-info{
  position: relative;
  background-image: url("https://ryoushu-souko.com/system_panel/uploads/images/20250606181601319721.png");
  width: 100%;
  height: auto;
  background-repeat: no-repeat;
  background-size: cover;
}

.com-info-text{
  width: 50%;
  margin: 0 0 0 auto;
  background-color: #0000008e;
  padding: 5rem 5%;
  color: #FFF;
}

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

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

.com-info-list{
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1rem;
  padding-bottom: 1rem;
  margin: 2rem 0;
  border-bottom: 1px solid #fff;
}

.com-info-list a{
  color: #fff;
}


.com-history{
  position: relative;
  background-image: url("https://ryoushu-souko.com/system_panel/uploads/images/20250606181607253253.png");
  width: auto;
  height: 100%;
  object-fit: cover;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 3rem 0;
}

.com-history-item{
  padding: 3rem 0;
  display: flex;
  gap: 3rem;
  color: #FFF;
  justify-content: space-between;
}

.com-history-item:nth-child(odd){
  padding: 1rem 0 3rem;
  display: flex;
  flex-direction: row-reverse;
  gap: 1rem;
  color: #FFF;
  justify-content: space-between;
}

.com-history-item:nth-child(even) .com-history-text{
  margin: 1rem 5% 3rem 0;
  position: relative;
  color: #FFF;
  line-height: 2;
  padding-bottom: 3rem;
}

.com-history-img{
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.com-history-text{
  margin: 1rem 0 3rem 5%;
  position: relative;
  color: #FFF;
  line-height: 2;
  padding-bottom: 3rem;
}

.com-history-text-img{
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: auto;
  max-height: 100px;
}

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

.com-history-text p{
  color: #FFF;
  line-height: 2;
}

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

.com-mes-item{
  display: flex;
  align-items: center;
  gap: 3rem;
  color: #000;
  justify-content: space-around;
}

.com-mes-item img{
  max-width: 30%;
  height: auto;
}

.com-mes-text{
  position: relative;
  height: fit-content;
  margin: 2rem 0;
}

.com-mes-text h2{
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 2rem;
  position: relative;
  color: #000;
  margin-bottom: 3rem;
}

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

.com-mes-text p{
  color: #000;
  line-height: 2;
}

.com-mes-name{
  margin-top: 2rem;
  display: flex;
  gap: 3rem;
  justify-content: flex-start;
}

.com-mes-name-img{
  max-width: 160px!important;
  height: auto;
}

@media screen and (max-width: 1024px) {
.com-history-text-img{
    position: absolute;
    right: 0rem;
    width: auto;
  }
  .com-mes-item{
    padding: 3rem 0;
  }
}

@media screen and (max-width: 768px) {
  .com-info-text h2{
    font-size: 1rem;
  }
  
  .com-info{
    background-position: 25% 0;
  }
  .com-info-text{
    width: 80%;
  }
  .com-history-item{
    flex-direction: column-reverse;
    width: 95%;
    justify-content: center;
    margin: 2rem auto;
  }
  .com-history-text{
    margin: 3rem 0;
  }
  .com-history-text h2{
    font-size: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  .com-history-item{
    padding: 1rem 0 3rem;
    display: flex;
    gap: 1rem;
    color: #FFF;
    justify-content: space-between;
  }
  .com-history-item:nth-child(odd){
    flex-direction: column-reverse;
    width: 95%;
    justify-content: center;
    margin: 0 auto 2rem;
  }
  .com-history-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .com-history-text-img{
    position: absolute;
    bottom: -2rem;
    right: 0rem;
    width: auto;
  }
  .com-mes-text h2{
    font-size: 1rem;
  }
  .com-mes-item{
    display: flex;
    gap: 1rem;
    flex-direction: column;
    width: 95%;
    margin: 1rem auto;
    padding: 3rem 0;
  }
  .com-mes-item img{
    max-width: 80%;
    max-height: 450px;
    object-fit: cover;
    object-position: 0 25%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 414px) {
  .com-info-text{
    width: 100%;
    padding: 3rem 2.5%;
  }
  .com-info-list{
    padding-bottom: 0.5rem;
    margin: 1rem 0;
    gap: 0.25rem;
  }
  .com-history-text-img{
    position: absolute;
    bottom: -3rem;
    right: 0rem;
    width: auto;
  }
  .com-mes-name{
    gap: 1rem;
  }
}