
/* グラフ */
.graph-area section {
    width: 85%;
    padding-top: 2rem;
    padding-bottom: 0;
}

.graph-title > h2 > span {
	word-break: auto-phrase;
}

.graph-change {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.graph-change-button {
    display: block;
    width: 100px;
    text-align: center;
    line-height: initial;
    padding: 5px 30px;
    margin: 0 30px;
    border: solid 1px #ff6685;
    border-radius: 5px;
    cursor: pointer;
    font-weight:bold;
    color:#ff6685;
}

.graph-change-button:hover {
    background: #efefef;
}

.graph-change-button.selected {
    color: #ffffff;
    background: rgb(255,102,133);
    cursor: default;
}

.graph-content {
    width: 80%;
    height: 600px;
    margin: 50px auto 0px auto;
}

.graph-recent {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    background:#ffeaee;
    border-radius:10px;
    width: 80%;
    margin:30px auto 0;
}

.graph-recent table {
    width: 92%;
    table-layout: fixed;
}

.graph-recent .series-color {
    width: 5%;
    text-align: center;
    vertical-align: middle;
}

.graph-recent .series-title {
    padding: 10px;
    word-break: break-all;
    width: 80%;
}

.graph-recent .series-price {
    width: 15%;
    color: #ff124c;
    text-align: center;
    vertical-align: middle;
}

.graph-recent .series-color .detail-series {
    border: solid;
    color: #ff0000;
    width: 30px;
}

.graph-recent .series-color .avg-series {
    border: solid;
    color: #87CEEB;
    width: 30px;
}

.graph-recent .detail-graph-recent,
.graph-recent .avg-graph-recent {
    display: flex;
}

.graph-recent .detail-graph-recent div:nth-child(1):before {
    content: '';
    background-color: #FF0000;
    height: 5px;
    width: 50px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.graph-recent .avg-graph-recent div:nth-child(1):before {
    content: '';
    background-color: #87CEEB;
    height: 5px;
    width: 50px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.graph-recent .detail-graph-recent div:nth-child(2),
.graph-recent .avg-graph-recent div:nth-child(2) {
    text-align: end;
    color: #ff124c;
    font-weight: bold;
    margin-left: 20px;
}

/* 価格推移のコメント */
.price-trends-area {
    display: flex;
    justify-self: center;
    padding: 3rem 0;
}

.price-trends-area div:nth-child(1) {
    width: 740px;
}

.price-trends-area div:nth-child(2) {
    width: 20px;
}
.price-trends-area div:nth-child(3) {
    width: 200px;
}

.price-trends-area div strong {
    color: #ff124c;
    font-weight: bold;
}

.price-trends-area .increase-trend,
.price-trends-area .declining-trend, 
.price-trends-area .same-trend {
    border:2px solid #ff6685;
    border-radius:10px;
    padding:22px;
    line-height:1.7em;
}

.price-trends-area .trend-img,
.price-trends-area .trend-img2 {
    align-content: center;
}

.price-trends-area .trend-img img{
    width:160px;
    padding-left:20px;
}

.price-trends-area .trend-img2 img{
    width:20px;
}


@media (max-width: 768px) {
    /* グラフ */
    .graph-area section {
        width: 95%;
        padding: 30px 10px 0px 10px;
    }

    .graph-change {
        margin-top: 20px
    }
    .graph-change-button {
        width: 70px;
        margin: 5px;
        padding: 15px 10px;
    }

    .graph-content {
        width: 100%;
        height: 400px;
        margin: 20px auto 0px auto;
    }

	.graph-recent {
	    padding: 10px 0;
	    width: 100%;
	    margin:20px auto 0;
	}

	.graph-recent table {
	    width: 92%;
	    table-layout: fixed;
	}
	
	.graph-recent .series-color {
	    width: 10%;
	    text-align: center;
        vertical-align: middle;
	}
	
	.graph-recent .series-title {
	    padding: 10px;
	    word-break: break-all;
	    width: 70%;
	}
	
	.graph-recent .series-price {
	    width: 20%;
	    color: #ff0000;
	    text-align: center;
        vertical-align: middle;
	}
	
	.graph-recent .series-color .detail-series {
	    border: solid;
	    color: #ff0000;
	    width: 30px;
	}
	
	.graph-recent .series-color .avg-series {
	    border: solid;
	    color: #87CEEB;
	    width: 30px;
	}

    .graph-recent .detail-graph-recent,
    .graph-recent .avg-graph-recent {
        display: block;
        margin-top: 5px;
        word-break: keep-all;
    }

	/* 価格推移のコメント */
	.price-trends-area {
	    display: block;
	}

	.price-trends-area div:nth-child(1) {
	    width: 100%;
	    margin:0 auto;
	}

	.price-trends-area div:nth-child(2) {
	    width: 100%;
	    margin:0 auto;
	}
	.price-trends-area div:nth-child(3) {
	    width: 100%;
	    margin:0 auto;
	}

	.price-trends-area div strong {
	    color: #ff124c;
	    font-weight: bold;
	}

	.price-trends-area .increase-trend,
	.price-trends-area .declining-trend, 
	.price-trends-area .same-trend {
	    border:2px solid #ff6685;
	    border-radius:10px;
	    padding:15px;
	    line-height:1.7em;
	}

	.price-trends-area .trend-img img{
	    width:140px;
	    margin:-10px 28%;
	}

	.price-trends-area .trend-img2 img{
	    width:20px;
	    margin:-10px 48% 0;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
	}
}