/* スクロールフェードイン用のスタイル */
.scroll-show {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.scroll-show.is-show {
    opacity: 1;
    transform: translateY(0);
}

.t-yellow {
    color: var(--color-yellow);
}

.t-red {
    color: var(--color-red);
}

body {
    margin: 0;
}

main {
    background: linear-gradient(to right, var(--color-blue01), var(--color-navy) 70%, var(--color-navy));
}


/* メインビジュアル */
#main-visual {
    background: linear-gradient(to right, var(--color-blue01), var(--color-navy) 70%, var(--color-navy));
    color: #ffffff;
    background-image: url(../img/leading-image.webp);
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: top right;
    overflow: hidden;
}

#main-visual .tag {
    font-size: 20px;
    background: linear-gradient(to right, var(--color-lightblue), var(--color-green));
    padding: 15px 80px 15px 20px;
    margin-bottom: 15px;
    display: inline-block;
    clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 100%, 0 100%);
    font-weight: 600;
}

#overview-circle {
    display: flex;
    gap: 20px;
    /* overflow: hidden; */
    flex-wrap: wrap;
    position: relative;
}

#overview {
    width: 60%;
}

#overview p {
    line-height: 1.6;
}


#circle {
    background: linear-gradient(to right, #fff11d, #fff11d 7.5041%, #fbcc00 28.0899%, #f0932e 72.3493%, #e9652d 100%);
    color: #333;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: -110px;
    position: relative;
    padding: 2px;
    font-size: 30px;
}

.circle-gradation {
    background: linear-gradient(to left, #fff11d, #fff11d 7.5041%, #fbcc00 28.0899%, #f0932e 72.3493%, #e9652d 100%);
    color: #333;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

#circle span {
    margin-top: 50px;
}


#main-visual h1 {
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 20px;
}

#overview {
    font-size: 18px;
}

#overview span {
    font-size: 25px;
    display: inline-block;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    #main-visual {
        padding-top: 30px;
        background-size: 65%;
    }

    #main-visual h1 {
        font-size: 33px;
        text-shadow: 2px 2px 6px black;
    }

    #overview {
        width: 100%;
        font-size: 16px;
    }

    #overview p {
        background: linear-gradient(to left, #0b142f75 60%, transparent);
        box-shadow: 20px -3px 20px 20px #0b142f75;
    }

    #overview span {
        font-size: 20px;
        line-height: 1.3;
    }

    #circle {
        border-radius: 0;
        width: 100%;
        height: 50px;
        margin-bottom: 0px;
        font-size: 20px;

    }

    .circle-gradation {
        border-radius: 0;
        width: 100%;
        height: 100%;
        align-items: center;
    }


    #circle span {
        margin-top: 0;
    }

    #main-visual .tag {
        font-size: 18px;
        padding: 10px 70px 10px 20px;
    }
}

/* 支援内容 */
#support {
    background: linear-gradient(to bottom, #ffffff, #ffffff 50%, var(--color-lightblue) 50%, var(--color-lightblue));
}

#step-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.step-border:not(:last-child)::after {
    content: "";
    width: 55px;
    height: 55px;
    background-image: url(../img/arrow-right.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 43px;
    right: -40px;
    transform: translateY(-50%);
    z-index: 10;
}

.step-border {
    position: relative;
    background: linear-gradient(135deg, var(--color-blue02) 0%, var(--color-green) 74%, var(--color-green) 100%);
    padding: 3px;
    border-radius: 25px 0 0 0;
    width: 200px;
    display: flex;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
}

.step-border.show {
    opacity: 1;
    transform: translateY(0);
}

/* 各要素に遅延を設定 */
.step-border:nth-child(1).show {
    transition-delay: 0s;
    z-index: 9;
}

.step-border:nth-child(2).show {
    transition-delay: 0.3s;
    z-index: 8;
}

.step-border:nth-child(3).show {
    transition-delay: 0.6s;
    z-index: 7;
}

.step-border:nth-child(4).show {
    transition-delay: 0.9s;
    z-index: 6;
}

.support__step {
    background: #ffffff;
    border-radius: 22px 0 0 0;
    width: 100%;
    background: #ffffff;
    border-radius: 22px 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.support__step span {
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--color-blue01);
    font-size: 25px;
}

.support__step span:nth-of-type(1) {
    position: relative;
}

.support__step span:nth-of-type(1)::after {
    content: "";
    display: inline-block;
    position: absolute;
    width: 30%;
    height: 2px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to left, var(--color-blue02) 0%, var(--color-green) 74%, var(--color-green) 100%);
}

.support__step span:nth-of-type(2) {
    line-height: 1.2;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 950px) {
    #step-box {
        gap: 25px;
    }

    .step-border {
        width: 60%;
    }

    .step-border:not(:last-child)::after {
        top: auto;
        bottom: -40px;
        right: 50%;
        transform: translateX(50%) rotate(90deg);
    }
}

@media screen and (max-width: 768px) {
    .step-border {
        width: 80%;
    }
}

