@charset "utf-8";

/* 
本cssは以下画面で使用する
・「開発辞典検索（サンプル）」画面
・「開発辞典検索」画面
*/

/* 「開発辞典検索（サンプル）」にのみ適用するデザイン */
#development-dictionary-trial-search {
    .contents h1 {
        width: 30%;
    }

    .search-area {
        width: 50%;
    }
}

/* 「開発辞典検索」にのみ適用するデザイン */
#development-dictionary-search {
    .contents h1 {
        width: 20%;
        min-width:202px;
    }

    .preview-history {
        margin-top: 0px;
        width: 100%;
    }

    .preview-history .rejoice-dictionary-info-header {
        background-color: #00B261;
        color: #fff;
        text-align: center;
        font-size: 18px;
        font-weight: 600;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .preview-history .rejoice-dictionary-info-msg-area {
        border: 2px solid #00B261;
        margin-bottom: 25px;
        overflow-y: auto;
        height: 100px;
    }

    .preview-history .rejoice-dictionary-info-msg-rows {
        padding-top: 5px;
        font-size: 14px;
    }

    .preview-history .rejoice-dictionary-info-msg-rows .contents-name {
        text-decoration: underline;
        cursor: pointer;
    }

    .search-area {
        width: 60%;
    }

    @media (max-width: 1025px) {
        .search-area {
            width: 52%;
        }
    }

    @media (max-width: 1023px) {
        .search-area {
            width: 50%;
        }
    }

    @media (max-width: 767px) {
        .rejoice-dictionary-info-area {
            margin-top: 10px;
        }
    }

    @media (max-width: 415px) {
        .rejoice-dictionary-info-header {
            font-size: 15px;
        }
    }

    @media (max-width: 376px) {
        .rejoice-dictionary-info-header {
            font-size: 12px;
        }
    }
}

