/* 
/* © 2025 airkeiba.com All Rights Reserved. 本コードの無断使用を禁じます。 */
 */
html {
    scrollbar-width: none;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
html::-webkit-scrollbar {
    display: none;
}
body {
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
}
iframe {
    border: none;
}

/* メインフレーム: フルハイビジョン解像度（1920x1080）対応 */
.main_frame_01 {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* 起動直後はフェードインさせる（JS側で body.loaded を付与） */
    opacity: 0;
    transition: opacity 1s ease;
}

/* ローディング画面 */
#loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    transition: opacity 1s ease;
}

#loader .spinner {
    border: 6px solid #333;
    border-top: 6px solid #67c08a;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}

#loader p {
    color: #fff;
    font-size: 18px;
    letter-spacing: 0.1em;
    margin: 0;
}

/* 完了後に付与するクラス */
.loaded #loader {
    opacity: 0;
    pointer-events: none;
}

.loaded .main_frame_01 {
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 1列目（左カラム）: small_windowとdevelopment_support */
/* 左カラム: 全体の15%（8:2比率） */
.column_left {
    width: 15%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 時計とボタンのコンテナ */
.clock_container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    height: 50px;
    padding: 5px;
    position: relative;
}

/* 日付ピッカー（時計横） */
.date_picker_button {
    background-color: #111;
    color: #fff;
    border: 1px solid #ffffff;
    padding: 5px 6px;
    font-size: 12px;
    cursor: pointer;
    height: 30px;
    border-radius: 4px;

    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 96px;
    justify-content: center;
    margin-left: 8px;
}

.date_picker_button:hover {
    background-color: #2a2a2a;
}

.selected_date_label {
    font-size: 12px;
    color: #cfcfcf;
    margin-left: 0;
    white-space: nowrap;
}

.date_picker_input {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* small_window iframe */
/* 必要に応じて幅を100%に */
.iframe_small_window {
    width: 100%;
    max-width: 100%;
    height: calc((100vh - 50px) / 2);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* development_support iframe */
.iframe_development_support {
    width: 100%;
    height: calc((100vh - 50px) / 2);
}

/* 2列目（右カラム） */
/* 右カラム: 全体の80%（8:2比率） */
.column_right {
    width: calc(100% - 15%);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 上段行: main_youtubeとinfo */
.row_top {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: row;
}

/* main_window（旧 main_youtube 相当） */
.main_window_container {
    position: relative;
    width: 60%;
    height: 100%;
}

.iframe_main_window {
    width: 100% !important;
    height: 100% !important;
}

/* main_window用: 即時「読み込み中」オーバーレイ */
#mainWindowLoadingOverlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    pointer-events: none;
}

#mainWindowLoadingOverlay .loading_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#mainWindowLoadingOverlay .spinner {
    border: 6px solid #333;
    border-top: 6px solid #67c08a;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}

#mainWindowLoadingText {
    color: #fff;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-align: center;
}
.iframe_main_youtube {
    width: 65%;
    height: 100%;
}
.iframe_info {
    width: 35%;
    height: 100%;
}

/* 下段行: race_closing_time、race_card、vote、odds */
.row_bottom {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

/* race_closing_time iframe */
.iframe_race_closing_time {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

/* race_card iframe */


.iframe_race_card {
    flex: 5.8 5.8 0;
    height: 100%;
}

/* oddsコンテナ（odds + header） */


.odds_container {
    /* vote枠を廃止した分、oddsを広めに取る */
    flex: 4.2 4.2 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* odds iframe */
.iframe_odds {
    width: 100%;
    flex: 1 1 auto;
    height: 100%;
}

/* header iframe */
.iframe_header {
    width: 100%;
    height: 60px;
}

/* 時計表示 */
.Clock {
    display: inline-block;
    font-weight: bold;
    font-size: 38px;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

/* ボタンコンテナ */
.button_container {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

/* ボタン共通スタイル */
.small_window_button,
.non_window_button {
    background-color: black;
    color: white;
    border: 1px solid #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    height: 30px;
}

.small_window_button:hover,
.non_window_button:hover {
    background-color: #868686;
}

.fullscreen-button {
    background-color: #037803;
    color: white;
    border: 1px solid #00cd11;
}

.fullscreen-button:hover {
    background-color: #f6fff6;
}

.exit-button {
    width: 60px;
    background-color: #a50820;
    color: white;
    border: 1px solid #FF0000;
}

.exit-button:hover {
    background-color: #fff6f6;
}

/* 
/* © 2025 airkeiba.com All Rights Reserved. 本コードの無断使用を禁じます。 */

