@charset "UTF-8";
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, tbody, tfoot, thead, tr, th, td,
article, canvas, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
     margin:0;
     padding:0;
     border:0;
     outline:0;
     font-size:100%;
     font-weight: normal;
     vertical-align:baseline;
     background:transparent;
     list-style: none;
}
a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}
body {
    background-color: #4f4f4f;
    /*background-color: #1f1b1b;*/
    color: rgb(51,51,51);
    font-family: "ヒラギノ角ゴ ProN W3", arial, "Hiragino Kaku Gothic ProN", "Meiryo", "メイリオ", sans-serif;
    text-shadow: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.c-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
dt{
    background: snow;
    width: 20%;
    padding: 10px;
    /*box-sizing: border-box;*/
}
#wrapper {
    width: 100%;
}
.today-race-now {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}
.today-race-now > dl {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.today-race-now dl > dt {
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    background: none;
}
.today-race-now > dd {
    display: block;
    background: none;
    
}
.race-num, .closing {
    margin: 0;
    font-size: small;
    color: dimgrey;
    width: 100%;
    text-align: center;
}
#start-time {
    margin: 10px;
    color: ghostwhite;
}
#race-info {
    margin: 15px;
    color: ghostwhite;
}
.light-mode #race-info {
    color: #070700; /* Ghostwhiteの補色 */
}
#race-notice {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#race-notice > dl {
    width: 100%;
    box-sizing: border-box;
    padding: 0 18px;
    color: antiquewhite;
}
.light-mode #race-notice > dl {
    color: #ff3838;
}
#race-notice > dl > dt {
    width: 100%;
    background: none;
    padding: 0;
}
#horse-data > dd, .db > dl > dd{
  margin: 0;
  
  /*box-sizing: border-box;*/
  padding: 5px;
}
#horse-data dd {
    flex-shrink: 0;
    background: #454545;
    color: ghostwhite;
}
.light-mode #horse-data dd {
    background: #ffffff;
    color: #070700; /* Ghostwhiteの補色 */
}
.race-list-head-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
#race-course-number-disp {
    width: 90%;
    display: flex;
    align-content: center;
    justify-content: flex-start;
    flex-direction: column-reverse;
}
.course-race {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: ghostwhite;
    padding: 0;
    width: 70px;
    height: 70px;
}
.light-mode .course-race {
    background: black;
}
.course-race > li {
    color: #4f4f4f;
}
.light-mode .course-race > li {
    color: #ffffff;
}
#race-list {
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}
#race-list ul {
    margin: 10 0;
}
#race-list li {
    display: block;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    width: 50px;
    line-height: 30px;
    text-align: center;
    margin-right: 5px;
}
#race-list li a {
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: block;
    width: 100%;
}
.choice-race {

}
.choice-race > span {
    display: block;
    width: 100%;
    text-align: center;
}
.choice-race > span:first-child {
    font-weight: 600;
    background: slategray;
}
.light-mode .choice-race > span:first-child {
    background: #454545;
}
.result > span:first-child {
    background: lightgray;
}
.light-mode .result > span:first-child {
    background: lightgray;
}
.select-active > span:first-child {
    background: white;
    color: darkgrey;
}
.light-mode .select-active > span:first-child {
    color: #000000;
}
.track-group {
    display: flex;
    justify-content: flex-start; 
}
.track-group > li {
    background: slategray;
}
.light-mode .track-group > li {
    background: #454545;
}
.track-group > .select-active {
    outline: 1px solid darkgray;
    background: white;
    color: darkgrey;
}
.light-mode .track-group > .select-active {
    outline: 2px solid #000000;
    background: white;
}
.select-active {
    color: darkgrey;
}
.light-mode .select-active {
    color: #000000;
}
.select-active > span:first-child {
    outline: 2px solid darkgray;
    /*box-sizing: border-box;*/
    width: 100%;
    display: block;
}
.light-mode .select-active > span:first-child {
    outline: 2px solid #000000;
    background-color: #ffffff;
}
.race {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.start {
    display: inline-block;
    width: 100%;
    background-color: #4f4f4f;
    color: ghostwhite;
    font-weight: 300;
    font-size: small;
}
.light-mode .start {
    background-color: #ffffff;
    color: ghostwhite;
    color: #070700;
}

.change {
    color: crimson;
}
.change::after {
    content: "※変更";
    font-size: 11px;
}
.course {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.number {
    font-size: 22px;
    font-weight: 700;
    color: white;
}




.changed {
    color: crimson;
}




#horse-data {
    margin: 0 auto;
    padding: 0;
    border-collapse: collapse;
    overflow: auto;
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 66px;
    margin-right: 10px;
}
#horse-data > dl {
    width: 100%;
    display: flex;
    height: 57px;
}
#horse-data > dt, #horse-data > dd{
    padding: 5px;
}
#horse-data dl dt {
    height: 57px;
}
#horse-data dl dt:first-child {
    width: 56px;
    position: absolute;
    left: 10px;
}
#horse-data button {
    border: none;
    background: none;
    /*color: goldenrod;*/
    padding: 0;
    font-size: 16px;
}
#horse-data button:after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("../content/svg/arrow_down.svg");
    background-size: contain;
    background-repeat: no-repeat;
}
body.light-mode #horse-data button:after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("../content/svg/arrow_down_light.svg");
}
#horse-data dt{
    flex-shrink: 0;
}
#horse-data dd{
    flex-shrink: 0;
}
.info-draw, .info-basic-data, .info-jockey, .info-trainer, .info-sp, .info-corner-position, .info-result-ranking, .info-popu-odds {
    /*border-top: 1px solid dimgray;
    border-bottom: 1px solid dimgray;*/
    border-right: 1px solid dimgray;
    display: flex;
    height: 59px;
    padding: 0;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-direction: column;
    color: white;
    background: #404040;
}
/* ライトモードのスタイル */
.light-mode .info-draw, 
.light-mode .info-basic-data, 
.light-mode .info-jockey, 
.light-mode .info-trainer, 
.light-mode .info-sp, 
.light-mode .info-corner-position, 
.light-mode .info-result-ranking, 
.light-mode .info-popu-odds {
    color: black;
    background: #f0f0f0;
    border-top: 2px solid;
    border-bottom: 1px solid;
    z-index: 1;
}
.info-draw {
    height: 56px;
    border-left: 1px solid dimgray;
}
.info-basic-data, .basic-data {
    width: 200px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}
