.matrix-container {
position: relative;
width: 100%;
max-width: 600px;
aspect-ratio: 1 / 1; /* 正方形に固定 */
border: none;
margin: auto;
/* 背景を黒に設定 */
background-color: #000;
/* 中心に白い十字線を引く */
background-image:
linear-gradient(90deg, transparent 49.5%, #666 49.5%, #666 50.5%, transparent 50.5%),
linear-gradient(0deg, transparent 49.5%, #666 49.5%, #666 50.5%, transparent 50.5%);
}

#matrix .red-btn {
    font-family: "M PLUS 1p", sans-serif;
    height: 5vh;
    line-height: 4vh;
    width: 18em;
    text-align: center;
    font-size: 1.001em;
    border: none;
    border-radius: 100px;
    background-color: rgba(0, 0, 0, 1);
    background-image: none;
    color: white;
    margin: 2vh auto;
    padding: 0.5vh;
    background-repeat: no-repeat;
    background-position: right 12% center;
    background-size: 1.6em;
    z-index: 110;
    position: relative;
    display: block;
    cursor: pointer;
}

#matrix .label-exp {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 1em;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background-color: #ddd;
    border-radius: 15px;
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        padding 0.35s ease,
        margin 0.35s ease;
}

#matrix .label-exp.is-open {
    margin-top: -4.5vh;
    margin-bottom: 1rem;
    padding: 2.8em 1em 1em 1em;
    max-height: 24rem;
    opacity: 1;
}

#matrix .label-exp[hidden] {
    display: none;
}

#matrix h3 {
    text-align: center;
    font-size: 2em;
    line-height: normal;
    font-family: "WDXL Lubrifont JP N", sans-serif;
    font-weight: normal;
    margin: 16px auto;
    padding-top: 2em;
}

@media (prefers-reduced-motion: reduce) {
    #matrix .label-exp {
        transition: none;
    }
}

#matrix dl{
display: grid;
grid-template-columns: 0.2fr 9.8fr;
gap: 1rem;
margin: 0;
text-align: left;
line-height: normal;
}

#matrix dt {
    font-family: "WDXL Lubrifont JP N", sans-serif;
    font-size: 2em;
    display: flex;
    align-items: center;
}

#matrix dl.matrix-score {
    grid-template-columns: 6.2em 9.8fr;
}

#matrix dd {
    font-family: "M PLUS 1p", sans-serif;
    font-size: 1.001em;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

#matrix .label-exp, 
#matrix h3, 
#matrix dl.matrix-score {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.matrix-plot {
position: relative;
width: 100%;
height: 100%;
}

.matrix-item {
position: absolute;
width: 60px; /* 画像のサイズ */
margin: 0;
left: calc(var(--x) * 1%);
bottom: calc(var(--y) * 1%);
transform: translate(-50%, 50%); /* 中心を基準に配置 */
transition: transform 0.3s ease;
z-index: 2;
}

.matrix-item img {
display: block;
width: 100%;
/* border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1); */
}

/* SEO用の隠しテキスト（スクリーンリーダーには読まれる） */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}

/* 軸ラベルの配置（一部抜粋） */
.axis-label {
position:absolute;
font-weight: bold;
font-size: 0.8rem;
font-family: "WDXL Lubrifont JP N", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 2em;
text-align: center;
line-height: 0.9em;
color: #fff;
}
.x-axis-high { right: 10px; top: 50%; transform: translateY(-50%); }
.y-axis-high { top: 10px; left: 50%; transform: translateX(-50%); }
.x-axis-low { left: 10px; top: 50%; transform: translateY(-50%); }
.y-axis-low { bottom: 10px; left: 50%; transform: translateX(-50%); }
.axis-label span {
font-size: 0.8em
}