/* 共通して適用するデザイン */
#development-dictionary-trial-search,
#development-dictionary-search {
    .contents h1 {
        font-size: 22px;
        text-align: left;
        margin-top: 20px;
        margin-bottom: 20px;
        float: left;
    }

    #searchTxt {
        display: none;
        width: 73%;
        font-size: 15.5px;
        border-radius: 3px;
    }

    #searchTxt,
    #searchType {
        border: 2px solid #00B261;
        padding: 0.2em 0.5em;
        border-radius: 3px;
    }

    .searchBtn {
        display: inline;
        border: 2px solid #00B261;
        padding: 0.2em 0.5em;
        cursor: pointer;
        font-size: 15px;
        border-radius: 3px;
        margin-left: -1px;
    }

    .rejoice-dictionary-category-area {
        padding-right: 0%;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .rejoice-dictionary-category-area .category-btn {
        min-width: 18.8%;
        margin-right: 0.5%;
        margin-bottom: 10px;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 15px;
        padding-right: 15px;
        background: #f5f5f5;
        text-align: center;
        box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 6px 0 rgba(0, 0, 0, 0.12);
        position: relative;
        border: 0;
        cursor: pointer;
        border-radius: 2px;
        text-transform: none;
        text-decoration: none;
        transition: background-color 0.2s ease, box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none !important;
        color: #000;
        max-width: 50%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 14px;
    }

    .rejoice-dictionary-category-area .current {
        background-color: #00B261;
        color: #fff;
    }

    .open-close-area {
        margin-left: 2%;
        overflow: hidden;
        margin-top: 15px;
        float: left;
    }

    .open-close-area .open-btn,
    .open-close-area .close-btn {
        background: #00B261;
        padding: 5px 10px;
        color: #fff;
        width: 80px;
        float: right;
        margin-left: 10px;
        text-align: center;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }

    .contents {
        width: 95%;
        float: left;
    }

    .search-area .fa-times-circle {
        position: absolute;
        margin-left: -30px;
        margin-top: 7px;
        font-size: 1.66em;
        color: #00B261;
        cursor: pointer;
        display: none;
    }

    .search-area {
        float: left;
        margin-top: 15px;
    }

    .rejoice-dictionary-file-btn {
        display: inline-block;
        background-color: #00B261;
        color: #FFF;
        font-size: 1em;
        line-height: 1;
        text-decoration: none;
        letter-spacing: 0.05em;
        padding: 0.4em 0.5em;
        border-radius: 3px;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);
        -webkit-tap-highlight-color: transparent;
        transition: .3s ease-out;
        border: 2px solid #00B261;
    }

    .rejoice-dictionary-rows {
        font-size: 14px;
        margin-right: 2%;
    }

    .rejoice-dictionary-rows .header {
        padding-top: 10px;
        padding-bottom: 10px;
        cursor: pointer;
        border-left: 5px solid #00B261;
        font-size: 16px;
        padding-left: 10px;
        border-bottom: 1px solid #DDD;
        background: #ffffff;
        background: -moz-linear-gradient(top, #ffffff 1%, #eaeaea 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#ffffff), color-stop(100%,#eaeaea));
        background: -webkit-linear-gradient(top, #ffffff 1%,#eaeaea 100%);
        background: -o-linear-gradient(top, #ffffff 1%,#eaeaea 100%);
        background: -ms-linear-gradient(top, #ffffff 1%,#eaeaea 100%);
        background: linear-gradient(top, #ffffff 1%,#eaeaea 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 );
        box-shadow: 0px 0px 0px 1px rgba(155,155,155,0.3), 1px 0px 0px 0px rgba(255,255,255,0.9) inset, 0px 2px 2px rgba(0,0,0,0.1);
        word-break: break-all;
        height: auto;
        min-width: auto;
    }

    .rejoice-dictionary-rows .split-rows {
        min-height: 50px;
        margin-top: 5px;
        overflow-y: hidden;
        clear: both;
        border-bottom: 1px solid #ddd;
    }

    .rejoice-dictionary-rows .split-rows .left-area {
        width: 49%;
        float: left;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .rejoice-dictionary-rows .split-rows .right-area {
        width: 51%;
        float: right;
        margin-top: 10px;
    }

    .rejoice-dictionary-rows .split-area {
        width: 98%;
        margin-left: 2%;
        overflow: inherit;
        padding-top: 0px;
    }

    .rejoice-dictionary-rows .split-area .preview-btn {
        width: 70px;
        float: left;
    }

    .rejoice-dictionary-rows .split-area .download-btn,
    .rejoice-dictionary-rows .split-area .rejoice-dictionary-video-btn {
        width: 80px;
        float: left;
        margin-left: 10px;
    }

    .rejoice-dictionary-rows .split-area .download-btn.reference-btn,
    .rejoice-dictionary-rows .split-area .download-btn.reference-empty-btn {
        width: 110px;
    }

    .rejoice-dictionary-rows .new-mark {
        width: 65px;
        margin-right: 10px;
        display: inline-block;
        float: left;
        background-color: #fff;
        color: #f00;
        font-size: 1em;
        line-height: 1;
        text-decoration: none;
        letter-spacing: 0.05em;
        padding: 0.4em 0.5em;
        border-radius: 3px;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
        transition: .3s ease-out;
        border: 2px solid #fff;
        font-weight: 600;
    }

    .rejoice-dictionary-name {
        margin-top: 3px;
        word-break: break-all;
    }

    .rejoice-dictionary-rows .empty-mark {
        width: 65px;
        margin-right: 10px;
        display: inline-block;
        float: left;
        background-color: #FFF;
        color: #FFF;
        font-size: 1em;
        line-height: 1;
        text-decoration: none;
        letter-spacing: 0.05em;
        padding: 0.4em 0.5em;
        border-radius: 3px;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
        transition: .3s ease-out;
        border: 2px solid #fff;
    }

    .preview-btn.btn-empty,
    .download-btn.btn-empty,
    .rejoice-dictionary-video-btn.btn-empty{
        color: #555;
        font-size: 20px;
        text-align: center;
    }

    /* 1240px 未満 (ほかのCSSとの兼ね合いで not を付けて未満としている) */
    @media not (min-width: 1240px) {

        .open-close-area .open-btn,
        .open-close-area .close-btn {
            width: 62px;
        }

        .open-close-area {
            margin-left: 1%;
        }

        .rows-detail .split-rows .left-area {
            width: 37%;
        }

        .rows-detail .split-rows .right-area {
            width: 63%;
        }
    }

    @media (max-width: 1025px) {

        .contents h1 {
            font-size: 20px;
            width: 22%;
            min-width: 190px;
        }  

        .search-area {
            width: 52%;
        }

        .rows-detail .split-rows .left-area {
            width: 30%;
        }

        .rows-detail .split-rows .right-area {
            width: 70%;
        }

        .rows-detail .split-rows:last-child {
            border-bottom: 0px;
        }

        .rejoice-dictionary-rows:last-child .rows-detail .split-rows:last-child {
            border-bottom: 1px solid #ddd;
        }
    }

    @media (max-width: 896px) {
        .rows-detail .split-rows .left-area {
            width: 22%;
        }

        .rows-detail .split-rows .right-area {
            width: 78%;
        }
    }

    @media (max-width: 767px){
        .rows-detail .split-rows .left-area {
            width: 100%;
        }

        .rows-detail .split-rows .right-area {
            width: 100%;
            margin-bottom: 15px;
        }

        .rejoice-dictionary-rows {
            margin-right:0;
        }

        .contents h1 {
            width: 100%;
            margin-bottom: 0;
        }

        .search-area {
            width: 74%;
            margin-top:5px;
        }

        .open-close-area {
            width: 25%;
            margin-top: 7px;
        }

        .rejoice-dictionary-rows .split-area .preview-btn {
            width: 50px;
        }
    }

    @media (max-width: 640px){
        .contents h1 {
            width: 100%;
            font-size: 22px;
            margin-bottom: 10px;
        }

        .open-close-area .open-btn,
        .open-close-area .close-btn {
            width: 48%;
            float: none;
            display: inline-block;
            margin-left: auto;
            margin-right: auto;
        }

        .search-area {
            width: 100%;
        }

        .open-close-area {
            width: 100%;
            text-align: center;
            margin-left: 0;
        }
    }

    @media (max-width: 575px) {

        .rejoice-dictionary-rows .new-mark {
            width: 100%;
            font-size: 12px;
            margin-right: 5px;
            margin-bottom: 10px;
        }

        .rejoice-dictionary-rows .split-area .preview-btn,
        .rejoice-dictionary-rows .split-area .download-btn,
        .rejoice-dictionary-rows .split-area .rejoice-dictionary-video-btn {
            width: 45% !important;
            margin:0 0 10px 10px;
            border-radius:0;
        }

        .rejoice-dictionary-rows .empty-mark {
            display: none;
        }

        .rejoice-dictionary-rows .btn-empty {
            display: none;
        }

        .rows-detail .split-rows .right-area div {
            border-radius:0;
        }
    }

    @media (max-width: 450px) {

        .rejoice-dictionary-category-area .category-btn {
            width: 48.7%;
        }
    }

    @media (max-width: 415px){
        .search-area {
            width: 100%;
            margin-top: 0;
        }

        .rejoice-dictionary-rows .split-area .preview-btn {
            width: 100%;
            font-size: 12px;
        }

        .rows-detail .split-rows .left-area {
            width: 100%;
            margin-bottom: 10px;
        }

        .rows-detail .split-rows .right-area {
            width: 100%;
        }

        .rejoice-dictionary-rows .split-area .download-btn,
        .rejoice-dictionary-rows .split-area .download-btn.reference-btn,
        .rejoice-dictionary-rows .split-area .rejoice-dictionary-video-btn {
            font-size: 12px;
        }
    }

    @media (max-width: 376px){
        .rejoice-dictionary-rows .split-area .preview-btn {
            width: 100%;
            font-size: 12px;
        }

        .rejoice-dictionary-rows .new-mark {
            width: 100%;
            font-size: 12px;
            margin-right: 5px;
        }

        .rejoice-dictionary-rows .empty-mark {
            width: 50px;
            margin-right: 3px;
            display: none;
        }

        .rejoice-dictionary-rows .btn-empty {
            display: none;
        }
    }

    @media (max-width: 360px){
        .rejoice-dictionary-rows .split-area .preview-btn {
            font-size: 12px;
            width: 100%;
        }

        .rejoice-dictionary-rows .new-mark {
            font-size: 12px;
            margin-right: 5px;
            width: 100%;
            margin-bottom: 10px;
        }

        .rejoice-dictionary-rows .empty-mark {
            display: none;
        }
    }

    @media (max-width: 340px) {
        .contents h1 {
            font-size: 20px;
        }
       .rejoice-dictionary-category-area .category-btn {
            width: 48%;
        }
    }

    @media (max-width: 321px){
        .rejoice-dictionary-rows .split-area .preview-btn {
            width: 45px;
            font-size: 12px;
            width: 100%;
        }

        .rejoice-dictionary-rows .new-mark {
            width: 45px;
            font-size: 12px;
            margin-right: 5px;
            width: 100%;
            margin-bottom: 10px;
        }

        .rejoice-dictionary-rows .empty-mark {
            width: 50px;
            margin-right: 3px;
            display: none;
        }
    }

    /*  IEのみ  */
    @media all and (-ms-high-contrast: none) {
        #searchTxt,
        #searchType {
            display: inline-block;
            height: 31px;
        }

        .searchBtn {
            display: inline-block;
            padding: 3px;
        }
    }
}
