* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ball-size: clamp(28px, 9.6vw, 42px);
    --ball-gap: clamp(2px, 1vw, 6px);
}

body {
    width: 100%;
    min-height: 100vh;
    background-image: url('../image/bg1.gif');
    background-repeat: repeat;
    display: flex;
    justify-content: center;
    padding-top: 190px;
}

.page {
    width: 100%;
    max-width: 480px;
    padding: 0;
    margin-top: -8px;
    overflow-x: hidden;
}

.sxss12 {
    width: 100%;
    border-collapse: collapse;
    background: #429a94;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.sxss12 td {
    border-color: #FFFFFF;
    text-align: center;
    padding: 8px 4px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.1;
}

.sxss12 td span {
    display: block;
    color: #ff0;
    font-size: 18px;
    line-height: 1.1;
}

.xxss-tit {
    width: 120px;
    font-size: 20px;
    line-height: 1.1;
}

.sub-top {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 6px 0;
}

.tabs {
    width: 100%;
    display: flex;
    gap: 0;
    border-top: 0;
    background: #F2F2F2;
}

.tab {
    flex: 1;
    height: 38px;
    border: 0;
    background: transparent;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.tab.is-active {
    background: #CC0000;
    border-color: #CC0000;
    color: #FFFFFF;
}

.tabs-banner {
    width: 100%;
    background: #CC0000;
    color: #ff0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 6px;
}

.balls-row {
    width: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: var(--ball-gap);
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.ball-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.ball {
    width: var(--ball-size);
    height: var(--ball-size);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ball-placeholder {
    background: #E6E6E6;
    border-radius: 999px;
    background-image: none;
    border: 1px solid #CFCFCF;
}

.ball-placeholder-text {
    color: #666666;
    font-weight: 700;
    font-size: clamp(10px, 3.2vw, 14px);
    line-height: 1;
}

.ball-blue {
    background-image: url('../image/blue.png');
}

.ball-green {
    background-image: url('../image/gree.png');
}

.ball-red {
    background-image: url('../image/red.png');
}

.ball-num {
    color: #000000;
    font-weight: 700;
    font-size: clamp(11px, 3.6vw, 14px);
}

.ball-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.ball-info {
    font-size: clamp(9px, 2.6vw, 11px);
    color: #000000;
}

.ball-plus {
    margin-top: clamp(8px, 2.5vw, 12px);
    color: #CC0000;
    font-weight: 800;
    font-size: clamp(14px, 5vw, 22px);
    line-height: 1;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 54px;
    background-color: #CC0000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 14px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sub-bar {
    position: fixed;
    top: 54px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 900;
}

.sub-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: -5px;
    max-width: 86px;
}

.title {
    color: #111111;
    font-size: 12px;
}

.issue {
    font-weight: 700;
    color: #000000;
    font-size: 14px;
}

.tag {
    background: #CC0000;
    color: #FFFFFF;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.2;
    align-self: flex-start;
    cursor: pointer;
}

.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.logo-img {
    height: 22px;
    width: auto;
    display: block;
}

.top-center-badge {
    justify-self: center;
    width: 42px;
    height: 42px;
    background: #FFFFFF;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-center-image {
    width: 30px;
    height: 30px;
    display: block;
}

.home-btn {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #FFFFFF;
    text-decoration: none;
}

.home-icon {
    width: 20px;
    height: 20px;
}

.home-text {
    font-size: 11px;
    line-height: 1;
}
