@charset "UTF-8";

/*　サブタイトル　*/

.section-title{
    margin-bottom: 0;
}

.section-title:before {
    content: "";
    display: inline-block;
    background-image: url("../../images/icon_autorace_title.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

@media (min-width: 992px){
    .section-title:before {
        height: 1.7rem;
        width: 3rem;
    }

    .section-title{
        padding-left: 3.3rem;
    }

    .section-title.half-contents{
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {
    .section-title:before {
        height: 1.6rem;
        width: 1.7rem;
    }

    .section-title {
        padding-left: 2rem;
    }
}

/*　コンテンツ枠　*/

.autorace-contents {
    background-color: rgba(246,246,246,0.75);
    border-radius: 8px;
    box-shadow: 2px 2px 2px #afafaf;
    display: flex;
}

.autorace-contents{
    padding: 15px 0 15px 0;
}

.section-bundle{
    margin-bottom: 4rem;
}

@media (max-width: 575px) {
    .autorace-contents {
        padding: 2.5% 2.5% 2.5% 2.5%;
        margin: 0 2.5% 0 2.5%;
    }
}

/*　本日の場外発売　*/
.day-info {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

.today-open{
    margin: 0;
}

.today-date-y, .today-date-md, .today-open, .text-opentime {
    font-size: 1.6rem;
}

.today-date-y{
    margin-right: 0;
}

.today-date-dow {
    padding: 2px 2px;
    font-size: 1rem;
    height: 20px;
    line-height: 12px;
    margin-right: 12px;
}

.today-jogai-info{
    margin: 0;
    padding: 0;
}

#today-jogai .mark-square-gp::before, #today-jogai .mark-square-g1::before, #today-jogai .mark-square-g2::before, #today-jogai .mark-square-g3::before, #today-jogai .mark-square-f1::before, #today-jogai .mark-square-f2::before {
    top: 0;
    left: 0;
    border-radius: 8px;
    line-height: 38px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.mark-square-gp::before, .mark-square-g1::before, .mark-square-g2::before, .mark-square-g3::before, .mark-square-f1::before, .mark-square-f2::before {
    position: relative;
    display: block;
    color: #fff;
}

.list-todayrace li {
    background-color: initial;
    box-shadow: inherit;
    padding: 0;
    display: flex;
}

.list-todayrace li a{
    padding-left: 8px;
}

.list-todayrace li h4{
    text-decoration: inherit;
    font-size: 1.3rem;
}

.list-todayrace li p {
    text-decoration: inherit;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    font-size: .9rem;
    align-items: center;
}

@media screen and (min-width: 768px) {

    .today-date-y, .today-date-md, .today-open, .text-opentime {
        font-size: 1.7rem !important;
    }

    .today-date-dow {
        padding: 2px 2px;
        font-size: 1rem;
        height: 20px;
        line-height: 12px;
    }

    .list-todayrace {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .list-todayrace li {
        width: 50%;
    }

    .list-todayrace li:first-child {
        margin-right: 4px;
    }
}

@media screen and (max-width: 767px) {
    #today-date {
        display: inline-block;
        width: 100%;
    }

    .list-todayrace li {
        margin-top: 15px;
    }
}

.mark-autosquare-gp::before,
.mark-autosquare-g1::before,
.mark-autosquare-g2::before,
.mark-autosquare-n::before{
    display:block;
    color:#fff;
    text-align:center;
    white-space:nowrap;
    border:1px solid #fff;
    border-radius:4px;
    font-weight: bold;
}
.mark-autosquare-gp::before,
.mark-autosquare-g1::before,
.mark-autosquare-g2::before,
.mark-autosquare-n::before{
    width:50px;
    height:50px;
    font-size:20px;
    line-height:50px
}
.mark-autosquare-gp::before{
    content:"GP";
    background-image:linear-gradient(45deg, #fcee6c 0%, #ffbf35 72%, #bd9131 100%)
}
.mark-autosquare-g1::before{
    content:"GI";
    background-image:linear-gradient(45deg, #fa7575 0%, #e62727 72%, #ac1212 100%)
}
.mark-autosquare-g2::before{
    content:"GII";
    background-image:linear-gradient(45deg, #9a68bf 0%, #744199 72%, #744199 100%)
}
.mark-autosquare-n::before{
    content:"普";
    background-image:linear-gradient(45deg, #63c9f1 0%, #3a82d4 72%, #0880cf 100%);
}


/*　カレンダー　*/
.top-schedule .container {
    background-color: rgba(255, 255, 255, 0.0);
}
.fc-scrollgrid-section-header > th:first-child{
    background-color: #fff;
}
  
.fc .fc-toolbar{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem 1rem;
    margin: 0 0 1rem;
    border-bottom: #e42c1f solid 2px;
}
.top-schedule {
    background-image: none;
    padding: 0;
}
.fc-datagrid-cell-main {
    font-family: sans-serif;
    writing-mode: vertical-lr;  /* 縦書き */
    display: inline-block;      /* 行内ブロック要素 */
    white-space: nowrap;        /* テキストの折り返しを防ぐ */
    text-align: start;          /* 左寄せ */
    letter-spacing: 0.3em;      /* 字間を調整 */
}

.fc-timeline-event .fc-event-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.icon-time.day {
    background-image: url(../images/icon_day.png);
}
.mark-day {
    display:inline-block;
    width:64px;
    height:0;
    padding-top:14px;
    overflow:hidden;
    vertical-align:middle;
    background-repeat:no-repeat;
    background-position:0 0;
    background-size:64px 14px
}
.mark-day {
    background-image: url(../images/icon_day_long.png);
}
.fc-view-harness {
    min-height: 0px !important;
}
/* 月別ボタン */
.fc .fc-toolbar .fc-toolbar-chunk:first-child{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
}
.fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary {
    flex: 0 0 auto;
    width: calc(calc(100% - 1.5rem) / 3);
    margin-bottom: 8px;
}
.fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary:first-child,
.fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary:nth-child(3n+1) {
    margin-left: 0;
}

@media screen and (min-width:576px) {
    .fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary {
    flex: 0 0 auto;
    width: calc(calc(100% - 2.25rem) / 4);
    }
    .fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary:nth-child(3n+1) {
        margin-left: 0.75rem;
    }
    .fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary:first-child,
    .fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary:nth-child(4n+1) {
        margin-left: 0;
    }
}

@media screen and (min-width:768px) {
    .fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary{
        flex: 1 1 auto;
        flex-wrap: nowrap;
        width: auto;
    }
    .fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary:nth-child(3n+1),
    .fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary:nth-child(4n+1) {
        margin-left: 0.75rem;
    }
        .fc .fc-toolbar .fc-toolbar-chunk:first-child .fc-button.fc-button-primary:first-child{
        margin-left: 0;
    }
}

/* 年月表示、コントローラー */
.fc .fc-toolbar .fc-toolbar-chunk:nth-child(2n) {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}
.fc .fc-button.fc-button-primary.fc-today-button {
    margin-left: auto;
}

/*グレードアイコン*/
.icon-grade{
    margin-bottom: 2px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
    min-width: 40px;
    line-height: 14px;
    font-size: 12px;
}
.icon-grade.sg { background-image:linear-gradient(45deg, #fcee6c 0%, #ffbf35 72%, #bd9131 100%); }
.icon-grade.g1 { background-image: linear-gradient(45deg, #ed6c4d 0%, #e62e02 72%, #e62e02 100%); }
.icon-grade.tg1 { background-image: linear-gradient(45deg, #ee6ca8 0%, #e62780 72%, #e62780 100%); }
.icon-grade.g2 { background-image: linear-gradient(45deg, #9a68bf 0%, #744199 72%, #744199 100%); }
.icon-grade.normal { background-image: linear-gradient(45deg, #63c9f1 0%, #3a82d4 72%, #0880cf 100%); }
    

/*　お知らせ　*/

.half-section .half-a {
    display: flex;
    justify-content: flex-end;
}

@media screen and (min-width: 768px) {
    .half-section {
        width: 48%;
    }

    .half-section:first-of-type {
        margin-right: 2%;
    }

    .half-section:nth-last-of-type(1) {
        margin-left: 2%;
    }
}

.list-information {
    height: 300px;
}

.list-information li a{
    word-break: break-all;
}

#jogai-info {
  font-size:1.5rem!important;
}