@charset "UTF-8";
/* ///////////////////////////////////////////////

　トップページ のスタイル

/////////////////////////////////////////////// */
#wrapper {
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  transition: all 0.4s 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

#loading {
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

#loading.show {
  -webkit-transform: translateX(0);
          transform: translateX(0);
  -webkit-animation: none;
          animation: none;
}

#loading.hide {
  -webkit-transform: translateX(100%);
          transform: translateX(100%);
  transition-delay: .8s;
}

#loading .progress {
  text-align: center;
}

#loading .progress .logo {
  display: inline-block;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: .5s .5s;
}

#loading .progress .logo::after {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #2E8E39;
  content: "";
}

#loading .progress .logo span {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  content: "";
  background: #fff;
}

#loading .progress .company {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 17rem;
  font-weight: bold;
  opacity: 0;
  -webkit-transform: translateX(-20px);
          transform: translateX(-20px);
  transition: all .3s;
}

#loading .progress .company em {
  margin-left: .5em;
  font-size: 30rem;
}

#loading .progress .company.show {
  opacity: 1;
  -webkit-transform: none;
          transform: none;
}

#loading.show .progress .logo {
  opacity: 1;
}

/* ファーストビュー */
#hero {
  padding-left: calc(50% - 520px);
  padding-right: calc(50% - 520px);
  height: 100vh;
  background: url(../img/home/mainimg.jpg) center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 100;
}

@media screen and (max-width: 1100px) {
  #hero {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@supports (-webkit-touch-callout: none) {
  #hero {
    height: -webkit-fill-available;
  }
}

@media (min-width: 1920px) {
  #hero {
    padding-left: calc(50% - 750px);
    padding-right: calc(50% - 750px);
  }
}

@media screen and (min-width: 1920px) and (max-width: 1560px) {
  #hero {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 960px) {
  #hero {
    justify-content: flex-start;
    align-items: flex-end;
    padding-bottom: 110px;
  }
}

#hero .copy p {
  color: #fff;
  font-weight: bold;
}

#hero .copy p + p {
  margin-top: .8em;
}

#hero .copy p:nth-child(1) {
  font-size: 72px;
  line-height: 1.3;
}

#hero .copy p:nth-child(2) {
  font-size: 24px;
}

@media (min-width: 1920px) {
  #hero .copy p:nth-child(1) {
    font-size: 80px;
  }
  #hero .copy p:nth-child(2) {
    font-size: 32px;
  }
  #hero .copy p:nth-child(3) {
    font-size: 18px;
  }
}

@media (max-width: 960px) {
  #hero .copy p:nth-child(1) {
    font-size: 42px;
  }
  #hero .copy p:nth-child(2) {
    font-size: 18px;
  }
}

#hero .flowing_text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
}

#hero .flowing_text span {
  -webkit-animation: flowingText 20s linear infinite;
          animation: flowingText 20s linear infinite;
}

#hero .flowing_text img {
  max-width: inherit;
  margin-right: 150px;
}

@media (max-width: 960px) {
  #hero .flowing_text img {
    width: 850px;
  }
}

/* お知らせ */
#news {
  padding-left: calc(50% - 450px);
  padding-right: calc(50% - 450px);
  padding-top: 150px;
  padding-bottom: 150px;
}

@media screen and (max-width: 960px) {
  #news {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 960px) {
  #news {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

#news .news_list {
  margin-bottom: 80px;
}

@media (max-width: 960px) {
  #news .news_list {
    margin-bottom: 50px;
  }
}

/* トンボ通信・松本コラム */
.sec_posts_nav {
  padding-left: calc(50% - 540px);
  padding-right: calc(50% - 540px);
  padding-bottom: 150px;
  margin: 0 -25px;
  display: flex;
}

@media screen and (max-width: 1140px) {
  .sec_posts_nav {
    padding-left: 30px;
    padding-right: 30px;
  }
}

.sec_posts_nav a {
  margin: 0 25px;
}

@media (max-width: 960px) {
  .sec_posts_nav {
    padding-top: 100px;
    padding-bottom: 100px;
    flex-direction: column;
    align-items: center;
  }
  .sec_posts_nav a + a {
    margin-top: 50px;
  }
}

/* 晴耕舎が選ばれる理由 */
#strength {
  padding-left: calc(50% - 450px);
  padding-right: calc(50% - 450px);
  padding-top: 150px;
  padding-bottom: 250px;
  background: #F2F2F2;
}

@media screen and (max-width: 960px) {
  #strength {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 960px) {
  #strength {
    padding-top: 100px;
    padding-bottom: 190px;
  }
}

#strength .h2 {
  align-items: center;
  text-align: center;
}

#strength .h2 em {
  color: #2E8E39;
}

#strength .lead {
  margin: -30px 0 70px;
  font-size: 18rem;
  font-weight: bold;
  line-height: 2;
}

@media (max-width: 960px) {
  #strength .lead {
    margin: -10px 0 45px;
    text-align: left;
  }
}

