#header {position: fixed; left: 0; top: 0; width: 100%; padding: 2rem 5%; z-index: 100; display: flex; justify-content: space-between; align-items: center;}
#header .menu {display: flex; align-items: center; gap: 1.5rem;}
#header .menu a {color: #fff;}
#header .logo img {width: 9.25rem;}
#header.on {background: #fff;}
#header.on .logo img{filter: invert(100%) brightness(0%);}
#header.on .menu a {color: #000;}

@media(max-width:768px) {
    #header .logo img {width: 12rem;}
}

#quick {position: fixed; right: 2.5%; top: 50%; transform: translateY(-50%); text-align: center; z-index: 90;}
#quick .menu {width: 6.25rem; background: linear-gradient(125deg, var(--pointcolor) 0%, #0052a8 100% 40%); padding: 3rem 0; border-radius: 100px;}
#quick .menu li:nth-child(n+2) {margin-top: 1rem;}
#quick .menu .list {color: #fff;}
#quick .menu .list img {width: 2rem;}

#quick .goTop {width: 6.25rem; height: 6.25rem; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 0 8px rgba(34, 10, 0, .11);}
#quick .goTop img {width: 1.75rem;}

#footer{color: #cecfcf ; padding: 2rem 5%;  background-color: #344a62;}
#footer .flex-wrap{gap: 20px}
#footer a{color: #cecfcf}

@media(max-width:990px) {
    #quick {top: auto; transform: translateY(0); bottom: 2.5rem;}
}

@media(max-width: 768px) {
    #quick {right: auto; left: 0; width: 100%; bottom: 0; display: flex;}
    #quick .menu {width: 80%; display: flex; align-items: center; border-radius: 2rem 2rem 0 0;}
    #quick .menu li {width: calc(100% / 4); margin-top: 0 !important; position: relative;}
    #quick .menu li:after {position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 70%; width: 1px; background: #fff; content: ""; opacity: .5;}
    #quick .menu li:last-child:after {display: none;}
    #quick .menu .list img {width: 2.5rem;}
    #quick .menu .list p {margin-top: .625rem;}
    #quick .goTop {width: 20%; border-radius: 2rem 2rem 0 0; height: auto; margin-top: 0;}

    #footer{padding-bottom: 150px}
}


/* counsel */
#counsel { position: fixed; min-width: 80%; max-width: 90%; left: 50%; bottom: 1rem; transform: translateX(-50%); background-color: var(--pointcolor); box-shadow: 0 0 .75rem rgba(52,52,52,.09); border-radius: 1rem; z-index: 100; transition: bottom 1s ease; }
#counsel.dig { bottom: -10rem; }
#counsel form { display: grid; align-items: center; grid-template-columns: .8fr 3fr 1.2fr .75fr; gap: 0 1rem; margin: 1rem 2rem; }
#counsel form input[type=text],
#counsel form input[type=tel] { width: 48.5%; padding: 1rem; background-color: #fff; border-radius: .5rem; border: none; outline: none; }
#counsel form input[type=text]:focus,
#counsel form input[type=tel]:focus { box-shadow: none; border: none !important; }
#counsel form input[type=text]::placeholder,
#counsel form input[type=tel]::placeholder { color: #2a2a2a; }
#counsel form input[type=checkbox] { position: absolute; width: 1px; height: 1px; opacity: 0; }
#counsel form input[type=checkbox] + label { display: flex; align-items: center; position: relative; cursor: pointer; }
#counsel form input[type=checkbox] + label span { position: relative; display: block; width: 1rem; height: auto; aspect-ratio: 1/1; background-color: #fff; cursor: pointer; }
#counsel form input[type=checkbox] + label span samp { position: absolute; height: 3px; background-color: transparent; top: 50%; }
#counsel form input[type=checkbox]:checked + label span samp { background-color: #000; }
#counsel form input[type=checkbox] + label span samp:first-child { width: .4rem; left: 0; transform: translateY(-50%) rotate(45deg); }
#counsel form input[type=checkbox] + label span samp:last-child { width: .8rem; right: 0; transform: translateY(-50%) rotate(-45deg); }
#counsel form input[type=checkbox] + label p { margin-left: .5rem; } 
#counsel form button[type=submit] { padding: 1rem 1.25rem 1rem 1.5rem; border-radius: 7px;}
#counsel form button[type=submit] svg { animation: counselArrowMove 1.2s ease-in-out infinite; }

@keyframes counselArrowMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  #counsel form button[type=submit] svg { animation: none; }
}

@media (max-width:1440px){
  #counsel { min-width: 90%; }
}
@media (max-width:990px){
  #counsel { min-width: 90%; left: 5%; bottom: -20rem; transform: translateY(50%); }
  #counsel.show { bottom: 50%; }
  #counsel form { position: relative; display: block; margin: 2.5rem; }
  #counsel form h2 { font-size: 2.5rem; text-align: center; }
  #counsel form aside { display: flex; flex-wrap: wrap; margin: 1.5rem 0; }
  #counsel form aside input[type=text], #counsel form aside input[type=tel] { width: 100%; margin: .5rem 0; padding: 1.5rem; font-size: 1.5rem; }
  #counsel form aside > div {width: 50%;}
  #counsel form input[type=checkbox] + label span { width: 1.5rem; }
  #counsel form input[type=checkbox] + label span samp:first-child { width: .6rem; }
  #counsel form input[type=checkbox] + label span samp:last-child { width: 1.2rem; }
  #counsel form input[type=checkbox] + label p { font-size: 1.25rem; }
  #counsel form button[type=submit] { width: 100%; justify-content: center; padding: 1.5rem 0 1.5rem 1rem; border-radius: 3rem; }
  #counsel form button[type=submit] span { font-size: 2rem; }
  #counsel form button[type=submit] svg { width: 2.5rem; height: 2.5rem; }
  
  #counsel form button.closeCounsel { position: absolute; right: -1rem; top: -1.5rem; }
}

@media(max-width:500px) {
    #counsel form aside > div {width: 100%;}
}
