#container {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
  padding-top: var(--gp-header-bar-h);
}

#main-area {
	flex: 1 1 auto;
}

#footer {
	flex-shrink: 0;
}

#header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  min-height: var(--gp-header-bar-h);
  box-sizing: border-box;
  transition: transform 0.45s ease, opacity 0.45s ease;
  will-change: transform;
}

@media screen and (max-width: 1300px) {
  #header {
    --gp-header-bar-h: 94px;
  }
}

@media screen and (max-width: 768px) {
  #header {
    --gp-header-bar-h: 70px;
    height: var(--gp-header-bar-h);
    min-height: var(--gp-header-bar-h);
  }

  #header ul#utility-navi {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: 2;
  }

}

#header.UpMove {
  transform: translateY(-100%);
  opacity: 0;
}

#header.DownMove {
  transform: translateY(0);
  opacity: 1;
}

@media screen and (min-width: 769px) {
  #header {
    padding-right: 110px;
  }
}

@media screen and (max-width: 768px) {
  #header {
    padding-right: 70px;
  }
}

#header .gp-branding {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gp-navy);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-weight: 600;
  margin: 0;
  text-align: center;
  max-width: min(55vw, calc(100% - 220px));
  line-height: 1.2;
  z-index: 5;
}

#header .gp-branding a {
  color: var(--gp-navy);
}

#header .gp-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  max-height: var(--gp-header-bar-h);
}

#header .gp-branding .custom-logo-link img {
  max-height: calc(var(--gp-header-bar-h) - 16px);
  width: auto;
  height: auto;
  vertical-align: middle;
}

@media screen and (min-width: 1301px) {
  #g-nav {
    display: flex;
    align-items: stretch;
    min-height: var(--gp-header-bar-h);
  }

  #g-nav #g-nav-list {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
  }

  #g-nav ul {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    min-height: var(--gp-header-bar-h);
    margin: 0;
    padding: 0 0 0 5%;
    box-sizing: border-box;
  }

  #g-nav ul li {
    letter-spacing: 0.1em;
    white-space: nowrap;
    display: flex;
    align-items: stretch;
    margin: 0;
  }

  #g-nav ul li a {
    display: inline-flex;
    align-items: center;
    min-height: var(--gp-header-bar-h);
    padding: 0 14px;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 1300px) {
  #g-nav ul {
    display: block;
    padding: 0;
  }

  #g-nav ul li a {
    padding: 10px;
  }
}

#header ul#utility-navi {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  display: flex;
  font-size: 0.8rem;
  height: var(--gp-header-bar-h);
  margin: 0;
  padding: 0;
}

#header ul#utility-navi li {
  text-align: center;
  display: flex;
  height: 100%;
}

#header ul#utility-navi li span {
  display: block;
  line-height: 1.2;
  margin-top: 4px;
}

#header ul#utility-navi li a {
  color: #fff;
  background: var(--gp-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  min-width: 100px;
  height: var(--gp-header-bar-h);
  min-height: var(--gp-header-bar-h);
  max-height: var(--gp-header-bar-h);
  padding: 6px 4px;
  box-sizing: border-box;
  transition: background 0.5s;
}

#header ul#utility-navi li a:hover {
  background: var(--gp-navy-hover);
}

#header ul#utility-navi li img {
  width: 28px;
  height: auto;
  max-width: 35%;
  margin: 0;
  flex-shrink: 0;
}

@media screen and (max-width: 1300px) {
  #header ul#utility-navi li a {
    width: var(--gp-header-bar-h);
    min-width: var(--gp-header-bar-h);
  }
}

@media screen and (max-width: 768px) {
  #header .gp-branding {
    transform: translate(calc(-50% + 35px), -50%);
    max-width: calc(100% - 100px);
    font-size: 1.05rem;
  }

  #header ul#utility-navi li span {
    display: none;
  }

  #header ul#utility-navi li a {
    width: var(--gp-header-bar-h);
    min-width: var(--gp-header-bar-h);
    padding: 0;
  }

  #header ul#utility-navi li img {
    width: 45%;
    max-width: none;
  }
}

