@charset "utf-8";

/*
Theme Name:Bayside Cafe
Description:カフェ・レストラン向けテーマ
Version:3.2.0
Author:Haruto
*/



/* スマホ画面（モバイルファースト） */

/* 共通 */
body{
  background-color: #fff;
  color:#333;
  font-family:'游ゴシック',YuGothic;
}
a{
  text-decoration:none;
  color:#333;
  transition:0.5s;
}
a:hover{
  color:#333;
}
.toppage-h2{
  text-align: center;
  margin-bottom:50px;
  font-size:28px;
}
.toppage-h2::first-letter{
  font-size:1.2em;
}
p{
  letter-spacing:0.05em;
  line-height: 1.8;
  font-size:16px;
}
section{
  padding:50px 10px;
}
.baysidecafe-btn{
  max-width:250px;
  height:30px;
  margin:50px auto 0 auto;
  text-align: center;
}
.baysidecafe-btn a{
  color:#fff;
  display:block;
  line-height: 30px;
  font-size:14px;
  transition: 0.5s;
}
.pc{
  display:none;
}
.fadein {
  opacity : 0;
  transform: translateY(20px);
  transition: all 1s;
}



/* ----------------------------ヘッダー---------------------------- */
header{
  background:transparent;
  position:fixed;
  top:0;
  width:100%;
  z-index:2;
  padding:32px 15px 10px;
}
h1{
  text-align: center;
}
h1 img{
  width:250px;
  height:auto;
}

/*　ハンバーガーボタン　*/
.hamburger {
  display : block;
  position: fixed;
  z-index : 3;
  right : 13px;
  top   : 12px;
  width : 42px;
  height: 42px;
  cursor: pointer;
  text-align: center;
}
.hamburger span {
  display : block;
  position: absolute;
  width   : 30px;
  height  : 2px ;
  left    : 6px;
  background : #fff;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition   : 0.3s ease-in-out;
  transition        : 0.3s ease-in-out;
}
.hamburger span:nth-child(1) {
  top: 10px;
}
.hamburger span:nth-child(2) {
  top: 20px;
}
.hamburger span:nth-child(3) {
  top: 30px;
}

/* ナビ開いてる時のボタン */
.hamburger.active span:nth-child(1) {
  top : 16px;
  left: 6px;
  background :#fff;
  -webkit-transform: rotate(-45deg);
  -moz-transform   : rotate(-45deg);
  transform        : rotate(-45deg);
}
.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
  top: 16px;
  background :#fff;
  -webkit-transform: rotate(45deg);
  -moz-transform   : rotate(45deg);
  transform        : rotate(45deg);
}
nav.globalnav-sp {
  position: fixed;
  z-index : 2;
  top  : 0;
  left : 0;
  color: #fff;
  background: rgba(0,0,0,0.7);
  text-align: center;
  width: 100%;
  opacity:0;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility .6s ease;
}
nav.globalnav-sp ul {
  margin: 0 auto;
  padding: 0;
  width: 100%;
}
nav.globalnav-sp ul li {
  list-style-type: none;
  padding: 0;
  width: 100%;
  transition: .4s all;
}
nav.globalnav-sp ul li:last-child {
  padding-bottom: 0;
}
nav.globalnav-sp ul li:hover{
  background :#555;
}
nav.globalnav-sp ul li a {
  display: block;
  color: #fff;
  padding: 1em 0;
  text-decoration :none;
}

/* このクラスを、jQueryで付与・削除する */
nav.globalnav-sp.active {
  opacity:100;
  pointer-events: auto;
}
.hamburger.transform{
  background-color:rgba(0,0,0,0.5);
}
.logo-hide{
  display:none;
}



/* -------------------------------スライドショー--------------------------- */
.slide{
  position:relative;
  height:100vh;
  overflow: hidden;
}
.slide img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit: cover;
  opacity:0;
  animation:slideshow 24s linear infinite;
  filter: brightness(70%);
}
.slide img:nth-child(2){
  animation-delay:8s;
}
.slide img:nth-child(3){
  animation-delay:16s;
}

@keyframes slideshow{
  0%{
    opacity:0;
    transform: scale(1);
  }
  10%{
    opacity:1;
  }
  28%{
    opacity:1;
  }
  38%{
    opacity:0;
    transform: scale(1.1);
  }
  100%{
    opacity:0;
  }
}

/* スライドテキスト */
.slide-txt{
  font-size:22px;
  color:#fff;
  position:absolute;
  top:43%;
  max-width:90%;
  margin:0 auto;
  left:0;
  right:0;
  text-shadow:0 0 2px #fff;
}
.slide-txt{
  opacity:0;
  animation:slidetext 24s linear infinite;
}
.slide-txt2{
  animation-delay:8s !important;
}
.slide-txt3{
  animation-delay:16s;
}

