/*
Theme Name: 縁〜えにし〜
*/

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.8em;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

h2 {
  margin-bottom: 40px;
}

h3 {
  font-weight: normal;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #333;
  text-decoration: none;
  transition: opacity .4s ease-out;
}

a:hover {
  opacity: .5;
  }

/*  */

main {
  font-size: 16px;
}

@media (max-width: 800px) {

	main {
	  font-size: 14px;
	}
	
}

/* section */

section:first-of-type {
  padding: 0;
}

section:not(:first-of-type) {
  padding: 80px 0;
}

@media (max-width: 800px) {

  section:first-of-type {
    padding: 0 0 0;
  }

  section:not(:first-of-type) {
    padding: 50px 20px 0;
  }

}

/*  */

.c-box {
  width: 300px;
  height: 300px;
  background: #f0fff9;
}

@media (max-width: 800px) {

  .c-box {
    width: 150px;
    height: 150px;
    background: #f0fff9;
  }

}

/*  */

.btn-radius {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 7px;
  text-decoration: none;
  color: #FFF;
  background: #009d70;
  transition: .4s;
}

.btn-radius:hover {
  background: #007956;
}

/*  */

.f-container {
  display: flex;
}

/* .container */

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* header */

body.top header h1 img {
  max-width: 220px;
  margin-top: 20px;
}

body.sub header h1 img {
  max-width: 120px;
  margin-top: 10px;
}

@media (max-width: 800px) {

  body.top header h1,
  body.sub header h1 {
    margin: 30px auto 20px;
  }

  body.top header h1 img {
    max-width: 120px;
  }

}

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

header .container nav.pc-menu ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin-top: 40px;
}

header .container nav ul li:not(:last-child) {
  margin-right: 50px;
}

/* menu */

.sp-menu {
  display: none;
}

@media (max-width: 800px) {

  .sp-menu {
    display: block;
  }

  .pc-menu {
    display: none;
  }

}

/*--- .drawer-nav ---*/

.drawer-nav {
	z-index: 1000;
}

/*--- main visual ---*/

.top-main-visual {
  position: relative;
  padding: 40px 0 200px;
}

.top-main-visual .c-box {
  position: absolute;
  top: 100px;
  left: 0;
  z-index: -1000;
}

.top-main-visual .metaslider {
  max-width: 500px;
  position: absolute;
  top: 0;
  right: 0;
}

.copy {
  margin-top: 100px;
  margin-left: 40px;
  font-size:36px;
  font-weight: normal;
  line-height: 1.5em;
}

@media (max-width: 800px) {

  .top-main-visual {
    padding: 0 0 0;
  }
	
	.top-main-visual .c-box {
	  position: absolute;
	  top: 40px;
	  left: 0;
	  z-index: -1000;
	}

  .top-main-visual .metaslider {
    max-width: 100%;
    position: static;
  }

  .copy {
	margin-top: 0;
    margin-left: 0;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.7em;
    text-align: center;
  }

}

/* えにしについて */

.top-about {
  position: relative;
}

.top-about .c-box {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: -1000;
}

.top-about #metaslider-id-2218 {
  max-width: 400px;
  max-height: 300px;
  padding-right: 80px;
}

@media (max-width: 800px) {

  .f-container.top-about {
    display: block;
  }

  .top-about #metaslider-id-2218 {
    max-width: 300px;
	margin-bottom: 50px;
  }
	
	.top-about .c-box {
  top: 120px;
  left: 190px;
}

}

/* コンセプト */

.top-concept {
  justify-content: space-between;
  position: relative;
}

.top-concept .c-box {
  position: absolute;
  top: 0;
  right: 260px;
  z-index: -1000;
}

.top-concept img {
  position: absolute;
  top: 60px;
  right: 0;
  max-width: 500px;
  height: auto;
  padding-left: 100px;
}

.top-concept p {
  font-size: 18px;
  line-height: 1.8em;
  margin-bottom: 40px;
}

@media (max-width: 800px) {

  .f-container.top-concept {
    display: block;
  }

  .top-concept img {
    top: -40px;
    right: 0;
    max-width: 150px;
    height: auto;
  }

  .top-concept .c-box {
    top: 0;
    right: 40px;
  }

  .top-concept p {
    font-size: 16px;
  }

}

/* 事業内容 */

.business-content {
  position: relative;
}

.business-content .c-box {
  position: absolute;
  z-index: -1000;
}

.business-content .c-box1 {
  left: -100px;
  bottom: -100px;
}

.business-content .c-box2 {
  right: -100px;
  top: -100px;
}

.business-content h3 {
  text-align: center;
  margin-top: 5px;
}

.business-content a {
  width: 22%;
}

.business-content a:not(:nth-child(4n)) {
  margin-right: 4%;
}

