@charset "UTF-8";

html {
    font-size: 100%;
}

body {
    background-color: #f0f0f0;
    color: #000;
    font-size: 0.875rem;
}

a {
    color: #000;
    font-size: 0.875rem;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

li {
    list-style: none;
}

.logo {
    width: 100px;
    line-height: 1px;
    margin-right: 60px;
}

.logo a {
    display: block;
}



/*
横幅を設定するための共通クラス
*/
.wrapper {
    width: 100%;
    max-width: 1032px;
    padding: 0 16px;
    margin: 0 auto;
}
/*===============================
 link-btn-small
 ================================*/
.link-btn-small-area{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}
a.link-btn-small{
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
    background: transparent;
    
    text-align: center;
    
    border: 2px solid #333;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 10px 50px;
    overflow: hidden;
    transition: .3s;
}
a.link-btn-small:before{
    content: "";
    width: 120%;
    height: 200%;
    position: absolute;
    top: -50%;
    right: 0;
    z-index: -1;
    background: #333;
    border-radius: 0 100% 100% 0;
    transform: translateX(-100%);
    transition: transform ease .3s;
}
a.link-btn-small:hover{
    color: #fff;
}
a.link-btn-small:hover:before{
    transform: translateX(10%);
}


/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 10;
    background-color: #f0f0f0;
}

#header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .inner ul {
    display: flex;
    align-items: center;
}

#header .inner li {
    margin-right: 30px;
}

#header .inner li:last-child {
    margin-right: 0;
}


/*===========================================
main-title
 =============================================*/
.news-top-main-title {
    font-weight: normal;
    line-height: 1;
    margin-bottom: 10px;
    background-color: #121212;
    color: #fff;
    height: 220px;
}

/*
疑似要素を使って下線を引く
*/
.news-top-main-title::after {
    content: "";
    width: 40px;
    height: 1px;
    background-color: #fff;
    display: block;
    margin: 0 auto;
}


.news-top-main-title .en {
    display: block;
    font-size: 2.25rem;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-top-main-title .ja {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 36px;
}
.pt{
    padding-top: 100px;
    text-align: center;
}

/*===========================================
breadcrumb
 =============================================*/
.breadcrumb{
    margin-left: 100px;
 }
.breadcrumb span{
    margin: 0 5px;
}

#container{
    display: flex;
    justify-content: space-between;
    margin: 50px 0 0 0;
}

main{
    width: 77%;
    text-align: center;
}
/*===========================================
listgroup
=============================================*/
 .list-group {
     display: flex;
     flex-direction: column;
     flex-wrap: wrap;
     justify-content: center;
     background-color: #f0f0f0;
     width: 100%;
     margin: 30px auto;
     padding: 20px;
     list-style: none;
     text-align: center;
 }
 .list-group .list-group-item{
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    margin: 10px;
    padding: 10px;
    width: 100%;
    box-shadow: 0 3px 6px #ccc;
 }
 .list-group .list-group-item .news{
    display: flex;
    justify-content: space-between;
    align-items: center;
 }
 .list-group .list-group-item .news .news_pic img{
    width: 250px;
    height: 200px;
    object-fit: cover;
 }
 .list-group .list-group-item .news .right-area{
    width: calc(100% - 250px);
    height: 220px;
    margin: 10px;
 }
 .list-group .list-group-item .news .right-area .news_title{
    font-size: 1rem;
    height: 2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
 }
.list-group .list-group-item .news .right-area div.post-categories{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 10px;    
}
.list-group .list-group-item .news .right-area .post-categories .category{
    display: inline-block;
    background-color: #121212;
    color: #fff;
    padding: 3px 20px;
    margin-bottom: 15px;
}
.list-group .list-group-item .news .right-area .post-categories .news_time{
    color: #000;
    padding: 3px 20px;
}
.list-group .list-group-item .news .right-area .news_desc p{
    height: 4rem;
    overflow: hidden;
}

.btn-area{
    text-align: center;
}
.btn,
a.btn,
button.btn{
    margin: 5px 0;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    position: relative;
    display: inline-block;
    padding: 10px 50px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    letter-spacing: 0.3em;
    color: #212529;
    border-radius: 0.5rem;
}

a.btn-flat{
    overflow: hidden;

    padding: 15px 50px;  /* ボタンの大きさを変えるには個々の値を変える */
    color: #fff;
    border-radius: 7px;
    background: #000;
}

a.btn-flat span{
    position: relative;
}

a.btn-flat:before{
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 500%;
    content: '';
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -webkit-transform: translateX(-98%) translateY(-25%) rotate(45deg);
    transform: translateX(-98%) translateY(-25%) rotate(45deg);
    background: #00b7ee;
}

a.btn-flat:hover:before{
    -webkit-transform: translateX(-9%) translateY(-25%) rotate(45deg);
    transform: translateX(-9%) translateY(-25%) rotate(45deg);
}
/*===========================================
 list-group
 =============================================*/
 /* .list-group .list-group-item .news{
    display: flex;
    justify-content: space-between;
 } */
/*===========================================
 paginathing
 =============================================*/
.wp-pagenavi{
    margin: 0 0 80px;
}




