.page-title {
    padding: 120px 0;
    margin-top: 90px;
    background: url("../img/common/page-title.jpg");
    background-size:cover;
    background-position:center;
    position:relative;
    text-align:center;
    z-index: 2;
}
.page-title:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    left: 0;
    top: 0;
    opacity: 0.4;
}
.page-title *{
    position:relative;
    z-index:2;
}
.page-title h2 {
    font-size: 38px;
    color: white;
    letter-spacing: 0.05em;
}
.page-title p {
    font-size: 20px;
    font-weight: bold;
    color: white;
    letter-spacing: 0.1em;
    opacity: 0.5;
}
/*---------------------------------*/
/*SERVICE
/*---------------------------------*/
main.page.service {
    overflow: visible;
    padding-top: 50px;
}

.p-service .box-wrapper:first-of-type {
    margin-top: 100px;
}
.p-service__content h4 {
    font-size: 32px;
    text-align: center;
    margin-bottom:30px;
}
.p-service__content h4:first-letter {
    color: var(--main);
}
.exsample {
    padding-top: 30px;
}
.exsample h5 {
    text-align: center;
    font-size: 24px;
    margin-bottom:30px;
}
.exsample h5 span {
    display: inline-block;
    padding-bottom: 10px;
    font-weight: bold;
    border-bottom: 2px solid var(--main);
    line-height: 1.4em;
}
.p-service__icon {
    width: 120px;
    height: 120px;
    background: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    overflow: hidden;
    top: -50px;
    left: calc(50% - 60px);
    position:absolute;
}

ul.link-nav li {
    width: calc(100% / 5);
}
ul.link-nav li a {
    background: var(--main);
    color: white;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 12px 12px 10px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s;
}
ul.link-nav li a img{
    position:relative;
    transition:all 0.3s;
    width: 10px;
}
ul.link-nav li a:hover img{
    transform:translateX(5px);
}
ul.link-nav li a:hover{
    background:var(--accent);
}

.example__slide {
    position: relative;
    overflow: hidden;
}
.example__slide-inner {
    position: absolute;
    bottom: 0;
    padding: 30px;
    width: 100%;
    background: rgb(0, 0, 0);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    transform: translateY(120px);
    transition:all 0.3s;
}
.example__slide:hover > .example__slide-inner{
    transform:translateY(0);
}
.example__slide-inner *{
    color:white;
}
.example__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}
p.example__slide-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 20px;
}
.example__slide-desc ul li p:first-of-type {
    width: 120px;
}
.example__slide-desc ul li {
    display: flex;
}
.example__slide-thumbs img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    padding: 5px;
    transition:0.3s;
}
.example__slide-thumbs img:hover{
    opacity:0.6;
}
.example__slide-thumbs {
    padding-top: 10px;
}
section.p-service {
    display: flex;
    justify-content: center;
    gap: 20px;
}
ul.link-nav {
    max-width: 800px;
    width: 200px;
    display: flex;
    gap: 10px;
    padding-bottom: 100px;
    position: sticky;
    top: 120px;
    z-index: 4;
    padding: 20px;
    flex-direction: column;
    height: 100%;
    padding-top: 100px;
    padding-bottom: 150px;
}
ul.link-nav li {
    width: 100%;
}

.p-service .box-wrapper {
    
    margin: auto;
    margin-bottom:150px;
    background: #f7f7f7;
    padding: 90px 50px 60px;
    position: relative;
    width: 100%;
}
.scroll-content {
    max-width: 800px;
    width: calc(100% - 220px);
}
span.num {
    margin-right: 10px;
}
.slick-prev, .slick-next{
    top:45% !important;
}
button.slick-prev.slick-arrow {
    background: var(--main);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    z-index: 2;
}
button.slick-next.slick-arrow {
    background: var(--main);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    z-index: 2;
}
.slick-prev:before, .slick-next:before{
    opacity:1 !important;
}

div#civil-engineering .p-service__icon img {
    width: 80px;
}

div#paving .p-service__icon img {
    width: 90px;
}

div#construction .p-service__icon img {
    width: 58px;
}

div#water-sewage .p-service__icon img {
    width: 60px;
}

div#coating .p-service__icon img {
    width: 65px;
    position: relative;
    top: 5px;
}

div#private .p-service__icon img {
    width: 80px;
}
div#ict .p-service__icon img {
    width: 96px;
    position: relative;
    top: 5px;
}

