@charset "utf-8";

html { font-size: 62.5%; }
body {
  font-family: 'メイリオ', 'Meiryo', sans-serif;
  font-size: 1.8rem;
  line-height: 1.6;
  letter-spacing: .03em;
  color: #4D4D4D;
}
img {
  max-width: 100%;
  text-align: center;
}
header {
  background-color: rgba(247,247,247,0.9);
}
h1 {
  width: 15rem;
  padding: 1rem 0 1rem 1rem;
}
section {
  width: 80%;
  margin: 0 auto 7rem;
}
h2 {
  display: inline-block;
  font-family: '游ゴシック', sans-serif;
  font-weight: 500;
  font-size: 2.7rem;
  color: white;
  background-color: #339E43;
  margin: 0 0 1.2em 0;
  padding: 0.3em 5rem;
  box-shadow: 12px 8px #68b7a1;
  text-align: center;
}
#jisseki {
  margin-top: 4rem;
}
#mailform {
  font-size: 2.3rem;
  padding: 0.3em 3rem;
}
h3 {
  text-align: center;
  font-size: 2.3rem;
  color: #4D4D4D;
  /*background-color: #41A66F;*/
  padding: 0.5em;
  letter-spacing: .18em;
  width: min(90%,35rem);
  justify-self: center;
  font-weight: bold;
}
.link-btn {
  font-size: 2.3rem;
  color: #339e43;
  font-weight: 550;
  /*background-color: #41A66F;*/
  letter-spacing: .18em;
  padding: 0.4em;
  border: double 0.5rem #339e43;
  display: block;
  text-align: center;
}
.sonota .link-btn {
  font-size: 2.1rem;
  line-height: 1.83;
}
.A-type img {
  width: min(83%, 35rem);
  justify-self: center;
}
main > img {
  width: 100%;
  height: 66rem;
  object-fit: cover;
  margin-bottom: 3rem;
}
main > figcaption{
  text-align: right;
  margin: -1rem 2rem 2rem 0;
}
.name {
  text-align: right;
}
.btn-width {
  width: 82%;
  margin: 0 auto;
}
.B-type img {
  width: 66%;
  height: 22rem;
  object-fit: contain;
  margin: 0 auto;
}
.Icon img {
  width: 80%;
}
.work img {
  width: 100%;
  height: 27rem;
  object-fit: cover;
}
.machi img {
  object-fit: cover;
  object-position: center 60%;
}
.A-type,.B-type {
  display: grid;
  gap: 2rem;
  margin-bottom: 5rem;
}
.B-type p{
  text-align: justify;
}
h1 img:hover,
.work img:hover {
  opacity: 0.5;
  transition: all 0.1s ease-in 0ms;
}
.link-btn:hover {
  background-color: #339e43;
  color: white;
  border: double 0.4rem  white;
  transition: all 0.2s ease-in 0ms;
}
footer {
  background: url(../img/main-img_k.jpg) center/cover rgba(51,158,67,1);
  background-blend-mode: overlay;
  font-size: 1.1rem;
  color: white;
  line-height: 1.7;
  padding: 3rem 2rem 2rem;
  font-family: "游ゴシック";
}
footer div {
  display: flex;
  justify-content: space-around;
}
footer img {
  margin-top: 0.2rem;
  width: 2rem;
}
footer p {
  padding-top: 2rem;
  text-align: center;
}
footer div p {
  padding-top: 0;
  text-align: left;
}
footer .indent {
  text-indent: 1.1rem;
}
/* bxslider のCSS*/
.bxslider h3 {
  font-size: 2.3rem;
  letter-spacing: .05em;
}
.bxslider p,.Icon p {
  text-align: justify;
  width: min(90%,35rem);
  margin: 0 auto;
}
/* bxsliderここまで */
/* フロー図 */
:root {
  --circle-size: clamp(2.5rem, 5vw, 3rem);
  --spacing: clamp(0.25rem, 2vw, 0.5rem);
}

.c-stepper__item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 4rem;

  &:before {
    content: "";
    flex: 0 0 var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    background-color: #339E43;
  }

  &:not(:last-child) {
    &:after {
      content: "";
      position: absolute;
      left: 0;
      top: calc(var(--circle-size) + var(--spacing));
      bottom: var(--spacing);
      z-index: -1;
      transform: translateX(calc(var(--circle-size) / 2));
      width: 2px;
      background-color: #949494;
    }
  }
}

