/* ヘッダー */

header {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 1000;
}

.header {
  display: flex;
  height: 80px;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  margin: 0px auto;
  padding-right: 24px;
  background-color: rgb(255, 255, 255);
}

.header__logo {
  display: block;
  background-image: url("./images/common/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  width: 100%;
  max-width: 284px;
  height: 80px;
}

/* ハンバーガー */

.header_menu {
  display: none;
}

.hamburger.open,
.hamburger.close {
  background: #fff;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
}

/* 初期状態は close ボタンを隠す */
.hamburger.close {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.hamburger.open img,
.hamburger.close img {
  max-width: 32px;
  height: 32px;
}

/* メニュー本体 */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  opacity: 1;
  pointer-events: none;
  transition: 0.4s ease;
  z-index: 90;
  will-change: transform;
  padding: 80px;
}

/* 開いた状態 */
.nav.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nav_list {
  margin-bottom: 131px;
}

.nav_link {
  display: block;
  font-size: 16px;
  color: #4d4d4d;
  font-weight: 700;
  font-family: var(--sub-font);
  line-height: calc(24 / 16);
  text-decoration: none;
  padding: 15px 0px;
  border-bottom: 1px solid rgb(238, 238, 238);
}

.nav_item:first-child .nav_link {
  display: block;
  padding: 21px 0px;
  text-decoration: none;
  border-bottom: none;
}

.drop_list {
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding-bottom: 21px;
  border-bottom: 1px solid rgb(238, 238, 238);
}

.drop_list li a {
  font-size: 12px;
  color: #4d4d4d;
}

.contact_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  width: 216px;
  height: 40px;
  background-color: #008000;
  margin: 0 auto;
}

@media (min-width: 768px) {

  .header {
    height: 100px;
    justify-content: space-between;
    padding: 0 0 0 92px;
  }

  .header_menu {
    display: block;
    max-width: 591px;
    width: fit-content;
  }

  .header_menu_list {
    width: 100%;
    display: flex;
    align-items: center;
    color: white;
    gap: 3.39vw;
    height: 40px;
  }

  .header_item a {
    color: rgb(77, 77, 77);
    font-size: 14px;
    font-weight: 500;
  }

  .header_item:first-child a {
    pointer-events: none;
    cursor: default;
  }

  /* PCドロップダウン */
  .header_item {
    position: relative;
  }

  /* 初期状態（非表示＋少し下げておくと綺麗） */
  .drop_box {
    position: absolute;
    left: -40px;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .drop-menu-item {
    width: 128px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .drop-menu-item img {
    max-width: 16px;
    height: 16px;
  }

  .drop-menu-item a {
    width: 128px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: inherit !important;
    cursor: pointer !important;
    font-size: 12px;
    font-weight: 500;
  }

  .drop-menu-item:not(:first-child) a {
    border-bottom: 1px solid #cfcfcf;
  }

  /* ← これで <li> 全体のホバー中は開いたままになる */
  .header_item:hover>.drop_box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header_menu .header_item:last-child a {
    width: 110px;
    height: 40px;
    background-color: rgb(0, 128, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    font-size: 16px;
    font-weight: bold;
  }

  .mobile_menu_wrapper,
  .hamburger.open {
    display: none;
  }

  .hamburger {
    background: none;
    border: none;
    cursor: pointer;
  }
}

/* フッター */

footer * {
  font-family: var(--main-font);
  color: #4d4d4d;
}

.footer_wrapper {
  padding: 0 24px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.breadcrumbs a {
  font-size: 11px;
  line-height: calc(16 / 11);
  font-weight: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 15px;
  position: relative;
}

.breadcrumbs a::after {
  display: block;
  content: '';
  width: 3px;
  height: 5px;
  background: url(./images/common/breadcrumbs_arrow.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.breadcrumbs span:last-child a::after {
  content: none;
}

.footer_inner {
  margin-bottom: 40px;
}

.footer_logo {
  display: block;
  background-image: url("./images/common/footer_logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  width: 100%;
  max-width: 204px;
  height: 60px;
  margin-bottom: 24px;
}

.footer_address {
  margin-bottom: 16px;
  font-weight: 200;
}

.footer_address p {
  font-size: 11px;
  line-height: calc(16 / 11);
}

.company_ttl {
  font-size: 14px;
  font-weight: 500;
  line-height: calc(21 / 14);
  margin-bottom: 8px;
}

.footer_list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.footer_item a {
  font-size: 12px;
  font-weight: 500;
}

.copy_right_text {
  font-size: 11px;
  font-weight: 200;
  line-height: calc(16 / 11);
  text-align: center;
}

.footer_list.pc {
  display: none;
}

@media (min-width: 768px) {
  .footer_list.sp {
    display: none;
  }

  .footer_list.pc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px 32px;
    align-items: start;
  }

  .breadcrumbs a {
    gap: 15px;
    padding-right: 15px;
  }

  .footer_wrapper {
    max-width: 1120px;
    margin-inline: auto;
    padding: 120px 0 0;
  }

  .footer_info {
    width: 100%;
    max-width: 256px;
  }

  .footer_inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    column-gap: 48px;
    align-items: start;
    padding: 64px 0;
    margin-bottom: 72px;
  }

  .footer_item {
    font-size: 12px;
    font-weight: 500;
  }

  .footer_inner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }

  .footer_inner-item a {
    font-size: 10px;
    font-weight: 400;
  }

  /* 例外 */

  .footer_list.pc .footer_item:nth-child(3) .footer_inner-list {
    margin-top: 25px;
  }

  .footer_item.exception .footer_inner-list {
    margin: 0;
  }

  .footer_item.exception .footer_inner-list a {
    font-size: 12px;
    font-weight: 500;
  }

}