.info-basic-data {
    width: 240px;
}
.jockey, .trainer {
    width: 80px;
}
.info-jockey,  .info-trainer{
    width: 90px;
}
.info-sp, .sp {
    width: 30px;
}
.info-corner-position {
    width: 300px;
    border-right: 0 none;
}
.corner-position {
    width: 300px;
}
.info-popu-odds {
    width: 44px;
}
.info-result-ranking, .result-rank {
    width: 15px;
}
.info-result-ranking > li{
    text-align: center;
}
.sort-number, .sort-trainer, .sort-sp, .sort-time, .sort-finish, .sort_time {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50%;
}
.sort-number, .sort-trainer, .sort-sp, .sort-time, .sort-finish, .sort_time button{
    width: 100%;
    height: 35%;
}
.this-sort {
    background: #ffbf16;
    color: black;
}
.light-mode .this-sort {
    background: #ffbf16;
    color: black;
}
.info-draw, .draw {
    padding: 0;
}

.draw {
    background: #4f4f4f;
    border-bottom: 1px solid dimgray;
    border-right: 1px solid dimgray;
    border-left: 1px solid dimgray;
    width: 5%;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55.5px !important;
    margin-top: 0.5px;
}
.light-mode .draw {
    background: #ffffff;
}
.draw li{
    list-style: none; 
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
}
.basic-data {
    border-bottom: 1px solid dimgray;
    border-right: 1px solid dimgray;
    /*box-sizing: border-box;*/
    padding: 6px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}
.jockey, .trainer {
    border-bottom: 1px solid dimgray;
    border-right: 1px solid dimgray;
    /*box-sizing: border-box;*/
    white-space: nowrap;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 5px;
}
.jockey li, .trainer li{
    width: 100%;
}
.prize {
    float: right;
    font-style: italic;
}
.sp {
    border-bottom: 1px solid dimgray;
    border-right: 1px solid dimgray;
    /*box-sizing: border-box;*/
    white-space: nowrap;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}
.sp {
    display: flex;
    justify-content: space-around;
}
.sp li{
    width: 100%;
    text-align: center;
}
.info-result-ranking > li {
    text-align: center;
    display: flex;
    align-items: center;
    writing-mode: vertical-rl;
}
.rank {
    white-space: pre-wrap !important;
}
.rank-100 {
    text-align: center;
    writing-mode: vertical-rl;
}


.rank-1 {
    background: #ffd700 !important;
    color: black !important;
}
.rank-2 {
    background: #aaa9ad !important;
}
.rank-3 {
    background: #ac6b25 !important;
}
.sp.rank-4 {
    background: #6495ed !important;
}
.horse-name{
    white-space: nowrap;
}
.gender-age{
    width: 45%;
}
.horse_sex{
    color: white;
    font-size:11px;
    text-align:center; 
    float: left;
    height:18px;  
    width:18px;  
    border-radius:50%;  
    line-height:18px;
    margin-right: 12px;
}
.sex-code-1{
    background:royalblue;
}
.sex-code-2{
    background:tan;
}
.sex-code-3{
    background:hotpink;
}
.horse_age{
    font-size:11px;
}


