/* base */
:root {
    --DRAWING_WIDTH: 90%;
    --MAIN_BACK_COLOR: #ffffff;
    --MAIN_TEXT_COLOR: #1e3c64;
}

* {
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

body {
    background-color: var(--MAIN_BACK_COLOR);
    min-width: 240px;
}


/* Header content */
header {
    display: flex;
    width: var(--DRAWING_WIDTH);
    margin: 0 auto;
    justify-content: space-between;
}

header div {
    display: flex;
    align-items: center;
    gap: 8px;
}

header .navi {
    --headerNaviFontSize: 26px;

    color: var(--NAVI_TEXT_COLOR);
    text-decoration: none;
    font-size: var(--headerNaviFontSize);
    font-weight: bold;
}

#siteTitle {
    --siteTitleFontSize: 32px;

    display: inline;
    background-color: var(--SWITCH_SELECT_BACK_COLOR);
    color: #ffffff;
    padding: 4px 8px;
    font-size: var(--siteTitleFontSize);
}

#siteTitle a {
    color: #ffffff;
    text-decoration: none;
}

#mobNaviSwitch {
    display: flex;
    align-content: center;
    width: 36px;
}

#mobNaviSwitch img {
    width: 100%;
    aspect-ratio: 1/1;
}

#mobNavi {
    z-index: 9999;
    position: fixed;
    top: 0;
    right: -60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #1e3c64;
    width: 60%;
    max-width: 360px;
    height: 100%;
    transition: right 0.3s ease-out;
}

#mobNavi * {
    user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
}

#mobNavi .menu_content {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
}

#mobNavi .menu_content * {
    color: #fff;
}

#mobNavi .menu_content .icon {
    display: flex;
    justify-content: center;
}

#mobNavi .menu_content div {
    margin: 8px 0;
}

#mobNavi img {
    background-color: rgba(0, 0, 0, 0.2);
    width: 30%;
}

#sideMenuCloseButton {
    text-align: left;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: 8px 0;
}

#mobNaviBack {
    z-index: 9998;
    position: fixed;
    top: 0;
    right: -100%;
    display: flex;
    background-color: var(--MAIN_TEXT_COLOR);
    width: 100%;
    height: 100%;
    opacity: 0.6;
    transition: right 0.3s ease-out;
}


/* Footer content */
footer * {
    font-size: 14px;
}

footer {
    display: flex;
    gap: 8px;
    width: var(--DRAWING_WIDTH);
    margin: 0 auto;
}


/* #main */
#main {
    width: var(--DRAWING_WIDTH);
    margin: 0 auto;
}

#main .generic_content {
    margin: 8px 0;
}


/* #mainDateContent */
#mainDateContent {
    display: flex;
    flex-direction: column;
    margin: 32px 0;
}

#mainDateContent * {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
}

#mainTime {
    color: var(--TIME_TEXT_COLOR);
    font-weight: bold;
    white-space: nowrap
}

#mainDate {
    color: var(--TIME_TEXT_COLOR);
    white-space: nowrap
}

.flip_selector {
    --flipSelectorFontSize: 26px;

    background-color: rgba(255, 255, 255, 0);
    color: var(--MAIN_TEXT_COLOR);
    border: none;
    font-weight: bold;
    margin: 0;
    padding: 0;
    font-size: var(--flipSelectorFontSize);
}

.flip_selector span {
    padding: 4px 8px;
}

.rigth_text {
    text-align: right;
}

.select_language {
    background-color: var(--MAIN_BACK_COLOR); /* Safari対応用 */
    color: var(--MAIN_TEXT_COLOR);
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0px; /* Safari対応用 */
    font-size: 18px;
    font-weight: bold;
    outline: none;
    user-select: none;
}


/* mobile */
@media screen and (max-width: 480px) {
	/* mob */
    #siteTitle {
        --siteTitleFontSize: 20px;
    }

    #pcNavi {
        display: none;
    }

    .flip_selector {
        --flipSelectorFontSize: 18px;
    }
}



/* .old */
:root {
    --CONTENT_WIDTH: 90%;
    --TEXT_COLOR: #1e3c64;
    --NAVI_TEXT_COLOR: #1e3c64;
    --TIME_TEXT_COLOR: #1e3c64;
    --ERROR_TIME_TEXT_COLOR: #c71a0e;
    --SWITCH_SELECT_BACK_COLOR: #1e3c64;
    --SWITCH_SELECT_TEXT_COLOR: #ffffff;
    --SWITCH_UNSELECT_BACK_COLOR: rgba(0, 0, 0, 0);
    --SWITCH_UNSELECT_TEXT_COLOR: var(--TIME_TEXT_COLOR);
}

#popupContent {
    z-index: 2147483647;
    position: fixed;
    top: 50%;
    left: 50%;
    display: none;
    background-color: #fff;
    min-width: 60%;
    max-width: 90%;
    min-height: 60%;
    max-height: 90%;
    padding: 32px;
    border-radius: 4px;
    overflow-x: auto;
    transform: translate(-50%, -50%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#popupContent * {
    color: var(--TEXT_COLOR);
}

#popupContentBack {
    z-index: 2147483646;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--NAVI_TEXT_COLOR);
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

#popupClose {
    font-size: 26px;
    font-weight: bold;
    user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
}

#nowTimeDateContent * {
    user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
}

@media screen and (max-width: 480px) {
	/* mob */
    #popupContent {
        min-width: 90%;
    }
}