/*表ここから*/
.curriculum-chart {
    padding-top: 2rem;
    width: 100%;
}

/* 年次ヘッダー */
.year-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid var(--c-gray-120);
    text-align: center;
}

.year-link {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: flex-end;
    gap: 0.12rem;
    padding: 0 0.5rem 1rem;
    line-height: 100%;
    text-decoration: none;
    white-space: nowrap;
}

.text-line {
    display: flex;
    align-items: flex-end;
    gap: 0.125rem;
}

.graduation{
    white-space: wrap;
}

.icon-line {
    display: flex;
    justify-content: center;
}

.year-header span {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.25rem, 5vw, 2.5rem);
    line-height: 80%;
}

.year-header img {
    transform: rotate(90deg);
}

/* 年次ヘッダー点線 */
.year-header a::after {
    position: absolute;
    top: 0;
    right: 0;
    background-image: repeating-linear-gradient(to bottom, var(--c-gray-120) 0px, var(--c-gray-120) 1px, transparent 2px, transparent 8px);
    width: 1px;
    height: 100%;
    content: "";
}

.year-header a:first-child::before {
    position: absolute;
    top: 0;
    left: 0;
    background-image: repeating-linear-gradient(to bottom, var(--c-gray-120) 0px, var(--c-gray-120) 1px, transparent 2px, transparent 8px);
    width: 1px;
    height: 100%;
    content: "";
}

/*  年次コンテンツ  */
.year-content {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    align-items: stretch;
}

.year-content > div {
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    padding: 0.5rem 0.5rem 0;
    min-height: 0;
}

.year-content p {
    word-break: keep-all;
    /*overflow-wrap: break-word;*/
}

/* 1〜3年 */
.year-content > div:first-child p {
    display: flex;
    justify-content: center;
    margin: 0;
    border-bottom: 1px solid var(--c-white);
    background: var(--c-gray-10);
    padding: 0.5rem;
    line-height: 1.5;
    text-align: center;
}

.year-content > div:first-child p:last-child {
    border-bottom: none;
    flex-wrap: wrap;
}

/* 4年 */
.year-content > div:nth-child(2) > p {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    margin: 0;
    background: var(--c-gray-10);
    padding: 0.5rem;
    min-height: 0;
    text-align: center;
    flex-wrap: wrap;
}

/* 卒業後 */
.year-content > div:nth-child(3) > p {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0.5rem;
    min-height: 0;
    text-align: center;
    flex-wrap: wrap;
}

/*  年次コンテンツの縦ドット線  */
.year-content > div {
    position: relative;
}

.year-content > div::after {
    position: absolute;
    top: 0;
    right: 0;
    background-image: repeating-linear-gradient(to bottom, var(--c-gray-120) 0px, var(--c-gray-120) 1px, transparent 2px, transparent 8px);
    width: 1px;
    height: 100%;
    content: "";
}

.year-content > div:first-child::before {
    position: absolute;
    top: 0;
    left: 0;
    background-image: repeating-linear-gradient(to bottom, var(--c-gray-120) 0px, var(--c-gray-120) 1px, transparent 2px, transparent 8px);
    width: 1px;
    height: 100%;
    content: "";
}

/*デスクトップサイズ以下ここから*/
@media only screen and (max-width: 991.98px) {
    .year-link {
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
    }

    .text-line {
        font-size: 0.875rem;
        gap: 0.0625rem;
        flex-wrap: wrap;
    }
}

/*タブレットサイズ以下*/
@media screen and (max-width: 767.98px) {
    .curriculum-chart {
        padding-top: 1rem;
        width: 100%;
    }
    .year-content p {
        font-size: 0.875rem;
    }
}

/*スマホサイズ以下*/
@media only screen and (max-width: 575.98px) {

    .text-line{
        justify-content: center;
    }

    .year-content > div:nth-child(3) > p {
        padding:0;
    }
}

/*表ここまで*/

.timeline {
    position: relative;
    margin: 0;
}

/* 左の縦線 */
.timeline {
    position: relative;
}

.year-block::before {
    position: absolute;
    top: 2rem;
    bottom: -7.3rem;
    left: 0;
    background-color: var(--c-gray-120);
    width: 1px;
    content: "";
}

.year-block:last-of-type::before {
    display: none;
}

/* 左の縦線ここまで */