.odds-disp {
    width: 44px;
    background: white;
    border-bottom: 1px solid dimgray;
    border-right: 1px solid dimgray;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
}
.odds-disp > span{
    display: block;
    padding-right: 5px;
    overflow: hidden;
    white-space: nowrap;
}
.horse_num{
    float: left;
    height:30px;  
    width:30px;  
    border-radius:50%;  
    line-height:30px;  
    text-align:center; 
    font-size:14px;
    color: white;
}
.db .bracket-1 {
    border: 1px solid dimgrey;
}
.bracket-1 {
    color: black;
    border: 1px solid darkgray;
    background: white;
}
.bracket-2{
    background:black;
}
.bracket-3{
    background:red;
}
.bracket-4{
    background:dodgerblue;
}
.bracket-5{
    color: black;
    background:moccasin;
}
.light-mode .bracket-5{
    background: #ffd32b;
}
.bracket-6{ 
    background:green; 
}
.bracket-7{
    background:coral;
}
.bracket-8{
    background:hotpink;
}
.corner-position {
    border-bottom: 1px solid dimgray;
    /*border-right: 1px solid dimgray;*/
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: white;
}
.result-rank {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    border-bottom: 1px solid dimgray;
    border-right: 1px solid dimgray;
}
.result-rank > li {
    text-align: center;
}


.db {
    width: 100%;
    display: flex;
    color: ghostwhite;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 30px;
}

.db dl{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: none;
}
.db dt, .db dd{
    border-top: 1px solid silver;
    border-left: 1px solid silver;
}
#superiority-horse, #superiority-course {
    /*border-top: 1px solid silver;*/
    width: 94%;
}
.db > dt:last-child {
    border-bottom: 1px solid silver;
}
#superiority-horse dt, #superiority-course dt{
    background: #404040;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 44%;
}
.light-mode #superiority-horse dt, .light-mode #superiority-course dt{
    background: #f0f0f0;
    color: #000000;
    font-weight: 800;
}
.db dl > dd > li {
    margin-right: 4px;
}


/*
#superiority-course dt{
    font-size: 12px;
    width: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
*/
#superiority-horse dd, #superiority-course dd {
    width: 40%;
    display: flex;
    justify-content: flex-start;;
    align-items: center;
    border-right: 1px solid silver;
}
/*
#superiority-course dd{
    width: 50%;
    display: flex;
    justify-content: flex-start;;
    align-items: center;
    border-right: 1px solid silver;
}
*/
#superiority-horse dt:last-of-type, #superiority-horse dd:last-of-type{
    /*border-bottom: 1px solid silver;*/
}
#superiority-course dt:last-of-type, #superiority-course dd:last-of-type{
    border-bottom: 1px solid silver;
}


.member-db {
    display: flex;
    /*flex-direction: row;*/
    flex-direction: column;
    /*flex-wrap: nowrap;*/
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: 20 0 20 0;
}

.member-db img {
    max-width: 300px;
    display: block;
    margin-top: 20px;
}

.member-db　img[src$=".gif"] {
    width: 1px;
    height: auto;
}

.member-db img[src^="data:image/jpeg;base64/"],
.member-db img[src^="data:image/jpg;base64/"] {
    /*width: 80%;
    max-width: 200px;
    display: block;*/
}



/*払戻金*/
#payoff-layout {
    margin-top: 40px;
    width: 100%;
    color: ghostwhite;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}
.light-mode #payoff-layout {
    color: #000000;
    font-weight: 900;
}
.refund_unit {
    display: flex;
    width: 98%;
    align-content: center;
    align-items: center;
    flex-direction: column;
}
.refund_unit dt{
    background: #404040;
}
.light-mode .refund_unit dt{
    background: #ffffff;
}
.left, .right {
    width: 100%;
}
.refund_unit > div > ul {
    display: flex;
    flex-direction: column;
    background: #404040;
    border-left: 1px solid silver;
}
.light-mode .refund_unit > div > ul {
    background: #ffffff;
    border-left: 1px solid #000000;
}
.refund_unit > div > ul > li > dl {
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid silver;
}
.light-mode .refund_unit > div > ul > li > dl {
    border-bottom: 1px solid #000000;
}
.refund_unit > div.left > ul > li:first-child {
    border-top: 1px solid silver;
}
.light-mode .refund_unit > div.left > ul > li:first-child {
    border-top: 1px solid #000000;
}
.refund_unit > div > ul > li > dl > dt {
    width: 16%;
    font-size: 14px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.refund_unit > div > ul > li > dl > dd {
    width: 84%;
    background: #454545;
}
.light-mode .refund_unit > div > ul > li > dl > dd {
    background: #ffffff;
}
.line {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-left: 1px solid silver;
}
.light-mode .line {
    border-left: 1px solid #000000;
}
.num, .payoff, .pop {
    width: 30%;
    height: 33px;
    display: flex;
    align-items: center;
    border-right: 1px solid silver;
}
.light-mode .num, 
.light-mode .payoff, 
.light-mode .pop {
    border-right: 1px solid #000000;
}
.num {
    width: 26%;
    justify-content: center;
}
.payoff, .pop {
    justify-content: flex-end;
    padding-right: 7px;
}
#payoff-layout > .bottom {
    margin: 10px;
    font-size: small;
}
 
