.header_sp{
  display: none;
}
header {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  position: fixed;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.12);
}

header.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.12);
}

header .header_box{
  width: 100%;
  padding:20px 4%;
  grid-template-columns: 150px 1fr;
  display: grid;
  z-index: 1;
  box-sizing: border-box;
}
header .header_box ul{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 30px;
  align-items: center;
}
header .header_box ul li {
  text-align: center;
}

header .header_box ul li a {
  color: #000;
  font-weight: 700;
  font-size: var(--font-m);
}


header .header_box ul > li:last-child a{
  width: 200px;
  display: block;
  border: 1px solid var(--brand-color);
  border-radius: 50px;
  padding:10px 0;
  background: var(--brand-color);
  color:#FFF
}

header .header_box .dropdown {
  position: relative;
  font-size: var(--font-l);
  font-weight: 700;
  cursor: pointer;
}



header .header_box .dropdown .drop {
  position: absolute;
  top: 40px;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  width: 250px;
  justify-content: flex-start;
}

header .header_box .dropdown.open .drop {
  opacity: 1; /* 表示状態 */
  transform: translateY(0); /* 元の位置に */
  pointer-events: auto; /* クリック可能に */
}
header .header_box .dropdown.open .drop div{
  width: 100%;
}
header .header_box .dropdown .drop li a {
  padding: 10px 20px;
  display: block;
  color: #333;
  font-size: var(--font-m);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

header .header_box .dropdown .drop li a:hover {
  background-color: #f4f4f4;
  color: var(--brand-color);
}


@media screen and (max-width: 767px) {
    .header_sp {
        display: block;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    header {
        width: 100%;
        height: 80px;
    }
    
    #overlay-button {
        position: relative;
        right: 4%;
        z-index: 5;
        cursor: pointer;
        padding: 15px 0;
    }
    input#overlay-input {
      display: none;
  }
    header img.logo {
        width: 150px;
        display: block;
        margin-left: 4%;
    }
    
    #overlay-button span {
        height: 2px;
        width: 35px;
        background-color: var(--brand-color);
        position: relative;
        display: block;
        transition: all .2s ease-in-out;
    }
    
    #overlay-button span:before, #overlay-button span:after {
        height: 2px;
        background-color: var(--brand-color);
        position: absolute;
        content: "";
        transition: all .2s ease-in-out;
        left: 0;
    }
    
    #overlay-button span:before {
        top: -10px;
        width: 35px;
    }
    
    #overlay-button span:after {
        top: 10px;
        width: 35px;
    }
    
    #overlay-input:checked ~ #overlay-button span {
        background: transparent;
    }
    
    #overlay-input:checked ~ #overlay-button span:before {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    #overlay-input:checked ~ #overlay-button span:after {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    #overlay {
        height: calc(100vh - 80px);
        width: 100%;
        background-color: var(--brand-color);
        z-index: 2;
        visibility: hidden;
        opacity: 0;
        position: fixed;
        top: 80px;
        left: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        padding-bottom: 50px;
    }
    
    #overlay-input:checked ~ #overlay {
        visibility: visible;
        opacity: 1;
    }
    
    #overlay .menu_wrap {
        max-height: 100%;
        overflow-y: auto;
        padding: 20px 0;
    }
    
    #overlay label {
        display: block;
        padding: 20px 4%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    #overlay label p {
        margin: 0;
    }
    
    #overlay label p a {
        color: #FFF;
        font-size: var(--font-l);
        font-weight: 700;
        display: block;
        text-decoration: none;
    }

    #overlay label:last-child {
        margin-top: 30px;
    }

    #overlay label:last-child a {
        display: block;
        text-align: center;
        padding: 15px 0;
        background: #FFF;
        color: var(--brand-color);
        font-weight: 700;
    }
    
    #overlay .accshow {
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
    }
    
    #overlay .cssacc:checked + .accshow {
        height: auto;
    }
    
    #overlay .accshow p {
        padding: 1.5rem 4%;
        margin: 0;
    }
    
    #overlay .accshow p a {
        color: #FFF;
        font-size: var(--font-m);
        display: block;
    }
}