.business-content a img {
  width: 100%;
}

@media (max-width: 800px) {

  .f-container.business-content {
    display: block;
  }

  .business-content a {
    width: 48%;
    float: left;
    margin-bottom: 10px;
    margin-right: 4%;
    font-size: 12px;
  }

  .business-content a:nth-child(2n) {
    margin-right: 0;
  }

  .business-content .c-box {
    top: 0;
    right: 40px;
  }

  .business-content p {
    font-size: 16px;
  }

  .cf::after {
    content: "";
    display: block;
    clear: both;
 }

}


/* お知らせ */

.top-news-list {
  padding: 0;
}

.top-news-list li {
  border-bottom: 1px solid #ddd;
  list-style: none;
}

.top-news-list li a {
  display: block;
  padding: 20px 0;
}

.date {
  margin-right: 40px;
}

.cat {
  font-size: 12px;
  color: #fff;
  border-radius: 4px;
  padding: 5px 8px;
  margin-right: 40px;
}

.jisseki {
  background: #3391ff;
}

.info {
  background: #dda0dd;
}

@media (max-width: 800px) {

  .date {
    margin-right: 10px;
  }

  .top-news-list-title {
    display: block;
    padding-top: 3px;
  }

}

/* 一覧ページ */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* .pagenation スタイル */

.pagination{
   margin: 40px auto 0;
}

.pagination .page-numbers{
   display: flex;
	justify-content: center;
   margin-right: 10px;
   padding: 10px 15px;
   color: #333;
   border-radius: 3px;
   background: #fff;
	list-style: none;
}

.pagination .current{
   padding: 10px 15px;
   background: #009d70;
   color: #fff;
}

.pagination .prev,
.pagination .next{
   background: transparent;
   box-shadow: none;
   color: #009d70;
}

.pagination .dots{
   background: transparent;
   box-shadow: none;
}

/* 投稿 */

.post-container .post-title {
  border-left: 3px solid #009d70;
  padding-left: 8px;
  font-size: 1.5em;
  font-weight: bold;
}

.post-container .post {
  width: 70%;
  height: auto;
  margin-right: 5%;
}

.post .post-header .date {
  margin-right: 15px;
}

.post-container .sidebar {
  width: 25%;
  height: auto;
}

.post-container .sidebar h3 {
  border-left: 3px solid #009d70;
  padding-left: 8px;
  font-weight: bold;
}

.post-container .sidebar ul {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
}

.post-container .sidebar ul li {
  border-bottom: 1px dotted #ddd;
}

.post-container .sidebar ul li a {
  display: block;
  width: 100%;
  padding: 5px 0 5px 8px;
}

@media (max-width: 800px) {

  .post-container {
    display: block;
  }

  .post-container .post {
    width: 100%;
    margin-right: 0;
    margin-bottom: 100px;
  }

  .post-container .sidebar {
    width: 100%;
  }

}

/* pager */

/* .post-navigation */

.post-navigation {
	margin-top: 40px;
	margin-bottom: 60px;
}

/* スクリーンリーダー限定テキスト： the_post_navigation() 用 */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-previous {
  float: left;
}

.nav-next {
  float: right;
}

/* リンクが長い場合に重ならないように */
.nav-previous, .nav-next {
  max-width: 45%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* footer */

footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px 0 40px;
  color: #fff;
  background: #009d70;
}

@media (max-width: 800px) {

  footer {
    font-size: 12px;
  }

}

/* .flow-btn */

.flow-btn {
  position: fixed;
  bottom: 20px;
  left: 40px;
	z-index: 1000;
}

.flow-btn img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 8px gray;
  padding: 0;
}

.flow-btn .phone {
  display: none;
}

@media (max-width: 800px) {

  .flow-btn {
    left: 20px;
  }
  
  .flow-btn img {
    width: 60px;
    height: 60px;
  }

  .flow-btn .phone {
    display: block;
    margin-bottom: 0;
  }

  .flow-btn .mail {
    margin-top: 5px;
  }

}

/*  */

.align-center {
  text-align: center;
}

@media (max-width: 800px) {

  .sp-central {
    text-align: center;
  }

}

/* margin */

.mb-30 {
  margin-bottom: 30px;
}

.mb-50 {
  margin-bottom: 50px;
}

.mb-120 {
  margin-bottom: 120px;
}

@media (max-width: 800px) {

  .sp-mb-0 {
    margin-bottom: 0;
  }
	
	.sp-mb-40 {
    margin-bottom: 40px;
  }

}

/* padding */

.plr-20 {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 電話番号リンク */

@media (min-width: 751px) {
	a[href*="tel:"] {
	pointer-events: none;
	cursor: default;
	text-decoration: none;
	}
}