/* 
Theme Name: Sasakibutsudan
Version:1.0
Description: Sasakibutsudanのテーマです。
*/

@charset "utf-8";

/* 全体のスタイル設定 */
html {
  font-size: 62.5%;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
  font-family: "ヒラギノ明朝 Pro", serif;
}

.wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.content-wrapper{
 width: 100%; 
}
main {
  width: 90%;
  margin: 0 auto;
}
.aside{
  display: none;
  width: 90%;
  margin: 0 auto;
  background-color: #eee;
}
.aside ul li a{
  display: block;
  padding: 8px 8px 8px 16px;
}

.webshop-category-list li{
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.webshop-category-list li img{
  margin-right: 8px;
}

a {
  color: #333;
  text-decoration: none;
  transition: .2s;
}

a:hover {
  color: #00f;
  text-decoration: none;
}

img {
  border: none;
  max-width: 100%;
  vertical-align: bottom;
}

ul {
  list-style: none;
}

h2 {
  font-size: 24px;
  text-align: center;
  margin: .5em auto;
}

address {
  font-style: normal;
  margin-top: 2rem;
}

figcaption {
  width: 90%;
  margin: 0 auto;
}

.flex{
  display: flex;
}

/* ヘッダーの設定 */
header {
  width: 100%;
  height: 8rem;
  background-color: #fff;
  background-image: url(img/header_img.png);
}

header h1.header_logo {
  width: 50%;
  max-width: 350px;
  height: 5.5rem;
  margin: 0 .5rem .5rem;
  padding-top: .25em;
}
img.header-logo01{
  width: 100%;
}
img.header-logo02{
  width: 80%;
}

/* ヘッダーナビの設定 */
.header_nav ul li {
  padding: 20px 0;
}

.header_nav ul li a {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* モバイル版ナビ設定 */
nav.sp ul li {
  padding: 8px 0;
}
nav.sp ul li a {
  display: block;
  font-size: 14px;
  font-weight: bold;
}

nav.sp ul li a:active {
  color: #00f;
}

/* ==========ハンバーガーメニューについて====== */
/* チェックボックスを消す */
input[type="checkbox"]#menu {
  display: none;
}

/* ハンバーガーボタン */
.open {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: rgb(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* ハンバーガーの棒（中心） */
.open span {
  display: block;
  position: relative;
  top: 50%;
  margin: 0 auto;
  width: 24px;
  height: 2px;
  background-color: #333;
  transition: .2s ease-in-out;
}

/* ハンバーガーの棒（上下） */
.open span::before,
.open span::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #333;
  transition: .2s ease-in-out;
}

.open span::before {
  top: -9px;
}

.open span::after {
  top: 9px;
}

/* 背景の薄黒い幕 */
.back {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 400%;
  background: rgb(0, 0, 0, 0.8);
  z-index: 100;
}

/* モバイルの開閉ナビメニュー */
nav.sp {
  position: fixed;
  top: 0;
  left: -75%;
  width: 75%;
  height: 100vh;
  background: rgb(255, 255, 255);
  z-index: 200;
  transform: translateX(-100%);
  transition: .2s ease-in-out;
}

nav.sp ul li {
  text-align: center;
  padding: 8px 0;
}

/* チェックがついた時に設定 */
input[type="checkbox"]#menu:checked~.open span {
  width: 30px;
  background-color: transparent;
}

input[type="checkbox"]#menu:checked~.open span::before {
  transform: translateY(9px) rotate(45deg);
}

input[type="checkbox"]#menu:checked~.open span::after {
  transform: translateY(-9px) rotate(-45deg);
}

/* 黒い薄膜が開く */
input[type="checkbox"]#menu:checked~.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400%;
  background: rgba(0, 0, 0, 0);
}

/* モバイル版のナビメニューが開く */
input[type="checkbox"]#menu:checked~nav.sp {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  height: 100vh;
  background: rgba(255, 255, 255,.8);
  box-shadow: 0 4px 8px #121212;
  z-index: 200;
  transform: translateX(0);
}

/* メインビジュアルの設定 */
section.mv {
  margin-bottom: 100px;
}
.page section.mv{
  margin-bottom: 0;
}

section.mv figure {
  margin: 0 auto;
}

img.top_img {
  width: 100%;
  height: auto;
}

