@charset "utf-8";

/* トップコンテンツ */
.top-image {
    width: 100%;
}

.top-image img {
    width: 100%;
}

.top-container {
    position: relative;
}

.top-position-wrapper {
    position: absolute;
    bottom: 50px;
    left: 30px;
}

.top-title {
    font-size: 3rem;
    font-weight: bold;
}

.sub-title {
    font-size: 2rem;
}

.top-description {
    font-size: 1.7rem;
    padding: 30px 0;
}

.top-description p {
    padding-bottom: 20px;
}

.filter-wrapper {
    border-top: 1px solid #707070;
    padding: 20px 5px;
    background: #fff;
}

.filter-flex {
    display: flex;
}

.filter-area {
    font-size: 1.1rem;
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
}

.filter-area label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.6rem;
}


.filter-area input {
    width: 75%;
    font-size: 1.6rem;
    margin: 0 auto;
    padding: 12px;
}

.filter-area:first-child {
    padding-bottom: 20px;
}

#filter-tag {
    cursor: pointer;
}

/* メインコンテンツ */
.main-wrapper {
    padding: 20px;
    background-color: #F5F5F5;
}

.search-title {
    font-weight: bold;
    font-size: 1.8rem;
}

.movie-tag {
    cursor: pointer;
}

.movie-tag.orange {
    background-color: #ff8c00
}

/* カテゴリで絞り込む */
.category-wrapper {
    width: 57%;
    margin: 30px auto;
}

.category-wrapper label {
    font-weight: bold;
    font-size: 1.3rem;
    padding-left: 10px;
}

.filter-container {
    width: 43%;
    margin: 0 auto;
    padding-top: 40px;
}

.category-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
    row-gap: 10px;
    list-style: none;
}

.category-lists li {
    padding: 5px 0 5px 6px;
    text-align: left;
    color: #fff;
    cursor: pointer;
}

.black-label {
    background-color: #4B4B4B;
}

.red-label {
    background-color: #C94647;
}

.orange-label {
    background-color: #D2803B;
}

.purple-label {
    background-color: #833FAD;
}

.blue-label {
    background-color: #5C99AC;
}

.yellow-label {
    background-color: #DBBD3F;
}

.yellowgreen-label {
    background-color: #8AC169;
}

.green-label {
    background-color: #2b5016;
}

.pink-label {
    background-color: #e792d0;
}

.filter-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* 検索開始ボタン */
.search-button {
    width: 130px;
    height: 40px;
    border-radius: 4px;
    display: block;
    color: #fff;
    cursor: pointer;
    background-color: #000;
    margin-left: 10px;
}

.search-button:hover {
    opacity: 0.7;
    transition: 0.6s;
}

/* 検索クリアボタン */
.clear-button {
    width: 130px;
    height: 40px;
    cursor: pointer;
}

.clear-button:hover {
    opacity: 0.7;
    transition: 0.6s;
}

/* コンテンツ */
.contents {
    margin-top: 70px;
    list-style: none;
    display: grid;
    column-gap: 10px;
    row-gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}

.contents li {
    background: #fff;
}