@keyframes slidetext{
  0%{
    opacity:0;
  }
  10%{
    opacity:1;
  }
  28%{
    opacity:1;
  }
  38%{
    opacity:0;
  }
  100%{
    opacity:0;
  }
}



/*========= スクロールダウンのためのCSS ===============*/

/*=== 9-1-4 矢印が動いてスクロールを促す  ====*/

/*スクロールダウン全体の場所*/
.scrolldown4{
  /*描画位置※位置は適宜調整してください*/
  position:absolute;
  bottom:10%;
  right:50%;
    /*矢印の動き1秒かけて永遠にループ*/
  animation: arrowmove 1s ease-in-out infinite;
}

/*下からの距離が変化して全体が下→上→下に動く*/
@keyframes arrowmove{
    0%{bottom:10%;}
    50%{bottom:13%;}
   100%{bottom:10%;}
}

/*Scrollテキストの描写*/
.scrolldown4 span{
  /*描画位置*/
  position: absolute;
  left:-20px;
  bottom:10px;
    /*テキストの形状*/
  color: #eee;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  /*縦書き設定*/
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}
/* 矢印の描写 */
.scrolldown4:before {
  content: "";
  /*描画位置*/
  position: absolute;
  bottom: 0;
  right: -6px;
  /*矢印の形状*/
  width: 1px;
  height: 20px;
  background: #eee;
  transform: skewX(-31deg);
}
.scrolldown4:after{
content:"";
  /*描画位置*/
position: absolute;
bottom:0;
right:0;
  /*矢印の形状*/
width:1px;
height: 50px;
background:#eee;
}



/*--------------------------コンセプト------------------------------ */
.concept img{
  width:98%;
  position:relative;
  left:-10px;
  z-index: 1;
}
.concept h3{
  text-align: center;
  margin-bottom:30px;
  font-size:22px;
}
.concept-txt{
  width:98%;
  padding:60px 30px 40px;
  margin-left:auto;
  position:relative;
  top:-30px;
  left:10px;
}
.concept .baysidecafe-btn{
  margin-top:0;
}



/* ----------------------おすすめメニュー------------------------ */
.recommend-menu-item{
  background:#fff;
  text-align: center;
  margin:0 auto 25px auto;
}
.recommend-menu-item img{
  width:100%;
}
.recommend-menu-name{
  text-align: center;
  padding: 15px 0;
}
.recommend-menu-txt{
  padding:10px;
  font-size:14px;
  text-align: left;
}



/* ------------------------こだわり------------------------------ */
.obsession{
  background-size:cover;
  background-position: center center;
  background-attachment: fixed;
  color:#fff;
  padding-top:70px;
  padding-bottom:70px;
}
.obsession h2{
  color:#fff;
  text-align: center;
  margin-bottom:50px;
  font-size:28px;
}
.obsession-txt{
  text-align:center;
  font-weight:500;
}



/* -------------------ギャラリー------------------------ */
.slick_slider {
  width: 100%;
  display: flex;
  max-width: 87%;
  margin: auto;
}
.slick_slider li {
  height: auto;
  margin-right: 10px;
  margin-left: 10px;
}
.slick_slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slick-prev:before,
.slick-next:before {
  color: black;
}
.slick-dots {
  left: 50%;
  transform: translateX(-50%);
}



/* -------------------------お知らせ--------------------------- */
.article-item{
  margin-bottom:30px;
}
.article-item-img img{
  width:100%;
  height:auto;
  margin-bottom:10px;
}
.article-item-body{
  padding:0 10px;
}
.article-item-title{
  text-align: center;
  border-bottom:1px solid #ccc;
  padding-bottom:5px;
}
.article-item_meta{
  display:flex;
  justify-content: center;
  padding:5px 0;
}
.article-item_meta li{
  list-style: none;
  padding:5px;
}
.article-item-cat{
  background:#ddd;
  border-radius:3px;
}
.article-item-date,.article-item-cat,.article-item-txt{
  font-size:13px;
}



/* ------------------------アクセス---------------------- */
.access-map{
  margin-bottom:30px;
}
.access-wrap iframe{
  width:100%;
  height:300px;
}
.access-info{
  text-align: center;
}
.access img{
  width:70%;
  margin-bottom:10px;
}
.access-shopname{
  font-size:20px;
  margin-bottom:20px;
}
.access-txt{
  text-align: left;
  padding:0 10px;
}



/* -------------------------フッター---------------------------- */
footer{
  text-align:center;
  padding:20px;
  color:#fff;
}
footer img{
  width:200px;
}
.footer-sns{
  display:flex;
  justify-content: center;
  margin:20px 0;
}
.footer-sns-item{
  list-style-type: none;
  padding:10px;
}
.footer-sns-item a{
  color:#fff;
  font-size:26px;
}
footer small{
  font-size:12px;
}



