#mainImg {
    background: linear-gradient(55deg, #f9e258 50%, transparent 50%), url("../join/img/bg_main.jpg");
}
#index #mainImg {
    background: linear-gradient(55deg, #f9e258 50%, transparent 50%), url("../join/img/bg_main_merit.jpg");
}
#process #mainImg {
    background: linear-gradient(55deg, #f9e258 50%, transparent 50%), url("../join/img/bg_main_process.jpg");
}
#application #mainImg {
    background: linear-gradient(55deg, #f9e258 50%, transparent 50%), url("../join/img/bg_main_application.jpg");
}
#group_culture #mainImg {
    background: linear-gradient(55deg, #f9e258 50%, transparent 50%), url("../join/img/bg_main_group_culture.jpg");
}

#contents .oneWord {
    font-size: 110%;
    line-height: 1.2;
    margin-top: 20px;
}
#contents h3 {
    font-size: max(22pt, 2vw);
    font-weight: normal;
    margin-bottom: .2em;
    line-height: 1.3;
}

#index .merit {
    margin-top: 4em;
    margin-bottom: 3em;
}

#index .merit > ul > li {
    position: relative;
    padding-top: 2.5em;
    margin-top: 2.5em;
}
#index .merit > ul > li::before {
    content: "";
    position: absolute;
    width: 35%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 6px solid #ccc;
}
#index .merit > ul > li.withImages > div {
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
}
#index .merit > ul > li.withImages > div > div:nth-child(1) {
    width: min(100%, 750px);
}
#index .merit dl {
    margin-top: 1em;
}
#index .merit dl > dt {
    font-size: 170%;
    line-height: 1.3;
    margin-bottom: .4em;
}
#index .merit dl > dd,
#index .merit dl + ul {
    font-size: 90%;
}

#index .merit .point {
    display: inline-block;
    text-align: center;
    padding: 2px 2em;
    background-color: #a6ccd2;
    min-width: 170px;
}

#index .merit .supportMerit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-gap: 3em 1em;
}
#index .merit .supportMerit > li {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    grid-gap: 10px;
    text-align: center;
}
#index .merit .supportMerit > li img {
    width: 100%;
    margin: 0 auto;
}
#index .merit .supportMerit > li .bigFont {
    font-size: 140%;
}
#index .merit .supportMerit > li a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--color-green);
    background-color: var(--color-green);
    padding: .5em 1.5em;
}
#index .merit .supportMerit > li a:hover {
    color: var(--color-green);
    background-color: #fff;
}

#cost .headOffice {
    margin: 2.5em 0 4em;
}
#cost .headOffice table {
    width: 100%;
    border-collapse: collapse;
    font-size: 90%;
}
#cost .headOffice table colgroup col:nth-child(1){ width: 15%; }
#cost .headOffice table colgroup col:nth-child(2){ width: 22%; }
#cost .headOffice table colgroup col:nth-child(3){ width: 8%; }
#cost .headOffice table colgroup col:nth-child(4){ width: 45%; }
#cost .headOffice table tr th,
#cost .headOffice table tr td
{
    padding: 5px 1em 5px 2px;
    border-bottom: 1px solid #000;
    vertical-align: middle;
}
#cost .headOffice table tr th {
    font-weight: normal;
    text-align: left;
    border-top: 1px solid #000;
    background-color: #f9e258;
}

#cost .headOffice table tr.bgColor .detailName,
#cost .headOffice table tr.bgColor .amount,
#cost .headOffice table tr.bgColor .remarks
{
    background-color: #fff3d3;
}


#cost .headOffice table tr .amount,
#cost .headOffice table tr .totalAmount
{
    text-align: right;
}
#cost .headOffice .grandTotal {
    text-align: right;
    margin: .8em auto 1em;
}
#cost .headOffice .grandTotal > p {
    display: inline-block;
    font-weight: bold;
    border-radius: 30px;
    background-color: #f9e258;
    padding: 5px 20px;
}
#cost .headOffice .grandTotal > p > span {
    font-size: 140%;
}

#cost .headOffice .grandTotal .special p {
    position: relative;
    /* padding-top: 1.8em; */
    /* padding-right: 3.5em; */
    margin-top: .5em;
    margin-bottom: .5em;
    line-height: 1.3;
}
#cost .headOffice .grandTotal .special p > img {
    position: absolute;
    top: 0;
    right: 0;
}
#cost .headOffice .grandTotal .special p > span {
    display: inline-block;
    color: #f00;
    font-weight: bold;
    font-size: 140%;
}
#cost .headOffice .grandTotal .special p > span small {
    color: #000;
    font-weight: normal;
    font-size: 70%;
}

#cost .headOffice .grandTotal .special > a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 120%;
    font-weight: bold;
    border: 1px solid #ff3006;
    border-radius: 50px;
    background-color: #ff3006;
    padding: 1em;
}
#cost .headOffice .grandTotal .special > a:hover {
    color: #ff3006;
    background-color: #fff;
}
#cost .branch {
    margin-bottom: 4em;
}

#process .process {
    background-image: linear-gradient(to bottom, #aaa, #aaa 4px, transparent 4px, transparent 8px);
    background-size: 4px 8px;
    background-position: center top;
    background-repeat: repeat-y;
}

#process .hide {
    border: 0 !important;
}
#process .process .sideBySide {
    display: flex;
    align-items: center;
    gap: .5em;
}

