/* HTMLマニュアル レスポンシブ スタイルファイル */

/* PC 判定用 */
#mediaQueries {
    display: none;
    font-family: "pc";
}

@media screen and (max-width: 900px) {
    /* SP 判定用 */
    #mediaQueries {
        font-family: "sp";
    }


    .content {
        height: calc(100vh - 60px);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /*============================
    メニュー
    ============================*/
    .side-nav {
        width: min(80vw, 320px);
        flex: none;
        position: absolute;
        left: min(-80vw, -320px);
        background-color: #fff;
        z-index: 930;
    }

    body.menu-open .side-nav {
        left: 0 ;
    }

    /*============================
    検索フォーム
    ============================*/
    #search-keyword {
        display: none;
    }

    #popup_background {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background: #4E4E4E;
        opacity: 0.8;
        z-index: 920;
    }

    #popup_search {
        position: fixed;
        inset: 0;
        margin: auto;
        height: 71px;;
        width: 90vw;
        z-index: 940;
    }

    #popup_search form {
        display: flex;
        width: 100%;
        background: #eeeeee;
        padding: 15px 20px;
        border-radius: 3px;
    }

    #popup_search input {
        width: 90%;
        background: #fff;
        border-radius: 3px 0 0 3px;
        padding: 5px 7px;
        border: 1px solid #fff;
        font-size: 16px;
    }

    #popup_search input::placeholder {
        color: #9e9e9e;
    }

    #popup_search input:focus {
        outline: none;
        border-color: var(--honda-red-color)
    }

    #popup_search input:focus::placeholder {
        color: transparent; /* フォーカスしたときプレースホルダーを透明にして見えなくする */
    }

    #popup_search button {
        cursor: pointer;
        padding: 7px 10px;
        border: none;
        background-color: var(--honda-red-color);
        border-radius: 0 3px 3px 0;
        color: #fff;
        font-size: 18px;
        text-wrap: nowrap;
        text-align-last: center;
    }

    /*============================
    フッター
    ============================*/
    footer {
        display: block;
        height: 60px;
        background-color: #d20000;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }

    footer > * {
        cursor: pointer;
        width: 50px;
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #f5f5f5;
        text-align: center;
    }

    footer .icon_text {
        font-size: 12px;
        margin-top: 2px;
    }

    /*============================
    コンテンツ領域のヘッダー、フッター
    ============================*/
    /* ドキュメントタイトル */
    #content-header {
        font-size: 0.8rem;
        left: 50vw;
        max-width: 100vw;
    }

    /* コピーライト */
    #copyright {
        font-size: 0.6rem;
    }

    /*============================
    ページトップボタン
    ============================*/
    #page-top {
        bottom: 65px;
    }

    /*============================
    スクロールバー
    ============================*/
    /* コンテンツの縦スクロールバー */
    body {
        scrollbar-width: thin; /* 時間経過後、非表示になる */
    }

    /* コンテンツ内の要素の横スクロールバー */
    .scroll::-webkit-scrollbar {
        height: 0.2em; /* 常に表示 */
    }

    #search-keyword > input[type="text"] {
        width: 100%;
        left: 0;
        font-size: 0.8rem;
    }

    .scroll::-webkit-scrollbar-track-piece {
        background: #eee;
    }

    .scroll::-webkit-scrollbar-thumb {
        background: #ccc;
    }

    /*============================
    スクロールバー
    ============================*/
    /* コンテンツの縦スクロールバー */
    body {
        scrollbar-width: thin; /* 時間経過後、非表示になる */
    }

    /* コンテンツ内の要素の横スクロールバー */
    .scroll::-webkit-scrollbar {
        height: 0.2em; /* 常に表示 */
    }

    .scroll::-webkit-scrollbar-button {
        background: #888;
    }

    .scroll::-webkit-scrollbar-track-piece {
        background: #eee;
    }

    .scroll::-webkit-scrollbar-thumb {
        background: #ccc;
    }
}