/*
#payoff-layout {
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    display: flex;
    flex-direction: column;
}
#payoff-layout .refund_unit {
    display: flex;
    margin: 10px;
    align-content: space-around;
    flex-direction: column;
}
#payoff-layout .refund_unit > div > ul > li > dl > dt {
    display: table-cell;
    vertical-align: middle;
    width: 90%;
    font-weight: bold;
    text-align: center;
    background-color: #eaeade;
    color: #444;
    border-right: 2px solid #dfdfd3;
    padding: 2px 4px;
    border-left: 1px solid #ccc;
    width: 60px;
    width: 52px;
    padding: 3px 4px;
}
div.refund_unit dl, .refund_unit dt, .refund_unit dd, .refund_unit ul, .refund_unit li, .refund_unit table {
    margin: 0;
    padding: 0 !important;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}
div.refund_unit > div {
    display: table-cell;
    vertical-align: top;
    width: 100%;
}
.left > ul {
    border-top: 1px solid #ccc;
}
div.refund_unit > div > ul {
    /*border-top: 1px solid #ccc;*/
/*
}
div.refund_unit > div > ul > li > dl {
    display: table;
    width: 100%;
    border-bottom: 1px solid #ccc;
}
div.refund_unit > div > ul > li > dl > dd {
    display: table-cell;
    vertical-align: middle;
    padding: 5px;
    background-color: #f7f7f7;
    font-size: 12px;
}
div.refund_unit > div > ul > li.place > dl > dd > .line, div.refund_unit > div > ul > li.wide > dl > dd > .line {
    border-bottom: 1px dashed #ccc;
}
div.refund_unit > div > ul > li > dl > dd > .line {
    display: table;
    width: 100%;
    border-bottom: 1px dashed #ccc;
}
div.refund_unit > div > ul > li > dl > dd > .line > div {
    display: table-cell;
    vertical-align: middle;
    padding: 2px 4px;
    border-right: 1px solid #ccc;
    padding: 3px 4px;
    min-height: 25px;
}
div.refund_unit > div > ul > li > dl > dd > .line > .num {
    max-width: 70px;
    text-align: center;
    width: 25%;
}
div.refund_unit > div > ul > li > dl > dd > .line > .payoff {
    width: 35%;
    text-align: right;
}
div.refund_unit > div > ul > li > dl > dd > .line > .pop {
    width: 30%;
    text-align: right;
}
div.refund_unit > div > ul > li> dl > dd > .line:last-child {
    border-bottom: none;
}
.line {
    border-bottom: none;
}
.bottom {
    width: 100%;
    text-align: center;
    margin: 0;
}
.bottom > p:before{
    content: "※";
}
*/