/*-------------------------------------------
aside
-------------------------------------------*/
#sidebar{
    width: 23%;
    padding: 20px;
}
#sidebar .side-title{
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.archive{
    text-align: center;
    margin-bottom: 60px;
}
.archive ul{
    border-bottom: 1px solid #777;
}
.archive li{
    font-size: 0.875rem;
    border-top: 1px solid #777;
    padding: 20px;
    text-align: left;
}

/*-------------------------------------------
Contact
-------------------------------------------*/
#contact {
  color: #fff;
  background-color: #121212;
  padding: 50px 0;
}
#contact .section-title{
    text-align: center;
}
#contact .section-title::after {
    content: "";
    width: 40px;
    height: 1px;
    background-color: #fff;
    display: block;
    margin-bottom: 50px;
    margin: 0 auto;
}


#contact .contact-form {
  width: 70%;
  margin: 50px auto;
}
#contact .contact-form dt{
    text-align: left;
    padding: 0 0 5px 10px;
}
#contact .contact-form input,
#contact .contact-form textarea {
  width: 100%;
  background-color: #fff;
  padding: 10px;
  margin-bottom: 20px;
}
#contact .contact-form .button input {
  width: 200px;
  color: #fff;
  background-color: #121212;
  border: solid 1px #fff;
  padding: 12px 0;
  margin-bottom: 0;
}
#contact .contact-form .button input:hover {
  color: #202020;
  background-color: #fff;
}


/*-------------------------------------------
footer
-------------------------------------------*/
#footer {
    background-color: #f0f0f0;
    padding-bottom: 20px;
}

#footer .flex {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    margin: 0 auto;
}

#footer .flex .logo {
    margin-right: 0;
}

#footer .copyright {
    font-size: 0.625rem;
    text-align: center;
}

/*-------------------------------------------
TO-TOP
-------------------------------------------*/
.pagetop{
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
}

.pagetop_arrow{
    display: block;
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

/*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 960px) {

    .logo {
        width: 80px;
        margin: 8px auto;
    }

    .section-title {
        margin-bottom: 34px;
        text-align: center;
    }

    .section-title .ja {
        margin-bottom: 24px;
    }
    .section-title::after{
        margin: 0 auto;
    }

    /*-------------------------------------------
    ヘッダー
    -------------------------------------------*/
    /*
    ハンバーガーメニュー
    ※ハンバーガーメニューの説明は他の課題と重複するため割愛
    */
        #navi {
            width: 300px;
            background: #fff;
            padding: 25px;
            position: fixed;
            top: 0;
            left: -300px;
            bottom: 0;
            opacity: 0;
            overflow-y: auto;
            transition: 0.5s;
            z-index: 20;
        }

        #navi.open {
            left: 0;
            opacity: 1;
        }
        #navi .logo{
            position: static;
            top: 15px;
        }

        #navi ul.nav-menu {
            flex-direction: column;
            margin-bottom: 30px;
        }

        #navi ul li {
            padding: 10px 0;
        }
        #header .inner li:last-child {
            margin-right: 30px;
        }

        .hamburger {
            width: 30px;
            height: 30px;
            cursor: pointer;
            position: fixed;
            top: 150px;
            right: 20px;
            transition: 0.5s;
            z-index: 20;
            background-color: #fff;
        }

        .hamburger span {
            width: 30px;
            height: 2px;
            background-color: #121212;
            border-radius: 4px;
            display: block;
            position: absolute;
            left: 0;
            transition: 0.5s;
        }

        .hamburger span:nth-child(1) {
            top: 4px;
        }

        .hamburger span:nth-child(2) {
            top: 14px;
        }

        .hamburger span:nth-child(3) {
            bottom: 4px;
        }

        .open.hamburger span {
            background-color: #fff;
        }

        .open.hamburger span:nth-child(1) {
            transform: translateY(10px) rotate(-315deg);
        }

        .open.hamburger span:nth-child(2) {
            opacity: 0;
        }

        .open.hamburger span:nth-child(3) {
            transform: translateY(-10px) rotate(315deg);
        }

        #mask {
            display: none;
            transition: 0.5s;
        }

        .open #mask {
            width: 100%;
            height: 100%;
            background-color: #000;
            cursor: pointer;
            display: block;
            opacity: 0.8;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 10;
        }

        /*===========================================
        container
        =============================================*/
        #container{
            flex-direction: column;
        }
        main{
            width: 100%;
        }
        /*===========================================
        .list-group
        =============================================*/
        .list-group{
            width: 100%;
        }
        .list-group .list-group-item{
            width: 100%;
            height: auto;
        }
        .list-group-item .news{
            flex-direction: column;
        }
        .list-group .list-group-item .news .news_pic img{
            width: 90%;
        }
        .list-group .list-group-item .news .right-area{
            width: 100%;
            height: auto;
        }
        .list-group .list-group-item .news .right-area .news_desc p{
            height: auto;
            margin-bottom: 30px;
        }
        /*===========================================
        sidebar
        =============================================*/
        #sidebar{
            width: 100%;
        }

         /*===========================================
        footer
        =============================================*/
        #footer .flex{
            display: flex;
            justify-content: space-between;
        }
        #footer .flex .logo{
            flex-direction: column;
            margin: 0;
        }
        #footer .copyright{
            flex-direction: column;
        }
}