/*
Theme Name: WANDAY
Author: wanday
Version: 1.0
*/


* {
    background-color: #F5F5F5;
    box-sizing: border-box;
    font-family: 'Zen Kurenaido', sans-serif;
    color: #350303;
    /* width: 100vw; */
}

/* carousel */
#carouselExample {
    margin-top: 120px;
    margin-left: 0;
    max-width: 1200px;       /* PCは1200pxで止める */
    width: 100%;             /* それ以下の画面幅なら100%に広がる */
}

.carousel-inner{
    height: 800px;           /* 高さは固定 */
    border-top-left-radius: 70px;
    border-bottom-left-radius: 70px;
}

.carousel-inner img{
    height: 800px;
    object-fit: cover;       /* トリミングしてちょうど収める */
}


/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.main-section {
  display: flex;
  align-items: flex-start; /* 上揃え */
  justify-content: space-between; /* 左右に配置 */
  gap: 20px; /* 左右の間隔 */
}

.logos{
    /* border: 1px solid red; */
    height: 600px;
    margin: 120px auto 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logos img {
    height: 150px;
    width: 150px;
    border: 1px solid #ccc;
    border-radius: 100px;
    margin: 10px 0;
}

.logo-txt{
    margin: 0;
    font-size: 80px;
}


/* ハンバーガーボタン */
.menu-btn {
    width: 100px;
    height: 100px;
    border-radius: 50% 0 0 50%;
    border: 2px solid white;
    background: #9F6B3D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    position: absolute;
    top: 0;
    right: 0;
    z-index: 110;

    transition: border-radius 0.3s ease; /* 丸みの変化をアニメーション */
    transition: top right 0.3s ease; /* 丸みの変化をアニメーション */
}


/* チェックされたら完全円形に */
#menu-toggle:checked ~ .menu-btn {
    width: 90px;
    height: 90px;
    top: 10px;
    right: 10px;
    border-radius: 50%;  /* 完全な円形 */
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;

}

/* チェックされたらXになる */
#menu-toggle:checked + .menu-btn span:first-child {
    width: 35px;
    margin: 8px 0;
    transform: rotate(45deg) translate(5px, 10px);
}

#menu-toggle:checked + .menu-btn span:last-child {
    width: 35px;
    margin: 2px;
    transform: rotate(-45deg) translate(5px, -11px);
}

/* 真ん中の線がある場合は透明に */
#menu-toggle:checked + .menu-btn span:nth-child(2) {
    opacity: 0;
}

/* ドロワーメニュー */
.drawer {
    position: fixed;
    top: 0;
    right: -290px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    padding: 40px 20px;
}

.drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
}

.drawer ul li {
    margin-bottom: 20px;
    background-color: #fff;
}

.drawer ul li a {
    text-decoration: none;
    color: #333;
    font-size: 25px;
    background-color: #fff;
    /* border-radius: 50px; */
    padding: 0 20px;
    border-bottom: 1px #9F6B3D solid;
}

.drawer img{
    width: 35px;
    height: 40px;
    background-color: #fff;
    padding-bottom: 5px;
}

/* チェックボックスで開閉制御 */
#menu-toggle {
    display: none;
}

#menu-toggle:checked ~ .drawer {
    right: 0;
}


/* news */
.news{
    /* border: 1px solid red; */
    margin-top: 250px;
}

.news table{
    margin-top: 30px;
}

.news tr{
    border: none;
    border-bottom: 1px solid #CFBDAC;
}

.news th:first-child{
    background-color: #CFBDAC;
    border-bottom: 1px solid #F5F5F5;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.news th:last-child{
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    background-color: 1px solid #F5F5F5;
}
.news th{
    color: #350303;
    font-weight: normal;
    border: none;
}


/* about-us */
.about-us{
    /* border: 1px solid red; */
    margin-top: 300px;
}

.au-h2{
    margin-top: 20px;
    margin-bottom: 100px;
}

.profile{
    margin-top: 120px;
}

.profile img{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 0 30px;
    border: 2px solid #fff;
}

.profile p{
    margin: 30px;
}

/* access */
.access{
    margin-top: 300px;
}

.access .card{
    /* background-color: #CFBDAC; */
    border: none;
    border-radius: 50px;
    padding: 10%;
}

.access .card-body, .access h5{
    background-color: #fff;
}

.access .ratio{
    border: 2px solid #fff;
    margin: 0 auto;
}

/* contact */
.contact{
    /* border: 1px solid red; */
    margin-top: 300px;
    margin-bottom: 500px;
}

.contact .bg-container{
    /* background-color: #CFBDAC; */
    border: 2px solid #CFBDAC;
    border-radius: 50px;
}

.contact .container{
    /* background-color: #CFBDAC; */
    height: 200px;
    max-width: 500px;
}

.contact ul{
    /* background-color: #CFBDAC; */
    gap: 30px;
}

.contact p{
    /* background-color: #CFBDAC; */
}

.contact img{
    /* background-color: #CFBDAC; */
}


/* footer */
footer{
    background-color: #CFBDAC;
}

footer .container{
    background-color: #CFBDAC;
}

footer ul{
    background-color: #CFBDAC;
    margin: 0 auto;
}

footer li{
    background-color: #CFBDAC;
}

footer p{
    background-color: #CFBDAC;
    margin-top: 30px;
    /* margin-bottom: 50px; */
}

footer img{
    background-color: #CFBDAC;
    width: 40px;
    height: 40px;
}


@media (max-width: 1500px) {
    *{
        width: 100%;
    }

    .d-flex {
        flex-direction: column;
        align-items: center; /* 中央寄せ */
    }

    #carouselExample {
        max-width: 100%;
        width: 100%;
        margin-top: 0;
    }

    .carousel-inner{
        height: 70vh;
        border-radius: 0;
        margin-top: 20px;
    }

    .carousel-inner img{
        height: 70vh;
    }

    .logos {
        flex-direction: row;
        /* flex-wrap: wrap;         */
        height: 120px;
        margin-top: 30px;
    }

    .logos .addresses,
    .logos h3{
        display: none;
    }

    .logos img{
        width: 60px;
        height: 60px;
        margin-top: 0;
        position: absolute;
        left: 2vw;
        top:65px
    }

    .logo-txt{
        font-size: 3rem;
        margin-top: 0px;
        margin-right: 10px;
        margin-left: 80px;
        width: 300px;
    }

    .menu-btn{
        /* display: none; */
    }

    .news th:first-child{
        width: 100px;
    }

    .profile p{
        margin: 10px;
    }

    .profile img{
        width: 200px;
        height: 200px;
        margin-top: 30px;
    }

    .contact .container {
        margin-top: 50px;
        text-align: center;        /* テキストも中央揃え */
        height: auto;
        gap: 30px;
        margin-bottom: 30px;
        max-width: 300px;
    }

    .contact ul{
        flex-direction: row;
        gap: 0;
    }

    .contact li{
        margin: 0;
    }
}

@media (max-width: 500px){
    .logo-txt{
        width: 1000px;
    }

    .logos img{
        display: none;
    }

    .news th:first-child{
        width: 40px;
    }

    .about-us h2{
        width: 80%;
        margin: 10px auto;
    }

    .text-muted{
        font-size: 1.3rem;
    }

    .about-us .col-md-7{
        margin: 50px 10px 10px;
    }

    .contact .container {
      align-items: center;       /* 横方向を中央に */
      justify-content: center;   /* 縦方向を中央に */
      text-align: center;        /* テキストも中央揃え */
      height: auto;
    }

}