/* 文字の大きさ */
h1,
h2,
h3,
h4,
ul {
    margin: 0;
    padding: 0;
}

#NewTraining {
    margin-top: 15%;
}

#curriculum {
    position: relative;
    margin-top: 5%;
}

#backup {
    margin: 10% 0;
}

.contents {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 16px;
    overflow: hidden;
    width: 90%;
    margin: 6% auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.text-section,
.image-section {
    flex: 1;
}

.text-section {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
    font-size: 18px;
}

.text-section p {
    margin: 10px 0;
}

.text-section span {
    color: #CD8250;
    font-weight: bold;
}


.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.number {
    display: flex;
    margin-left: 7%;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.subtitle {
    width: 100%;
    margin: 10px 0 0 2%;
}

.number h1 {
    font-size: 110px;
    font-weight: bold;
    color: #E19B5F;
}

.number h2 {
    font-size: 50px;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(160deg, #F5CBA2, #F8DEAB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.number p {
    font-size: 32px;
    font-weight: bold;
    color: #363636;
    font-style: normal;
    margin: 0;
}


.curriculum-title {
    text-align: center;
    font-weight: bold;
}

.curriculum-title h3 {
    color: #E19B5F;
    font-size: 65px;
    font-style: italic;
}

.curriculum-title p {
    margin-top: 10px;
    font-size: 40px;
}


.backup-container {
    margin-top: 3%;
}


.backup-item {
    display: flex;
    text-align: center;
    margin: 10% 0;
}

.backup-text {
    margin: 0 auto;
}

.backup-text h1 {
    font-size: 80px;
    font-style: italic;
}

.backup-text span {
    font-size: 40px;
    font-style: normal;
    margin-left: 4%;
}

.backup-text h3 {
    font-size: 23px;
    margin: 3% 0;
}

.backup-text p {
    font-size: 18px;
}

.backup-text.EN p {
    width: 90%;
    margin: 0 auto;
    font-size: 18px;
}

.backup-item-Flip {
    display: flex;
    text-align: center;
}

#backup .backup-item img,
#backup .backup-item-Flip img {
    width: 650px;
    height: auto;
}


.curriculum-box {
    width: 75%;
    height: 170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    padding: 0 3%;
    gap: 3rem;
    position: relative;
    margin: 3% auto;
}


.curriculum-box img {
    width: 150px;
}

.curriculum-box h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.curriculum-box p {
    font-size: 18px;
    margin: 5px 0;
}

#English {
    width: 83%;
    height: 185px;
    margin: 0 auto;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    padding: 2% 3%;
    gap: 3rem;
    position: relative;
    margin: 7% auto 0;
}

.English-title h2 {
    font-size: 35px;
    font-weight: bold;
    background: linear-gradient(160deg, #F5CBA2, #F8DEAB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.English-title p {
    font-size: 27px;
    font-weight: bold;
    color: #363636;
    font-style: normal;
    margin: 0;
}

.English-title img {
    width: 26px;
    vertical-align: middle;
    margin: 0 4px 4px 0;
}

.English-text {
    font-size: 18px;
}


/* 画像サイズ */

/* アニメーション */
.curriculum-contents {
    position: relative;
}

.curriculum-box {
    z-index: 3;
}

.svg-wrapper {
    top: 157%;
    right: 50%;
}

#top {
    top: -15%;
    left: 50%;
}

#low {
    top: 21%;
    left: 50%;
}

#backup {
    position: relative;
}

.backup-container {
    position: relative;
    z-index: 3;
}

/* 英語版のスタイル */
html[lang="en"] #English {
    height: 160px;
}

@media screen and (max-width: 768px) {
    html[lang="en"] #English {
        height: 290px;
    }
}

/* スマホ対応 */
@media screen and (max-width: 768px) {

    #TopView {
        height: 400px;
    }

    #TopText {
        top: 53%;
    }

    #TopText h3 {
        margin-left: -2%;
    }

    #TopText {
        top: 55%;
    }

    #NewTraining {
        margin-top: 20%;
    }

    .number {
        margin-left: 5%;
        flex-direction: column;
    }

    .number h1 {
        font-size: 50px;
    }

    .subtitle {
        margin: 0;
    }

    .number h2 {
        font-size: 28px;
    }

    .number p {
        font-size: 22px;
    }

    .contents {
        flex-direction: column;
        width: 95%;
        height: 590px;
    }

    .text-section {
        padding: 15px;
    }

    .text-section p {
        font-size: 17px;
    }

    .subtitle p {
        font-size: 22px;
    }

    .curriculum-title h3 {
        font-size: 36px;
    }

    .curriculum-title p {
        font-size: 24px;
    }

    .backup-item img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: none;
        margin-top: -10%;
    }

    .curriculum-box {
        width: 370px;
        height: 250px;
        padding: 0%;
        gap: 18px;
        flex-direction: column;
        justify-content: center;
    }

    .curriculum-box img {
        width: 80px;
    }

    .curriculum-box h3 {
        font-size: 21px;
    }

    .curriculum-box p {
        font-size: 16px;
    }

    .curriculum-text {
        text-align: center;
    }


    #English {
        width: 88%;
        height: 300px;
        margin-top: 15%;
    }

    .English-title p {
        font-size: 22px;
    }

    .English-title img {
        width: 22px;
    }

    .English-title h2 {
        font-size: 25px;
    }

    .English-text {
        font-size: 16px;
    }

    .backup-item,
    .backup-item-Flip {
        flex-direction: column;
    }


    #backup .backup-item img,
    #backup .backup-item-Flip img {
        margin: 0;
        width: 370px;
    }

    #backup .backup-item-Flip img {
        order: 1;
        align-self: flex-end;
    }

    .backup-item-Flip .backup-text {
        order: 2;
    }

    .backup-text {
        margin: 10% 0 5%;
    }

    .backup-text h1 {
        font-size: 45px;
    }

    .backup-text span {
        font-size: 30px;
    }

    .backup-text h3 {
        font-size: 20px;
    }

    .backup-text p {
        font-size: 17px;
        margin: 0 auto;
        width: 96%;
    }

    #TopView {
        height: 400px;
    }

    #TopTriangle {
        position: absolute;
        top: 0%;
        left: -2%;
        width: 22%;
    }

    .back-ground-logo {
        display: none;
    }

    .svg-wrapper {
        top: 240%;
        right: 6%;
    }

    #top {
        top: 0%;
        left: 25%;
    }

    #low {
        top: 17%;
        left: 25%;
    }

}