#strength .strength_list {
  margin-bottom: 80px;
}

#strength .strength_list li {
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
}

#strength .strength_list li::after {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background: #C6C6C6;
}

#strength .strength_list li:first-child::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background: #C6C6C6;
}

#strength .strength_list i {
  margin-right: 100px;
  font-size: 70rem;
  font-style: normal;
  font-weight: 700;
}

#strength .strength_list span {
  font-size: 24rem;
  font-weight: bold;
}

#strength .strength_list img {
  position: absolute;
  width: 300px;
  opacity: 0;
  -webkit-transform: translateX(-10px);
          transform: translateX(-10px);
  transition: all .4s;
}

#strength .strength_list li:hover img {
  -webkit-transform: none;
          transform: none;
  opacity: 1;
}

#strength .strength_list li:nth-child(1) img {
  left: 760px;
}

#strength .strength_list li:nth-child(2) img {
  left: 600px;
}

#strength .strength_list li:nth-child(3) img {
  left: 450px;
}

@media (max-width: 960px) {
  #strength .strength_list {
    margin-bottom: 50px;
  }
  #strength .strength_list li {
    padding: 12px 0;
  }
  #strength .strength_list i {
    margin-right: 35px;
    font-size: 36px;
  }
  #strength .strength_list span {
    font-size: 18px;
  }
  #strength .strength_list img {
    display: none;
  }
}

/* 事業紹介 */
#service {
  padding-left: calc(50% - 450px);
  padding-right: calc(50% - 450px);
  padding-top: 400px;
  padding-bottom: 250px;
  background: url(../img/home/bg-service.jpg) center/cover;
  position: relative;
}

@media screen and (max-width: 960px) {
  #service {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 960px) {
  #service {
    padding-top: 140px;
    padding-bottom: 170px;
    background: url(../img/home/bg-service-sp.jpg) center top/cover;
  }
}

#service .sec_top {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
}

#service .sec_top .pic {
  position: absolute;
  right: calc(50% - 100px);
  text-align: right;
}

#service .sec_top .pic img {
  max-width: inherit;
}

#service .sec_top .name {
  position: absolute;
  top: 280px;
  left: 0;
  right: 0;
  display: flex;
}

#service .sec_top .name span {
  -webkit-animation: flowingTextReverse 20s linear infinite;
          animation: flowingTextReverse 20s linear infinite;
}

#service .sec_top .name img {
  max-width: inherit;
  margin-right: 100px;
}

@media (max-width: 960px) {
  #service .sec_top {
    top: -90px;
  }
  #service .sec_top .pic {
    right: 20px;
    left: 0px;
    text-align: left;
  }
  #service .sec_top .pic img {
    width: 340px;
    max-width: 100%;
  }
  #service .sec_top .name {
    top: 120px;
  }
  #service .sec_top .name img {
    width: 640px;
    margin-right: 60px;
  }
}

#service .h2 {
  color: #fff;
}

#service .service_list {
  margin: 0 -10px;
}

#service .service_list ul {
  display: flex;
}

#service .service_list ul:nth-child(1) {
  margin-right: -30px;
  margin-bottom: 50px;
}

#service .service_list ul:nth-child(2) {
  margin-left: 50px;
  margin-right: -80px;
}

#service .service_list li {
  width: 25%;
  padding: 0 10px;
}

#service .service_list a {
  color: #fff;
  font-weight: bold;
  font-size: 18rem;
}

#service .service_list a:hover {
  text-decoration: none;
}

#service .service_list figure {
  position: relative;
  margin-bottom: 8px;
}

#service .service_list figure i {
  position: absolute;
  bottom: 0;
  right: 10px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 54rem;
  line-height: 1;
}

@media (max-width: 960px) {
  #service .service_list ul {
    flex-wrap: wrap;
  }
  #service .service_list ul:nth-child(1) {
    margin: 0px;
  }
  #service .service_list ul:nth-child(2) {
    margin: 0px;
  }
  #service .service_list li {
    width: 50%;
    margin-bottom: 20px;
  }
  #service .service_list a {
    font-size: 13px;
  }
  #service .service_list figure i {
    font-size: 40px;
  }
}

/* 会社紹介 */
#company {
  padding-left: calc(50% - 450px);
  padding-right: calc(50% - 450px);
  padding-top: 430px;
  padding-bottom: 150px;
  background: #F2F2F2;
  position: relative;
}

@media screen and (max-width: 960px) {
  #company {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 960px) {
  #company {
    padding-top: 140px;
    padding-bottom: 100px;
  }
}

#company .sec_top {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
}

#company .sec_top .pic {
  position: absolute;
  left: calc(50% - 100px);
}

#company .sec_top .pic img {
  max-width: inherit;
}

#company .sec_top .name {
  position: absolute;
  top: 280px;
  left: 0;
  right: 0;
  display: flex;
}

#company .sec_top .name span {
  -webkit-animation: flowingText 20s linear infinite;
          animation: flowingText 20s linear infinite;
}

