/************************************************************/
/*   header   */
/************************************************************/
/* <---------- ヘッダーPC ----------> */
body {
  padding-top: 150px;
  margin: 0;
}

#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 1000;
  height: 150px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: height 0.3s ease;
  font-family: 'Noto Serif JP', serif;
}

#header.shrink {
  height: 100px;
  background-color: #fff;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  max-width: 380px;
}

.logo-area img {
  width: 95%;
  margin: 10px auto 0;
}

.site-title p {
  font-size: 12px;
  margin: 0;
}

.site-title h1 {
  font-size: 20px;
  margin: 2px 0 0;
}

/* ナビゲーション */

.nav-inner {}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  /* allow natural wrapping if space is tight */
}

.nav ul li {
  position: relative;
  padding: 0 15px;
}

/* 縦バー */
.nav ul li:not(:first-child)::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 80%;
  transform: translateY(-50%);
  color: #ccc;
}

.nav ul li a {
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav ul li a:hover {
  transform: scale(1.1);
  color: #2b7a2b;
}

.nav ul li a img {
  height: 40px;
  margin-bottom: 5px;
}

.sns-area {
  display: flex;
  align-items: flex-start;
  margin-top: -70px;
  width: 90px;
  justify-content: space-around;
}

#header.shrink .sns-area.pc-only {
  /* display: flex; */
  align-items: flex-start;
  margin-top: 0;
  width: 90px;
  justify-content: space-around;
}

.sns a {
  margin-left: 15px;
}

.sns img {
  height: 35px;
}

.pc-only {
  display: flex;
}

.sp-only {
  display: none;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 35px;
  height: 3px;
  margin: 5px 0;
  background: #333;
  transition: all 0.3s ease;
}

/* Optional hamburger active animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}



/* <---------- ヘッダーTB ----------> */
@media (max-width: 1023px) {
  body {
    padding-top: 100px;
  }

  #header {
    height: 100px;
  }

  .hamburger {
    position: absolute;
    right: 15px;
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
  }

  .hamburger span {
    position: absolute;
    display: block;
    width: 35px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* --- 通常の3本線 --- */
  .hamburger span:nth-child(1) {
    top: 4px;
  }

  .hamburger span:nth-child(2) {
    top: 18px;
  }

  .hamburger span:nth-child(3) {
    top: 32px;
  }

  /* --- active時（×になる） --- */
  .hamburger.active span:nth-child(1) {
    top: 18px;
    /* 中央に寄せる */
    transform: rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    /* 真ん中の線を消す */
  }

  .hamburger.active span:nth-child(3) {
    top: 18px;
    /* 中央に寄せる */
    transform: rotate(-45deg);
  }

  .logo-area {
    max-width: 380px;
    padding-right: 30px;
  }

  .logo-area img {
    width: 95%;
    margin: 0 auto;
  }

  .nav {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 100px);
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 1100;
  }

  .nav.active {
    left: 0;
    display: flex;
    justify-content: center;
    height: calc(100vh - 23%);
    flex-direction: row;
    align-items: flex-start;
  }

  .nav-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 50px;
  }

  .nav ul {
    flex-direction: column;
  }

  .nav ul li {
    margin: 0 0;
    display: flex;
  }

  /* remove separators in vertical menu */
  .nav ul li::before {
    display: none;
  }

  .nav ul li a {
    font-size: 18px;
    padding: 8px 12px;
    flex-direction: row;
    justify-content: center;
  }

  .nav ul li a img {
    height: 40px;
    margin-right: 8px;
    margin-bottom: 8px;
    translate: 0 -5px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: flex;
    margin-top: 16px;
    justify-content: center;
    width: 100%;
  }

  .sp-only a {
    margin: 0 10px;
  }

  .sns-area {
    justify-content: flex-start;
    margin-left: 22px;
  }

}

/* <---------- ヘッダーSP ----------> */
@media (max-width: 767px) {
  body {
    padding-top: 100px;
  }

  #header {
    height: 100px;
    min-width: 360px;
  }

  .header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 100%;
  }

  .logo-area {
    width: 300px;
    padding-right: 30px;
  }

  .logo-area img {
    width: 100%;
    margin: 0 auto;
  }

}