/*
Theme Name: matsunoki
Theme URI: http://localhost/
Description: まつのきのサンプルテーマです。
Version: 1.0
Author:　gr1cj
Author URI: http://localhost/
*/

@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  color: #121212;
  font-family: 'YuGothic', 'Yu Gothic', sans-serif;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
li {
  list-style: none;
}
a {
  color: #121212;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  opacity: 0.7;
}

.wrapper {
  max-width: 1240px;
  padding: 0 20px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 60px;
  text-align: center;
}
.section-title .text {
  font-size: 36px;
  font-weight: bold;
  display: inline-block;
  position: relative;
}
.section-title .text::before,
.section-title .text::after {
  content: "";
  width: 50px;
  height: 100%;
  position: absolute;
  top: -3px;
}
.section-title .text::before {
  background-image: url("../matsunoki/assets/img/icon-tree-l.png");
  background-size: contain;
  left: -60px;
}
.section-title .text::after {
  background-image: url("../matsunoki/assets/img/icon-tree-r.png");
  background-size: contain;
  right: -60px;
}
.section-title .img {
  max-width: 80px;
  display: block;
  margin: -10px auto 0;
}

/*-------------------------------------------
Header
-------------------------------------------*/
#header .logo {
  width: 100%;
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 30;
}
#header .logo a {
  display: block;
  width: 150px;
  height: 145px;
}
#header .hamburger {
  width: 60px;
  height: 60px;
  background-color: #7bd1b7;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
}
#header .hamburger span {
  width: 30px;
  height: 2px;
  background-color: #3d5a7d;
  display: inline-block;
  position: absolute;
  left: 15px;
  transition: all 0.4s;
}
#header .hamburger span:nth-of-type(1) {
  top: 25px; 
}
#header .hamburger span:nth-of-type(2) {
  top: 35px;
}
#header .hamburger.active span:nth-of-type(1) {
  top: 30px;
  transform: rotate(-30deg);
}
#header .hamburger.active span:nth-of-type(2) {
  top: 30px;
  transform: rotate(30deg);
}
#header .navi {
  width: 100%;
  height: 100vh;
  background-color: #f2f9fd;
  padding: 100px 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  transition: all 0.6s;
  opacity: 0;
  visibility: hidden;
}
#header .navi.active {
  opacity: 1;
  visibility: visible;
}
#header .navi .menu-area {
  width: 100%;
  height: 100vh;
  overflow: auto;
}
#header .navi .menu-area .menu {
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
  padding: 80px 80px 20px;
  margin: 0 auto;
}
#header .navi .menu-area .menu li {
  width: 46%;
  border-bottom: dashed 1px #121212;
  margin: 0 2%;
  position: relative;
}
#header .navi .menu-area .menu li::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: solid 2px #121212;
  border-right: solid 2px #121212;
  transform: rotate(45deg);
  position: absolute;
  top: 38px;
  right: 10px;
}
#header .navi .menu-area .menu li:nth-child(-n+2) {
  border-top: dashed 1px #121212;
}
#header .navi .menu-area .menu li a {
  display: block;
  padding: 30px 0;
}


/*-------------------------------------------
Mainvisual
-------------------------------------------*/
.mainvisual {
  position: relative;
}
.mainvisual .wave {
  position: absolute;
  bottom: -2px;
}

/*-------------------------------------------
About
-------------------------------------------*/
#about {
  padding: 80px 0;
  position: relative;
  text-align: center;
  background-color: #fff;
}
#about .title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 50px;
}
#about .text {
  line-height: 2.5;
  width: 400px;
  height: auto;
  margin: 0 auto;
  text-align: left;
}
#about .img {
  width: 90%;
  animation: swing 3s ease infinite;
  margin: 0 auto;
  position: absolute;
  top: 120px;
  left: 0;
  right: 0;
  z-index: 0;
}
@keyframes swing {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(0);
  }
  75% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0);
  }
}

/*-------------------------------------------
Parallax
-------------------------------------------*/
.parallax {
  height: 600px;
  background-image: url("../matsunoki/assets/img/parallax.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: right;
  position: relative;
}
.parallax .wave-top {
  position: absolute;
  top: -3px;
}
.parallax .wave-bottom {
  position: absolute;
  bottom: -2px;
}

/*-------------------------------------------
Activity
-------------------------------------------*/
#activity {
  padding: 80px 0;
  background-color: #fff;
}
#activity .slider .slider-item {
  max-width: 400px;
  margin: 0 40px;
  text-align: center;
}
#activity .slider .slider-item:nth-child(even) {
  margin-top: 80px;
}
#activity .slider .slider-item .img img {
  border-radius: 50%;
}
#activity .slider .slider-item .title {
  font-size: 24px;
  font-weight: bold;
  margin: 30px 0 20px;
}
#activity .slider .slider-item .text {
  line-height: 1.8;
  width: 248px;
  height: auto;
  margin: 0 auto;
  text-align: left;
}

