.menu_box {
    position: fixed;
    width: 50%;
    height: 100vh;
    top: 0;
    left: -50%;
    visibility: hidden;
    border: solid 2px #5bab39;
    background-color: #ffffff;
    transition: all 1s linear;
    overflow-y: auto;
}
.menu_box .menu_logo {
    margin-top: 2vw;
    text-align: center;
}
.menu_box .menu_logo img {
    margin-top: 2vw;
    width: 10vw;
    height: 10vw;
}
.menu_box .menu_li {
    display: inline-block;
    margin-top: 8vw;
    margin-left: 8vw;
}
.menu_box .menu_li li {
    margin-bottom: 6vw;
    list-style-type: none;
    font-size: max(1.6rem, 14px);
}
.menu_box .menu_li li img {
    display: inline-block;
    width: 25px;
    vertical-align: middle;
}
.menu_box .menu_li li p {
    display: inline-block;
    vertical-align: middle;
}
.menu_box .menu_li li a {
    display: inline-block;
    color: #000000;
    text-decoration: none;
    vertical-align: middle;
    font-size: max(1.6rem, 16px);
}
.menu_box .menu_li .li_child {
    margin-left: 5vw;
}

.menu_box .square{
    position: fixed;
    width: 70%;
    height: 100vh;
    top: 0px;
    left: 0px;
    visibility: hidden;

    background-image:
        linear-gradient(0deg, #5bab39, #5bab39),
        linear-gradient(0deg, #5bab39, #5bab39),
        linear-gradient(0deg, #5bab39, #5bab39),
        linear-gradient(0deg, #5bab39, #5bab39);

    background-repeat: no-repeat;

    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
    background-position: left top, right top, right bottom, left bottom;

    animation: square_ani 3s 1s linear forwards;
}
@keyframes square_ani {
    0% {
        background-size: 
            0 2px, 2px 0,
            0 2px, 2px 0; 
    }
    25% {
        background-size: 
            100% 2px, 2px 0,
            0 2px, 2px 0;
    }
    50% {
        background-size: 
            100% 2px, 2px 100%,
            0 2px, 2px 0;
    }
    75% {
        background-size: 
            100% 2px, 2px 100%,
            100% 2px, 2px 0;
    }
    100% {
        background-size: 
            100% 2px, 2px 100%,
            100% 2px, 2px 100%;
    }
}
.menu_box_open {
    left: 0;
}

/* メニュースクロール対応 */
.menu_scroll {
    position: fixed;
    width: 100%;
    height: 70px;
    top: 0;
    left: 0;
    background-color: #ffffff;
    opacity: 0.9;
    visibility: hidden;
}

/* メニューボタン */
.menu_btn_fixed {
    position: fixed;
    top: 0;
    left: 4vw;
}
.menu_btn {
    display: inline-block;
    position: relative;
    width: 45px;
    height: 70px;
    top: 0;
    cursor: pointer;
}
.menu_btn span {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background-color: #000000;
}
.menu_btn span:nth-of-type(1) {
    top: 10px;
    transition: 1.5s all;
    animation: span1-out 1.5s ease 0s forwards;
}
.menu_btn span:nth-of-type(2) {
    top: 25px;
    transition: 1.5s all;
    animation: span2-out 1.5s ease 0s forwards;
}
.menu_btn span:nth-of-type(3) {
    top: 40px;
    transition: 1.5s all;
    animation: span3-out 1.5s ease 0s forwards;
}
.menu_btn .span_menu {
    top: 45px;
    text-align: center;
    background-color: #ffffff;
    font-size: 16px;
    opacity: 1;
}
.menu_btn .open {
    transition: 0.75s;
    opacity: 1;
}
.menu_btn .close {
    transition: 0.75s;
    opacity: 0;
}
.menu_check {
    display: none;
}
.menu_check:checked + .menu_btn span:nth-of-type(1) {
    width: 45px;
    transform: translateY(15px) rotate(405deg);
    animation: span1 1.5s ease 0s forwards;
}
.menu_check:checked + .menu_btn span:nth-of-type(2) {
    width: 45px;
    transform: translateY(0) rotate(360deg);
    animation: span2 1.5s ease 0s forwards;
}
.menu_check:checked + .menu_btn span:nth-of-type(3) {
    width: 45px;
    transform: translateY(-15px) rotate(495deg);
    animation: span3 1.5s ease 0s forwards;
}
.menu_check:checked + .span_menu {
    opacity: 0;
}
.menu_check:checked + p {
    opacity: 0;
}

@keyframes span1 {
  0%   { background-color: #000000; }
  1%   { background-color: #5bab39; }
  50%  { background-color: #5bab39; }
  90%  { background-color: #5bab39; }
  100% { background-color: #000000; }
}
@keyframes span1-out {
  0%   { background-color: #000000; }
  1%   { background-color: #f09199; }
  50%  { background-color: #f09199; }
  90%  { background-color: #f09199; }
  100% { background-color: #000000; }
}
@keyframes span2 {
  0% { 
      opacity: 1;
      background-color: #000000;
  }
  1% {
      background-color: #90c22f;
  }
  50% {
      opacity: 0.5;
      background-color: #90c22f;
  }
  90% {
      opacity: 0.5;
      background-color: #90c22f;
  }
  100% {
      opacity: 0;
      background-color: #000000;
  }
}
@keyframes span2-out {
  0% { 
      opacity: 0;
      background-color: #000000;
  }
  1% {
      background-color: #f6bec4;
  }
  50% {
      opacity: 0.5;
      background-color: #f6bec4;
  }
  90% {
      opacity: 0.5;
      background-color: #f6bec4;
  }
  100% {
      opacity: 1;
      background-color: #000000;
  }
}
@keyframes span3 {
  0%   { background-color: #000000; }
  1%   { background-color: #c3d825; }
  50%  { background-color: #c3d825; }
  90%  { background-color: #c3d825; }
  100% { background-color: #000000; }
}
@keyframes span3-out {
  0%   { background-color: #000000; }
  1%   { background-color: #fdeff2; }
  50%  { background-color: #fdeff2; }
  90%  { background-color: #fdeff2; }
  100% { background-color: #000000; }
}

.menu_sep {
    width: 80%;
    border: solid 1px #5bab39;
    margin: 0 auto;
    margin-top: 12vw;
    overflow: hidden;
}

/* PCメニュー */
.pc_menu {
    width: 100%;
    background-color: #ffffff;
}
.pc_menu_fixed {
    z-index: 101;
}
.pc_menu ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin-left: 2px;
}
.pc_menu li {
    cursor: pointer;
    width: 100%;
    height: max(3.125vw, 35px);
    border: solid 1px #5bab39;
    background-color: #5bab39;
    color: #ffffff;
    transition : 0.5s;
    margin-right: 3px;
}
.pc_menu li:hover {
    background-color: #ffffff;
    color: #5bab39;
    transition : 0.5s;
}
.pc_memu .menu_list {
    display: flex;
    align-items: center;
    margin: auto;
}
.pc_menu .menu_list div {
    display: inline-block;
}
.pc_menu .menu_list img {
    display: inline-block;
    height: max(2.5vw, 28px);
    background-color: #ffffff;
}
.pc_menu .menu_list p {
    font-size: min(0.75rem + 0.625vw, 1vw);
}
.pc_menu .menu_list .p2 {
    font-size: min(0.7rem + 0.625vw, 0.9vw);
}
.pc_menu .menu_list a {
    display: block;
    background-color: #5bab39;
    color: #ffffff;
    text-decoration: none;
}
.pc_menu .menu_list a:hover {
    background-color: #ffffff;
    color: #5bab39;
    transition : 0.5s;
}

/* レスポンシブ対応 */
@media screen and (max-width: 700px) {   /* 700pxまでの幅に適用 */
.menu_scroll {
    display: block;
}
.menu_btn {
    display: block;
}
}
@media screen and (max-width: 870px) {   /* 870pxまでの幅に適用 */
.pc_menu .menu_list img {
    display: none;
}
.pc_menu .menu_list p {
    font-size: min(1.3rem + 0.625vw, 12px);
}
}

@media screen and (max-width: 480px) {   /* 480pxまでの幅に適用 */
.menu_scroll {
    height: 50px;
}
.menu_btn {
    width: 30px;
    height: 50px;
}
.menu_btn span:nth-of-type(1) {
    top: 10px;
}
.menu_btn span:nth-of-type(2) {
    top: 20px;
}
.menu_btn span:nth-of-type(3) {
    top: 30px;
}
.menu_btn .span_menu {
    top: 35px;
    font-size: 12px;
}
.menu_check:checked + .menu_btn span:nth-of-type(1) {
    width: 30px;
    transform: translateY(10px) rotate(405deg);
}
.menu_check:checked + .menu_btn span:nth-of-type(2) {
    width: 30px;
    transform: translateY(0) rotate(360deg);
}
.menu_check:checked + .menu_btn span:nth-of-type(3) {
    width: 30px;
    transform: translateY(-10px) rotate(495deg);
}
.menu_box {
    width: 70%;
    left: -70%;
}
.menu_box_open {
    left: 0;
}
}
