﻿
/*#region ページ全般*/

/* リセットCSS */
html, body, h1, h2, h3, div, span, a, p, i, table, tbody, tr, th, td, ol, ul, li, canvas, img, input, select, button {
    margin: 0;
    padding: 0;
    outline: none;
}

/* HTML要素 */
html {
    width: 100%;
    height: 100%;
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100%;
    max-height: 100%;
    font-family: sans-serif;
    font-size: 1.6rem;
    color: #ccc;
    /*background-color: #fcfcfc;*/
    background-color: #3c3c3c;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* button要素 */
button {
    border: none;
    border-radius: 0;
    background: none;
    box-sizing: border-box;
    cursor: pointer;
}

    /* ボタン用にフォーカスが当てっている際のスタイル */
    button::-moz-focus-inner {
        border: none;
    }

    button:disabled {
        pointer-events: none;
        color: #7a7a7a;
    }

.separator {
    display: block;
    height: 1px;
    background-color: rgba(0,0,0,0.6);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
    margin: 0 4px;
}

.vertical-sepatrator {
    display: block;
    width: 1px;
    min-width: 1px;
    margin: 4px 0;
    background-color: rgba(0,0,0,0.6);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

/*#region input要素*/

/*#region type=number*/

input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/*#endregion*/

/*#region input=range*/

input[type="range"] {
    -webkit-appearance: none;
    margin: auto 0;
    outline: none;
}

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 24px;
        height: 24px;
        margin-top: -10px;
        background-color: #ccc;
        border: 1px solid rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        cursor: pointer;
    }

    input[type="range"]:active::-webkit-slider-thumb {
        background-color: #aaa;
        box-shadow: 0 0 0 3px rgba(204,204,204,0.6);
        transition: 500ms;
    }

    input[type="range"]::-moz-range-thumb {
        width: 18px;
        height: 18px;
        background-color: #ccc;
        border: 1px solid rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        cursor: pointer;
    }

    input[type="range"]:active::-moz-range-thumb {
        background-color: #aaa;
        box-shadow: 0 0 0 3px rgba(204,204,204,0.6);
        transition: 500ms;
    }

    input[type="range"]::-ms-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        margin-top: 0;
        background-color: #ccc;
        border: 1px solid rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        cursor: pointer;
    }

    input[type="range"]:active::-ms-thumb {
        background-color: #aaa;
        box-shadow: none;
    }

    input[type="range"]::-webkit-slider-runnable-track {
        height: 5px;
        background: #ccc;
        border-radius: 3px;
    }

    input[type="range"]::-moz-range-track {
        height: 5px;
        background: #ccc;
        border-radius: 3px;
    }

    input[type="range"]::-ms-track {
        height: 3px;
        background: #ccc;
        border-radius: 3px;
    }

input[type=range]::-ms-tooltip {
    display: none;
}

/*#endregion*/

/*#endregion*/

/*#endregion*/

/*#region */

.only-mobile {
    display: none;
}

.except-mobile {
    display: block;
}

.except-pc {
    display: none;
}

.hidden-pc {
    visibility: hidden;
}


@media (max-width:48em) {
    .except-pc {
        display: block;
    }

    .hidden-pc {
        visibility: visible;
    }
}

@media (max-width:30em) {
    .only-mobile {
        display: block;
    }

    .except-mobile {
        display: none;
    }
}

/*#endregion*/

/*#region ツールバー*/

/*#region ツールバー */

.toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: nowrap;
    height: calc(1.5em + 3px);
    font-size: 2.4rem;
    background-color: rgba(25,25,25,0.8);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1), 0 1px 0 rgba(0,0,0,0.3);
    color: #eee;
    z-index: 500;
    transition: opacity 0.5s, visibility 0.5s;
}

    .toolbar[aria-hidden="true"] {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

/*#endregion*/

/*#region ツールバーボタン*/

.toolbar-button {
    position: relative;
    flex: 0 0 4.4rem;
    height: calc(100% - 3px);
    line-height: calc(100% - 3px);
    font-size: 2.4rem;
    border-bottom: 3px solid rgba(0,0,0,0);
    color: #eee;
    box-sizing: content-box;
}

    .toolbar-button.hover, .toolbar-button:focus, .toolbar-button[aria-expanded="true"] {
        /*color: cornflowerblue;*/
        color: #ff6804;
        /*border-bottom: solid 3px cornflowerblue;*/
        border-bottom: solid 3px #ff6804;
    }

.toolbar-right-button {
    position: relative;
    flex: 0 0 8rem;
    /*height: calc(100% - 3px);
    line-height: calc(100% - 3px);*/
    height: 100%;
    line-height: 100%;
    font-size: 2.4rem;
    border-bottom: 3px solid rgba(0,0,0,0);
    color: #eee;
    box-sizing: content-box;
    font-family: sans-serif;
    padding: 0 0.5em;
}

    .toolbar-right-button.hover, .toolbar-right-button:focus, .toolbar-right-button[aria-expanded="true"] {
        /*color: cornflowerblue;*/
        color: #ff6804;
        /*border-bottom: solid 3px cornflowerblue;*/
        border-bottom: solid 3px #ff6804;
    }


/*#endregion*/

/*#region ヘッダのページ表示部*/

#header-page-container {
    white-space: nowrap;
}

/* 現在のページ番号 */
.current-page-number {
    -moz-appearance: textfield;
    width: 4.4rem;
    height: 1.5em;
    padding-right: 0.2em;
    font-size: 1.6rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid #474747;
    color: #fff;
    text-align: right;
    font-family: sans-serif;
    margin: auto 0 auto 0.2em;
}

    .current-page-number::-webkit-inner-spin-button {
        margin: 0;
    }

    .current-page-number::-webkit-outer-spin-button {
        margin: 0;
    }

/* 総ページ数 */
.total-page-number {
    font-size: 1.6rem;
    flex: 0 0 4.4rem;
    margin-right: 0.5em;
    white-space: nowrap;
}

/*#endregion*/

/*#region タイトル*/

.title {
    flex: 1 1 auto;
    margin: 0 0.5em;
    font-size: inherit;
    font-family: serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*#endregion*/

/*#endregion*/

/*#region メニューダイアログ*/

#toolbar-menu {
    position: absolute;
    top: calc(1.5em + 3px);
    right: 0;
    max-width: calc(22rem + 0.6em + 10px);
    max-height: calc(100% - 1.5em - 50px);
    font-size: 2.4rem;
    background-color: rgba(36, 36, 36, 0.8);
    box-shadow: -1px 1px 3px 1px rgba(0,0,0,0.3);
    overflow-y: auto;
    z-index: 300;
    transition: opacity 0.5s;
}

    #toolbar-menu[aria-hidden="true"] {
        visibility: hidden;
        opacity: 0;
    }

/* メニューボタン */
.menu-button {
    min-width: calc(100% - 0.5em);
    margin: 0.25em;
    padding: 0.2em 0.4em;
    border: 1px solid rgba(0,0,0,0.0);
    border-radius: 3px;
    text-align: left;
    font-size: 1.6rem;
    color: #ccc;
}

    .menu-button.hover, .menu-button:focus {
        border: 1px solid rgba(0,0,0,0.5);
        background-color: rgba(25,25,25,0.8);
        /*color: cornflowerblue;*/
        color: #ff6804;
    }

    .menu-button:disabled {
        pointer-events: none;
        color: #7a7a7a;
    }

/* メニューボタンのラベル */
.menu-button-label {
    margin-left: 0.4em;
}

.menu-block {
    margin: 0.25em;
    padding: 0.2em 0.4em;
    color: #ccc;
}

.honkoku-label {
    height: 4.4rem;
    padding: 0 0.5em;
    font-size: 1.6rem;
    white-space: nowrap;
    line-height: 4.4rem;
}

/*#endregion*/

/*#region サイドバー*/

/*#region サイドバー本体*/

#sidebar {
    position: absolute;
    top: calc(1.5em + 3px);
    left: 0;
    font-size: 2.4rem;
    width: 250px;
    max-width: calc(100% - 64px);
    min-width: 16rem;
    bottom: 0;
    border-top: 1px solid #333;
    z-index: 500;
    transition: transform 0.5s;
}

    #sidebar[aria-hidden="true"] {
        transform: translateX(-100%);
    }

        #sidebar[aria-hidden="true"] > #sidebar-body {
            display: none;
        }

