*{
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
}


/*aタグの効果を打ち消す */
a {
  color: inherit;
  text-decoration: none;
}

/*・を非表示 */
ul,
li {
  list-style: none;
}

/* クリックされた時、スクロールを禁止する */
body.active {
  overflow-y: hidden;
}

/* ヘッダー */
.header {
  background-color: white;
  height: 65px;
  width: 100%;
  position: fixed; /* スクロールしてもヘッダーを固定させる */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999; /* 要素の重なり順を指定する */
  display: flex;
  justify-content: space-between;
}

.headerTop {
  display: flex;
}

.headerContainer {
  padding: 0 20px; /*左右の余白確保*/
  display: flex; /*ロゴとハンバーガーメニューを横に並べる*/
  align-items: center;
  justify-content: space-between;
  height: inherit; /*親要素の高さを継承*/
  position: relative;
}

/* ロゴ（画像入れる予定） */
.headerLogoBox {
  height: 50px;
  width: 50px;
  display: grid;
  place-items: center;
  padding-left: 14px;
}

.headerLogo {
  background-image: url('img/logo.JPG');
  background-size: cover;
  height: 63px;
  width: 68px;
}

.headerTitle {
  display: grid;
  place-items: center;
  padding-left: 50px;
}

.headerTitleText {
  font-weight: bold;
}

.headerContentsBox {
  display: flex;
}

/* ヘッダーの要素 */
.headerNav {
  display: grid;
  place-items: center;
  margin-right: 35px;
}

.navItems {
  height: 35px;
  display: flex;
}

.navItem {
  padding: 5px 30px;
  font-weight: bold;
}

.navItem1:hover, .navItem2:hover, .navItem3:hover, .navItem4:hover {
  text-decoration:underline;
}


/* お問い合わせボタン */
.navItemInquiry {
  height: 25px;
  width: 110px;
  padding: 5px 5px;
  margin-left: 20px;
  font-weight: bold;
  background-color: rgb(172, 210, 146);
  text-align: center;
  border-radius: 10px;
}

.navItemInquiry:hover {
  opacity: 0.8;
  transform: translateY(2px);
  border-bottom: 0px;
}

.navItemIcon {
  display: none;
}


/* ハンバーガーメニュー */
.hamburger-menu {
  width: 30px;
  height: 22px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.line {
  background-color: black;
  height: 2px;
  width: 100%;
  position: absolute;
  transition: all 0.3s;
}

.line:nth-of-type(1) {
  top: 0;
}

.line:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}

.line:nth-of-type(3) {
  bottom: 0;
}

.hamburger-menu.active > .line:nth-of-type(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active > .line:nth-of-type(2) {
  display: none;
}

.hamburger-menu.active > .line:nth-of-type(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}


.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* align-items: center; */
  justify-content: center;
  padding: 8px;
  height: 100%;
  width: 100%;
  background-color: white;
  border: 1px solid #ccc;
  opacity: 0;
  position: fixed; /* スクロールしてもヘッダーを固定させる */
}

.nav-menuBoxs {
  width: 720px;
  margin:  0 auto;
  font-size: 24px;
  font-weight: bold;
  margin-top: 35px;
}

.nav-menuBox {
  padding-top: 5px;
  font-weight: 400;
}

.nav-menu.active {
  display: flex;
  animation: fadeIn 0.5s forwards;
  z-index: 10;
}


.nav-menu a {
  text-decoration: none;
  color: black;
  padding: 5px;
  margin: 5px;
  letter-spacing: 0.06em;
}

.nav-menuLi:hover {
  text-decoration:underline;
}

@keyframes fadeIn {
  0% {
    top: 45%;
    opacity: 0;
  }
  
  100% {
    top: 50%;
    opacity: 1;
  }
}


@media screen and (max-width: 960px) {
	/* 960px以下に適用されるCSS（タブレット用） */
  .navItem {
    padding: 5px 10px
  }

  .navItemInquiry {
    width: 40px;
  }

  .navItem5 {
    display: none;
  }

  .navItemIcon {
    display: contents;
  }

  .headerTitleText,.navItem1,.navItem2,.navItem3,.navItem4,.navItem5 {
    font-size: 10px;
  }

  .nav-menuBoxs {
    padding-left: 50px;
  }
}

@media screen and (max-width: 600px) {
	/* 600px以下に適用されるCSS（スマホ用） */
  .headerTitleText,.navItem1,.navItem2,.navItem3,.navItem4,.navItem5 {
    display: none;
  }

  .navItem {
    padding: 0px;
  }

  .navItemInquiry {
    width: 40px;
  }

  .navItemIcon {
    display: contents;
  }

  .nav-menuBoxs {
    font-size: 15px;
    padding: 50px 0px 0px 50px;
  }
}

@media screen and (max-width: 500px) {
	/* 500px以下に適用されるCSS（スマホ用） */
  .nav-menuBoxs {
    font-size: 8px;
    padding: 30px 0px 0px 30px;
  }
}

/* ヘッダー用 */
@media screen and (max-width: 1200px) {
	/* 1200px以下に適用されるCSS（タブレット用） */
  .navItem {
    padding: 5px 12px;
  }

  .headerTitleText,.navItem1,.navItem2,.navItem3,.navItem4,.navItem5 {
    font-size: 14px;
  }
}

@media screen and (max-width: 890px) {
	/* 890px以下に適用されるCSS（タブレット用） */
  .headerTitleText {
    display: none;
  }
}

@media screen and (max-width: 630px) {
	/* 630px以下に適用されるCSS（スマホ用） */
  .headerTitle {
    padding-left: 0px;
  }

  .navItem {
    padding: 0px;
  }

  .headerTitleText,.navItem1,.navItem2,.navItem3,.navItem4,.navItem5 {
    display: none;
  }
}