@charset "utf-8";

/*---------------------------------------------
ヘッダー(navbar) 
===============================================*/
.vg-header {
  width: 100%;
  background: #fff;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}

.vg-header__inner {
  /* max-width: 1240px; */
  margin: 0 auto;
  padding: 14px 0px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 92%;
  max-width: 1200px;
  justify-content: space-between;
}

.vg-header__logo {
  flex: 0 0 auto;
}

.vg-header__logo a {
  text-decoration: none;
  color: #000;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: clamp(18px, 2vw, 20px);
  letter-spacing: -0.05em;
}

.vg-header__logo img {
  width: 150px;
  height: auto;
  display: block;
}

.vg-header__nav {
  flex: 0 0 auto;
}

.vg-header__nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto;
}

.vg-header__nav a,
.vg-header__nav .nav-parent {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  line-height: inherit;
  cursor: default;
}

.vg-header__nav a::after,
.vg-header__nav .nav-parent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width .25s ease;
}

.vg-header__nav a:hover::after,
.vg-header__nav .has-child:hover .nav-parent::after {
  width: 100%;
}

.vg-header__contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.vg-header__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-decoration: none;
  line-height: 1.2;
}

.vg-header__tel-icon {
  font-size: 24px;
}

.vg-header__tel strong {
  display: block;
  font-size: 20px;
  letter-spacing: .02em;
}

.vg-header__tel small {
  display: block;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}

.vg-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 54px;
  padding: 0 15px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 100, 31, .25);
  transition: opacity .25s ease, transform .25s ease;
}

.vg-header__btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.vg-header__toggle {
  display: none;
}


ul.list-unstyled {
  gap: 0px;
}

ul.list-unstyled a.nav-link {
  padding: 5px 5px 7px 5px;
}

main {
  margin-top: 80px;
}

/* 文字数が多いので、早めにスマホメニュー化 */
@media screen and (max-width: 1240px) {
  main {
    margin-top: 68px;
  }

  .vg-header__nav,
  .vg-header__contact {
    display: none;
  }

  .vg-header__inner {
    justify-content: space-between;
    padding: 12px 0px;
  }

  .vg-header__logo img {
    width: 180px;
  }

  .vg-header__toggle {
    display: flex;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--green);
    border-radius: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .vg-header__toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
  }

  .vg-header__nav {
    display: block;
    position: fixed;
    top: 68px;
    right: 0;
    width: min(86vw, 360px);
    height: calc(100vh - 68px);
    background: #fff;
    box-shadow: -6px 0 20px rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 999;
  }

  .vg-header.is-open .vg-header__nav {
    transform: translateX(0);
  }

  .vg-header__nav ul {
    display: block;
    padding: 24px;
  }

  .vg-header__nav li+li {
    border-top: 1px solid #e5eee8;
  }

  .vg-header__nav a,
  .vg-header__nav .nav-parent {
    display: flex;
    padding: 16px 0 16px 16px;
    justify-content: flex-start;
    width: 100%;
  }

  .vg-header__nav a:hover,
  .vg-header__nav .nav-parent:hover {
    border: none;
    background-color: rgba(23, 151, 27, .12);
  }

  .vg-header__contact {
    display: none;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .vg-header__nav a:hover::after,
  .vg-header__nav .has-child:hover .nav-parent::after {
    width: 0;
  }
}
