/***********************
 * TOP - ラインナップ
 ***********************/
.top-course-lead {
    text-align: center;
    font-size: 2.6rem;
    line-height: 1.3;
    margin-top: 7rem !important;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 800;
}
.top-course-lead .top-course-lead-content {
    text-align: center;
    position: relative;
    display: inline-block;
}

.top-course-lead .popup {
    position: absolute;
    transform: rotate(-10deg);
    left: -2.9rem;
    top: -3.2rem;
    font-size: .8em;
    line-height: 1;
    font-feature-settings: "halt";
}

.top-course-lead .bubble {
    display: inline-block;
    font-size: .75em;
    line-height: 1;
    letter-spacing: 1px;
    padding: 10px 16px;
    border: 2px solid #000;
    position: relative;
    background: #fff;
    box-shadow: 3px 3px 4px yellow;
}

.top-course-lead .bubble::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 22px 16px 0 16px;
    border-color: #000 transparent transparent transparent;
}

.top-course-lead .bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% - 2px); /* 枠線分だけ上に詰める感じ */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 14px 0 14px;
    border-color: #fff transparent transparent transparent; /* 背景色と合わせる */
}


.top-course-lead .subtitle {
    margin-top: 2rem;
    font-size: 2.8rem;
    letter-spacing: -1px;
}

.top-course-lead .subtitle span {
    font-size: .62em;
}
.top-course-lead .title {
    font-size: 3.8rem;
    line-height: .7;
    letter-spacing: -2px;
}
.top-course-lead .title span:first-of-type {
    font-size: 1.8em;
    transform: scaleY(0.9);
    display: inline-block;
    transform-origin: bottom;
}

.top-course-lead .title span:nth-of-type(2) {
    font-size: .85em;
}

.top-course-lead .title span:nth-of-type(3),
.top-course-lead .title span:nth-of-type(4) {
    font-size: .62em;
}

@media (max-width: 1000px) {
    .top-course-lead .popup {
        left: 0;
        top: -3.5rem;
    }
}

@media (max-width: 639px) {
    .top-course-lead {
        font-size: 2rem;
    }
    .top-course-lead .popup {
        left: -10px;
        top: -48px;
    }
    .top-course-lead .subtitle {
        font-size: 1.7rem;
    }
    .top-course-lead .title {
        font-size: 1.9rem;
        line-height: 1;
    }
}

/***********************
 * TOP - コース
 ***********************/
@media (max-width: 639px){
    .top-main-contents .course-link-ttl {
        padding: 1em !important;
    }
    .top-main-contents .course-link-ttl h4 {
        letter-spacing: 0;
        font-size: 1.8em !important;
    }
}


/***********************
 * TOP - 6つの特徴
 ***********************/
:root {
    --color-top-six-feature-heading-gb: #D5BF72;
    --color-top-online-heading-bg: #61BD96;
}

.top-features {
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    aspect-ratio: 1440 / 717;
    z-index: 1;
}

.top-features.six-features {
    background-image: url(assets/img/top/7-points-visual.png);
}

.top-features > .wp-block-group__inner-container {
    position: relative;
    top: 12%;
    /*height: 88%;*/
    display: flex;
    align-items: flex-start;
}

.top-features h2 {
    display: grid;
    place-content: center;
    font-size: 5.7rem;
    line-height: 1.1;
    color: #fff;
    position: relative;
    min-width: fit-content;
    width: 38.2vw;
    padding: 6rem 3rem !important;
    text-align: center;
}

.top-features h2:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: skewY(-10deg);
}

.top-features.six-features h2:after {
    background: var(--color-top-six-feature-heading-gb);
}

.top-features h2 .sub-title,
.top-features h2 .main-title {
    position: relative;
    z-index: 1;
}

.top-features h2 .main-title {
    margin-top: .15em;
}

.top-features.six-features h2 span {
    font-size: 1em;
}

.top-features.six-features h2 span:nth-child(2) {
    font-size: .667em;
}

.top-features.six-features h2 span:nth-child(3) {
    font-size: .5em;
}

.top-features h2 .sub-title {
    font-size: .4em !important;
    display: block;
    line-height: 1.3;
}

.top-features h2 p {
    margin: 0;
}

.top-seven-features-contents {
    gap: 3.75rem;
    position: relative;
    padding: 4em 0 5em 0 !important;
    margin-top: 4rem;
    top: -7em;
}

.top-seven-features-contents:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #F7F2E3;
    transform: skewY(10deg);
}

.top-seven-features-contents .course-anchor {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    margin-top: 3.75rem;
}

.top-seven-features-contents .course-anchor a {
    display: inline-block;
    background: #000;
    font-size: 22px;
    font-weight: bold;
    padding: calc(.667em + 2px) calc(1.333em + 2px);
    line-height: 1.3;
    color: #fff;
}

.top-seven-features-contents .course-anchor a:active,
.top-seven-features-contents .course-anchor a:hover,
.top-seven-features-contents .course-anchor a:focus {
    color: #fff;
}

.top-seven-features-contents .course-anchor a .small {
    font-size: .7em;
    font-weight: normal;
}

