.header .g_navi li a {
  padding-top: 1.2em;
}
.header .g_navi li a:before {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 767px) {
  .footer .footer_navi li:last-child,
  .footer .footer_navi li:nth-child(odd):nth-last-child(2) {
    width: 100%;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .index .header .mb {
    display: block;
  }
  .index .header .pc_tab {
    display: none;
  }
  .index .header .mb_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    padding: 0.8rem 1rem;
    background: #fff;
  }
  .index .header .mb_logo {
    margin: 0;
    padding-right: 50px;
    max-width: 100%;
  }
  .index .header .mb_logo a {
    display: block;
    display: flex;
    align-items: center;
  }
  .index .header .mb_logo a img {
    flex: 1 1 auto;
    width: 45%;
    height: auto;
  }
  .index .header .mb_logo a .logo_txt {
    flex: 1 1 auto;
    width: 45%;
    padding: 0 0.5em;
    margin: 0 0 0 0.5em;
    white-space: nowrap;
  }
  .index .header .header_in {
    position: fixed !important;
    top: 0;
    left: 0;
    padding: 80px 1rem 1rem !important;
    margin-top: -100vh;
    width: 100%;
    height: 100vh;
    transform: scale(0.9);
    background: #fff !important;
    opacity: 0;
    overflow: hidden;
    z-index: -1 !important;
    background-image: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .index .header .header_in:before {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
    background: url(../images/logo_mark_red.svg) no-repeat center rgba(151, 18, 20, 0.9);
    background-size: 75% auto;
    z-index: -2;
  }
  .nav_op.index .header .header_in {
    display: block;
    margin-top: 0;
    transform: scale(1);
    opacity: 1;
    overflow: auto;
    z-index: 10 !important;
  }
  .index .header .header_in > * {
    position: relative;
    transform: scale(1);
  }
  .index .header .header_in .animated {
    animation-duration: 1s;
    animation-delay: 0s;
  }
  .index .header .header_in .top_logo {
    margin-right: 0 !important;
    margin-bottom: 2rem;
  }
  .index .header .header_in .top_logo .logo_txt {
    color: #fff;
    border-color: #fff;
  }
  .nav_op.index .header .header_in .top_logo {
    animation: fadeInDown 1s both;
  }
  .index .header .header_nav {
    flex-direction: column !important;
    align-items: center !important;
  }
  .nav_op.index .header .g_navi li {
    animation: fadeInDown 1s both;
  }
  .index .header .g_navi li a {
    color: #fff;
  }
  .index .header .g_navi li a:before {
    color: #fff;
  }
  .index .header .sub_navi {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin: 3rem -0.5rem 0;
  }
  .index .header .sub_navi li {
    flex: 1 1 auto;
    width: 40%;
    margin: 0 0.5rem;
  }
  .nav_op.index .header .sub_navi li {
    animation: fadeInUp 1s both;
  }
  .index .header .sub_navi li .attention {
    color: #fff;
    z-index: 10;
  }
  .index .header .sub_navi li .attention:before {
    border-color: #fff;
    border-width: 1px;
  }
  .index .header .sub_navi li .attention span:before,
  .index .header .sub_navi li .attention span:after {
    width: 0.7em;
    height: 1px;
    background: #fff;
  }
  .index .header .sub_navi li a {
    display: block;
    min-width: 0;
    font-size: 0.8em;
    padding: 0.7em 0.5em;
    background: #fff;
  }
  .index .header .sub_navi li .btn {
    border: solid 1px #D81A1E;
    color: #D81A1E;
  }
  .index .header .sub_navi li .blue_btn {
    border: solid 1px #055FA4;
    color: #055FA4;
  }
  .index .header .g_navi_toggle {
    display: block;
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    padding: 9px 8px 0;
    width: 40px;
    height: 40px;
    z-index: 10;
    cursor: pointer;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
  }
  .index .header .g_navi_toggle .bar {
    margin: 0 0 6px;
    height: 3px;
    background: #fff;
    border: solid 1px #191919;
    transition: width 0.25s, top 0.25s, left 0.25s, right 0.25s, margin 0.25s, transform 0s;
  }
  .nav_op.index .header .g_navi_toggle .bar {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    width: 85%;
    margin: 0 auto;
    transition: width 0.25s, top 0.25s, left 0.25s, right 0.25s, margin 0.25s, transform 0.25s 0.25s;
  }
  .nav_op.index .header .g_navi_toggle .bar:first-child {
    transform: rotate(45deg);
  }
  .nav_op.index .header .g_navi_toggle .bar:nth-child(2) {
    transform: scale(0);
  }
  .nav_op.index .header .g_navi_toggle .bar:nth-child(3) {
    transform: rotate(-45deg);
  }
  .nav_op.index .header .g_navi_toggle {
    background: transparent;
  }
  .nav_op.index .header .g_navi_toggle .bar {
    border-color: transparent;
  }
  .index .header .sub_navi li .attention {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .index .header .g_navi_toggle {
    padding-top: 12px;
  }
  .index .header .g_navi_toggle .bar {
    height: 2px;
    background: #333333;
    border: none;
  }
  .nav_op.index .header .g_navi_toggle .bar {
    width: 72%;
    background: #ffffff;
  }
  .index .header .header_in {
    background: none !important;
  }
  .index .header .mb_logo {
    padding-right: 40px;
  }
  .index .header .mb_logo a .logo_txt {
    width: 30%;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.45em 0.5em 0.4em;
    margin-left: 0.8em;
  }
  .nav_op.index .sns_fixed {
    display: none;
  }
}