/* ---------------固定ページ------------------- */
.page-title-bg{
  height:200px;
  padding-top:130px;
  background-size:cover;
  background-position: center center;
  text-align: center;
  margin:0;
  position: relative;
}
.page-title-bg::after{
  content: '';
  background-color: rgba(0,0,0,.5);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.page-title{
  color:#fff;
  text-align: center;
  position: relative;
  z-index: 1;
  font-size:28px;
}
.page-container{
  max-width:900px;
  margin:0 auto;
  padding:50px 10px;
}



/* ----------------投稿ページ-------------------- */
.container{
  padding:30px 10px;
}
.main-contents{
  margin-bottom:50px;
}
.post-title{
  font-size:24px;
  margin-bottom:20px;
}
.post-info{
  margin-bottom:20px;
}
.post-cat{
  margin-left:10px;
}
.thumb-img{
  max-width:100%;
}
.content-tags{
  list-style:none;
  margin-top:30px;
}
.content-tags li{
  display:inline-block;
  margin-right:10px;
  border-radius:20px;
}
.content-tags li a{
  display:block;
  padding:6px;
  font-size:14px;
}
.widget_block{
  list-style:none;
}
.widget_block li{
  list-style:none;
  margin-bottom:10px;
}
.sidebar h2{
  font-size:20px;
  margin-top:40px;
  margin-bottom:20px;
  padding-bottom:5px;
}
.wp-block-search__label{
  display:block;
  margin-bottom:15px;
  padding-bottom:5px;
}

/* 前へ・次へリンク */
.content-nav{
  margin-top:50px;
  display:flex;
  justify-content: space-between;
}
.content-nav-prev,.content-nav-next{
  width:45%;
  font-size:14px;
}


/* -----------------------アーカイブページ------------------- */
.article-wrap{
  display:flex;
  margin-bottom:30px;
  padding-bottom:20px;
  border-bottom:1px solid #ccc;
}
.archive-left{
  width:40%;
  margin-right:20px;
}
.archive-right{
  width:60%;
}
.archive-thumb{
  width:100%;
  height:150px;
  object-fit: cover;
}
.archive-post-title{
  font-size:20px;
  margin-bottom:10px;
}

.archive-post-info{
  font-size: 12px;
  margin-bottom:10px;
}
.excerpt{
  font-size:14px;
  margin-bottom:10px;
}
.more-btn{
  width:150px;
  text-align: center;
  margin-left:auto;
}
.more-btn a{
  display:block;
  color:#fff;
  transition: 0.6s;
  font-size:14px;
  padding:3px;
}

/* ページネーション */
.pagination{
  text-align: center;
}
.page-numbers{
  background:#ddd;
  padding:5px 10px;
  border-radius:3px;
}
.pagination .current{
  color:#fff;
}



/*-------------------- 404ページ ----------------------*/
.toppage-link-404{
  margin-top:30px;
}
.toppage-link-404 a{
  color:blue;
  text-decoration: underline;
}



/*------------------- ブロックに独自のスタイル -------------------*/
/* テーブル　枠線上下のみ */
.wp-block-table.is-style-border-beside{
  max-width:600px;
  margin:0 auto;
}
.wp-block-table.is-style-border-beside td{
  border:1px solid #aaa;
  border-left:none;
  border-right:none;
  padding:10px 30px;
}

/* テーブル　ストライプ */
.wp-block-table.is-style-stripes{
  max-width:600px;
  margin:0 auto;
}
.wp-block-table.is-style-stripes td{
  padding:10px 30px;
}

/* 見出し　最初の一文字だけ大きく＆テーマカラーに */
.wp-block-heading.is-style-baysidecafe-style{
  font-size:28px;
}
.wp-block-heading.is-style-baysidecafe-style::first-letter{
  font-size:1.2em;
}



/* グローバルナビの「説明」欄 */
.menu-item a::after {
  display:block;
  content: attr(data-desc);
  color:#fff;
  font-size:11px;
  padding-top:6px;
}



/* ブロックエディタで出力した部分（リセットCSSでリセットされてしまうため） */
.block-editor-wrap h2{
  font-size:28px;
  line-height: 1.5;
  font-weight: bold;
  margin-bottom:20px;
}
.block-editor-wrap p{
  font-size:16px;
  line-height:1.8;
  margin-bottom:20px;
}
.block-editor-wrap li{
  font-size:16px;
  line-height:1.5;
}

/*ブロックの「全幅」用*/
.alignfull{
  width:100vw;
  margin-right:calc(50% - 50vw);
  margin-left:calc(50% - 50vw);
}




/*お問い合わせフォーム用*/
.wpcf7-form-control-wrap input{
  width:100%;
  padding:10px;
}
.wpcf7-form-control-wrap textarea{
  width:100%;
  padding:10px;
  line-height:1.5;
}
.wpcf7-submit{
  padding:8px 40px;
}



/* 検索フォーム */
.wp-block-search__input{
  padding:0 5px;
  width:75%;
}

