@charset "utf-8";

.header {
  position: fixed;
  background: linear-gradient(to bottom, rgba(43, 43, 43, 0.75) 0%, rgba(82, 79, 79, 0.39) 60.84%, rgba(78, 78, 78, 0) 100%);
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: var(--default);
}

.h_logo {
  max-width: 96px;
  width: 100%;
}

.h_logo img {
  width: 100%;
  height: auto;
}

.header .inner {
  width: 95%;
  display: flex;
  align-items: center;
  gap: 37px;
}

.header .btnarea {
  display: flex;
  width: 60%;
  margin-left: auto;
  justify-content: flex-end;
  gap: 16px;
}

.header .btnarea .item {
  max-width: 212px;
  width: 100%;
  font-weight: 500;
  font-size: clamp(0.875rem, 0.626rem + 0.52vw, 1.25rem);
  text-align: center;
  color: #fff;
  border: 1px solid #fff;
  font-family: var(--zenmincho);
}

.header .btnarea .item a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 14px 0;
}

.hamburger {
  max-width: 168px;
  width: 100%;
  height: 30px;
  cursor: pointer;
  z-index: 100;
  position: relative;
}

.hamburger .line {
  width: calc(58 / 168 * 100%);
  height: 1px;
  background-color: #fff;
  position: absolute;
  left: 0;
  top: 10px;
  transition: var(--default);
}

.hamburger .line:nth-child(2) {
  top: 20px;
}

.hamburger .line:last-child {
  width: 100%;
  top: 30px;
}

.hamburger::before {
  content: "メニュー";
  font-family: var(--zenmincho);
  font-weight: 500;
  font-size: clamp(0.875rem, 0.626rem + 0.52vw, 1.25rem);
  line-height: 29px;
  color: #fff;
  position: absolute;
  top: 0;
  left: 66px;
}

/* アクティブ時：中央配置に切り替え */
.hamburger.active::before {
  content: "閉じる";
}

.hamburger.active .line:first-child {
  transform: rotate(15deg);
  top: 20px;
}

.hamburger.active .line:nth-child(2) {
  transform: rotate(-15deg);
}

.navigation {
  display: block;
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  width: 100%;
  background-color: #292929;
  transition: all 0.8s;
  z-index: 99;
  overflow: auto;
  height: 100svh;
}

.navigation.active {
  transform: translateY(0);
  pointer-events: all;
}

.navigation .h_logo {
  max-width: 163px;
  width: 100%;
}

.navigation .menu-inner {
  padding: var(--header-height) 0 12px;
  width: 60%;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
  gap: 66px;
}

.navigation .list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 90px;
  width: 100%;
}

.navigation .list .info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.navigation .list .info .item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid #fff;
}

.navigation .list .info .ttl {
  font-family: var(--zenmincho);
  font-weight: 400;
  font-size: 14px;
  color: #aaa;
}

.navigation .list .info .detail {
  font-family: var(--zenmincho);
  font-weight: 400;
  font-size: 18px;
  color: #fff;
}

.navigation .menu-inner .menu-list {
  display: flex;
  flex-direction: column;
}

.navigation .menu-inner .menu-list .ttl {
  font-family: var(--zenmincho);
  font-weight: 400;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 14px;
}

.navigation .menu-inner .menu-list a {
  font-family: var(--zenmincho);
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  padding-bottom: 8px;
  border-bottom: 0.5px solid #fff;
  margin-bottom: 40px;
  position: relative;
}

.navigation .menu-inner .menu-list a:last-child {
  margin-bottom: 0;
}

.navigation .menu-inner .menu-list a::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 20px;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #ffffff;
  border-right: 0;
  transition: var(--default);
}

.navigation .menu-inner .menu-list a:hover::after {
  transform: translateX(4px);
}

@media (max-width: 1023px) {
}

@media (max-width: 767px) {
  .hamburger::before {
    line-height: 20px;
  }
  .hamburger .line {
    width: calc(29 / 101 * 100%);
  }
  .h_logo {
    max-width: calc(32 / 400 * 100vw);
  }
  .header .inner {
    padding: 6px 0;
  }
  .header .btnarea .item.sp-hidden {
    display: none;
  }
  .header .btnarea .item {
    max-width: 126px;
  }
  .header .btnarea .item a {
    padding: 7px 0;
  }
  .navigation .h_logo {
    max-width: 136px;
  }
  .hamburger {
    max-width: 101px;
    height: 20px;
  }
  .hamburger::before {
    left: 36px;
  }

  .hamburger .line:nth-child(2) {
    top: 16px;
  }
  .hamburger .line:last-child {
    top: 21px;
  }
  .hamburger.active .line:first-child {
    top: 16px;
  }

  .navigation .menu-inner {
    width: 80%;
    padding: 45px 0 85px;
    gap: 15px;
  }

  .navigation .list {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
}

/* 管理画面用 */
.gjs-dashed .navigation {
  right: 0;
  top: 100px;
  pointer-events: all;
  transform: translateY(0);
}

.gjs-dashed .navigation .menu-inner {
  padding: 100px 0 200px;
}

.gjs-dashed .header {
  z-index: 100;
}