/**/
.present {
    top: 40%;
    width: 22.6px;
    content: "";
    display: block;
    position: absolute;
    height: 15px;
    background: currentColor;
    background-image: -webkit-gradient(linear, 0 0, 100% 0, color-stop(.5, #454545), color-stop(.5, transparent), to(transparent));
    -webkit-background-size: 5px;
}
.light-mode .present {
    background-image: -webkit-gradient(linear, 0 0, 100% 0, color-stop(.5, #ffffff), color-stop(.5, transparent), to(transparent));
    -webkit-background-size: 5px;
}
.corner-position {
    position: relative;
}
.corner-position::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 100%;
    background-color: aqua;
    position: absolute;
    top: 0px;
    left: 70px;
    z-index: 5;
}
.corner-position::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 100%;
    background-color: red;
    position: absolute;
    top: 0px;
    left: 70px;
    z-index: 4;
}
.diff-minus::before {
    content: "";
    display: block;
    position: absolute;
    height: 15px;
    background-color: crimson;
    z-index: 2;
    background-image: -webkit-gradient(linear, 0 0, 100% 0, color-stop(.5, #454545), color-stop(.5, transparent), to(transparent));
    -webkit-background-size: 5px;
    top: 40%;
}
.light-mode .diff-minus::before {
    background-image: -webkit-gradient(linear, 0 0, 100% 0, color-stop(.5, #ffffff), color-stop(.5, transparent), to(transparent));
    -webkit-background-size: 5px;
    top: 40%;
}
/*
.diff-minus::before {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    background-color: darkgrey;
    z-index: 2;
}
.diff-minus::after {
    content: "";
    display: block;
    position: absolute;
    top: 45%;
    left: 0;
    width: 5px;
    height: 5px;
    border: 2px solid;
    border-color: transparent transparent darkgrey darkgrey;
    transform: rotate(45deg);
    z-index: 5;
}
*/
.finish::before {
    top: 40%;
    content: "";
    display: block;
    position: absolute;
    height: 15px;
    background: #02c36c;
    background-image: -webkit-gradient(linear, 0 0, 100% 0, color-stop(.5, #454545), color-stop(.5, transparent), to(transparent));
    -webkit-background-size: 5px;
}
.light-mode .finish::before {
    background: #02c36c;
    background-image: -webkit-gradient(linear, 0 0, 100% 0, color-stop(.3, #ffffff), color-stop(.5, transparent), to(transparent));
    -webkit-background-size: 5px;
}
/*
.finish::before{
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    background: red;
}

.finish::after{
    content: "";
    display: block;
    position: absolute;
    top: 45%;
    left: 0;
    width: 5px;
    height: 5px;
    border: 2px solid;
    border-color: transparent transparent red red;
    transform: rotate(45deg);
    z-index: 4;
}
*/
















.choice-race {
    /*background: linear-gradient(white 50%, red 50%);*/
}


/*race-table*/
.heading-line {
    width: 100%;
    display: flex;
}



@media screen and (min-width: 960px) {
	/* 960px以上に適用されるCSS（PC用） */
}

@media (min-width: 600px) {
    #horse-data {
        overflow-x: auto;
	    white-space: nowrap;
    }
}



/* デザインB（タブレット） */
@media screen and (min-width: 600px) {
    #horse-data {
        width: 100%;
    }
    #race-course-number-disp {
        justify-content: center;
        padding-left: 30px;
    }
    .sc-hint {
        display: none;
    }
}

/* デザインC(PC) */
@media screen and (min-width: 1025px) {
    #race-course-number-disp {
        justify-content: flex-start;
        align-items: center;
        flex-direction: initial;
    }
    .course-race {
        margin: 0 30px;
    }
    #race-list {
        display: flex;
        margin-inline-start: 30px;
    }
    #start-time {
        margin-top: 10px;
        margin-bottom: 15px;
        margin-left: 50px;
    }
    #race-info {
        margin-top: 15px;
    }
    #race-info > h4,  #race-info > section{
        margin-left: 50px;
    }
    #horse-data {
        margin: 0;
        width: 100%;
    }
    #horse-data > dl {
        justify-content: flex-start;
        margin-left: 50px;
    }
    #horse-data dl dt:first-child {
        position: static;
        width: 5%;
    }
    .info-draw {
        width: 5%;
    }
    .info-basic-data {
        padding: 0px 20px;
    }
    .info-basic-data, .basic-data {
        width: 20%;
        max-width: 340px;
    }
    .info-jockey,  .info-trainer {
        width: 8%;
        max-width: 100px;
        padding: 0 5px;
    }
    .jockey, .trainer {
        width: 8%;
        max-width: 100px;
    }
    .info-sp, .sp {
        width: 5%;
        max-width: 60px;
    }
    .info-corner-position {
        width: 30%;
        max-width: 460px;
    }
    .corner-position {
        width: 30%;
        max-width: 460px;
    }
    .info-popu-odds {
        width: 5%;
    }
    .odds-disp{
        width: 5%;
    }
    .odds-popu:after {
        /*content: "番人気";*/
    }
    
    .db {
        width: 80%;
        max-width: 800PX;;
        flex-direction: initial;
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 50px;
    }
    #superiority-horse, #superiority-course {
        width: 44%;
    }
    #superiority-horse dt, #superiority-course dt{
        max-width: 140px;
    }
    #superiority-horse > dd, #superiority-course > dd{
        max-width: 140px;
    }
    #superiority-horse > dt:last-of-type {
        border-bottom: 1px solid silver;
    }
    #superiority-horse > dd:last-child {
        border-bottom: 1px solid silver;
    }
    
    #prediction_container {
        width: 400px;
    }

    .predictions-box {
        width: 400px;
    }
    /*
    #payoff-layout {
        padding: 0;
        margin-top: 30px;
        margin-left: 50px;
        width: 60%;
        box-sizing: border-box;
        font-size: 12px;
        min-width: 6;
        display: flex;
        flex-direction: column;
    }
    #payoff-layout .refund_unit {
        display: table;
        width: 100%;
    }
    #payoff-layout .refund_unit > div > ul > li > dl > dt {
        display: table-cell;
        vertical-align: middle;
        width: 50px;
        font-weight: bold;
        text-align: center;
        background-color: #eaeade;
        color: #444;
        border-right: 2px solid #dfdfd3;
        padding: 2px 4px;
        border-left: 1px solid #ccc;
        width: 60px;
        width: 52px;
        padding: 3px 4px;
    }
    div.refund_unit dl, .refund_unit dt, .refund_unit dd, .refund_unit ul, .refund_unit li, .refund_unit table {
        margin: 0;
        padding: 0 !important;
        border: 0;
        font-size: 100%;
        font: inherit;
        vertical-align: baseline;
    }
    div.refund_unit > div {
        display: table-cell;
        vertical-align: top;
        width: 50%;
    }
    div.refund_unit > div > ul {
        border-top: 1px solid #ccc;
    }
    div.refund_unit > div > ul > li > dl {
        display: table;
        width: 100%;
        border-bottom: 1px solid #ccc;
    }
    div.refund_unit > div > ul > li > dl > dd {
        display: table-cell;
        vertical-align: middle;
        padding: 5px;
        background-color: #f7f7f7;
        font-size: 12px;
    }
    div.refund_unit > div > ul > li.place > dl > dd > .line, div.refund_unit > div > ul > li.wide > dl > dd > .line {
        border-bottom: 1px dashed #ccc;
    }
    div.refund_unit > div > ul > li > dl > dd > .line {
        display: table;
        width: 100%;
        border-bottom: 1px dashed #ccc;
    }
    div.refund_unit > div > ul > li > dl > dd > .line > div {
        display: table-cell;
        vertical-align: middle;
        padding: 2px 4px;
        border-right: 1px solid #ccc;
        padding: 3px 4px;
        min-height: 25px;
    }
    div.refund_unit > div > ul > li > dl > dd > .line > .num {
        max-width: 70px;
        text-align: center;
        width: 25%;
    }
    div.refund_unit > div > ul > li > dl > dd > .line > .payoff {
        width: 100px;
        text-align: right;
    }
    div.refund_unit > div > ul > li > dl > dd > .line > .pop {
        width: 40%;
        max-width: 80px;
        text-align: right;
    }
    div.refund_unit > div > ul > li> dl > dd > .line:last-child {
        border-bottom: none;
    }
*/
}

