body{
  background-color: #ffe4c0;
}
.w30per  { width: 30% }
.w50per  { width: 50% }
.w70per  { width: 70% }
.w100per { width: 100% }
.w100px { width: 100px; }
.w200px { width: 200px; }
.w250px { width: 250px; }
.w300px { width: 300px; }

.mw400px { max-width: 400px; }
.mw500px { max-width: 500px; }
.mw600px { max-width: 600px; }
.mw400auto { max-width: 400px; margin: auto}
.mw500auto { max-width: 500px; margin: auto; }
.mw600auto { max-width: 600px; margin: auto; }

.lh-100per { line-height: 100% }
.lh-120per { line-height: 120% }
.lh-140per { line-height: 140% }
.lh-160per { line-height: 160% }
.lh-180per { line-height: 180% }
.lh-200per { line-height: 200% }

.pt_5  { padding-top: 5px; }
.pt_10 { padding-top: 10px; }
.pt_15 { padding-top: 15px; }
.pt_20 { padding-top: 20px; }
.pb_5  { padding-bottom: 5px; }
.pb_10 { padding-bottom: 10px; }
.pb_15 { padding-bottom: 15px; }
.pb_20 { padding-bottom: 20px; }
.pl_5  { padding-left: 5px; }
.pl_10 { padding-left: 10px; }
.pl_15 { padding-left: 15px; }
.pl_20 { padding-left: 20px; }

.mt_5  { margin-top: 5px; }
.mt_10 { margin-top: 10px; }
.mt_15 { margin-top: 15px; }
.mt_20 { margin-top: 20px; }
.mt_70 { margin-top: 70px; }
.mb_5  { margin-bottom: 5px; }
.mb_10 { margin-bottom: 10px; }
.mb_15 { margin-bottom: 15px; }
.mb_20 { margin-bottom: 20px; }
.ml_5  { margin-left: 5px; }
.ml_10 { margin-left: 10px; }
.ml_15 { margin-left: 15px; }
.ml_20 { margin-left: 20px; }

#logout_form button{
  border: 1px solid gray;
  border-radius: 5px;
}

.post_content{
	font-size: 14px !important;
}
.post_content p {
    line-height: 110%;
    margin: 0 0 2em 0;
}

.button-box { text-align: center;  margin: 10px;}
.button-box input { padding: 5px 10px; border-radius: 20px; }

.ranking_group_btn {
  margin: 0 10px;
  width: 30%;
}

.form-block input,
.form-block select,
.form-block textarea {
    margin: 5px 0;
    box-sizing: border-box;
    padding: 0.6em;
    transition: 0.3s;
    letter-spacing: 1px;
    border: 1px solid gray;
    border-radius: 4px;
    font-size: 110%;
}

.p-title{
    border-bottom:1px solid gray;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}
.inline{
    display: inline-block;
    padding: 0 10px 0 0 !important;
}

.animate_btn{
    visibility:hidden;
    -webkit-animation-duration:0.5s;
    -webkit-animation-delay:0.5s;
    animation-duration:0.5s;
    animation-delay:0.5s;
    padding: 0;
}


#main_contents {
    font-size: 14px;
    background-color: white;
    padding: 20px;
    margin: 10px 0;
}

#entry-form a,
#buy-form a,
#confirm-form a {
	color:#F00;
	text-decoration:underline;
}

#login-form a {
	color:#3a34e5;
	text-decoration:underline;
}

.q_underline.is-active {
    background-position: -100% 1em;
}
.q_underline{
    border-bottom-color: transparent;
    background-image: -webkit-linear-gradient(left, transparent 50%, rgb(255, 153, 184) 50%);
}

.error{
	display: block;
	color: red;
}

/* エントリーページ　*/
.headline-message {
  color: white;
  text-align: center;
  margin: 20px 0;
  font-weight: 500;
}

.text-red {
  color: red;
}

.text-bold{
  font-weight: bold;
}

.headline-message span{
  display: inline-block;
}

/* ログインページ・ マイページ */
.mypage_header {
  height: 128px !important;
}


/* ログインページ */
#login-form { text-align: center; }
#login-form .left{ display: inline-block; width: 150px; text-align: left; }
#login-form .right{ display: inline-block; }


/* マイページ */
.nickname { text-align: right; }
h3{
     margin-top: 10px !important;
     text-decoration: underline;
}

.mypage_title {
  font-weight: bold;
  font-size: 200%;
  text-align: center;
}

.blink {
	-webkit-animation: blink 2s ease infinite;
	animation: blink 2s ease infinite;
}
.caution > td{
  background-color: lightpink;
}