@media (max-width: 50em) {
    #sidebar {
        bottom: 47px;
    }
}

@media (max-width: 30em) {
    #sidebar {
        bottom: 0;
        background-color: #262626;
    }

        #sidebar[aria-hidden="false"] > .paging-button {
            color: #666666;
            pointer-events: none;
        }
}

/*#endregion*/

/*#region サイドバーヘッダ*/

.sidebar-header {
    display: flex;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25), 0 0 1px rgba(0,0,0,0.2);
}

/*#endregion*/

/*#region サイドバーボタン*/

.sidebar-button {
    height: 4.4rem;
    flex: 1 0 auto;
    border-right: solid 1px rgba(0,0,0,0.3);
    border-left: solid 1px rgba(0,0,0,0.3);
    background-color: rgba(45, 45, 45, 0.8);
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.5);
    font-size: 1.6rem;
    color: #ccc;
    text-align: center;
    line-height: 4.4rem;
    text-decoration: none;
}

    .sidebar-button.hover {
        color: cornflowerblue;
        background-color: rgba(48, 48, 48, 0.8);
    }

    .sidebar-button[aria-selected="true"] {
        color: cornflowerblue;
        background-color: rgba(36, 36, 36, 0.8);
        box-shadow: none;
    }

/*#endregion*/

/*#region サイドバーボディ*/

.sidebar-body {
    position: absolute;
    top: 4.4rem;
    left: 0;
    bottom: 0;
    width: 100%;
    border-right: solid 1px rgba(0,0,0,0.3);
    box-sizing: border-box;
    background-color: rgba(36, 36, 36, 0.8);
}

    .sidebar-body[data-show-sidebar-header="false"] {
        top: 0;
    }

#sidebar-resizer {
    width: 5px;
    height: 100%;
    position: absolute;
    right: -2.5px;
    cursor: ew-resize;
    z-index: 1000;
}

/*#endregion*/

/*#region サイドバーパネル*/

.sidebar-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

    .sidebar-panel[aria-hidden="true"] {
        visibility: hidden;
        z-index: 0;
    }

/*#endregion*/

/*#region サムネイル一覧*/

#thumbnail-panel {
    height: 100%;
    /*overflow: auto;*/
    overflow: hidden;
}

#sidebar-thumbnail-list-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    height: 100%;
    width: calc(100% + 17px);
    margin: 0;
    padding-right: 17px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.sidebar-thumbnail-wrapper {
    flex: 1 1 150px;
    /*width: 100%;*/
    max-width: 200px;
    /*min-height: 175px;*/
    margin: 10px;
    text-align: center;
    list-style: none;
    background-color: rgba(33,33,33,0.8);
    border: solid 1px #3a483a;
    cursor: pointer;
    text-decoration: none;
    color: #ccc;
    font-size: 1.6rem;
}

.thumb:focus {
    box-shadow: 0 0 0 3px #aaa;
}

.sidebar-thumbnail-wrapper.selected {
    box-shadow: 0 0 0 3px white;
}

.sidebar-thumbnail-wrapper > a {
    position: relative;
    display: block;
    max-width: 200px;
    max-height: 200px;
    /*min-width: 150px;
    min-height: 150px;*/
    border-bottom: 1px solid #3a483a;
    background-color: rgba(0,0,0,.3);
}

    .sidebar-thumbnail-wrapper > a:before {
        content: "";
        display: block;
        padding-top: 100%;
    }

.viewer-thumb {
    /*max-width: 200px;
    max-height: 200px;*/
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    bottom: 0;
    transform: translate(-50%, -50%);
}

/*#endregion*/

/*#region 目次*/

#toc-panel {
    margin: 0 1px;
    overflow-y: auto;
    height: 100%;
}

.toc-button {
    width: 100%;
    display: flex;
    font-size: 1.6rem;
    color: #ccc;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0.5em 1em;
}

    .toc-button.hover, .toc-button:focus {
        background-color: rgba(0,0,0,0.6);
        color: cornflowerblue;
    }