#prediction_container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 30px;
    
}

.predictions-box {
    width: 70%;
    max-width: 600px;
}

.predictions-title {
    display: flex;
    height: 20px;
    border-bottom: 2px solid ghostwhite;
    font-weight: 700;
    padding-bottom: 3px;
    margin-bottom: 10px;
    color: whitesmoke;
}
.light-mode .predictions-title {
    color: #292929;
    border-bottom: 2px solid #292929;
}
.predictions-t-area {
    display: flex;
    flex-direction: column;
    margin-left: 6px;
    margin-bottom: 10px;
}

.predictions-tb-box {
    width: 30px;
    height: 30px;
    background: whitesmoke;
    border-radius: 50%;
    background-image: url("/content/svg/robot.svg");
    background-size: 26px 26px;
    background-repeat: no-repeat;
    background-position: 50%;
}

.predictions-tb-box::after {
    /*
    content: "BOOKERS";
    color: #009688;
    top: 7px;
    position: relative;
    left: 40px;
    font-size: 13px;
    */
    content: "";
    background-image: url("https://bookers.tech/static/logo.png");
    display: inline-block;
    height: 30px;
    width: 100px;
    vertical-align: middle;
    background-size: contain;
    position: relative;
    left: 36px;
}

.predictions-tn-box {
    width: 30px;
    height: 30px;
    background: whitesmoke;
    border-radius: 50%;
    background-image: url("/content/svg/brain.svg");
    background-size: 26px 26px;
    background-repeat: no-repeat;
    background-position: 50%;
}


.predictions-tn-box::after {
    /*
    content: "note";
    color: black;
    top: 5px;
    position: relative;
    left: 40px;
    font-size: 16px;
    */
    content: "";
    background-image: url("/content/svg/note.svg");
    display: inline-block;
    height: 13px;
    width: 58px;
    vertical-align: middle;
    background-size: contain;
    position: relative;
    top: 8px;
    left: 36px;
    background-repeat: no-repeat;
}

.info-text-line {
    padding: 3px;
    font-weight: bold;
    font-size: 13px;
    color: ghostwhite;
}
.light-mode .info-text-line {
    color: #333333;
}
.sp-table-area {
    /*
    display: block;
    height: 70px;
    background-position: -100px  62%;
    border-radius: 0.5vh;
    margin-bottom: 10px;
    max-width: 400px;
    */
}

.sp-table-area-b {
    display: block;
    height: 160px;
    border-radius: 0.5vh;
    margin-bottom: 10px;
    max-width: 210px;
    width: 210px;
    background-repeat: no-repeat;
    background-color: white;
    position: revert;
    margin-left: 90px;
    background-size: 85%;
    background-color: #dcdcdc;
    background-position: 6px;
}


