/*仲間を募集しています ユニークレイアウト*/
ul.recruit_box{
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 30px 50px 0;
    display: flex;
    grid-gap: 2%;
    flex-wrap: wrap;
    justify-content: center;
}
ul.recruit_box li{
    width: 32%;
    background-color: #efefef;
    padding: 0px;
    border-radius: 5px;
}
ul.recruit_box li picture{
    width: 100%;
    margin-bottom: 15px;
}
ul.recruit_box li picture img{
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}
ul.recruit_box li .txt{
    position: relative;
}
ul.recruit_box li .txt span.icon{
    font-family: serif;
    font-size: clamp(15px,2.5vw,16px);
    line-height: 1.4em;
    padding: 6px 12px 4px;
    background-color: #fff;
    border: solid 1px #2e2e2e;
    border-radius: 5px;
    position: absolute;
    top: -50px;
    left: 15px;
}
ul.recruit_box li .txt strong,
ul.recruit_box li .txt p{
    padding: 20px;
}
ul.recruit_box li .txt strong {
    font-size: clamp(18px,2.5vw,20px);
    display: inline-block;
    padding-bottom: 10px;
}
ul.recruit_box li .txt p{
    font-size: clamp(14px,2.5vw,16px);
    line-height: 1.8em;
    padding-top: 0px;
}

@media only screen and (max-width: 890px) {
    p.explanation {
        max-width: 640px;
        text-align: left;
    }
    ul.recruit_box{
        max-width: 580px;
        padding: 30px 20px 0;
        row-gap: 25px;
    }
    ul.recruit_box li{
        width: 100%;
        position: relative;
    }
    ul.recruit_box li .txt{
        position: initial;
        margin-top: -50px;
    }
    ul.recruit_box li .txt span.icon{
        top: 10px;
        left: 10px;
    }
    ul.recruit_box li .txt p,
    ul.recruit_box li .txt strong {
        padding: 15px;
    }
    ul.recruit_box li .txt p {
        padding-top: 5px;
    }
    ul.recruit_box li .txt strong {
        background-color: #efefef;
        padding-bottom: 5px;
        border-radius: 0 8px 0 0;
    }
    ul.recruit_box li picture img{
        height: 180px;
    }
}

/*現在の募集職種一覧・登録はこちら*/
.jobs_box{
    width: 100%;
    max-width: 1180px;
    margin: auto;
}
.jobs_box h3{
    font-size: clamp(22px,2.5vw,24px);
    font-family: serif;
    font-weight: normal;
    color: #2e2e2e;
    text-align: center;
    letter-spacing: 0.15em;
    margin-top: 30px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
}
.jobs_box h3:after{
    content: "";
    height: 1px;
    width: 85px;
    border-bottom: 1px solid #2e2e2e;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
ul.occupation {
    display: flex;
    grid-gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100px;
}
ul.occupation li{
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1em;
    background-color: #fff;
    width: 140px;
    padding: 10px 0;
    border: solid 1px #2e2e2e;
    border-radius: 8px;
}
@media only screen and (max-width: 890px) {
    .jobs_box{
        padding: 0px;
    }
    .jobs_box h3{
        padding-bottom: 0;
        margin-bottom: 20px;
    }
    .jobs_box h3:after{
        display: none;
    }
    ul.occupation {
        height: auto;
    }
}

/*ご登録はこちら内のリンクボタン用CSS*/
.jobs_box .contact_box {
    width: 100%;
    max-width: 1180px;
    padding: 20px 50px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-gap: 40px;
}
.jobs_box .contact_box a {
    width: calc(80% - 20px);
    height: 120px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #a1a1a1;
    border-radius: 10px;
    overflow: hidden;
}
.jobs_box .contact_box a img{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: 0.4s;
    z-index: 1;
}
.jobs_box .contact_box a p{
    font-size: clamp(25px,2.5vw,30px);
    font-family: serif;
    font-weight: bold;
    line-height: 1em;
    letter-spacing: 0.08em;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0,0,0,1));
    z-index: 2;
}
.jobs_box .contact_box a:hover img{
    transform: scale(1.05);
}
@media only screen and (max-width: 890px) {
    .jobs_box .contact_box{
        max-width: 680px;
        padding: 20px;
    }
    .jobs_box .contact_box a {
        width: 100%;
    }
}