.toc-title {
    max-width: calc(100% - 1em);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toc-page-number {
    font-size: 1.4rem;
    color: #aaa;
}

/*#endregion*/

/*#endregion*/

/*#region ページングボタン*/

.paging-button {
    position: absolute;
    bottom: 50vh;
    transform: translateY(50%);
    background-color: rgba(0,0,0,0.4);
    padding: 24px 8px;
    z-index: 100;
    transition: opacity 0.5s;
    font-size: 32px;
    color: #ccc;
    border: none;
    cursor: pointer;
}

    .paging-button[aria-hidden="true"] {
        opacity: 0;
    }

    .paging-button.hover, .paging-button:focus {
        opacity: 1;
        color: cornflowerblue;
        background-color: rgba(0,0,0,0.6);
    }

    .paging-button:disabled {
        display: none;
    }

.left-paging-button {
    left: 100%;
}


@media (max-width: 50em) {
    .left-paging-button {
        bottom: calc(50vh - 47px);
    }
}

@media (max-width: 30em) {
    .left-paging-button {
        bottom: 50vh;
    }
}

.left-paging-button > .tooltip {
    left: 4.8em;
}

.right-paging-button {
    right: 0;
}

    .right-paging-button > .tooltip {
        left: -2.8em;
    }

/*#endregion*/

/*#region ビューア本体*/

.container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@media (max-width: 30em) {
    .toolbar.show-sidebar > #menu-button {
        pointer-events: none;
    }

    .container.show-sidebar {
        pointer-events: none;
    }
}

#main-image-viewer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

    #main-image-viewer.horizontal {
        width: 50%;
    }

#honkoku-image-viewer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    border-right: solid 1px black;
    box-sizing: border-box;
}

    #honkoku-image-viewer[aria-hidden="true"] {
        display: none;
    }

.honkoku-item[aria-hidden="true"] {
    display: none;
}

/*#endregion*/

/*#region ナビゲーター*/

#navigator {
    border: 2px solid rgb(85, 85, 85);
    background: rgb(0, 0, 0) none repeat scroll 0% 0%;
    opacity: 0.8;
    z-index: 10;
    box-sizing: border-box;
    transition: 0.25s;
}

    #navigator[aria-hidden="true"] {
        visibility: hidden !important;
        opacity: 0;
        pointer-events: none;
    }

    #navigator[data-show-header="true"] {
        top: calc(1.5em + 3px) !important;
        font-size: 2.4rem;
    }

/*#endregion*/

/*#region ダイアログ*/

.dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    padding: 1em;
    box-shadow: 1px 1px 4px 3px rgba(0,0,0,0.4);
    background: #fff;
    color: #333;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1000;
    transform: translate(-50%,-50%);
}

    .dialog[aria-hidden="true"] {
        display: none;
    }

.dialog-header > h2 {
    flex: 1 1 auto;
    font-size: 2rem;
    font-weight: normal;
    white-space: nowrap;
}

.dialog-header > button {
    font-size: 2.5rem;
    color: white;
}

.dialog-body {
    padding: 16px;
    font-size: 1.6rem;
}

.dialog-button {
    display: inline-block;
    height: 100%;
    margin-left: 1em;
    padding: 0.2em 1em;
    line-height: 1;
    border-radius: 4px;
    font-size: 1em;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
    transition: background-color .3s ease-out;
}

/*#endregion*/

/*#region ダウンロード*/

@media (max-width:48em) {
    #download-dialog {
        width: 80%;
    }
}

@media (max-width:30em) {
    #download-dialog {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
}

#download-dialog-header {
    padding: 16px 24px 0 24px;
}

.download-field {
    margin: 1em 0 1px 0;
    border: solid 1px #ccc;
    border-radius: 4px;
}

.download-row {
    padding: 0.5em 1em;
}

.download-command-frame {
    height: 3.6rem;
    padding: 16px;
    text-align: right;
}

.dialog-download-button {
    display: inline-block;
    height: 100%;
    margin-left: 1em;
    padding: 0.2em 1em;
    line-height: 1;
    border-radius: 4px;
    font-size: 1em;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
    transition: background-color .3s ease-out;
}

#download-button {
    background-color: #42A5F5;
    color: #fff;
}

    #download-button:hover, #download-button:focus {
        background-color: #1565C0;
    }