/* 
ul.sub-cate li a {
    background: #788990;
    display: block;
    text-align: center;
    padding: 10px;
    color: white;
    font-size: 15px;
    letter-spacing: 0.05em;
    line-height: 1.3em;
}
ul.sub-cate li.active a{
    background: var(--accent);
}
ul.sub-cate li {
    width: calc(100% / 4 - 6px);
}
ul.sub-cate {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
} */


.tab-list {
    display: flex;
    gap: 1px;
    margin-top: 30px;
}
.tab-menu {
    align-items: center;
    background-color: #788990;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    width: calc(100% / 4);
    text-align: center;
    font-size: 15px;
    padding: 10px;
}
  .tab-menu.current {
    background-color: var(--accent);
}

/*---------------------------------*/
/*COMPANY会社概要
/*---------------------------------*/
.company section {
    max-width: 1280px;
    padding-bottom: 100px;
    padding-top: 100px;
    margin-top: -100px;
}
.company-title p {
    font-size: 18px;
    font-weight: bold;
    position: relative;
    letter-spacing: 0.03em;
}
.company-title h3:first-letter {
    color: var(--main);
}
.company-title h3 {
    font-size: 32px;
}
.company-title {
    margin-bottom: 50px;
}
.company-title p:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--main);
    left: -16px;
    top: 12px;
}
.p-message__box-wrapper {
    display: flex;
    gap: 50px;
}
.p-message__box-wrapper {
    display: flex;
    gap: 50px;
}
.p-message__box-content {
    width: calc(100% - 270px);
}
.p-message__box-image {
    position: relative;
    width: 220px;
}
.p-message__box-image img{
    width:100%;
    object-fit:cover;
}
.p-message__profile {
    text-align: right;
    margin-top: 20px;
}
.p-message__profile p:last-of-type{
    font-size:20px;
    font-weight:bold;
}
.p-message__profile p:first-of-type {
    display: flex;
    gap: 10px;
    font-size: 14px;
    justify-content: flex-end;
}


.p-company__box {
    display: flex;
    background: #f2f2f0;
    border-bottom: 1px solid #d4d4d4;
    align-items: flex-start;
}

.p-company__box p:first-of-type {
    width: 250px;
    font-weight: bold;
    padding-left: 40px;
    background: #F2F2F0;
    height: 100%;
    padding: 24px 0 24px 30px;
}

.p-company__box p:last-of-type {
    width: calc(100% - 250px);
    padding: 24px;
    background: #F7F7F7;
}

.p-company__box:last-of-type {
    border-bottom: 0;
}
.p-company__box-wrapper {
    border-top: 2px solid var(--main);
}
span.p-company__box-row {
    display: flex;
}
span.p-company__box-row span {
    display: inline-block;
}


p.p-environment__title:before {
    content: "";
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--main);
    bottom: -5px;
}
p.p-environment__title {
    font-size: 24px;
    font-weight: bold;
    position: relative;
    margin-bottom: 20px;
}
.p-environment__box {
    margin-bottom: 50px;
}

.p-environment__box-wrapper {
    padding: 50px 60px;
    background: var(--gray);
}

.p-environment__box.p-environment__box--last {
    text-align: right;
    margin-bottom: 0;
}

span.map-link {
    display: inline-block;
    margin-left: 7px;
    position: relative;
    top: 2px;
}
span.map-link a {
    display: flex;
}

/*--------------------------------------------*/
/*お問合せ*/
/*--------------------------------------------*/
.contact__intro {
    margin: auto;
    font-weight: 500;
    text-align: center;
}
section.contact .box-wrapper {
    max-width: 950px;
    margin: auto;
    height: 250px;
    overflow-y: scroll;
    border: 2px solid var(--main);
    padding: 50px 40px;
    background:white;
}
section.contact .box-wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}
section.contact .box-wrapper p:last-of-type {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}
section.contact .box-wrapper p span{
    font-weight:bold;
}

