/* ======================================
ヘッダー
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: #709e52;
  color: #fff;
  font-size: 20px;
  height: 145px;
  border-bottom: solid 5px #4f7247;
}

.header__main {
  display: flex;
  justify-content: space-between;
  /*align-items: center;*/
  height: 145px;
}

.header__logo {
  /*max-width: 375px;
  min-width: 200px;*/
  width: 27%;
  margin-right: 2%;
  margin-left: 2%;
  display: flex;
  align-items: center;
}

.header__logo a {
  width: 100%;
}

.header__nav {
  width: 53%;
}

.header__contact {
  background-color: #1f7247;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16%;
}

.contact__text {
  text-align: center;
  margin-left: 10px;
}

.contact__text p {
  font-size: 1vw;
}

.contact__text small {
  font-size: 0.7vw;
}

.header__contact p:hover {
  opacity: 0.8;
}

/* ======================================
ドロップダウンメニュー
========================================= */
.primary_nav {
  display: flex;
}

.nav__text {
  border-left: solid 2px #1f7247;
  /*padding: 0px 30px 0px 45px;*/
  padding-left: 18%;
  line-height: 1.1;
}

.nav__text p {
  font-weight: 500;
  font-size: 1vw;
}

.nav__text small {
  font-weight: 100;
  font-size: 0.7vw;
  letter-spacing: 2px;
}

.primary_nav > li {
  position: relative;
  width: 24.3%;
}

.primary_nav > li > a {
  color: #fff;
  display: block;
  padding: 65px 0px 40px;
  transition: all 0.2s;
  white-space: nowrap;
}

.primary_nav > li:hover a {
  background-color: #1f7247;
  color: #fff;
}

.secondary_nav {
  position: absolute;
  left: 0;
  top: 148px;
  display: none;
  z-index: 1;
  font-size: 1vw;
}

.secondary_nav li {
  padding: 0px 15px;
  background-color: #1f7247;
  /*width: 200px;*/
  width: 11vw;
}

.secondary_nav li > a {
  display: inline-block;
  padding: 30px 10px;
  white-space: nowrap;
  /*width: 180px;*/
  width: 90%;
  text-align: left;
  background-color: #1f7247;
  color: #fff;
  border-bottom: 2px solid #fff;
  position: relative;
  white-space: nowrap;
}

.secondary_nav li a::after {
  content: "";
  height: 13px;
  width: 13px;
  border-top: 0.15vw solid #fff;
  border-right: 0.15vw solid #fff;
  transform: translateY(7%) translateX(10%) rotate(45deg);
  position: absolute;
  right: 10px;
  transition: all 0.2s;
}

.secondary_nav li:last-child a {
  border: none;
}

.secondary_nav li:hover a::after {
  right: 0px;
}

/* ======================================
ハンバーガーメニュー
========================================= */
/*menu*/
.menu {
  display: none;
}

.menu {
  position: fixed;
  right: 0px;
  top: 0px;
  width: 12.7vw;
  height: 12.7vw;
  z-index: 120;
  background-color: #1f7247;
}

.menu__line {
  background: #fff;
  display: block;
  height: 3px;
  position: absolute;
  transition: transform 0.3s;
  width: 55%;
  top: 32%;
  right: 22%;
}

.menu__line--center {
  top: 51%;
}

.menu__line--bottom {
  top: 69%;
}

.menu__line--top.active {
  top: 51%;
  transform: rotate(45deg);
}

.menu__line--center.active {
  transform: scaleX(0);
}

.menu__line--bottom.active {
  top: 51%;
  transform: rotate(135deg);
}

/* ======================================
ハンバーガーメニューの中身
========================================= */
/*gnav*/
.gnav {
  background-color: #709e52;
  display: none;
  height: 100%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 110;
  overflow-y: auto;
  overflow-y: scroll;
}

.gnav::-webkit-scrollbar {
  display: none;
}

.gnav__top {
  height: 13vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gnav__logo {
  width: 55%;
}

.gnav__wrap {
  width: 70%;
  height: auto;
  margin: 0 auto;
  padding: 45px 15% 128px;
}

.gnav__wrap a {
  color: #fff;
  font-weight: 600;
  font-size: 5.3vw;
  display: inline-block;
}

.gnav__link {
  padding: 6% 0px;
}

.gnav__link li {
  padding: 4% 0px;
  padding-left: 3%;
}

.gnav__link li:nth-child(2) {
  padding-top: 10%;
}

.gnav__link li:last-child {
  padding-bottom: 1%;
}

.gnav__button {
  background-color: #fff;
  text-align: center;
  margin-top: 55px;
  transition: all 0.3s 0s ease;
}

.gnav__button a {
  color: #1f7247;
  width: 100%;
  padding: 4% 0px 5%;
}

.gnav__button:hover {
  background-color: #1f7247;
}

.gnav__button:hover a {
  color: #fff;
}

/* ======================================
トップへ戻るボタン
========================================= */
.pagetop a {
  height: 80px;
  width: 80px;
  position: fixed;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  z-index: 2000;
  box-shadow: 4px 4px 5px 0px rgba(0, 0, 0, 0.4);
  background-color: #709e52;
  color: #fff;
  border: solid 2px #fff;
  transition: all 0.2s;
}

.pagetop a::after {
  content: "";
  height: 20px;
  width: 20px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translateY(7%) translateX(10%) rotate(-45deg);
  position: absolute;
  top: 32px;
  right: 30px;
  transition: all 0.2s;
}

.pagetop a:hover {
  box-shadow: none;
  bottom: 13px;
}

@media screen and (max-width: 1024px) {
  .pagetop a {
    height: 10vw;
    width: 10vw;
  }

  .pagetop a::after {
    height: 2.5vw;
    width: 2.5vw;
    border-top: 0.4vw solid #fff;
    border-right: 0.4vw solid #fff;
    top: 41%;
    right: 40%;
  }
}

/* ======================================
メディアクエリ１
========================================= */

@media screen and (max-width: 1300px) {
  .header,
  .header__main {
    height: 120px;
  }

  .header__logo {
    width: 15%;
    margin-right: 0%;
    margin-left: 1%;
  }

  .header__nav {
    width: 67%;
  }

  .primary_nav > li > a {
    padding: 46px 0px 40px;
  }

  .nav__text {
    padding-left: 10%;
  }

  .nav__text p,
  .contact__text p,
  .secondary_nav {
    font-size: 1.8vw;
  }

  .nav__text small,
  .contact__text small {
    font-size: 0.9vw;
  }

  .contact__icon {
    width: 16%;
  }
}

@media screen and (max-width: 1024px) {
  .header {
    height: 12.7vw;
  }

  .header__main {
    justify-content: flex-start;
    align-items: center;
    height: 12.7vw;
  }

  .header__nav,
  .header__contact {
    display: none;
  }

  .header__logo {
    display: block;
    margin-left: 5%;
    max-width: 100%;
    min-width: 200px;
    width: 53%;
  }

  .menu {
    display: block;
  }
}

@media screen and (max-width: 425px) {
}
