@charset "UTF-8";
/* 
Thema Name:育休エンジニアblog
Author: motoki
Description: 個人ブログ
Version: 1.0
*/

a{
    text-decoration: none;
    color: black;
}
a:hover,
a article:hover,
a li:hover,
.page-numbers{
    transition: 0.5s;
    opacity: 0.7;
}
li{
    list-style: none;
}
img{
    box-shadow: 1px 1px 10px #696969;
}
section{
    width: 95%;
    margin: 2rem auto;
    transition: 1s;
    transform: translateY(50px);
    opacity: 0;
}
section:nth-child(2n){
    background-color: #fff;
}
section.target.show{
    opacity: 1;
    transform: none;
}
section h2{
    text-align: center;
    font-size: 2rem;
}
.sub-title{
    text-align: center;
    color: #a9a9a9;
}
body{
    background-color: #f5f5f5;
    font-family: 'Noto Sans JP', sans-serif;
}

/* header */
.main-img{
    width: 100%;
    height: 85vh;
    background-image: url(images/main-view.JPG);
    background-repeat: none;
    background-position: center;
    background-size: cover;
    display: table;
    position: relative;
}
.main-view{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    background-color: rgba(255,255,255,0.5);
    z-index: 10;
}
.title{
    line-height: 100px;
    margin-left:4rem;
}
.main-view ul{
    display: flex;
    align-items: center;
    margin-top: 0.7rem;
}
.main-view ul li{
    margin-right: 1rem;
}
.main-view ul li:last-child{
    margin-right: 4rem;
}
.main-view ul li a{
    opacity: 0.6;
}
.main-list{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}
form{
    position: relative;
    margin-right: 4rem;
}
.search{
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    border-radius: 10px;
    border: 1px black solid;
    background-color: #fff;
}
.search-button{
    position: absolute;
    top: 5px;
    right: 15px;
    z-index: 20;
}
.search-result form{
    text-align: center;
    margin: 1rem auto;
    width: 70%;
    position: relative;
}
.search-result .search{
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    border-radius: 10px;
    border: 1px black solid;
    background-color: #fff;
    width: 100%;
}
.search-result .search-button{
    position: absolute;
    top: 5px;
    right: 15px;
    z-index: 20;
}
.humburger-menu{
    opacity: 0;
    visibility: collapse;
    display: table;
}
.humburger-menu-else{
    opacity: 0;
    visibility: collapse;
    display: table;
}
.menu{
    display: none;
}


