/* 送信ボタンを目立たせる */
.submit-button {
    background-color: #E9668C; /* 鮮やかなオレンジ */
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽いシャドウを付けて立体感を出す */
    margin: 5px 10px;
}

.submit-button:hover {
    background-color: #e03e00; /* ホバー時に色を少し暗くする */
}

/* 結果だけ見るボタンを控えめに */
.view-results, .answer-survey {
    background-color: #ededed; /* グレーの背景色 */
    color: #777; /* ダークグレーのテキスト色 */
    border: none;
    padding: 8px 16px;
    font-size: 11px;
    border-radius: 5px;
    cursor: pointer;
}

.view-results:hover, .answer-survey:hover {
    background-color: #bbb; /* ホバー時に色を少し暗くする */
}


.bar-chart-1 {
    font-size: .9em;
}

.bar-chart-1 > div {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
}

.bar-chart-1 dt {
    width: 20%;
    min-width: 55px;
}

.bar-chart-1 dd {
    margin: 0;
    padding-right: 15px;
    border-radius: 3px;
background: rgb(249,205,172);
background: linear-gradient(90deg, rgba(249,205,172,1) 0%, rgba(186,66,139,1) 100%);
    color: #fff;
    font-weight: 600;
    line-height: 45px;
    text-align: right;
    white-space: nowrap;
}


canvas {
    width: 100% !important;
    max-width: 300px;
    height: auto !important;
}


.chart-container {
    display: flex;
    flex-direction: row; /* PCでは横並び */
    justify-content: center;
    align-items: center;
}

.chart-labels {
    margin-left: 10px; /* グラフとラベルの間にスペースを追加 */
}

/* スマホ向けのメディアクエリ */
@media (max-width: 768px) {
    .chart-container {
        flex-direction: column; /* スマホでは縦並び */
    }

    .chart-labels {
    font-size:13px;
        margin-left: 0;
        margin-top: 0px; /* スマホではグラフの下にスペースを追加 */
    }
}


.color-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 2px;
}




