@charset 'utf-8';

.work-page {
    max-width: 1200px;
    margin: 0 auto;
}

.work-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 160px 0 5px;
}

.work-category {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 60px;
}

.work-img img {
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.6);

    width: 100%;
}
.work-img.work-comp{
    margin-top: 40px;
}


.work-url{
    color: #0000ee;
    text-decoration: none;
    border-bottom: 1px solid #0000ee;
}

.work-disc-title {
    display: flex;
    line-height: 3rem;
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 20px;
}
.work-disc-title:nth-child(4){
    margin-top: 100px;
}
/* 最初の.work-disc-title 「URL」のmargin-topを100pxにする。 下記のどれも同じ指定。

    .work-page :nth-child(4){
    margin-top: 100px;}

    .work-disc-title:nth-child(4){
    margin-top: 100px;}

    .work-page div:nth-of-type(2){
    margin-top: 100px;}
}
 */
/* 
擬似クラス使い方。
.work-page:first-of-type{
    color: red;
}  */
/* .work-pageの子要素の要素の最初の文字を赤くする。ここでは h3 p div(の最初はimgなので変わらず）span a の文字が赤くなった。
;first-of-typeに半角を入れない場合articleの兄弟要素の文字色がredになるが、兄弟要素がないためarticle内の子要素の文字が赤くなった。*/


.work-disc-title::before {
    content: '';
    display: block;
    width: 5px;
    height: 3rem;
    background-color: #2e2e2e;
    margin-right: 5px;
}

.work-disc a {
    color: #0000ee;
    text-decoration: none;
    border-bottom: 1px solid #0000ee;
}

/* works_home_button */

.works_home_btn {
    display: block;
    text-align: center;
    line-height: 50px;
    width: 200px;
    height: 50px;
    margin: 100px auto;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background-color: teal;
    border-radius: 30px;
    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.7);
}
.works_home_btn:hover{
    opacity: .6;
}

/* slick設定 */

.slider div img{
    width: 100%;
    margin: 0 auto;
}
.slick-dots li button:before {
    color: #2e2e2e;
    font-size: 30px;
  }
  @media screen and (min-width:768px){
    .slider{
        width: 700px;
        margin: 0 auto
        ;
    }
    .slider div img{
        width: 100%;
        height: 90vh;
        margin: 0 auto;
        object-fit: contain;
    }
  }