/* 投稿ページのメインビジュアルの設定 */
.single section.mv {
  width: 100%;
}

/* インフォメーション欄の設定 */
.section_info {
  width: 100%;
  height: auto;
  background-image: url(img/info_bg.png);
}

time {
  border: 1px solid #333;
  padding: 5px;
  margin-top: 0.5em;
  margin-right: 1em;
  margin-bottom: 1em;
  width: 130px;
  height: 30px;
}



.paginate {
  margin-top: 20px;
  font-size: 18px;
}

/* 一覧はこちらリンク */
.archive_link {
  text-align: right;
  font-size: 18px;
}

/* フッターの設定 */
footer {
  width: 100%;
  height: auto;
  background-color: #f9f2c9;
  background-image: url("img/footer_img.jpg");
  text-align: center;
}

.footer_nav ul {
  justify-content: center;
}

.footer_nav ul li:first-child {
  border-left: 1px solid #333;
}

.footer_nav ul li {
  border-right: 1px solid #333;
  padding: 0.5em 1em;
}

.footer_nav ul li a {
  font-weight: bold;
}

.sns {
  display: flex;
  justify-content: center;
}

.sns p {
  padding: 13px;
}

.copyright {
  margin-top: 55px;
  padding-bottom: 1rem;
}

.forTop {
  position: fixed;
  right: -10px;
  bottom: 10px;
}

.forTop a img {
  width: 50%;
}


/* カスタムフィールド(ACF)について */
.acf {
  margin-top: 20px;
}
/* 値段の欄の設定 */
.item_price {
  margin-top: 40px;
}

/* 商品(固定shohin)ページの設定 */
.wp-block-column{
	margin-bottom: 40px;
}

.page .wp-block-column img {
	width: 100%;
	height: auto;
}

/* googlemapの設定 */
.googleMap{
  width: 100%;
}

/* お問い合わせフォームの設定 */
.wpcf7{
	width: 100%;
}


.info_post .wpcf7 form.wpcf7-form p{
	width: 80%;
	margin: 0 auto;
	margin-bottom: 20px;
}

form.wpcf7-form span.wpcf7-form-control-wrap{
	display: block;
	width: 100%;
}
input[type="text"],
input[type="tel"],
input[type="email"],
textarea{
	width: 100%;
}
input[type="text"],
input[type="tel"],
input[type="email"]{
	padding: 5px;
}

input[type="submit"]{
	display: block;
	margin: 0 auto;
	width: 100px;
	height: 50px;
	font-weight: bold;
	background-color: #f9f2c8;
}

input[type="submit"]:hover{
	background: #f9e77c;
}

input[type="button"].wpcf7c-btn-back{
	display: block;
	margin: 0 auto;
	width: 100px;
	height: 50px;
	font-weight: bold;
}



/* pcとspの表示非表示の切替 */
.pc {
  display: none;
}

.sp {
  display: block;
}
/* 下層ページの背景 */
aside.aside-left{
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
}
#shohin aside.aside-left{
  background-image: url(img/sp01.jpg);
}
#works aside.aside-left{
  background-image: url(img/works-bg.jpg);
}
#about aside.aside-left{
  background-image: url(img/about-bg.jpg);
}
#contact aside.aside-left{
  background-image: url(img/sp04.jpg);
}

.main-wrapper{
  width: 100%;
  background-color: rgba(255,255,255,.85);
}

.main-wrapper .wp-block-image img{
  width: 100% !important;
  height: auto !important;
}

/*  スマホのスライダーの設定 */
#metaslider_container_135{
  width: 95%;
  margin: 0 auto;
}
.footer-cta{
  align-items: center;
  width: 80%;
  margin: 0 auto;
}
.footer-cta figure{
  width: 100%;
  max-width: 300px;
  margin:0 auto 40px;
}
.footer-cta p{
  width: 100%;
  font-size: 2.4rem;
}
.footer-cta p::first-line{
  font-size: 1.4rem;
}
/* トップページ商品の余白 */
.home div.wp-block-columns{
  flex-wrap: nowrap;
  margin: 0 auto;
}
.home .wp-block-column{
  margin: 8px;
}
.home .wp-block-column h3{
  font-size: 1.4rem;
}  