.sp-table-area-n {
    display: block;
    height: 70px;
    border-radius: 0.5vh;
    margin-bottom: 10px;
    max-width: 400px;
}
/*
.btn-box {
    float: right;
    width: 180px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid darkgray;
    border-radius: 2vh;
    box-shadow: inset 0 1px 0 0 #FFFFFF;
    background-image: linear-gradient(180deg, #F9F9F9 0%, #cfcfcf 100%);
}
*/
.btn-box {
    float: right;
    width: 180px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /*border: 1px solid #778787;*/
    border-radius: 5vh;
    /*box-shadow: inset 0 1px 0 0 orange;*/
    background-image: linear-gradient(180deg, mediumseagreen 0%, mediumseagreen 100%);
}


#prediction_container a {
    width: 100%;
    display: block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    margin: auto;
    padding: 1rem 0;
    /*background-image: url("/content/svg/out_link.svg");
    background-repeat: no-repeat;
    background-size: 8%;*/
    background-position: top 43% right 4%;
    color: ghostwhite;
    border-radius: 5vh;
    font-size: 11px;
}
	


#topic-layout {
    padding: 10px;
}

#topic-layout li {
    margin-bottom: 10px;
}

.article-box a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ebebeb;
}
.light-mode .article-box a {
    color: #292929;
}

.text-box-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    height: 160px;
    justify-content: space-evenly;
    margin-left: 7px;
}

.text-box-area h3 {
    font-size: medium;
    font-weight: 700;
}


.text-small {
    margin: 0 0 0 auto;
    font-size: small;
}

/*page_ander*/
.share-btn-container {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-btn-container a {
    display: block;
    width: 30px;
    height: 30px;
}
.share-btn-container > .tw-link {
    background-image: url("/content/svg/twitter.svg");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top 5% left 5%;
}


#chart-area, #r-chart-area{
    position: fixed;
    top: 30px;
    width: 100%;
    display: flex;
    height: 300px;
    align-content: center;
    align-items: center;
    justify-content: space-around;
    background-color: #ffffff;
    z-index: 999;
}

@media (min-width: 1200px) {
    #chart-area, #r-chart-area {
        top: 200px;
        left: 500px;
        width: 45%;
    }
    
    #r-chart-area {
        left: 700px;
        width: 45%;
    }
}

/*custamaize form*/
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-right: 10px;
}
.toggle-switch input {
    display: none;
}
.c-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.c-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .c-slider {
    background-color: #2196F3;
}
input:checked + .c-slider:before {
    transform: translateX(16px);
}
/* アカデミックなボタンスタイル */
.academic-button {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.academic-button:hover {
    background-color: #fff;
    color: #333;
    border-color: #333;
}

/* 横並び用のスタイル */
.checkbox-container {
    margin-top: 15px;
    margin-left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #ffffff;
    background: #636363;
    padding: 10px;
    border-radius: 20px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex: 1 1 calc(50% - 10px); /* 1行に最大4つ */
    min-width: calc(25% - 10px);
}
.checkbox-item label {
    cursor: pointer; /* ラベルをクリック可能に */
    /*margin-left: 10px;*/
}

/* フォーム全体のスタイル */
.form-container {
    position: relative;
    padding: 10px;
}
.form-container h3{
    text-align: center;
    color: #fff;
}
.submit-button-container {
    text-align: right; /* 右下に配置 */
    margin-top: 20px;
}
#custom-form-area {
    display: flex;
    justify-content: center;
}


/*table*/
.gray-cell {
    background-color: #313131;
}
.dubble-win-cell {
    background-color: #ffe59c;
}
.win-cell {
    background-color: #c0f9ff;
}
.dubble-loss {
    background-color: #dddddd;
}
.loss {
    background-color: #bdb8b8;
}
.neutral {
    background-color: #ffffff;
}
.button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.button-container button {
    background-color: white;
    border: 1px solid gray;
    border-radius: 5px;
    padding: 10px;
    margin-left: 10px;
    cursor: pointer;
}
.button-container button:hover {
    background-color: #f0f0f0;
}
.table-container {
    overflow-x: auto;
}
@media screen and (min-width: 1025px) {
    #ex-data > table {
        margin-left: 50px;
    }
}

#ex-data {
    margin: 0 auto;
    padding: 0;
    border-collapse: collapse;
    overflow: auto;
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 10px;
    margin-right: 10px;
}

table {
    font-size: 10px;
    border-collapse: collapse;
    width: 100%;
    /*height: 100%;*/
    table-layout: fixed;
}
tr {
    height: 57px; 
}
th, td {
    border-collapse: collapse;
    padding: 8px;
    text-align: center;
    width: 100px;
    vertical-align: middle;
}
.waku {
    width: 18px;
    height: 45px;
    text-align: center;
    vertical-align: middle;
    color: white;
}
.data-cell {
    padding: 0;
    width: 100%;
    height: 97%;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-collapse: collapse;
}
.data-cell > div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
}