@media screen and (max-width: 530px) {
  #header .gp-branding {
    font-size: 1rem;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 160px);
  }
}

@media screen and (max-width: 1300px) {
  #g-nav.panelactive {
    position: fixed;
    z-index: 999;
    top: 0;
    width: 100%;
    height: 100vh;
  }
  .circle-bg {
    position: fixed;
    z-index: 3;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gp-navy);
    transform: scale(0);
    right: -50px;
    bottom: -50px;
    transition: all 0.6s;
  }
  .circle-bg.circleactive {
    transform: scale(50);
  }
  #g-nav-list {
    display: none;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #g-nav.panelactive #g-nav-list {
    display: block;
  }
  #g-nav ul {
    opacity: 0;
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  #g-nav.panelactive ul {
    opacity: 1;
  }
  #g-nav.panelactive ul li {
    animation-name: gnaviAnime;
    animation-duration: 1s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
    opacity: 0;
  }
  #g-nav li {
    text-align: center;
    list-style: none;
    margin: 0 0 10px 0;
  }
  #g-nav li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
}

@keyframes gnaviAnime {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.openbtn {
  display: none;
}

@media screen and (max-width: 1300px) {
  .openbtn {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    cursor: pointer;
    width: 94px;
    height: 94px;
    background: var(--gp-navy);
  }
  .openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 23px;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    width: 45%;
  }
  .openbtn span:nth-of-type(1) {
    top: 33px;
  }
  .openbtn span:nth-of-type(2) {
    top: 46px;
  }
  .openbtn span:nth-of-type(3) {
    top: 58px;
  }
  .openbtn.active span:nth-of-type(1) {
    top: 41px;
    left: 28px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  .openbtn.active span:nth-of-type(3) {
    top: 52px;
    left: 28px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
}

@media screen and (max-width: 768px) {
  .openbtn {
    width: 70px;
    height: 70px;
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
  }
  .openbtn span {
    left: 17px;
  }
  .openbtn span:nth-of-type(1) {
    top: 20px;
  }
  .openbtn span:nth-of-type(2) {
    top: 33px;
  }
  .openbtn span:nth-of-type(3) {
    top: 45px;
  }
  .openbtn.active span:nth-of-type(1) {
    top: 28px;
    left: 22px;
  }
  .openbtn.active span:nth-of-type(3) {
    top: 40px;
    left: 22px;
  }
}

.nav05b li {
  position: relative;
  margin: 0 5px;
}

.nav05b li::before,
.nav05b li::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gp-navy);
  transition: all 0.2s linear;
  transition-delay: 0.2s;
}

@media screen and (max-width: 1300px) {
  .nav05b li::before,
  .nav05b li::after {
    background: #fff;
  }
}

.nav05b li::before {
  right: 0;
  top: 0;
}
.nav05b li::after {
  left: 0;
  bottom: 0;
}
.nav05b li span {
  display: block;
}

.nav05b li span::before,
.nav05b li span::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 0;
  background: var(--gp-navy);
  transition: all 0.2s linear;
}

@media screen and (max-width: 1300px) {
  .nav05b li span::before,
  .nav05b li span::after {
    background: #fff;
  }
}

.nav05b li span::before {
  left: 0;
  top: 0;
}
.nav05b li span::after {
  right: 0;
  bottom: 0;
}

.nav05b li.current::before,
.nav05b li.current::after,
.nav05b li.current-menu-item::before,
.nav05b li.current-menu-item::after,
.nav05b li:hover::before,
.nav05b li:hover::after {
  width: 100%;
}

.nav05b li.current span::before,
.nav05b li.current span::after,
.nav05b li.current-menu-item span::before,
.nav05b li.current-menu-item span::after,
.nav05b li:hover span::before,
.nav05b li:hover span::after {
  height: 100%;
}
