@charset "UTF-8";

/*共通部分----------------*/

html{
    font-size: 100%;
}

body{
  font-family: "Kaisei Opti", serif;
  font-weight: 400;
  font-style: normal;

  line-height: 1.7;
  color: #6b3f31;
  background-color: #ffebcd;

}

.align-center{
    display: flex;
    align-items: center;
    justify-content: center;
}

a{
    text-decoration: none;
}

img{
    max-width: 100%;
    height: auto;
}

.contents{
    margin: 0 80px;
}

/*レイアウト*/

/*ヘッダー*/

.page-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height:80px;
    background-color: rgba(106,25,23,0.5);
    padding: 0 30px;
}

.logo-link{
    color: #e8d3ca;
    font-size: 28px;
}

.main-nav, .is-fixed{
    display: flex;
    margin: 2rem;
    justify-content: center;
    gap: 2.5rem;
    font-size: 16px;
    list-style: none;
    color:#fff;
    backdrop-filter: blur(6px);
}

.main-nav li{
    margin: 8px 0;
}

.main-nav a{
    color:#ffebcd;
}

.mein-nav a:hover{
    color: #6a1917;
}

/*ハンバーガーメニュー*/



/*見出し*/
.page-title{
    font-size: 30px;
    text-align: right;
    line-height: 1.4;
    color: #e8d3ca;
    text-shadow: 0px 0px 6px rgba(255, 255, 255, 1);

}

.cover{
    background-size: cover;
    background-position: top center;
    margin-bottom: 4rem;
    height: 800px;
}