.contact__tel,.contact__mail{
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
p.contact__tel-heading,p.contact__mail-heading {
    font-size: 20px;
    font-weight: 500;
    color: var(--main);
    letter-spacing: 0.05em;
    border-bottom: 2px solid;
    display: inline-block;
}
.contact__tel a {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: bold;
    color: var(--main);
    position: relative;
    left: -20px;
}
.contact__tel a img {
    width: 50px;
}
.contact__tel a p {
    color: var(--main);
    letter-spacing: 0.05em;
    font-size: 36px;
}
p.contact__tel-desc {

    font-weight: 500;
    line-height: 1em;
}
p.contact__mail-desc {
    font-weight: 500;
}
.contact__mail {
    gap: 15px;
    padding-bottom: 50px;
}
.contact__tel {
    padding-top: 50px;
}
/*--------------------------------------------*/
/*フォーム*/
/*--------------------------------------------*/
.form-step ul {
    display: flex;
    justify-content: center;
    padding: 50px 0;
    gap: 10px;
  }
  .form-step ul li {
    color: white;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    max-width: 220px;
    background: #c2817f;
  }
  .form-step ul li.active {
    background: var(--main);
  }
  
  input[type=text],input[type=email] {
    border: 1px solid;
    border-radius: 5px;
    font-size: 16px;
    line-height: 2em;
    background: var(--gray);
    border-color: #d9d9d9;
    width: 100%;
    padding: 5px;
  }
  
  textarea {
    border: 1px solid;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.6em;
    background: var(--gray);
    border-color: #d9d9d9;
    width: 100%;
    padding: 5px;
    height:200px;
  }
  
  input[type=submit] {
    padding: 15px;
    background: #C20000;
    min-width: 250px;
    color: white;
  }
  
  .form__submit {
    margin-top: 50px;
    text-align: center;
  }
  
  label {
    line-height: 0;
  }
  
  dt,
  dd {
    font-weight: 500;
  }
  
  .form {
    margin: auto;
    max-width: 800px;
  }
  dl.form__item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bordergray);
    padding: 20px 10px;
    margin: 0;
}
dl.form__item:first-of-type{
    border-top:1px solid var(--bordergray);
}
  dl.form__item dt {
    width: 230px;
  }
  dl.form__item dd {
    width: calc(100% - 230px);
    margin: 0;
  }
  
  dt.form__label span {
    background: var(--main);
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    margin-left: 10px;
    font-weight: normal;
  }
  
  .form-radio label {
    display: inline-block;
  }
  
  .form-radio label:not(:first-of-type) {
    margin-left: 15px;
  }
  
  .form-radio input + span {
    position: relative;
    display: block;
    font-size: 0.9375rem;
    line-height: 1;
    cursor: pointer;
    padding: 0px 0px 0px 1.5em;
  }
  
  .form-radio input + span::before {
    content: "";
    width: 0.9375rem;
    height: 0.9375rem;
    display: block;
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    background: rgb(255, 255, 255);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(204, 204, 204);
    -o-border-image: initial;
       border-image: initial;
    border-radius: 50%;
  }
  
  .form-radio input + span::after {
    content: "";
    width: 0.4375rem;
    height: 0.4375rem;
    position: absolute;
    top: 50%;
    left: 0.25rem;
    transform: translateY(-50%);
    opacity: 0;
    padding: 0.125rem;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    -o-border-image: initial;
       border-image: initial;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    transition: all 0.3s ease 0s;
  }
  
  .form-radio input:checked + span:after {
    opacity: 1;
  }
  dd.form__input.form-input.form-input--pt2 {
    display: flex;
    gap: 10px;
    max-width: 300px;
    justify-content: flex-start;
}
dd.form__input.form-input.form-input--pt3 {
    max-width: 200px;
}
.form-container {
    max-width: 800px;
    margin: auto;
}
/*  フォーム用ボタン　*/
.more-btn button {
    border: 0;
    background: none;
    cursor:pointer;
}
.more-btn button {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}
.more-btn button span {
    position: relative;
    transition: all 0.3s;
    font-weight: bold;
    color: var(--main);
}
.more-btn button span:before {
    width: 100%;
    height: 2px;
    content: "";
    position: absolute;
    background: var(--main);
    bottom: -5px;
    transition: all 0.3s;
    left: 0;
}
.more-btn button span:after {
    width: 0;
    height: 2px;
    content: "";
    position: absolute;
    background: var(--main);
    bottom: -5px;
    transition: all 0.3s;
    right: 0;
}

.more-btn button:hover span:before {
    width: 0;
}

.more-btn button:hover span:after {
    width: 100%;
    transition-delay: 0.2s;
}

.more-btn button:hover .more-btn__circle {
    transform: translateX(10px);
}
.more-btn.more-btn--form {
    display: flex;
    justify-content: center;
    padding-top:0;
}