#download-close-button {
    color: white;
    background: #78909C;
}

    #download-close-button:hover, #download-close-button:focus {
        background: #455A64;
    }

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background-color: rgba(0,0,0,0.6);
}

    .dialog-overlay[aria-hidden="true"] {
        display: none;
    }


#page-range {
    font-size: 1.6rem;
    margin-left: 1em;
}

/*#endregion*/

/*#region 引用*/

/*#region 引用説明ダイアログ*/

#quote-about-dialog {
    border-radius: 8px;
}

@media (max-width:48em) {
    #quote-about-dialog {
        width: 80%;
    }
}

#quote-dialog-header {
    padding: 16px 24px 0 24px;
}

.quote-command-frame {
    height: 4.4rem;
    padding: 16px;
    white-space: nowrap;
    text-align: center;
}

#quote-about-button {
    display: inline-block;
    width: 10em;
    height: 100%;
    margin-left: 1em;
    padding: 0.2em 1em;
    line-height: 1;
    border-radius: 4px;
    font-size: 1em;
    letter-spacing: 0.1em;
    background-color: #42A5F5;
    color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
    transition: background-color .3s ease-out;
}

    #quote-about-button:hover, #quote-about-button:focus {
        background-color: #1565C0;
    }

/*#endregion*/

/*#region 引用プレビューダイアログ*/

#quote-preview-dialog {
    max-height: 90%;
}

@media (max-width:48em) {
    #quote-preview-dialog {
        width: 80%;
    }
}

@media (max-width:30em) {
    #quote-preview-dialog {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        transform: none;
    }
}

.preview-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 25em);
    border: solid 1px silver;
    box-sizing: border-box;
}

#quote-preview {
    max-width: 100%;
    max-height: 100%;
}

.preview-description {
    margin: 1em 0;
    text-align: center;
}

.preview-form {
    border: solid 1px silver;
    border-radius: 4px;
    padding: 1em;
    font-size: 1.6rem;
}

.form-raw {
    margin-top: 1em;
}

#quote-regist-button {
    background-color: #42A5F5;
    color: #fff;
}

    #quote-regist-button:hover, #quote-regist-button:focus {
        background-color: #1565C0;
    }

#quote-preview-cancel-button {
    color: white;
    background: #78909C;
}

    #quote-preview-cancel-button:hover, #quote-preview-cancel-button:focus {
        background: #455A64;
    }

/*#endregion*/

.quote-panel {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.4rem;
    background-color: rgba(49, 49, 49, 0.9);
    text-align: center;
    font-size: 0;
    transition: transform 0.5s;
    opacity: 1;
}

    .quote-panel[aria-hidden="true"] {
        opacity: 0;
    }

        .quote-panel[aria-hidden="true"] > button {
            display: none;
        }

#quote-size {
    text-align: right;
}

.quote-button {
    height: 100%;
    padding: 0 0.5em;
    font-size: 1.8rem;
    color: #fff;
}

    .quote-button:hover {
        background-color: rgba(0,0,0,0.3);
    }

#quote-result-dialog {
    border-radius: 8px;
    min-width: 30em;
    max-height: 100%;
}

@media (max-width: 37.5em) {
    #quote-result-dialog {
        left: 1em;
        right: 1em;
        max-width: 100% !important;
        transform: translateY(-50%);
        border-radius: 0;
    }
}

#quote-result-dialog > .dialog-body {
    text-align: center;
}

#quote-result {
    max-width: 100%;
    max-height: 100%;
}

#quote-caption {
    margin: 1em 0;
    text-align: center;
}

#image-url, #image-tag {
    width: 100%;
    min-height: 5em;
    font-size: 1.6rem;
}

#quote-close-button {
    display: inline-block;
    width: 10em;
    height: 100%;
    margin-left: 1em;
    padding: 0.2em 1em;
    line-height: 1;
    border-radius: 4px;
    font-size: 1em;
    letter-spacing: 0.1em;
    background-color: #42A5F5;
    color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
    transition: background-color .3s ease-out;
}

    #quote-close-button:hover, #quote-close-button:focus {
        background-color: #1565C0;
    }

