:root {
  --qn-bg-color: #372826;
  --qn-text-color: #7F6461;
  --qn-text-light: #E4CFCC;
  --qn-border-color: #5c4c46;
}

/* Footer Base */
.qn-footer {
  background-color: var(--qn-bg-color);
  color: var(--qn-text-color);
  padding: 40px 20px;
  width: 100%;
}

.qn-footer-container {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Top Section */
.qn-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.qn-logo {
  cursor: pointer;
  width: 78px;
  height: 100px;
}

.qn-social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.qn-social-icon {
  color: var(--qn-text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
 
}

.qn-social-icon:hover {
  color: white;
}

/* Navigation */
.qn-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 60px;
  row-gap: 20px;
  margin: 0;
}

.qn-footer-link {
  color: var(--qn-text-light);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  font-family: Belleza;
}

.qn-footer-link:hover {
  color: #ffffff;
}

/* Info Section */
.qn-footer-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.qn-contact-details {
  font-size: 14px;
  line-height: 1.6;
  font-family: body-regular;
}

.qn-contact-buttons {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.qn-contact-button {
  border: 1px solid var(--qn-text-color);
  color: var(--qn-text-color);
  padding: 22.5px 65px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 245px;
  text-decoration: none;
  font-family: Inter;
  font-weight: 600;
  white-space: nowrap;
}

.qn-contact-button:hover {
  color: var(--qn-text-light);
}

.qn-contact-label {
  font-size: 10px;
  font-family: Inter;
  font-weight: 400;
}

/* Bottom Section */
.qn-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 1px solid var(--qn-border-color);
  padding-top: 28px;
}

.qn-privacy-link {
  color: var(--qn-text-color);
  text-decoration: none;
  font-family: body-regular;
}

.qn-copyright {
  text-align: right;
}


.qn-footer-social-mobile {
  display: none;
}

/* Responsive Layout */
@media (max-width: 768px) {
     .qn-footer-social-mobile {
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--qn-border-color);
  }

  /* optionally hide social icons in top section */
  .qn-footer-top .qn-social-icons {
    display: none;
  }
  .qn-footer {
    padding: 20px 12px;
  }

  .qn-logo {
    width: 37px;
    height: 48px;
  }

  .qn-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .qn-footer-top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .qn-footer-divider,
  .qn-footer-divider-after-menu {
    width: 100%;
    height: 1px;
    background-color: var(--qn-border-color);
    margin: 0px;
    display: block;
  }

  .qn-footer-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .qn-social-icons {
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }

  .qn-contact-details {
    font-size: 12px;
  }

  .qn-footer-info {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .qn-contact-buttons {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .qn-contact-button {
    padding: 12px 24px;
    width: 100%;
  }

  .qn-footer-bottom {
    width: 100%;
    gap: 6px;
    text-align: center;
    padding-top: 12px;
  }

  .qn-footer-bottom .qn-privacy-link::before {
    content: "お問い合わせ / ";
    color: var(--qn-text-color);
  }
}
