@charset "utf-8";

/* 初期設定 */
html{
    font-size: 100%;
    letter-spacing: 0.1rem;
    font-family: Zen_Kaku_Gothic_New, EB Garamond, serif, sans-serif;
}

img{
    max-width: 100%;
}

a{
    text-decoration: none;
}

p{
    line-height: 1.5;
}

li{
    text-decoration: none;
}

.wrapper{
    width: 100%;
}

.flex{
    display: flex;
}

/* ヘッダー設定 */
.header{
    position: fixed;
    width: 100%;
    height: 15vh;
    background-color: #fff;
    z-index: 101;
    padding-bottom: 5px;
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
}

.logo{
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
    font-family: Tangerine, Tangerine - 400;
    color: #553504;
}


.nav{
    text-align: center;
    margin: 0 auto;
    align-items: center;
}

.nav .nav-item{
    margin: 3px 20px;
}

.nav .nav-item a{
    border-bottom: 2px solid transparent;
}

.nav .nav-item a:hover{
    color: #553504;
    border-bottom: 1px solid;
    border-bottom-color: #553504;
    transition: color 0.5s ease, border-bottom-color 0.5s ease;
}

.hamberger-click{
    display: none;
}


.click{
    display: none;
}

/* top-title設定 */
.top-title-box{
    position: relative;
}

.top-title{
    position: absolute;
    top: 30vh;
    left: 20vw;
    z-index: 100;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(151, 31, 31, 0.8);
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 1rem;
}

#top{
    padding-top: 15vh;
}


/* スライダー関連
 */
.slider2{
    visibility: hidden;
    margin-bottom: 200px;
    opacity: 0.6;
}


.slider2 img{
    height: 50vh;
    object-fit: cover;
    
}

.slider2.slick-initialized{
    visibility: visible;
}

.slick-prev, .slick-next{
    z-index: 1;
}

.slick-prev{
    left: 20px;
}

.slick-next{
    right: 20px;
}


.slick-slide{
    width: 100%;
}

.slick-slide img{
    width: 100%;
}


.slick-arrow {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    padding: 0;
    width: 20px;
    height: 38px;
    color: transparent;
    z-index: 1;
    transition: opacity 0.5s;
    z-index: 1;
  }
  .slick-arrow:hover {
    opacity: 0.7;
  }
  
  /* 共通設定 */
  
  .slick-next::before,
  .slick-next::after,
  .slick-prev::before,
  .slick-prev::after {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    content: "";
    vertical-align: middle;
  }
  .slick-next::before,
  .slick-prev::before {
    width: 36px;
    height: 1px;
    background: #fff;
  }
  .slick-next::after,
  .slick-prev::after {
    width: 26px;
    height: 26px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
  }
  
  /* next */
  
  .slick-next {
    right: 26px;
  }
  .slick-next::before {
    right: 0;
  }
  .slick-next::after {
    right: 4px;
    transform: rotate(45deg);
  }
  
  /* prev */
  
  .slick-prev {
    left: 26px;
  }
  .slick-prev::before {
    left: 0;
  }
  .slick-prev::after {
    left: 4px;
    transform: rotate(-135deg);
  }
  
  @media screen and (max-width: 767px) {
    .slick-next::before,
    .slick-prev::before {
      width: 18px;
    }
    .slick-next::after,
    .slick-prev::after {
      width: 10px;
      height: 10px;
    }
    .slick-next {
      right: 8px;
    }
    .slick-prev {
      left: 8px;
    }
    .slick-prev::before {
      left: 2px;
    }
    .slick-next::after {
      right: 2px;
    }
  }





/* セクション2 プロフィール */
#profile{
    margin-top: 50px;
    margin-bottom: 100px;
    padding: 0 13%;
    width: 100%;
}

.profile-item{
    width: 100%;
    margin-bottom: 5%;
}

.profile-item .profile-img{
    width: 40%;
}

.profile-item img{
    width: 100%;
}