#page-size {
    -moz-appearance: textfield;
    margin: .8rem 0 .8rem 1em;
    padding: .4em .5em;
    border: 1px solid #acacac;
    border-radius: 4px;
    box-shadow: inset 1px 1px 1px 0 rgba(0,0,0,.1);
    box-sizing: border-box;
    color: #333;
    font-size: 1.4rem;
    width: 5em;
}

input:invalid {
    border-color: red !important;
    background-color: #fdd;
}

#input-error {
    font-size: 1.4rem;
    color: red;
    width: 100%;
    white-space: nowrap;
    margin-left: 1em;
}

/*#endregion*/

/*#region コンテンツ情報*/


#info-dialog {
    width: 60%;
    height: 100%;
    max-height: 80%;
    padding: 0;
    background-color: #ccc;
    overflow: hidden;
}

    #info-dialog > .dialog-body {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        max-height: calc(100% - 4.8rem);
        overflow: auto;
    }

@media (max-width:48em) {
    #info-dialog {
        width: 80%;
    }
}


@media (max-width:30em) {
    #info-dialog {
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
}

#info-dialog-header {
    display: flex;
    background-color: #464646;
    color: white;
    box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.3);
    padding: 0 16px;
    line-height: 4.8rem;
}

.info-block {
    background: #fff;
    padding: 1em;
    margin-bottom: 1em;
    box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.3);
}

.info-header {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    border-bottom: 1px solid #b1b1b1;
}

.meta-raw {
    margin: 1em 0;
}

.meta-raw-header {
    color: #666;
}

/*#endregion*/

/*#region オーバーレイ*/

#sidebar-overlay {
    visibility: hidden;
    z-index: 0;
    opacity: 0;
    transition: 0.5s;
}

@media (max-width: 30em) {
    #sidebar-overlay[aria-hidden="false"] {
        visibility: visible;
        position: absolute;
        top: calc(1.5em + 3px);
        font-size: 2.4rem;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 1;
        background-color: rgba(0,0,0,0.3);
        z-index: 400;
    }
}

/*#endregion*/

/*#region ツールチップ*/

/* ツールチップ */
.tooltip {
    display: none;
    opacity: 0;
    position: absolute;
    padding: 5px 8px;
    white-space: nowrap;
    background-color: rgba(0,0,0,0.8);
    /*border: solid 1px rgba(234, 118, 41, 1.0);*/
    border-radius: 3px;
    color: #eee;
    font-size: 1.4rem;
    z-index: 1000;
}

    .tooltip[aria-hidden="false"] {
        display: block;
        opacity: 1;
    }

/*#endregion*/

/*#region ローディングアイコン*/

#spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    opacity: 1;
}

    #spinner-overlay[aria-hidden="true"] {
        display: none;
        opacity: 0;
    }

@keyframes fadeIn {
    0% {
        display: block;
        opacity: 1;
    }

    99% {
        display: block;
    }

    100% {
        display: none;
        opacity: 0;
    }
}

.loading-icon {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 3em;
    background-color: rgba(0,0,0,0.7);
    color: white;
    border-radius: 16px;
    text-align: center;
}

    .loading-icon > i {
        font-size: 6em;
    }

    .loading-icon > p {
        margin-top: 0.5em;
        font-size: 2em;
    }

/*#endregion*/

/*#region ページスライダー*/

.page-slider {
    width: calc(100% - 2em);
    padding: 0 1em;
    vertical-align: bottom;
    background: transparent;
}

    .page-slider[data-page-direction="rtl"] {
        direction: rtl;
    }

/*#endregion*/

/*#region ボトムツールバー*/

#bottom-toolbar {
    position: absolute;
    right: 50%;
    bottom: 2em;
    transform: translateX(50%);
    width: 60%;
    max-width: 64em;
    min-width: 50em;
    box-shadow: 1px 0 4px 0 rgba(0,0,0,0.3);
    z-index: 300;
    transition: opacity 0.5s;
}

    #bottom-toolbar[aria-hidden="true"] {
        opacity: 0;
        visibility: hidden;
    }

@media (max-width:50em) {
    #bottom-toolbar {
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        min-width: 0;
        z-index: 700;
    }
}