.data-cell > div > div {
    text-align: left;
    padding: 8px;
}
.data-cell > div > span {
    width: 40%;
}
th {
    background-color: #ffffff;
    border: 1px solid #ddd;
    font-weight: normal;
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100px;
    border-top: 2px solid;
}
.sticky-col {
    padding: 3px;
    text-align: left;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    background-color: #ffffff;
    z-index: 3;
    width: 100px;
    transition: width 0.3s ease;
    border-right: 1px solid #666;
}
.sticky-col.popu-t {
    width: 160px !important;
}
.sticky-col > div {
    display: table-cell;
    padding: 3px;
    vertical-align: middle;
    border: 5px solid white;
}
.t-d-name {
    width: 100px;
}
.sticky-col .bracket-1 {
    background-color: #ededed;
    color: black;
}
.sticky-col .bracket-5 {
    color: black;
}
.under2 {
    color: #ff0b0b;
}
#oddsRangeTable td:nth-child(2) {
    background-color: #ffeaea;
}
#oddsRangeTable td:nth-child(3) {
    background-color: #fff8f8;
}
#oddsRangeTable td:nth-child(4) {
    background-color: #f9f9f9;
}
#oddsRangeTable td:nth-child(5) {
    background-color: #f9f9f9;
}
#oddsRangeTable td:nth-child(6) {
    background-color: #edfaff;
}
#oddsRangeTable td:nth-child(7) {
    background-color: #ddfaff;
}

.explanation-container {
    display: flex;
    justify-content: flex-end;
    word-wrap: break-word; /* 折り返しを有効にする */
      word-break: break-all; /* 折り返しを有効にする */
      overflow-wrap: break-word; /* 折り返しを有効にする */
}

.table-explanation {
    margin-top: 10px;
    color: white;
    text-align: left;
    font-size: xx-small;
    font-size: 8px;
    max-width: 330px;
    white-space: normal;
}
.light-mode .table-explanation {
    color: #292929;
}
    
/**/
.guide-register {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.register-msg {
    display: flex;
    flex-direction: column;
    width: 260px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
}

.register-msg p {
    font-size: 12px;
}

.button {
    width: 80%;
    display: inline-block;
    padding: 5px 16px;
    background-color: #19d26f;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 5px;
}

.button:hover {
    background-color: #0056b3;
}
    
/* 各AI予想ブロック */
.AI-area .ai-block {
    border-radius: 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* 見出し */
.AI-area .ai-block h2 {
    margin: 10px;
    font-size: 1.2em;
    text-align: center;
}

/* テーブル */
.AI-area .ai-block table {
    border-collapse: collapse;
    width: 100%;
    max-width: 400px;
    flex: 1 1 300px;
}

.AI-area th {
    background-color: #eceff1;
    color: #37474f;
    font-weight: bold;
    text-align: center;
    padding: 8px;
}

.AI-area td {
    font-size: 16px;
    text-align: center;
    padding: 6px;
    /*border: 1px solid #cfd8dc;*/
}

.ai-block table {
  border-collapse: collapse; /* 枠の余白をなくす場合 */
}

.ai-block td:nth-child(1) {
  width: 20px;   /* ◎ ○ ▲ ☆ の列 */
  text-align: center;
}

.ai-block td:nth-child(2) {
  width: 20px;   /* 馬番の列 */
  text-align: center;
}

.ai-block td:nth-child(3) {
  white-space: nowrap; /* 折り返しを防ぎ、中身の長さに合わせる */
  text-align: left;    /* 左寄せ */
  padding-left: 6px;
}

.ai-block td:nth-child(4) {
  width: 20px;   /* 馬番の列 */
  text-align: center;
}

/* 親コンテナ flex */
.AI-area {
    /*background-color: #f8f9fa;*/
    color: #37474f;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* youtube埋め込みレスポンシブ用ラッパー */
/* 埋め込み動画をレスポンシブに */
.embed-area {
    margin-top: 30px;
    position: relative;
    width: 100%;
    max-width: 560px; /* 任意で変更 */
    aspect-ratio: 16/9; /* 動画比率固定 */
    overflow: hidden;
    border-radius: 8px; /* 好きな丸み */
    background: #000;   /* 読み込み前の背景 */
}

/* iframe を親に合わせる */
.embed-area iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9比率 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}
.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* スマホ縦並び */
@media (max-width: 768px) {
    .AI-area {
        flex-direction: column;
        align-items: center;
    }

    .AI-area .ai-block table {
        max-width: 90%;
    }
}
