html {
  font-size: 15px;
}

body {
  font-family: "Montserrat","Helvetica Neue",Arial, "Zen Maru Gothic", "Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  letter-spacing: .05em;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}



.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  position: relative;
  padding-top: 73px;
}

.section {
  padding: 90px 0;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  margin:0 auto 40px;
  width: max-content;
  padding: 0 0.5em;
  text-align: center;
  letter-spacing: .05em;
  color: #252525;
}

.lead {
  font-size: 26px;
  line-height: 1.8;
  margin-bottom: 30px;
}

h2 {
  position: relative;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 3;
  width: 100%;
  background-color: #F9001E;
  color:#ffffff;
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #FFFFFF;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #FFFFFF;
}
.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  text-align: center;
  background-color: #F4DAB9;
  position: relative;
  z-index: 2;
}

.mv-container {
  position: relative;
  padding: 0 20px;
}

.mv-container img {
  width: 100%;
  height: auto;
}


/*--------------------------------
 gaiyo
---------------------------------*/
#gaiyo {
  position: relative;
  z-index: 2;
  background: 
  url("../img/background/bg1.png") no-repeat  -1% 25% / 18% auto,
  url("../img/background/bg2.png") no-repeat  104% 94% / 16% auto,
  url("../img/background/bg3.png") no-repeat  97% 18% / 17% auto,
  url("../img/background/bg4.png") no-repeat  -1% 105% / 15% auto,
  url("../img/background/bg6.png") no-repeat  48% 126% / 15% auto,
  #fafafa;
}

.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.profile-img {
  width: 40%;
  margin-right: 30px;
}

.profile-body {
  flex: 1;
  padding: 30px;
  border-radius: 40px;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}


/*--------------------------------
 daihyo
---------------------------------*/
#daihyo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  background-color: #ffffff;
}
.daihyo-img {
  border-radius: 50%;
}



/*-------------------------------
　koryaku飾りの画像
-------------------------------*/
.koryaku {
  display: block !important;
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
}
.koryaku_767 {
  display: none !important;
}

/*--------------------------------
mati-img
 ---------------------------------*/

 .mati-img {
  margin-top: 10%;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  animation: parallax-castle-anim linear;
  animation-timeline: scroll();
}
@keyframes parallax-castle-anim {
  from {
    transform: translateY(-68em);
  }
  to {
    transform: translateY(-3em);
  }
}



/*--------------------------------
 service 
---------------------------------*/
#service {
  position: relative;
  background-color: #F4DAB9;
  z-index: 2;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 50px;
  padding: 20px;
  background-color:#ffffff;
  border-radius: 40px;
}

.service-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.service-body {
  flex: 1;
}

.service-name {
  margin-bottom: 10px;
}

.service-text {
  font-size: 14px;
  line-height: 1.8;
}

/*-------------------------------
　WT飾りの画像
-------------------------------*/
.WT {
  display: block !important;
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
}
.WT_767 {
  display: none !important;
}




/*--------------------------------
 castle/mati
 ---------------------------------*/

 .parallax-bg {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12%;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50%;
}


.img-bg-01 {
  background-image: url("../img/background/mati.png");
}


.img-bg-02 {
  background-image: url("../img/background/castle.jpg");
}

/*--------------------------------
 Contact
---------------------------------*/

.contact {
  background-color: #ffffff;
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}

.lead {
  color: #252525;
  margin: 0 auto 20px;
  width: max-content;
  padding: 20px 3em;
  background-color:#F4DAB9;
  border-radius: 10px;
  box-shadow: 4px 4px 4px #b18a58
}
/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  position: relative;
  z-index: 2;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  position: relative;
  z-index: 2;
  padding: 30px;
  background-color: #333;
}

.copyright {
  position: relative;
  z-index: 2;
  font-size: 10px;
  text-align: center;
  color: #797979;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    color: #252525;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 auto 20px;
    width: max-content;
    max-width: 100%;
    padding: 20px 2em;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 10px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 8px;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */
  .mv-container {
    padding: 0;
  }

  .mv-title {
    font-size: 30px;
  }
  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    top: 75%;
    font-size: 14px;
    line-height: 1.7;
  }

  /* service */
  .service-list {
    display: block;
    margin-bottom: 0;
  }

  .service-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .service-item:last-child {
    margin-bottom: 0;
  }

  .service-name {
    margin-bottom: 5px;
  }

  .service-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* gaiyo */
  .profile {
    display: block;
  }
  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* koryaku飾り７６７ */
  .koryaku { 
    display: none !important;
    }
  .koryaku_767 {
    display: block !important; 
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
  }

  /* WT飾り７６７ */
  .WT { 
    display: none !important;
   }
  .WT_767 {
    display: block !important; 
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
  }

  /* castle/mati７６７ */
  .parallax-bg {
    display: none !important;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }




}



/* max-width〇〇px　数値が大きい方を上から書く */
@media screen and (max-width: 500px) {
  .works-item {
    flex: 0 0 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }
  
}