@charset "utf-8";

@media screen and (max-width: 768px) {
    header,
    footer {
        min-width: initial;
    }

    header .container,
    footer .container {
        width: 100%;
    }

    header .container img:nth-child(1) {
        width: 70px;
        margin: auto;
        margin-right: 0;
        padding-left: 48px;
    }

    header .container span {
        font-size: 20px;
        line-height: 100%;
        margin: auto auto auto 0;
    }

    #reload  {
        margin-left: 0;
        margin-right: 16px;
        text-align: right;
    }

    footer {
        margin-top: 32px;
        padding: 32px 24px 32px 24px;
    }

    footer .container {
        row-gap: 8px;
    }

    footer > div:nth-child(1) {
        display: flex;
        margin-left: 0;
    }

    footer > div:nth-child(2) {
        display: flex;
        margin-left: 0;
        flex-direction: column;
        gap: 8px;
    }

    footer > div:nth-child(2) span {
        margin-left: 0;
        margin-right: auto;
    }

    footer > div:nth-child(n+2) {
        padding-top: 24px;
    }

    main {
        width: auto;
    }

    .menu-frame {
        height: 70px;
        padding: 16px;
    }

    .menu-frame > div:nth-child(1) {
        font-size: 20px;
    }

    .menu-frame > div:nth-child(2) {
        overflow-x: scroll;
    }

    main section {
        margin-top: 16px;
    }

    .menu-frame ul {
        margin: 16px 0 0 0;
    }
    .menu-frame ul li {
        width: max-content;
    }

    /*
    * アコーディオン
    */
    .accordion {
        border-radius: 0px;
        padding: 24px 0 24px 0;
        border-left: none;
        border-right: none;
    }
    .accordion summary {
        padding-left: 24px;
        padding-right: 24px;
    }

    .accordion > div {
        margin-top: 24px;
        padding-bottom: 8px;
    }

    /*
    * 指数一覧
    */
    .list_title li:nth-child(1) {
        width: 48px;
    }
    .list_title li:nth-of-type(n+3):nth-of-type(-n+7) {
        display: none;
    }
    .list_title li:nth-child(n+8) {
        display: table-cell;
    }
    .list_title li:nth-child(8) {
        width: 120px;
        text-align: right;
        padding-right: 4px;
    }
    .list_title li:nth-child(9) {
        width: 88px;
    }

    /* 国旗 */
    .list_table li:nth-child(1) {
        text-align: right;
        padding-right: 8px;
        width: 48px;
    }

    /* 銘柄名 */
    .list_table li:nth-child(2) {
        padding-left: 4px;
    }

    .list_table li:nth-child(2) > span {
        display: block;
    }
    
    /* 時刻 */
    .list_table li:nth-child(2) > span:nth-child(2) {
        display: block;
        font-weight: 400;
        color: rgba(17, 17, 17, 0.6);
    }

    .list_table.disabled li:nth-child(2) > span:nth-child(2) {
        color: rgba(110, 110, 110, 1);
    }

    /* チャート */
    .list_table li:nth-child(3) {
        display: none;
    }

    .list_table li:nth-child(4) {
        width: 102px;
        padding-right: 4px;
    }

    .list_table li:nth-child(4) > span {
        display: block;
    }

    .list_table:not(.disabled) span.plus {
        color: rgba(207, 0, 17, 1);
    }
   
    .list_table:not(.disabled) span.minus {
        color: rgba(0, 127, 102, 1);
    }

    .list_table:not(.disabled) span.even {
        color: rgba(110, 110, 110, 1);
    }
    
    .list_table li:nth-child(6) {
        width: 34px;
        text-align: left;
    }

    .list_table li:nth-child(6) svg {
        width: 20px;
        height: 20px;
    }

    .list_table li:nth-of-type(n+5):nth-of-type(-n+5),
    .list_table li:nth-of-type(7) {
        display: none;
    }

    /* チャートアイコン（SP） */
    .list_table li:nth-child(8) {
        width: 54px;
        display: table-cell;
        text-align: center;
    }

    .list_table li:nth-child(8) svg {
        vertical-align: bottom;
    }

    .list_table ul:nth-last-of-type(1) {
        padding-bottom: 100px;
    }

    #overseas_futures_and_indices .list_title li:nth-child(1),
    #overseas_futures_and_indices .list_table li:nth-child(1) {
        display: table-cell;
        width: 8px;
    }
}