﻿@font-face {
    font-family: 'noto-sans-jp';
    src: url(font/NotoSansJP-Regular.woff)format("woff");
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'noto-sans-jp';
    src: url(font/NotoSansJP-Bold.woff)format("woff");
    font-weight: bold;
    font-display: swap;
}


html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,YuGothic,Meiryo,"Yu Gothic Medium","Yu Gothic","MS PGothic",sans-serif;
}

body {
    margin: 0;
    height: 100%;
    width: 100%;
}

#chart-main {
    display: block;
    width: 90%;
    height: 100%;
    margin: 0 5%;
}


.chart_box {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    grid-template:
        'header' 370px
        'chart' auto / 100%;
    gap: 0px;
}

.report-page .chart_box {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    grid-template:
        'header' 280px
        'chart' auto / 100%;
    gap: 0px;
}



/*.item-title {
    width:100%;
    margin: 0;
    grid-area: title;
    font-size: 36px;
    font-weight: bold;
    color: #001675;
    display: flex;
    justify-content: center;
    align-items:center;
}
*/
.item-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-area: header;
    margin: 0;
}

/*新チャートヘッダ*/
.chart-selector-div {
    display: grid;
    height: 200px;
    width: calc(100% - 40px);
    background-color: #f8f8ff;
    grid-template:
        'chart-type-title chart-type tutorial ' 40px
        'technical-title technical technical ' 45px
        'oscillator-title oscillator oscillator' 40px
        'chart-span-title chart-span chart-span' 45px / 100px calc(100% - 170px) 40px;
    align-items: center;
    padding: 35px 20px 35px 40px;
}

#chart-type-title,
#technical-title,
#oscillator-title,
#chart-span-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
}

#chart-type-title {
    grid-area: chart-type-title;
}

#technical-title {
    grid-area: technical-title;
}

#oscillator-title {
    grid-area: oscillator-title;
}

#chart-span-title {
    grid-area: chart-span-title;
}

    #chart-type-title::after,
    #technical-title::after,
    #oscillator-title::after,
    #chart-span-title::after {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translate(0,-50%);
        content: "：";
    }

#technical-selector-div {
    grid-area: technical;
    justify-content: flex-start;
}

#oscillator-selector-div {
    grid-area: oscillator;
    justify-content: flex-start;
}

    #technical-selector-div label,
    #oscillator-selector-div label {
        text-align: center;
    }

#time-span-selector-div {
    grid-area: chart-span;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 580px;
}



#tutorial-div {
    grid-area: tutorial;
    background-color: navy;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    height: 24px;
    width: 24px;
    user-select: none;
    margin: 0 0 0 8px;
}

/*新チャートタイプ選択*/
#chart-type-div {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #333333;
    background-color: white;
    margin: 0 0 0 6px;
    grid-area: chart-type;
}

    #chart-type-div input {
        display: none;
    }

    #chart-type-div label {
        fill: white;
        stroke: #333333;
        display: inline-block;
        width: 50px;
        height: 36px;
        cursor: pointer;
    }

    #chart-type-div input[type="radio"]:checked + label {
        /*fill: #E9F3FF;*/
        fill: transparent;
        stroke: white;
        background: #001f7a;
    }

    #chart-type-div svg {
        width: 50px;
        height: 36px;
    }

.splitter-line {
    height: 80%;
    width: 1px;
    background-color: #777777;
}

    .splitter-line:first-child {
        display: none;
    }
/*新チャートタイプ選択*/

/*新radio選択*/
.radio-selector-div {
    display: flex;
    align-items: center;
    height: 36px;
    margin: 0 5px;
}

    .radio-selector-div input {
        display: none;
    }

    .radio-selector-div label {
        display: inline-block;
        width: auto;
        line-height: 36px;
        color: black;
        background-color: transparent;
        border-radius: 5px;
        font-size: 14px;
        height: 100%;
        padding: 0 30px;
        margin: 0;
        white-space: nowrap;
        cursor: pointer;
    }

        .radio-selector-div label span {
            display: inline-block;
            width: 88px;
            text-align: center
        }

    .radio-selector-div .time-span-label {
        padding: 0;
    }


    .radio-selector-div input[type="radio"]:checked + label {
        color: white;
        background-color: #001f7a;
    }

    .radio-selector-div .splitter-line {
        margin: 0 2px;
    }