.cover{
    background-image: url(https://cafe-oscar1.netlify.app/image/ogp.png);
}

.title{
    display: flex;
    justify-content: space-between;
}
.page-title{
    white-space: nowrap;
    margin: 500px 30px 0 0;
}

/* タイトルイメージフェードイン */


.title-img.fadeIn{
    opacity: 0;
    transition:opacity 2s ease;
    width:300px;
    height: 100%;
    margin: 150px 180px 280px 100px;
    border-radius: 24px;
}

.title-img.fadeIn.is-show{
    opacity: 0.7;
    
}




/*説明*/
.about{
    max-width: 736px;
    padding: 0 1.5rem;
    margin: 3rem auto 0;
}

.about p{
    margin-bottom: 3rem;
}

/*ボタン*/
.contact-btn{
    display: block;
    align-items: center;
}
.btn{
    display: inline-block;
    font-size: 1.5rem;
    background: rgba(232, 198, 191, 0.5);
    color:#6b3f31;
    border-radius: 8px;
    padding: .75rem 1.5rem;
    transition: 0.5s;
}

.btn:hover{
    background-color: #e8d3ca;
}

/*お知らせ*/


/*記事部分*/
.post{
    margin-bottom: 3rem;
}
.post-title{
    font-weight: normal;
}
.post-info{
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.post-date{
    font-size: .875rem;
}
.post-thumbnail{
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.post p{
    margin-bottom: 1.5rem;
    line-height: 2;
}
.post-cat{
    display: flex;
    gap: .5rem;
    list-style: none;
}
.post-info a{
    color:#6a1917;
    background-color: rgba(232, 198, 191, 0.5);
    border-radius: 8px;
    font-size: .875rem;
    padding: .5rem .75rem;
}
.post-cat a:hover{
    background-color: #e8d3ca;
}

.news-list{
    max-width: 720px;
    margin: 0 auto;
}

.news-items{
    padding: 24px 24px;
    border-bottom: 1px solid rgba(232, 198, 191, 0.5);
}

.news-items time{
    font-size: .85rem;
    opacity: .7;
}

.news-items h3, a{
    margin: 6px 0;
    text-decoration: none;
    color: #6a1917;
}

.news-contents{
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-layout{
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.sidebar{
    width: 240px;
}

/*メニュー*/

 * {
    box-sizing: border-box;
 }

.menu-container{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    margin: 36px auto 48px;
}

.menu-container > div{
    aspect-ratio: 1/1;
    border-radius: 8px;
}

.menu-container > * {
    min-width: 0;
}
.drink img, .food img{
    width: 80%;
    height: auto;
    display: block;
}

.drink, .food{
    display: flex;
    flex-direction: column;
    align-items: center;

}



.drink-menu, .food-menu{
    text-align: center;
}

/*サイドバー*/
.side-menu{
    list-style: none;
    text-align: center;
    margin-bottom: 4rem;
}

.side-menu li{
    border-bottom: 1px solid rgba(232, 198, 191, 0.5);
}

.side-menu a{
    color:#6a1917;
    display: block;
    padding: 1rem;
}

.side-menu:hover{
    color: #e8d3ca;
}

/*お問い合わせ*/
.contact{
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}
.contact-hero{
    margin-bottom: 20px;
}
.contact-lead{
    margin 0;
    opacity: .8px;
}
.contact-form{
    display: grid;
    gap: 16px;
}
.contact-label{
    display: grid;
    gap: 8px;
    font-size: 14px;  
}
.contact-required{
    font-size: 12px;
    opacity: .7;
    margin-left: 6px;
}
.contact-input, .contact-textarea{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 8px;
}
.contact-textarea{
    resize: vertical;
}
.contact-input:focus, .contact-textarea:focus{
    outline: none;
    border-color: #6b3f31;
    box-shadow: 0 0 0 3px rgba(232, 198, 191, 0.5)
}
.contact-note{
    margin: 0;
    font-size: 12px;
    opacity: .75;
}

/*バナー*/
.banner{
    display: block;
    align-items: center;
    margin: 60px 0;
}

/*フッター*/
.page-footer{
    margin: 2rem;
}
.heading-large{
    text-align: center;
    padding: 1rem;
}
.info{
    text-align: center;
    width: 100%;
    margin: 2rem;
    padding: 0 1.5rem;
    border-spacing: 0;
}

.info th,
.info td{
    border-bottom: 1px solid rgba(232, 198, 191, 0.5);
}

.info th{
    text-align: left;
    font-weight: normal;
    padding: 1rem;    
}


.info td{
    padding: 1rem;
    }
.copyright{
    background-color: #6a1917;
    color: rgba(232, 198, 191, 0.5);
    text-align: center;
    margin-top: 6rem;
}

/* ハンバーガーメニュー隠す */

.menu-btn,
.sp-menu {
    display: none;
}

/* トップへ戻るボタン */
.top-btn{
    position: fixed;
    width: 120px;
    right: 24px;
    bottom: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  /* トップへ戻るボタン見えたら */
  .top-btn.is-show{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 24px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
  }

/* レスポンシブ対応 */
@media (max-width: 768px){

    .logo-link{
        font-size: 16px;
    }

    .heading-large{
        font-size: 24px;
    }

    .pc-nav {
        display: none;
    }

    .btn{
        font-size: 16px;
    }

    .menu-btn {
        display: block;
        width: 48px;
        height: auto;
        object-fit: contain;
        cursor: pointer;
        position: relative;
        z-index: 1001;
    }

    .sp-menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: #e8d3ca;
        z-index: 1000;
    }

    .sp-menu .main-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 20px;
        border-radius: 0;
        background: none;
        color:#6a1917
    }

    .sp-menu .main-nav li {
        margin: 0;
        text-align: center;
    }

    .sp-menu .main-nav a {
        display: block;
        padding: 12px;
        color: #6a1917;
    }

    .contents {
        margin: auto;
    }

    .cover {
        background-size: cover;
        background-position: 40% center;
        height: 300px;
    }

    .page-title{
        margin: 150px 10px 0px 140px;
        font-size: 18px;
    }



    /* スマホはロゴ非表示 */
    .title-img{
        display: none;
    }

    .page-header {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        background-color: rgba(106, 25, 23, 0.5);
        padding: 0 30px;
    }


    h1 {
        font-size: 28px;
    }

    .layout {
        flex-direction: column;
    }

    aside {
        width: 100%;
    }

    .menu-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }


    .is-fixed{
        background-color: #e8d3ca;
        color: #6a1917;
    }
    
    .contents{
    margin: auto;
}


    .cover{
        background-size: cover;
        background-position: 80% center;
    }
    
    .page-header{
    display: flex;
    justify-content: space-between;
    height: 40px;
    background-color: rgba(106, 25, 23, 0.5);
    padding: 0 30px;
}

    h1{
        font-size: 28px;
    }


    .layout{
        flex-direction: column;
    }
    aside{width: 100%;}



    /* ===== スマホだけ：ハンバーガーに切り替え ===== */

/* ハンバーガーメニュー */
.menu-btn{
    max-height: 50px;
    height: auto;
}

.nav{
    display: none;
}

.main-nav{
    background-color: rgba(232, 211, 202, 0.7);
    color: #6a1917;
}

  .news-layout{
    display: block;
  }
  .sidebar{
    width: auto;
    margin-top: 32px;
  }
}


@media (min-width: 769px){
    .page-title{
        font-size: 36px;
    }
    .heading-large{
        font-size: 2.5rem;
    }
    .post-title{
        font-size: 2rem;
    }
    
    .news-contents{
        display: flex;
        justify-content: space-between;
    }
    .post{
        width: 70%;
    }
    .sidebar{
        width: 22%;
    }
    .sidebar .heading-midium{
        line-height: 1;
        margin-bottom: 1rem;
        text-align: center;
    }

    .menu-container{
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .menu-icon, .overlay{ display:none; }
    .sp-nav{
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    }
    
    .menu-toggle, .menu-icon, .overlay, .sp-nav{
        display: none;
    }

    .pc-nav{
        display: block;
    }

}