/* about */
.about{
    display: flex;
    width: 80%;
    margin: 2rem auto;
    padding: 2rem 2rem 1rem 2rem;
    background-image: url(images/stone.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    border-radius: 10px;
}
.about.show::before{
    position: absolute;
    background: inherit;
    content: "";
    top: 3px;
    right: 3px;
    left: 3px;
    bottom: 3px;
    filter: blur(2px);
    z-index: -1;
    background-color: rgba(0,0,0,0.8);
}
.about div{
    width: 50%;
    height: 400px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about div img{
    border-radius: 50%;
    height: 80%;
    width: 70%;
}
.aboutme-text{
    flex-direction: column;
}
.aboutme-text h3{
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.aboutme-text p{
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
}
.about-button{
    width: 180px;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid gray;
    background-color: #fff;
    border-radius: 10px;
    text-align: center !important;
    transition: 0.3s;
}
.about-portfolio{
    width: 180px;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid gray;
    background-color: #fff;
    border-radius: 10px;
    text-align: center !important;
    transition: 0.3s;
    font-size: 0.8rem;
}
.about-button:hover,.about-portfolio:hover{
    transform: scale(1.1);
}

/* new */
.news{
    width: 100vw;
    margin-top: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.swiper2{
    margin: 3rem auto 0 auto;
    max-width: 70%;
}
.swiper-slide{
    display: flex;
    height: 150px;
    margin-bottom: 2rem;
    transition: 0.5s;
}
.swiper-slide:hover{
    transform: scale(1.1);
}
.slide-img{
    width: 50%;
    text-align: center;
}
.slide-img img{
    width: 58%;
    height: 100%;
    border-radius: 20px;
}
.slide-text{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.slide-text h3{
    margin-top: 0.5rem;
    text-align: center;
    font-size: 1rem;
}
.slide-text p{
    font-size: 0.8rem;
    color: gray;
    margin: 1rem 2rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.next-button{
    text-align: center;
    margin: 3rem;
}
.next-button button{
    padding: 1rem 2rem;
    background-color: #f5f5f5;
    border-radius: 5px;
    border: #000 solid 1px;
    font-size: 1.5rem;
    transition: 0.3s;
}
.next-button button:hover{
    transform: scale(1.1);
}

/* ページネーション */
.nav-links{
    margin: 2rem 0;
}
.page-numbers{
    background-color: #fff;
    border: #000 solid 2px;
    border-radius: 100%;
    padding: 0.8rem;
    margin: 0.5rem !important;
    line-height: 10px;
}
.current{
    margin: 2rem;
    background-color: #000;
    color: #fff;
}
.dots{
    margin: 2rem;
}

/* category */
.category{
    width: 100vw;
}
.category ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.category ul a li{
    width: 28vw;
    margin: 2rem 1rem 1rem 1rem;
    text-align: center;
    transition: 0.5s;
}
.category ul a li:hover{
    transform: scale(1.1);
}
.category ul a li img{
    width: 80%;
    height: 150px;
    border-radius: 20px;
}
.category ul a li h3{
    margin-top: 1rem;
}
.menu-icon{
    vertical-align: middle;
    padding-right: 10px;
}

/* note */
.note-text{
    text-align: center;
    margin: 1.5rem 0;
}
.note-text h3{
    margin-bottom: 1rem;
}

/* footer */
footer{
    background-color: #fff;
    display: flex;
    padding: 2rem 0;
    align-items: center;
    justify-content: space-around;
}
footer div{
    width: 33%;
    height: 100%;
    text-align: center;
}
footer div ul li{
    margin-top: 2rem;
}
footer div ul li:last-child{
    margin-bottom: 1rem;
}
.note-area,.timeline{
    margin-top: 0;
}
.twitter-timeline{
    width: 80%;
    margin: 0 auto;
}
.copy{
    height: 3rem;
    text-align: center;
    line-height: 3rem;
}
.nav-links{
    display: flex;
    justify-content: center;
}
.nav-links a{
    margin: 2rem;
}

/* single.php */
.content-section{
    background-color: #fff;
    margin: 0 auto;
    padding: 2rem;
}
.content-sumbnail{
    margin: 0 auto;
    width: 60%;
    height: 350px;
}
.content-sumbnail img{
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.content-title{
    margin-top: 2rem;
}
.content-time{
    text-align: end;
    margin-top: 2rem;
}
.content{
    margin-top: 2rem;
}
.wp-block-heading{
    margin: 1rem auto;
}

/* 吹き出し */
.wp-block-cocoon-blocks-balloon-ex-box-1{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
}
.speech-icon{
    margin: 2rem 0 0 0;

}
.speech-icon-image{
    width: 150px;
    height: 150px;
    border-radius: 6px;
}
.speech-name{
    display: none;
}
.speech-balloon{
    border: #ccc solid 2px;
    border-radius: 6px;
    margin-left: 50px;
    padding: 1rem;
    position: relative;
}
.speech-balloon::before{
    position: absolute;
    content: "";
    width: 25px;
    height: 25px;
    border: #ccc solid 2px;
    border-radius: 100px;
    left: -30px;
    top: 10px;
}
.speech-balloon::after{
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    border: #ccc solid 2px;
    border-radius: 100px;
    left: -45px;
    top: 28px;
}

/* 404.php */
.error{
    width: 80%;
    margin: 7rem auto;
    text-align: center;
}


/* レスポンシブ */
@media(max-width: 1050px){
    section h2{
        text-align: center;
        font-size: 1.5rem;
    }
    .sub-title{
        text-align: center;
        color: #a9a9a9;
    }

    /* header */
    header{
        position: relative;
    }
    .main-img{
        height: 70vh;
    }
    .title{
        font-size: 1.3rem;
        margin-left: 2rem;
        z-index: 10;
    }
    .title.active{
        color: #fff;
        z-index: 50;
    }
    .main-view{
        height: 80px;
    }
    .main-view ul,.main-list{
        display: none;   
    }
    .humburger-button{
        width: 40px;
        height: 40px;
        box-shadow: 1px 1px 10px #000;
        background-color: #fff;
        border-radius: 10px;
        position: absolute;
        top: 15px;
        right: 10px;
        margin-right: 1rem;
        z-index: 50;
    }
    .humburger-button span:first-child{
        width: 50%;
        height: 2px;
        content: '';
        position: absolute;
        top: 40%;
        left: 10px;
        background-color: #000;
        transition: 0.3s;
    }
    .humburger-button span:last-child{
        width: 50%;
        height: 2px;
        content: '';
        position: absolute;
        top: 60%;
        left: 10px;
        background-color: #000;
        transition: 0.3s;
    }
    .humburger-button.active span:first-child{
        transform: rotate(45deg);
        top: 20px;
    }
    .humburger-button.active span:last-child{
        transform: rotate(-45deg);
        top: 20px;
    }
    .humburger-menu{
        transition: 1s;
        transform: translateY(-100%);
    }
    .humburger-menu.active{
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        width: 100%;
        height: 45vh;
        background-color: rgba(0,0,0,0.8);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 20;
        color: #fff;
    }
    .humburger-menu.active ul{
        background-color: rgba(0,0,0,0);
    }
    .humburger-menu.active h1{
        color: #fff;
        height: 80px;
        line-height: 80px;
    }
    .humburger-menu.active ul{
        position: absolute;
        top: 4rem;
        left: 3rem;
    }
    .humburger-menu.active ul li{
        margin-bottom: 1rem;
    }
    .humburger-menu.active ul li:first-child{
        margin-top: 1.7rem;
    }
    .humburger-menu.active ul li:last-child{
        margin-bottom: 1rem;
    }
    .humburger-menu.active ul li a{
        color: #fff;
    }
    .humburger-menu-else{
        transform: translateY(-200%);
        transition: 1s;
        visibility: collapse;
        display: table;
    }
    .humburger-menu-else.active{
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        width: 100%;
        height: 45vh;
        background-color: rgba(0,0,0,0.8);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 20;
        color: #fff;
    }
    .humburger-menu-else.active ul{
        background-color: rgba(0,0,0,0);
    }
    .humburger-menu-else.active h1{
        color: #fff;
        height: 80px;
        line-height: 80px;
    }
    .humburger-menu-else.active ul{
        position: absolute;
        top: 4rem;
        left: 3rem;
    }
    .humburger-menu-else.active ul li{
        margin-bottom: 1rem;
    }
    .humburger-menu-else.active ul li:first-child{
        margin-top: 1.7rem;
    }
    .humburger-menu-else.active ul li:last-child{
        margin-bottom: 1rem;
    }
    .humburger-menu-else.active ul li a{
        color: #fff;
    }
    form{
        position: absolute;
        bottom: 1rem;
        left: 3rem;
    }


    /* メニュー */
    body{
        position: relative;
    }
    .menu{
        display: block;
        height: 10vh;
        width: 100vw;
        z-index: 10;
        background-color: #fff;
        position: sticky;
        top: 0;
        left: 0;
    }
    .menu ul{
        display: flex;
        width: 100vw;
        height: 100%;
        justify-content: space-around;
        align-items: center !important;
        padding-left: 0;
        margin: 0;
    }
    .menu ul li{
        width: 6rem;
        height: 6vh;
        line-height: 6vh;
        text-align: center;
        background-color: #f5f5f5;
        border-radius: 10%;
    }
    
    /* about */
    .about{
        flex-direction: column;
    }
    .about div{
        margin: 0 auto;
    }
    .about-img{
        height: 150px !important;
        width: 150px !important;
    }
    .about div img{
        border-radius: 50%;
        height: 100%;
        width: 100%;
    }
    .aboutme-text{
        flex-direction: column;
        width: 90% !important;
        height: auto !important;
    }
    .aboutme-text h3{
        font-size: 1.2rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    .aboutme-text p{
        font-size: 0.8rem;
        text-align: start;
        color: #696969;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .about-button{
        width: 120px;
        height: 40px !important;
        line-height: 40px;
        padding: 0;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border: 1px solid gray;
        background-color: #fff;
        border-radius: 10px;
        transition: 0.3s;
    }

    /* news */
    .news{
        width: 100%;
        margin-bottom: 0;
    }
    .news h2,.news p{
        text-shadow: none;
    }
    .swiper2{
        max-width: 90%;
        margin: 1rem auto;
    }
    .swiper-slide {
        align-items: center;
        height: 100%;
    }
    .slide-img{
        width: 40%;
        height: 100%;
        text-align: center;
    }
    .slide-img img{
        width: 100%;
        height: 100%;
        border-radius: 20px;
        transition: 0.3s;
    }
    .slide-text{
        width: 60%;
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .slide-text h3{
        text-align: center;
        font-size: 1rem;
    }
    .slide-text p{
        font-size: 0.8rem;
        color: gray;
        margin: 0.5rem 1rem
    }
    .next-button{
        text-align: center;
        margin: 2rem 2rem 0 2rem;
    }
    .next-button button{
        padding: 0.8rem 1.8rem;
        background-color: #f5f5f5;
        border-radius: 5px;
        border: #000 solid 1px;
        font-size: 1rem;
    }

    /* ページネーション */
    .nav-links{
        max-width: 80vw;
        margin: 0 auto;
    }
    .page-numbers{
        background-color: #fff;
        border: #000 solid 0.5px;
        border-radius: 100%;
        padding: 0.5rem;
        margin: 0.3rem !important;
        line-height: 8px;
        font-size: 0.8rem;
    }
    .current{
        margin: 2rem;
        background-color: #000;
        color: #fff;
        font-size: 0.8rem;
    }
   

    /* category */
.category{
    width: 100vw;
}
.category h2,.category p{
    text-shadow: none;
}
.category ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.category ul a li{
    width: 40vw;
    margin: 2rem 1rem 1rem 1rem;
    text-align: center;
}
.category ul a li img{
    width: 100%;
    height: 120px;
    border-radius: 20px;
    transition: 0.5s;
}
.category ul a li h3{
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* footer */
footer{
    display: flex;
    flex-direction: column;
}
footer div{
    width: 100%;
}
.footer-menu{
    display: none;
}
.twitter-timeline{
    margin: 0;
    width: 100%;
}

/* single.php */
.content-sumbnail{
    width: 80%;
    height: 200px;
}


/* 吹き出し */
.wp-block-cocoon-blocks-balloon-ex-box-1{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    margin: 2rem auto;
}
.speech-icon-image{
    width: 80px;
    height: 80px;
    border-radius: 6px;
}
.speech-balloon{
    border: #ccc solid 2px;
    border-radius: 6px;
    margin-top: 1rem;
    margin-left: 0;
    padding: 1rem;
    position: relative;
}
.speech-balloon::before{
    position: absolute;
    content: "";
    width: 25px;
    height: 25px;
    border: #ccc solid 2px;
    border-radius: 100px;
    left: 37%;
    top: -30px;
}
.speech-balloon::after{
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    border: #ccc solid 2px;
    border-radius: 100px;
    left: 30%;
    top: -40px;
}
}

/* wordpress設定 */
.is-style-sticky-blue{
    margin: 0 auto;
    width: 80%;
    padding: 1rem;
    border-radius: 10px;
    border: #000 double 2px;
    background-color: #dcdcdc;

}
.wp-block-heading{
    font-size: 1.5rem;
}