/*-------------------------------------------
Map   #f2f9fd
-------------------------------------------*/
#map {
  background-color: #f2f9fd;
  padding: 200px 0 60px;
  position: relative;
}
#map .wave-top {
  position: absolute;
  top: -2px;
}
#map .wave-bottom {
  position: absolute;
  top: calc(100% - 2px);
}
#map .gmap {
  text-align: center;
}

/*-------------------------------------------
Bottom-img
-------------------------------------------*/
.bottom-img img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: bottom;
}

/*-------------------------------------------
Footer
-------------------------------------------*/
#footer {
  background-color: #f2f9fd;
  padding: 0 20px 40px;
}
#footer .content {
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  background-color: #9de9d8;
  border-radius: 30px;
  padding: 5%;
  margin: 0 auto 30px;
  position: relative;
  top: -60px;
}
#footer .content .info-area {
  width: 50%;
  font-size: 14px;
}
#footer .content .info-area .name {
  font-size: large;
  font-weight: bold;
}
#footer .content .info-area .address {
  margin-bottom: 5px;
}
#footer .content .info-area .tel {
  margin-bottom: 30px;
}
#footer .content .info-area .menu {
  display: flex;
  flex-wrap: wrap;
}
#footer .content .info-area .menu li {
  width: 45%;
  border-bottom: dashed 1px #121212;
  position: relative;
  margin-right: 5%;
}
#footer .content .info-area .menu li::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: solid 1px #121212;
  border-right: solid 1px #121212;
  transform: rotate(45deg);
  position: absolute;
  top: 20px;
  right: 10px;
}
#footer .content .info-area .menu li:nth-child(-n+2) {
  border-top: dashed 1px #121212;
}
#footer .content .info-area .menu li a {
  display: block;
  padding: 12px 0;
}
#footer .copyright {
  font-size: 10px;
  text-align: center;
}

/*-------------------------------------------
スマートフォン            767px
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .section-title {
    margin-bottom: 30px;
  }
  .section-title .text {
    font-size: 26px;
  }
  .section-title .text::before,
  .section-title .text::after {
    width: 25px;
    top: 3px;
  }
  .section-title .text::before {
    left: -35px;
  }
  .section-title .text::after {
    right: -35px;
  }

  /*-------------------------------------------
  Header
  -------------------------------------------*/
  #header .logo {
    font-size: 20px;
    top: 23px;
  }
  #header .navi .menu-area .menu {
    flex-direction: column;
    padding: 20px;
  }
  #header .navi .menu-area .menu li {
    width: 100%;
    margin: 0;
  }
  #header .navi .menu-area .menu li::after {
    top: 30px;
  }
  #header .navi .menu-area .menu li:nth-child(-n+2) {
    border-top: none;
  }
  #header .navi .menu-area .menu li a {
    padding: 20px 0;
  }
  #header h1 a img{
    width: 85px;
    height: 80px;
  }
  /*-------------------------------------------
  About
  -------------------------------------------*/
  #about {
    padding: 40px 0;
  }
  #about .title {
    font-size: 30px;
    margin-bottom: 20px;
  }
  #about .text {
    font-size: 14px;
    width: 300px;
  }
  #about img {
    width: 60%;
    opacity: 0.5;
  }
  /*-------------------------------------------
  Parallax
  -------------------------------------------*/
  .parallax {
    height: 400px;
    background-attachment: scroll;
  }

  /*-------------------------------------------
  Introduction
  -------------------------------------------*/
  #introduction {
    padding-top: 40px;
  }
  
  /*-------------------------------------------
  Activity
  -------------------------------------------*/
  #activity {
    padding: 40px 0;
  }
  #activity .slider .slider-item {
    margin: 0 10px;
  }
  #activity .slider .slider-item .title {
    font-size: 18px;
    margin: 20px 0 10px;
  }
  #activity .slider .slider-item .text {
    font-size: 14px;
  }

  /*-------------------------------------------
  Map
  -------------------------------------------*/
  #map {
    padding: 100px 0 40px;
  }
  #map .gmap iframe{
    width: 300px;
    height: 275px;
  }
  /*-------------------------------------------
  Bottom-img
  -------------------------------------------*/
  .bottom-img img {
    height: 300px;
  }

  /*-------------------------------------------
  Footer
  -------------------------------------------*/
  #footer .content {
    flex-direction: column;
    padding: 40px 20px;
    margin: 0 auto;
  }
  #footer .content .info-area {
    width: 100%;
    margin-bottom: 30px;
  }
}