html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    color: #14202e;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, p, ul {
    padding: 0;
    margin: 0;
    font-weight: 400;
}

.jpji-hero {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    background: linear-gradient(180deg, #f7f9fa 0%, #ffffff 100%);
    padding: 72px 24px 64px;
    overflow: hidden;
}

.jpji-hero::before {
    content: '';
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(46, 195, 150, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.jpji-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.jpji-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 48px;
    margin-bottom: 36px;
}

.jpji-id {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 100%;
}

.jpji-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #16b886;
    background: rgba(46, 195, 150, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
}

.jpji-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #14202e;
    letter-spacing: -0.01em;
}

.jpji-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.jpji-price {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    color: #14202e;
    letter-spacing: -0.04em;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.jpji-unit {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: #8b96a3;
    letter-spacing: 0;
}

.jpji-change {
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    color: #8b96a3;
    background: rgba(20, 32, 46, 0.05);
    white-space: nowrap;
}

.jpji-change--up {
    color: #0f9d6e;
    background: rgba(22, 184, 134, 0.12);
}

.jpji-change--down {
    color: #d64545;
    background: rgba(214, 69, 69, 0.1);
}

.jpji-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-left: auto;
}

.jpji-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jpji-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b96a3;
}

.jpji-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #14202e;
}

.jpji-chart-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    background: #ffffff;
    border: 1px solid #e4e6ea;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(20, 32, 46, 0.06);
    padding: 20px 18px 12px;
}

.jpjindex-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e4e6ea;
    border-bottom: 1px solid #e4e6ea;
    padding: 80px 24px;
    overflow: hidden;
}

.jpjindex-container::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(46, 195, 150, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.jpjindex {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.jpjindex-content {
    flex: 1 1 600px;
}

.jpjindex-content h1 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.35;
    color: #14202e;
    letter-spacing: -0.02em;
}

.jpjindex-content p {
    margin-bottom: 14px;
    line-height: 1.75;
    color: #54616f;
    font-size: 0.95rem;
}

.jpjindex-content p strong {
    color: #14202e;
    font-weight: 600;
}

.jpjindex-img-container {
    flex: 0 0 280px;
    max-width: 280px;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.jpjindex-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .jpjindex-img-container {
        display: none;
    }

    .jpjindex-container {
        padding: 60px 20px;
    }

    .jpjindex {
        flex-direction: column;
    }

    .jpjindex-content h1 {
        font-size: 1.4rem;
    }

    .jpji-hero {
        padding: 48px 20px 40px;
    }

    .jpji-stats {
        margin-left: 0;
        gap: 24px;
    }

    .jpji-chart-wrap {
        height: 220px;
        padding: 14px 8px 8px;
        border-radius: 12px;
    }
}