.profile-item .profile-text{
    width: 60%;
    margin-left: 20px;
}

.profile-h2-1{
    color: rgb(93, 93, 93);
    font-size: 1.3rem;
}

.profile-h2-2{
    color: rgb(93, 93, 93);
    font-size: 1.5rem;
    font-weight: bold;
}

.border{
    margin-bottom: 3%;
    display: flex;
    flex-direction: row;
}

.border-1{
    border-bottom: 1px solid #553504;
    width: 40%;
}

.border-2{
    border-bottom: 1px solid #faddd9;
    width: 60%;
}

.profile-text .text{
    letter-spacing: 0.2rem;
}

.profile-text .text .Catchphrase{
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 2;
    letter-spacing: 0.1rem;
}

.btn-box{
    margin: 0 25%;
}

.btn{
    display: inline-block;
    padding: 3% 2%;
    align-items: center;
    text-align: center;
    width: 100%;
    border: 1px solid #553504;
    background-color: #553504;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.5s ease;
}

.btn:hover{
    background-color: #fff;
    color: #553504;
}



/* section3 ニュース */
#news{
    margin-bottom: 100px;
    padding: 0 13% 10% 13%;
    width: 100%;
    background-image: url(./img/dw.png);
    background-repeat: no-repeat;
    background-size: contain;
}

#news .section-title{
    margin-bottom: 5%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #5d5d5d;
}

#news .news-item{
    width: 100%;
    border-top: 1px solid #efefef;
    transition: background-color 0.5s ease;
    
}

#news .news-item:hover{
    background-color: #f9f9f9;
}

#news .news-item:last-child{
    border-bottom: 1px solid #efefef;

}

.news-info{
    padding-top: 3%;
}

#news .news-item h2{
    padding-bottom: 3%;
}


/* section4 コンタクトホーム */
#contact{
    margin-bottom: 100px;
    padding: 0 13% 0 13%;
}

.section-title{
    margin-bottom: 5%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #5d5d5d;
}

.section-title {
    display: flex; /* 子要素を横並びにする */
    align-items: center; /* 中央揃えにする */
}

.section-title:before,
.section-title:after {
    content: "";
    flex-grow: 1;
    height: 1px; /* 線の太さ */
    background: #5d5d5d; /* 線の色 */
}

.section-title:before {
    margin-right: 20px; /* 左側の線とテキストの間のスペース */
}
.section-title:after {
    margin-left: 20px; /* 右側の線とテキストの間のスペース */
}


#contact p{
    text-align: center;
    margin-bottom: 5%;
}

/* フッター */
.footer{
    background-color: #553504;
    color: #fff;
    font-size: 0.8rem;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-nav{
    padding-top: 2%;
}

.footer-nav a{
    padding: 0 10px;
}

.footer p{
    padding-top: 1%;
    padding-bottom: 2%;
}




@media screen and (max-width: 767px){

    #news .section-title{
        font-size: 1rem;
    }

    .section-title{
        font-size: 1rem;
    }

    p{
        font-size: 0.8rem;
    }

    span{
        font-size: 0.8rem;
    }


    #top{
        padding-top: 10vh;
    }

    .header{
        height: 10vh;
    }
    
    .nav .nav-item{
        font-size: 0.6rem;
        margin: 3px 8px;
    }



    .top-title{
        text-align: center;
        font-size: 1.5rem;
        letter-spacing: 0.6rem;
        top: 29vh;
        left: 10vw;
    }

    .nav{
        display: none;
    }




    .click{
        display: none;
    }



    /*==================================================
    　5-2-8 3本線が横方向に回転して×に
    ===================================*/



    .openbtn8{
        z-index: 102;
        position: fixed;
        display: flex;
        top: 2vh;
        left:85vw;
        background:#fff;
        cursor: pointer;
        width: 50px;
        height:50px;
        border-radius: 5px;
    }
    
    /*ボタン内側*/
    .openbtn8 .openbtn-area{
        transition: all .6s;/*アニメーションの設定*/
        width:50px;
        height:50px;
    }
    
    .openbtn8 span{
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background: #000;
        width: 45%;
        }
    
    .openbtn8 span:nth-of-type(1) {
        top:15px; 
    }
    
    .openbtn8 span:nth-of-type(2) {
        top:23px;
    }
    
    .openbtn8 span:nth-of-type(3) {
        top:31px;
    }
    
    /*activeクラスが付与されると .openbtn-areaが360度回転し、その中の線が回転して×に*/
    .openbtn8.active .openbtn-area{
        transform: rotate(360deg);
    }
    
    .openbtn8.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }
    
    .openbtn8.active span:nth-of-type(2) {
        opacity: 0;
    }
    
    .openbtn8.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }

    .hamberger-click{
        display: flex;
        position: fixed;
        top: 10vh;
        left: 0;
        width: 100%; /* 画面全体の幅 */
        height: 95vh; /* 画面の95%の高さ */
        background-color: #fff;
        z-index: 1000; 
    }



