@charset "UTF-8";

main{
    width: 80%;
    padding-left: 10%;
    padding-right: 10%;
}

.background{
    padding-top: 6rem;
}

.logoWrap{
    color: white;
    display: flex;
    align-items: center;
}
h1{
    margin-left: 1rem;
    font-size: 0.9rem;
}



/* 最初に見えるタイトルの設定 */

        /* 一番外枠　ポジションrelative用 */
        #topTitle{
            position: relative;
            padding: 16px;
        }

        /* 心理学とPSYCHOLOGYを横に並べるための箱 */
        #firstView{
            display: flex;
            align-items: center;
        }
        #firstView h2{
            margin: 0;
        }

        /* 日本語タイトル画像 */
        #firstViewPsychoJa{
            height: 124px;
            padding-left: 48px;
        }

        /* 英語タイトル画像 */
        #firstViewPsycho{
            height: 96px;
            padding-left: 32px;
            padding-bottom: 12px;
        }
        /* 英語の説明画像 　日本語の画像の下に余白があって消せないのでabsoluteにしている。修正したい*/
        #firstViewDescription{
            height: 48px;
            padding-left: 128px;
            position: absolute;
            top: 124px;
        }

        /* 横の英語のロゴ？的なやつ　レスポンシブで一番気をつける */
        #asidePsycho{
            width: 260px;
            position: absolute;
            right: 2%;
            top: 5rem;
            z-index: 1;
        }

/* メインの画像設定ここまで -------------------------------------------------------------------- */

/* タイル記事の設定 */


/* トップビューの最新記事　大きいイメージなど */
/* flexボックス用の箱。imageとタイトル・コンテンツを横に並べる */
#pickup{
    display: flex;
    justify-content: space-between;
    position: relative;
}
            /* 写真のサイズ設定 */
            .imageBox{
                display: flex;
                height: 25rem;
                width: 30rem;
                align-items: center;
                justify-content: center;
            }
            .pickupImage{
                max-height:25rem;
                max-width: 30rem;
            }
            .pickupTitle{
                font-size: 2rem;
                margin:8px;
            }
            /* タイトルと説明を囲っている箱。背景が白色になっている。 */
            #pickupWrap{
                position: absolute;
                background-color: white;
                left: 40%;
                width:  45%;
                padding-top: 2rem;
                padding-left: 2rem;
                padding-right: 100%; /*パディングを右に広げて、記事のボックスよりかなり右まで背景を付けている（ポジションをabsoluteで右にずらしているため、画面外まで広がっている）*/
                height: 1000px;
                box-shadow: 5px 5px 10px #aaa;
            }
            #pickupWrap p{
                max-height: 19rem;
                overflow-x: scroll;
            }


/*  pickupの大きい記事ここまで-------------------------------------------------------------------- */



/* ------------------最新記事を横に並べるためのflexボックスたち */

/* overflowでスクロールを設定するための一番外の箱。この箱の中、これより広い幅のリストを入れている */
.articles{
    position: relative;
    /* bigのほうの背景より上に重ねるために必要 */
    overflow: scroll;
    background-color: white;
    width: 88%;
    padding-left: 30%;
    margin-left: -30%;
    box-shadow: 3px 3px 5px #aaa;
}


            .articleList{
                display: flex;
                /* margin-bottom: 0; */
            }

            .articleItem{
                width: 16rem;
                height: 12rem;
                margin-right: 2rem;
                padding-right: 1rem;
            }
                    .articleImageResponsive{
                        height: 8em;
                        width: 11em;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                    }

                    .articleImage{
                        border-style: solid;
                        border-color: #777;
                        border-width: 1px;
                        max-height: 8em;
                        max-width: 11em;
                    }

                    .articleTitle{
                        font-size: 16px;
                        max-height: 3.5rem;
                        overflow-x: scroll;
                    }
                    .showScroll{
                        position: relative;
                    }

                    .scrollButton{
                        width:48px;
                        position: absolute;
                        bottom: 4rem;
                        opacity: 0.7;
                    }
                    .leftScrollButton{
                        left: -20px;
                    }
                    .rightScrollButton{
                        right: 140px;
                    }



/* リストスタイル終了-------------------------------------------------------------------- */


/* Subjectの設定 */

/* 心理学の科目の大きいタイトルのフォント */
.otherCategory{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}



#subject{
    display: flex;
}

#subject div{
    padding: 5% 10% 5% 10%;
}

        .otherList{
            font-size: 1.5rem;
            margin: 0;
        }
            .otherList li{
                font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
                padding-bottom: 5%;   
            }

/*subjectここまで--------------------------------------------------------------------  */

/* aboutの設定 */

#about{
    position: relative;
    /* bigのほうの背景より上に重ねるために必要 */
    overflow: scroll;
    background-color: white;
    width: 88%;
    padding-right: 30%;
    margin-right: -30%;
    box-shadow: 3px 3px 5px #aaa;
/* articlesを反転させているだけ */

    padding-left: 10%;