.content {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.content a {
    text-decoration: none;
    color: #000;
}

.content a:hover {
    opacity: 0.5;
    transition: 0.7s;
}


.content-info {
    width: 90%;
    margin: 0 auto;
    padding-top: 20px;
}

.content-info label {
    width: 50%;
    font-weight: bold;
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
    text-align: center;
    color: #fff;
    padding: 5px 0;
}


.content-tags {
    display: flex;
    margin-top: 20px;
}

.content-tag p {
    border: 1px solid #000;
    text-align: center;
}

.tag-image {
    border: none !important;
}

.tag-image img {
    width: 30px;
}

.tag-list li {
    font-size: 1.2rem;
    margin-bottom: 5px;
    margin-right: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    float: left;
    text-align: center;
    text-wrap: nowrap;
}

.tag-list li:first-child {
    width: 30px;
    padding: 0;
    border: none;
    margin-left: 0;
    display: inline-flex;
}

.tag-list li:first-child img {
    width: 25px;
}

.black-content-label {
    background-color: #4B4B4B;
}

.red-content-label {
    background-color: #C94647;
}

.orange-content-label {
    background-color: #D2803B;
}

.purple-content-label {
    background-color: #833FAD;
}

.blue-content-label {
    background-color: #5C99AC;
}

.yellow-content-label {
    background-color: #DBBD3F;
}

.yellow-green-content-label {
    background-color: #8AC169;
}

.green-content-label {
    background-color: #2b5016;
}

.pink-content-label {
    background-color: #e792d0;
}

.content-date {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0;
}

.content-title {
    font-size: 1rem;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 40px 20px 20px 20px;
    border: 1px solid #888;
    width: 80%;
    position: relative;
}

.modal-content label {
    display: flex;
    font-size: 1.6rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 20px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-subtitle {
    font-size: 2.2rem;
    font-weight: bold;
    border-bottom: 1px solid #000;
    margin-bottom: 30px;
    padding: 10px;
    background-color: #333;
    color: #fff;
}

.modal-items {
    width: 95%;
    margin: 0 auto 30px auto;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(4, 1fr);
}

.modal-box label input {
    margin-right: 5px;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    justify-content: space-evenly;
}

.modal-buttons button {
    width: 40%;
    padding: 20px 0;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    border: none;
}

.clearmodal-button {
    background-color: #ccc;
}

.completionmodal-button {
    background-color: skyblue;

}

.content-image img {
    width: 100%;
}

/* 動画を囲うdiv */
.content-image {
    position: relative;
    width: 100%;
    /* 横幅は100%にしておく(ここを変えたい場合は実装コード2の方法を確認してください) */
    height: 0;
    /* 高さは0にしておく(padding-topで高さを指定するため) */
    padding-top: 56.25%;
    /* 高さを指定(16:9) */
}

/* YouTube埋め込み用のiframe */
.content-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* タブレット */
@media screen and (max-width: 959px) and (min-width: 768px) {

    /* トップコンテンツ */
    .top-title {
        font-size: 3rem;
    }

    /* 動画を絞り込む */
    .filter-area {
        font-size: 1.6rem;
    }

    .filter-area input {
        font-size: 1.6rem;
    }

    /* キーワード ・　タグ */

    .filter-container {
        padding-top: 0;
    }

    .filter-area {
        display: block;
    }

    .filter-area input {
        width: 90%;
        display: block;
    }

    .modal-items {
        grid-template-columns: repeat(2, 1fr);
    }

    /* カテゴリで絞り込む */
    .filter-container {
        width: 40%;
    }

    .category-container {
        width: 60%;
    }

    .category-wrapper label {
        font-size: 1.1rem;
        padding-left: 5px;
    }

    /* ボタン関連 */
    .clear-button {
        width: 40%;
        height: 55px;
    }

    .search-button {
        width: 40%;
        height: 55px;
    }

    /* コンテンツ関連 */
    .content-info label {
        width: 60%;
    }

    .tag-list li {
        font-size: 1.1rem;
    }
}

/* スマートフォン */
@media screen and (max-width: 767px) {

    /* トップコンテンツ */

    .top-title {
        font-size: 2rem;
    }

    .top-position-wrapper {
        bottom: 0;
        left: 20px;
    }

    .search-title {
        font-size: 2rem;
        font-weight: bold;
        display: block;
        padding: 20px 0 0 10px;
    }

    .top-description {
        width: 90%;
        margin: 0 auto;
        padding: 30px 0;
        font-size: 1.4rem;
    }

    .top-description p {
        padding-bottom: 20px;
    }

    /* 動画を絞り込む */

    .main-wrapper {
        padding: 0;
    }

    .main-wrapper h2 {
        font-size: 2.5rem;
    }

    .filter-flex {
        display: block;
    }

    /* カテゴリで絞り込む */

    .filter-wrapper {
        width: 95%;
        margin: 0 auto;
        padding: 10px 5px;
    }

    .filter-container {
        width: 100%;
        padding-top: 10px;
    }

    .filter-area {
        display: block;
    }

    .filter-area label {
        display: inline-block;
        justify-content: center;
        font-size: 1.6rem;
        text-align: center;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .filter-area input {
        font-size: 1.4rem;
        width: 100%;
        display: block;
        margin: 0 auto;
        padding: 15px;
    }


    .category-wrapper {
        margin-top: 10px;
    }

    .category-label {
        display: block;
        font-size: 1rem;
        font-weight: bold;
    }

    .category-lists {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }

    .category-lists li {
        width: 100%;
        margin: 0 auto;
        font-weight: bold;
        margin-left: 5px;
        padding: 5px;
        display: block;
    }

    .category-wrapper {
        width: 100%;
    }

    .category-wrapper label {
        font-size: 1.3rem;
        padding-left: 6px;
    }

    .category-label {
        font-size: 2rem;
        padding: 20px;
    }

    .category-lists [type=checkbox] {
        transform: scale(1.2);
    }

    /* タグ */
    .modal-content {
        width: 90%;
    }

    .modal-content label {
        font-size: 1.5rem;
    }

    .modal-items {
        grid-template-columns: repeat(1, 1fr);
    }

    .modal-subtitle {
        font-size: 2rem;
    }

    .modal-buttons {
        position: fixed;
        display: flex;
        flex-flow: column;
        right: 30px;
        bottom: 20px;
    }

    .modal-buttons button {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
        font-size: 1.4rem;
        font-weight: bold;
        border-radius: 10px;
        color: #000;
        cursor: pointer;
        border: none;
    }

    .completionmodal-button {
        order: 1;
    }

    .clearmodal-button {
        order: 2;
    }

    /* ボタン関連 */

    .filter-button-wrapper {
        margin: 50px 0 20px 0;
        justify-content: space-evenly;
    }

    .clear-button {
        width: 45%;
        height: 90%;
        font-size: 1.6rem;
        font-weight: bold;
        padding: 10px 0;
        box-shadow: 0px 4px 2px #ccc;
    }

    .search-button {
        width: 45%;
        height: 90%;
        font-size: 1.6rem;
        font-weight: bold;
        padding: 10px 0;
        box-shadow: 0px 4px 2px #ccc;
    }

    /* コンテンツエリア */
    .contents {
        display: -webkit-block;
        display: block !important;
    }

    .content {
        width: 90%;
        padding-bottom: 20px;
        margin: 0 auto 40px auto;
    }

    .content-info label {
        width: 50%;
        font-size: 1.4rem;
        font-weight: bold;
        margin: 20px 0;
        padding: 10px 0;
    }

    .content-date {
        font-size: 2.5rem;
        margin: 5px 0;
    }

    .content-title {
        font-size: 2.6rem;
    }

    .content-tags {
        margin-top: 10px;
    }

    .tag-list li {
        font-size: 1.3rem;
        margin-right: 5px;
        margin-bottom: 5px;
    }


    .tag-list li:first-child {
        width: 30px;
        padding: 0;
        border: none;
        margin-left: 0;
        display: inline-flex;
    }

    .tag-list li:first-child img {
        padding-top: 5px;
    }
}