#company .sec_top .name img {
  max-width: inherit;
  margin-right: 100px;
}

@media (max-width: 960px) {
  #company .sec_top {
    top: -90px;
  }
  #company .sec_top .pic {
    left: 20px;
    right: 0px;
    text-align: right;
  }
  #company .sec_top .pic img {
    width: 340px;
    max-width: 100%;
  }
  #company .sec_top .name {
    top: 120px;
  }
  #company .sec_top .name img {
    width: 640px;
    margin-right: 60px;
  }
}

#company .sec_body {
  position: relative;
}

#company .text {
  width: 50%;
}

@media (max-width: 960px) {
  #company .text {
    width: 100%;
  }
}

#company .about_list a {
  display: flex;
  padding: 20px;
  font-size: 18rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

#company .about_list a > * {
  position: relative;
}

#company .about_list a::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: "";
  background: #F2F2F2;
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  transition: all .2s;
}

#company .about_list a::after {
  position: absolute;
  top: 50%;
  right: 30px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  content: url(../img/common/mrk-right-b.svg);
  transition: all .2s;
}

#company .about_list a:hover {
  text-decoration: none;
}

#company .about_list a:hover::before {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}

#company .about_list a:hover::after {
  right: 20px;
}

@media (max-width: 960px) {
  #company .about_list a::after {
    right: 10px;
  }
}

#company .about_list a::before {
  display: none;
}

#company .about_list img {
  position: absolute;
  top: 10px;
  right: 0;
  width: calc(50% - 70px);
  opacity: 0;
  pointer-events: none;
}

#company .about_list img.show {
  opacity: 1;
}

@media (max-width: 960px) {
  #company .about_list a {
    padding: 17px 10px;
  }
  #company .about_list img {
    display: none;
  }
}

/* 施工実績 */
#works {
  padding-left: calc(50% - 450px);
  padding-right: calc(50% - 450px);
  padding-top: 150px;
  padding-bottom: 150px;
}

@media screen and (max-width: 960px) {
  #works {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 960px) {
  #works {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

#works .works_slider {
  margin-bottom: 80px;
}

#works .works_slider::after {
  position: absolute;
  top: -10px;
  bottom: -20px;
  right: calc(100% + 10px);
  width: 100%;
  content: "";
  background: #fff;
}

@media (max-width: 960px) {
  #works .works_slider {
    margin-bottom: 50px;
  }
}

#works .works_slider .works_item {
  width: 320px;
  margin: 0 15px;
}

@media (max-width: 960px) {
  #works .works_slider .works_item {
    width: 230px;
    margin: 0 10px;
  }
}

#works .works_slider .works_item .category {
  font-size: 20rem;
}

@media (max-width: 960px) {
  #works .works_slider .works_item .category {
    font-size: 14px;
  }
}

#works .works_slider .works_item .post_meta .date {
  font-size: 12rem;
}

#works .works_slider .works_item .post_meta .title {
  font-size: 18rem;
}

@media (max-width: 960px) {
  #works .works_slider .works_item .post_meta .title {
    font-size: 16rem;
  }
}

/* Googleカレンダー */
#calendar {
  background: #F2F2F2;
  padding-left: calc(50% - 450px);
  padding-right: calc(50% - 450px);
  padding-top: 100px;
  padding-bottom: 100px;
}

@media screen and (max-width: 960px) {
  #calendar {
    padding-left: 30px;
    padding-right: 30px;
  }
}

#calendar .google_calendar {
  display: flex;
  gap: 60px;
}

#calendar .google_calendar li {
  width: 50%;
  background: #aaa;
  padding-bottom: 38%;
  position: relative;
}

#calendar .google_calendar li iframe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

#calendar .btn_more {
  margin-top: 80px;
  width: 340px;
}

@media (max-width: 960px) {
  #calendar .google_calendar {
    gap: 30px;
  }
}

@media (max-width: 520px) {
  #calendar {
    padding-top: 50px;
  }
  #calendar .google_calendar {
    flex-direction: column;
    gap: 30px;
  }
  #calendar .google_calendar li {
    width: 100%;
    padding-bottom: 76%;
    padding-bottom: 176%;
  }
  #calendar .btn_more {
    margin-top: 40px;
  }
}

/* メディア */
#media {
  padding-left: calc(50% - 450px);
  padding-right: calc(50% - 450px);
  padding-top: 150px;
  padding-bottom: 150px;
}

@media screen and (max-width: 960px) {
  #media {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 960px) {
  #media {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

#media .movie {
  display: flex;
  flex-wrap: wrap;
  margin: -20px;
}

#media .movie li {
  width: calc(50% - 40px);
  margin: 20px;
  position: relative;
  padding-top: 26%;
  overflow: hidden;
}

#media .movie li iframe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transition: all .3s;
}

#media .movie li:hover iframe {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

@media (max-width: 960px) {
  #media .movie {
    margin: -15px;
  }
  #media .movie li {
    width: 100%;
    margin: 15px;
    padding-top: 53.3%;
  }
}