/*新レイアウト銘柄選択*/
.ui-widget-overlay {
    background-color: transparent;
    background: none;
}

.ui-dialog-titlebar {
    display: none;
    border: 0px;
    background: none;
    background-color: transparent;
}

.ui-widget-content {
    background: none;
    background-color: white;
}

#brand-selector-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    display: none;
}

#brand-selector-dialog-close {
    height: 30px;
    width: 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    user-select: none;
    border: 1px solid gray;
    border-radius: 15px;
    position: absolute;
    right: -15px;
    top: -25px;
    background-color: white;
    color: #333333;
    cursor: pointer;
    font-weight: bold;
}

#brand-selector-content {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    /*grid-template-rows: repeat(auto-fill , 50px);*/
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.brand-selector-list-item-div {
    width: 180px;
    height: 60px;
}

.brand-selector-list-item-input {
    display: none;
}

    .brand-selector-list-item-input:checked + label .brand-selector-list-item-span {
        /*background-color: #E9F3FF;*/
        background-color: #001f7a;
        color: white;
    }

.brand-selector-list-item-label {
    margin: 5px 0;
    padding: 0;
    display: inline-block;
    height: calc(100% - 9px);
    width: 100%;
    cursor: pointer;
}

.brand-selector-list-item-span {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    border: solid 1px silver;
    border-radius: 15px;
    grid-template:
        '. name name .' 25px
        '. flag code .' 15px / 0px 55px 55px 0px;
    color: black;
}

.brand-selector-list-item-name {
    grid-area: name;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
}

.brand-flag-code-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
}

.brand-selector-list-item-flag {
    grid-area: flag;
    position: relative;
    text-align: center;
    top: 2px;
}

.brand-selector-list-item-code {
    grid-area: code;
    text-align: center;
    padding: 1px 0 0 5px;
    display: flex;
}

.brand-selector-list-item-flag img {
    height: 15px;
    margin: 0 1px 0px 0;
    border:rgba(198,198,198,0.5) solid 1px;
}

.chart-rate-div {
    width: 100%;
    height: 70px;
    margin: 10px 0;
    display: grid;
    grid-template:
        '. rate-bid-title rate-ask-title . . ' 28px
        'brand-selector rate-bid-value rate-ask-value diff-title diff-value' 42px / 25% 25% 25% 12% 10%;
    gap: 0px;
    font-family: 'noto-sans-jp', sans-serif;
}

    .chart-rate-div > div {
        margin: 0;
        display: flex;
        flex-direction: row;
    }

.report-page .chart-rate-div {
    display: none;
}

.brand-selector-div {
    grid-area: brand-selector;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#brand-selector {
    height: 40px;
    width: 100%;
    border: silver 1px solid;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    color: black;
    font-size: 16px;
    padding: 5px;
    display: flex;
    justify-content: space-between;
}

#brand-selector-text {
    width: calc(100% - 20px);
    text-align: center;
    line-height: 30px;
    white-space:nowrap;
}

#brand-selector-triangle {
    width: 16px;
    height: 16px;
    margin: 7px 2px 7px 2px;
}

.diff-title {
    grid-area: diff-title;
    font-size: 16px;
    justify-content: center;
    align-items: end;
    color: #333333;
}

.rate-bid-title {
    grid-area: rate-bid-title;
    font-size: 20px;
    font-weight: 400;
    justify-content: center;
    align-items: center;
    color: #333333;
    padding: 0 0 8px;
}

.rate-ask-title {
    grid-area: rate-ask-title;
    font-size: 20px;
    font-weight: 400;
    justify-content: center;
    align-items: center;
    color: #333333;
    padding: 0 0 8px;
}

.rate-bid-value {
    grid-area: rate-bid-value;
    font-size: 42px;
    font-weight: 700;
    align-items: flex-end;
    justify-content: center;
    color: #001f7a;
    line-height: 1.1;
}

.rate-ask-value {
    grid-area: rate-ask-value;
    font-size: 42px;
    font-weight: 700;
    align-items: flex-end;
    justify-content: center;
    color: crimson;
    line-height: 1.1;
}

