/* -----------------------------------------
  共通
----------------------------------------- */
body {
  display: flex;
  flex-flow: column;
  min-height: 100vh;
}

#wrapper {
  flex: 1;
}

/* -----------------------------------------
  ヘッダー
----------------------------------------- */

.header,
.header * {
  box-sizing: border-box;
}
.header img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
.header {
  position: relative;
  width: 100%;
  max-width: 1102px;
  margin: auto;
  padding: min(10%, 100px) min(7%, 62px) 0 min(7%, 62px);
  z-index: 5;
}
.home .header {
  max-width: 782px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  position: relative;
  width: clamp(114px, calc((228 / 782) * 100vw), 228px);
  line-height: 1;
  z-index: 999;
}
.header-logo a {
  display: block;
}

.header-gnavi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: clamp(70px, calc((140 / 700) * 100vw), 140px);
}
.header-gnavi .header-gnavi-login {
  width: clamp(25px, calc((50 / 700) * 100vw), 50px);
  margin-right: 13%;
  cursor: pointer;
}

.header-gnavi-btn {
  position: relative;
  display: flex;
  width: clamp(32.5px, calc((65 / 782) * 100vw), 65px);
  height: clamp(11px, calc((22 / 782) * 100vw), 22px);
  z-index: 999;
  cursor: pointer;
}
.header-gnavi-btn::before,
.header-gnavi-btn::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  border-bottom: 1px solid #9fa0a0;
  transition: -webkit-transform .2s;
  transition: transform .2s;
  transition: transform .2s, -webkit-transform .2s;
}
.header-gnavi-btn::after {
  top: auto;
  bottom: 0;
}

/* バツボタン */
.header-gnavi-btn.is-active::before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 5px;
}
.header-gnavi-btn.is-active::after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 5px;
}

.header-gnavi-btn li {
  width: clamp(31px, calc((62 / 782) * 100vw), 62px);
  cursor: pointer;
}
.header-gnavi-btn li:first-child {
  margin-right: 5px;
}

/* -----------------------------------------
  ハンバーガーメニュー
----------------------------------------- */
.gnavi {
  display: none;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 998;
}

.gnavi.is-active {
  display: block;
}
.gnavi.is-active::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 997;
}

.gnavi-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 998;
}


.gnavi-list {
  margin: 20% 0 0 18%;
}
.gnavi-list > li {
  margin-bottom: 15%;
}
.gnavi-list > li > a,
.gnavi-list > li > form > a {
  width: 62%;
}
.gnavi-list a {
  display: block;
  transition: opacity .8s;
}
.gnavi-list a:hover {
  opacity: 0.2;
}

/* item */
.gnavi-list-sub {
  position: relative;
}
.gnavi-list-sub::before {
  content: "";
  display: block;
  width: 0;
  position: absolute;
  top: 28%;
  left: 10%;
  bottom: 0;
  border-left: 1px solid #000;
}
.gnavi-list-sub ul {
  margin: 10% 0 0 10%;
}
.gnavi-list-sub li {
  position: relative;
  margin: 10% 0 0 0;
  padding: 0 0 0 10%;
  text-decoration: none;
  line-height: 1;
}
.gnavi-list-sub a { 
  display: block;
  text-decoration: none;
  line-height: 1;
  width: 94%;
}
.gnavi-list-sub li:before {
  content: "";
  display: block;
  position: absolute;
  top: 69%; 
  left: 0;
  width: 8%;
  height:0;
  border-top: 1px solid #000;
}
.gnavi-list-sub li:last-child:before {
  background: #fff; 
  height: auto;
  top: 69%; 
  bottom: 0;
}
