@charset "utf-8";

@media screen and ( min-width: 1024px ) {

  body.page-index #sidebar {
    padding-top: 5.6vw;
  }

}

#sidebar section {
  margin-bottom: calc( var( --block-margin ) / 2 );
  padding: 10px 15px;
}

#sidebar section:last-child {
  margin-bottom: 0;
}

#sidebar section > header {
  margin-bottom: 0;
  border-bottom: initial;
  padding: 0;
}

#sidebar section > header > h3 {
  position: relative;
}

#sidebar section > header > h3 > img {
  width: 70%;
  margin: 0 auto;
  display: block;
}

#sidebar section > header > h3 > p {
  line-height: 1.3rem;
  vertical-align: bottom;
  display: inline-block;
}

#sidebar section > header > h3 > p small {
  font-size: 0.8rem;
}

#sidebar section > header > h3 > div {
  display: inline-flex;
  flex-direction: column;
}

#sidebar section > header > h3 > div > p {
  margin: 0;
}

#sidebar section.investment-section > header > h3 > p {
  font-size: 1.0rem;
}

#sidebar section > .content {
  font-size: 0.8rem;
  padding-top: 1.0em;
}

/* Forex */

#sidebar > .forex-section > header {
  margin-bottom: -2px;
}

#sidebar > .forex-section > .content {
  /*background-image: var( --background-image-pattern );*/
  background-color: var( --background-inner-color );
  padding: 1.0em;
}

#sidebar > .forex-section > .content > .infomation {
  color: #fff;
  border: 1px solid #fff;
  padding: 0.5em;
}

/* Brand Box */

#sidebar .brand-box {
  margin-bottom: var( --paragraph-margin );
  display: flex;
  gap: 10px;
  flex-direction: row;
  flex-wrap: wrap;
}

#sidebar .brand-box > .item {
  flex-basis: calc( ( 100% - 10px ) / 2 );
}

#sidebar .brand-box > .item > figure {
  background-color: #fff;
  margin: 0 auto;
}

#sidebar .brand-box > .item > figure a {
  text-align: center;
  padding: 10px;
  display: block;
}

#sidebar .brand-box > .item > figure a img {
  min-width: 100%;
  max-height: 20px;
  vertical-align: middle;
}

#sidebar .brand-box > .item > .detail {
  word-break: break-all;
  margin-top: 5px;
}

#sidebar .brand-box > .item > .detail .external-link {
  font-size: 0.8rem;
}

@media screen and ( max-width: 1024px ) {

  #sidebar .brand-box > .item > figure > a > img {
    width: 100%;
    height: 50px;
    max-height: initial;
  }

}

/* Chart */

#sidebar .chart-box > .tradingview-widget-container > iframe {
  width: 100%;
  height: 260px;
}

@media screen and ( max-width: 1024px ) {

  #sidebar .charts {
    display: flex;
    flex-wrap: wrap;
    gap: 2.3%;
  }

  #sidebar .charts > .chart-box {
    flex-basis: calc( ( 100% - 2.3% ) / 2 );
  }

}

/* News */

#sidebar .sidebar-news-box {
  height: 500px;
  overflow-y: scroll;
}

#sidebar .sidebar-news-box .item {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

#sidebar .sidebar-news-box .item a {
  color: initial;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#sidebar .sidebar-news-box .item a:hover {
  background-color: #f5f8f9;
}

#sidebar .sidebar-news-box .item a .metabox {
  color: #aaa;
  font-size: 0.7rem;
  margin-top: 5px;
  display: flex;
  gap: 5px;
}

@media screen and ( max-width: 480px ) {

  .tradingview-widget-container {
    margin: 0 auto;
  }

}

/* Investment */

#sidebar .investment-section > header > h3 {
  font-size: 1.0em;
  line-height: 1.0em;
  display: flex;
  justify-content: center;
}
