@charset "UTF-8";

html {
    font-size: 100%;
}

body {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    background-color: #f0f0f0;
    color: #000;
}

a {
    color: #000;
    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;
}

.section-title {
    font-weight: normal;
    line-height: 1;
    margin-bottom: 50px;
}

/*
疑似要素を使って下線を引く
*/
.section-title::after {
    content: "";
    width: 40px;
    height: 1px;
    background-color: #000;
    display: block;
}

/*
「display: inline-block;」を設定してブロック化することで、
改行されてmargin-bottomが使用できるようになる
*/
.section-title .en {
    display: block;
    font-size: 2.25rem;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

.section-title .ja {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 36px;
}

/*
横幅を設定するための共通クラス
*/
.wrapper {
    width: 100%;
    max-width: 1032px;
    padding: 0 16px;
    margin: 0 auto;
}

/*
フェード表示
InformationとGalleryの画像を下からふわっと表示させるためのクラス
「transform: translate(0, 50%);」で下にさげた状態で、
「opacity: 0;」で非表示にしておく
*/
.fadein {
  opacity: 0;
  transform: translate(0, 50%);
  transition: 2s;
}
/*
fadeinクラスの要素が画面下にきたタイミングで、jQueryのinviewにてshowクラスを追加して
「transform: translate(0, 0);」と「opacity: 1;」で表示させる
※main.jsの「フェード表示」を参照
*/
.fadein.show {
  transform: translate(0, 0);
  opacity: 1;
}

/*===============================
 link-btn-small
 ================================*/
.link-btn-small-area{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
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%);
}

/* 
link-btn
*/
.link-btn-area{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}
a.link-btn{
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    background: transparent;
    width: 300px;
    height: 70px;
    text-align: center;
    line-height: 70px;
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 2px 2px 6px #333;
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    transition: .3s;
}
a.link-btn: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:hover{
    color: #fff;
}
a.link-btn:hover:before{
    transform: translateX(10%);
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
    width: 100%;
    height: 80px;
    position: fixed;
    z-index: 999;
    background-color: #f0f0f0;
}

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

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

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

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

/*-------------------------------------------
Mainvisual
-------------------------------------------*/
#mainvisual {
    width: 100%;
    margin-bottom: 120px;
}
/*
メインビジュアルを画面の高さに合わせる
headerの高さが80pxあるので、100vhから80px分だけマイナスする
*/
#mainvisual .slider li a img {
    width: 100%;
    height: calc(100% - 80px);
    object-fit: cover;
    padding-top: 80px;
    padding-bottom: 30px;
}
/*-------------------------------------------
News
-------------------------------------------*/
#news {
    width: 90%;
    margin: 120px auto;
    text-align: center;
    height: auto;
}

#news .section-title{
    font-weight: normal;
    line-height: 1;
    margin-bottom: 50px;
}

#news .section-title::after {
    content: "";
    width: 40px;
    height: 1px;
    background-color: #000;
    display: block;
    margin: 0 auto;
}

#news .section-title .en {
    display: block;
    font-size: 2.25rem;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

#news .section-title .ja {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 36px;
}

#news .list {
    display: flex;
    justify-content: space-between;
}

/*
「width: calc(100%/3);」で横幅を3等分する
*/
#news .list li {
    width: calc(100%/3);
    border: solid 1px #000;
    margin: 10px;
    box-shadow: 5px 5px 7px #202020;
}
#news .list li:hover{
    transform: scale(1.03);
}

#news .list li:first-child {
    padding-left: 0;
}

#news .list li:last-child {
    border-right: none;
    padding-right: 0;
}

#news .list li .news .news_pic {
    margin-bottom: 10px
}

#news .list li .news .news_pic img {
    height: 210px;
    width: 100%;
    display: block;
    margin: 0 auto;
    
}