@media (max-width:30em) {
    #bottom-toolbar {
        z-index: 300;
    }
}


.pc-only {
    display: flex;
}

@media (max-width: 50em) {
    .pc-only {
        display: none;
    }
}

.bottom-toolbar-inner {
    width: 100%;
    background-color: rgba(25,25,25,0.8);
    z-index: 600;
}

/*#region サムネイルリスト*/

#bottom-thumbnail-list {
    height: 100px;
    overflow: hidden;
    transition: height 0.5s;
}

    #bottom-thumbnail-list[aria-hidden="true"] {
        height: 0;
    }

#bottom-thumbnail-list-inner {
    width: 100%;
    height: calc(100% + 17px);
    margin: 0;
    padding-bottom: 17px;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 0;
    text-align: center;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

    #bottom-thumbnail-list-inner[data-page-direction="rtl"] {
        direction: rtl;
    }

.bottom-thumbnail-wrapper {
    display: inline-block;
    width: 128px;
    margin: 10px 5px;
    text-align: center;
    list-style: none;
}

    .bottom-thumbnail-wrapper.selected {
        box-shadow: 0 0 0 3px white;
    }

.bottom-thumbnail {
    position: relative;
    display: block;
    width: 128px;
    height: 80px;
}

.bottom-thumbnail-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    max-width: 128px;
    max-height: 80px;
}

/*#endregion*/

/*#region 画像フィルター */

#bottom-image-filter {
    flex-wrap: wrap;
    height: calc(2em + 47px);
    overflow: hidden;
    background-color: rgba(36, 36, 36, 0.8);
    transition: height 0.5s;
}

    #bottom-image-filter[aria-hidden="true"] {
        height: 0;
    }

.bottom-slider-panel {
    display: flex;
    width: 100%;
    padding: 0 0.75em;
    box-sizing: border-box;
}

    .bottom-slider-panel[aria-hidden="true"] {
        display: none;
    }

.slider-button {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
}

    .slider-button.hover {
        /*color: cornflowerblue;*/
        color: #ff6804;
    }

.dialog-slider {
    flex: 1 0 auto;
    height: 44px;
    background: transparent;
    vertical-align: bottom;
}

.filter-list {
    display: flex;
    width: 100%;
    height: calc(100% + 17px);
    font-size: 0;
    white-space: nowrap;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
}

.filter-list-item {
    display: inline-block;
    flex: 1 0 auto;
    height: calc(2em + 3px);
    font-size: 1.6rem;
    text-align: center;
    list-style: none;
    cursor: pointer;
}

.filter-label {
    display: block;
    height: 2em;
    padding: 0 0.75em;
    font-size: inherit;
    color: #eee;
}

.filter-list-item[aria-selected="true"] > .filter-label {
    /*border-bottom: solid 3px cornflowerblue;
    color: cornflowerblue;*/
    border-bottom: solid 3px #ff6804;
    color: #ff6804;
}

.filter-list-item.hover > .filter-label, .filter-list-item[aria-pressed="true"] > .filter-label {
    /*color: cornflowerblue;*/
    color: #ff6804;
}

.filter-button {
    padding: 0 0.75em;
    font-size: inherit;
    color: white;
}

    .filter-button.hover, .filter-button[aria-pressed="true"] {
        /*color: cornflowerblue;*/
        color: #ff6804;
    }

/*#endregion*/
/*#region コマンドリスト*/
.bottom-toolbar-list {
    display: flex;
    font-size: 0;
}

.bottom-command-item {
    flex: 1 0 44px;
    text-align: center;
    list-style: none;
    height: 47px;
}

.bottom-toolbar-button {
    width: 100%;
    height: 44px;
    font-size: 24px;
    color: #eee;
    box-sizing: content-box;
}

    .bottom-toolbar-button.hover, .bottom-toolbar-button:focus {
        /*color: cornflowerblue;*/
        color: #ff6804;
    }

    .bottom-toolbar-button[aria-expanded="true"] {
        /*color: cornflowerblue;
        border-bottom: solid 3px cornflowerblue;*/
        color: #ff6804;
        border-bottom: solid 3px #ff6804;
    }

/*#endregion*/

/*#endregion*/
