.sp {
  display: none;
}
.highcharts-range-selector-buttons{
  display: none;
}
select{
  width: 80px;
  height: 30px;
}

.chart-line {
  display: flex;
  padding: 6px 0;
}
.chart-year {
  width: 10%;
  text-align: right;
  font-weight: bold;
}
.chart-product {
  width: 20%;
  text-align: right;
  white-space: nowrap;
  font-family: arial,helvetica,sans-serif,"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, メイリオ;
}
.chart-value {
  width: 70%;
  padding-left: 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
}
.chart-value span {
  width: 14%;
  height: 15px;
  background-color: orange;
}

.graph_button{
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}
.graph_button button {
  width: 80px;
  height: 35px;
  border-radius: 5px;
  background-color: white;
  border: 1px solid #999999;
  color: black;
  line-height: 20px;
  margin-left: 10px;
  padding: 3px 0;
  text-align: center;
  font-size: 15px;
}
.graph_button.lg_btn button:first-child {
  width: 110px;
  margin-left: 0px;
}
.graph_button button.active {
  color: #fff;
  background-color: #014f80;
}
.graph_button button:disabled {
  background-color: #bbb;
  color: white;
}
.graph_button_list {
  display: none;
  margin-bottom: 8px;
  padding: 0px 16px;
}
.graph_button_list select {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 100px;
}
.graph_button_list select.lg_select {
  min-width: 135px;
}
.chart-container.chart1 .graph_button{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
  margin-bottom: 10px;
  text-align: center;
}
.chart-container.chart1 #tooltip {
  margin-top: 16px;
  padding: 0 16px;
}
.chart-container.chart10 .graph_button{
  gap: 5px;
}

/* chart1*/
.chart-container{
  margin: auto;
  font-size: 14px;
  font-family: arial,helvetica,sans-serif,"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, メイリオ;
}

.chart-container.chart1{
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
}
.chart1 .wrapper{
  height: 500px;
  overflow-y: hidden;
}
.chart1 .wrapper #totalWorth{
  position: absolute;
  top: calc(60% + 5px);
  left: 20px;
  z-index: 100;
}
.chart-container .close {
  font-size: 2.4rem;
  line-height: 1;
  opacity: 0.5;
  text-shadow: 0 1px 0 #fff;
  font-weight: 700;
  cursor: pointer;
}
.chart-container.chart1 .range_select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 16px;
}

.display_period {
  /*text-align: center;*/
  width: 330px;
}
.display_period label {
  font-weight: bold;
  margin-right: 4px;
}
.display_period input {
  -webkit-appearance: none;
  width: 105px;
  padding: 4px;
  border: 2px solid #333;
  border-radius: 4px;
  
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.chart-container.chart2{
  width: 100%;
  margin: auto;
}

.chart-container.chart3{
  width: 100%;
  margin: auto;
}
.chart3 #return_title{
  font-size: 18px;
  white-space: nowrap;
}

.chart-container.chart4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  height: 200px;
  padding: 0;
  margin: 0 auto;
}

.chart-container.chart5{
  width: 100%;
  max-width: 500px;
}

.chart-container.chart6{
  width: 100%;
  max-width: 530px;
  height:250px;
  position: relative
}

.chart-container.chart7{
  width: 100%;
  max-width: 500px;
  height:160px;
}

.chart-container.chart8{
  width: 100%;
  max-width: 500px;
  height:160px;
}
.chart-container.chart9{
  width: 100%;
  max-width: 530px;
  height: 250px;
}

.chart-container.chart10{
  width: 100%;
  /* height: 400px; */
  /* padding: 10px; */
  margin: auto;
}

.chart10 .graph_button button {
  width: 50px;
  height: 35px;
}

.chart10 .graph_button button:last-child {
  width: 85px;
}

.chart10 .wrapper{
  height: 350px; overflow-y: hidden;
}

.chart10 .legend{
  padding-left:60px;
  text-align:center;
  display:flex
}

.chart10 .legend div{
  width:50%;
  text-align:center;
}
#chart1-notice, #chart10-notice,
#chart2-error, #chart3-error{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-weight: 800;
  font-size: 17px;
}

