/*
Theme Name: yayoi_renew
Description: cyayoi_renew theme
Version: 0.1.1
 */

/* ============================
	common
============================ */

#wrapper {
  min-width: 1040px;
  overflow: hidden;
}

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

.flex-start {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.ofi {
  font-family: "object-fit: cover;";
  -o-object-fit: cover;
  object-fit: cover;
}

.bold {
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  #wrapper {
    min-width: 0;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(30, 30, 30, 0.3);
  }
}

/* ============================
	sp-menu
============================ */
#sp-menu {
  box-sizing: border-box;
  position: absolute;
  transition: all 0.35s ease;
  top: 60px;
  left: 0;
  background-color: #f0edea;
  width: 100%;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
}

#sp-menu.opening {
  position: fixed;
  transition: all 0.35s ease;
  opacity: 1;
  pointer-events: auto;
  height: calc(100vh - 60px);
}

#sp-menu .menu-item a {
  text-align: center;
  line-height: 1;
  display: block;
  width: 100%;
  padding: 15px 0;
  font-weight: 700;
}

#sp-menu .sub-menu {
  display: none;
  opacity: 0;
  transition: 0.35s all ease;
}

#sp-menu .sub-menu.opening {
  display: block;
  opacity: 1;
  transition: 0.35s all ease;
}

#sp-menu .sp-contact-box {
  margin: 30px 0 0;
}

#sp-menu .sp-contact-box a {
  box-sizing: border-box;
  display: block;
  background-color: #111;
  text-align: center;
  color: #fff;
  padding: 6px 0;
}

/* btn-hamburger */
#btn-hamburger {
  position: relative;
  top: 0;
  right: 0;
  background-color: #111;
  width: 60px;
  height: 60px;
  z-index: 1000;
  cursor: pointer;
}

#btn-hamburger .border {
  position: absolute;
  left: 15px;
  transition: opacity, transform 0.2s ease;
  background: #fff no-repeat left top;
  width: 30px;
  height: 2px;
  z-index: 1;
}

#btn-hamburger .border:first-child {
  top: 33%;
}

#btn-hamburger .border:nth-child(2) {
  transform: rotate(0);
  opacity: 1;
  top: 50%;
}

#btn-hamburger .border:nth-child(3) {
  top: 67%;
}

#btn-hamburger.opening .border:first-child {
  transform: rotate(45deg);
  top: 50%;
}

#btn-hamburger.opening .border:nth-child(2) {
  opacity: 0;
}

#btn-hamburger.opening .border:nth-child(3) {
  top: 50%;
  transform: rotate(-45deg);
}

/* ============================
	header
============================ */
#header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

#header.h-fixed {
  position: fixed;
}

#header .h-inner {
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  background: #eaeaea;
}

#h-gnav-box.flex-start {
  align-items: center;
}

#h-gnav-box .menu-item + .menu-item {
  margin: 0 0 0 30px;
}

#h-gnav-box .menu-item a {
  font-size: 1.8rem;
  font-weight: 700;
}

#h-gnav-contact {
  margin-left: 30px;
}

#h-gnav-contact a {
  display: block;
  box-sizing: border-box;
  background-color: #111;
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  width: 160px;
  height: 40px;
  padding: 12px 0;
}

@media screen and (max-width: 767px) {
  #header {
    margin: 0 auto;
    right: 0;
  }

  #header .h-inner {
    padding: 0;
  }
}

/* ============================
	footer
============================ */
#footer .f-inner {
  padding: 80px 0;
  background-color: #eaeaea;
}

#footer .f-content {
  text-align: center;
}

#copyright {
  background-color: #111;
  padding: 10px 0;
}

#copyright p {
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

@media screen and (max-width: 767px) {
  #footer .f-inner {
    padding: 60px 0;
  }
}

/* ============================
	mainvisual
============================ */
.mainvisual {
  width: 100%;
  margin: 60px 0 0;
}

#top-mv .mv-inner {
  height: 600px;
  background-color: #e1e1e1;
}

#top-mv .mv-inner.flex-start {
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 767px) {
  #top-mv .mv-inner {
    height: 300px;
  }
}

#page-mv .mv-inner {
  padding: 100px 0;
  background-color: #e1e1e1;
}

#page-mv .page-ttl {
  margin: 0;
}

@media screen and (max-width: 767px) {
  #page-mv .mv-inner {
    padding: 60px 0;
  }
  #page-mv .page-ttl {
    font-size: 2.1rem;
  }
}

/* ============================
	section
============================ */
.sec-inner {
  padding: 100px 0;
}

.sec-ttl {
  text-align: center;
  margin: 0;
}

.content-width {
  box-sizing: border-box;
  width: 1040px;
  padding: 0 20px;
  margin: 0 auto;
}

.content-box {
  margin: 50px 0 0;
}

@media screen and (max-width: 767px) {
  .content-width {
    width: 100%;
  }
}

/* ============================
	breadcrumb
============================ */
.breadcrumbs {
  padding: 8px 0;
  background: #000;
  font-size: 1.2rem;
}

.breadcrumbs,
.breadcrumbs a,
.breadcrumbs span {
  color: #fff;
}