@-webkit-keyframes blink {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
@keyframes blink {
	0% {opacity: 0;}
	100% {opacity: 1;}
}

.sell_box table,
.buy_box table{
  max-width: 680px;
  margin-bottom: 10px;
}

.sell_box .button-box,
.buy_box .button-box {
  max-width: 680px;
}

.sell_box table th,
.buy_box table th{
  width: 35%;
}

/*
@media screen and (max-width: 640px) {
  .history_table table {
    width: 80%;
  }
  .history_table table .thead {
    display: none;
  }
  .history_table table tr {
    width: 100%;
  }
  .history_table table td {
    display: block;
    text-align: right;
  }
  .history_table table td:first-child {
    background: #f7f7f7;
    font-weight: bold;
    text-align: center;
  }
  .history_table table td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    margin-right: 10px;
  }
}
*/

  /*デフォルトで履歴テーブルを非表示*/
  .history_table { display: none }


  /*テーブル　スクロール固定*/
  .sticky_box{
    width: 100%;
    overflow: auto;
  }

  .sticky_box table{
    /*width: 832px !important;*/
    border-collapse: separate;
    margin: 0;
  }

  .stock_list_table th,
  .stock_history_table th{
    background-color: #f7f7f7 !important;
  }

  .stock_list_table td.fixed02,
  .stock_history_table td.fixed02{
    background-color: #ffffff !important;
  }



  .fixed01,
  .fixed02{
    position: sticky;
    top: 0;
    left: 0;

  }
  .fixed01{
    z-index: 2;
  }
  .fixed02{
    z-index: 1;
  }

  .sticky_box th,
  .sticky_box td {
    line-height: 1.5;
    padding: 5px 15px;
  }

  /* 7件以上は高さを指定 */
  .history_table_height{
    height: 400px;
  }

  /* マイページメニュー */
  #mypage-navi {
    list-style: none;
    overflow: hidden;
    width: 850px;
    margin: auto;
  }

  #mypage-navi li {
    background-color: gray;
    height: 50px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 0 20px;
    border-right: 2px solid white;
  }
  #mypage-navi li:last-child{
    border-right: 0;
  }
  #mypage-navi>.current{
    background-color: lightgray;
  }


  #mypage-navi li a,
  #mypage-navi li span {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
  }
  #mypage-navi li span:nth-child(3) {
    display: block;
  }

  /* 大会名表示 */
  .convention_title{
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
  }

  /* ランキングテーブル */
  .ranking_table tr td:first-child,
  .ranking_table tr td:last-child {
    text-align:center;
  }

  .stock_list_table,
  .stock_history_table {
    margin-bottom: 0 !important;
    background-color: white !important;
  }
  .stock_list_table td,
  .stock_list_table th,
  .stock_history_table td,
  .stock_history_table th{
    vertical-align: middle;
  }


  .stock_list_table td:not(:first-child),
  .stock_history_table td:not(:first-child) {
    text-align:center;
  }

  .link_stock_name::before{
    content: "";
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-size: contain;
    vertical-align: middle;
    margin-right: 3px;
  }

  .pc_text {
    display: block;
    font-weight: bold;
    margin-bottom: 5px !important;
  }
  .sp_text { display: none; }

  .buy_stock_table_pc_text {
    display: block;
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
  }


  .scroll-arrow-l,
  .scroll-arrow-r {
    display: none;
  }


  .bootstrap .buy_stock_table th{
    vertical-align: middle;
    text-align: center;
    font-size: 120%;
    font-weight: bold;
    background-color:#f7f7f7 !important;
  }

  .bootstrap .buy_stock_table td{
    vertical-align: middle;
    background-color:white !important;
  }

  .bootstrap .buy_stock_table td:nth-child(1){
    width:  80px;
    text-align: center;
  }

  .bootstrap .buy_stock_table td:nth-child(2){
    text-align: center;
  }
  .bootstrap .buy_stock_table td:nth-child(3){
    width:  100px;
    text-align: center;
  }
  .bootstrap .buy_stock_table td:nth-child(4){
    width:  100px;
    text-align: center;
  }

  .bootstrap .buy_confirm_table th{
    background-color: #f7f7f7 !important;
  }
  .bootstrap .buy_confirm_table td{
    background-color: white !important;
  }

  .sell_confirm_table th{
    background-color: #f7f7f7 !important;
  }
  .sell_confirm_table td{
    background-color: white !important;
  }

  /*購入ページ*/
  .td_caution_code {
    padding-right: 200px;
  }

  #search_form select option:first-child
  {
    color: blue
  }

  @media screen and (max-width: 850px) {

    #mypage-navi {
      width: 100%;
    }
    #mypage-navi li {
      min-width: 70px;
    }
    #mypage-navi li span {
      font-size: 12px;
      display: inline-block;
    }
  }

  @media screen and (max-width: 480px) {

    #mypage-navi {
      width: 100%;
    }
    #mypage-navi li {
      padding: 0;
    }

    #mypage-navi li span {
      display: inline-block;
      font-size: 9px;
    }
    #mypage-navi {
      width: 100%;
    }
    #mypage-navi li {
      padding: 0;
    }

    #mypage-navi li span {
      display: inline-block;
      font-size: 9px;
      min-width: 70px
    }

    .stock_list_table th:first-child,
    .stock_history_table th:first-child {
      width: 150px;
      padding: 0 5px;;
    }


    .pc_text { display: none; }
    .buy_stock_table_pc_text  { display: none; }
    .sp_text {
      display: block;
      font-size: 120%;
      font-weight: bold;
    }

    .sticky_box table{
      width: 640px !important;
      border-collapse: separate;
      margin: 0;
    }

    /* スクロールバーの設定 */
    /*バーの太さ*/
    .sticky_box::-webkit-scrollbar{
      width: 8px; height:8px;
    }
    /*バーの背景色*/
    .sticky_box::-webkit-scrollbar-track{
      background:#dddddd;
    }
    /*バーの色*/
    .sticky_box::-webkit-scrollbar-thumb{
      background:#aaaaaa;
      border-radius: 30px;
    }

    .scroll-table-box {
      position: relative;
    }
    .scroll-arrow-l,
    .scroll-arrow-r {
      position: absolute;
      z-index: 5;
      display: block;
    }

    .scroll-arrow-l {
      top: 1.2em;
      left: 185px;
    }
    .scroll-arrow-r {
      top: 1.2em;
      right: 15px;
    }

    #ranking_box > .scroll-arrow-l {
      top: 0.85em;
      left: 115px;
    }
    #ranking_box >.scroll-arrow-r {
      top: 0.85em;
      right: 15px;
    }

    .sticky_box > .ranking_table {
      width: 700px !important;
    }
    .ranking_table tr th:first-child {
      width: 80px;
    }
    .ranking_table tr th:nth-child(2) {
      padding-left: 20px;
    }

    .scroll-arrow-l::before,
    .scroll-arrow-r::before {
      position: absolute;
      width: 0px;
      height: 0px;
      border: 0.3em solid transparent;
      content: "";
    }

    .scroll-arrow-l::before {
      border-right: 0.8em solid black;
    }

    .scroll-arrow-r::before {
      border-left: 0.8em solid black;
    }

    .bootstrap .buy_stock_table td:nth-child(1){
      width:  60px;
      text-align: center;
    }

    .bootstrap .buy_stock_table td:nth-child(2){
      width:  200px;
      text-align: left;
    }
    .bootstrap .buy_stock_table td:nth-child(2) .sp_text div{
      margin-top: 5px;
      text-align: right;
    }

    .bootstrap .buy_stock_table td:nth-child(3),
    .bootstrap .buy_stock_table th:nth-child(3) {
      display:none;
    }

    .bootstrap .buy_stock_table td:nth-child(4){
      width:  80px;
    }

    .bootstrap .buy_confirm_table th{
      background-color: #f7f7f7 !important;
    }

    /*購入ページ*/
    .td_caution_code {
      padding-right: 0px;
    }

  }



