.report {
    width: 90%;
    margin: auto;
}
.chart h6,
.report h6 {
    font-size: 1.8rem;
    font-weight: 600;
    border-left: 3px solid #d7003a;
    padding-left: 10px;
}

.report_list {
    display: flex;
    flex-wrap: wrap;
}

.report_list li {
    padding: 10px 15px 10px 0;
    font-size: 1.6rem;
}

.report_list li a {
    color: #d7003a;
}

.report_list li a:after {
    font-family: 'Font Awesome 6 pro';
    content: "\f1c1";
    padding-left: 10px;
}

.report_list li a span {
    border-bottom: 1px solid;
}

.chart-container {
    position: relative;
    width: 400px;
    height: 250px;
    margin: 30px auto;
    background-color: #f4f4f4;
}

.grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px dashed #a4a4a4;
    z-index: 1;
}

.grid-line.solid {
    border-top: 1px solid #a4a4a4;
}

.grid-line-label {
    position: absolute;
    right: 100%;
    transform: translateX(-10px);
    font-size: 12px;
    white-space: nowrap;
}

.chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    padding: 25px 0;
    position: relative;
}

.bar {
    width: 6%;
    background: linear-gradient(0deg, #d7003a, #f686a5c7);
    height: 0;
    transition: height 3s ease-in-out, transform 3s ease-in-out; /* 高さと移動を滑らかに変化させる */
    transform-origin: top; /* 下から伸びるように設定 */
    position: relative;
    z-index: 1;
}

.blue .bar {
    background: linear-gradient(0deg, #4a7ec0, #a5c7f2bd);
    position: relative;
    bottom: 50px;
}

#onsen_sheet .blue .bar {
    bottom: 100px;
}

/* プラス方向のバーに高さを指定 */
.bar.positive {
    transform-origin: bottom; /* 下から伸びる */
}

/* マイナス方向のバーに高さを指定 */
.bar.negative {
    transform-origin: top; /* 上から伸びる */
    transform: translateY(100%);
     /* 下からではなく、上から伸ばす */
    background: linear-gradient(0deg, #a5c7f2bd, #4a7ec0);
}

.y-axis, .x-axis {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* ラベルがクリックできないように */
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 10px;
}

.y-label {
    position: absolute;
    right: 100%;
    transform: translateX(-10px);
    font-size: 12px;
    white-space: nowrap;
    padding: 10px 0;
}

.x-axis {
    display: flex;
    justify-content: space-between;
    bottom: 0;
    height: 20px;
}

.x-label {
    font-size: 12px;
    text-align: center;
    flex: 1;
}

.chart.flex {
    display: flex;
}

@media only screen and (max-width: 950px) {
    .chart.flex {
        display: block;
    }

    .chart-container {
        width: calc(100% - 30px);
        margin: 20px 0 20px 30px;
        max-width: 350px;
    }
}

/* メモのスタイル */
.memo {
    display: none; /* デフォルトでは非表示 */
    position: absolute;
    top: 110%; /* バーの下に表示 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 1px 1px 11px -2px #666666;
    color: #333;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10; /* バーよりも前面に表示 */
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* マウスイベントを無効化してバーの上に表示 */
}

/* 下向きの三角形ポインター */
.memo::after {
    content: "";
    position: absolute;
    bottom: 100%; /* 三角形をメモの上側に */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

/* バーにホバーしたときにメモを表示 */
.bar:hover .memo {
    display: block;
    opacity: 1;
}