#chart1 {
  width: 100%;
  height: 544px;
  margin: auto;
}

#chart1 #tooltip .legend{
  text-align:center;
  display:flex;
  justify-content: center;
}

#chart1 .highcharts-navigator-mask-outside {
  fill: rgba(0,0,0,0.3);
}

#chart2 {
  width: 100%;
  height:302px;
}

#chart3 {
  width: 100%;
  height:250px;
}

#chart5-error{
  padding: 15px;
}

#chart9 {
  width: 100%;
  max-width: 530px;
  height:250px;
}
#chart9 .highcharts-legend-item .highcharts-point,
.highcharts-legend-item .highcharts-graph {
  display: none
}

#chart10 {
  width: 100%;
  height:400px;
}

.tooltip_wrapper {
  background-color: rgba(239, 239, 239, 0.6);
  padding: 0.8rem;
  border-radius: 4px;
  border: 2px solid #dddddd;
}

.toolip_date {
  display:block;
  font-weight:900;
  font-size: 1.25rem;
  /* background-color: rgba(239, 239, 239, 0.6); */
  padding:3px;
}

.toolip_value {
  display:block; 
  /* background-color: rgba(239, 239, 239, 0.6); */
  font-weight: 700;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1.75rem;
}

#tooltip-hover-date {
  display: inline;
}

#tooltip_date {
  font-weight: bold;
}

/* chart1, chart10 #tooltip */
#tooltip span{
  display: block;
  height: 20px;
  margin-bottom: 10px;
}
#tooltip span.legend_value, #totalWorth span.legend_value {
  display: inline;
  margin: 0;
  padding: 0;
}

#tooltip div.inactive{
  color: #ccc !important;
  border-color: #ccc !important;
}

#tooltip div .inactive{
  color: #ccc !important;
  border-color: #ccc !important;
}

.line{
  display: flex;
  width: 100%;
  max-width: 500px;
  padding: 5px;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
#fourth-line{
  margin-top: -8px;
}

.chart-header{
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 5px 0 0 0;
}

.chart-title{
  width: 30%;
  font-size: 15px;
  font-weight: 600;
  padding-left: 20px;
  white-space: nowrap;
}

#chart6-date{
  position: absolute;
  z-index: 1;
  top: 7px;
  right: 70px;
}

.chart-date {
  width: 70%;
  text-align: right;
  padding-right: 10px;
}

.subtitle{
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.subtitle div {
  background: #eee;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 10px;
}

.container{
  border: solid 1px #ccc;
  display:inline-block;
}

.period{
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 0;
}

.title{
  text-align: center;
  padding: 15px;
  font-size: 20px;
}

/* Modal-dialog */
.chart-container .modal-dialog{
  width: 500px;
  padding: 0;
}

.chart-container .modal-content{
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 0.4rem;
  outline: 0;
  box-shadow: none;
}

.chart-container .modal-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1.4rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
  margin-bottom: 0;
}

.chart-container .modal-header h5 {
  font-weight: normal;
  font-size: 1.8rem;
  padding-bottom: 0;
}

.chart-container .modal-header h5::after {
  display: none;
}

.chart-container .modal-body{
  position: relative;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.4rem;
  text-align: center;
}

.chart-container .modal-dialog select {
  width: 80px;
  height: 30px;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}

#start-year{
  width: 55px;
}

#start-month{
  width: 40px;
  margin-left: 15px;
}

#start-day{
  width: 40px;
  margin-left: 15px;
}

.modal-open {
  overflow-y: scroll;
  padding-right: 0 !important;
}

.chart-container .modal-dialog .btn{
  font-size: 14px !important;
}