.diff-value {
    grid-area: diff-value;
    position: relative;
    font-size: 28px;
    font-weight: bold;
    /*font-weight:700;*/
    /*align-items: center;*/
    justify-content: center;
    align-items: end;
    color: #333333;
    line-height: 1.2;
    letter-spacing: 1px;
}

.tutorial-div {
    grid-area: tutorial;
    justify-content: flex-end;
    align-items: flex-end;
    color: #001f7a;
}


.item-div {
    position: relative;
    grid-area: chart;
    overflow-x: visible;
}

.chart-bid-div {
    position: absolute;
    top: 10px;
    right: 2px;
    height: 24px;
    width: 55px;
    border-radius: 5px;
    background-color: #001f7a;
    color: white;
    text-align: center;
    font-size: 18px;
    z-index: 3;
}

.client-chart-style {
    height: 100%;
    width: 100%;
}

    .client-chart-style p {
        pointer-events: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

/*モバイルサイズ*/
@media screen and (max-width:768px) {

    #chart-main {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 2px 0 0 0;
    }


    .chart_box {
        grid-template:
            'header' 190px
            'chart' auto / auto
    }

    .report-page .chart_box {
        display: grid;
        grid-template:
            'header' 100px
            'chart' auto / 100%;
    }

    .item-header {
        overflow: hidden;
    }

    .item-title {
        font-size: 28px;
    }

    .chart-selector-div {
        width: 98%;
        padding: 6px 0px 6px 10px;
        align-items: center;
        justify-items: initial;
        grid-template:
            'chart-type chart-span' 50%
            'technical oscillator' 50%;
        grid-template-columns: calc(50% - 5px) calc(50% - 5px);
        position: relative;
        height: 80px;
        box-sizing: border-box;
    }

    #technical-selector-div ons-select, #oscillator-selector-div ons-select {
        width: 156px;
    }

    #tutorial-div {
        display: none;
    }

    /*とりあえずタイトルはMobileでは非表示にしておく*/
    #chart-type-title,
    #technical-title,
    #oscillator-title,
    #chart-span-title {
        display: none;
    }

/*    .item-header {
        padding: 0 0 10px 0;
    }
*/
    .chart-rate-div {
        margin: 1px 0 5px 0;
        display: grid;
        grid-gap: .5rem;
        grid-row-gap: .1rem;
        height: 80px;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 30px 30px 20px;
        grid-template-areas:
            "brand-selector brand-selector brand-selector"
            "rate-bid-title rate-ask-title diff-title"
            "rate-bid-value rate-ask-value diff-value";
        padding: 0;
    }

    #brand-selector-div {
        width: 98%;
        justify-content: flex-start;
    }

    .diff-title,
    .rate-bid-title,
    .rate-ask-title {
        font-size: 16px;
        justify-content: center;
        padding: 0;
    }

    .diff-title {
        font-size: 13px;
        line-height: 1.7;
        padding: 2px 0 0 0;
        align-items: center;
    }

    .rate-bid-value,
    .rate-ask-value,
    .diff-value {
        font-size: 23px;
        line-height: 28px;
        justify-content: center;
        align-items: flex-end;
        font-weight: bold;
    }

    /* コンボ共通 START*/
    .comb-selector-Mobile ons-select {
        width: 100%;
        background-color: white;
        height: 30px;
        border-radius: 5px;
        border: #333 solid 1px;
    }

        .comb-selector-Mobile ons-select select {
            color: #333;
            padding: 0 20px 0 6px;
            background-position-x: calc(100% - 6px);
            font-size: 13px;
            height: 30px;
            line-height: 30px;
        }

    .radio-selector-div {
        height: 32px;
    }
    /* コンボ共通 END*/
    #time-span-selector-div {
        width: auto;
    }

        #time-span-selector-div ons-select {
            width: 79px;
        }

    /*チャートタイプ START*/
    #chart-type-div {
        width: 80px;
        height: 32px;
        margin: 0px 5px;
    }

        #chart-type-div label {
            width: 40px;
            height: 32px;
        }

        #chart-type-div svg {
            width: 40px;
            height: 32px;
        }
    /*チャートタイプ END*/
}
