/*
Theme Name: Doors Video Site
Theme URI: https://yt.ytdoors.jp
Author: ykohashi
Author URI: https://yt.ytdoors.jp
Description: Doors自習塾の動画サイト用のテーマ
Version: 1.0
Tags: doors
*/

/* import font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* root */
:root {
    --text-color: #6b4505;
}
/* Reset */
a,
button {
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}
a:hover {
    text-decoration: none;
    color: var(--text-color);
}
img,
svg {
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}
button,
input,
textarea {
    outline: none;
    border: none;
    padding: 0;
    margin: 0;
    user-select: none;
}
html {
    font-size: 62.5%;
    box-sizing: border-box;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
ol,
ul,
li {
    margin: 0;
    padding: 0;
}
dl,
dd,
dt {
    margin: 0;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 30px);
    background-color: #f7f7eb;
}

main {
    flex: 1;
}

footer {
    text-align: center;
    height: 30px;
    line-height: 30px;
    border-top: 1px solid #adadad;
}

/* index CSS */
.mainContainer {
    width: 100%;
    margin: 0 auto;
    padding: 50px 0 0 0;
}

.hero {
    background: url('./images/topBar.webp') no-repeat bottom center / cover;
    padding-bottom: 175px;
}
.heroContainer {
    width: 100%;
    max-width: 1000px;
}
.heroContent {
    font-size: 24px;
    width: 50%;
}
.heroContent h1 {
    width: 50%;
}
.heroContent .title {
    width: 100%;
    height: 200px;
    background: url('./images/titleBg.webp') no-repeat center center / 90% 120px;
    position: relative;
}
.heroContent .title h2 {
    padding: 20px 0;
    font-size: 42px;
    line-height: 42px;
    color: var(--text-color);
}
.heroContent .title .catGif {
    top: -20px;
    left: -80px;
    height: 230px;
}
.heroContent .title .dogGif {
    top: -20px;
    right: -80px;
    height: 230px;
}
.heroContent .title .catGif p {
    top: 20px;
    font-size: 14px;
    color: #5d9d4c;
}
.heroContent .title .dogGif p {
    font-size: 14px;
    color: #5d9d4c;
}

.videoSelectBox {
    width: 100%;
    max-width: 1000px;
}
.videoSelectBox .selectBoxRow {
    width: 100%;
    gap: 20px;
}
.videoSelectBox .selectBoxItem {
    flex: 0 0 calc(50% - 20px);
    margin-bottom: 20px;
}
.videoSelectBox .selectBox {
    width: 100%;
    height: 75px;
    font-size: 24px;
    border: 1px solid var(--text-color);
    border-radius: 2rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 500;
}
.selectedTagBox {
    padding: 0 2rem;
}

.selectedTagBox .selectTag {
    min-width: 100px;
    width: auto;
    font-size: 16px;
    border-radius: 1.5rem;
    border: 1px solid var(--text-color);
    text-align: center;
    color: var(--text-color);
    cursor: pointer;
}
.subjectBlock,
.videoContainer,
.videoDetail,
.selectedTagBox,
.relatedVideos {
    width: 100%;
    max-width: 1000px;
}
.grassL,
.grassR {
    width: 120px;
    height: auto;
}
.videoItem {
    width: 100%;
    max-width: calc(33.333% - 20px);
    min-height: 200px;
    flex: 1 1 calc(33.3333% - 20px);
    margin: 10px;
    text-decoration: none;
}
.videoThumbnail {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border: 1px solid var(--text-color);
}
.videoThumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seeMoreButton {
    width: 200px;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border: 1px solid var(--text-color);
    border-radius: 2rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 500;
}

.videoInfo {
    padding: 10px 10px 10px 0;
}
.videoInfo p {
    font-size: 18px;
    padding: 8px 0 8px 0;
    color: var(--text-color);
    font-weight: 600;
}

.videoEmbed video {
    border: 1px solid var(--text-color);
}
.videoDes p {
    color: var(--text-color);
    font-weight: 600;
}

.relatedVideos h2 {
    color: var(--text-color);
    font-weight: 600;
}

.pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.pagination .dots {
    display: inline-block;
    padding: 8px;
    cursor: pointer;
    color: rgb(107, 69, 5, 0.5);
    font-size: 16px;
    font-weight: 600;
}
.pagination ul li a,
.pagination ul li span {
    display: inline-block;
    padding: 8px;
    cursor: pointer;
    color: rgb(107, 69, 5, 0.5);
    font-size: 16px;
    font-weight: 600;
}
.pagination ul li span {
    color: var(--text-color);
    text-decoration: underline;
}

.navigation {
    padding: 0 50px;
}
.navigation a p {
    font-size: 24px;
    position: relative;
}
.navigation a:first-child p::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    background: url('./images/navigation.webp') no-repeat top center / cover;
}
.navigation a:last-child p::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    background: url('./images/navigation.webp') no-repeat bottom center / cover;
}

#wpadminbar {
    padding: 0 20px;
    background-color: #175901;
}
#wp-admin-bar-wp-logo {
    display: none;
}
#wp-admin-bar-search {
    display: none;
}

@media (max-width: 1200px) {
    .hero {
        padding-bottom: 100px;
    }
}

@media (max-width: 992px) {
    .mainContainer {
        padding: 30px 0 0 0;
    }
    .hero {
        padding-bottom: 80px;
    }
    .videoSelectBox {
        flex-direction: column;
        gap: 10px;
    }
    .videoContainer,
    .videoDetail,
    .selectedTagBox,
    .heroContainer,
    .relatedVideos {
        padding: 0 16px;
    }
    .videoContainer {
        justify-content: flex-start !important;
    }
    .grassL,
    .grassR {
        display: none;
    }
    .seeMoreButton {
        margin-right: 20px;
    }
    .videoItem {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .videoItem {
        flex: 1 1 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
    .hero {
        padding-bottom: 70px;
    }
    .heroContent {
        width: 80%;
    }
    .heroContent h1 {
        width: 75%;
    }
    .heroContent .title h2 {
        font-size: 26px;
        line-height: 26px;
    }
    .videoSelectBox .selectBox {
        width: 250px;
        height: 50px;
        font-size: 18px;
    }
    .selectBoxItem {
        flex: 0 0 calc(100% - 20px);
        margin-bottom: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .videoContainer {
        justify-content: center !important;
    }
    .videoDetail {
        padding: 0;
    }
    .videoEmbed video {
        border: none;
    }
    .navigation {
        padding: 0 45px;
    }
    .navigation a p {
        font-size: 18px;
        position: relative;
    }
    .navigation a:first-child p::before {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        top: 50%;
        left: -30px;
        transform: translateY(-50%);
        background: url('./images/navigation.webp') no-repeat top center / cover;
    }
    .navigation a:last-child p::before {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        top: 50%;
        right: -30px;
        transform: translateY(-50%);
        background: url('./images/navigation.webp') no-repeat bottom center / cover;
    }

    #wpadminbar {
        padding: 0;
    }
}
