body {
    font-family: sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .chart-container {
        margin: 0;
        max-width: 800px;
    }

    .table-container {
        padding-top: 20px;
        padding-left: 100px;
        padding-right: 40px;
        flex-grow: 1;
        display: flex;
        gap: 60px;
    }
}

@media (max-width: 767px) {
    .content-container {
        flex-direction: column;
        gap: 40px;
    }

    .table-container {
        flex-direction: column;
        padding-top: 40px;
        padding-left: 20px;
        gap: 40px;
    }

    .chart-container {
        margin: 0;
        width: 100%;
        max-width: 600px;
    }
}

table {
    border-collapse: collapse;
    width: 320px;
}


td {
    border: 1px solid #9ba2a5;
    font-family: sans-serif;
    font-size: 0.9em;
    padding: 6px 9px;

}

td:nth-child(1) {
    background-color: #bbc3c6;
    color: #1e1e20;
    text-align: center;
    width: 20px;
}



td:nth-child(2),
td:nth-child(3) {

    background-color: #ffffff;
    color: #1e1e20;
}

td:nth-child(2) {
    border-left: none;
    border-right: none;
    width: 220px;
}

td:nth-child(3) {
    text-align: center;
    font-weight: bold;
}

th {
    text-align: center;
}



header {
    width: 100%;
    margin-bottom: 20px;
    padding: 0 min(4vw, 20px);
    box-sizing: border-box;
    height: min(11.25vw, 72px);
    background-color: #bbc3c6;
    display: flex;
    justify-content: space-between;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.info-button,
.header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-button {
    cursor: pointer;
}

.info-button img {
    width: min(5vw, 32px);
}

.header-title {
    font-family: sans-serif;
    color: #1e1e20;
    font-size: min(5vw, 32px);
}

.content-container {
    padding: 0 20px 20px 20px;
    display: flex;
}



.select-period-container {
    font-size: 0.8em;
    display: flex;
    justify-content: center;
    margin: 20px 0 10px 0;
}

.select-period-container>* {
    color: #1e1e20;
    padding: 5px 0;
    text-align: center;
}

.select-period-container .tab {
    width: 16%;
    padding: 5px 25px;
    border-radius: 12px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1em;
}

.select-period-container .pressed {
    background-color: rgba(187, 195, 198, 1);
}

.table-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.modal {
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: none;
}

.modal-content {
    font-size: max(2vh, 1.5vw);
    color: #1e1e20;
    position: fixed;
    /* モーダル内容が画面上に固定されるように設定 */
    top: 50%;
    /* 縦方向の中央に配置 */
    left: 50%;
    /* 横方向の中央に配置 */
    transform: translate(-50%, -50%);
    /* 完全に中央に配置するための補正 */
    background-color: #fafafa;
    padding: 2.5% 7.5%;
    width: 60%;
    height: 50%;
    border-radius: 10px;
}

.modal-content h2 {
    margin: 60px 0 20px 0;
}

.close-button {
    position: absolute;
    right: 20px;
    cursor: pointer;
    color: #666;
    font-size: 1.5em;
}

select {
    margin-top: 0;
    float: right;
    width: 80px;
    transition: 0.4s;
}

select,
::picker(select) {
    font-family: sans-serif;
    border: 1px solid #9ba2a5;
    appearance: base-select;
}

::picker(select) {
    border-radius: 8px;
    transition: 0.4s;
}

select:focus {
    outline: none;
}

select::picker-icon {
    rotate: 90deg;
    transition: 0.4s;
}

select:open::picker-icon {
    rotate: 0deg;
}

button{
    height: 36px;
}

option{
    height: 36px;
    font-family: sans-serif;
}
option img{
    margin-top:1px;
}



option:checked {
    background-color: rgba(0, 0, 0, 0.1);
}

option::checkmark {
    display: none;
}

selectedcontent img {
    padding:0px 6px 0 2px;
}