#news .list li .news .news_meta ul{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#news .list li .news .news_meta ul li{
    border-right: none;
    border: none;
    box-shadow: none;
    font-size: 0.85rem;
}
#news .list li .news .news_meta ul li:nth-child(1) a{
    display: block;
    background-color: #202020;
    color: #fff;
    width: 95px;
    padding: 5px 10px;
    font-size: 0.85rem;
}
#news .list li .news .news_meta ul li:nth-child(1) time{
    display: inline-block;
}
#news .list li .news .news_met ul.post-categories a.category-name{
    width: 150px;
    line-height: 1;
}
#news .list li .news .news_title{
    margin: 10px;
}
#news .list li .news .news_title a{
    font-weight: bold;
    font-size: 1.1rem;
}
#news .list li .news .news_desc{
    line-height: 1.2rem;
    margin: 5px 5px 20px;
}
#news .list li .news .news_desc p:first-child{
    margin-bottom: 20px;
    text-align: left;
}
/*-------------------------------------------
About
-------------------------------------------*/
#about {
    display: flex;
    margin-bottom: 120px;
    position: relative;
}

#about .img {
    width: 55%;
    margin-left: 40px;
}

#about .img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 5px 5px 7px #202020;
}

#about .text {
    width: 45%;
    padding: 180px 5% 0 5%;
}
#about .text::before{
    content: '';
    background-color: #fff;
    width: 55%;
    height: 90%;
    position: absolute;
    top: 100px;
    right: 0;
    z-index: -1;
}

#about .text p {
    line-height: 2.2;
}
#about .link-btn-area{
    margin-right: 150px;
}

/*-------------------------------------------
Business
-------------------------------------------*/
#business {
    width: 90%;
    margin-bottom: 120px;
}

#business .flex {
    display: flex;
    justify-content: space-between;
}

#business .flex .left {
    width: 46%;
    margin-top: 100px;   
}

#business .flex .right {
    width: 46%;    
}

#business .flex .item {
    margin-bottom: 50px;
}
#business .flex .item img{
    box-shadow: 5px 5px 7px #202020;
}

#business .flex .item:last-child {
    margin-bottom: 0;
}

#business .flex .title {
    font-weight: bold;
    margin: 0 0 10px 18px;
    position: relative;
}

/*
疑似要素でタイトルの横線を引く
*/
#business .flex .title::before {
    content: "";
    width: 8px;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: -18px;
}

/*-------------------------------------------
Company  
-------------------------------------------*/
/*
テキストと画像はpositionを使って配置
子要素の「position: absolute;」で高さがなくなるため、
「height: 750px;」を指定して高さを確保
*/
#company {
    width: 90%;
    height: 800px;   
}
#company .company-inner{
    display: flex;
    align-items: center;
    position: relative;
}
#company .section-title{
    margin-left: 60px;
}

#company .text {
    width: 65%;
    background-color: #fff;
    padding: 100px 8% 100px 6%;
    position: absolute;
    top: 0;
    right: 50px;
    z-index: 10;    
}

#company .img {
    width: 53%;
    position: absolute;
    top: 250px;
    left: 0;
    z-index: 20;
}

#company .img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 5px 5px 7px #202020;
}

#company .info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 250px;
}

#company .info dt {
    width: 20%;
    margin-top: 10px;
}

/*
1つめのdtにはmargin-topを設定しない
*/
#company .info dt:first-of-type {
    margin-top: 0;
}

#company .info dd {
    width: 80%;
    margin-top: 10px;
}

/*
1つめのddにはmargin-topを設定しない
*/
#company .info dd:first-of-type {
    margin-top: 0;
}

#company .info .add {
    margin-left: 20%;
}
#company .link-btn-area{
    position: absolute;
    top: 720px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 50;
}
/*-------------------------------------------
Location
-------------------------------------------*/
#location {
    margin-top: 50px;
    margin-bottom: 80px;
}
#location .section-title::after{
    margin-bottom: 60px;
}

#location .location-img {
    background-image: url(../img/location.jpg);
    position: relative;
}

#location .item-map {
    /* グーグルマップをグレースケールにする */
    filter: grayscale(1);
    margin-bottom: 20px;
}

/* グーグルマップのサイズを設定 */
#location .item-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

#location .item-info {
    text-align: center;
}

#location .item-info p {
    margin-bottom: 10px;
}

/*-------------------------------------------
Contact
-------------------------------------------*/
#contact {
  color: #fff;
  background-color: #121212;
  padding: 50px 0;
}
#contact .section-title::after {
    content: "";
    width: 40px;
    height: 1px;
    background-color: #fff;
    display: block;
    margin-bottom: 50px;
}
#contact .content {
  max-width: 1240px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
