/* =====================================
   共通
===================================== */
img
{
    max-width: 100%;
}
main
{
   padding: 0 5%;
   box-sizing: border-box;
   width: 100%!important;
}
section
{
   /* width: 100%; */
   width: 1280px;
   max-width: 100%;
   margin: 80px auto;
}
section h2
{
   font-size: 2.3em;
    margin: 0;
    text-align: center;
}
section h2.h2left
{
    text-align: left;
}
.layerCotents
{
   margin: 50px auto 0;
}
.scrollInfinity
{
   left: -7vw;
}

.makahouMain
{
    margin-bottom: 100px;
}

/*合同会社MAKAHOU*/
.beforeLogoH2
{
    background-color: #fff;
    width: fit-content;
    padding: 10px 5%;
    border-radius: 5px;
    margin: 150px auto 30px;
    position: relative;
}
.beforeLogoH2::before
{
    content: "";
    display: block;
    position: absolute;
    background-image: url(../img/makahou/logo-top.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 150px;
    height: 100px;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
}

.makahouIntroduction
{
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 5%;
    margin: 80px 0;
}
.introductionLeft
{
    width: 100%;
}
.introductionLeft img
{
    border-radius: 10px;
}
.introductionRight
{
    width: 100%;
}
.introductionRight p
{
    font-size: 18px;
    line-height: 2.3;
    margin: 0 0 25px 0;
}
.makahouTel
{
    width: 100%;
    border: 1px solid #2b2b2b;
    border-radius: 5px;
}
.makahouTel a
{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #2b2b2b;
    width: 100%;
    height: 100%;
    padding: 10px 0 ;
    font-size: 2.5em;
    font-weight: bolder;
}
.makahouTel a::before
{
    content: "";
    background-image: url(../img//makahou/denwa-black.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 35px;
    height: 35px;
    margin-right: 30px;
}

.serviceDiscriptionBox
{
    margin: 60px 0;
    width: 100%;
    display: flex;
}
.serviceName
{
    width: 25%;
    padding: 50px 0;
    border-radius: 10px 0 0 10px;
    box-sizing: border-box;
    text-align: center;
}
.serviceName.orange
{
    background-color: #EB974E;
}
.serviceName.pink
{
    background-color: #F0907D;
}
.serviceName.green
{
    background-color: #20AD92;
}
.serviceName  p
{
    color: #fff;
    margin: 0 0 10px 0;
}
.serviceName  h4
{
    color: #fff;
    margin: 0 0 20px 0;
    font-size: clamp(1.5rem, 2.5vw, 2.5em);

    line-height: 1;
    white-space: nowrap;
}
.serviceName  img
{
    margin-top: 20px;
    width: 80%;
    object-fit: contain;
}
.serviceContent
{
    width: 75%;
    background-color: #fff;
    border-radius: 0 10px 10px 0;
    padding: 20px 5%;
    box-sizing: border-box;
}
.serviceContent h4
{
    font-size: 1.9em;
    margin: 30px 0;
    line-height: 1;
    position: relative;
    padding-left: 20px;
    font-weight: 600;
}
.serviceContent h4::before
{
    content: "";
    position: absolute;
    display: block;
    top: 55%;
    left: 0;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.serviceContent.orange h4::before
{
    background-color: #EB974E;
}
.serviceContent.pink h4::before
{
    background-color: #F0907D;
}
.carelist
{
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.carelist>li
{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFF4EB;
    border-radius: 5px;
    text-align: center;
    padding: 17px 0;
    font-weight: 600;
}
.makahouServiceHr
{
    margin: 35px 0;
}
.carelist.green>li
{
    background-color: #E7F7F4;
}
.kaigo
{
    font-size: 1.5em;
    line-height: 1;
    color: #EB974E;
    margin: 20px 0 10px;
}
.taxiText
{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    text-align: center;
    gap: 20px;
}
.taxiText>div
{
    width: 100%;
    background-color: #FFF4F2;
    padding: 15px 5%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}
.taxiText>div p
{
    font-weight: 600;
}
.serviceTel
{
    font-size: 1.5em;
    margin: 15px 0;
}

/*在籍スタッフ*/
.staffList
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    margin: 30px 0;
}
.staffBox
{
    display: flex;
    flex-flow: column;
}
.staffBox>.post
{
    background-color: #FDD2AC;
    margin: 0;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    box-sizing: border-box;
}
.staffBox>.post p
{
    margin: 0;
    font-size: 1.3em;
    line-height: 1;
}
.staffBox>.peopleNum
{
    background-color: #fff;
    margin: 0;
    border-radius: 0 0 5px 5px ;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    box-sizing: border-box;
}
.staffBox>.peopleNum p
{
    margin: 0;
    font-size: 1.3em;
    line-height: 1;
}
.staffBox>.peopleNum p span
{
    font-size: 2.5em;
    margin-right: 10px;
    font-weight: bolder;
}

/*活動記録*/
.makahouActivity
{
    background-color: #fff;
    padding: 50px 5%;
    box-sizing: border-box;
    border-radius: 10px;
    display: flex;
    flex-flow: column;
    margin-top: 30px;
}
.makahouBtn
{
    width: 300px;
    margin: 30px auto 0;
}

/*お問い合わせ*/
.makahouContact
{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: #EB974E;
    padding: 25px 5%;
    box-sizing: border-box;
    border-radius: 10px;
    gap: 5%;
    margin: 30px 0;
}
.makahouContactLeft
{
    width: 35%;
    padding: 35px 0;
}
.makahouContactLeft h4
{
    font-size: 2em;
    line-height: 1;
    color: #fff;
    margin: 0;
}
.makahouContactLeft p
{
    font-size: 1.2em;
    line-height: 1.5;
    margin: 30px 0;
    color: #fff;
    font-weight: 500;
}
.makahouContactLeft .makahouTel
{
    border: 1px solid #fff;
}
.makahouContactLeft .makahouTel a
{
    color: #fff;
    padding: 5px 0;
    font-size: 2em;
}
.makahouContactLeft .makahouTel a::before
{
    background-image: url(../img/makahou/denwa-white.png);
    
}
.makahouContactRight iframe
{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.makahouContactRight
{
    width: 65%;
}

/*MAKAHOU　活動記録*/

#makahouActivityList.activityList
{
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
}

/*ページネーション*/
.makahouMain .pagination button.active
{
    background-color: #EB974E;
    color: #fff;
}
.makahouMain .pagination button
{
    border: 2px solid #EB974E;
    color: #EB974E;
}
.makahouMain .pagination button:hover
{
    background-color: #FDD2AC;
}
/* =====================================
   PCのみ
===================================== */
@media screen and (min-width: 1325px) {
    a[href^="tel:"]{
        pointer-events: none;
      }
    
}

/* =====================================
   タブレット
===================================== */
@media screen and (max-width: 1324px) {
    .makahouIntroduction
    {
        flex-flow: column;
        gap: 50px;
    }
    .makahouTel
    {
        margin-top: 20px;
    } 
    .makahouTel a
    {
        /* padding: 0; */
        padding: 10px;
    }
    /* .serviceDiscriptionBox
    {
        flex-flow: column;
    } */
    /* .serviceName
    {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 10px 10px 0 0;
        padding: 20px 5%;
    } */
    /* .serviceName>div:nth-child(1)
    {
        width: 65%;
        text-align: left;
    }
    .serviceName>div:nth-child(1) h4
    {
        margin-bottom: 0;
    }
    .serviceName>div:nth-child(2)
    {
        width: 35%;
    }
    .serviceName>div:nth-child(2) img
    {
        width: 100%;
        margin: 0;
    } */
    .serviceContent
    {
        width: 100%;
        border-radius: 0 0 10px 10px ;
        padding: 20px 5%;
    }
    .serviceContent h4
    {
        text-align: justify;
        font-size: 1.7em;
    }
    .carelist
    {
        grid-template-columns: repeat(2,1fr)
    }
    .staffList
    {
        grid-template-columns: repeat(3, 1fr);
        margin: 30px 0;
    }
    .staffBox>.post p
    {
        font-size: clamp(0.8rem, 2vw, 2em);
    }
    /* #makahouActivityList.activityList
    {
        grid-template-columns: repeat(1,1fr);
        margin: 0;
        width: 100%;
    } */
    /* .makahouBtn
    {
        width: 100%;
        max-width: 100%;
    } */
    .makahouActivity
    {
        padding: 40px 0;
    }
    .makahouBtn>.moreBtn
    {
        width: 100%;
        max-width: 100%;
    }
    /* .makahouContact
    {
        flex-flow: column;
    } */
    .makahouContactLeft
    {
        width: 100%;
        text-align: center;
    }
    .makahouContactRight
    {
        width: 100%;
    }
    section
    {
        width: 95%;
    }
    .makahouIntroduction
    {
        margin: 40px auto;
    }
}


@media screen and (max-width: 800px) {
    .insta
    {
        margin: 40px auto;
    }
    .makahouMain
    {
        margin-bottom: 60px;
    }
    .serviceName
    {
        padding: 50px 10px;
    }
    main
    {
        padding: 0;
    }

}



/* =====================================
    SP
===================================== */
@media screen and (max-width: 767px) {
   section
   {
      margin: 50px auto;
   }
   .layerCotents
   {
      margin: 30px auto 0;
   }
   section h2
   {
    font-size: 2em;
   }
   .carelist
    {
        grid-template-columns: repeat(1,1fr)
    }
    .taxiText
    {
        flex-flow: column;
    }
    .staffList
    {
        grid-template-columns: repeat(2, 1fr);
    }
    .makahouContactRight
    {
        aspect-ratio: 1/1;
    }
    .beforeLogoH2::before
    {
        width: 120px;
        top: -80px;
    }
    .beforeLogoH2
    {
        margin: 100px auto 10px;
    }


    .layerTopTitle h2
    {
        font-size: 2.3em;
        line-height: 1.3;
    }
    .makahouIntroduction
    {
        margin-top: 40px;
        gap: 30px;
    }
    .introductionRight p
    {
        font-size: 1.1em;
        line-height: 2.1;
    }
    .makahouTel a
    {
        padding: 0;
    }
    .makahouTel a::before
    {
        margin-right: 15px;
    }
    .serviceDiscriptionBox
    {
        margin-top: 30px;
        flex-flow: column;
    }
    .layerTopTitle h2
    {
        font-size: 2em;
    }
    .serviceName
    {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 10px 10px 0 0;
        padding: 20px 5%;
    }
    .serviceName>div:nth-child(1)
    {
        width: 65%;
        text-align: left;
    }
    .serviceName>div:nth-child(1) h4
    {
        margin-bottom: 0;
    }
    .serviceName>div:nth-child(2)
    {
        width: 35%;
    }
    .serviceName>div:nth-child(2) img
    {
        width: 100%;
        margin: 0;
    }
    .serviceName h4
    {
        font-size: 2em;
    }
    .serviceContent h4
    {
        line-height: 1.3;
        margin-top: 5px;
    }
    .kaigo
    {
        font-size: 1.4em;
    }

    .staffBox>.post p
    {
        font-size: 1em;
    }
    .staffBox>.peopleNum
    {
        padding: 10px 0 20px 0;
    }
    .makahouContactLeft
    {
        padding-top: 20px;
    }
    .makahouContactLeft p
    {
        line-height: 1.3;
        margin: 10px 0 30px 0;
    }

    section#TOP, section
    {
        width: 95%;
    }

    .makahouMain
    {
        margin-bottom: 40px;
    }
    #makahouActivityList.activityList
    {
        grid-template-columns: repeat(1,1fr);
        margin: 0;
        width: 100%;
    }
    .makahouBtn
    {
        width: 100%;
        max-width: 100%;
    }
    .makahouContact
    {
        flex-flow: column;
    }
    section h2.h2left
    {
        line-height: 1.5;
    }
    .makahouActivity
    {
        padding: 40px 30px;
    }
}