/** メインビジュアル **/
.visual .imgBox{
    width: 100%;
}
.visual .imgBox img{
    object-fit: cover;
    object-position: 50% 50%;
    width: 100%;
    height: 100%;
}
.visual .letterBox{
    text-align: center;
    position: relative;
    padding-top: 60px;
    padding-bottom: 20px;
    margin-bottom: 40px;
}
.visual.visual_detail .letterBox{
    padding-top: 30px;
}
.visual .letterBox::before{
    content: "";
    width: 60px;
    height: 60px;
    background-color: #e3e1cf;
    border-radius: 50%;
    position: absolute;
    right: calc(50% - 30px);
    top: -30px;
    z-index: -1;
}
.visual.visual_detail .letterBox::before{
    height: 30px;
    border-radius: 50% / 0 0 100% 100%;
}
.visual .letterBox::after{
    content: "";
    width: 40px;
    height: 1px;
    background-color: #000;
    position: absolute;
    right: calc(50% - 20px);
    bottom: 0;
}
.visual .letterBox h1{
    font-size: 32px;
    padding-left: 20px;
    position: relative;
    margin-right: 10px;
}
.visual.visual_detail .letterBox h1{
    padding-left: 0;
    margin-right: 0;
}
.visual .letterBox .sub {
    font-size: 16px;
    color: #999891;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

@media screen and (max-width: 500px) {
    .visual .letterBox h1{
        font-size: 26px;
    }
    .visual .letterBox .sub {
        font-size: 14px;
    }
}


/** 戻る **/
.return .wrapper{
    padding-left: 0;
    padding-right: 0;
}
.return a{ 
    padding: 20px;
    display: inline-block;
    color: #000;
    font-size: 18px;
    position: relative;
    padding-left: 20px;
}
.return a::before,
.return a::after{
  content: "";
  position: absolute;
  top: calc(50% + 0px);
  left: 0;
  width: 10px;
  height: 1px;
  border-radius: 9999px;
  background-color: #8b877d;
  transform-origin: 0px 50%;
}
.return a::before{
  transform: rotate(45deg);
}
.return a::after{
  transform: rotate(-45deg);
}


/** 施工事例 **/
.works{
    padding-top: 10px;
    padding-bottom: 120px;
}
.works ul{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}
.works ul li{
    width: calc((100% - 30px) / 2);
    aspect-ratio: 4 / 5;
}
.works ul li a:hover{
    opacity: .6;
}
.works ul li .imgBox{
    overflow: hidden;
    aspect-ratio: 4 / 5;

}
.works ul li img{
    object-fit: cover;
    object-position: 50% 50%;
    width: 100%;
    height: 100%;
}
.works ul li h3{
    color: #000;
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
}
.works ul li p{
    color: #8c8b85;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
}


/** 電話番号 **/
.telSection{
    font-family: "Noto Sans JP", sans-serif;
}
.telSection .telBox{
    border: 1px solid #000;
    border-radius: 4px;
    padding: 18px;
    text-align: center;
    max-width: 400px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 60px;
}
.telSection .telBox .ltr{
    font-size: 16px;
    font-weight: 500;
}
.telSection .telBox .telLetter span{
    font-size: 28px;
    font-weight: 700;
    text-decoration: underline;
}
.telSection .telBox .telLetter a{
    color: #000;
    display: inline-block;
    position: relative;
    left: -12px;
}
.telSection .telBox .icon_tel{
width: 26px;
    position: relative;
    top: -5px;
    right: -4px;
}
.telSection .telBox .time{
    font-size: 14px;
    color: #62605c;
    font-weight: 400;
    margin-top: 4px;
}

/** 情報 **/
.infoSection{
    font-family: "Noto Sans JP", sans-serif;
}
.infoSection .title{
    margin-bottom: 32px;
}
.infoSection p{
    color: #605f5b;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}
.infoSection .title p.number{
    margin-bottom: 0;
    line-height: 1;
}
.infoSection h1{
    font-size: 28px;
    font-weight: 600;
}
.infoSection .title p.sub{
    margin-bottom: 0;
    line-height: 1;
    font-size: 22px;
    color: #000;
}
.infoSection .tableBox{
    margin-bottom: 40px;
    margin-top: 40px;
}
.infoSection .tableBox dl:first-child{
    border-top: 1px solid #dcdad0;
}
.infoSection dl{
    display: flex;
    border-bottom: 1px solid #dcdad0;
}
.infoSection dt{
    width: 100px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #8c8b85;
}
.infoSection dd{
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}


/** detail **/
.detail{
    margin-bottom: 80px;
}



/** ギャラリー **/

.gallery .swiper {
    overflow: visible;
}
.gallery .swiper,
.gallery .thumb-wrapper {
    max-width: 1000px;
    margin: auto;
}
.gallery .slide-media,
.gallery .thumb-media {
    position: relative;
    overflow: hidden;
}
.gallery .slide-media {
    display: block;
    padding-top: 62.5%;
}
.gallery .slide-media img,
.gallery .thumb-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.gallery .swiper-controller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 62.5%;
}
.gallery .swiper-button-prev,
.gallery .swiper-button-next{
    display: grid;
    place-content: center;
    width: 35%;
    height: 100%;
    cursor: pointer;
    transition: .8s;
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    margin: auto 0;
}
.gallery .swiper-button-prev{
    left: 0;
}
.gallery .swiper-button-next{
    right: 0;
}
.gallery .swiper-button-prev::before,
.gallery .swiper-button-next::before{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    background-color: transparent;
}

.gallery .swiper-button-prev::after,
.gallery .swiper-button-next::after{
    content: none;
}
.gallery .thumb-wrapper{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
    box-sizing: border-box;
}
.gallery .thumb-media {
    padding-top: 60%;
    cursor: pointer;
    transition: .8s;
}
.gallery .slide {
    display: block;
    overflow: hidden;
}
.gallery figure {
    margin: 0;
}
.gallery .thumb-media-active {
    opacity: 0.5;
}

.works .wrapper{
    padding-right: 0;
    padding-left: 0;
}

@media screen and (max-width: 1020px) {
    .gallery .thumb-wrapper{
        padding-left: 10px;
        padding-right: 10px;
    }
    .return .wrapper{
        padding-left: 10px;
        padding-right: 10px;
    }
}