.form__submit.form-submit.form-submit--confirm {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.more-btn.more-btn--form.more-btn--back .more-btn__circle{
    background:var(--black);
}

.more-btn.more-btn--form.more-btn--back .more-btn__circle {
    background: var(--black);
    transform: scale(-1, -1);
}
.more-btn.more-btn--form.more-btn--back *{
    color:var(--black);
}
.more-btn.more-btn--form.more-btn--back span:before,.more-btn.more-btn--form.more-btn--back span:after{
    background:var(--black);
}

.more-btn.more-btn--form.more-btn--back button:hover .more-btn__circle {
    transform: scale(-1, -1) translateX(10px);
}

/*  ----------------------------　*/

main.page.confirm,
main.page.complete {
    padding-top: 50px;
}

main.page.complete .contact h2 {
    text-align: center;
    margin-bottom: 30px;
}

/*---------------------------------*/
/*タブレット以下
/*---------------------------------*/
@media screen and (max-width:1180px) {
    main.page.service:before{
        display:none;
    }
    ul.link-nav{
        position:relative;
        width: 100%;
        padding: 0;
        top:0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .scroll-content {
        width: 100%;
    }
    section.p-service {
        flex-wrap: wrap;
    }
    ul.link-nav li {
        width: calc(100% / 3 - 10px);
    }
}

/*---------------------------------*/
/*スマホ以下
/*---------------------------------*/
@media screen and (max-width:667px) {
    .page-title h2 {
        font-size: 28px;
    }
    .page-title {
        padding: 60px 0 70px;
        margin-top: 60px;
    
    }
    .p-message__box-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .p-message__box-content {
        width: 100%;
    }
    .p-company__box p:first-of-type {
        width: 100%;
    }
    .p-company__box {
        flex-direction: column;
    }
    .p-company__box p:last-of-type {
        width: 100%;
    }
    .p-environment__box-wrapper {
        padding: 30px 30px;
        background: var(--gray);
    }
    ul.link-nav{
        position:sticky;
        top:80px;
    }
    ul.link-nav li {
        width: calc(100% / 3 - 7px);
    }
    ul.link-nav li a{
        padding: 10px 8px 10px 10px;
        font-size: 12px;
        text-align:center;
        white-space:nowrap;
        justify-content: center;
    }
    ul.link-nav li a img{
        width:8px;
        display:none;
    }
    .p-service .box-wrapper {
        padding: 90px 20px 60px;
    }
    .company-title h3 {
        font-size: 28px;
        letter-spacing: 0.08em;
    }
    .p-company__box p:first-of-type,.p-company__box p:last-of-type{
        padding: 14px 24px 14px 24px;
    }
    section.p-service{
        padding:0 20px;
    }
    .example__slide-inner{
        padding: 15px; 
    }
    p.example__slide-title{
        margin-bottom:20px;
    }
    .example__slide-desc ul li p {
        font-size: 10px;
    }
    .example__slide-desc ul li p:first-of-type {
        width: 50px;
    }
    .example__slide-desc ul li p{
        width: calc(100% - 50px);
    }
    p.example__slide-title{
        font-size:16px;
        line-height: 1.3em;
    }
    .example__slide-inner{
        transform: translateY(95px);
    }
    .example__slide img{
        aspect-ratio: 3 / 2.5;
    }
    .example__slide-desc ul li p {
        width: calc(100% - 50px);
        line-height: 1.3em;
        margin: 5px 0;
    }
    button.slick-prev.slick-arrow,button.slick-next.slick-arrow{
        width: 34px;
        height: 34px;
    }
    section.contact .box-wrapper {
        height: 150px;
        padding: 20px;
    }
    section.contact .box-wrapper h2{
        font-size:16px;
    }
    section.contact .box-wrapper p {
        font-size: 15px;
    }
    .form-step ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 10px;
    }
    .form-step ul li{
        max-width:none;
        font-size: 14px;
    }
    dl.form__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    dl.form__item dt {
        width: 100%;
    }
    dl.form__item dd {
        width: 100%;
        margin: 0;
    }
    dd.form__input.form-input.form-input--pt3{
        max-width:none;
    }
    .form__submit.form-submit.form-submit--confirm .more-btn__circle {
        width:40px;
        height:40px;
    }
    .form__submit.form-submit.form-submit--confirm{
        gap:10px;
    }
    .form__submit.form-submit.form-submit--confirm .more-btn__circle img {
        width: 18px;
    }
    main.page.complete .contact h2 {
        text-align: center;
        margin-bottom: 30px;
        font-size: 18px;
        padding-top: 30px;
    }
    ul.link-nav{
        gap:4px;
    }
    ul.link-nav li {
        width: calc(100% / 3 - 3px);
    }
    .tab-menu {
        width: calc(100% / 2 - 1px);
    }
    .tab-list {
        flex-wrap: wrap;
    }
    .contact__tel a p{
        font-size: 30px;
    }
    .contact__tel a img {
        width: 40px;
    }
    .contact__tel a{
        gap:10px;
    }
    }