.chart-container .modal-footer{
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 1.05rem;
  margin-top: 0;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.chart-container .modal-footer .btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.525rem 1.05rem;
  margin: 0.35rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
/* end of .modal-dialog */

@media (max-width: 1140px) {

  #chart1 #tooltip .legend:nth-child(1),
  #chart1 #tooltip .legend:nth-child(2),
  #chart1 #tooltip .legend:nth-child(3),
  #chart1 #tooltip .legend:nth-child(4) {
    width: 25%;
  }

  .chart-container.chart1 {
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
  }

  .chart-container.chart1 .graph_button {
    gap: 6px 0px;
  }

  .graph_button button {
    height: 35px;
    border-radius: 5px;
    line-height: 20px;
    padding: 3px 0;
    text-align: center;
    font-size: 14px;
    width: 20%;
  }
  .graph_button.lg_btn {
    margin-left: 0px;
  }
  .graph_button.lg_btn button:nth-child(5) {
    width: 110px;
    margin-left: 0px;
  }

  .chart-container.chart6{
    height: 400px;
  }

  .chart-container.chart9{
    height: 300px;
  }
  #chart9 {
    height: 300px;
  }

  #periodtab{
    margin-top: 10px;
  }

  #periodtab div{
    padding-left: 0 !important;
    font-size: 12px !important;
  }
}

@media (max-width: 950px) {
  .subtitle div{
    width: 50%;
    padding: 1px 5px;
  }
  .title{
    padding: 5px;
  }
}

@media (max-width: 799px) {
  .chart10 .legend{
    display:block;
  }

  .chart10 .legend div{
    width:100%;
  }

  #tooltip_date{
    padding-left: 5px !important;
  }

  .sp {
    display: block;
  }
  .chart1 #tooltip > div div {
    width: 50% !important;
    margin-bottom: 10px;
  }
  .chart1 #tooltip #tooltip_date {
    width: 100% !important;
    margin-bottom: 10px;
  }  
  .chart10 #tooltip div{
    padding-left: 0 !important;
  }

  .chart3 .graph_button button{
    width: 40px;
  }
}

@media (max-width: 767px) {
  .chart-container.chart1 {
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
  }
  .chart-container.chart6{
    height: 300px;
  }
  .chart-container.chart1 .graph_button{
    display: none !important;
  }
  .graph_button_list {
    display: block;
  }
}

@media (max-width: 600px) {
  .chart-container.chart10{
    width: 100%;
    height: unset;
  }

  #chart10{
    height: 300px;
  }
  .chart-container.chart10 .wrapper {
    height: 250px;
  }
}

@media (max-width: 556px) {
  .subtitle div{
    width: 100%;
  }

}
@media (max-width: 530px) {
  .chart-container.chart6{
    height: 400px;
  }
  .chart-container.chart9{
    height: 290px !important
  }
  #chart9{
    height: 290px !important
  }
  #chart9 .highcharts-legend{
    top: 165px !important
  }
}

@media (max-width: 500px) {
  .chart-container .modal-dialog{
    width: calc(100% - 30px);
  }
  .display_period input {
    font-size: 1.3rem;
  }

  #first-line div{
    font-size: 9px !important;
  }
  #second-line div{
    width: 30% !important;
  }
  #fourth-line div{
    width: 20% !important;
  }

  #fifth-line div{
    font-size: 12px !important;
  }
  .line{
    width: 100%
  }
  .chart-container.chart5 {
    padding: 5px;
  }
  #chart6-date{
    right: 0;
  }
}

@media (max-width: 450px) {
  .chart1 #tooltip > div div {
    font-size: 13px !important;
  }
  .graph_button{
    gap: 0;
  }
  .graph_button button{
    width: 80px;
    margin: 5px 0 5px 5px;
    font-size: 13px;
  }

  .period{
    display: block;
  }

  .period .graph_button{
    justify-content: flex-start;
  }
}

@media (max-width: 400px) {
  .chart1 #tooltip > div div {
    font-size: 12px !important;
  }
  .chart3 .graph_button button {
    width: 60px;
  }
}

@media (max-width: 370px) {

  .display_period label {
    font-size: 13px;
  }
  .display_period input {
    width: 95px;
    font-size: 1.2rem;
  }
  /* .chart-container.chart10{
      padding: 5px;
  } */
  .chart3 #return_title{
    font-size: 14px;
  }
  .chart3 .graph_button button {
    width: 50px;
  }
  .chart4 .chart-year{
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .chart-container.chart1 .range_select {
    padding-right: 0;
  }
  .display_period label:first-child {
    white-space: nowrap;
    margin-right: 85%;
  }
}