/* ============================
	pagenavi
============================ */
.wp-pagenavi {
  clear: both;
  margin: 30px 0 0;
  font-size: 1.6rem;
  text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-block;
  width: 3em;
  height: 3em;
  margin: 0 0.5em;
  font-weight: bold;
  line-height: 3;
  color: #999;
  border: 2px solid #ccc;
  text-align: center;
  vertical-align: middle;
  transition: all 0.5s ease;
}

.wp-pagenavi a:hover,
.wp-pagenavi span {
  background: #000000;
  color: #fff;
  border-color: #000;
  opacity: 1;
  text-decoration: none;
}

.wp-pagenavi a:hover {
  transition: all 0.5s ease;
}

.wp-pagenavi .extend {
  width: 1em;
  color: #000;
  background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
  border: medium none;
}

.wp-pagenavi .extend::after {
  content: "…";
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  position: relative;
  width: 3em;
  height: 3em;
  background: #fff;
  text-indent: -999999px;
  vertical-align: middle;
}

.wp-pagenavi .previouspostslink::after,
.wp-pagenavi .nextpostslink::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-top: 2px solid #999;
  border-right: 2px solid #999;
}

.wp-pagenavi .previouspostslink::after {
  transform: rotate(225deg);
}

.wp-pagenavi .nextpostslink::after {
  transform: rotate(45deg);
}

.wp-pagenavi .previouspostslink:hover::after,
.wp-pagenavi .nextpostslink:hover::after {
  border-color: #fff;
}

.result_count {
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.4rem;
  color: #999;
}

/* ============================
	post parts
============================ */
.post-date {
  font-size: 1.5rem;
  min-width: 70px;
}

.post-cats {
  line-height: 1;
  margin: 0 0 0 20px;
}

.post-cats.flex-start {
  justify-content: flex-start;
  align-items: center;
}

.post-cat {
  display: block;
  background-color: #111;
  color: #fff;
  font-size: 1.4rem;
  padding: 4px 10px;
  width: 120px;
  text-align: center;
}

.post-cat + .post-cat {
  margin: 0 0 0 10px;
}

.post-cat:link {
  color: #fff;
}

.post-cat:visited {
  color: #fff;
}

/* ============================
	news list
============================ */
.news-item {
  padding: 20px 0;
}

.news-item + .news-item {
  border-top: 1px solid #1e1e1e;
}

.news-item .post-ttl {
  font-size: 1.5rem;
  margin: 0 0 0 20px;
}

@media screen and (max-width: 767px) {
  .news-item .post-meta {
    width: 100%;
  }
  .news-item .post-ttl {
    margin-left: 0;
  }
}

/* ============================
	card list
============================ */
.card-list {
  margin-top: -30px;
  margin-left: -80px;
}

.card-item {
  width: 280px;
  margin-top: 30px;
  margin-left: 80px;
}

.card-item .post-thumb img {
  width: 100%;
}

.card-item .post-info {
  margin-top: 20px;
}

.card-item .post-ttl {
  font-size: 1.5rem;
  margin: 20px 0 0;
}

@media screen and (max-width: 767px) {
  .card-item {
    width: 100%;
  }
}

/* ============================
	contact form
============================ */
.contact-box .required {
  display: inline-block;
  background-color: #e21414;
  color: #fafafa;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  margin: 0 0 0 20px;
  padding: 4px 8px;
}

.contact-box input[type="text"],
.contact-box input[type="password"],
.contact-box input[type="email"],
.contact-box input[type="tel"],
.contact-box input[type="url"],
.contact-box input[type="number"],
.contact-box textarea {
  box-sizing: border-box;
}

.contact-box th {
  box-sizing: border-box;
  width: 25%;
}

.contact-box td {
  box-sizing: border-box;
  width: 75%;
}

.contact-box .your-email {
  box-sizing: border-box;
  width: 100%;
}

.contact-box .zip {
  width: 150px;
  box-sizing: border-box;
}

.contact-box .your-address {
  box-sizing: border-box;
  width: 100%;
}

.contact-box .your-content {
  width: 100%;
  box-sizing: border-box;
}

#consent-box {
  text-align: center;
}

#submit-box .wpcf7-response-output {
  text-align: center;
}

#btn-submit {
  width: 300px;
  position: relative;
  margin: 0 auto;
}

#btn-submit .wpcf7-submit {
  background-color: #111;
  color: #fff;
  line-height: 1;
  width: 300px;
  padding: 16px 0;
}

#btn-submit .wpcf7-spinner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 0 0 10px;
}

@media screen and (min-width: 768px) {
  .contact-box th {
    text-align: left;
  }
}

@media screen and (max-width: 767px) {
  .contact-box input[type="text"],
  .contact-box input[type="password"],
  .contact-box input[type="email"],
  .contact-box input[type="tel"],
  .contact-box input[type="url"],
  .contact-box input[type="number"],
  .contact-box textarea {
    width: 100%;
  }

  .contact-box td,
  .contact-box th {
    display: block;
    width: 100%;
  }
}

/* ============================
	404
============================ */
#error-404 .content-box p {
  text-align: center;
}

@media screen and (min-width: 1001px) {
  #sp-menu {
    display: none;
  }

  #btn-hamburger {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  #h-gnav-box {
    display: none;
  }
}
