@charset "utf-8";



.count-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 60px 0 80px;
}

.page-title {
    margin: 0 0 46px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.semester-section {
    margin-bottom: 56px;
}

.semester-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #c94e2e;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.title-icon {
    position: relative;
    width: 15px;
    height: 15px;
    border: 3px solid #d6532f;
    flex: 0 0 15px;
}

.title-icon::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 7px;
    height: 7px;
    background: #fff;
    border-top: 3px solid #d6532f;
    transform: rotate(45deg) translate(2px, 2px);
}

.count-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.count-box {
    min-height: 122px;
    padding: 22px 14px;
    border: 1px solid #d4d4d4;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .55s ease,
        transform .55s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.semester-section.is-visible .count-box {
    opacity: 1;
    transform: translateY(0);
}

.semester-section.is-visible .count-box:nth-child(2) {
    transition-delay: .08s;
}

.semester-section.is-visible .count-box:nth-child(3) {
    transition-delay: .16s;
}

.semester-section.is-visible .count-box:nth-child(4) {
    transition-delay: .24s;
}

.count-box:hover {
    border-color: #c94e2e;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    transform: translateY(-4px);
}

.count-number {
    display: block;
    margin-bottom: 10px;
    color: #cf512f;
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.count-box span {
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.count-box.total {
    background: #fffdfc;
}

@media (max-width: 900px) {
    .count-wrap {
        width: min(100% - 30px, 760px);
        padding-top: 40px;
    }

    .count-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .semester-section {
        margin-bottom: 44px;
    }
}

@media (max-width: 520px) {
    .count-wrap {
        width: calc(100% - 24px);
        padding: 30px 0 50px;
    }

    .page-title {
        margin-bottom: 34px;
        font-size: 25px;
    }

    .semester-title {
        font-size: 19px;
    }

    .count-list {
        gap: 10px;
    }

    .count-box {
        min-height: 105px;
        padding: 16px 8px;
    }

    .count-number {
        margin-bottom: 8px;
        font-size: 35px;
    }

    .count-box span {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .count-box {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
