/* --------------------------------------------------

	レースライブ配信案内ページ

-------------------------------------------------- */

html { font-size: 62.5%; }

body * {
    box-sizing: border-box;
}

body {
	background-color: #fbfbf8;

	color: #2c2c2c;
	font-family: "Noto Sans JP", serif;
	line-height: 1.6;
    letter-spacing: 0.06em;
	font-feature-settings: "palt"1;
    }

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    object-fit: contain;
}

a {
    text-decoration: none;
}

p {
    font-size: 1.6rem;
}

:root {
    /* - カラー
    ---------------------------- */
    --color-f-base: #2c2c2c;
    --color-wh: #fff;
    --color-yellow: #fbef33;
    --color-green: #457e29;

    /* - フォントウェイト
    ---------------------------- */
    --font-regular: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;
}



/* - トップエリア
    ---------------------------- */
.top_erea {
    width: 100%;
    background-color: #0c0c0a;
}

.top_erea .kv {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: url(../img/bg_kv.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.top_erea .kv .inner {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-columns: 1fr 49%;
    grid-template-rows: auto;
    gap: 0 10px;
    width: calc(100% - 20px);
    max-width: 940px;
    margin-inline: auto;

    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(#000), color-stop(90%, #000), to(transparent));
    -webkit-mask-image: -webkit-linear-gradient(top, #000 90%, transparent 100%);
    mask-image: -webkit-gradient(linear, left top, left bottom, from(#000), color-stop(90%, #000), to(transparent));
    mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
    line-height: 0;
}

.top_erea .kv .inner:has(.news_btn) {
    padding-top: 30px;
}


/* - 2026/1　追加　ニュースリンク
-------------------------------------------------- */

.top_erea .kv .inner .news_btn {
    grid-column: 1/-1;
    z-index: 1;
}

.top_erea .kv .inner .news_btn a {
    line-height: 1.4;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-weight: bold;
    border-radius: 4px;
    padding: 14px;
    font-size: 1.8rem;
    color: #e00025;
    background-color: var(--color-wh);
}

.top_erea .kv .inner .img {
    padding-bottom: 10px;
    align-self:end;
}

.top_erea .kv .inner .cap {
    position: relative;
}

.top_erea .kv .inner .cap span {
    position: absolute;
    top: 34%;
    right: 2%;

    animation: poyon 1.2s;
    animation-fill-mode:forwards;
    animation-delay: 1.6s;
}

.top_erea .kv .inner .cap span img {
    width: 50px;
}

/* - レースライブボタン
---------------------------------------------------------------------- */
.live_btn {
    max-width: 940px;
    width: 40%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.live_btn>.btn {
    width: 100%;
    padding: 4px;
    background-color: #371e1e;
    border-radius: 6px;

    display: grid;
    justify-items: center;
    align-items: center;

}

.live_btn>.btn>a {
    display: block;
    width: 100%;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 14px;
    font-size: 1.8rem;
    line-height: 1.3;

    background-color: #e00025;
    border: 1px solid #a2021d;
    border-color: rgb(162, 2, 29);
    color: #fff;
    box-shadow:
        rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.live_btn>.btn>a i {
    margin-right: 0.5em;
    color: #fff;
}

.live_btn>p {
    text-align: center;
    color: #fff;
    font-size: 1.4rem;
}

.top_erea .sub {
    width: 940px;
    margin: 0 auto;
}

.top_erea .sub .cap {
    width: 100%;
    text-align: center;
}

.top_erea .sub .cap p {
    color: var(--color-wh);
    font-size: 1.9rem;
    font-weight: var(--font-black);
    line-height: 2;
}

.top_erea .sub .cap p strong {
    color: var(--color-yellow);
    margin: 0 0.1em;
}

.top_erea .sub .cap p .fs_ex {
    font-size: 2.6rem;
    line-height: 1.4;
}

.top_erea .sub .watch {
    width: 100%;
    padding: 48px 10px;
    padding-top: 20px;
    background: url(../img/bg_watch.png);
    background-size: contain;
    background-repeat: no-repeat;

    text-align: right;
}

.top_erea .sub .watch ul {
    display: flex;
    align-items: center;
}

.top_erea .sub .watch ul li:first-child {
    padding-top: 40px;
}

.top_erea .sub .watch p {
    display: inline-block;
    color: var(--color-wh);
    margin-top: 20px;
    padding: 2px 12px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 2px;
    font-size: 1.2rem;
}


/* - 2026.2 グリーンチャンネルボタン追加
---------------------------------------------------------------------- */

div.live.on {
    --btn-margin: 12px;
    display: grid;
    justify-content: center;
    justify-items: center;
    margin-block: 15px 20px;
}

div.live.on p   {
    display: inline-block;
    color: #fff;
    font-size: 1.4rem;
}

div.live.on>div {
    padding: 8px var(--btn-margin);
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    gap: var(--btn-margin);
    width: calc(100% - 20px);
    border-radius: 4px;
    background: #e00025;
}

div.live>div>div {
    color: #fff;
    font-weight: bold;
    font-size: var(--font-size-16);
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid #ccc;
    padding-right: var(--btn-margin);
}

div.live>div>div>span {
    font-size: calc(1em - 2px);
    display: block;
}

div.live>div>a {
    display: grid;
    place-content: center;
    background-color: #fff;
    border: 1px solid #d3d3d3;
    color: #fff;
    text-shadow: none;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

div.live>div>*:last-child {
    margin-right: 0;
}

div.live>div>a img {
    max-height: 32px;
    background-color: #fff;
}

.no-touch #kaisai_data_block>.header>.inner>.btns>ul>li.live>a:hover {
    background-color: #c02;
    border: 1px solid #800015;
    color: #fff;
}

div.live>a i {
    color: #fff;
}

div.live.on+div.reload {
    padding-left: 8px;
}


/* - 背景白以下
    ---------------------------- */

#contentsBody {
    padding: 10px;
    padding-top: 44px;
}


/* - 配信時間・配信内容
    ---------------------------- */

#contentsBody .unit_time {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    background-color: var(--color-green);
    border-radius: 10px;
}

#contentsBody .unit_time dl {
    display: grid;
    gap: 10px 4px;
    grid-template: auto / 7.2em 1fr;

    font-size: 2.3rem;
    color: var(--color-wh);
}

#contentsBody .unit_time dl strong {
    font-weight: var(--font-black);
    margin: 0 0.1em;
}

#contentsBody .unit_time dl dt {
    grid-column: 1;
    font-weight: var(--font-bold);
}

#contentsBody .unit_time dl dt:before {
    content: '';
    /*何も入れない*/
    display: inline-block;
    width: 42px;
    /*画像の幅*/
    height: 30px;
    /*画像の高さ*/
    background-image: url(../img/icon_live.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 0.5em;
}

#contentsBody .unit_time dl dt img {
    width: 42px;
    margin-right: 10px;
}

#contentsBody .unit_time dl dd {
    grid-column: 2;
}


/* - 視聴方法
    ---------------------------- */

.unit_watch {
    text-align: center;
}

.unit_watch h2 {
    font-size: 3rem;
    font-weight: var(--font-black);
    margin-bottom: 30px;
}

.unit_watch h3 {
    font-size: 1.8rem;
    font-weight: var(--font-black);
    margin-bottom: 15px;
}

.unit_watch h3 .inner {
    display: flex;
    justify-content: center;
}

.unit_watch h3 .num {
    margin-right: 0.4em;
}

.unit_watch h3 .txt {
    display: grid;
    text-align: left;
    justify-content: center;
}

.unit_watch h3 .num img {
    width: 26px;
}

.unit_watch .dev_browser ul {
    display: flex;
    justify-content: center;
}

.unit_watch .dev_browser ul li:first-child {
    padding-right: 20px;
}

.unit_watch .dev_app ul li img {
    width: 44%;
}


/* - その他
    ---------------------------- */
.unit_other {
    text-align: left;
    padding: 40px;
    background-color: #d7dbd8;
}

.unit_other ul.d_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.unit_other ul.d_list li  {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    gap: 6px;
}

.unit_other ul.d_list li span {
    grid-row: span 1;
    font-weight: var(--font-semibold);
}

.unit_other ul.d_list li p {
    font-size: 1.4rem;
}

.unit_other ul.d_list li a {
    text-decoration: underline;
}

.unit_other ul.d_list li a:hover {
    text-decoration: none;
}

.unit_other ul.d_list li .note_list {
    grid-column: 2 / -1;
}


/* - 2026.2 コンポーネント調整
---------------------------------------------------------------------- */
.unit_watch .note_list {
    display: grid;
    justify-content: center;
    text-align: left;
}


/* ------------------------------------------
　アニメーション関連
------------------------------------------ */

/* フェードイン */
.fadein {
    opacity: 0;
    transform: translate(0, 20px);
    transition: all 0.6s;
}

.fadein.active {
    opacity: 1;
    transform: translate(0, 0);
}

.zoomIn {
    opacity: 0;
    transition: all 1s;
}

.zoomIn.active {
    opacity: 1;
}

@keyframes poyon {
    0% {
        transform: scale(1.0, 1.0) translate(0%, 0%);
    }

    15% {
        transform: scale(0.9, 0.9) translate(0%, 5%);
    }

    30% {
        transform: scale(1.3, 0.8) translate(0%, 10%);
    }

    50% {
        transform: scale(0.8, 1.3) translate(0%, -10%);
    }

    70% {
        transform: scale(1.1, 0.9) translate(0%, 5%);
    }

    100% {
        transform: scale(1.0, 1.0) translate(0%, 0%) rotate(12deg);
    }
}

/* ------------------------------------------
　メディアクエリ
------------------------------------------ */
@media screen and (max-width:959px) {

    .top_erea .kv .inner .cap span {
        top: 26%;
    }

    .top_erea .kv .inner .cap span img {
        width: 44px;
    }

    .live_btn {
        width: 50%;
    }

    .top_erea .sub {
        width: auto;
    }

}

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

    .top_erea .kv .inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-items: center;
    }

    .top_erea .kv .inner .news_btn {
        grid-row-start: -4;
    }

    .top_erea .kv .inner .cap {
        grid-row: -3 / span 1;
    }


    .top_erea .kv .inner .img,
    .top_erea .kv .inner .cap {
        width: min(calc(100% - 20px),580px);
    }

    .top_erea .kv .inner .img {
        margin-top: -8% ;
        padding-top: 0;
        z-index: 10;
    }

    .top_erea .kv .inner .cap {
        margin-top: -4% ;
    }

    /* - レースライブボタン
    ---------------------------- */
    .live_btn {
        margin-top: 20px;
        margin-bottom: 0;

        width: 90%;
        ;
    }

    .live_btn>.btn>a {
        padding: 10px;
    }

    .top_erea .sub {
        margin-top: 20px;
        padding: 10px;
    }

    /* - グリーンチャンネル追加
    ---------------------------- */
    div.live.on {
        --btn-margin: 8px;
    }
    div.live>div>div {
        font-size: var(--font-size-14);
    }


    /* - 配信時間・配信内容
    ---------------------------- */
    #contentsBody .unit_time {
        padding: 24px;
    }

    #contentsBody .unit_time dl {
        font-size: 2rem;
        grid-template: auto / 7.6em 1fr;
    }


}


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

    .top_erea .kv .inner .cap span { top: 28%; }
    .unit_watch .dev_app ul li img {
        width: 50%;
    }

}


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

    .top_erea .sub .watch {
        padding-top: 10px;
        background-position: center;
    }

    .top_erea .sub .cap p {
        font-size: 1.8rem;
        line-height: 1.8;
    }


    .top_erea .sub .cap p .fs_ex {
        font-size: 2.4rem;
    }

    .top_erea .kv .inner .cap {
        width: 100%;
    }


    .live_btn > p {
        font-size: 1.2rem;
    }

    .top_erea .sub .watch ul,
    .unit_watch .dev_browser ul {
        display: block;
    }

    .top_erea .sub .watch ul li,
    .unit_watch .dev_browser ul li,
    .unit_watch .dev_app ul li {
        display: block;
        padding: 0;
        padding-top: 10px;
    }

    .top_erea .sub .watch ul li:first-child {
        padding-top: 20px;
    }

    .unit_watch .dev_browser ul li:first-child,
    .unit_watch .dev_app ul li {
        padding: 0;
    }

    .unit_watch .dev_browser ul li:nth-child(2) img {
        width: 80%;
    }

    .unit_watch .dev_app ul li img {
        width: 80%;
    }

    .unit_watch p {
        text-align: left;
        font-size: 1.5rem;
    }

    .unit_watch p br { display: none; }


    /* - 配信時間・配信内容
    ---------------------------- */
    #contentsBody .unit_time {
        padding: 20px 10px;
        padding-left: 16px;
    }

    #contentsBody .unit_time dl {
        font-size: 1.7rem;
        gap: 8px 0;
        line-height: normal;
    }

    #contentsBody .unit_time dl dt:before {
        width: 32px;
        background-position: center;
    }


    /* - その他
    ---------------------------- */
    .unit_other {
        padding: 30px;
    }

    .unit_other ul.d_list li p,
    .unit_other .note_list {
        font-size: 1.2rem;
    }

}