@media (max-width: 1000px){
    .top-features {
        background-position: left;
        margin-bottom: 4rem;
    }
    .top-features > .wp-block-group__inner-container {
        justify-content: flex-end;
    }
    .top-features h2 .main-title {
        font-size: 4.5rem;
    }
}

@media (max-width: 639px){
    .top-features {
        padding-top: 16rem;
        background-position: right top;
        padding-bottom: 150px !important;
        aspect-ratio: auto;
    }
    .top-features h2 {
        font-size: 4rem;
        padding: 3rem 2rem !important;
        margin: 0;
        width: 90%;
        min-width: auto;
        transform: translateY(120px);
    }
    .top-seven-features-contents {
        top: auto;
    }
    .top-features h2 .main-title {
        font-size: 3.5rem;
    }
}

/**
 * 6つの特徴 コンテンツ
 */
.top-seven-features-contents .seven-features-contents-warp {
    width: 1180px;
    max-width: 100%;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 3.75rem;

}

.top-seven-features-contents .seven-features-contents-warp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.top-seven-features-contents .seven-features-contents-warp:nth-child(2) {
    grid-template-columns: 66fr 34fr;
}

.top-seven-features-contents .feature-content {
    width: 100%;
    position: relative;
    background: #fff;
    min-height: 18rem;
    padding: 2.2rem .5rem 2rem 0;
    box-shadow: rgba(113, 96, 43, 0.1) 0 0 6px;
}

.top-seven-features-contents　.seven-features-contents-warp:first-of-type .feature-content {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
}

.top-number {
    position: absolute;
    inset: 0;
    width: 100px;
    height: 150px;
    line-height: 1;
    color: #fff;
    font-family: "Roboto", sans-serif;
    padding: 12px 10px;
    clip-path: polygon(
            0 0,
            100% 0,
            0 100%
    );
}

.top-number span {
    display: block;
}

.top-number span:first-of-type {
    font-size: 1rem;
}

.top-number span:last-of-type {
    font-size: 3.25rem;
    padding-left: 8px;
}

.top-seven-features-contents .top-number {
    background: #D5BF72;
}

.top-seven-features-contents .feature-content h3 {
    color: #564000;
    font-size: 1.75rem;
    padding-left: 5.1rem;
}

.top-seven-features-contents .feature-content p {
    font-size: 1.125rem;
    line-height: 1.5;
    font-feature-settings: "pwid";
    padding-left: 5.1rem;
    margin-bottom: 1.5rem;
}