/*採用支援地域のご紹介*/
.bg.recruit_detail ul.contents li .text h3,
.bg.recruit_detail h3 ruby {
    font-size: clamp(22px,2.5vw,24px);
    font-weight: bold;
    color: #008480;
    line-height: 1.4em;
    width: auto;
    position: initial;
    margin: 0 auto 20px;
}
.bg.recruit_detail h3 small {
    font-size: clamp(12px,2.5vw,15px);
    font-weight: normal;
    color: #2e2e2e;
    display: inline-block;
    line-height: 1.4em;
}
.recruit_detail h4{
    font-size: clamp(14.5px,2.5vw,18px);
    color: #008480;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: dashed 1px #2e2e2e;
    text-align: left;
}
.recruit_detail h4 small{
    display: inline-block;
    margin: auto;
    padding-left: 10px;
    font-size: clamp(14px,2.5vw,18px);
    font-weight: normal;
    color: #2e2e2e;
}
@media only screen and (max-width: 890px) {
    .recruit_detail h4 small{
        width: 100%;
        padding: 0;
        display: inline-block;
        line-height: 1.4em;
    }
}

.introduction.link_box {
    width: 100%;
    max-width: 1140px;
    padding: 0 20px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    grid-gap: 20px;
}
.introduction.link_box a{
    width: 85%;
    max-width: 320px;
    text-align: center;
    padding: 10px 0 9px;
    padding-right: 25px;
    background-color: #fff;
    border: 1px solid #2e2e2e;
    border-radius: 30px;
    position: relative;
    transition: 0.4s;
}
.introduction.link_box a:after{
    content: "";
    position: absolute;
    right: 25px;
    top: 42%;
    width: 8px;
    height: 8px;
    border-right: solid 2px #2e2e2e;
    border-bottom: solid 2px #2e2e2e;
    transform: rotate(45deg);
    transition: 0.4s;
}
.introduction.link_box a:hover{
    background-color: #008480;
    border: 1px solid #008480;
    color: #fff;
}
.introduction.link_box a:hover:after{
    border-right: solid 2px #fff;
    border-bottom: solid 2px #fff;
    transform: rotate(405deg);
}

/*飯豊町の魅力*/
.iidemachi-photo {
    position: relative;
    height: 620px;
}
.iidemachi-photo picture p {
    font-size: clamp(11px,2vw,12px);
    line-height: 1.4em;
    padding: 0 10px;
    width: fit-content;
    background-color: #fff;
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 3px;
}
.iidemachi-photo img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}
.iidemachi-photo picture.p01{
    width: 95%;
    position: relative;
    top: 0;
    left: -10px;
    margin: 0 auto 0 0;
    z-index: 1;
}
.iidemachi-photo picture.p02{
    width: 78%;
    position: relative;
    top: -15px;
    margin-right: 0;
    margin-left: auto;
    z-index: 2;
}
@media only screen and (max-width: 890px) {
    .iidemachi-photo {
        padding-top: 30px;
        height: auto;
    }
    .iidemachi-photo picture.p01{
        width: 98%;
        left: 0;
    }
    .iidemachi-photo picture.p02{
        width: 82%;
        top: -15px;
        right: -5px;
    }
}

.mayor{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}
.mayor h3,
.mayor p{
    width: fit-content;
}
.mayor p.name,
.mayor p ruby{
    font-size: clamp(13px,2.5vw,15px);
    margin-left: auto;
    margin-right: 5px;
    margin-bottom: 0 !important;
}
.mayor picture{
    width: 25%;
    max-width: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}
@media only screen and (max-width: 890px) {
    .mayor h3 {
        position: initial !important;
        width: fit-content !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}