.c-stepper__title {
  font-weight: bold;
  font-size: clamp(2.1rem, 5vw, 2.5rem);
  margin-bottom: clamp(0.85rem, 2vmax, 1rem);
  line-height: 1.1;
}

.c-stepper__desc {
  color: #4D4D4D;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.c-stepper__content {
  max-width: 700px;
}

.wrapper {
  max-width: 700px;
  margin: 2rem auto 0;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}
.last-item{
  padding-bottom: 0;
}
/* フロー図ここまで */
#subPage main {
  padding-top: 5.5rem;
}
#subPage .c-stepper__title {
  font-weight: lighter;
  line-height: 1.4;
  letter-spacing: .04em;
  font-size: clamp(1.5rem, 5vw, 2rem);
}
#subPage  main ul li {
  margin-left: 1.8rem;
  list-style: disc;
}
#subPage h3 {
  font-family: '游ゴシック';
  font-weight: 600;
  color: #339E43;
  text-align: center;
  border-bottom: 2px solid #339E43;
  background-color: white;
  margin: 0 auto;
}
#kouiki+div .work-setsumei {
  margin-bottom: 3rem;
}
#subPage .B-type {
  margin-bottom: 3rem;
}
figcaption {
  text-align: center;
}
.all-work img {
  width: 100%;
  height: 32rem;
  object-fit: cover;
}
#subPage .all-work h3 {
  font-size: 2.1rem;
  padding: 0.3rem;
  margin-bottom: 2rem;
}
h4 {
  font-weight: 600;
}
.work-setsumei {
  background-color: #E0E0E0;
  padding: 2rem;
}
.photo-garelly {
  display: grid;
  grid-template-columns: 50% 8% 40%;
  grid-template-rows: 50% 50%;
  margin-bottom: 5rem;
  gap: 1%;
}
.mati-item01 {
  grid-column: 1/2;
}
.mati-item01 img {
  object-position: 10% center;
}
.mati-item02 {
  grid-column: 2/4;
}
.mati-item02 img {
  object-position: 60% center;
}
.mati-item03 {
  grid-column: 1/4;
}

.shigaichi-item01 {
  grid-column: 1/2;
  grid-row: 1/3;
}
.shigaichi-item02 {
  grid-column: 2/4;
  grid-row: 1/3;
}
.item01 {
  grid-column: 1/3;
}
.item02 img {
  object-position: center 2%;
}
.item03 {
  grid-column: 1/2;
}
.item03 img {
  object-position: 20%;
}
.item04 {
  grid-column: 2/4;
}
.photo-garelly img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.onlyTB,.onlyPC {
  display: none;
}
.Mail{
  font-weight: 600;
}
.Mail:hover{
  color: #41A66F;
}
  /* ハンバーガーメニュー（画面上部に固定表示）ここから */
