#mainImg {
    background-image: url("../join/img/bg_main.png?ts=2501");
}

#contents .oneWord {
    font-size: 110%;
    line-height: 1.2;
    margin-top: 20px;
}
#contents h3 {
    font-size: max(22pt, 2vw);
    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;
}

#cost #contents .box_campaign{
	position: relative;
	margin: 4em 0;
	padding: 1.5em;
	border: solid 3px #F37834;
	background: rgba(243, 120, 52, 0.1);
}
#cost #contents .box_campaign .box-title {
	position: absolute;
	display: inline-block;
	top: -27px;
	left: -3px;
	padding: 0 9px;
	height: 25px;
	line-height: 25px;
	vertical-align: middle;
	font-size: 17px;
	background: #F37834;
	color: #ffffff;
	font-weight: bold;
	border-radius: 5px 5px 0 0;
}
#cost #contents .box_campaign p {
	margin: 0;
	padding: 0;
}

#cost #contents .box_campaign h4{
	font-weight: bold;
	font-size: 170%;
	color: #f00;
    margin-bottom: .5em;
}
#cost #contents .box_campaign h4::before{
	content: "◆";
}
#cost #contents .box_campaign table{
	background: #fff;
}
#cost #contents .box_campaign th{
    text-align: left;
	white-space: nowrap;
}
#cost #contents .box_campaign td{
	text-align: left !important;
}


#cost #contents table{
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #999;
}
#cost #contents table th,
#cost #contents table td{
	border: 1px solid #999;
	padding: 10px;
}
#cost #contents table th{
    text-align: left;
	font-weight: bold;
}
#cost #contents table th.ttl{
	font-size: 120%;
	text-align: center;
	color: #fff;
	background-color: #309a2d;
}
#cost #contents table td{
	text-align: right;
}
#cost #contents .total1 th,
#cost #contents .total1 td{
	font-weight: bold;
	font-size: 120%;
}
#cost #contents .total2 th,
#cost #contents .total2 td{
	color: red;
	font-weight: bold;
	font-size: 140%;
	background-color: #f8d4b9;
}
#cost #contents .shien th,
#cost #contents .shien td{
	color: #f00;
	font-weight: bold;
	font-size: 140%;
}
#cost #contents .campaign th,
#cost #contents .campaign td{
	color: red;
	font-weight: bold;
	font-size: 140%;
	background-color: #f8d4b9;
}

#cost #contents .second_year{
	border-top: 1px dashed #999;
	margin: 3em 0;
	padding-top: 3em;
}

#cost #contents .second_year table{
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #999;
}
#cost #contents .second_year table caption{
	font-weight: bold;
	font-size: 120%;
	text-align: left;
}
#cost #contents .second_year table colgroup col:nth-child(1) { width: 70%; }
#cost #contents .second_year table th,
#cost #contents .second_year table td{
	border: 1px solid #999;
	padding: 10px;
}
#cost #contents .second_year table td{
	font-weight: bold;
	font-size: 120%;
	color: #f00;
}

#cost .nyukaikin table colgroup col:nth-child(1) { width: 18%; }
#cost .nyukaikin table colgroup col:nth-child(2) { width: 18%; }
#cost .nyukaikin table colgroup col:nth-child(3) { width: 18%; }
#cost .nyukaikin table colgroup col:nth-child(4) { width: 18%; }
#cost .nyukaikin table colgroup col:nth-child(5) { width: 18%; }

#process #contents p.att{
	text-indent: -1em;
	margin-left: 1em;
	margin-bottom: 0;
}

#process #contents .jChangeFlow {
    display: none;
}
#process #contents .jChangeFlow > li {
    color: #fff;
    background-color: #999;
    padding: 5px;
    border: 1px solid #999;
    text-align: center;
}
#process #contents .jChangeFlow > li.on {
    background-color: #666;
}
#process #contents .two_block{
	display: flex;
	justify-content: space-between;
	position: relative;
}
#process #contents .two_block > div{
	width: calc(96% / 2);
}
#process #contents .item > dt,
#process #contents .item > dd{
	padding: 10px;
	border: 1px solid #999;
}
#process #contents .item > dt{
	font-weight: bold;
	font-size: 120%;
	text-align: center;
	color: #fff;
	background: #088dbe;
}
#process #contents .item > dt+dd{
	margin-top: -1px;
}

#process #contents .two_block > div:nth-child(1) .item > dt{
	background: #eb5806;
}
#process #contents .two_block > div:nth-child(2) .item > dt{
	background: #17A73F;
}
#process #contents .two_block > div:nth-child(2) .arr_down::after{
	color: #17A73F;
}

#process .arr_down{
	position: relative;
	margin-bottom: 70px;
}
#process .arr_down::before,
#process .arr_down::after{
	content: "";
	position: absolute;
}
#process .arr_down::before{
	width: 20px;
	height: 20px;
	bottom: -35px;
	left: 50%;
	right: 50%;
	background: #088dbe;
	transform: translate(-50%, 0);
}
#process .arr_down::after{
	border: 20px solid transparent;
	border-top-color: #088dbe;
	bottom: -75px;
	left: 50%;
	right: 50%;
	transform: translate(-50%, 0);
}
#process #contents .two_block > div:nth-child(1) .arr_down::before{
	background: #EB5806;
}
#process #contents .two_block > div:nth-child(1) .arr_down::after{
	border-top-color: #EB5806;
}
#process #contents .two_block > div:nth-child(2) .arr_down::before{
	background: #17A73F;
}
#process #contents .two_block > div:nth-child(2) .arr_down::after{
	border-top-color: #17A73F;
}