.year-block {
    position: relative;
    margin-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 4.3rem;
}

.year-block:last-child {
    padding-bottom: 0;
}


.year-block::after {
    position: absolute;
    bottom: 0;
    left: 0;
    background: repeating-linear-gradient(to right, var(--c-gray-120) 0px, var(--c-gray-120) 1px, transparent 2px, transparent 8px);
    width: 100%;
    height: 1px;
    content: "";
}

.year-block:last-of-type::after {
    display: none;
}

.timeline-year {
    display: flex;
    position: absolute;
    top: 0;
    left: -0.85rem;
    align-items: center;
    padding: 0.25rem 0.5rem;
    max-width: 12rem;
}

.timeline-year img {
    margin-right: 1rem;
}

.timeline-year p .en {
    margin-right: 0.38rem;
    font-style: normal;
    font-weight: 500;
    font-size: 3.75rem;
    line-height: 70%;
}

.timeline-year p {
    font-style: normal;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 100%;
}

.timeline-content {
    flex: 1;
    padding: 0 0 0 5rem;
}

.timeline-content h3{
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-break: strict;
}

.year-block h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-style: normal;
    font-weight: 500;
    font-size: 1.5rem;
}

.year-block h4::before {
    display: inline-block;
    background-image: url(/assets/home/icon_title.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 0.5rem;
    height: 0.5rem;
    content: "";
}

.year-block ul {
    display: flex;
    column-gap: 1.5rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.year-block li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-block li::before {
    display: inline-block;
    background-image: url(/assets/home/icon_title_cavity.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 0.5rem;
    height: 0.5rem;
    content: "";
}

.pickup-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
}

.pickup-card {
    border: 1px solid var(--c-gray-20);
    padding: 9%;
    overflow: hidden;
}

.pickup-card:nth-child(2n) {
    border-left: none;
}

.pickup-card-image {
    aspect-ratio: 352.5/235;
    width: 100%;
    overflow: hidden;
}

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

.pickup-card-content {
    margin-top: 1.5rem;
}

.pickup-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: var(--c-gray-60);
    font-style: normal;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 100%;
}

.pickup-label::before {
    display: inline-block;
    background-image: url(/assets/home/icon_title_gray.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 0.5rem;
    height: 0.5rem;
    content: "";
}

.pickup-card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.activity-block {
    display: grid;
    grid-template-columns: min(11rem, 15vw) 1fr;
    row-gap: 2rem;
    column-gap: 5%;
    margin-top: 3rem;
    background-color: var(--c-white);
    padding: 2.5rem;
}

.activity-top {
    display: contents;
}

.activity-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 176.00/117.55;
    object-fit: cover;
}

.activity-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.activity-tag {
    display: inline-block;
    background-color: var(--c-gray-10);
    padding: 0.25rem 1rem;
    width: fit-content;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 90%;
}

.activity-title {
    font-size: 1.25rem;
    line-height: 135%;
    margin-bottom: 0.5rem;
}

.activity-bottom {
    grid-column: 1 / -1;
}

/*デスクトップサイズ以下ここから*/
@media only screen and (max-width: 991.98px) {
    .timeline-content {
        padding: 0 0 0 3.5rem;
    }

    .pickup-cards {
        grid-template-columns: 1fr;
    }

    .pickup-card {
        padding: 1.5rem;
    }

    .pickup-card:nth-child(2n) {
        border-top: none;
        border-left: 1px solid var(--c-gray-20);
    }

    .activity-block {
        grid-template-columns: 1fr;
        row-gap: 0;
        column-gap: 0;
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .activity-head {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .activity-title {
        margin-bottom: 1rem;
    }
}

/*タブレットサイズ以下*/
@media screen and (max-width: 767.98px) {
    .year-block::before {
        bottom: -5.3rem;
    }

    .year-block {
        padding-left: 0;
        margin-top: 4rem;
        padding-bottom: 4rem;
    }

    .timeline-content {
        padding: 6rem 0 0 3.5rem;
        margin-left: -2rem;
    }

    .timeline-year {
        max-width: none;
    }

    #yearAfter + .timeline-content {
        padding: 3.5rem 0 0 3.5rem;
        margin-left: -2rem;
    }

    .year-block h4:last-child {
        margin-top: -2rem;
    }
}