/* 認定・伴走支援期間 */
#period-company {
    background: var(--color-gray);
    display: flex;
}

#period-company .inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px 0;
}

#period,
#company {
    width: 48%;
}

#period table {
    border-spacing: 5px;
    border-collapse: separate;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}

#period table th {
    display: block;
    color: #077c78;
    width: 4em;
    text-align: justify;
    text-align-last: justify;
    font-weight: 600;
}

#period p {
    padding-left: 1em;
    text-indent: -1em;
}

/* 対象者 */
#company li {
    position: relative;
    padding-left: 1.5em;
    line-height: 1;
    margin-bottom: 10px;
    line-height: 1.5;
}

#company li::before {
    position: absolute;
    content: "";
    width: 1em;
    height: 1em;
    background: #077c78;
    left: 0;
    top: 5px;
}

@media screen and (max-width: 768px) {

    #period,
    #company {
        width: 100%;
    }
}

/* 受付期間 */
#reception {
    background: #ffffff;
    background: var(--color-gray);
    padding: 30px 0;
}

#reception .inner {
    background: var(--color-blue02);
    color: #ffffff;
    padding: 30px;
    text-align: center;
}


#reception span {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    #reception .inner {
        text-align: left;
    }

    #reception h2 span {
        font-size: 20px;
    }
}

/* 伴走支援までのスキーム */
#scheme {
    background: var(--color-gray);
}

#scheme table {
    border-collapse: separate;
    border-spacing: 0px 10px;
    width: 100%;
    margin-bottom: 30px;
    font-size: 18px;
}

.scheme-tr {
    background: rgb(255, 255, 255);
    padding: 10px;
    font-weight: 600;
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    border-radius: 30px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4 ease;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scheme-tr.show {
    opacity: 1;
    transform: translateY(0);
}

/* 各要素に遅延を設定 */
.scheme-tr.show:nth-child(1).show {
    transition-delay: 0s;
}

.scheme-tr.show:nth-child(2).show {
    transition-delay: 0.3s;
}

.scheme-tr.show:nth-child(3).show {
    transition-delay: 0.6s;
}

.scheme-tr.show:nth-child(4).show {
    transition-delay: 0.9s;
}

.scheme-tr.show:nth-child(5).show {
    transition-delay: 1.2s;
}

.scheme-tr.show:nth-child(6).show {
    transition-delay: 1.5s;
}

.scheme-tr.show:nth-child(7).show {
    transition-delay: 1.8s;
}

.scheme-tr.show:nth-child(8).show {
    transition-delay: 2.1s;
}

#scheme table td {
    padding: 10px;
    vertical-align: middle;
    color: var(--color-blue02);
    text-align: left;
}

#scheme table td:nth-of-type(1) {
    font-weight: 600;
    border-right: solid 1px #777777;
    width: 3em;
    text-align: center;
}

#scheme table td:nth-of-type(2) {
    border-right: solid 1px #777777;
    width: 18em;
}

#scheme table td:nth-of-type(3) {
    display: inline-block;
    text-align: left;

}

#scheme table td.t-red {
    color: var(--color-red);
}

#process {
    text-align: center;
}

#process p {
    text-align: left;
}

#process p:last-of-type {
    padding-left: 1em;
    text-indent: -1em;
}

.process__img-box {
    width: 100%;
    overflow: auto;
}

#process img {
    max-inline-size: none;
    max-block-size: none;
    width: 1000px;
}


@media screen and (max-width: 950px) {
    #scheme table tr {
        border-radius: 25px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #scheme table td:nth-of-type(1) {
        background: var(--color-blue02);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #scheme table td:nth-of-type(1),
    #scheme table td:nth-of-type(2) {
        border-right: none;
    }

    #scheme table td:nth-of-type(1).t-red {
        background: var(--color-red);
    }

    #scheme table td:nth-of-type(2) {
        width: calc(100% - 35px);
    }

    #scheme table td:nth-of-type(3) {
        width: 100%;
        border-top: solid 1px #777777;
        border-radius: 0;
    }
}


/* 提出書類 */
#documents {
    background: #ffffff;
}

#documents h2 span {
    font-size: 16px;
}

#documents ol {
    list-style-type: none;
    counter-reset: list-counter;
    margin-bottom: 30px;
}

ol li {
    counter-increment: list-counter;
    margin-bottom: 5px;
    padding-left: 18px;
    text-indent: -24px;
    line-height: 1.5;
}

ol li::before {
    content: "(" counter(list-counter) ") ";
}

#documents h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-red);
}

#documents a {
    color: var(--color-blue02);
    text-decoration: underline;
}

/* フッター */
footer {
    background: var(--color-navy);
    background: linear-gradient(to right, var(--color-lightblue), var(--color-green));
    color: #ffffff;
    padding: 30px 0;
}

#contact {
    /* display: flex; */
}

#contact h2 {
    /* width:13em */
}

#contact p {
    line-height: 1.8;
    font-size: 18px;
}

#foundation {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    line-height: 1.3;
}