#contact .contact-info p {
  margin-bottom: 30px;
}
#contact .contact-info,
#contact .contact-form {
  width: 45%;
}
#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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
}

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

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

/*-------------------------------------------
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: 999;
    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;
        }

        /*-------------------------------------------
        Mainvisual
        -------------------------------------------*/
        #mainvisual {
            margin-bottom: 80px;
            text-align: center;
        }
        #mainvisual .slider li a img{
            padding-top: 100px;
        }

        /*-------------------------------------------
        News
        -------------------------------------------*/
        #news {
            width: 100%;
            margin-bottom: 80px;
            text-align: center;
        }

        #news .list {
            flex-direction: column;
        }

        #news .list li {
            width: 80%;
            margin: 20px auto;
        }

        #news .list li:last-child {
            margin-bottom: 0;
        }
        #news .list li img{
            height: 100%;
            vertical-align: top;
        }
        /*-------------------------------------------
        About
        -------------------------------------------*/
        #about {
            flex-direction: column;
            margin-bottom: 80px;
            justify-content: center;
            align-items: center;
        }

        #about .img {
            width: 100%;
            margin-bottom: 30px;
        }

        #about .img img {
            height: 300px;
        }

        #about .text {
            width: 90%;
            padding: 50px 30px;
            text-align: left;
            margin-left: 40px;
        }
        #about .text::before{
            content: '';
            background-color: #fff;
            width: 90%;
            height: 60%;
            position: absolute;
            top: 330px;
            right: 0;
            left: 40px;
            margin: auto;
        }
        #about .link-btn-area{
            margin: 30px auto;
        }

        /*-------------------------------------------
        Business
        -------------------------------------------*/
        #business {
            margin-bottom: 80px;
        }

        #business .flex {
            flex-direction: column;
            padding: 0;
        }

        #business .flex .left {
            width: 100%;
            margin: 0 0 30px 0;
        }

        #business .flex .right {
            width: 100%;
        }

        #business .flex .item {
            text-align: center;
            margin-bottom: 30px;
        }

        #business .flex .title {
            text-align: left;
        }

        /*-------------------------------------------
        Company
        -------------------------------------------*/
        /*
        「position: static;」でrelativeを解除
        */
        #company {
            width: 100%;
            height: auto;
            position: static;
            margin-bottom: 80px;
        }
        #company .company-inner{
            flex-direction: column-reverse;
        }
        /*
        「position: static;」でabsoluteを解除
        */
        #company .text {
            width: 100%;
            padding: 40px 20px;
            margin-bottom: 20px;
            position: static;
            flex-direction: column-reverse;
        }

        /*
        「position: static;」でabsoluteを解除
        */
        #company .img {
            width: 100%;
            padding: 0;
            position: static;
            flex-direction: column-reverse;
        }

        #company .info {
            flex-direction: column-reverse;
            margin-left: 30px;
            position: static;
        }

        #company .info dt {
            width: 85%;
            margin-top: 20px;
        }

        #company .info dd {
            width: 85%;
            margin-top: 5px;
            padding-left: 14px;
        }

        #company .info dd:first-of-type {
            margin-top: 5px;
        }

        #company .info .add {
            margin-left: 0;
        }
        #company .link-btn-area .link-btn{
            top: 1250px;
        }

        /*-------------------------------------------
        access (location) 
        -------------------------------------------*/
        #location{
            margin-top: 300px;
        }

        
        /* contact */
        #contact{
            width: 100%;
        }
        #contact .content{
            flex-direction: column;        
        }
        #contact .content .contact-info{
            width: 100%;
        }
        #contact .contact-form{
            flex-direction: column;
        }
        #contact .contact-form input,
        #contact .contact-form textarea{
            width: 220%;
        }
        #contact .contact-form .button input{
            margin-left: calc((150% -200px)/ 2);
        }

        #company .link-btn-area{
            position: static;

        }
        /*-------------------------------------------
        footer
        -------------------------------------------*/
        #footer .flex {
            flex-direction: column;
            align-items: flex-start;
        }

        #footer .flex .logo {
            margin: 0 auto;
            margin-bottom: 30px;
        }
        #footer .info{
            margin: 0 auto;
        }
        #footer .wrapper{
            text-align: center;
        }
}

/*-------------------------------------------
news-page-stylesheet
-------------------------------------------*/