.top-seven-features-contents .feature-content .feature-icon img {
    height: 84px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.top-seven-features-contents .feature-support {
    display: grid;
    grid-template-columns: 483fr 130fr;
    column-gap: .5rem;
}

.top-seven-features-contents .feature-support p {
    margin-bottom: 0;
}

.top-seven-features-contents .feature-support .feature-icon {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    place-content: center;
}

.top-seven-features-contents .feature-more-link {
    z-index: 1;
    width: 100%;
}

.top-seven-features-contents .feature-more-link a {
    background: #000;
    border-radius: 0;
    font-size: 22px;
    font-weight: bold;
}

@media (max-width: 1000px){
    .top-seven-features-contents {
        width: 100%;
        margin-top: 7rem;
        padding-top: 7rem !important;
    }

    .top-seven-features-contents .seven-features-contents-warp {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .top-seven-features-contents .seven-features-contents-warp {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 639px){
    .top-features {
        background-size: 100%;
    }
    .top-seven-features-contents {
        padding-top: 2rem !important;
    }
    .top-seven-features-contents .feature-support {
        grid-template-columns: 1fr;
    }
    .top-seven-features-contents .feature-content p {
        padding-left: 2rem;
        padding-top: 1rem;
    }
    .top-seven-features-contents .feature-support .feature-icon {
        grid-column: auto;
        grid-row: auto;
        margin-top: 1em;
    }
}

/***********************
 * TOP - GカレッジYouTube
 ***********************/
.campus-movie {
    margin-top: 0;
}

/***********************
 * TOP - 通信コース
 ***********************/
.top-features.online h2 {
    font-size: 5.7rem;
}

.top-features.online h2 .class {
    z-index: 1;
    font-size: .4em;
    margin: .15em auto;
    display: flex;
    column-gap: .4em;
}
.top-features.online h2 .class span {
    display: inline-block;
    color: #fff;
    border: 1px solid #fff;
    padding: 2px 8px;
    line-height: 1;
}

.top-features.online h2:after {
    background: var(--color-top-online-heading-bg);
}

.top-features.online {
    background-image: url(assets/img/top/online-visual.png);
}

@media (max-width: 639px){
    .top-features.online {
        margin-top: 90px;
    }
}

/***********************
 * TOP - 通信コースコンテンツ
 ***********************/
.top-online-contents {
    position: relative;
    padding-top: 8rem !important;
    margin-top: -5rem;
    margin-bottom: 5rem;
}
.top-online-contents > .wp-block-group__inner-container {
    position: relative;
    z-index: 1;
}
.top-online-contents:after {
    content: '';
    display: block;
    position: absolute;
    background: #E4F7EF;
    inset: 0;
    transform: skewY(10deg);
}
.top-online-contents .top-online-contents-wrap {
    width: 1180px;
    max-width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
}

.top-online-contents .online-contents {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem 1rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.top-online-contents .online-contents > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: 100%;
    row-gap: .5rem;
}

.top-online-contents .online-contents-title {
    margin: 0;
    line-height: 1.3;
    font-size: 1.5rem;
    font-weight: bold;
}

.top-online-contents .online-icon img {
    display: block;
    height: 150px;
    width: auto;
    margin: 0 auto;
}

.top-online-contents .course-time {
    color: var(--color-top-online-heading-bg);
    text-align: center;
    font-size: 3.4375rem;
    line-height: .9;
    font-family: "M PLUS Rounded 1c", sans-serif;
}
.top-online-contents .course-time > span {
    display: block;
}
.top-online-contents .course-time .num {
    font-family: "Baloo 2", sans-serif;
}
.top-online-contents .course-time .small {
    font-size: .51em;
}

.top-online-contents .online-anchor {
    display: grid;
    place-content: center;
    height: 5rem;
    border-radius: 10px;
    background: var(--color-top-online-heading-bg);
    color: #fff;
    text-align: center;
    font-size: 1.375rem;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.3;
}

.top-online-contents .online-anchor .note  {
    display: inline-block;
    font-size: .636em;
}

@media (max-width: 1000px){
    .top-online-contents .top-online-contents-wrap {
        grid-template-columns: 1fr;
    }
    .top-online-contents .online-anchor {
        letter-spacing: 0;
    }
}

@media (max-width: 639px){
    .top-online-contents {
        padding-top: 4rem !important;
        margin-bottom: 2rem !important;
        padding-bottom: 1rem !important;
    }
}

/***********************
 * TOP - 通信コース人気のポイント
 ***********************/
.top-online-points {
    margin-bottom: 10rem;
}
.top-online-points .top-point-heading {
    text-align: center;
    font-size: 3.75rem;
    position: relative;
    display: inline-block;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.3;
    max-width: 90%;
}

.top-online-points .wp-block-group__inner-container {
    position: relative;
    z-index: 1;
}

.top-online-points:after {
    content: '';
    display: block;
    inset: 0;
    background: #F2FBF7;
    position: absolute;
    transform: skewY(-10deg);
    opacity: 75%;
}

.top-online-points .top-point-heading span {
    display: block;
    font-size: .4em;
}

.top-online-points .top-point-heading:before {
    content: '';
    background: url(assets/img/deco-points.png) no-repeat center / contain;
    display: block;
    width: 100%;
    aspect-ratio: 846 / 61;
    margin-bottom: 6px;
}

.top-online-points .point-contents-warp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    width: 1180px;
    max-width: 90%;
    margin: 3.75rem auto 0;
}

.top-online-points .point-content {
    position: relative;
    padding: 2.2rem .5rem 1rem 0;
    box-shadow: 0 0 6px rgba(56, 140, 76, 0.1);
    background: #fff;
    min-height: 11.5rem;
}

.top-online-points .point-content h4 {
    padding-left: 5.1rem;
    color: #14714A;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.top-online-points .top-number {
    background: #61BD96;
}

.top-online-points .content-schedule .content-detail,
.top-online-points .content-support .content-detail,
.top-online-points .content-retry .content-detail,
.top-online-points .content-learning .content-detail {
    display: grid;
    grid-template-columns: 75% auto;
}

.top-online-points .content-retry h4 {
    margin-bottom: 0;
}
.top-online-points .content-retry .small {
    padding-left: 0;
    display: block;
    text-align: center;
    margin: .5rem auto 1rem;
}

.top-online-points .feature-icon {
    display: grid;
    place-content: center;
}
.top-online-points .feature-icon img {
    height: auto;
}

.top-online-points .content-low-price .feature-icon img {
    width: 132px;
}

.top-online-points .content-license .feature-icon img {
    width: 512px;
}

.top-online-points .content-schedule .feature-icon img {
    width: 80px;
}

.top-online-points .content-support .feature-icon img {
    width: 130px;
}

.top-online-points .content-retry .feature-icon img {
    width: 67px;
}

.top-online-points .content-learning .feature-icon img {
    width: 87px;
}

.top-online-points .wp-block-buttons {
    margin-top: 7.5rem;
}

.top-online-points .wp-block-buttons a {
    border-radius: 0;
}

.top-online-points .note {
    z-index: 1;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1000px){
    .top-online-points .point-contents-warp {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px){
    .top-online-points {
        padding-top: 5rem !important;
        margin-bottom: 5rem;
    }
    .top-online-points .top-point-heading {
        font-size: 3rem;
    }

    .top-online-points .point-content {
        padding-bottom: 2rem;
    }

    .top-online-points .content-schedule .content-detail,
    .top-online-points .content-support .content-detail,
    .top-online-points .content-retry .content-detail,
    .top-online-points .content-learning .content-detail {
        grid-template-columns: 1fr;
    }

}

.top-main-campus-anchor {
    margin: 2rem auto;
}