/* 上のSubjectと開始位置を合わせるためのもの */

    margin-bottom: 36px;

}

#about .otherList li{
    padding-bottom: 2%;
}

/* aboutの設定終わり--------------------------------------------------------------------  */


/* ------------------------------レスポンシブ対応デザイン---------------------------- */
@media(max-width: 1700px){
        /* 写真のサイズ設定 */
    .imageBox{
        height: 20rem;
        width: 25rem;
    }
    .pickupImage{
        max-height:20rem;
        max-width: 25rem;
    }
}


@media(max-width: 1280px){
    #subject div{
        padding: 5%;
    }
                /* 写真のサイズ設定 */
                .imageBox{
                    height: 17rem;
                    width: 17rem;
                }
                .pickupImage{
                    max-height:17rem;
                    max-width: 17rem;
                }
}
@media(max-width: 1220px){
    #pickupWrap p{
        max-height: 13rem;
    }
    #asidePsycho{
        width: 190px;
    }
    #navContent li{
        font-size: 22px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media(max-width: 1024px){
    #asidePsycho{
        width: 160px;
    }

    #navContent li{
        padding-left: 6px;
        padding-right: 6px;
    }

    .otherCategory{
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        font-size: 28px;
    }
    
            .otherList{
                font-size: 1rem;
                margin: 0;
            }
}


@media(max-width: 980px){
    main{
        width:90%;
        padding-left: 5%;
        padding-right: 5%;
    }
    section{
        margin-bottom: 2rem;
    }
    h1{
        margin: initial;
        line-height: 2.0;
    }
    h3 {
        font-size: 1.3rem;
    }
    p{
        line-height: 1.5;
    }
    .pickupTitle{
        font-size: 1.3rem;

    }
    .category{
        margin: 0;
        font-size: 32px;
    }
    .imageBox{
        height: 30rem;
        width: 40rem;
        padding-left: 3%;
    }
    .pickupImage{
        max-height:30rem;
        max-width: 40rem;
    }
    #navContent{
        padding-left: 0;
    }
    #navContent li{
    font-size: 20px;
    }

/* ---------------mobile header-------------------- */
            /* 一番外枠　ポジションrelative用 */
            .background{
                padding: 0;
            }

            #topTitle{
                padding-top: 7rem;
            }
    
            /* 心理学とPSYCHOLOGYを横に並べるための箱 */
            #firstView{
                justify-content: center;
            }
                
                        /* 日本語タイトル画像 */
                        #firstViewPsychoJa{
                            height: 64px;
                            padding: initial;
                            margin-bottom: -16px;
                        }
                
                        /* 英語タイトル画像 */
                        #firstViewPsycho{
                            height: 36px;
                            padding: 0 0 0 16px;
                            margin-bottom: -16px;
                        }
                        /* 英語の説明画像 　日本語の画像の下に余白があって消せないのでabsoluteにしている。修正したい*/
                        #firstViewDescription{
                            height: 40px;
                            width: 90vw;
                            padding: 0;
                            position: static;
                        }
                
                        /* 横の英語のロゴ？的なやつ　レスポンシブで一番気をつける */
                        #asidePsycho{
                            display: none;
                        }
/* ---------------------------------------------------------------------------------- */


    #pickup{
        display: flex;
        flex-direction: column;
        position: relative;
    }
    .slideShow{
        display: flex;
        justify-content: center;
        padding-left: 3%;
    }
    .imageBox{
        height: 15rem;
        width: 95%;
    }
    .pickupImage{
        max-height:15rem;
        max-width: 17rem;
    }
                /* タイトルと説明を囲っている箱。背景が白色になっている。 */
                #pickupWrap{
                    position: static;
                    background-color: white;
                    width:  90%;
                    padding: 0 120px 0 0;
                    height: 210px;
                }
                .pickupAbstractBox {
                    height: 120px;
                    overflow-x: scroll;
                }
                #pickupWrap p{
                    max-height: fit-content;
                }


    .articles{
        width: 98%;
    }
    .scrollButton{
        display: none;
    }

    #subject{
        flex-direction: column;
    }
    #subject div{
        padding: 0 0 0 10%;
    }
    .otherCategory{
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        font-size: 24px;
    }
    
            .otherList{
                font-size: 1rem;
                margin: 0;
            }
                .otherList li{
                    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
                    padding-bottom: 8px;   
                }

}

@media(max-width: 820px){
    #topTitle{
        padding-top: 5rem;
    }
}

@media(max-width: 460px){
    h3{
        font-size: 1rem;
    }
    #pickupWrap p{
        font-size: 10px;
    }
    .pickupTitle{
        margin:0px 4px 4px 4px;
        font-size: 1rem;

    }
    .imageBox{
        height: 10rem;
        width: 95%;
        justify-content: space-evenly;
    }
    .pickupImage{
        max-height:10rem;
        max-width: 17rem;
    }
    .articleItem{
        margin-right: 1rem;
    }
}