#process #contents .arr_down.long1::before{
	height: 310px;
	bottom: -325px;
}
#process #contents .arr_down.long1::after{
	bottom: -365px;
}

#process #contents .arr_down.long2::before{
	height: 190px;
	top: -50px;
}
#process #contents .arr_down.long2::after{
	top: 138px;
}
#process #contents .arr_down.arr_move::before{
	top: 120px;
}
#process #contents .arr_down.arr_move::after{
	top: 140px;
}


/*
#process .arr_down::after{
	font-size: 300%;
	font-family: FontAwesome;
	content: "\f175";
	position: absolute;
	bottom: -67px;
	left: 50%;
	right: 50%;
}
*/

#process .pos_top{
	margin-top: 65px;
}
#process .pos_top::before{
	top: -55px;
	bottom: auto;
}
#process .pos_top::after{
	top: -35px;
	bottom: auto;
}

#process #contents .detail > dt{
	font-weight: bold;
	font-size: 110%;
}
#process #contents .detail+ul{
	margin-top: 10px;
	display: flex;
}
#process #contents .detail+ul > li{
	margin-right: 25px;
}
#process #contents .detail+ul a::before{
	content: "・";
}

#process #contents .attention{
	margin: 40px 0;
	padding: 15px;
	border: 1px solid #999;
}
#process #contents .attention dt{
	font-weight: bold;
	font-size: 110%;
}
#process #contents .attention dd {
    text-indent: -1em;
    margin-left: 1em;
}

#application .detail .applicationList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min-content, 340px));
    justify-content: center;
    gap: .5em;
}
#application .detail .applicationList > li {
    text-indent: -1em;
    margin-left: 1em;
}


#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);
}

#application .downloadList{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 375px), 2fr));
    gap: 1em;
    margin-block: 1.5em;
}
#application .downloadList > li > a{
    display: block;
    color: #326CA6;
    font-size: clamp(16px, 2vw, 22px);
    text-decoration: none;
    background-color: #F4F4F6;
    padding: 15px 25px;
}
#application .downloadList > li > a > img{
    vertical-align: -6px;
    margin-right: 10px;
}

#application ul.info{
    margin-bottom: 2.0em;
}
#application ul.info > li{
    margin-bottom: 0.4em;
}
#application .btn_link{
    display: inline-block;
    position: relative;
    padding: 15px 35px;
    /* text-align: center; */
    color: #fff;
    text-decoration: none;
    background-color: #326CA6;
    z-index: 2;
}
#application .btn_link:visited{
    color: #fff;
}
#application .btn_link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
    transition: all .4s 0s;
}
#application .btn_link:hover::before{
    left: 0;
}

#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){
    #mainImg {
        background-image: url("../join/img/bg_main_sp.png");
    }

    #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: 100%;
        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%;
    }

    #cost #contents .box_campaign {
        padding: 10px;
    }

    #cost #contents .box_campaign h4{
        font-size: 5.5vw;
    }
    #cost #contents .box_campaign table tr {
        display: grid;
        grid-template-columns: 1fr;
    }
    #cost #contents .box_campaign table tr th {
        padding-bottom: 0;
        border-bottom: none;
    }
    #cost #contents .box_campaign table tr td {
        padding-top: 0;
        border-top: none;
    }

    #cost #contents .sp-table .table .item {
        color: #fff;
        text-align: center;
        background-color: #309a2d;
        padding: 5px;
    }
    #cost #contents .sp-table .table dl > div {
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ccc;
    }
    #cost #contents .sp-table .table dl > div:nth-child(even) {
        background-color: #d6ebd5;
    }
    #cost #contents .sp-table .table .total {
        text-align: center;
        font-weight: bold;
        padding: 15px 0;
    }
    #cost #contents .sp-table .all p {
        color: #f00;
        font-weight: bold;
        font-size: 110%;
        text-align: center;
        border-top: 1px solid #ccc;
        background-color: #f8d4b9;
        padding: 10px 0;
    }


    #cost #contents .second_year table th,
    #cost #contents .second_year table td
    {
        font-size: 90%;
    }
    #cost #contents .second_year table th {
        text-align: left;
    }

    #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;
    }
    #process #contents .jChangeFlow {
        display: flex;
        gap: .5em;
        margin-bottom: 1em;
    }
    #process #contents .two_block > div {
        width: 100%;
    }
    #process #contents .detail+ul{
        margin-top: 10px;
        flex-direction: column;
    }
    #process #contents .detail+ul > li{
        margin-right: 0;
    }

    #process #contents .arr_down.long1::before{
        height: 20px;
        bottom: -35px;
    }
    #process #contents .arr_down.long1::after{
        bottom: -75px;
    }
    #process #contents .arr_down.long2::before{
        height: 20px;
        top: -55px;
    }
    #process #contents .arr_down.long2::after{
        top: -35px;
    }
    #process #contents .arr_down.arr_move::before{
        top: auto;
    }
    #process #contents .arr_down.arr_move::after{
        top: auto;
    }

    #application .detail .applicationList {
        justify-content: flex-start;
    }

    #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;
    }
}