/* ハンバーガーメニュー押した後のレイアウト調整 */

    .hamberger-nav{
        position: relative;
        font-size: 1rem;
        flex-direction: column;
    }

    .nav-list{
        font-size: 1.3rem;
        text-align: center;
        position: absolute;
        width: 95vw;
    }

    .nav-item1{
        top: 15vh;
    }

    .nav-item2{
        top: 25vh;
    }

    .nav-item3{
        top: 35vh;
    }
    
    .nav-item4{
        top: 45vh;
    }

    .nav-item5{
        top: 55vh;
    }
    
    
    /*========= レイアウトのためのCSS ===============*/
    

    
    
    a{
        color: #333;
        text-decoration: none;
    }
    
    .lead{
        margin:20px 0 0 0;
    }
    
    .btn-block{
        width:200px;  
        padding: 30px;
    }




    .profile-h2-1{
        font-size: 1.2rem;
        text-align: center;
    }
    
    .profile-h2-2{
        font-size: 1.3rem;
        text-align: center;
    }

    .profile-text .text{
        font-size: 0.8rem;
    }
    
    .profile-text .text .Catchphrase{
        font-size: 1rem;
        line-height: 1.8;
    }

    .profile-item{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .profile-item .profile-img{
        width: 60%;
        align-items: center;
        justify-content: center;
    }
    
    .profile-item img{
        width: 100%;
        margin-bottom: 20px;

    }
    
    .profile-item .profile-text{
        width: 100%;
        margin-left: 20px;
    }


    #profile{
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .btn-box{
        margin: 0 15%;
    }

    .footer a{
        font-size: 0.5rem;
    }

    .footer-nav a{
        padding: 0 5px;
    }

}







/* プロフィールページ css */

.h2-title-style{
    /* margin-top: 50px; */
    margin-bottom: 100px;
    padding: 20vh 13% 0 13%;
    width: 100%;
    text-align: center;
}

.h2-title-style .profile-h2-1{
    font-size: 0.8rem;
    font-weight: bold;
}

.h2-title-style .border-1{
    border-bottom: 3px solid #ea3e3e;
    margin-left: 45%;
    margin-right: 45%;
    width: 100%;
}

#profilepage-history{
    margin-top: 50px;
    margin-bottom: 100px;
    padding: 0 13% 0 13%;
    width: 100%;
    text-align: center;
}




.history{
    margin: 0 auto;
    width: 80%;
    margin-bottom: 20px;
}

.history h2, .history p{
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
}

.case-num{
    font-size: 1.8rem;
    font-weight: bold;
    padding-right: 30px;
}

.case-title{
    font-size: 1.3rem;
    font-weight: bold;
}


.history-pictures{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.history-pictures img{
    width: 45%;
    margin: 10px;
}


@media screen and (max-width: 767px){
    .history-pictures img{
        width: 100%;
        margin: auto auto 20px auto;
    }
}