/* モバイルナビの設定 */
.sp-nav-siteMenu,
.sp-nav-webShop{
  width: 100%;
}
nav.sp ul .flex {
  width: 100%;
}
nav.sp ul .flex li{
  width: 50%;
}
nav.sp ul li{
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,.1);
  border-left: 1px solid rgba(0,0,0,.1);
  border-collapse: collapse;
  border-spacing: 0;
}
/* ----------pc用のスタイル---------- */
@media screen and (min-width:768px) {

  html{
    font-size: 100%;
  }

  /* pcとspの表示非表示の設定 */
  .pc {
    display: block;
  }

  .sp {
    display: none;
  }

  .pc-flex{
    display: flex;
  }
  .pc-header{
    justify-content: space-between;
  }
  .header-cta{
    width: 30%;
    max-width: 360px;
    margin-top: 1rem;
    margin-right: 1rem;
  }
  .header-toContact{
    font-size: 1.6rem;
    padding: 5px;
    transition: .3s;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
  }
  .header-toContact a{
    display: block;
    color: #333;
  }
  .header-toContact:hover{
    background-color: #fff09e;
    color: #333;
  }
  .header-tel{
    font-size: 1.8rem;
    padding: 5px;
    transition: .3s;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
  }
  .header-tel a{
    display: block;
    color: #333;
  }
  .header-tel:hover{
    background-color: #fff09e;
    color: #333;
  }


  body,
  header,
  footer{
    width: 100%;
  }

  main {
    width: 80%;
    margin: 0 auto;
  }
  .aside{
    width: 20%;
    background-color: #fff;
    margin-right: 16px;
    transition: .25s;
  }
  .aside ul li{
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
  .aside ul li:first-of-type{
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  .aside ul li a:hover{
    box-shadow: 0 1px 4px #121212;
    background-color: rgba(245,245,245,.5);
    opacity: 0.8;
  }
  .aside ul li a{
    display: block;
    padding: 8px 8px 8px 16px;
  }

  .flex {
    display: flex;
  }

  .container{
    position: relative;
    width: 100%;
  }
  aside.aside-left{
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 25%;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
  }
  /* 各個別テンプレートの背景画像 */
  #shohin aside.aside-left{
    background-image: url(img/sp01.jpg);
  }
  #works aside.aside-left{
    background-image: url(img/works-bg.jpg);
  }
  #about aside.aside-left{
    background-image: url(img/about-bg.jpg);
  }
  #contact aside.aside-left{
    background-image: url(img/sp04.jpg);
  }

  .main-wrapper{
    width: 75%;
    margin-left: 30%;
  }

  nav.header_nav {
    width: 100%;
    height: 100px;
    background-color: rgba(255,255,255,.85);
  }
  .header_nav ul li{
    width: 100%;
    height: 100%;
  }
  .header_nav ul li a{
    display: block;
    width: 100%;
    padding: 20px;
    text-align: center;
  }
  .header_nav ul li a:hover{
    opacity: .5;
  }
  .footer_nav {
    width: 100%;
    padding-top: 95px;
    margin-bottom: 55px;
  }
  .footer-cta{
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 0 auto;
  }
  .footer-cta figure{
    width: 50%;
  }
  .footer-cta p{
    width: 50%;
    font-size: 2rem;
  }
  .footer-cta p::first-line{
    font-size: 14px;
  }

  nav.pc ul li a:hover {
    color: #00f;
  }

  .justify_center {
    justify-content: space-around;
  }

  .logo_head {
    margin-top: 0;
  }

	header h1.header_logo {
    width: 40%;
    padding-top: .5em;
  }

  .slider {
    width: auto;
    height: auto;
    overflow: hidden;
    margin: 0;
  }
  .slide_item img {
    width: 100%;
    height: auto;
  }

  h2 {
    font-size: 48px;
  }

  figcaption {
    width: 100%;
  }

  figcaption p {
    width: 90%;
    margin: 0 auto;
  }

  .content_img {
    width: 100%;
    max-width: 744px;
  }

  .copyright {
    margin-top: 55px;
  }
  /* 上に戻るボタン */
  .forTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
  }
  /* スクロールしたらナビを固定 */
  .is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
  }
  /* トップページ商品の余白 */
  .home div.wp-block-columns,
  .home .content p{
    flex-wrap: nowrap;
    width: 80%;
    margin: 0 auto;
    }
  .home .wp-block-column{
    margin: 40px;
  }
}