#process .process > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin: 0 auto 2em;
    width: min(100%, 950px);
}
#process .process > div > div {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    padding: 1em;
}
#process .process > div > div::before {
    content: "";
    position: absolute;
    top: 120%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-top: 10px solid #555; /* 好みで高さ色を変えてください */
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}
#process .process > div .span2 {
    grid-column: span 2;
}
#process .process > div .span2::before {
    left: 23.5%;
    transform: translateX(-23.5%);
}
#process .process > div .span2::after {
    content: "";
    position: absolute;
    top: 120%;
    left: 76.5%;
    width: 0;
    height: 0;
    transform: translateX(-76.5%);
    border-top: 10px solid #555; /* 好みで高さ色を変えてください */
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}
#process .process .circleNumber {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 120%;
    font-weight: bold;
    width: 40px;
    height: 40px;
    color: #fff;
    background-color: #999;
    border-radius: 50%;
}
#process .process .star {
    display: flex;
    align-items: center;
    font-size: 200%;
    line-height: 1;
}
#process .process .entry {
    color: #fff;
    text-align: center;
    font-weight: bold;
    background-color: var(--color-green);
}
#process .process .entry::before,
#process .process .entry::after
{
    top: 110% !important;
}
#process .process .entry > span {
    font-size: 130%;
}
#process .process .content {
    color: var(--color-green);
    font-weight: bold;;
    background-color: #b1e1cb;
}
#process .process .content ul {
    display: flex;
    gap: 1em;
}

#process .process .last {
    font-weight: bold;
    background: #ccc;
}
#process .process .last::before,
#process .process .last::after
{
    content: none !important;
}

#process .link {
    width: min(100%, 950px);
    margin: 0 auto 4em;
}


#application .detail .applicationList > div {
    margin-bottom: 3em;
}

#application .detail .applicationList > div dt {
    font-size: 120%;
    
}
#application .detail .applicationList > div dd .sideBySide {
    display: flex;
    gap: 1em;
}
#application .detail .applicationList > div dd .btnDownload {
    display: block;
    width: min(100%, 610px);
    text-decoration: none;
    border: 1px solid var(--color-green);
    background-color: var(--color-green);
    padding: 1em;
    box-sizing: border-box;
}
/* #application .detail .applicationList > div dd .btnDownload > div {
    display: flex;
    align-items: center;
    gap: 1em;
} */
#application .detail .applicationList > div dd .btnDownload p {
    display: inline-block;
    color: #fff;
}
#application .detail .applicationList > div dd .btnDownload p:nth-child(1) {
    border: 2px solid #fff;
    padding: 10px;
    margin-bottom: .5em;
}
#application .detail .applicationList > div dd .btnDownload:hover {
    background-color: #fff;
}
#application .detail .applicationList > div dd .btnDownload:hover p {
    color: var(--color-green);
}
#application .detail .applicationList > div dd .btnDownload:hover p:nth-child(1) {
    border: 2px solid var(--color-green);
}

#group_culture #contents .detail {
    margin: 4em 0;
}

#group_culture .detail > div {
    display: flex;
    flex-direction: column;
    gap: 4em;
}
#group_culture .detail > div > div:nth-child(2) {
    max-width: 100%;
}
#group_culture .detail > div h4 {
    font-size: 1.6vw;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: .5em;
}
#group_culture .detail > div h4 + dl > dt {
    font-size: 1.70vw;
    background-color: #f9e258;
    border-radius: 30px;
    padding: .5em 30px;
    margin-bottom: .8em;
}

@media screen and (max-width: 430px){
    #contents h3 {
        line-height: 1.2;
    }
    #contents .oneWord {
        margin-bottom: 10px;
    }

    #index .merit > ul > li.withImages > div {
        flex-direction: column;
    }
    #index .merit dl > dt {
        font-size: 140%;
    }
    #index .merit .supportMerit {
        grid-template-columns: 1fr 1fr;
    }
    #index .merit .supportMerit > li img {
        width: 80%;
    }
    #index .merit .supportMerit > li p {
        font-size: 85%;
    }
    #index .merit .supportMerit > li .bigFont {
        font-size: 120%;
    }

    #cost .headOffice table colgroup col {
        width: auto !important;
    }
    #cost .headOffice table tr th,
    #cost .headOffice table tr td.totalAmount
    {
        display: none;
    }
    #cost .headOffice table tr td {
        display: block;
        text-align: center !important;
        border: 0;
        padding: 2px 5px;
    }
    #cost .headOffice table tr td.name {
        text-align: center;
        padding: .5em;
        background-color: var(--color-gray);
    }
    #cost .headOffice table tbody tr td.detailName {
        padding-top: .5em;
    }
    #cost .headOffice table tr {
        border-top: 1px solid #ccc;
    }
    #cost .headOffice table tr.for-sp {
        font-size: 110%;
        padding: .5em 0;
    }
    #cost .headOffice .grandTotal {
        text-align: center;
        font-weight: bold;
        border-top: 1px solid #ccc;
        padding-top: 1em;
    }
    #cost .headOffice .grandTotal .special p > span {
        font-size: 120%;
    }
    #cost .headOffice .grandTotal .special > a {
        font-size: 100%;
    }

    #process .process .sideBySide {
        flex-direction: column;
    }
    #process .process > div > div {
        font-size: 80%;
        padding: .5em;
    }
    #process .process > div > div::before,
    #process .process > div > div::after
    {
        top: 110% !important;
    }

    #process .process .entry > span {
        font-size: 110%;
    }
    #process .process .content ul {
        flex-direction: column;
        text-align: left;
        gap: .5em;
    }

    #application .detail .applicationList > div dd .sideBySide {
        flex-direction: column;
    }


    #group_culture .detail > div {
        flex-direction: column;
    }
    #group_culture .detail > div > div:nth-child(2) {
        max-width: 100%;
    }

    #group_culture .detail > div h4 {
        font-size: 4.5vw;
        font-weight: bold;
    }
    #group_culture .detail > div h4 + dl > dt {
        font-size: 5.5vw;
        font-weight: bold;
        line-height: 1.3;
        padding: 15px;
    }
}