
#information {
    padding: 4px 0 20px;
}


.section {
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    padding-top: 20px;
    background-color: rgba(252, 252, 252, 0);
}

.fade-in-out {
  height: auto;
}
.service-set{
    margin-bottom: 20px;
    text-align: right; /* 右寄せ */
    display: flex; /* フレックスボックスを使用して横並びに */
    align-items: flex-end;
    justify-content: flex-end; /* 横方向の右寄せ */
}
.service-set>div{
    width: 60%;
    margin-left: 0px;
}

.service-img img{
    width:50%;
    max-width: 100%; /* 画像が親要素をはみ出さないように */
    height: auto; /* アスペクト比を維持 */
}

.service-text{
    width:100%;
    margin-top: 10px;
    margin-left: 30px;
    font-size: 20px;
}

.service-title{
    font-size: 40px;
    font-weight:bold;
    white-space: nowrap;
    text-align: left; /* 左寄せ */
}

.service-title span{
    padding-left: 8em;
}

.st-img {
    vertical-align: middle;
    border-style: none;
    aspect-ratio: auto 200 / 100;
    margin: 20px;
    width: 650px;
    height: 100%;
}

.sy-img {
    margin-top: 10px;
    margin-left: 6px;
    margin-bottom: 10px;
    width: 180px;
}

.con_textbox{
    margin-top: 10px;
}

a.anchor{
    display: block;
    padding-top: 30px;
    margin-top: -30px;
}

.fade-in-out.active {
  
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.service-heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* ← 上端を揃える */
  
  margin: 0 auto 20px auto;
  padding: 0 0px;
  box-sizing: border-box;
}

.service-title-text {
  font-size: 8rem;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
  white-space: nowrap;
  flex-shrink: 0;
  color: #AEAEAE;
  line-height: 1;  
  padding-top: 0;
}

.service-icon {
  width: 400px;         
  height: auto;
  display: block;
  object-fit: contain;
  margin-top: 4px; 
  vertical-align: top; /* 行内要素のズレ防止（保険） */
}


@media (max-width: 768px) {
    #sercom {
        background-image: url(/img/bg_sub_service_sp.webp);
        background-repeat: no-repeat;
        background-position-y: 280px;
        background-size: 100% auto;
        padding-bottom: 20px;        
    }

    .service-text p:not(.service-title) {
        font-size: 16px;
    }

    .service-title {
        font-size: 30px;
    }

    #contactcom {
        padding-top: 0px;
    }

    #information{
        padding: 4px 0px 0px;
    }

    .fade-in-out {
        margin: 1px;
    }

    .service-img img{
        width:100%;
        height:100%;
    }

    .service-set{
        display: grid;
        margin-bottom: 20px;
        text-align: center;
    }

    .service-set>div{
        width: 100%;
        margin: 0px;
    }

    .service-text{
        margin: 0px;
        font-size:initial;
    }

    .service-title{
        font-size: 20px;
        font-weight:bold;
        white-space: initial;
    }

    .st-img {
        margin-left:0px;
        margin-top: 20px;
        margin-bottom: 20px;
        width: 320px;
        height: 100%;
    }

    .sy-img {
        margin-top: 10px;
        margin-left: 0px;
        margin-bottom: 10px;
        width: 160px;
    }


    .service-heading {
        gap: 10px;
        width: 100%;
        padding: 0 0px;
    }

    .service-title-text {
        font-size: 24px;
        margin: 10px 0;
    }

    .service-icon {
        width: 140px;
    }

}
