#gauge-wrapper {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

#gauge-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/bk_panel.jpg');
    background-size: 100% 100%;
    opacity: 0.3;
    z-index: -1;
}

#wind-direction-gauge {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 51, 51, 0.3) 50%, rgba(17, 17, 17, 0.3) 100%);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cardinal {
    position: absolute;
    font-size: 2em;
    font-weight: bold;
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta);
    z-index: 10;
}

.N { top: 5px; left: 50%; transform: translateX(-50%); color: var(--neon-cyan); }
.E { top: 50%; right: 5px; transform: translateY(-50%); }
.S { bottom: 5px; left: 50%; transform: translateX(-50%); color: #66ff33; text-shadow: 0 0 8px #66ff33; }
.W { top: 50%; left: 5px; transform: translateY(-50%); }

#wind-arrow {
    width: 30px;
    height: 50px;
    background-color: var(--neon-yellow);
    box-shadow: 0 0 10px var(--neon-yellow);
    position: absolute;
    top: 5px;
    left: 50%;
    transform-origin: center 120px;
    transform: translateX(-50%) rotate(0deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    clip-path: polygon(0% 0%, 50% 20%, 100% 0%, 50% 100%);
    z-index: 1;
    opacity: 0.6;
}

#wind-speed-display {
    position: relative;
    z-index: 5;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan), 0 0 5px var(--neon-cyan);
    margin: 0;
    pointer-events: none;
    transform: translate(15%, 3px); /* 位置調整を維持 */
}

#speed-unit {
    font-size: 0.5em;
    font-weight: normal;
    color: #e4e4f1;
}

/* 詳細データ表示 */
#data-display {
    width: 100%;
    padding: 15px 20px;
    background-color: #111122;
    border-radius: 5px;
    box-shadow: inset 0 0 8px rgba(0, 255, 204, 0.5);
    z-index: 1;
    opacity: 0.8;
    color: #fff;
    box-sizing: border-box;
}

#data-header p {
    display: block;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    margin-bottom: 5px;
    padding-bottom: 5px;
}

#data-display p {
    margin: 3px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

#data-display p > span:nth-child(1) {
    text-align: center;
    font-size: 1.0em;
    color: #b0b0d0;
    min-width: 50px;
}

#data-display p > span:nth-child(2) {
    text-align: right;
    font-size: 1.2em;
    font-weight: bold;
    color: #00ffcc;
    padding-right: 10px;
    font-variant-numeric: tabular-nums;
}

#data-display p > span:nth-child(3) {
    text-align: center;
    font-size: 1.0em;
    color: #b0b0d0;
    min-width: 100px;
}