/*未読 */
.no_read {
  margin-left: 1.0em;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.6em;
  color: white;
  background-color: #C44;
}

.notification_alert{
  animation: flash 1s linear infinite;
  text-align: center;
  padding: 5px;
  margin-bottom: 0 !important;
  color: red;
  font-weight: bold;
}

@keyframes flash {
  0%,100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

#notification_box dl {
  border:1px solid #dee2e6; padding: 5px;
}
#notification_box dl dd{
  padding-left: 5px;
}

#entry-form a.btn_01 {
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	margin: auto;
	padding: 0.5rem 1rem;
	font-weight: bold;
	border: 1px solid gray;
	color: black;
	border-radius: 8px;
	background-color: #ffb3b3;
}
#entry-form a.btn_01:hover {
/*
	color: #fff;
	background: #27acd9;
*/}

.mypage_buy_title{
  position: relative;
}
.mypage_buy_title button{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
}

.mirakin_banner{
  position:absolute;
  right: 0;
  top: 0;
}

@media screen and (max-width: 480px) {
  .mypage_buy_title button{
    position: absolute;
    top: 0;
    transform: translateX(0%);
    -webkit-transform: translateX(0%);
    -ms-transform: translateX(0%);
    left: auto;
    right: 0;
  }

  .mirakin_banner{
    position: relative;
    text-align: center;
    padding: 10px 0 5px;
  }

}


.stock_list_table th,
.stock_history_table th{
  text-align: center !important;
}

.btn-mini1{
  padding: 5px !important;
  font-size: 90% !important;
}
.btn-mini2{
  padding: 5px 10px !important;
  font-size: 90% !important;
}