.compe-result-page .whitebg {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px 0 #ccc;
}

.compe-result-page .compe-result-item {
    display: flex;
}

.compe-result-page .compe-result-item-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.compe-result-page .compe-result-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin-bottom: 12px;
}

.compe-result-page .compe-result-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compe-result-page .compe-result-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.compe-result-page .compe-result-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.compe-result-page .compe-result-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.compe-result-page .compe-result-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-top: 14px;
}

.compe-result-page .compe-result-card-body h5 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.compe-result-page .compe-result-card-body h4 {
    color: #ee5f4d;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    min-height: calc(1.4em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.compe-result-page .compe-tags {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.compe-result-page .compe-tag {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 28px;
    padding: 0 12px;
    border: 2px solid var(--green);
    border-radius: 20px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    width: fit-content;
    white-space: nowrap;
    min-width: 0;
}

.compe-result-page .compe-tag-koma {
    background-color: var(--blue);
    border-color: var(--blue);
    color: #fff;
    flex-shrink: 0;
}

.compe-result-page .section-heading-accent {
    color: #ee5f4d;
}

.compe-result-page .card-clickable {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.compe-result-page .card-clickable:hover {
    transform: scale(1.02);
}

.compe-result-page .result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.compe-result-page .modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.compe-result-page .modal-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1001;
    width: fit-content;
    max-width: 998px;
    min-width: 55%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.compe-result-page .modal-inner {
    padding: 50px 40px 40px 40px;
    position: relative;
}

.compe-result-page .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: all 1s ease-out;
}

.compe-result-page .modal-close:hover rect {
    fill: #BD4B3C;
    transition: all 0.3s;
}

.compe-result-page .modal-inner .image-gallery {
    max-width: 400px;
    width: 100%;
}

.compe-result-page .modal-inner .image-gallery img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.compe-result-page .modal-inner h3 {
    color: #ee5f4d;
    font-family: inherit;
    margin: 0;
}

.compe-result-page .modal-inner h6 {
    color: #333;
    margin: 0;
    font-weight: bold;
}

.compe-result-page .modal-inner p {
    line-height: 1.7;
    margin: 0;
    text-indent: 0;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .compe-result-page .whitebg {
        padding: 16px;
    }

    .compe-result-page .compe-result-badge {
        height: 52px;
        margin-bottom: 10px;
    }

    .compe-result-page .compe-result-card-body h5 {
        font-size: 13px;
    }

    .compe-result-page .compe-result-card-body h4 {
        font-size: 15px;
        min-height: calc(1.4em * 3);
    }

    .compe-result-page .modal-content {
        width: 90%;
        top: 20px;
        transform: translateX(-50%);
        max-height: calc(100vh - 40px);
        -webkit-overflow-scrolling: touch;
    }

    .compe-result-page .modal-inner {
        padding: 50px 24px 24px 24px;
    }

    .compe-result-page .modal-inner .image-gallery {
        max-width: 100%;
    }

    .compe-result-page .modal-inner .image-gallery img {
        max-height: 400px;
    }

    .compe-result-page .modal-inner h3 {
        font-size: 18px;
    }
}