.gMenu {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 99;
}
/* メニューアイコンを画面右上に固定*/
.gMenu .menu-icon {
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1.4rem;
  padding-top: 5px;
  height: 12px;
}
/* メニューアイコン（三本線）の真ん中の線 */
.gMenu .menu-icon .navicon {
  background: #339E43;
  display: block;
  height: 2px;
  width: 31px;
  position: relative;
  transition: background .4s ease-out; /* 形が変わる時のアニメーション */
}
/* メニューアイコン（三本線）の上と下の線を疑似要素で追加 */
.gMenu .menu-icon .navicon::before,
.gMenu .menu-icon .navicon::after {
  background: #339E43;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .4s ease-out;/* 形が変わる時のアニメーション */
  width: 100%;
}
.gMenu .menu-icon .navicon::before {
  top: 1.2rem;
} /* 位置を上にずらす */
.gMenu .menu-icon .navicon::after {
  top: -1.2rem;
} /* 位置を下にずらす */
/* 表示されるメニュー */
.gMenu .menu {
  background-color: rgba(255,255,255,0.9);
  overflow: hidden;
  max-height: 0; /* ★最初は高さを0にして非表示状態に */
  transition: max-height .6s; /* 表示されるときのアニメーション */
  text-align: center;
}
/* メニュー部分のデザイン */
.gMenu .menu li:first-of-type {
  padding-top: 25px;
  padding-top: 58px;
}
.gMenu .menu li a {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  text-transform: capitalize;
}
.gMenu .menu li a:hover {
  background-color: #339E43;
  color: white;
  transition: all 0.2s ease-in 0ms;
}
/* チェックボックスは常に非表示 */
.gMenu .menu-btn {
  display: none;
}
/* ▼▼▼以下はチェックボックスがONの時の状態▼▼▼ */
.gMenu .menu-btn:checked ~ .menu {
  max-height: 368px; /* ★チェックボックスがオンの時高さを指定 */
  transition: max-height .6s;
}
/* メニューボタンの中央の線を非表示に */
.gMenu .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}
/* メニューボタンの上下の線を45度傾けて✕印を作る*/
.gMenu .menu-btn:checked ~ .menu-icon .navicon::before {
  transform: rotate(-45deg);top: 0;
}
.gMenu .menu-btn:checked ~ .menu-icon .navicon::after {
  transform: rotate(45deg);top: 0;
}
/* サイトに合わせてオリジナルカスタマイズ */
.gMenu .menu-icon {
  top: 2.5rem;
}
.gMenu .menu-icon .navicon,
.gMenu .menu-icon .navicon::before,
.gMenu .menu-icon .navicon::after {
  background: #339E43;
}
/* ハンバーガーメニューここまで */

@media screen and (min-width:800px) {
  html { font-size: 63.25%; }
  /*ハンバーガーメニュー非表示*/
  .gMenu .menu-icon {
    display: none;
  }
  .gMenu .menu {
    background-color: transparent;
    max-height: none;
    transition: none;
    display: flex;
  }
  .gMenu .menu li:first-of-type {
    padding-top: 0;
    padding-top: 0;
  }
  .gMenu .menu li a {
    padding: 2.88rem 1.5rem;
  }
  .gMenu {
    width: auto;
  }
  header {
    background-color: rgba(247,247,247,0.9);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 8.5rem;
    z-index: 1000;
  }
  main {
    padding-top: 8.5rem;
  }
    /*ハンバーガーメニュー非表示ここまで*/
  section {
      width: min(80%,130rem);
    }
  section ul {
    display: flex;
    flex-wrap: wrap;
    max-width: 100rem;
    margin: 0 auto;
    justify-content: space-around;
    gap: 4rem;
  }
  section ul li {
    width: 45%;
  }
  .btn-width {
    width: 70%;
  }
  .btn-width {
    grid-column: 2/3;
  }
  #mailform+div,.A-type {
    grid-template-columns: 45% 1fr;
  }
  #mailform+div a,.A-type a {
  grid-column: 2/3;
  }
  #jigyo+.bxslider {
    margin: inherit;
  }
  .Icon,.bxslider>li {
  grid-template-rows: 226px auto 70px;
  grid-template-columns: 100%;
  }
  .work ul li {
  grid-template-rows: auto auto 70px;
  grid-template-columns: 100%;
  }
  footer {
    font-size: 1.5rem;
  }
  footer img {
    width: 2.5rem;
  }
  #subPage main ul {
    display: block;
  }
  #subPage  main ul li {
    width: 100%;
  }
  figure {
    padding-top: 3rem;
    text-align: center;
  }
  figure img {
    width: min(83%, 50rem);
  }
  #subPage main {
    padding-top: 14.5rem;
  }
  #subPage section {
    width: min(64%,700px)
  }
  #kouiki+div .work-setsumei {
    margin-bottom: 8rem;
  }
  .all-work .B-type > img {
    height: 42rem;
  }
  .work-setsumei {
    columns: 2;
    column-gap: 4rem;
  }
  .onlySP,.onlyPC {
    display: none;
  }
  .onlyTB {
    display: block;
  }
  .photo-garelly {
    grid-template-rows: 50% 42%;
  }
}
@media screen and (min-width: 1200px) {
  html {font-size: 71.25%;}

  .onlySP,.onlyTB {
    display: none;
  }
  .onlyPC {
    display: block;
  }
  .Icon, .bxslider>li {
    grid-template-rows: 254px auto 70px;
  }
  .A-type img {
    width: min(68%, 31rem);
  }
}